From 875ae8e38bc3663e5057ca910e7ebe4b2994edb9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 14 Sep 2010 19:47:20 +0000 Subject: Updated python directory git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1175349 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- python/Makefile.am | 157 - python/README | 14 + python/README.copy | 29 - python/configure.in.in | 11 - python/mungepyqtconfig.sed | 1 - python/mungesipconfig.sed | 2 - python/pykde/AUTHORS | 6 - python/pykde/BUGS | 0 python/pykde/COPYING | 343 - python/pykde/ChangeLog | 602 - python/pykde/ChangeLog.2001-4 | 185 - python/pykde/Changelog | 779 -- python/pykde/INSTALL | 14 - python/pykde/NEWS | 3 - python/pykde/README | 5 - python/pykde/THANKS | 109 - python/pykde/configure.py | 943 -- python/pykde/contrib/kdepyuic | 150 - python/pykde/doc/classref/allclasses.html | 801 -- python/pykde/doc/classref/dcop/DCOPClient.html | 456 - python/pykde/doc/classref/dcop/DCOPObject.html | 160 - .../pykde/doc/classref/dcop/DCOPObjectProxy.html | 60 - python/pykde/doc/classref/dcop/DCOPRef.html | 142 - python/pykde/doc/classref/dcop/DCOPReply.html | 50 - python/pykde/doc/classref/dcop/DCOPStub.html | 93 - python/pykde/doc/classref/dcop/index.html | 40 - python/pykde/doc/classref/glossary.html | 40 - python/pykde/doc/classref/index.html | 57 - python/pykde/doc/classref/kabc/KABC.Address.html | 249 - .../pykde/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 - python/pykde/doc/classref/kabc/KABC.Agent.html | 105 - .../classref/kabc/KABC.ConsoleErrorHandler.html | 48 - .../classref/kabc/KABC.DistributionList.Entry.html | 56 - .../doc/classref/kabc/KABC.DistributionList.html | 77 - .../classref/kabc/KABC.DistributionListDialog.html | 49 - .../kabc/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 - .../pykde/doc/classref/kabc/KABC.ErrorHandler.html | 49 - python/pykde/doc/classref/kabc/KABC.Field.html | 184 - .../doc/classref/kabc/KABC.FieldSortMode.html | 57 - python/pykde/doc/classref/kabc/KABC.Format.html | 57 - .../doc/classref/kabc/KABC.FormatFactory.html | 72 - .../pykde/doc/classref/kabc/KABC.FormatInfo.html | 45 - .../pykde/doc/classref/kabc/KABC.FormatPlugin.html | 87 - .../doc/classref/kabc/KABC.GUIErrorHandler.html | 48 - python/pykde/doc/classref/kabc/KABC.Geo.html | 90 - .../doc/classref/kabc/KABC.GuiErrorHandler.html | 55 - python/pykde/doc/classref/kabc/KABC.Key.html | 140 - .../doc/classref/kabc/KABC.LDAPUrl.Extension.html | 44 - python/pykde/doc/classref/kabc/KABC.LDAPUrl.html | 152 - python/pykde/doc/classref/kabc/KABC.LDIF.html | 174 - .../doc/classref/kabc/KABC.LDIFConverter.html | 122 - .../pykde/doc/classref/kabc/KABC.LdapClient.html | 190 - .../doc/classref/kabc/KABC.LdapConfigWidget.html | 276 - .../pykde/doc/classref/kabc/KABC.LdapObject.html | 88 - .../pykde/doc/classref/kabc/KABC.LdapResult.html | 45 - .../pykde/doc/classref/kabc/KABC.LdapSearch.html | 78 - python/pykde/doc/classref/kabc/KABC.Lock.html | 94 - python/pykde/doc/classref/kabc/KABC.LockNull.html | 60 - .../pykde/doc/classref/kabc/KABC.NameSortMode.html | 64 - .../pykde/doc/classref/kabc/KABC.PhoneNumber.html | 127 - python/pykde/doc/classref/kabc/KABC.Picture.html | 116 - python/pykde/doc/classref/kabc/KABC.Plugin.html | 78 - python/pykde/doc/classref/kabc/KABC.Resource.html | 346 - .../pykde/doc/classref/kabc/KABC.ResourceFile.html | 312 - .../classref/kabc/KABC.ResourceSelectDialog.html | 70 - python/pykde/doc/classref/kabc/KABC.Secrecy.html | 100 - python/pykde/doc/classref/kabc/KABC.SortMode.html | 50 - .../kabc/KABC.SortingTraits.FamilyName.html | 59 - .../kabc/KABC.SortingTraits.FormattedName.html | 59 - .../kabc/KABC.SortingTraits.GivenName.html | 59 - .../doc/classref/kabc/KABC.SortingTraits.Name.html | 59 - .../doc/classref/kabc/KABC.SortingTraits.Uid.html | 59 - .../doc/classref/kabc/KABC.SortingTraits.html | 41 - python/pykde/doc/classref/kabc/KABC.Sound.html | 109 - .../doc/classref/kabc/KABC.StdAddressBook.html | 143 - python/pykde/doc/classref/kabc/KABC.Ticket.html | 50 - python/pykde/doc/classref/kabc/KABC.TimeZone.html | 80 - .../doc/classref/kabc/KABC.VCardConverter.html | 96 - .../pykde/doc/classref/kabc/KABC.VCardFormat.html | 58 - .../doc/classref/kabc/KABC.VCardFormatPlugin.html | 86 - python/pykde/doc/classref/kabc/KABC.html | 67 - python/pykde/doc/classref/kabc/index.html | 95 - python/pykde/doc/classref/kabc/kabc-globals.html | 28 - python/pykde/doc/classref/kdecore/KAboutData.html | 260 - .../pykde/doc/classref/kdecore/KAboutPerson.html | 65 - .../doc/classref/kdecore/KAboutTranslator.html | 54 - python/pykde/doc/classref/kdecore/KAccel.html | 366 - .../pykde/doc/classref/kdecore/KAccelAction.html | 208 - .../pykde/doc/classref/kdecore/KAccelActions.html | 172 - python/pykde/doc/classref/kdecore/KAccelBase.html | 242 - .../doc/classref/kdecore/KAccelShortcutList.html | 130 - .../pykde/doc/classref/kdecore/KApplication.html | 666 - python/pykde/doc/classref/kdecore/KAsyncIO.html | 70 - .../pykde/doc/classref/kdecore/KAudioPlayer.html | 59 - python/pykde/doc/classref/kdecore/KBufferedIO.html | 136 - .../doc/classref/kdecore/KCalendarSystem.html | 306 - .../classref/kdecore/KCalendarSystemFactory.html | 59 - python/pykde/doc/classref/kdecore/KCatalogue.html | 93 - .../doc/classref/kdecore/KCharMacroExpander.html | 75 - python/pykde/doc/classref/kdecore/KCharsets.html | 106 - .../classref/kdecore/KClipboardSynchronizer.html | 84 - .../pykde/doc/classref/kdecore/KCmdLineArgs.html | 220 - .../doc/classref/kdecore/KCmdLineOptions.html | 45 - python/pykde/doc/classref/kdecore/KCodecs.html | 182 - python/pykde/doc/classref/kdecore/KCompletion.html | 211 - .../doc/classref/kdecore/KCompletionBase.html | 141 - python/pykde/doc/classref/kdecore/KConfig.html | 149 - .../pykde/doc/classref/kdecore/KConfigBackEnd.html | 107 - python/pykde/doc/classref/kdecore/KConfigBase.html | 970 -- .../doc/classref/kdecore/KConfigDialogManager.html | 130 - .../pykde/doc/classref/kdecore/KConfigGroup.html | 95 - .../doc/classref/kdecore/KConfigGroupSaver.html | 71 - .../doc/classref/kdecore/KConfigINIBackEnd.html | 88 - .../classref/kdecore/KConfigSkeleton.ItemBool.html | 96 - .../kdecore/KConfigSkeleton.ItemColor.html | 102 - .../kdecore/KConfigSkeleton.ItemDateTime.html | 102 - .../kdecore/KConfigSkeleton.ItemDouble.html | 118 - .../kdecore/KConfigSkeleton.ItemEnum.Choice.html | 45 - .../classref/kdecore/KConfigSkeleton.ItemEnum.html | 90 - .../classref/kdecore/KConfigSkeleton.ItemFont.html | 102 - .../classref/kdecore/KConfigSkeleton.ItemInt.html | 118 - .../kdecore/KConfigSkeleton.ItemInt64.html | 124 - .../kdecore/KConfigSkeleton.ItemIntList.html | 102 - .../classref/kdecore/KConfigSkeleton.ItemLong.html | 118 - .../kdecore/KConfigSkeleton.ItemPassword.html | 51 - .../classref/kdecore/KConfigSkeleton.ItemPath.html | 51 - .../kdecore/KConfigSkeleton.ItemPathList.html | 65 - .../kdecore/KConfigSkeleton.ItemPoint.html | 102 - .../kdecore/KConfigSkeleton.ItemProperty.html | 102 - .../classref/kdecore/KConfigSkeleton.ItemRect.html | 102 - .../classref/kdecore/KConfigSkeleton.ItemSize.html | 102 - .../kdecore/KConfigSkeleton.ItemString.html | 106 - .../kdecore/KConfigSkeleton.ItemStringList.html | 102 - .../classref/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 - python/pykde/doc/classref/kdecore/KCrash.html | 82 - .../doc/classref/kdecore/KDCOPPropertyProxy.html | 91 - python/pykde/doc/classref/kdecore/KDE.html | 61 - .../pykde/doc/classref/kdecore/KDesktopFile.html | 155 - python/pykde/doc/classref/kdecore/KEntry.html | 54 - python/pykde/doc/classref/kdecore/KEntryKey.html | 56 - python/pykde/doc/classref/kdecore/KGlobal.html | 122 - .../pykde/doc/classref/kdecore/KGlobalAccel.html | 173 - .../kdecore/KGlobalSettings.KMouseSettings.html | 46 - .../doc/classref/kdecore/KGlobalSettings.html | 270 - python/pykde/doc/classref/kdecore/KIDNA.html | 62 - python/pykde/doc/classref/kdecore/KIPC.html | 63 - python/pykde/doc/classref/kdecore/KIcon.html | 69 - python/pykde/doc/classref/kdecore/KIconEffect.html | 205 - python/pykde/doc/classref/kdecore/KIconLoader.html | 195 - python/pykde/doc/classref/kdecore/KIconTheme.html | 140 - python/pykde/doc/classref/kdecore/KInstance.html | 103 - python/pykde/doc/classref/kdecore/KKey.html | 195 - python/pykde/doc/classref/kdecore/KKeyNative.html | 174 - .../pykde/doc/classref/kdecore/KKeySequence.html | 180 - .../doc/classref/kdecore/KKeyServer.CodeMod.html | 44 - .../pykde/doc/classref/kdecore/KKeyServer.Key.html | 103 - .../pykde/doc/classref/kdecore/KKeyServer.Sym.html | 92 - .../classref/kdecore/KKeyServer.Variations.html | 68 - python/pykde/doc/classref/kdecore/KKeyServer.html | 132 - python/pykde/doc/classref/kdecore/KLibFactory.html | 72 - python/pykde/doc/classref/kdecore/KLibLoader.html | 91 - python/pykde/doc/classref/kdecore/KLibrary.html | 80 - python/pykde/doc/classref/kdecore/KLocale.html | 583 - python/pykde/doc/classref/kdecore/KLockFile.html | 82 - python/pykde/doc/classref/kdecore/KMD4.html | 145 - python/pykde/doc/classref/kdecore/KMD5.html | 144 - .../pykde/doc/classref/kdecore/KMacroExpander.html | 113 - .../doc/classref/kdecore/KMacroExpanderBase.html | 99 - .../doc/classref/kdecore/KMimeSourceFactory.html | 54 - python/pykde/doc/classref/kdecore/KMountPoint.html | 92 - .../pykde/doc/classref/kdecore/KMultipleDrag.html | 82 - .../classref/kdecore/KNotifyClient.Instance.html | 58 - .../pykde/doc/classref/kdecore/KNotifyClient.html | 148 - python/pykde/doc/classref/kdecore/KPalette.html | 140 - .../doc/classref/kdecore/KPixmapProvider.html | 49 - python/pykde/doc/classref/kdecore/KProcIO.html | 139 - python/pykde/doc/classref/kdecore/KProcess.html | 348 - .../doc/classref/kdecore/KProcessController.html | 134 - python/pykde/doc/classref/kdecore/KPty.html | 96 - python/pykde/doc/classref/kdecore/KRFCDate.html | 74 - .../doc/classref/kdecore/KRandomSequence.html | 80 - python/pykde/doc/classref/kdecore/KRegExp.html | 82 - python/pykde/doc/classref/kdecore/KRootProp.html | 127 - python/pykde/doc/classref/kdecore/KSaveFile.html | 85 - .../doc/classref/kdecore/KSelectionOwner.html | 114 - .../doc/classref/kdecore/KSelectionWatcher.html | 77 - .../pykde/doc/classref/kdecore/KServerSocket.html | 108 - .../doc/classref/kdecore/KSessionManaged.html | 56 - python/pykde/doc/classref/kdecore/KShared.html | 62 - .../pykde/doc/classref/kdecore/KSharedConfig.html | 64 - python/pykde/doc/classref/kdecore/KShell.html | 88 - .../pykde/doc/classref/kdecore/KShellProcess.html | 68 - python/pykde/doc/classref/kdecore/KShortcut.html | 243 - .../pykde/doc/classref/kdecore/KShortcutList.html | 159 - .../pykde/doc/classref/kdecore/KSimpleConfig.html | 65 - python/pykde/doc/classref/kdecore/KSocket.html | 126 - .../pykde/doc/classref/kdecore/KStartupInfo.html | 227 - .../doc/classref/kdecore/KStartupInfoData.html | 195 - .../pykde/doc/classref/kdecore/KStartupInfoId.html | 98 - .../doc/classref/kdecore/KStaticDeleterBase.html | 45 - .../classref/kdecore/KStdAccel.ShortcutList.html | 108 - python/pykde/doc/classref/kdecore/KStdAccel.html | 284 - .../pykde/doc/classref/kdecore/KStringHandler.html | 292 - python/pykde/doc/classref/kdecore/KTempDir.html | 99 - python/pykde/doc/classref/kdecore/KTempFile.html | 106 - python/pykde/doc/classref/kdecore/KTimezone.html | 129 - .../doc/classref/kdecore/KTimezoneDetails.html | 124 - .../doc/classref/kdecore/KTimezoneSource.html | 60 - python/pykde/doc/classref/kdecore/KTimezones.html | 74 - python/pykde/doc/classref/kdecore/KURL.List.html | 183 - python/pykde/doc/classref/kdecore/KURL.html | 562 - python/pykde/doc/classref/kdecore/KURLDrag.html | 165 - .../doc/classref/kdecore/KUniqueApplication.html | 101 - python/pykde/doc/classref/kdecore/KWin.Info.html | 66 - .../doc/classref/kdecore/KWin.WindowInfo.html | 172 - python/pykde/doc/classref/kdecore/KWin.html | 304 - python/pykde/doc/classref/kdecore/KWinModule.html | 191 - .../doc/classref/kdecore/KWordMacroExpander.html | 75 - .../pykde/doc/classref/kdecore/KZoneAllocator.html | 77 - python/pykde/doc/classref/kdecore/NET.html | 92 - .../doc/classref/kdecore/NETExtendedStrut.html | 60 - python/pykde/doc/classref/kdecore/NETIcon.html | 49 - python/pykde/doc/classref/kdecore/NETPoint.html | 49 - python/pykde/doc/classref/kdecore/NETRect.html | 44 - python/pykde/doc/classref/kdecore/NETRootInfo.html | 424 - .../pykde/doc/classref/kdecore/NETRootInfo2.html | 102 - .../pykde/doc/classref/kdecore/NETRootInfo3.html | 84 - .../pykde/doc/classref/kdecore/NETRootInfo4.html | 62 - python/pykde/doc/classref/kdecore/NETSize.html | 49 - python/pykde/doc/classref/kdecore/NETStrut.html | 51 - python/pykde/doc/classref/kdecore/NETWinInfo.html | 315 - python/pykde/doc/classref/kdecore/index.html | 180 - .../doc/classref/kdecore/kdecore-globals.html | 209 - python/pykde/doc/classref/kdefx/KCPUInfo.html | 52 - python/pykde/doc/classref/kdefx/KImageEffect.html | 523 - python/pykde/doc/classref/kdefx/KPixmap.html | 90 - python/pykde/doc/classref/kdefx/KPixmapEffect.html | 178 - .../pykde/doc/classref/kdefx/KPixmapSplitter.html | 86 - python/pykde/doc/classref/kdefx/KStyle.html | 212 - python/pykde/doc/classref/kdefx/index.html | 41 - python/pykde/doc/classref/kdefx/kdefx-globals.html | 151 - python/pykde/doc/classref/kdeprint/DrBase.html | 137 - .../doc/classref/kdeprint/DrBooleanOption.html | 45 - .../pykde/doc/classref/kdeprint/DrChoiceGroup.html | 48 - .../pykde/doc/classref/kdeprint/DrConstraint.html | 65 - .../pykde/doc/classref/kdeprint/DrFloatOption.html | 60 - python/pykde/doc/classref/kdeprint/DrGroup.html | 136 - .../doc/classref/kdeprint/DrIntegerOption.html | 60 - .../pykde/doc/classref/kdeprint/DrListOption.html | 110 - python/pykde/doc/classref/kdeprint/DrMain.html | 94 - python/pykde/doc/classref/kdeprint/DrPageSize.html | 105 - .../doc/classref/kdeprint/DrStringOption.html | 56 - python/pykde/doc/classref/kdeprint/KMJob.html | 242 - .../classref/kdeprint/KMJobManager.JobFilter.html | 50 - .../pykde/doc/classref/kdeprint/KMJobManager.html | 204 - python/pykde/doc/classref/kdeprint/KMManager.html | 363 - python/pykde/doc/classref/kdeprint/KMObject.html | 53 - python/pykde/doc/classref/kdeprint/KMPrinter.html | 420 - .../doc/classref/kdeprint/KPReloadObject.html | 57 - .../pykde/doc/classref/kdeprint/KPrintAction.html | 127 - .../pykde/doc/classref/kdeprint/KPrintDialog.html | 193 - .../doc/classref/kdeprint/KPrintDialogPage.html | 103 - python/pykde/doc/classref/kdeprint/KPrinter.html | 493 - python/pykde/doc/classref/kdeprint/index.html | 46 - .../doc/classref/kdeprint/kdeprint-globals.html | 45 - .../doc/classref/kdeui/KAboutApplication.html | 64 - .../pykde/doc/classref/kdeui/KAboutContainer.html | 111 - .../doc/classref/kdeui/KAboutContributor.html | 133 - python/pykde/doc/classref/kdeui/KAboutDialog.html | 263 - python/pykde/doc/classref/kdeui/KAboutKDE.html | 49 - python/pykde/doc/classref/kdeui/KAboutWidget.html | 122 - python/pykde/doc/classref/kdeui/KAction.html | 531 - .../doc/classref/kdeui/KActionCollection.html | 574 - python/pykde/doc/classref/kdeui/KActionMenu.html | 227 - .../doc/classref/kdeui/KActionPtrShortcutList.html | 119 - .../pykde/doc/classref/kdeui/KActionSelector.html | 233 - .../pykde/doc/classref/kdeui/KActionSeparator.html | 73 - .../doc/classref/kdeui/KActionShortcutList.html | 121 - python/pykde/doc/classref/kdeui/KActiveLabel.html | 89 - python/pykde/doc/classref/kdeui/KAnimWidget.html | 141 - python/pykde/doc/classref/kdeui/KArrowButton.html | 79 - python/pykde/doc/classref/kdeui/KAuthIcon.html | 65 - python/pykde/doc/classref/kdeui/KBugReport.html | 82 - python/pykde/doc/classref/kdeui/KButtonBox.html | 115 - python/pykde/doc/classref/kdeui/KCModule.html | 162 - python/pykde/doc/classref/kdeui/KCharSelect.html | 201 - .../pykde/doc/classref/kdeui/KCharSelectTable.html | 167 - python/pykde/doc/classref/kdeui/KColor.html | 87 - python/pykde/doc/classref/kdeui/KColorCells.html | 149 - python/pykde/doc/classref/kdeui/KColorCombo.html | 78 - python/pykde/doc/classref/kdeui/KColorDialog.html | 117 - python/pykde/doc/classref/kdeui/KColorDrag.html | 99 - python/pykde/doc/classref/kdeui/KColorPatch.html | 83 - python/pykde/doc/classref/kdeui/KComboBox.html | 261 - python/pykde/doc/classref/kdeui/KCommand.html | 56 - .../pykde/doc/classref/kdeui/KCommandHistory.html | 122 - .../pykde/doc/classref/kdeui/KCompletionBox.html | 156 - python/pykde/doc/classref/kdeui/KConfigDialog.html | 139 - .../doc/classref/kdeui/KContextMenuManager.html | 63 - python/pykde/doc/classref/kdeui/KCursor.html | 136 - .../pykde/doc/classref/kdeui/KDCOPActionProxy.html | 96 - .../classref/kdeui/KDateInternalMonthPicker.html | 141 - .../classref/kdeui/KDateInternalWeekSelector.html | 87 - .../classref/kdeui/KDateInternalYearSelector.html | 76 - python/pykde/doc/classref/kdeui/KDatePicker.html | 200 - python/pykde/doc/classref/kdeui/KDateTable.html | 192 - .../pykde/doc/classref/kdeui/KDateTimeWidget.html | 76 - .../pykde/doc/classref/kdeui/KDateValidator.html | 67 - python/pykde/doc/classref/kdeui/KDateWidget.html | 84 - python/pykde/doc/classref/kdeui/KDialog.html | 125 - python/pykde/doc/classref/kdeui/KDialogBase.html | 706 - python/pykde/doc/classref/kdeui/KDialogQueue.html | 55 - python/pykde/doc/classref/kdeui/KDockArea.html | 135 - .../pykde/doc/classref/kdeui/KDockMainWindow.html | 136 - python/pykde/doc/classref/kdeui/KDockManager.html | 208 - python/pykde/doc/classref/kdeui/KDockTabGroup.html | 52 - python/pykde/doc/classref/kdeui/KDockWidget.html | 320 - .../classref/kdeui/KDockWidgetAbstractHeader.html | 66 - .../kdeui/KDockWidgetAbstractHeaderDrag.html | 52 - .../doc/classref/kdeui/KDockWidgetHeader.html | 108 - .../doc/classref/kdeui/KDockWidgetHeaderDrag.html | 55 - python/pykde/doc/classref/kdeui/KDockWindow.html | 48 - .../pykde/doc/classref/kdeui/KDoubleNumInput.html | 228 - .../pykde/doc/classref/kdeui/KDoubleSpinBox.html | 177 - .../pykde/doc/classref/kdeui/KDoubleValidator.html | 78 - .../pykde/doc/classref/kdeui/KDualColorButton.html | 162 - python/pykde/doc/classref/kdeui/KEdFind.html | 103 - python/pykde/doc/classref/kdeui/KEdGotoLine.html | 58 - python/pykde/doc/classref/kdeui/KEdReplace.html | 112 - python/pykde/doc/classref/kdeui/KEdit.html | 264 - .../classref/kdeui/KEditListBox.CustomEditor.html | 82 - python/pykde/doc/classref/kdeui/KEditListBox.html | 210 - python/pykde/doc/classref/kdeui/KEditToolbar.html | 108 - .../doc/classref/kdeui/KEditToolbarWidget.html | 188 - .../pykde/doc/classref/kdeui/KFloatValidator.html | 101 - python/pykde/doc/classref/kdeui/KFontAction.html | 252 - python/pykde/doc/classref/kdeui/KFontChooser.html | 147 - python/pykde/doc/classref/kdeui/KFontCombo.html | 136 - python/pykde/doc/classref/kdeui/KFontDialog.html | 114 - .../pykde/doc/classref/kdeui/KFontRequester.html | 115 - .../pykde/doc/classref/kdeui/KFontSizeAction.html | 263 - .../doc/classref/kdeui/KGradientSelector.html | 115 - python/pykde/doc/classref/kdeui/KGuiItem.html | 139 - python/pykde/doc/classref/kdeui/KHSSelector.html | 66 - python/pykde/doc/classref/kdeui/KHelpMenu.html | 82 - python/pykde/doc/classref/kdeui/KHistoryCombo.html | 124 - python/pykde/doc/classref/kdeui/KIconView.html | 213 - python/pykde/doc/classref/kdeui/KIconViewItem.html | 150 - .../doc/classref/kdeui/KIconViewSearchLine.html | 131 - python/pykde/doc/classref/kdeui/KInputDialog.html | 217 - python/pykde/doc/classref/kdeui/KIntNumInput.html | 190 - python/pykde/doc/classref/kdeui/KIntSpinBox.html | 84 - python/pykde/doc/classref/kdeui/KIntValidator.html | 93 - python/pykde/doc/classref/kdeui/KJanusWidget.html | 288 - python/pykde/doc/classref/kdeui/KKeyButton.html | 86 - python/pykde/doc/classref/kdeui/KKeyChooser.html | 280 - python/pykde/doc/classref/kdeui/KKeyDialog.html | 170 - .../pykde/doc/classref/kdeui/KLanguageButton.html | 173 - python/pykde/doc/classref/kdeui/KLed.html | 162 - python/pykde/doc/classref/kdeui/KLineEdit.html | 329 - python/pykde/doc/classref/kdeui/KLineEditDlg.html | 85 - python/pykde/doc/classref/kdeui/KListAction.html | 221 - python/pykde/doc/classref/kdeui/KListBox.html | 124 - python/pykde/doc/classref/kdeui/KListView.html | 712 - python/pykde/doc/classref/kdeui/KListViewItem.html | 162 - .../doc/classref/kdeui/KListViewSearchLine.html | 132 - .../classref/kdeui/KListViewSearchLineWidget.html | 65 - python/pykde/doc/classref/kdeui/KMacroCommand.html | 59 - python/pykde/doc/classref/kdeui/KMainWindow.html | 421 - .../doc/classref/kdeui/KMainWindowInterface.html | 171 - python/pykde/doc/classref/kdeui/KMenuBar.html | 158 - python/pykde/doc/classref/kdeui/KMessageBox.html | 677 - .../doc/classref/kdeui/KMimeTypeValidator.html | 60 - python/pykde/doc/classref/kdeui/KNamedCommand.html | 56 - python/pykde/doc/classref/kdeui/KNumInput.html | 93 - python/pykde/doc/classref/kdeui/KPaletteTable.html | 114 - python/pykde/doc/classref/kdeui/KPanelAppMenu.html | 113 - python/pykde/doc/classref/kdeui/KPanelApplet.html | 197 - .../pykde/doc/classref/kdeui/KPanelExtension.html | 181 - python/pykde/doc/classref/kdeui/KPanelMenu.html | 113 - python/pykde/doc/classref/kdeui/KPassivePopup.html | 309 - .../pykde/doc/classref/kdeui/KPasswordDialog.html | 194 - python/pykde/doc/classref/kdeui/KPasswordEdit.html | 122 - .../pykde/doc/classref/kdeui/KPasteTextAction.html | 83 - python/pykde/doc/classref/kdeui/KPixmapIO.html | 105 - .../kdeui/KPixmapRegionSelectorDialog.html | 94 - .../kdeui/KPixmapRegionSelectorWidget.html | 122 - python/pykde/doc/classref/kdeui/KPopupFrame.html | 115 - python/pykde/doc/classref/kdeui/KPopupMenu.html | 244 - python/pykde/doc/classref/kdeui/KPopupTitle.html | 108 - python/pykde/doc/classref/kdeui/KProgress.html | 127 - .../pykde/doc/classref/kdeui/KProgressDialog.html | 133 - python/pykde/doc/classref/kdeui/KPushButton.html | 142 - python/pykde/doc/classref/kdeui/KRadioAction.html | 199 - .../doc/classref/kdeui/KRecentFilesAction.html | 380 - .../pykde/doc/classref/kdeui/KRestrictedLine.html | 70 - .../pykde/doc/classref/kdeui/KRootPermsIcon.html | 54 - python/pykde/doc/classref/kdeui/KRootPixmap.html | 132 - python/pykde/doc/classref/kdeui/KRuler.html | 311 - python/pykde/doc/classref/kdeui/KScrollView.html | 77 - python/pykde/doc/classref/kdeui/KSelectAction.html | 536 - python/pykde/doc/classref/kdeui/KSelector.html | 146 - python/pykde/doc/classref/kdeui/KSeparator.html | 76 - python/pykde/doc/classref/kdeui/KSharedPixmap.html | 82 - .../pykde/doc/classref/kdeui/KShortcutDialog.html | 93 - python/pykde/doc/classref/kdeui/KSplashScreen.html | 49 - .../doc/classref/kdeui/KSqueezedTextLabel.html | 85 - python/pykde/doc/classref/kdeui/KStatusBar.html | 114 - .../pykde/doc/classref/kdeui/KStatusBarLabel.html | 74 - python/pykde/doc/classref/kdeui/KStdAction.html | 579 - python/pykde/doc/classref/kdeui/KStdGuiItem.html | 213 - .../doc/classref/kdeui/KStringListValidator.html | 90 - python/pykde/doc/classref/kdeui/KSystemTray.html | 129 - python/pykde/doc/classref/kdeui/KTabBar.html | 268 - python/pykde/doc/classref/kdeui/KTabCtl.html | 128 - python/pykde/doc/classref/kdeui/KTabWidget.html | 360 - python/pykde/doc/classref/kdeui/KTextBrowser.html | 102 - python/pykde/doc/classref/kdeui/KTextEdit.html | 139 - python/pykde/doc/classref/kdeui/KTimeWidget.html | 76 - .../pykde/doc/classref/kdeui/KTimezoneWidget.html | 70 - python/pykde/doc/classref/kdeui/KTipDatabase.html | 63 - python/pykde/doc/classref/kdeui/KTipDialog.html | 100 - python/pykde/doc/classref/kdeui/KToggleAction.html | 298 - .../classref/kdeui/KToggleFullScreenAction.html | 74 - .../doc/classref/kdeui/KToggleToolBarAction.html | 127 - python/pykde/doc/classref/kdeui/KToolBar.html | 797 -- .../pykde/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 - python/pykde/doc/classref/kdeui/KURLLabel.html | 263 - .../pykde/doc/classref/kdeui/KValueSelector.html | 95 - python/pykde/doc/classref/kdeui/KWidgetAction.html | 133 - python/pykde/doc/classref/kdeui/KWindowInfo.html | 144 - .../pykde/doc/classref/kdeui/KWindowListMenu.html | 67 - python/pykde/doc/classref/kdeui/KWizard.html | 50 - python/pykde/doc/classref/kdeui/KWordWrap.html | 108 - .../pykde/doc/classref/kdeui/KWritePermsIcon.html | 65 - .../pykde/doc/classref/kdeui/KXMLGUIBuilder.html | 107 - .../classref/kdeui/KXMLGUIClient.StateChange.html | 44 - python/pykde/doc/classref/kdeui/KXMLGUIClient.html | 231 - .../pykde/doc/classref/kdeui/KXMLGUIFactory.html | 188 - python/pykde/doc/classref/kdeui/KXYSelector.html | 141 - python/pykde/doc/classref/kdeui/QXEmbed.html | 196 - python/pykde/doc/classref/kdeui/index.html | 213 - python/pykde/doc/classref/kdeui/kdeui-globals.html | 36 - .../pykde/doc/classref/kfile/KAppTreeListItem.html | 101 - .../classref/kfile/KApplicationPropsPlugin.html | 63 - .../pykde/doc/classref/kfile/KApplicationTree.html | 101 - .../doc/classref/kfile/KBindingPropsPlugin.html | 57 - python/pykde/doc/classref/kfile/KCombiView.html | 202 - .../doc/classref/kfile/KCustomMenuEditor.html | 82 - .../doc/classref/kfile/KDesktopPropsPlugin.html | 80 - .../doc/classref/kfile/KDevicePropsPlugin.html | 57 - python/pykde/doc/classref/kfile/KDirOperator.html | 520 - .../pykde/doc/classref/kfile/KDirSelectDialog.html | 89 - python/pykde/doc/classref/kfile/KDirSize.html | 128 - python/pykde/doc/classref/kfile/KDiskFreeSp.html | 81 - .../classref/kfile/KEncodingFileDialog.Result.html | 45 - .../doc/classref/kfile/KEncodingFileDialog.html | 139 - .../pykde/doc/classref/kfile/KExecPropsPlugin.html | 60 - python/pykde/doc/classref/kfile/KFile.html | 108 - .../pykde/doc/classref/kfile/KFileDetailView.html | 274 - python/pykde/doc/classref/kfile/KFileDialog.html | 543 - .../pykde/doc/classref/kfile/KFileFilterCombo.html | 93 - python/pykde/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 - python/pykde/doc/classref/kfile/KFilePreview.html | 206 - .../pykde/doc/classref/kfile/KFilePropsPlugin.html | 110 - .../doc/classref/kfile/KFileSharePropsPlugin.html | 72 - .../pykde/doc/classref/kfile/KFileTreeBranch.html | 157 - python/pykde/doc/classref/kfile/KFileTreeView.html | 265 - .../doc/classref/kfile/KFileTreeViewItem.html | 81 - .../doc/classref/kfile/KFileTreeViewToolTip.html | 53 - python/pykde/doc/classref/kfile/KFileView.html | 301 - .../doc/classref/kfile/KFileViewSignaler.html | 115 - python/pykde/doc/classref/kfile/KIconButton.html | 97 - python/pykde/doc/classref/kfile/KIconCanvas.html | 78 - python/pykde/doc/classref/kfile/KIconDialog.html | 143 - .../doc/classref/kfile/KImageFilePreview.html | 96 - .../doc/classref/kfile/KNotify.Application.html | 75 - .../classref/kfile/KNotify.ApplicationList.html | 39 - python/pykde/doc/classref/kfile/KNotify.Event.html | 64 - .../doc/classref/kfile/KNotify.KNotifyWidget.html | 150 - .../doc/classref/kfile/KNotify.ListViewItem.html | 62 - python/pykde/doc/classref/kfile/KNotify.html | 41 - python/pykde/doc/classref/kfile/KNotifyDialog.html | 89 - python/pykde/doc/classref/kfile/KOpenWithDlg.html | 141 - .../doc/classref/kfile/KPreviewWidgetBase.html | 70 - .../doc/classref/kfile/KPropertiesDialog.html | 223 - .../pykde/doc/classref/kfile/KPropsDlgPlugin.html | 72 - python/pykde/doc/classref/kfile/KRecentDirs.html | 62 - .../pykde/doc/classref/kfile/KRecentDocument.html | 80 - python/pykde/doc/classref/kfile/KURLBar.html | 211 - python/pykde/doc/classref/kfile/KURLBarItem.html | 141 - .../doc/classref/kfile/KURLBarItemDialog.html | 84 - .../pykde/doc/classref/kfile/KURLBarListBox.html | 96 - python/pykde/doc/classref/kfile/KURLComboBox.html | 148 - .../doc/classref/kfile/KURLComboRequester.html | 49 - .../pykde/doc/classref/kfile/KURLPropsPlugin.html | 57 - python/pykde/doc/classref/kfile/KURLRequester.html | 171 - .../pykde/doc/classref/kfile/KURLRequesterDlg.html | 78 - python/pykde/doc/classref/kfile/index.html | 91 - .../pykde/doc/classref/khtml/DOM.AbstractView.html | 69 - python/pykde/doc/classref/khtml/DOM.Attr.html | 77 - .../pykde/doc/classref/khtml/DOM.CDATASection.html | 59 - .../doc/classref/khtml/DOM.CSSCharsetRule.html | 68 - .../pykde/doc/classref/khtml/DOM.CSSException.html | 60 - .../doc/classref/khtml/DOM.CSSFontFaceRule.html | 62 - .../doc/classref/khtml/DOM.CSSImportRule.html | 68 - .../pykde/doc/classref/khtml/DOM.CSSMediaRule.html | 78 - .../pykde/doc/classref/khtml/DOM.CSSPageRule.html | 71 - .../doc/classref/khtml/DOM.CSSPrimitiveValue.html | 98 - python/pykde/doc/classref/khtml/DOM.CSSRule.html | 89 - .../pykde/doc/classref/khtml/DOM.CSSRuleList.html | 71 - .../classref/khtml/DOM.CSSStyleDeclaration.html | 112 - .../pykde/doc/classref/khtml/DOM.CSSStyleRule.html | 71 - .../doc/classref/khtml/DOM.CSSStyleSheet.html | 78 - .../doc/classref/khtml/DOM.CSSUnknownRule.html | 59 - python/pykde/doc/classref/khtml/DOM.CSSValue.html | 81 - .../pykde/doc/classref/khtml/DOM.CSSValueList.html | 68 - .../doc/classref/khtml/DOM.CharacterData.html | 106 - python/pykde/doc/classref/khtml/DOM.Comment.html | 59 - python/pykde/doc/classref/khtml/DOM.Counter.html | 68 - .../doc/classref/khtml/DOM.CustomNodeFilter.html | 56 - .../pykde/doc/classref/khtml/DOM.DOMException.html | 60 - .../doc/classref/khtml/DOM.DOMImplementation.html | 101 - python/pykde/doc/classref/khtml/DOM.DOMString.html | 158 - python/pykde/doc/classref/khtml/DOM.Document.html | 292 - .../doc/classref/khtml/DOM.DocumentFragment.html | 59 - .../doc/classref/khtml/DOM.DocumentStyle.html | 71 - .../pykde/doc/classref/khtml/DOM.DocumentType.html | 77 - python/pykde/doc/classref/khtml/DOM.DomShared.html | 59 - python/pykde/doc/classref/khtml/DOM.Element.html | 220 - python/pykde/doc/classref/khtml/DOM.Entity.html | 68 - .../doc/classref/khtml/DOM.EntityReference.html | 59 - python/pykde/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 - .../classref/khtml/DOM.HTMLBaseFontElement.html | 97 - .../classref/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 - .../classref/khtml/DOM.HTMLDirectoryElement.html | 68 - .../doc/classref/khtml/DOM.HTMLDivElement.html | 68 - .../pykde/doc/classref/khtml/DOM.HTMLDocument.html | 156 - .../pykde/doc/classref/khtml/DOM.HTMLElement.html | 150 - .../classref/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 - .../classref/khtml/DOM.HTMLFrameSetElement.html | 77 - .../doc/classref/khtml/DOM.HTMLHRElement.html | 95 - .../doc/classref/khtml/DOM.HTMLHeadElement.html | 68 - .../doc/classref/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 - .../doc/classref/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 - .../classref/khtml/DOM.HTMLOptGroupElement.html | 77 - .../doc/classref/khtml/DOM.HTMLOptionElement.html | 119 - .../classref/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 - .../classref/khtml/DOM.HTMLTableCellElement.html | 194 - .../classref/khtml/DOM.HTMLTableColElement.html | 113 - .../doc/classref/khtml/DOM.HTMLTableElement.html | 203 - .../classref/khtml/DOM.HTMLTableRowElement.html | 143 - .../khtml/DOM.HTMLTableSectionElement.html | 110 - .../classref/khtml/DOM.HTMLTextAreaElement.html | 189 - .../doc/classref/khtml/DOM.HTMLTitleElement.html | 68 - .../doc/classref/khtml/DOM.HTMLUListElement.html | 77 - python/pykde/doc/classref/khtml/DOM.LinkStyle.html | 56 - python/pykde/doc/classref/khtml/DOM.MediaList.html | 89 - .../pykde/doc/classref/khtml/DOM.MouseEvent.html | 109 - .../doc/classref/khtml/DOM.MutationEvent.html | 99 - .../pykde/doc/classref/khtml/DOM.NamedNodeMap.html | 106 - python/pykde/doc/classref/khtml/DOM.Node.html | 221 - .../pykde/doc/classref/khtml/DOM.NodeFilter.html | 88 - .../pykde/doc/classref/khtml/DOM.NodeIterator.html | 80 - python/pykde/doc/classref/khtml/DOM.NodeList.html | 68 - python/pykde/doc/classref/khtml/DOM.Notation.html | 65 - .../classref/khtml/DOM.ProcessingInstruction.html | 74 - python/pykde/doc/classref/khtml/DOM.RGBColor.html | 80 - python/pykde/doc/classref/khtml/DOM.Range.html | 204 - .../doc/classref/khtml/DOM.RangeException.html | 60 - python/pykde/doc/classref/khtml/DOM.Rect.html | 71 - .../pykde/doc/classref/khtml/DOM.StyleSheet.html | 89 - .../doc/classref/khtml/DOM.StyleSheetList.html | 68 - python/pykde/doc/classref/khtml/DOM.Text.html | 65 - python/pykde/doc/classref/khtml/DOM.TextEvent.html | 113 - .../pykde/doc/classref/khtml/DOM.TreeWalker.html | 109 - python/pykde/doc/classref/khtml/DOM.UIEvent.html | 103 - python/pykde/doc/classref/khtml/DOM.html | 57 - python/pykde/doc/classref/khtml/KHTMLPart.html | 807 -- python/pykde/doc/classref/khtml/KHTMLSettings.html | 318 - python/pykde/doc/classref/khtml/KHTMLView.html | 287 - python/pykde/doc/classref/khtml/index.html | 153 - python/pykde/doc/classref/khtml/khtml-globals.html | 28 - python/pykde/doc/classref/kio/KACL.html | 209 - python/pykde/doc/classref/kio/KAr.html | 104 - python/pykde/doc/classref/kio/KArchive.html | 288 - .../pykde/doc/classref/kio/KArchiveDirectory.html | 79 - python/pykde/doc/classref/kio/KArchiveEntry.html | 83 - python/pykde/doc/classref/kio/KArchiveFile.html | 84 - python/pykde/doc/classref/kio/KAutoMount.html | 67 - python/pykde/doc/classref/kio/KAutoUnmount.html | 63 - .../doc/classref/kio/KDCOPServiceStarter.html | 78 - .../classref/kio/KDEDesktopMimeType.Service.html | 56 - .../pykde/doc/classref/kio/KDEDesktopMimeType.html | 196 - python/pykde/doc/classref/kio/KDataTool.html | 67 - python/pykde/doc/classref/kio/KDataToolAction.html | 70 - python/pykde/doc/classref/kio/KDataToolInfo.html | 106 - python/pykde/doc/classref/kio/KDirLister.html | 356 - python/pykde/doc/classref/kio/KDirNotify.html | 93 - python/pykde/doc/classref/kio/KDirWatch.html | 168 - python/pykde/doc/classref/kio/KEMailSettings.html | 88 - python/pykde/doc/classref/kio/KExecMimeType.html | 54 - python/pykde/doc/classref/kio/KFileFilter.html | 48 - python/pykde/doc/classref/kio/KFileItem.html | 326 - python/pykde/doc/classref/kio/KFileMetaInfo.html | 197 - .../pykde/doc/classref/kio/KFileMetaInfoGroup.html | 153 - .../pykde/doc/classref/kio/KFileMetaInfoItem.html | 122 - .../doc/classref/kio/KFileMetaInfoProvider.html | 95 - .../classref/kio/KFileMimeTypeInfo.GroupInfo.html | 72 - .../classref/kio/KFileMimeTypeInfo.ItemInfo.html | 87 - .../pykde/doc/classref/kio/KFileMimeTypeInfo.html | 104 - python/pykde/doc/classref/kio/KFilePlugin.html | 161 - python/pykde/doc/classref/kio/KFileShare.html | 118 - .../pykde/doc/classref/kio/KFileSharePrivate.html | 62 - python/pykde/doc/classref/kio/KFilterBase.html | 141 - python/pykde/doc/classref/kio/KFilterDev.html | 149 - python/pykde/doc/classref/kio/KFolderType.html | 82 - python/pykde/doc/classref/kio/KIO.AuthInfo.html | 74 - python/pykde/doc/classref/kio/KIO.ChmodJob.html | 72 - python/pykde/doc/classref/kio/KIO.Connection.html | 105 - python/pykde/doc/classref/kio/KIO.CopyInfo.html | 49 - python/pykde/doc/classref/kio/KIO.CopyJob.html | 276 - python/pykde/doc/classref/kio/KIO.DavJob.html | 66 - .../doc/classref/kio/KIO.DefaultProgress.html | 223 - python/pykde/doc/classref/kio/KIO.DeleteJob.html | 125 - .../pykde/doc/classref/kio/KIO.DirectCopyJob.html | 66 - python/pykde/doc/classref/kio/KIO.FileCopyJob.html | 152 - .../doc/classref/kio/KIO.ForwardingSlaveBase.html | 166 - python/pykde/doc/classref/kio/KIO.Job.html | 307 - python/pykde/doc/classref/kio/KIO.ListJob.html | 126 - python/pykde/doc/classref/kio/KIO.MetaInfoJob.html | 91 - python/pykde/doc/classref/kio/KIO.MimetypeJob.html | 62 - python/pykde/doc/classref/kio/KIO.MkdirJob.html | 94 - python/pykde/doc/classref/kio/KIO.MultiGetJob.html | 103 - python/pykde/doc/classref/kio/KIO.NetAccess.html | 323 - .../doc/classref/kio/KIO.NetRC.AutoLogin.html | 47 - python/pykde/doc/classref/kio/KIO.NetRC.html | 90 - .../pykde/doc/classref/kio/KIO.PasswordDialog.html | 120 - python/pykde/doc/classref/kio/KIO.PreviewJob.html | 114 - .../pykde/doc/classref/kio/KIO.ProgressBase.html | 201 - python/pykde/doc/classref/kio/KIO.Scheduler.html | 267 - python/pykde/doc/classref/kio/KIO.SessionData.html | 69 - python/pykde/doc/classref/kio/KIO.SimpleJob.html | 148 - python/pykde/doc/classref/kio/KIO.Slave.html | 200 - python/pykde/doc/classref/kio/KIO.SlaveBase.html | 631 - python/pykde/doc/classref/kio/KIO.SlaveConfig.html | 90 - .../pykde/doc/classref/kio/KIO.SlaveInterface.html | 284 - python/pykde/doc/classref/kio/KIO.StatJob.html | 109 - .../doc/classref/kio/KIO.StatusbarProgress.html | 88 - .../doc/classref/kio/KIO.StoredTransferJob.html | 63 - .../pykde/doc/classref/kio/KIO.TCPSlaveBase.html | 230 - python/pykde/doc/classref/kio/KIO.Task.html | 44 - python/pykde/doc/classref/kio/KIO.TransferJob.html | 198 - python/pykde/doc/classref/kio/KIO.UDSAtom.html | 45 - python/pykde/doc/classref/kio/KIO.html | 645 - python/pykde/doc/classref/kio/KImageIO.html | 120 - python/pykde/doc/classref/kio/KMimeMagic.html | 96 - .../pykde/doc/classref/kio/KMimeMagicResult.html | 68 - .../pykde/doc/classref/kio/KMimeType.Format.html | 48 - python/pykde/doc/classref/kio/KMimeType.html | 290 - .../pykde/doc/classref/kio/KMimeTypeChooser.html | 69 - .../doc/classref/kio/KMimeTypeChooserDialog.html | 71 - python/pykde/doc/classref/kio/KNFSShare.html | 69 - python/pykde/doc/classref/kio/KOCRDialog.html | 73 - .../pykde/doc/classref/kio/KOCRDialogFactory.html | 75 - .../pykde/doc/classref/kio/KOpenWithHandler.html | 48 - python/pykde/doc/classref/kio/KProcessRunner.html | 87 - .../doc/classref/kio/KProtocolInfo.ExtraField.html | 58 - python/pykde/doc/classref/kio/KProtocolInfo.html | 466 - .../pykde/doc/classref/kio/KProtocolManager.html | 189 - python/pykde/doc/classref/kio/KRemoteEncoding.html | 114 - python/pykde/doc/classref/kio/KRun.html | 360 - python/pykde/doc/classref/kio/KSambaShare.html | 69 - python/pykde/doc/classref/kio/KScanDialog.html | 90 - .../pykde/doc/classref/kio/KScanDialogFactory.html | 75 - python/pykde/doc/classref/kio/KService.html | 324 - python/pykde/doc/classref/kio/KServiceGroup.html | 240 - python/pykde/doc/classref/kio/KServiceOffer.html | 79 - .../pykde/doc/classref/kio/KServiceSeparator.html | 67 - python/pykde/doc/classref/kio/KServiceType.html | 169 - .../doc/classref/kio/KServiceTypeProfile.html | 111 - .../pykde/doc/classref/kio/KShellCompletion.html | 65 - python/pykde/doc/classref/kio/KShred.html | 91 - .../pykde/doc/classref/kio/KSimpleFileFilter.html | 104 - python/pykde/doc/classref/kio/KSycoca.html | 172 - python/pykde/doc/classref/kio/KSycocaDict.html | 96 - python/pykde/doc/classref/kio/KSycocaEntry.html | 111 - python/pykde/doc/classref/kio/KSycocaFactory.html | 104 - python/pykde/doc/classref/kio/KTar.html | 177 - python/pykde/doc/classref/kio/KTrader.html | 65 - python/pykde/doc/classref/kio/KURIFilter.html | 93 - python/pykde/doc/classref/kio/KURIFilterData.html | 137 - .../pykde/doc/classref/kio/KURIFilterPlugin.html | 100 - python/pykde/doc/classref/kio/KURLCompletion.html | 152 - .../pykde/doc/classref/kio/KURLPixmapProvider.html | 48 - python/pykde/doc/classref/kio/KZip.html | 228 - python/pykde/doc/classref/kio/KZipFileEntry.html | 108 - python/pykde/doc/classref/kio/Observer.html | 289 - python/pykde/doc/classref/kio/RenameDlgPlugin.html | 65 - python/pykde/doc/classref/kio/ThumbCreator.html | 57 - python/pykde/doc/classref/kio/index.html | 148 - python/pykde/doc/classref/kio/kio-globals.html | 53 - python/pykde/doc/classref/kmdi/KMdi.html | 47 - python/pykde/doc/classref/kmdi/KMdiChildArea.html | 214 - python/pykde/doc/classref/kmdi/KMdiChildFrm.html | 254 - .../doc/classref/kmdi/KMdiChildFrmCaption.html | 106 - .../classref/kmdi/KMdiChildFrmDragBeginEvent.html | 47 - .../classref/kmdi/KMdiChildFrmDragEndEvent.html | 47 - .../doc/classref/kmdi/KMdiChildFrmMoveEvent.html | 47 - .../kmdi/KMdiChildFrmResizeBeginEvent.html | 47 - .../classref/kmdi/KMdiChildFrmResizeEndEvent.html | 47 - python/pykde/doc/classref/kmdi/KMdiChildView.html | 385 - python/pykde/doc/classref/kmdi/KMdiMainFrm.html | 580 - python/pykde/doc/classref/kmdi/KMdiTaskBar.html | 101 - .../pykde/doc/classref/kmdi/KMdiTaskBarButton.html | 104 - .../doc/classref/kmdi/KMdiToolViewAccessor.html | 99 - .../doc/classref/kmdi/KMdiViewCloseEvent.html | 47 - .../doc/classref/kmdi/KMdiWin32IconButton.html | 57 - python/pykde/doc/classref/kmdi/index.html | 51 - python/pykde/doc/classref/kmdi/kmdi-globals.html | 28 - .../doc/classref/kparts/ExtTerminalInterface.html | 82 - .../classref/kparts/KParts.BrowserExtension.html | 322 - .../kparts/KParts.BrowserHostExtension.html | 76 - .../classref/kparts/KParts.BrowserInterface.html | 55 - .../doc/classref/kparts/KParts.BrowserRun.html | 197 - .../doc/classref/kparts/KParts.DockMainWindow.html | 67 - python/pykde/doc/classref/kparts/KParts.Event.html | 65 - .../pykde/doc/classref/kparts/KParts.Factory.html | 91 - .../classref/kparts/KParts.GUIActivateEvent.html | 57 - .../classref/kparts/KParts.HistoryProvider.html | 82 - .../kparts/KParts.LiveConnectExtension.html | 98 - .../doc/classref/kparts/KParts.MainWindow.html | 88 - .../doc/classref/kparts/KParts.OpenURLEvent.html | 65 - python/pykde/doc/classref/kparts/KParts.Part.html | 130 - .../classref/kparts/KParts.PartActivateEvent.html | 65 - .../pykde/doc/classref/kparts/KParts.PartBase.html | 78 - .../doc/classref/kparts/KParts.PartManager.html | 204 - .../classref/kparts/KParts.PartSelectEvent.html | 65 - .../classref/kparts/KParts.Plugin.PluginInfo.html | 45 - .../pykde/doc/classref/kparts/KParts.Plugin.html | 118 - .../doc/classref/kparts/KParts.ReadOnlyPart.html | 131 - .../doc/classref/kparts/KParts.ReadWritePart.html | 112 - .../classref/kparts/KParts.StatusBarExtension.html | 92 - .../pykde/doc/classref/kparts/KParts.URLArgs.html | 134 - .../doc/classref/kparts/KParts.WindowArgs.html | 90 - python/pykde/doc/classref/kparts/KParts.html | 41 - .../doc/classref/kparts/TerminalInterface.html | 63 - python/pykde/doc/classref/kparts/index.html | 65 - .../classref/kparts/konsoleBrowserExtension.html | 53 - .../pykde/doc/classref/kparts/konsoleFactory.html | 59 - python/pykde/doc/classref/kparts/konsolePart.html | 237 - .../pykde/doc/classref/kparts/kparts-globals.html | 110 - .../doc/classref/kresources/KRES.ConfigDialog.html | 76 - .../doc/classref/kresources/KRES.ConfigWidget.html | 79 - .../doc/classref/kresources/KRES.Factory.html | 90 - .../kresources/KRES.PluginFactoryBase.html | 67 - .../doc/classref/kresources/KRES.Resource.html | 134 - .../classref/kresources/KRES.ResourcePageInfo.html | 50 - .../doc/classref/kresources/KRES.SelectDialog.html | 70 - python/pykde/doc/classref/kresources/KRES.html | 41 - python/pykde/doc/classref/kresources/index.html | 42 - .../classref/kspell/KDictSpellingHighlighter.html | 168 - python/pykde/doc/classref/kspell/KSpell.html | 408 - python/pykde/doc/classref/kspell/KSpellConfig.html | 211 - python/pykde/doc/classref/kspell/KSpellDlg.html | 158 - .../doc/classref/kspell/KSpellingHighlighter.html | 86 - .../doc/classref/kspell/KSyntaxHighlighter.html | 65 - python/pykde/doc/classref/kspell/index.html | 41 - .../pykde/doc/classref/kspell/kspell-globals.html | 38 - .../doc/classref/kutils/KCModuleContainer.html | 74 - python/pykde/doc/classref/kutils/KCModuleInfo.html | 219 - .../pykde/doc/classref/kutils/KCModuleLoader.html | 135 - .../pykde/doc/classref/kutils/KCModuleProxy.html | 182 - .../pykde/doc/classref/kutils/KCMultiDialog.html | 135 - python/pykde/doc/classref/kutils/KFind.html | 222 - python/pykde/doc/classref/kutils/KFindDialog.html | 188 - python/pykde/doc/classref/kutils/KMultiTabBar.html | 163 - .../doc/classref/kutils/KMultiTabBarButton.html | 120 - .../pykde/doc/classref/kutils/KMultiTabBarTab.html | 139 - python/pykde/doc/classref/kutils/KPluginInfo.html | 213 - .../pykde/doc/classref/kutils/KPluginSelector.html | 105 - python/pykde/doc/classref/kutils/KReplace.html | 143 - .../pykde/doc/classref/kutils/KReplaceDialog.html | 97 - python/pykde/doc/classref/kutils/index.html | 47 - python/pykde/doc/dcopext.html | 378 - python/pykde/doc/examples.html | 125 - python/pykde/doc/images/kdcop1.png | Bin 28836 -> 0 bytes python/pykde/doc/images/kdcop2.png | Bin 6264 -> 0 bytes python/pykde/doc/images/khtmlpart.png | Bin 72815 -> 0 bytes python/pykde/doc/images/mimetype.png | Bin 24439 -> 0 bytes python/pykde/doc/images/uisampler.png | Bin 54104 -> 0 bytes python/pykde/doc/index.html | 139 - python/pykde/doc/index1.html | 82 - python/pykde/doc/install.html | 181 - python/pykde/doc/kde.css | 8 - python/pykde/doc/libpythonize.html | 224 - python/pykde/doc/limits.html | 427 - python/pykde/doc/signal.html | 290 - python/pykde/doc/static.html | 183 - python/pykde/doc/switches.html | 253 - python/pykde/doc/trouble.html | 337 - python/pykde/examples/README | 17 - python/pykde/examples/aboutkde.png | Bin 33856 -> 0 bytes python/pykde/examples/astron.png | Bin 32329 -> 0 bytes python/pykde/examples/example_dcopexport.py | 136 - python/pykde/examples/example_dcopext.py | 135 - python/pykde/examples/kdeform1.ui | 335 - python/pykde/examples/kdeform1.ui.h | 13 - python/pykde/examples/kpartgui.dtd | 122 - python/pykde/examples/kurldemo.py | 98 - python/pykde/examples/menudemo.py | 291 - python/pykde/examples/mimetype.py | 269 - python/pykde/examples/pyKHTMLPart.py | 214 - python/pykde/examples/pykde-sampler/HOWTO.samples | 60 - python/pykde/examples/pykde-sampler/TODO | 12 - python/pykde/examples/pykde-sampler/__init__.py | 1 - python/pykde/examples/pykde-sampler/about.py | 57 - .../pykde-sampler/basic_widgets/__init__.py | 17 - .../pykde-sampler/basic_widgets/datepicker.py | 42 - .../pykde-sampler/basic_widgets/historycombo.py | 53 - .../pykde/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 - .../pykde/examples/pykde-sampler/dialogs/color.py | 42 - .../pykde/examples/pykde-sampler/dialogs/config.py | 59 - .../pykde/examples/pykde-sampler/dialogs/edfind.py | 52 - .../examples/pykde-sampler/dialogs/edreplace.py | 52 - .../pykde/examples/pykde-sampler/dialogs/font.py | 53 - .../pykde/examples/pykde-sampler/dialogs/input.py | 87 - python/pykde/examples/pykde-sampler/dialogs/key.py | 29 - .../pykde/examples/pykde-sampler/dialogs/msgbox.py | 141 - .../pykde/examples/pykde-sampler/dialogs/passwd.py | 34 - .../examples/pykde-sampler/dialogs/progress.py | 39 - python/pykde/examples/pykde-sampler/dialogs/tip.py | 31 - python/pykde/examples/pykde-sampler/dialogs/tips | 24 - python/pykde/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 - python/pykde/examples/pykde-sampler/lib.py | 105 - .../pykde/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 - python/pykde/examples/pykde-sampler/runner.py | 58 - python/pykde/examples/pykde-sampler/sampler.py | 423 - python/pykde/examples/pykde-sampler/sampler.rc | 13 - .../examples/pykde-sampler/wizards/__init__.py | 2 - python/pykde/examples/pykde-sampler/wizards/wiz.py | 2 - .../pykde/examples/pykde-sampler/xwin/__init__.py | 18 - python/pykde/examples/pytestimage.png | Bin 36986 -> 0 bytes python/pykde/examples/qxembed_example.png | Bin 22146 -> 0 bytes python/pykde/examples/qxembedexample.py | 79 - python/pykde/examples/qxembedexample.ui | 150 - python/pykde/examples/systray.py | 54 - python/pykde/examples/uikmdi.py | 203 - python/pykde/examples/uikmdi.rc | 11 - python/pykde/examples/uimodules/uidialogs.py | 232 - python/pykde/examples/uimodules/uimenus.py | 108 - python/pykde/examples/uimodules/uimisc.py | 239 - python/pykde/examples/uimodules/uiwidgets.py | 754 -- python/pykde/examples/uimodules/uixml.py | 45 - python/pykde/examples/uiqxembed.py | 119 - python/pykde/examples/uisampler.py | 227 - python/pykde/examples/xmlmenudemo.py | 291 - python/pykde/examples/xmlmenudemoui.rc | 49 - python/pykde/extensions/dcopexport.py | 196 - python/pykde/extensions/dcopext.py | 721 -- python/pykde/extra/kde300/kaccelaction.h | 202 - python/pykde/extra/kde300/kaccelbase.h | 233 - python/pykde/extra/kde300/kicontheme.h | 217 - python/pykde/extra/kde300/kkeyserver_x11.h | 131 - python/pykde/extra/kde300/konsole_part.h | 223 - python/pykde/extra/kde300/krecentdirs.h | 68 - python/pykde/extra/kde300/ksycocafactory.h | 135 - python/pykde/extra/kde300/ktoolbarbutton.h | 306 - python/pykde/extra/kde300/kurifilter.h | 593 - python/pykde/extra/kde301/kaccelaction.h | 202 - python/pykde/extra/kde301/kaccelbase.h | 233 - python/pykde/extra/kde301/kicontheme.h | 217 - python/pykde/extra/kde301/kkeyserver_x11.h | 131 - python/pykde/extra/kde301/konsole_part.h | 223 - python/pykde/extra/kde301/krecentdirs.h | 68 - python/pykde/extra/kde301/ksycocafactory.h | 135 - python/pykde/extra/kde301/ktoolbarbutton.h | 313 - python/pykde/extra/kde301/kurifilter.h | 593 - python/pykde/extra/kde303/kaccelaction.h | 202 - python/pykde/extra/kde303/kaccelbase.h | 233 - python/pykde/extra/kde303/kicontheme.h | 217 - python/pykde/extra/kde303/kkeyserver_x11.h | 131 - python/pykde/extra/kde303/konsole_part.h | 223 - python/pykde/extra/kde303/krecentdirs.h | 68 - python/pykde/extra/kde303/ksycocafactory.h | 135 - python/pykde/extra/kde303/ktoolbarbutton.h | 313 - python/pykde/extra/kde303/kurifilter.h | 593 - python/pykde/extra/kde310/kaccelaction.h | 564 - python/pykde/extra/kde310/kaccelbase.h | 229 - python/pykde/extra/kde310/kicontheme.h | 331 - python/pykde/extra/kde310/kkeyserver_x11.h | 435 - python/pykde/extra/kde310/konsole_part.h | 223 - python/pykde/extra/kde310/kpanelmenu.h | 181 - python/pykde/extra/kde310/krecentdirs.h | 68 - python/pykde/extra/kde310/ksycocafactory.h | 137 - python/pykde/extra/kde310/ktoolbarbutton.h | 317 - python/pykde/extra/kde310/kurifilter.h | 602 - python/pykde/extra/kde311/kaccelaction.h | 564 - python/pykde/extra/kde311/kaccelbase.h | 229 - python/pykde/extra/kde311/kicontheme.h | 331 - python/pykde/extra/kde311/kkeyserver_x11.h | 435 - python/pykde/extra/kde311/konsole_part.h | 223 - python/pykde/extra/kde311/kpanelmenu.h | 177 - python/pykde/extra/kde311/krecentdirs.h | 68 - python/pykde/extra/kde311/ksycocafactory.h | 137 - python/pykde/extra/kde311/ktoolbarbutton.h | 317 - python/pykde/extra/kde311/kurifilter.h | 602 - python/pykde/extra/kde312/kaccelaction.h | 564 - python/pykde/extra/kde312/kaccelbase.h | 229 - python/pykde/extra/kde312/kicontheme.h | 331 - python/pykde/extra/kde312/kkeyserver_x11.h | 435 - python/pykde/extra/kde312/konsole_part.h | 223 - python/pykde/extra/kde312/kpanelmenu.h | 181 - python/pykde/extra/kde312/krecentdirs.h | 68 - python/pykde/extra/kde312/ksycocafactory.h | 137 - python/pykde/extra/kde312/ktoolbarbutton.h | 317 - python/pykde/extra/kde312/kurifilter.h | 602 - python/pykde/extra/kde313/kaccelaction.h | 564 - python/pykde/extra/kde313/kaccelbase.h | 229 - python/pykde/extra/kde313/kicontheme.h | 331 - python/pykde/extra/kde313/kkeyserver_x11.h | 435 - python/pykde/extra/kde313/konsole_part.h | 223 - python/pykde/extra/kde313/kpanelmenu.h | 181 - python/pykde/extra/kde313/krecentdirs.h | 68 - python/pykde/extra/kde313/ksycocafactory.h | 137 - python/pykde/extra/kde313/ktoolbarbutton.h | 317 - python/pykde/extra/kde313/kurifilter.h | 602 - python/pykde/extra/kde314/kaccelaction.h | 564 - python/pykde/extra/kde314/kaccelbase.h | 229 - python/pykde/extra/kde314/kicontheme.h | 331 - python/pykde/extra/kde314/kkeyserver_x11.h | 435 - python/pykde/extra/kde314/konsole_part.h | 223 - python/pykde/extra/kde314/kpanelmenu.h | 181 - python/pykde/extra/kde314/krecentdirs.h | 68 - python/pykde/extra/kde314/ksycocafactory.h | 137 - python/pykde/extra/kde314/ktoolbarbutton.h | 317 - python/pykde/extra/kde314/kurifilter.h | 602 - python/pykde/extra/kde315/kaccelaction.h | 564 - python/pykde/extra/kde315/kaccelbase.h | 229 - python/pykde/extra/kde315/kicontheme.h | 331 - python/pykde/extra/kde315/kkeyserver_x11.h | 435 - python/pykde/extra/kde315/konsole_part.h | 223 - python/pykde/extra/kde315/kpanelmenu.h | 181 - python/pykde/extra/kde315/krecentdirs.h | 68 - python/pykde/extra/kde315/ksycocafactory.h | 137 - python/pykde/extra/kde315/ktoolbarbutton.h | 317 - python/pykde/extra/kde315/kurifilter.h | 602 - python/pykde/extra/kde320/configwidget.h | 58 - python/pykde/extra/kde320/kaccelaction.h | 564 - python/pykde/extra/kde320/kaccelbase.h | 230 - python/pykde/extra/kde320/kicontheme.h | 334 - python/pykde/extra/kde320/kkeyserver_x11.h | 433 - python/pykde/extra/kde320/konsole_part.h | 223 - python/pykde/extra/kde320/kpanelmenu.h | 181 - python/pykde/extra/kde320/krecentdirs.h | 68 - python/pykde/extra/kde320/ksharedptr.h | 171 - python/pykde/extra/kde320/ksycocafactory.h | 143 - python/pykde/extra/kde320/ktoolbarbutton.h | 315 - python/pykde/extra/kde320/kurifilter.h | 644 - python/pykde/extra/kde320/selectdialog.h | 87 - python/pykde/extra/kde321/configwidget.h | 58 - python/pykde/extra/kde321/kaccelaction.h | 564 - python/pykde/extra/kde321/kaccelbase.h | 230 - python/pykde/extra/kde321/kicontheme.h | 334 - python/pykde/extra/kde321/kkeyserver_x11.h | 433 - python/pykde/extra/kde321/konsole_part.h | 223 - python/pykde/extra/kde321/kpanelmenu.h | 181 - python/pykde/extra/kde321/krecentdirs.h | 68 - python/pykde/extra/kde321/ksharedptr.h | 171 - python/pykde/extra/kde321/ksycocafactory.h | 143 - python/pykde/extra/kde321/ktoolbarbutton.h | 315 - python/pykde/extra/kde321/kurifilter.h | 644 - python/pykde/extra/kde321/selectdialog.h | 87 - python/pykde/extra/kde322/configwidget.h | 58 - python/pykde/extra/kde322/kaccelaction.h | 564 - python/pykde/extra/kde322/kaccelbase.h | 230 - python/pykde/extra/kde322/kicontheme.h | 334 - python/pykde/extra/kde322/kkeyserver_x11.h | 433 - python/pykde/extra/kde322/konsole_part.h | 223 - python/pykde/extra/kde322/kpanelmenu.h | 181 - python/pykde/extra/kde322/krecentdirs.h | 68 - python/pykde/extra/kde322/ksharedptr.h | 171 - python/pykde/extra/kde322/ksycocafactory.h | 143 - python/pykde/extra/kde322/ktoolbarbutton.h | 315 - python/pykde/extra/kde322/kurifilter.h | 644 - python/pykde/extra/kde322/selectdialog.h | 87 - python/pykde/extra/kde323/configwidget.h | 58 - python/pykde/extra/kde323/kaccelaction.h | 564 - python/pykde/extra/kde323/kaccelbase.h | 230 - python/pykde/extra/kde323/kicontheme.h | 334 - python/pykde/extra/kde323/kkeyserver_x11.h | 433 - python/pykde/extra/kde323/konsole_part.h | 223 - python/pykde/extra/kde323/kpanelmenu.h | 181 - python/pykde/extra/kde323/krecentdirs.h | 68 - python/pykde/extra/kde323/ksharedptr.h | 171 - python/pykde/extra/kde323/ksycocafactory.h | 143 - python/pykde/extra/kde323/ktoolbarbutton.h | 315 - python/pykde/extra/kde323/kurifilter.h | 644 - python/pykde/extra/kde323/selectdialog.h | 87 - python/pykde/extra/kde330/configwidget.h | 58 - python/pykde/extra/kde330/kaccelaction.h | 564 - python/pykde/extra/kde330/kaccelbase.h | 230 - python/pykde/extra/kde330/kicontheme.h | 336 - python/pykde/extra/kde330/kkeyserver_x11.h | 433 - python/pykde/extra/kde330/konsole_part.h | 229 - python/pykde/extra/kde330/kpanelmenu.h | 181 - python/pykde/extra/kde330/krecentdirs.h | 68 - python/pykde/extra/kde330/ksharedptr.h | 175 - python/pykde/extra/kde330/ksycocafactory.h | 143 - python/pykde/extra/kde330/ktoolbarbutton.h | 315 - python/pykde/extra/kde330/kurifilter.h | 644 - python/pykde/extra/kde330/selectdialog.h | 87 - python/pykde/extra/kde331/configwidget.h | 58 - python/pykde/extra/kde331/kaccelaction.h | 564 - python/pykde/extra/kde331/kaccelbase.h | 230 - python/pykde/extra/kde331/kicontheme.h | 338 - python/pykde/extra/kde331/kkeyserver_x11.h | 433 - python/pykde/extra/kde331/konsole_part.h | 229 - python/pykde/extra/kde331/kpanelmenu.h | 181 - python/pykde/extra/kde331/krecentdirs.h | 68 - python/pykde/extra/kde331/ksharedptr.h | 175 - python/pykde/extra/kde331/ksycocafactory.h | 143 - python/pykde/extra/kde331/ktoolbarbutton.h | 315 - python/pykde/extra/kde331/kurifilter.h | 644 - python/pykde/extra/kde331/selectdialog.h | 87 - python/pykde/extra/kde332/configwidget.h | 58 - python/pykde/extra/kde332/kaccelaction.h | 564 - python/pykde/extra/kde332/kaccelbase.h | 230 - python/pykde/extra/kde332/kicontheme.h | 338 - python/pykde/extra/kde332/kkeyserver_x11.h | 433 - python/pykde/extra/kde332/konsole_part.h | 229 - python/pykde/extra/kde332/kpanelmenu.h | 181 - python/pykde/extra/kde332/krecentdirs.h | 68 - python/pykde/extra/kde332/ksharedptr.h | 175 - python/pykde/extra/kde332/ksycocafactory.h | 143 - python/pykde/extra/kde332/ktoolbarbutton.h | 315 - python/pykde/extra/kde332/kurifilter.h | 644 - python/pykde/extra/kde332/selectdialog.h | 87 - python/pykde/extra/kde340/configwidget.h | 58 - python/pykde/extra/kde340/kaccelaction.h | 564 - python/pykde/extra/kde340/kaccelbase.h | 229 - python/pykde/extra/kde340/kicontheme.h | 355 - python/pykde/extra/kde340/kkeyserver.h | 29 - python/pykde/extra/kde340/kkeyserver_x11.h | 461 - python/pykde/extra/kde340/konsole_part.h | 228 - python/pykde/extra/kde340/kpanelmenu.h | 182 - python/pykde/extra/kde340/krecentdirs.h | 70 - python/pykde/extra/kde340/ksharedptr.h | 175 - python/pykde/extra/kde340/ksycocafactory.h | 143 - python/pykde/extra/kde340/ktoolbarbutton.h | 329 - python/pykde/extra/kde340/kurifilter.h | 647 - python/pykde/extra/kde340/selectdialog.h | 87 - python/pykde/extra/kde341/configwidget.h | 58 - python/pykde/extra/kde341/kaccelaction.h | 564 - python/pykde/extra/kde341/kaccelbase.h | 229 - python/pykde/extra/kde341/kicontheme.h | 355 - python/pykde/extra/kde341/kkeyserver.h | 29 - python/pykde/extra/kde341/kkeyserver_x11.h | 461 - python/pykde/extra/kde341/konsole_part.h | 228 - python/pykde/extra/kde341/kpanelmenu.h | 182 - python/pykde/extra/kde341/krecentdirs.h | 70 - python/pykde/extra/kde341/ksharedptr.h | 175 - python/pykde/extra/kde341/ksycocafactory.h | 143 - python/pykde/extra/kde341/ktoolbarbutton.h | 329 - python/pykde/extra/kde341/kurifilter.h | 647 - python/pykde/extra/kde341/selectdialog.h | 87 - python/pykde/extra/kde342/configwidget.h | 58 - python/pykde/extra/kde342/kaccelaction.h | 564 - python/pykde/extra/kde342/kaccelbase.h | 229 - python/pykde/extra/kde342/kicontheme.h | 355 - python/pykde/extra/kde342/kkeyserver.h | 29 - python/pykde/extra/kde342/kkeyserver_x11.h | 469 - python/pykde/extra/kde342/konsole_part.h | 228 - python/pykde/extra/kde342/kpanelmenu.h | 182 - python/pykde/extra/kde342/krecentdirs.h | 70 - python/pykde/extra/kde342/ksharedptr.h | 175 - python/pykde/extra/kde342/ksycocafactory.h | 143 - python/pykde/extra/kde342/ktoolbarbutton.h | 329 - python/pykde/extra/kde342/kurifilter.h | 647 - python/pykde/extra/kde342/selectdialog.h | 87 - python/pykde/extra/kde343/configwidget.h | 58 - python/pykde/extra/kde343/kaccelaction.h | 564 - python/pykde/extra/kde343/kaccelbase.h | 229 - python/pykde/extra/kde343/kicontheme.h | 355 - python/pykde/extra/kde343/kkeyserver.h | 29 - python/pykde/extra/kde343/kkeyserver_x11.h | 469 - python/pykde/extra/kde343/konsole_part.h | 228 - python/pykde/extra/kde343/kpanelmenu.h | 182 - python/pykde/extra/kde343/krecentdirs.h | 70 - python/pykde/extra/kde343/ksharedptr.h | 175 - python/pykde/extra/kde343/ksycocafactory.h | 143 - python/pykde/extra/kde343/ktoolbarbutton.h | 329 - python/pykde/extra/kde343/kurifilter.h | 647 - python/pykde/extra/kde343/selectdialog.h | 87 - python/pykde/extra/kde350/configwidget.h | 58 - python/pykde/extra/kde350/kaccelaction.h | 576 - python/pykde/extra/kde350/kaccelbase.h | 260 - python/pykde/extra/kde350/kicontheme.h | 355 - python/pykde/extra/kde350/kkeyserver.h | 29 - python/pykde/extra/kde350/kkeyserver_x11.h | 477 - python/pykde/extra/kde350/konsole_part.h | 241 - python/pykde/extra/kde350/kpanelmenu.h | 182 - python/pykde/extra/kde350/krecentdirs.h | 70 - python/pykde/extra/kde350/ksharedptr.h | 175 - python/pykde/extra/kde350/ksycocafactory.h | 143 - python/pykde/extra/kde350/ktoolbarbutton.h | 330 - python/pykde/extra/kde350/kurifilter.h | 647 - python/pykde/extra/kde350/selectdialog.h | 87 - python/pykde/extra/kde351/kaccelaction.h | 576 - python/pykde/extra/kde351/kaccelbase.h | 260 - python/pykde/extra/kde351/kicontheme.h | 355 - python/pykde/extra/kde351/kkeyserver.h | 29 - python/pykde/extra/kde351/kkeyserver_x11.h | 477 - python/pykde/extra/kde351/konsole_part.h | 241 - python/pykde/extra/kde351/kpanelmenu.h | 182 - python/pykde/extra/kde351/ksharedptr.h | 175 - python/pykde/extra/kde351/ksycocafactory.h | 143 - python/pykde/extra/kde351/ktoolbarbutton.h | 330 - python/pykde/extra/kde351/kurifilter.h | 647 - python/pykde/extra/kde352/kaccelaction.h | 576 - python/pykde/extra/kde352/kaccelbase.h | 260 - python/pykde/extra/kde352/kicontheme.h | 355 - python/pykde/extra/kde352/kkeyserver.h | 29 - python/pykde/extra/kde352/kkeyserver_x11.h | 477 - python/pykde/extra/kde352/konsole_part.h | 241 - python/pykde/extra/kde352/kpanelmenu.h | 182 - python/pykde/extra/kde352/ksharedptr.h | 175 - python/pykde/extra/kde352/ksycocafactory.h | 143 - python/pykde/extra/kde352/ktoolbarbutton.h | 330 - python/pykde/extra/kde352/kurifilter.h | 647 - python/pykde/extra/kde353/kaccelaction.h | 576 - python/pykde/extra/kde353/kaccelbase.h | 260 - python/pykde/extra/kde353/kicontheme.h | 355 - python/pykde/extra/kde353/kkeyserver.h | 29 - python/pykde/extra/kde353/kkeyserver_x11.h | 477 - python/pykde/extra/kde353/konsole_part.h | 241 - python/pykde/extra/kde353/kpanelmenu.h | 182 - python/pykde/extra/kde353/ksharedptr.h | 175 - python/pykde/extra/kde353/ksycocafactory.h | 143 - python/pykde/extra/kde353/ktoolbarbutton.h | 330 - python/pykde/extra/kde353/kurifilter.h | 647 - python/pykde/importTest.py | 22 - python/pykde/postproc | 520 - python/pykde/pykde350.prj | 495 - python/pykde/pykde351.prj | 495 - python/pykde/pykde352.prj | 495 - python/pykde/pykdeconfig.py.in | 207 - python/pykde/sip/dcop/dcopclient.sip | 175 - python/pykde/sip/dcop/dcopmod.sip | 42 - python/pykde/sip/dcop/dcopmod.sip.in | 43 - python/pykde/sip/dcop/dcopobject.sip | 82 - python/pykde/sip/dcop/dcopref.sip | 109 - python/pykde/sip/dcop/dcopstub.sip | 68 - python/pykde/sip/dcop/typedefs.sip | 108 - python/pykde/sip/glossary.html | 40 - python/pykde/sip/kabc/address.sip | 150 - python/pykde/sip/kabc/addressbook.sip | 230 - python/pykde/sip/kabc/addressee.sip | 470 - python/pykde/sip/kabc/addresseedialog.sip | 75 - python/pykde/sip/kabc/addresseelist.sip | 122 - python/pykde/sip/kabc/addresslineedit.sip | 66 - python/pykde/sip/kabc/agent.sip | 58 - python/pykde/sip/kabc/distributionlist.sip | 177 - python/pykde/sip/kabc/distributionlistdialog.sip | 74 - python/pykde/sip/kabc/distributionlisteditor.sip | 47 - python/pykde/sip/kabc/errorhandler.sip | 97 - python/pykde/sip/kabc/field.sip | 162 - python/pykde/sip/kabc/format.sip | 43 - python/pykde/sip/kabc/formatfactory.sip | 74 - python/pykde/sip/kabc/formatplugin.sip | 50 - python/pykde/sip/kabc/geo.sip | 61 - python/pykde/sip/kabc/kabc-kde310.diff | 17 - python/pykde/sip/kabc/kabc-kde311.diff | 17 - python/pykde/sip/kabc/kabc-kde312.diff | 17 - python/pykde/sip/kabc/kabc-kde313.diff | 17 - python/pykde/sip/kabc/kabc-kde314.diff | 17 - python/pykde/sip/kabc/kabc-kde320.diff | 21 - python/pykde/sip/kabc/kabc-kde322.diff | 21 - python/pykde/sip/kabc/kabc-kde323.diff | 21 - python/pykde/sip/kabc/kabc-kde330.diff | 24 - python/pykde/sip/kabc/kabc-kde331.diff | 24 - python/pykde/sip/kabc/kabc-kde332.diff | 24 - python/pykde/sip/kabc/kabc-kde340.diff | 25 - python/pykde/sip/kabc/kabc-kde341.diff | 25 - python/pykde/sip/kabc/kabc-kde342.diff | 25 - python/pykde/sip/kabc/kabc-kde343.diff | 25 - python/pykde/sip/kabc/kabc-kde350.diff | 25 - python/pykde/sip/kabc/kabc-kde351.diff | 25 - python/pykde/sip/kabc/kabc-kde352.diff | 25 - python/pykde/sip/kabc/kabc-kde353.diff | 25 - python/pykde/sip/kabc/kabcmod.sip | 78 - python/pykde/sip/kabc/kabcmod.sip.in | 55 - python/pykde/sip/kabc/key.sip | 144 - python/pykde/sip/kabc/ldapclient.sip | 245 - python/pykde/sip/kabc/ldapconfigwidget.sip | 105 - python/pykde/sip/kabc/ldapurl.sip | 85 - python/pykde/sip/kabc/ldif.sip | 99 - python/pykde/sip/kabc/ldifconverter.sip | 78 - python/pykde/sip/kabc/lock.sip | 57 - python/pykde/sip/kabc/locknull.sip | 49 - python/pykde/sip/kabc/phonenumber.sip | 191 - python/pykde/sip/kabc/picture.sip | 60 - python/pykde/sip/kabc/plugin.sip | 52 - python/pykde/sip/kabc/resource.sip | 160 - python/pykde/sip/kabc/resourcefile.sip | 176 - python/pykde/sip/kabc/resourceselectdialog.sip | 55 - python/pykde/sip/kabc/secrecy.sip | 92 - python/pykde/sip/kabc/sortmode.sip | 83 - python/pykde/sip/kabc/sound.sip | 63 - python/pykde/sip/kabc/stdaddressbook.sip | 111 - python/pykde/sip/kabc/timezone.sip | 59 - python/pykde/sip/kabc/vcardconverter.sip | 74 - python/pykde/sip/kabc/vcardformat.sip | 44 - python/pykde/sip/kabc/vcardformatplugin.sip | 51 - python/pykde/sip/kdecore/bytearray.sip | 812 -- python/pykde/sip/kdecore/fixx11h.sip | 30 - python/pykde/sip/kdecore/kaboutdata.sip | 301 - python/pykde/sip/kdecore/kaccel.sip | 239 - python/pykde/sip/kdecore/kaccelaction.sip | 121 - python/pykde/sip/kdecore/kaccelbase.sip | 102 - python/pykde/sip/kdecore/kallocator.sip | 48 - python/pykde/sip/kdecore/kapplication.sip | 449 - python/pykde/sip/kdecore/kasyncio.sip | 52 - python/pykde/sip/kdecore/kaudioplayer.sip | 42 - python/pykde/sip/kdecore/kbufferedio.sip | 73 - python/pykde/sip/kdecore/kcalendarsystem.sip | 78 - .../pykde/sip/kdecore/kcalendarsystemfactory.sip | 44 - python/pykde/sip/kdecore/kcatalogue.sip | 64 - python/pykde/sip/kdecore/kcharsets.sip | 62 - python/pykde/sip/kdecore/kclipboard.sip | 52 - python/pykde/sip/kdecore/kcmdlineargs.sip | 264 - python/pykde/sip/kdecore/kcompletion.sip | 228 - python/pykde/sip/kdecore/kconfig.sip | 234 - python/pykde/sip/kdecore/kconfigbackend.sip | 93 - python/pykde/sip/kdecore/kconfigbase.sip | 333 - python/pykde/sip/kdecore/kconfigdata.sip | 176 - python/pykde/sip/kdecore/kconfigdialogmanager.sip | 64 - python/pykde/sip/kdecore/kconfigskeleton.sip | 1149 -- python/pykde/sip/kdecore/kcrash.sip | 51 - python/pykde/sip/kdecore/kdcoppropertyproxy.sip | 44 - python/pykde/sip/kdecore/kdebug.sip | 67 - python/pykde/sip/kdecore/kdecore-kde310.diff | 1 - python/pykde/sip/kdecore/kdecore-kde311.diff | 1 - python/pykde/sip/kdecore/kdecore-kde312.diff | 1 - python/pykde/sip/kdecore/kdecore-kde313.diff | 1 - python/pykde/sip/kdecore/kdecore-kde314.diff | 3 - python/pykde/sip/kdecore/kdecore-kde315.diff | 3 - python/pykde/sip/kdecore/kdecore-kde320.diff | 16 - python/pykde/sip/kdecore/kdecore-kde321.diff | 12 - python/pykde/sip/kdecore/kdecore-kde322.diff | 13 - python/pykde/sip/kdecore/kdecore-kde323.diff | 13 - python/pykde/sip/kdecore/kdecore-kde330.diff | 15 - python/pykde/sip/kdecore/kdecore-kde331.diff | 15 - python/pykde/sip/kdecore/kdecore-kde332.diff | 15 - python/pykde/sip/kdecore/kdecore-kde340.diff | 15 - python/pykde/sip/kdecore/kdecore-kde341.diff | 15 - python/pykde/sip/kdecore/kdecore-kde342.diff | 15 - python/pykde/sip/kdecore/kdecore-kde343.diff | 15 - python/pykde/sip/kdecore/kdecore-kde350.diff | 16 - python/pykde/sip/kdecore/kdecore-kde351.diff | 16 - python/pykde/sip/kdecore/kdecore-kde352.diff | 16 - python/pykde/sip/kdecore/kdecore-kde353.diff | 16 - python/pykde/sip/kdecore/kdecoremod.sip.in | 99 - python/pykde/sip/kdecore/kdesktopfile.sip | 85 - python/pykde/sip/kdecore/kdesktopwidget.sip | 45 - python/pykde/sip/kdecore/kdestyle.sip | 108 - python/pykde/sip/kdecore/kdeversion.sip | 45 - python/pykde/sip/kdecore/kglobal.sip | 65 - python/pykde/sip/kdecore/kglobalaccel.sip | 87 - python/pykde/sip/kdecore/kglobalsettings.sip | 157 - python/pykde/sip/kdecore/kiconeffect.sip | 102 - python/pykde/sip/kdecore/kiconloader.sip | 92 - python/pykde/sip/kdecore/kicontheme.sip | 249 - python/pykde/sip/kdecore/kidna.sip | 40 - python/pykde/sip/kdecore/kinstance.sip | 75 - python/pykde/sip/kdecore/kipc.sip | 98 - python/pykde/sip/kdecore/kkeynative.sip | 90 - python/pykde/sip/kdecore/kkeyserver_x11.sip | 187 - python/pykde/sip/kdecore/klibloader.sip | 103 - python/pykde/sip/kdecore/klocale.sip | 238 - python/pykde/sip/kdecore/klockfile.sip | 113 - python/pykde/sip/kdecore/kmacroexpander.sip | 364 - python/pykde/sip/kdecore/kmanagerselection.sip | 91 - python/pykde/sip/kdecore/kmdcodec.sip | 156 - python/pykde/sip/kdecore/kmimesourcefactory.sip | 42 - python/pykde/sip/kdecore/kmountpoint.sip | 189 - python/pykde/sip/kdecore/kmultipledrag.sip | 58 - python/pykde/sip/kdecore/knotifyclient.sip | 139 - python/pykde/sip/kdecore/kpalette.sip | 63 - python/pykde/sip/kdecore/kpixmapprovider.sip | 41 - python/pykde/sip/kdecore/kprocctrl.sip | 95 - python/pykde/sip/kdecore/kprocess.sip | 272 - python/pykde/sip/kdecore/kprocio.sip | 67 - python/pykde/sip/kdecore/kpty.sip | 52 - python/pykde/sip/kdecore/krandomsequence.sip | 45 - python/pykde/sip/kdecore/kregexp.sip | 44 - python/pykde/sip/kdecore/krfcdate.sip | 42 - python/pykde/sip/kdecore/krootprop.sip | 52 - python/pykde/sip/kdecore/ksavefile.sip | 52 - python/pykde/sip/kdecore/ksharedptr.sip | 45 - python/pykde/sip/kdecore/kshell.sip | 77 - python/pykde/sip/kdecore/kshortcut.sip | 261 - python/pykde/sip/kdecore/kshortcutlist.sip | 133 - python/pykde/sip/kdecore/ksimpleconfig.sip | 50 - python/pykde/sip/kdecore/ksock.sip | 97 - python/pykde/sip/kdecore/kstartupinfo.sip | 280 - python/pykde/sip/kdecore/kstaticdeleter.sip | 38 - python/pykde/sip/kdecore/kstdaccel.sip | 441 - python/pykde/sip/kdecore/kstddirs.sip | 64 - python/pykde/sip/kdecore/kstringhandler.sip | 89 - python/pykde/sip/kdecore/ktempdir.sip | 58 - python/pykde/sip/kdecore/ktempfile.sip | 58 - python/pykde/sip/kdecore/ktimezones.sip | 264 - python/pykde/sip/kdecore/kuniqueapplication.sip | 68 - python/pykde/sip/kdecore/kurl.sip | 405 - python/pykde/sip/kdecore/kurldrag.sip | 76 - python/pykde/sip/kdecore/kuser.sip | 74 - python/pykde/sip/kdecore/kvmallocator.sip | 42 - python/pykde/sip/kdecore/kwin.sip | 188 - python/pykde/sip/kdecore/kwinmodule.sip | 159 - python/pykde/sip/kdecore/kxmessages.sip | 55 - python/pykde/sip/kdecore/netwm.sip | 649 - python/pykde/sip/kdecore/netwm_def.sip | 535 - python/pykde/sip/kdefx/kcpuinfo.sip | 52 - python/pykde/sip/kdefx/kdefx-kde320.diff | 1 - python/pykde/sip/kdefx/kdefx-kde321.diff | 1 - python/pykde/sip/kdefx/kdefx-kde322.diff | 1 - python/pykde/sip/kdefx/kdefx-kde323.diff | 1 - python/pykde/sip/kdefx/kdefx-kde330.diff | 1 - python/pykde/sip/kdefx/kdefx-kde331.diff | 1 - python/pykde/sip/kdefx/kdefx-kde332.diff | 1 - python/pykde/sip/kdefx/kdefx-kde340.diff | 1 - python/pykde/sip/kdefx/kdefx-kde341.diff | 1 - python/pykde/sip/kdefx/kdefx-kde342.diff | 1 - python/pykde/sip/kdefx/kdefx-kde343.diff | 1 - python/pykde/sip/kdefx/kdefx-kde350.diff | 1 - python/pykde/sip/kdefx/kdefx-kde351.diff | 1 - python/pykde/sip/kdefx/kdefx-kde352.diff | 1 - python/pykde/sip/kdefx/kdefx-kde353.diff | 1 - python/pykde/sip/kdefx/kdefxmod.sip | 41 - python/pykde/sip/kdefx/kdefxmod.sip.in | 41 - python/pykde/sip/kdefx/kdrawutil.sip | 41 - python/pykde/sip/kdefx/kimageeffect.sip | 205 - python/pykde/sip/kdefx/kpixmap.sip | 65 - python/pykde/sip/kdefx/kpixmapeffect.sip | 85 - python/pykde/sip/kdefx/kpixmapsplitter.sip | 46 - python/pykde/sip/kdefx/kstyle.sip | 126 - python/pykde/sip/kdeprint/driver.sip | 338 - python/pykde/sip/kdeprint/kdeprint-kde310.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde311.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde312.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde313.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde314.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde315.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde320.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde321.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde322.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde323.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde330.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde331.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde332.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde340.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde341.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde342.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde343.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde350.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde351.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde352.diff | 2 - python/pykde/sip/kdeprint/kdeprint-kde353.diff | 2 - python/pykde/sip/kdeprint/kdeprintmod.sip | 48 - python/pykde/sip/kdeprint/kdeprintmod.sip.in | 47 - python/pykde/sip/kdeprint/kmjob.sip | 113 - python/pykde/sip/kdeprint/kmjobmanager.sip | 198 - python/pykde/sip/kdeprint/kmmanager.sip | 221 - python/pykde/sip/kdeprint/kmobject.sip | 42 - python/pykde/sip/kdeprint/kmprinter.sip | 178 - python/pykde/sip/kdeprint/kpreloadobject.sip | 43 - python/pykde/sip/kdeprint/kprintaction.sip | 61 - python/pykde/sip/kdeprint/kprintdialog.sip | 170 - python/pykde/sip/kdeprint/kprintdialogpage.sip | 52 - python/pykde/sip/kdeprint/kprinter.sip | 258 - python/pykde/sip/kdeui/kaboutapplication.sip | 205 - python/pykde/sip/kdeui/kaboutdialog.sip | 190 - python/pykde/sip/kdeui/kaboutkde.sip | 38 - python/pykde/sip/kdeui/kaccelmanager.sip | 43 - python/pykde/sip/kdeui/kaccelmenu.sip | 53 - python/pykde/sip/kdeui/kaction.sip | 759 -- python/pykde/sip/kdeui/kactionclasses.sip | 529 - python/pykde/sip/kdeui/kactioncollection.sip | 125 - python/pykde/sip/kdeui/kactionselector.sip | 106 - python/pykde/sip/kdeui/kactionshortcutlist.sip | 106 - python/pykde/sip/kdeui/kactivelabel.sip | 58 - python/pykde/sip/kdeui/kalphapainter.sip | 41 - python/pykde/sip/kdeui/kanimwidget.sip | 92 - python/pykde/sip/kdeui/karrowbutton.sip | 55 - python/pykde/sip/kdeui/kauthicon.sip | 101 - python/pykde/sip/kdeui/kbugreport.sip | 54 - python/pykde/sip/kdeui/kbuttonbox.sip | 59 - python/pykde/sip/kdeui/kcharselect.sip | 130 - python/pykde/sip/kdeui/kcmenumngr.sip | 43 - python/pykde/sip/kdeui/kcmodule.sip | 183 - python/pykde/sip/kdeui/kcolorbtn.sip | 54 - python/pykde/sip/kdeui/kcolorcombo.sip | 51 - python/pykde/sip/kdeui/kcolordialog.sip | 237 - python/pykde/sip/kdeui/kcolordrag.sip | 52 - python/pykde/sip/kdeui/kcombobox.sip | 130 - python/pykde/sip/kdeui/kcommand.sip | 131 - python/pykde/sip/kdeui/kcompletionbox.sip | 86 - python/pykde/sip/kdeui/kconfigdialog.sip | 69 - python/pykde/sip/kdeui/kcontainer.sip | 75 - python/pykde/sip/kdeui/kcursor.sip | 57 - python/pykde/sip/kdeui/kdatepicker.sip | 108 - python/pykde/sip/kdeui/kdatepik.sip | 64 - python/pykde/sip/kdeui/kdatetbl.sip | 303 - python/pykde/sip/kdeui/kdatetimewidget.sip | 50 - python/pykde/sip/kdeui/kdatewidget.sip | 58 - python/pykde/sip/kdeui/kdbtn.sip | 61 - python/pykde/sip/kdeui/kdcopactionproxy.sip | 48 - python/pykde/sip/kdeui/kdeui-kde310.diff | 4 - python/pykde/sip/kdeui/kdeui-kde311.diff | 4 - python/pykde/sip/kdeui/kdeui-kde312.diff | 4 - python/pykde/sip/kdeui/kdeui-kde313.diff | 4 - python/pykde/sip/kdeui/kdeui-kde314.diff | 4 - python/pykde/sip/kdeui/kdeui-kde315.diff | 4 - python/pykde/sip/kdeui/kdeui-kde320.diff | 13 - python/pykde/sip/kdeui/kdeui-kde321.diff | 13 - python/pykde/sip/kdeui/kdeui-kde322.diff | 13 - python/pykde/sip/kdeui/kdeui-kde323.diff | 14 - python/pykde/sip/kdeui/kdeui-kde330.diff | 16 - python/pykde/sip/kdeui/kdeui-kde331.diff | 16 - python/pykde/sip/kdeui/kdeui-kde332.diff | 16 - python/pykde/sip/kdeui/kdeui-kde340.diff | 21 - python/pykde/sip/kdeui/kdeui-kde341.diff | 21 - python/pykde/sip/kdeui/kdeui-kde342.diff | 21 - python/pykde/sip/kdeui/kdeui-kde343.diff | 21 - python/pykde/sip/kdeui/kdeui-kde350.diff | 23 - python/pykde/sip/kdeui/kdeui-kde351.diff | 23 - python/pykde/sip/kdeui/kdeui-kde352.diff | 23 - python/pykde/sip/kdeui/kdeui-kde353.diff | 23 - python/pykde/sip/kdeui/kdeuimod.sip.in | 123 - python/pykde/sip/kdeui/kdialog.sip | 90 - python/pykde/sip/kdeui/kdialogbase.sip | 283 - python/pykde/sip/kdeui/kdocktabctl.sip | 186 - python/pykde/sip/kdeui/kdockwidget.sip | 469 - python/pykde/sip/kdeui/kdockwindow.sip | 38 - python/pykde/sip/kdeui/kdualcolorbtn.sip | 73 - python/pykde/sip/kdeui/kdualcolorbutton.sip | 74 - python/pykde/sip/kdeui/keditcl.sip | 224 - python/pykde/sip/kdeui/keditlistbox.sip | 206 - python/pykde/sip/kdeui/kedittoolbar.sip | 156 - python/pykde/sip/kdeui/kfontcombo.sip | 67 - python/pykde/sip/kdeui/kfontdialog.sip | 184 - python/pykde/sip/kdeui/kfontrequester.sip | 63 - python/pykde/sip/kdeui/kguiitem.sip | 57 - python/pykde/sip/kdeui/khelpmenu.sip | 63 - python/pykde/sip/kdeui/kiconview.sip | 147 - python/pykde/sip/kdeui/kiconviewsearchline.sip | 61 - python/pykde/sip/kdeui/kinputdialog.sip | 66 - python/pykde/sip/kdeui/kjanuswidget.sip | 110 - python/pykde/sip/kdeui/kkeybutton.sip | 59 - python/pykde/sip/kdeui/kkeydialog.sip | 262 - python/pykde/sip/kdeui/klanguagebutton.sip | 60 - python/pykde/sip/kdeui/kled.sip | 97 - python/pykde/sip/kdeui/klineedit.sip | 146 - python/pykde/sip/kdeui/klineeditdlg.sip | 53 - python/pykde/sip/kdeui/klistbox.sip | 60 - python/pykde/sip/kdeui/klistview.sip | 337 - python/pykde/sip/kdeui/klistviewlineedit.sip | 51 - python/pykde/sip/kdeui/klistviewsearchline.sip | 84 - python/pykde/sip/kdeui/kmainwindow.sip | 274 - python/pykde/sip/kdeui/kmainwindowiface.sip | 71 - python/pykde/sip/kdeui/kmenubar.sip | 91 - python/pykde/sip/kdeui/kmessagebox.sip | 260 - python/pykde/sip/kdeui/knuminput.sip | 261 - python/pykde/sip/kdeui/knumvalidator.sip | 89 - python/pykde/sip/kdeui/kpanelapplet.sip | 140 - python/pykde/sip/kdeui/kpanelappmenu.sip | 51 - python/pykde/sip/kdeui/kpanelextension.sip | 159 - python/pykde/sip/kdeui/kpanelmenu.sip | 65 - python/pykde/sip/kdeui/kpassdlg.sip | 138 - python/pykde/sip/kdeui/kpassivepopup.sip | 112 - python/pykde/sip/kdeui/kpixmapio.sip | 53 - .../sip/kdeui/kpixmapregionselectordialog.sip | 49 - .../sip/kdeui/kpixmapregionselectorwidget.sip | 60 - python/pykde/sip/kdeui/kpopupmenu.sip | 149 - python/pykde/sip/kdeui/kprogress.sip | 102 - python/pykde/sip/kdeui/kpushbutton.sip | 67 - python/pykde/sip/kdeui/krestrictedline.sip | 49 - python/pykde/sip/kdeui/krootpixmap.sip | 71 - python/pykde/sip/kdeui/kruler.sip | 108 - python/pykde/sip/kdeui/kscrollview.sip | 53 - python/pykde/sip/kdeui/kselect.sip | 142 - python/pykde/sip/kdeui/kseparator.sip | 48 - python/pykde/sip/kdeui/ksharedpixmap.sip | 62 - python/pykde/sip/kdeui/kshortcutdialog.sip | 53 - python/pykde/sip/kdeui/ksplashscreen.sip | 42 - python/pykde/sip/kdeui/ksqueezedtextlabel.sip | 60 - python/pykde/sip/kdeui/kstatusbar.sip | 82 - python/pykde/sip/kdeui/kstdaction.sip | 327 - python/pykde/sip/kdeui/kstdguiitem.sip | 352 - python/pykde/sip/kdeui/kstringvalidator.sip | 63 - python/pykde/sip/kdeui/ksystemtray.sip | 84 - python/pykde/sip/kdeui/ktabbar.sip | 98 - python/pykde/sip/kdeui/ktabctl.sip | 64 - python/pykde/sip/kdeui/ktabwidget.sip | 144 - python/pykde/sip/kdeui/ktextbrowser.sip | 58 - python/pykde/sip/kdeui/ktextedit.sip | 83 - python/pykde/sip/kdeui/kthemebase.sip | 258 - python/pykde/sip/kdeui/kthemestyle.sip | 89 - python/pykde/sip/kdeui/ktimewidget.sip | 50 - python/pykde/sip/kdeui/ktimezonewidget.sip | 45 - python/pykde/sip/kdeui/ktip.sip | 82 - python/pykde/sip/kdeui/ktmainwindow.sip | 53 - python/pykde/sip/kdeui/ktoolbar.sip | 263 - python/pykde/sip/kdeui/ktoolbarbutton.sip | 123 - python/pykde/sip/kdeui/ktoolbarlabelaction.sip | 51 - python/pykde/sip/kdeui/ktoolbarradiogroup.sip | 43 - python/pykde/sip/kdeui/kurllabel.sip | 108 - python/pykde/sip/kdeui/kwindowinfo.sip | 61 - python/pykde/sip/kdeui/kwindowlistmenu.sip | 54 - python/pykde/sip/kdeui/kwizard.sip | 38 - python/pykde/sip/kdeui/kwordwrap.sip | 82 - python/pykde/sip/kdeui/kxmlgui.sip | 26 - python/pykde/sip/kdeui/kxmlguibuilder.sip | 53 - python/pykde/sip/kdeui/kxmlguiclient.sip | 101 - python/pykde/sip/kdeui/kxmlguifactory.sip | 300 - python/pykde/sip/kdeui/qxembed.sip | 113 - python/pykde/sip/kfile/booktoken.sip | 66 - python/pykde/sip/kfile/kcombiview.sip | 90 - python/pykde/sip/kfile/kcustommenueditor.sip | 57 - python/pykde/sip/kfile/kdiroperator.sip | 205 - python/pykde/sip/kfile/kdirselectdialog.sip | 71 - python/pykde/sip/kfile/kdirsize.sip | 86 - python/pykde/sip/kfile/kdiskfreesp.sip | 49 - python/pykde/sip/kfile/kencodingfiledialog.sip | 65 - python/pykde/sip/kfile/kfile-kde310.diff | 5 - python/pykde/sip/kfile/kfile-kde311.diff | 5 - python/pykde/sip/kfile/kfile-kde312.diff | 5 - python/pykde/sip/kfile/kfile-kde313.diff | 5 - python/pykde/sip/kfile/kfile-kde314.diff | 5 - python/pykde/sip/kfile/kfile-kde315.diff | 5 - python/pykde/sip/kfile/kfile-kde320.diff | 6 - python/pykde/sip/kfile/kfile-kde321.diff | 5 - python/pykde/sip/kfile/kfile-kde322.diff | 5 - python/pykde/sip/kfile/kfile-kde323.diff | 5 - python/pykde/sip/kfile/kfile-kde330.diff | 5 - python/pykde/sip/kfile/kfile-kde331.diff | 5 - python/pykde/sip/kfile/kfile-kde332.diff | 5 - python/pykde/sip/kfile/kfile-kde340.diff | 5 - python/pykde/sip/kfile/kfile-kde341.diff | 5 - python/pykde/sip/kfile/kfile-kde342.diff | 5 - python/pykde/sip/kfile/kfile-kde343.diff | 5 - python/pykde/sip/kfile/kfile-kde350.diff | 5 - python/pykde/sip/kfile/kfile-kde351.diff | 5 - python/pykde/sip/kfile/kfile-kde352.diff | 6 - python/pykde/sip/kfile/kfile-kde353.diff | 5 - python/pykde/sip/kfile/kfile.sip | 115 - python/pykde/sip/kfile/kfilebookmark.sip | 157 - python/pykde/sip/kfile/kfiledetailview.sip | 207 - python/pykde/sip/kfile/kfiledialog.sip | 207 - python/pykde/sip/kfile/kfilefiltercombo.sip | 58 - python/pykde/sip/kfile/kfileiconview.sip | 141 - python/pykde/sip/kfile/kfilemod.sip | 67 - python/pykde/sip/kfile/kfilemod.sip.in | 63 - python/pykde/sip/kfile/kfilepreview.sip | 80 - python/pykde/sip/kfile/kfilereader.sip | 47 - python/pykde/sip/kfile/kfilesharedlg.sip | 53 - python/pykde/sip/kfile/kfiletreebranch.sip | 235 - python/pykde/sip/kfile/kfiletreeview.sip | 109 - python/pykde/sip/kfile/kfiletreeviewitem.sip | 48 - python/pykde/sip/kfile/kfileview.sip | 153 - python/pykde/sip/kfile/kfileviewitem.sip | 58 - python/pykde/sip/kfile/kicondialog.sip | 131 - python/pykde/sip/kfile/kimagefilepreview.sip | 57 - python/pykde/sip/kfile/knotifydialog.sip | 315 - python/pykde/sip/kfile/knotifywidgetbase.sip | 64 - python/pykde/sip/kfile/kopenwith.sip | 146 - python/pykde/sip/kfile/kpreviewwidgetbase.sip | 57 - python/pykde/sip/kfile/kpropertiesdialog.sip | 304 - python/pykde/sip/kfile/kpropsdlg.sip | 208 - python/pykde/sip/kfile/krecentdirs.sip | 40 - python/pykde/sip/kfile/krecentdocument.sip | 44 - python/pykde/sip/kfile/kurlbar.sip | 213 - python/pykde/sip/kfile/kurlcombobox.sip | 80 - python/pykde/sip/kfile/kurlrequester.sip | 112 - python/pykde/sip/kfile/kurlrequesterdlg.sip | 43 - python/pykde/sip/khtml/css_rule.sip | 259 - python/pykde/sip/khtml/css_stylesheet.sip | 197 - python/pykde/sip/khtml/css_value.sip | 320 - python/pykde/sip/khtml/dom2_events.sip | 251 - python/pykde/sip/khtml/dom2_range.sip | 115 - python/pykde/sip/khtml/dom2_traversal.sip | 176 - python/pykde/sip/khtml/dom2_views.sip | 50 - python/pykde/sip/khtml/dom_doc.sip | 185 - python/pykde/sip/khtml/dom_element.sip | 111 - python/pykde/sip/khtml/dom_exception.sip | 64 - python/pykde/sip/khtml/dom_misc.sip | 49 - python/pykde/sip/khtml/dom_node.sip | 150 - python/pykde/sip/khtml/dom_string.sip | 79 - python/pykde/sip/khtml/dom_text.sip | 92 - python/pykde/sip/khtml/dom_xml.sip | 128 - python/pykde/sip/khtml/html_base.sip | 207 - python/pykde/sip/khtml/html_block.sip | 233 - python/pykde/sip/khtml/html_document.sip | 77 - python/pykde/sip/khtml/html_element.sip | 78 - python/pykde/sip/khtml/html_form.sip | 436 - python/pykde/sip/khtml/html_head.sip | 203 - python/pykde/sip/khtml/html_image.sip | 144 - python/pykde/sip/khtml/html_inline.sip | 169 - python/pykde/sip/khtml/html_list.sip | 169 - python/pykde/sip/khtml/html_misc.sip | 97 - python/pykde/sip/khtml/html_object.sip | 179 - python/pykde/sip/khtml/html_table.sip | 256 - python/pykde/sip/khtml/khtml_part.sip | 282 - python/pykde/sip/khtml/khtml_part.sip.323 | 272 - python/pykde/sip/khtml/khtml_part.sip.330 | 282 - python/pykde/sip/khtml/khtml_settings.sip | 293 - python/pykde/sip/khtml/khtmlmod.sip.in | 71 - python/pykde/sip/khtml/khtmlview.sip | 144 - python/pykde/sip/kio/authinfo.sip | 206 - python/pykde/sip/kio/chmodjob.sip | 64 - python/pykde/sip/kio/connection.sip | 72 - python/pykde/sip/kio/davjob.sip | 56 - python/pykde/sip/kio/defaultprogress.sip | 103 - python/pykde/sip/kio/forwardingslavebase.sip | 63 - python/pykde/sip/kio/global.sip | 732 -- python/pykde/sip/kio/job.sip | 73 - python/pykde/sip/kio/jobclasses.sip | 748 -- python/pykde/sip/kio/kacl.sip | 166 - python/pykde/sip/kio/kar.sip | 54 - python/pykde/sip/kio/karchive.sip | 189 - python/pykde/sip/kio/kautomount.sip | 77 - python/pykde/sip/kio/kdatatool.sip | 173 - python/pykde/sip/kio/kdcopservicestarter.sip | 48 - python/pykde/sip/kio/kdirlister.sip | 268 - python/pykde/sip/kio/kdirnotify.sip | 57 - python/pykde/sip/kio/kdirwatch.sip | 96 - python/pykde/sip/kio/kemailsettings.sip | 84 - python/pykde/sip/kio/kfilefilter.sip | 81 - python/pykde/sip/kio/kfileitem.sip | 171 - python/pykde/sip/kio/kfilemetainfo.sip | 458 - python/pykde/sip/kio/kfileshare.sip | 87 - python/pykde/sip/kio/kfilterbase.sip | 74 - python/pykde/sip/kio/kfilterdev.sip | 73 - python/pykde/sip/kio/kimageio.sip | 59 - python/pykde/sip/kio/kio-kde310.diff | 5 - python/pykde/sip/kio/kio-kde311.diff | 4 - python/pykde/sip/kio/kio-kde312.diff | 5 - python/pykde/sip/kio/kio-kde313.diff | 5 - python/pykde/sip/kio/kio-kde314.diff | 5 - python/pykde/sip/kio/kio-kde315.diff | 5 - python/pykde/sip/kio/kio-kde320.diff | 6 - python/pykde/sip/kio/kio-kde321.diff | 6 - python/pykde/sip/kio/kio-kde322.diff | 6 - python/pykde/sip/kio/kio-kde323.diff | 6 - python/pykde/sip/kio/kio-kde330.diff | 10 - python/pykde/sip/kio/kio-kde331.diff | 10 - python/pykde/sip/kio/kio-kde332.diff | 10 - python/pykde/sip/kio/kio-kde340.diff | 11 - python/pykde/sip/kio/kio-kde341.diff | 11 - python/pykde/sip/kio/kio-kde342.diff | 11 - python/pykde/sip/kio/kio-kde343.diff | 11 - python/pykde/sip/kio/kio-kde350.diff | 12 - python/pykde/sip/kio/kio-kde351.diff | 12 - python/pykde/sip/kio/kio-kde352.diff | 12 - python/pykde/sip/kio/kio-kde353.diff | 12 - python/pykde/sip/kio/kiomod.sip | 107 - python/pykde/sip/kio/kiomod.sip.in | 97 - python/pykde/sip/kio/kmimemagic.sip | 74 - python/pykde/sip/kio/kmimetype.sip | 432 - python/pykde/sip/kio/kmimetypechooser.sip | 74 - python/pykde/sip/kio/knfsshare.sip | 51 - python/pykde/sip/kio/kpac.sip | 44 - python/pykde/sip/kio/kprotocolinfo.sip | 288 - python/pykde/sip/kio/kprotocolmanager.sip | 99 - python/pykde/sip/kio/kremoteencoding.sip | 60 - python/pykde/sip/kio/krun.sip | 206 - python/pykde/sip/kio/ksambashare.sip | 51 - python/pykde/sip/kio/kscan.sip | 120 - python/pykde/sip/kio/kservice.sip | 289 - python/pykde/sip/kio/kservicegroup.sip | 291 - python/pykde/sip/kio/kservicetype.sip | 292 - python/pykde/sip/kio/kshellcompletion.sip | 47 - python/pykde/sip/kio/kshred.sip | 49 - python/pykde/sip/kio/ksycoca.sip | 171 - python/pykde/sip/kio/ksycocadict.sip | 51 - python/pykde/sip/kio/ksycocaentry.sip | 213 - python/pykde/sip/kio/ksycocafactory.sip | 63 - python/pykde/sip/kio/ksycocatype.sip | 76 - python/pykde/sip/kio/ktar.sip | 73 - python/pykde/sip/kio/ktrader.sip | 125 - python/pykde/sip/kio/kurifilter.sip | 147 - python/pykde/sip/kio/kurlcompletion.sip | 81 - python/pykde/sip/kio/kurlpixmapprovider.sip | 41 - python/pykde/sip/kio/kuserprofile.sip | 224 - python/pykde/sip/kio/kzip.sip | 120 - python/pykde/sip/kio/metainfojob.sip | 63 - python/pykde/sip/kio/netaccess.sip | 128 - python/pykde/sip/kio/observer.sip | 96 - python/pykde/sip/kio/passdlg.sip | 68 - python/pykde/sip/kio/paste.sip | 56 - python/pykde/sip/kio/previewjob.sip | 72 - python/pykde/sip/kio/progressbase.sip | 95 - python/pykde/sip/kio/renamedlg.sip | 67 - python/pykde/sip/kio/renamedlgplugin.sip | 39 - python/pykde/sip/kio/scheduler.sip | 106 - python/pykde/sip/kio/sessiondata.sip | 51 - python/pykde/sip/kio/skipdlg.sip | 45 - python/pykde/sip/kio/slave.sip | 95 - python/pykde/sip/kio/slavebase.sip | 187 - python/pykde/sip/kio/slaveconfig.sip | 53 - python/pykde/sip/kio/slaveinterface.sip | 188 - python/pykde/sip/kio/statusbarprogress.sip | 56 - python/pykde/sip/kio/tcpslavebase.sip | 91 - python/pykde/sip/kio/thumbcreator.sip | 47 - python/pykde/sip/kmdi/kmdichildarea.sip | 102 - python/pykde/sip/kmdi/kmdichildfrm.sip | 276 - python/pykde/sip/kmdi/kmdichildfrmcaption.sip | 57 - python/pykde/sip/kmdi/kmdichildview.sip | 120 - python/pykde/sip/kmdi/kmdidefines.sip | 115 - python/pykde/sip/kmdi/kmdimainfrm.sip | 339 - python/pykde/sip/kmdi/kmdimod.sip | 47 - python/pykde/sip/kmdi/kmdimod.sip.in | 48 - python/pykde/sip/kmdi/kmditaskbar.sip | 88 - python/pykde/sip/kmdi/kmditoolviewaccessor.sip | 53 - python/pykde/sip/kparts/browserextension.sip | 603 - python/pykde/sip/kparts/browserinterface.sip | 43 - python/pykde/sip/kparts/browserrun.sip | 117 - python/pykde/sip/kparts/dockmainwindow.sip | 49 - python/pykde/sip/kparts/event.sip | 94 - python/pykde/sip/kparts/factory.sip | 53 - python/pykde/sip/kparts/genericfactory.sip | 25 - python/pykde/sip/kparts/historyprovider.sip | 54 - python/pykde/sip/kparts/konsole_part.sip | 177 - python/pykde/sip/kparts/kparts-kde320.diff | 1 - python/pykde/sip/kparts/kparts-kde321.diff | 1 - python/pykde/sip/kparts/kparts-kde322.diff | 1 - python/pykde/sip/kparts/kparts-kde323.diff | 1 - python/pykde/sip/kparts/kparts-kde330.diff | 1 - python/pykde/sip/kparts/kparts-kde331.diff | 1 - python/pykde/sip/kparts/kparts-kde332.diff | 1 - python/pykde/sip/kparts/kparts-kde340.diff | 1 - python/pykde/sip/kparts/kparts-kde341.diff | 1 - python/pykde/sip/kparts/kparts-kde342.diff | 1 - python/pykde/sip/kparts/kparts-kde343.diff | 1 - python/pykde/sip/kparts/kparts-kde350.diff | 2 - python/pykde/sip/kparts/kparts-kde351.diff | 2 - python/pykde/sip/kparts/kparts-kde352.diff | 2 - python/pykde/sip/kparts/kparts-kde353.diff | 2 - python/pykde/sip/kparts/kpartsmod.sip | 51 - python/pykde/sip/kparts/kpartsmod.sip.in | 51 - python/pykde/sip/kparts/mainwindow.sip | 60 - python/pykde/sip/kparts/part.sip | 312 - python/pykde/sip/kparts/partmanager.sip | 181 - python/pykde/sip/kparts/plugin.sip | 210 - python/pykde/sip/kparts/statusbarextension.sip | 52 - python/pykde/sip/kresources/configdialog.sip | 52 - python/pykde/sip/kresources/configpage.sip | 48 - python/pykde/sip/kresources/configwidget.sip | 56 - python/pykde/sip/kresources/factory.sip | 54 - python/pykde/sip/kresources/kresourcesmod.sip | 44 - python/pykde/sip/kresources/kresourcesmod.sip.in | 45 - python/pykde/sip/kresources/resource.sip | 84 - python/pykde/sip/kresources/selectdialog.sip | 133 - python/pykde/sip/kspell/ksconfig.sip | 210 - python/pykde/sip/kspell/kspell-kde320.diff | 1 - python/pykde/sip/kspell/kspell-kde321.diff | 1 - python/pykde/sip/kspell/kspell-kde322.diff | 1 - python/pykde/sip/kspell/kspell-kde323.diff | 1 - python/pykde/sip/kspell/kspell-kde330.diff | 1 - python/pykde/sip/kspell/kspell-kde331.diff | 1 - python/pykde/sip/kspell/kspell-kde332.diff | 1 - python/pykde/sip/kspell/kspell-kde340.diff | 1 - python/pykde/sip/kspell/kspell-kde341.diff | 1 - python/pykde/sip/kspell/kspell-kde342.diff | 1 - python/pykde/sip/kspell/kspell-kde343.diff | 1 - python/pykde/sip/kspell/kspell-kde350.diff | 1 - python/pykde/sip/kspell/kspell-kde351.diff | 3 - python/pykde/sip/kspell/kspell-kde352.diff | 1 - python/pykde/sip/kspell/kspell-kde353.diff | 1 - python/pykde/sip/kspell/kspell.sip | 190 - python/pykde/sip/kspell/kspelldlg.sip | 123 - python/pykde/sip/kspell/kspellmod.sip.in | 42 - python/pykde/sip/kspell/ksyntaxhighlighter.sip | 114 - python/pykde/sip/kspell2/backgroundchecker.sip | 68 - python/pykde/sip/kspell2/broker.sip | 62 - python/pykde/sip/kspell2/configdialog.sip | 49 - python/pykde/sip/kspell2/configwidget.sip | 54 - python/pykde/sip/kspell2/defaultdictionary.sip | 60 - python/pykde/sip/kspell2/dialog.sip | 61 - python/pykde/sip/kspell2/dictionary.sip | 57 - python/pykde/sip/kspell2/filter.sip | 87 - python/pykde/sip/kspell2/highlighter.sip | 54 - python/pykde/sip/kspell2/kspell2mod.sip.in | 48 - python/pykde/sip/kspell2/settings.sip | 63 - python/pykde/sip/kutils/kcmoduleinfo.sip | 91 - python/pykde/sip/kutils/kcmoduleloader.sip | 67 - python/pykde/sip/kutils/kcmoduleproxy.sip | 104 - python/pykde/sip/kutils/kcmultidialog.sip | 86 - python/pykde/sip/kutils/kfind.sip | 83 - python/pykde/sip/kutils/kfinddialog.sip | 86 - python/pykde/sip/kutils/kmultitabbar.sip | 167 - python/pykde/sip/kutils/kplugininfo.sip | 149 - python/pykde/sip/kutils/kpluginselector.sip | 53 - python/pykde/sip/kutils/kreplace.sip | 60 - python/pykde/sip/kutils/kreplacedialog.sip | 59 - python/pykde/sip/kutils/kutils-kde340.diff | 1 - python/pykde/sip/kutils/kutils-kde341.diff | 1 - python/pykde/sip/kutils/kutilsmod.sip | 49 - python/pykde/sip/kutils/kutilsmod.sip.in | 50 - python/pykde/svnmerge.py | 47 - python/pykde/svnmergedocs.py | 30 - python/pykde/templates/annotated/basicapp.py | 113 - python/pykde/templates/annotated/menuapp1.py | 270 - python/pykde/templates/annotated/menuapp2.py | 244 - python/pykde/templates/annotated/menuapp3.py | 209 - python/pykde/templates/annotated/menuapp3ui.rc | 24 - python/pykde/templates/annotated/minimal.py | 75 - python/pykde/templates/annotated/panelapplet.py | 64 - python/pykde/templates/annotated/systray.py | 82 - python/pykde/templates/annotated/systray1.py | 87 - python/pykde/templates/basic/basicapp.py | 58 - python/pykde/templates/basic/menuapp1.py | 194 - python/pykde/templates/basic/menuapp2.py | 200 - python/pykde/templates/basic/menuapp3.py | 162 - python/pykde/templates/basic/menuapp3ui.rc | 24 - python/pykde/templates/basic/minimal.py | 48 - python/pykde/templates/basic/panelapplet.py | 49 - python/pykde/templates/basic/systray.py | 61 - python/pykde/templates/basic/systray1.py | 67 - python/pyqt/ChangeLog | 3223 ----- python/pyqt/LICENSE | 280 - python/pyqt/NEWS | 544 - python/pyqt/README | 64 - python/pyqt/README.AIX | 68 - python/pyqt/README.SunOS | 44 - python/pyqt/THANKS | 35 - python/pyqt/build.py | 730 -- python/pyqt/configure.py | 1438 --- python/pyqt/doc/PyQt.html | 12845 ------------------- python/pyqt/doc/PyQt.sgml | 5807 --------- python/pyqt/doc/qtdocs.sip | 1920 --- python/pyqt/examples2/README | 11 - python/pyqt/examples2/aclock.py | 61 - python/pyqt/examples2/addressbook.py | 457 - python/pyqt/examples2/application.py | 277 - python/pyqt/examples2/buttongroups.py | 113 - python/pyqt/examples2/dclock.py | 58 - python/pyqt/examples2/desktop.py | 219 - python/pyqt/examples2/dirview.py | 76 - python/pyqt/examples2/dragdrop.py | 57 - python/pyqt/examples2/dropsite.py | 96 - python/pyqt/examples2/gears.py | 235 - python/pyqt/examples2/menu.py | 301 - python/pyqt/examples2/qt.png | Bin 355 -> 0 bytes python/pyqt/examples2/qtlogo.png | Bin 3734 -> 0 bytes python/pyqt/examples2/secret.py | 65 - python/pyqt/examples2/semaphore.py | 203 - python/pyqt/examples2/splitter.py | 65 - python/pyqt/examples2/table.py | 115 - python/pyqt/examples2/themes.py | 2484 ---- python/pyqt/examples2/trolltech.bmp | Bin 30054 -> 0 bytes python/pyqt/examples2/trolltech.gif | Bin 42629 -> 0 bytes python/pyqt/examples2/tt-logo.png | Bin 4547 -> 0 bytes python/pyqt/examples2/tut1.py | 16 - python/pyqt/examples2/tut10.py | 145 - python/pyqt/examples2/tut11.py | 213 - python/pyqt/examples2/tut12.py | 252 - python/pyqt/examples2/tut13.py | 329 - python/pyqt/examples2/tut14.py | 377 - python/pyqt/examples2/tut2.py | 19 - python/pyqt/examples2/tut3.py | 20 - python/pyqt/examples2/tut4.py | 29 - python/pyqt/examples2/tut5.py | 32 - python/pyqt/examples2/tut6.py | 41 - python/pyqt/examples2/tut7.py | 57 - python/pyqt/examples2/tut8.py | 96 - python/pyqt/examples2/tut9.py | 104 - python/pyqt/examples2/widgets.py | 512 - python/pyqt/examples3/README | 12 - python/pyqt/examples3/SQL/README | 76 - python/pyqt/examples3/SQL/connect.ui | 238 - python/pyqt/examples3/SQL/connect.ui.h | 21 - python/pyqt/examples3/SQL/dbconnect.py | 82 - python/pyqt/examples3/SQL/dbpar.py | 22 - python/pyqt/examples3/SQL/form1.ui | 77 - python/pyqt/examples3/SQL/form2.ui | 327 - python/pyqt/examples3/SQL/frmconnect.py | 120 - python/pyqt/examples3/SQL/frmconnect.ui | 245 - python/pyqt/examples3/SQL/runform1.py | 21 - python/pyqt/examples3/SQL/runform2.py | 21 - python/pyqt/examples3/SQL/runsqlex.py | 151 - python/pyqt/examples3/SQL/sqlcustom1.py | 94 - python/pyqt/examples3/SQL/sqlex.ui | 303 - python/pyqt/examples3/SQL/sqlex.ui.h | 35 - python/pyqt/examples3/SQL/sqlsubclass5.py | 151 - python/pyqt/examples3/SQL/sqltable4.py | 118 - python/pyqt/examples3/SQL/testdb_mysql.sql | 57 - python/pyqt/examples3/SQL/testdb_pg.sql | 232 - python/pyqt/examples3/aclock.py | 61 - python/pyqt/examples3/addressbook.py | 457 - python/pyqt/examples3/application.py | 277 - python/pyqt/examples3/biff.py | 173 - python/pyqt/examples3/bigtable.py | 72 - python/pyqt/examples3/buttongroups.py | 125 - python/pyqt/examples3/canvas/butterfly.png | Bin 37900 -> 0 bytes python/pyqt/examples3/canvas/canvas.py | 619 - python/pyqt/examples3/canvas/qt-trans.xpm | 54 - python/pyqt/examples3/canvas/qtlogo.png | Bin 22673 -> 0 bytes python/pyqt/examples3/checklists.py | 136 - python/pyqt/examples3/cursor.py | 114 - python/pyqt/examples3/dclock.py | 58 - python/pyqt/examples3/desktop.py | 230 - python/pyqt/examples3/dirview.py | 452 - python/pyqt/examples3/dragdrop.py | 57 - python/pyqt/examples3/drawlines.py | 74 - python/pyqt/examples3/dropsite.py | 96 - python/pyqt/examples3/fileopen.xpm | 22 - python/pyqt/examples3/fontdisplayer.py | 148 - python/pyqt/examples3/fonts.py | 151 - python/pyqt/examples3/gears.py | 235 - python/pyqt/examples3/i18n/i18n.pro | 15 - python/pyqt/examples3/i18n/i18n.py | 147 - python/pyqt/examples3/i18n/mywidget.py | 47 - python/pyqt/examples3/i18n/mywidget_cs.qm | Bin 818 -> 0 bytes python/pyqt/examples3/i18n/mywidget_cs.ts | 75 - python/pyqt/examples3/i18n/mywidget_de.qm | Bin 913 -> 0 bytes python/pyqt/examples3/i18n/mywidget_de.ts | 69 - python/pyqt/examples3/i18n/mywidget_el.qm | Bin 832 -> 0 bytes python/pyqt/examples3/i18n/mywidget_el.ts | 68 - python/pyqt/examples3/i18n/mywidget_en.qm | Bin 337 -> 0 bytes python/pyqt/examples3/i18n/mywidget_en.ts | 69 - python/pyqt/examples3/i18n/mywidget_eo.qm | Bin 835 -> 0 bytes python/pyqt/examples3/i18n/mywidget_eo.ts | 72 - python/pyqt/examples3/i18n/mywidget_fr.qm | Bin 884 -> 0 bytes python/pyqt/examples3/i18n/mywidget_fr.ts | 68 - python/pyqt/examples3/i18n/mywidget_it.qm | Bin 763 -> 0 bytes python/pyqt/examples3/i18n/mywidget_it.ts | 72 - python/pyqt/examples3/i18n/mywidget_jp.qm | Bin 738 -> 0 bytes python/pyqt/examples3/i18n/mywidget_jp.ts | 68 - python/pyqt/examples3/i18n/mywidget_ko.qm | Bin 738 -> 0 bytes python/pyqt/examples3/i18n/mywidget_ko.ts | 68 - python/pyqt/examples3/i18n/mywidget_no.qm | Bin 830 -> 0 bytes python/pyqt/examples3/i18n/mywidget_no.ts | 68 - python/pyqt/examples3/i18n/mywidget_ru.qm | Bin 799 -> 0 bytes python/pyqt/examples3/i18n/mywidget_ru.ts | 68 - python/pyqt/examples3/i18n/mywidget_zh.qm | Bin 706 -> 0 bytes python/pyqt/examples3/i18n/mywidget_zh.ts | 68 - python/pyqt/examples3/lineedits.py | 140 - python/pyqt/examples3/listbox.py | 176 - python/pyqt/examples3/listboxcombo.py | 167 - python/pyqt/examples3/marble.png | Bin 26015 -> 0 bytes python/pyqt/examples3/mdi.py | 360 - python/pyqt/examples3/menu.py | 286 - python/pyqt/examples3/progress.py | 287 - python/pyqt/examples3/progressbar.py | 155 - python/pyqt/examples3/qdir.py | 323 - python/pyqt/examples3/qmag.py | 233 - python/pyqt/examples3/qt.png | Bin 355 -> 0 bytes python/pyqt/examples3/qtlogo.png | Bin 12811 -> 0 bytes python/pyqt/examples3/rangecontrols.py | 79 - python/pyqt/examples3/richtext.py | 136 - python/pyqt/examples3/secret.py | 65 - python/pyqt/examples3/semaphore.py | 203 - python/pyqt/examples3/smalltable.py | 57 - python/pyqt/examples3/splitter.py | 65 - python/pyqt/examples3/tabdialog.py | 116 - python/pyqt/examples3/tablestatistics.py | 168 - python/pyqt/examples3/tooltip.py | 105 - python/pyqt/examples3/trolltech.bmp | Bin 30054 -> 0 bytes python/pyqt/examples3/trolltech.gif | Bin 42629 -> 0 bytes python/pyqt/examples3/tt-logo.png | Bin 4547 -> 0 bytes python/pyqt/examples3/tut1.py | 16 - python/pyqt/examples3/tut10.py | 145 - python/pyqt/examples3/tut11.py | 213 - python/pyqt/examples3/tut12.py | 253 - python/pyqt/examples3/tut13.py | 330 - python/pyqt/examples3/tut14.py | 378 - python/pyqt/examples3/tut2.py | 19 - python/pyqt/examples3/tut3.py | 21 - python/pyqt/examples3/tut4.py | 29 - python/pyqt/examples3/tut5.py | 32 - python/pyqt/examples3/tut6.py | 41 - python/pyqt/examples3/tut7.py | 57 - python/pyqt/examples3/tut8.py | 97 - python/pyqt/examples3/tut9.py | 104 - python/pyqt/examples3/webbrowser/mainwindow.py | 1097 -- python/pyqt/examples3/webbrowser/mainwindow.ui | 410 - python/pyqt/examples3/webbrowser/webbrowser.py | 91 - python/pyqt/examples3/widgets.py | 500 - python/pyqt/pylupdate3/LICENSE.GPL | 280 - python/pyqt/pylupdate3/fetchtr.cpp | 455 - python/pyqt/pylupdate3/main.cpp | 155 - python/pyqt/pylupdate3/merge.cpp | 110 - python/pyqt/pylupdate3/metatranslator.cpp | 557 - python/pyqt/pylupdate3/metatranslator.h | 95 - python/pyqt/pylupdate3/numberh.cpp | 230 - python/pyqt/pylupdate3/proparser.cpp | 78 - python/pyqt/pylupdate3/proparser.h | 25 - python/pyqt/pylupdate3/pylupdate-prof.sbf | 24 - python/pyqt/pylupdate3/pylupdate.pro.in | 29 - python/pyqt/pylupdate3/pylupdate.sbf | 24 - python/pyqt/pylupdate3/sametexth.cpp | 78 - python/pyqt/pyqtconfig.py.in | 187 - python/pyqt/pyuic2/COPYING | 280 - python/pyqt/pyuic2/domtool.cpp | 260 - python/pyqt/pyuic2/domtool.h | 41 - python/pyqt/pyuic2/globaldefs.h | 33 - python/pyqt/pyuic2/pyuic.pro.in | 24 - python/pyqt/pyuic2/pyuic.sbf | 24 - python/pyqt/pyuic2/uic.cpp | 1601 --- python/pyqt/pyuic2/uic.h | 133 - python/pyqt/pyuic2/widgetdatabase.cpp | 640 - python/pyqt/pyuic2/widgetdatabase.h | 75 - python/pyqt/pyuic3/LICENSE.GPL | 280 - python/pyqt/pyuic3/domtool.cpp | 447 - python/pyqt/pyuic3/domtool.h | 47 - python/pyqt/pyuic3/embed.cpp | 323 - python/pyqt/pyuic3/form.cpp | 938 -- python/pyqt/pyuic3/globaldefs.h | 56 - python/pyqt/pyuic3/main.cpp | 245 - python/pyqt/pyuic3/object.cpp | 704 - python/pyqt/pyuic3/parser.cpp | 66 - python/pyqt/pyuic3/parser.h | 33 - python/pyqt/pyuic3/pyuic-prof.sbf | 24 - python/pyqt/pyuic3/pyuic.pro.in | 36 - python/pyqt/pyuic3/pyuic.sbf | 24 - python/pyqt/pyuic3/subclassing.cpp | 185 - python/pyqt/pyuic3/uic.cpp | 1145 -- python/pyqt/pyuic3/uic.h | 183 - python/pyqt/pyuic3/widgetdatabase.cpp | 953 -- python/pyqt/pyuic3/widgetdatabase.h | 96 - python/pyqt/pyuic3/widgetinterface.h | 29 - python/pyqt/sip/pyqt-gpl.sip | 1 - python/pyqt/sip/qt/copying.sip | 51 - python/pyqt/sip/qt/qaccel.sip | 104 - python/pyqt/sip/qt/qaction.sip | 210 - python/pyqt/sip/qt/qapplication.sip | 574 - python/pyqt/sip/qt/qarray.sip | 94 - python/pyqt/sip/qt/qassistantclient.sip | 63 - python/pyqt/sip/qt/qbitmap.sip | 59 - python/pyqt/sip/qt/qbrush.sip | 105 - python/pyqt/sip/qt/qbutton.sip | 184 - python/pyqt/sip/qt/qbuttongroup.sip | 104 - python/pyqt/sip/qt/qbytearray.sip | 203 - python/pyqt/sip/qt/qcdestyle.sip | 68 - python/pyqt/sip/qt/qcheckbox.sip | 88 - python/pyqt/sip/qt/qclipboard.sip | 152 - python/pyqt/sip/qt/qcolor.sip | 207 - python/pyqt/sip/qt/qcolordialog.sip | 77 - python/pyqt/sip/qt/qcolorgroup.sip | 125 - python/pyqt/sip/qt/qcombobox.sip | 277 - python/pyqt/sip/qt/qcommonstyle.sip | 137 - python/pyqt/sip/qt/qcstring.sip | 223 - python/pyqt/sip/qt/qcursor.sip | 144 - python/pyqt/sip/qt/qdatastream.sip | 224 - python/pyqt/sip/qt/qdatetime.sip | 280 - python/pyqt/sip/qt/qdatetimeedit.sip | 256 - python/pyqt/sip/qt/qdesktopwidget.sip | 84 - python/pyqt/sip/qt/qdial.sip | 112 - python/pyqt/sip/qt/qdialog.sip | 158 - python/pyqt/sip/qt/qdir.sip | 384 - python/pyqt/sip/qt/qdockarea.sip | 88 - python/pyqt/sip/qt/qdockwindow.sip | 135 - python/pyqt/sip/qt/qdragobject.sip | 374 - python/pyqt/sip/qt/qdrawutil.sip | 74 - python/pyqt/sip/qt/qdropsite.sip | 51 - python/pyqt/sip/qt/qerrormessage.sip | 57 - python/pyqt/sip/qt/qevent.sip | 1235 -- python/pyqt/sip/qt/qeventloop.sip | 89 - python/pyqt/sip/qt/qfile.sip | 310 - python/pyqt/sip/qt/qfiledialog.sip | 361 - python/pyqt/sip/qt/qfileinfo.sip | 145 - python/pyqt/sip/qt/qfont.sip | 441 - python/pyqt/sip/qt/qfontdatabase.sip | 121 - python/pyqt/sip/qt/qfontdialog.sip | 105 - python/pyqt/sip/qt/qfontinfo.sip | 70 - python/pyqt/sip/qt/qfontmetrics.sip | 220 - python/pyqt/sip/qt/qframe.sip | 180 - python/pyqt/sip/qt/qglobal.sip | 74 - python/pyqt/sip/qt/qgmanager.sip | 88 - python/pyqt/sip/qt/qgrid.sip | 72 - python/pyqt/sip/qt/qgridview.sip | 76 - python/pyqt/sip/qt/qgroupbox.sip | 135 - python/pyqt/sip/qt/qhbox.sip | 75 - python/pyqt/sip/qt/qhbuttongroup.sip | 48 - python/pyqt/sip/qt/qheader.sip | 268 - python/pyqt/sip/qt/qhgroupbox.sip | 48 - python/pyqt/sip/qt/qiconset.sip | 146 - python/pyqt/sip/qt/qiconview.sip | 457 - python/pyqt/sip/qt/qimage.sip | 544 - python/pyqt/sip/qt/qinputdialog.sip | 174 - python/pyqt/sip/qt/qinterlacestyle.sip | 103 - python/pyqt/sip/qt/qiodevice.sip | 408 - python/pyqt/sip/qt/qkeycode.sip | 286 - python/pyqt/sip/qt/qkeysequence.sip | 119 - python/pyqt/sip/qt/qlabel.sip | 157 - python/pyqt/sip/qt/qlayout.sip | 597 - python/pyqt/sip/qt/qlcdnumber.sip | 137 - python/pyqt/sip/qt/qlibrary.sip | 59 - python/pyqt/sip/qt/qlineedit.sip | 427 - python/pyqt/sip/qt/qlist.sip | 111 - python/pyqt/sip/qt/qlistbox.sip | 571 - python/pyqt/sip/qt/qlistview.sip | 770 -- python/pyqt/sip/qt/qlocale.sip | 537 - python/pyqt/sip/qt/qmainwindow.sip | 289 - python/pyqt/sip/qt/qmemarray.sip | 92 - python/pyqt/sip/qt/qmenubar.sip | 118 - python/pyqt/sip/qt/qmenudata.sip | 291 - python/pyqt/sip/qt/qmessagebox.sip | 204 - python/pyqt/sip/qt/qmetaobject.sip | 170 - python/pyqt/sip/qt/qmime.sip | 104 - python/pyqt/sip/qt/qmotifplusstyle.sip | 150 - python/pyqt/sip/qt/qmotifstyle.sip | 168 - python/pyqt/sip/qt/qmovie.sip | 109 - python/pyqt/sip/qt/qmultilinedit.sip | 374 - python/pyqt/sip/qt/qmutex.sip | 104 - python/pyqt/sip/qt/qnamespace.sip | 903 -- python/pyqt/sip/qt/qnetworkprotocol.sip | 227 - python/pyqt/sip/qt/qobject.sip | 1369 -- python/pyqt/sip/qt/qobjectcleanuphandler.sip | 49 - python/pyqt/sip/qt/qobjectlist.sip | 108 - python/pyqt/sip/qt/qpaintdevice.sip | 247 - python/pyqt/sip/qt/qpaintdevicemetrics.sip | 55 - python/pyqt/sip/qt/qpainter.sip | 676 - python/pyqt/sip/qt/qpair.sip | 83 - python/pyqt/sip/qt/qpalette.sip | 102 - python/pyqt/sip/qt/qpen.sip | 101 - python/pyqt/sip/qt/qpicture.sip | 111 - python/pyqt/sip/qt/qpixmap.sip | 288 - python/pyqt/sip/qt/qpixmapcache.sip | 53 - python/pyqt/sip/qt/qplatinumstyle.sip | 142 - python/pyqt/sip/qt/qpoint.sip | 103 - python/pyqt/sip/qt/qpointarray.sip | 247 - python/pyqt/sip/qt/qpopupmenu.sip | 282 - python/pyqt/sip/qt/qprintdialog.sip | 64 - python/pyqt/sip/qt/qprinter.sip | 256 - python/pyqt/sip/qt/qprocess.sip | 112 - python/pyqt/sip/qt/qprogressbar.sip | 95 - python/pyqt/sip/qt/qprogressdialog.sip | 194 - python/pyqt/sip/qt/qptrlist.sip | 111 - python/pyqt/sip/qt/qpushbutton.sip | 143 - python/pyqt/sip/qt/qradiobutton.sip | 84 - python/pyqt/sip/qt/qrangecontrol.sip | 79 - python/pyqt/sip/qt/qrect.sip | 209 - python/pyqt/sip/qt/qregexp.sip | 139 - python/pyqt/sip/qt/qregion.sip | 126 - python/pyqt/sip/qt/qscrollbar.sip | 170 - python/pyqt/sip/qt/qscrollview.sip | 325 - python/pyqt/sip/qt/qsemaphore.sip | 112 - python/pyqt/sip/qt/qsemimodal.sip | 63 - python/pyqt/sip/qt/qsessionmanager.sip | 89 - python/pyqt/sip/qt/qsettings.sip | 177 - python/pyqt/sip/qt/qsgistyle.sip | 157 - python/pyqt/sip/qt/qsignalmapper.sip | 51 - python/pyqt/sip/qt/qsimplerichtext.sip | 91 - python/pyqt/sip/qt/qsize.sip | 114 - python/pyqt/sip/qt/qsizegrip.sip | 60 - python/pyqt/sip/qt/qsizepolicy.sip | 103 - python/pyqt/sip/qt/qslider.sip | 187 - python/pyqt/sip/qt/qsocketnotifier.sip | 66 - python/pyqt/sip/qt/qsound.sip | 69 - python/pyqt/sip/qt/qspinbox.sip | 268 - python/pyqt/sip/qt/qsplashscreen.sip | 61 - python/pyqt/sip/qt/qsplitter.sip | 160 - python/pyqt/sip/qt/qstatusbar.sip | 94 - python/pyqt/sip/qt/qstring.sip | 1079 -- python/pyqt/sip/qt/qstringlist.sip | 247 - python/pyqt/sip/qt/qstrlist.sip | 100 - python/pyqt/sip/qt/qstyle.sip | 862 -- python/pyqt/sip/qt/qstylefactory.sip | 45 - python/pyqt/sip/qt/qstylesheet.sip | 239 - python/pyqt/sip/qt/qsyntaxhighlighter.sip | 57 - python/pyqt/sip/qt/qtabbar.sip | 264 - python/pyqt/sip/qt/qtabdialog.sip | 167 - python/pyqt/sip/qt/qtableview.sip | 185 - python/pyqt/sip/qt/qtabwidget.sip | 177 - python/pyqt/sip/qt/qtextbrowser.sip | 114 - python/pyqt/sip/qt/qtextcodec.sip | 146 - python/pyqt/sip/qt/qtextedit.sip | 437 - python/pyqt/sip/qt/qtextstream.sip | 231 - python/pyqt/sip/qt/qtextview.sip | 128 - python/pyqt/sip/qt/qthread.sip | 98 - python/pyqt/sip/qt/qtimer.sip | 59 - python/pyqt/sip/qt/qtmod.sip | 282 - python/pyqt/sip/qt/qtoolbar.sip | 160 - python/pyqt/sip/qt/qtoolbox.sip | 88 - python/pyqt/sip/qt/qtoolbutton.sip | 199 - python/pyqt/sip/qt/qtooltip.sip | 169 - python/pyqt/sip/qt/qtranslator.sip | 177 - python/pyqt/sip/qt/qurl.sip | 114 - python/pyqt/sip/qt/qurlinfo.sip | 96 - python/pyqt/sip/qt/qurloperator.sip | 115 - python/pyqt/sip/qt/quuid.sip | 87 - python/pyqt/sip/qt/qvalidator.sip | 227 - python/pyqt/sip/qt/qvaluelist.sip | 181 - python/pyqt/sip/qt/qvariant.sip | 420 - python/pyqt/sip/qt/qvbox.sip | 55 - python/pyqt/sip/qt/qvbuttongroup.sip | 48 - python/pyqt/sip/qt/qvgroupbox.sip | 48 - python/pyqt/sip/qt/qwaitcondition.sip | 81 - python/pyqt/sip/qt/qwhatsthis.sip | 97 - python/pyqt/sip/qt/qwidget.sip | 654 - python/pyqt/sip/qt/qwidgetlist.sip | 108 - python/pyqt/sip/qt/qwidgetstack.sip | 98 - python/pyqt/sip/qt/qwindow.sip | 47 - python/pyqt/sip/qt/qwindowdefs.sip | 180 - python/pyqt/sip/qt/qwindowdefs_qws.sip | 29 - python/pyqt/sip/qt/qwindowdefs_x11.sip | 48 - python/pyqt/sip/qt/qwindowsstyle.sip | 192 - python/pyqt/sip/qt/qwindowsxpstyle.sip | 31 - python/pyqt/sip/qt/qwizard.sip | 122 - python/pyqt/sip/qt/qwmatrix.sip | 178 - python/pyqt/sip/qt/qworkspace.sip | 101 - python/pyqt/sip/qt/versions.sip | 88 - python/pyqt/sip/qtaxcontainer/copying.sip | 51 - python/pyqt/sip/qtaxcontainer/qaxbase.sip | 86 - python/pyqt/sip/qtaxcontainer/qaxobject.sip | 37 - python/pyqt/sip/qtaxcontainer/qaxwidget.sip | 37 - python/pyqt/sip/qtaxcontainer/qtaxcontainermod.sip | 32 - python/pyqt/sip/qtcanvas/copying.sip | 51 - python/pyqt/sip/qtcanvas/qcanvas.sip | 856 -- python/pyqt/sip/qtcanvas/qtcanvasmod.sip | 70 - python/pyqt/sip/qtext/copying.sip | 51 - python/pyqt/sip/qtext/qextscintilla.sip | 411 - python/pyqt/sip/qtext/qextscintillaapis.sip | 42 - python/pyqt/sip/qtext/qextscintillabase.sip | 1024 -- python/pyqt/sip/qtext/qextscintillacommand.sip | 44 - python/pyqt/sip/qtext/qextscintillacommandset.sip | 52 - python/pyqt/sip/qtext/qextscintilladocument.sip | 42 - python/pyqt/sip/qtext/qextscintillalexer.sip | 80 - python/pyqt/sip/qtext/qextscintillalexerbash.sip | 80 - python/pyqt/sip/qtext/qextscintillalexerbatch.sip | 62 - python/pyqt/sip/qtext/qextscintillalexercpp.sip | 98 - python/pyqt/sip/qtext/qextscintillalexercsharp.sip | 47 - python/pyqt/sip/qtext/qextscintillalexercss.sip | 81 - python/pyqt/sip/qtext/qextscintillalexerdiff.sip | 57 - python/pyqt/sip/qtext/qextscintillalexerhtml.sip | 178 - python/pyqt/sip/qtext/qextscintillalexeridl.sip | 43 - python/pyqt/sip/qtext/qextscintillalexerjava.sip | 41 - .../sip/qtext/qextscintillalexerjavascript.sip | 47 - python/pyqt/sip/qtext/qextscintillalexerlua.sip | 79 - .../pyqt/sip/qtext/qextscintillalexermakefile.sip | 60 - python/pyqt/sip/qtext/qextscintillalexerperl.sip | 96 - python/pyqt/sip/qtext/qextscintillalexerpov.sip | 85 - .../sip/qtext/qextscintillalexerproperties.sip | 68 - python/pyqt/sip/qtext/qextscintillalexerpython.sip | 94 - python/pyqt/sip/qtext/qextscintillalexerruby.sip | 128 - python/pyqt/sip/qtext/qextscintillalexersql.sip | 105 - python/pyqt/sip/qtext/qextscintillalexertex.sip | 57 - python/pyqt/sip/qtext/qextscintillamacro.sip | 49 - python/pyqt/sip/qtext/qextscintillaprinter.sip | 45 - python/pyqt/sip/qtext/qtextmod.sip | 107 - python/pyqt/sip/qtgl/copying.sip | 51 - python/pyqt/sip/qtgl/qgl.sip | 298 - python/pyqt/sip/qtgl/qglcolormap.sip | 63 - python/pyqt/sip/qtgl/qtglmod.sip | 71 - python/pyqt/sip/qtnetwork/copying.sip | 51 - python/pyqt/sip/qtnetwork/qdns.sip | 274 - python/pyqt/sip/qtnetwork/qftp.sip | 183 - python/pyqt/sip/qtnetwork/qhostaddress.sip | 99 - python/pyqt/sip/qtnetwork/qhttp.sip | 279 - python/pyqt/sip/qtnetwork/qlocalfs.sip | 56 - python/pyqt/sip/qtnetwork/qnetwork.sip | 34 - python/pyqt/sip/qtnetwork/qserversocket.sip | 70 - python/pyqt/sip/qtnetwork/qsocket.sip | 348 - python/pyqt/sip/qtnetwork/qsocketdevice.sip | 224 - python/pyqt/sip/qtnetwork/qtnetworkmod.sip | 78 - python/pyqt/sip/qtpe/copying.sip | 51 - python/pyqt/sip/qtpe/qpeapplication.sip | 223 - python/pyqt/sip/qtpe/qpeapplnk.sip | 157 - python/pyqt/sip/qtpe/qpeconfig.sip | 78 - python/pyqt/sip/qtpe/qpefilemanager.sip | 53 - python/pyqt/sip/qtpe/qpefileselector.sip | 69 - python/pyqt/sip/qtpe/qpefontdatabase.sip | 67 - python/pyqt/sip/qtpe/qpeglobal.sip | 83 - python/pyqt/sip/qtpe/qpemenubar.sip | 42 - python/pyqt/sip/qtpe/qpemenubutton.sip | 61 - python/pyqt/sip/qtpe/qpeqcopenvelope.sip | 39 - python/pyqt/sip/qtpe/qpeqdawg.sip | 65 - python/pyqt/sip/qtpe/qperesource.sip | 50 - python/pyqt/sip/qtpe/qpetimestring.sip | 71 - python/pyqt/sip/qtpe/qpetoolbar.sip | 42 - python/pyqt/sip/qtpe/qtpemod.sip | 94 - python/pyqt/sip/qtsql/copying.sip | 51 - python/pyqt/sip/qtsql/qdatabrowser.sip | 150 - python/pyqt/sip/qtsql/qdatatable.sip | 201 - python/pyqt/sip/qtsql/qdataview.sip | 60 - python/pyqt/sip/qtsql/qeditorfactory.sip | 55 - python/pyqt/sip/qtsql/qsql.sip | 80 - python/pyqt/sip/qtsql/qsqlcursor.sip | 148 - python/pyqt/sip/qtsql/qsqldatabase.sip | 154 - python/pyqt/sip/qtsql/qsqldriver.sip | 93 - python/pyqt/sip/qtsql/qsqleditorfactory.sip | 57 - python/pyqt/sip/qtsql/qsqlerror.sip | 68 - python/pyqt/sip/qtsql/qsqlfield.sip | 95 - python/pyqt/sip/qtsql/qsqlform.sip | 74 - python/pyqt/sip/qtsql/qsqlindex.sip | 64 - python/pyqt/sip/qtsql/qsqlpropertymap.sip | 63 - python/pyqt/sip/qtsql/qsqlquery.sip | 115 - python/pyqt/sip/qtsql/qsqlrecord.sip | 178 - python/pyqt/sip/qtsql/qsqlresult.sip | 73 - python/pyqt/sip/qtsql/qsqlselectcursor.sip | 92 - python/pyqt/sip/qtsql/qtsqlmod.sip | 88 - python/pyqt/sip/qttable/copying.sip | 51 - python/pyqt/sip/qttable/qtable.sip | 532 - python/pyqt/sip/qttable/qttablemod.sip | 70 - python/pyqt/sip/qtui/copying.sip | 51 - python/pyqt/sip/qtui/qtuimod.sip | 71 - python/pyqt/sip/qtui/qwidgetfactory.sip | 63 - python/pyqt/sip/qtxml/copying.sip | 51 - python/pyqt/sip/qtxml/qdom.sip | 866 -- python/pyqt/sip/qtxml/qtxmlmod.sip | 80 - python/sip/ChangeLog | 3814 ------ python/sip/LICENSE | 45 - python/sip/NEWS | 198 - python/sip/README | 5 - python/sip/README.HP-UX | 32 - python/sip/THANKS | 16 - python/sip/TODO | 55 - python/sip/configure.py | 417 - python/sip/custom/custom.c | 60 - python/sip/custom/customw.c | 64 - python/sip/custom/mkcustom.py | 87 - python/sip/doc/default.css | 229 - python/sip/doc/sipref.html | 5281 -------- python/sip/doc/sipref.txt | 5353 -------- python/sip/sipdistutils.py | 90 - python/sip/sipgen/export.c | 998 -- python/sip/sipgen/gencode.c | 10820 ---------------- python/sip/sipgen/heap.c | 115 - python/sip/sipgen/lexer.c | 3266 ----- python/sip/sipgen/lexer.l | 567 - python/sip/sipgen/main.c | 484 - python/sip/sipgen/parser.c | 7526 ----------- python/sip/sipgen/parser.h | 268 - python/sip/sipgen/parser.y | 4945 ------- python/sip/sipgen/sip.h | 1027 -- python/sip/sipgen/sipgen.sbf | 16 - python/sip/sipgen/transform.c | 2856 ----- python/sip/siplib/bool.cpp | 19 - python/sip/siplib/objmap.c | 264 - python/sip/siplib/qtlib.c | 1254 -- python/sip/siplib/sip.h | 1302 -- python/sip/siplib/sipint.h | 121 - python/sip/siplib/siplib.c | 7902 ------------ python/sip/siplib/siplib.sbf | 16 - python/sip/siplib/threads.c | 223 - python/sip/siputils.py | 2354 ---- python/sip/specs/aix-g++ | 79 - python/sip/specs/aix-g++-64 | 79 - python/sip/specs/aix-xlc | 82 - python/sip/specs/aix-xlc-64 | 84 - python/sip/specs/bsdi-g++ | 84 - python/sip/specs/cygwin-g++ | 86 - python/sip/specs/darwin-g++ | 89 - python/sip/specs/dgux-g++ | 77 - python/sip/specs/freebsd-g++ | 80 - python/sip/specs/freebsd-g++34 | 80 - python/sip/specs/freebsd-g++40 | 80 - python/sip/specs/freebsd-icc | 105 - python/sip/specs/hpux-acc | 103 - python/sip/specs/hpux-acc-64 | 124 - python/sip/specs/hpux-acc-o64 | 123 - python/sip/specs/hpux-cc | 100 - python/sip/specs/hpux-g++ | 85 - python/sip/specs/hpux-g++-64 | 85 - python/sip/specs/hpuxi-acc | 122 - python/sip/specs/hpuxi-acc-64 | 122 - python/sip/specs/hurd-g++ | 77 - python/sip/specs/irix-cc | 113 - python/sip/specs/irix-cc-64 | 113 - python/sip/specs/irix-cc-o32 | 89 - python/sip/specs/irix-g++ | 84 - python/sip/specs/irix-g++-64 | 84 - python/sip/specs/linux-cxx | 78 - python/sip/specs/linux-ecc-64 | 84 - python/sip/specs/linux-g++ | 90 - python/sip/specs/linux-g++-32 | 90 - python/sip/specs/linux-g++-64 | 93 - python/sip/specs/linux-icc | 107 - python/sip/specs/linux-kcc | 93 - python/sip/specs/linux-kylix | 82 - python/sip/specs/linux-lsb | 90 - python/sip/specs/linux-pgcc | 82 - python/sip/specs/lynxos-g++ | 85 - python/sip/specs/macx-g++ | 97 - python/sip/specs/macx-mwerks | 25 - python/sip/specs/macx-pbuilder | 83 - python/sip/specs/macx-xcode | 83 - python/sip/specs/macx-xlc | 94 - python/sip/specs/netbsd-g++ | 80 - python/sip/specs/openbsd-g++ | 81 - python/sip/specs/qnx-g++ | 81 - python/sip/specs/reliant-cds | 85 - python/sip/specs/reliant-cds-64 | 85 - python/sip/specs/sco-cc | 78 - python/sip/specs/sco-g++ | 77 - python/sip/specs/solaris-cc | 85 - python/sip/specs/solaris-cc-64 | 102 - python/sip/specs/solaris-g++ | 87 - python/sip/specs/solaris-g++-64 | 104 - python/sip/specs/tru64-cxx | 79 - python/sip/specs/tru64-g++ | 79 - python/sip/specs/unixware-cc | 84 - python/sip/specs/unixware-g++ | 81 - python/sip/specs/win32-borland | 90 - python/sip/specs/win32-g++ | 102 - python/sip/specs/win32-icc | 87 - python/sip/specs/win32-msvc | 86 - python/sip/specs/win32-msvc.net | 88 - python/sip/specs/win32-msvc2005 | 88 - python/sip/specs/win32-watcom | 69 - 2482 files changed, 14 insertions(+), 442473 deletions(-) delete mode 100644 python/Makefile.am create mode 100644 python/README delete mode 100644 python/README.copy delete mode 100644 python/configure.in.in delete mode 100644 python/mungepyqtconfig.sed delete mode 100644 python/mungesipconfig.sed delete mode 100644 python/pykde/AUTHORS delete mode 100644 python/pykde/BUGS delete mode 100644 python/pykde/COPYING delete mode 100644 python/pykde/ChangeLog delete mode 100644 python/pykde/ChangeLog.2001-4 delete mode 100644 python/pykde/Changelog delete mode 100644 python/pykde/INSTALL delete mode 100644 python/pykde/NEWS delete mode 100644 python/pykde/README delete mode 100644 python/pykde/THANKS delete mode 100644 python/pykde/configure.py delete mode 100755 python/pykde/contrib/kdepyuic delete mode 100644 python/pykde/doc/classref/allclasses.html delete mode 100644 python/pykde/doc/classref/dcop/DCOPClient.html delete mode 100644 python/pykde/doc/classref/dcop/DCOPObject.html delete mode 100644 python/pykde/doc/classref/dcop/DCOPObjectProxy.html delete mode 100644 python/pykde/doc/classref/dcop/DCOPRef.html delete mode 100644 python/pykde/doc/classref/dcop/DCOPReply.html delete mode 100644 python/pykde/doc/classref/dcop/DCOPStub.html delete mode 100644 python/pykde/doc/classref/dcop/index.html delete mode 100644 python/pykde/doc/classref/glossary.html delete mode 100644 python/pykde/doc/classref/index.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.Address.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.AddressBook.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.AddressLineEdit.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.AddresseeDialog.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.AddresseeItem.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.Agent.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.ConsoleErrorHandler.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.DistributionList.Entry.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.DistributionList.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.DistributionListDialog.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.DistributionListEditorWidget.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.DistributionListManager.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.DistributionListWatcher.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.EmailSelectDialog.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.EmailSelector.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.ErrorHandler.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.Field.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.FieldSortMode.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.Format.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.FormatFactory.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.FormatInfo.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.FormatPlugin.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.GUIErrorHandler.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.Geo.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.GuiErrorHandler.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.Key.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.LDAPUrl.Extension.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.LDAPUrl.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.LDIF.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.LDIFConverter.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.LdapClient.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.LdapConfigWidget.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.LdapObject.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.LdapResult.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.LdapSearch.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.Lock.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.LockNull.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.NameSortMode.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.PhoneNumber.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.Picture.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.Plugin.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.Resource.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.ResourceFile.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.ResourceSelectDialog.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.Secrecy.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.SortMode.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.SortingTraits.FamilyName.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.SortingTraits.FormattedName.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.SortingTraits.GivenName.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.SortingTraits.Name.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.SortingTraits.Uid.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.SortingTraits.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.Sound.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.StdAddressBook.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.Ticket.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.TimeZone.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.VCardConverter.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.VCardFormat.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.VCardFormatPlugin.html delete mode 100644 python/pykde/doc/classref/kabc/KABC.html delete mode 100644 python/pykde/doc/classref/kabc/index.html delete mode 100644 python/pykde/doc/classref/kabc/kabc-globals.html delete mode 100644 python/pykde/doc/classref/kdecore/KAboutData.html delete mode 100644 python/pykde/doc/classref/kdecore/KAboutPerson.html delete mode 100644 python/pykde/doc/classref/kdecore/KAboutTranslator.html delete mode 100644 python/pykde/doc/classref/kdecore/KAccel.html delete mode 100644 python/pykde/doc/classref/kdecore/KAccelAction.html delete mode 100644 python/pykde/doc/classref/kdecore/KAccelActions.html delete mode 100644 python/pykde/doc/classref/kdecore/KAccelBase.html delete mode 100644 python/pykde/doc/classref/kdecore/KAccelShortcutList.html delete mode 100644 python/pykde/doc/classref/kdecore/KApplication.html delete mode 100644 python/pykde/doc/classref/kdecore/KAsyncIO.html delete mode 100644 python/pykde/doc/classref/kdecore/KAudioPlayer.html delete mode 100644 python/pykde/doc/classref/kdecore/KBufferedIO.html delete mode 100644 python/pykde/doc/classref/kdecore/KCalendarSystem.html delete mode 100644 python/pykde/doc/classref/kdecore/KCalendarSystemFactory.html delete mode 100644 python/pykde/doc/classref/kdecore/KCatalogue.html delete mode 100644 python/pykde/doc/classref/kdecore/KCharMacroExpander.html delete mode 100644 python/pykde/doc/classref/kdecore/KCharsets.html delete mode 100644 python/pykde/doc/classref/kdecore/KClipboardSynchronizer.html delete mode 100644 python/pykde/doc/classref/kdecore/KCmdLineArgs.html delete mode 100644 python/pykde/doc/classref/kdecore/KCmdLineOptions.html delete mode 100644 python/pykde/doc/classref/kdecore/KCodecs.html delete mode 100644 python/pykde/doc/classref/kdecore/KCompletion.html delete mode 100644 python/pykde/doc/classref/kdecore/KCompletionBase.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfig.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigBackEnd.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigBase.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigDialogManager.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigGroup.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigGroupSaver.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigINIBackEnd.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemBool.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemColor.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemDateTime.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemDouble.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemEnum.Choice.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemEnum.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemFont.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemInt.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemInt64.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemIntList.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemLong.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemPassword.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemPath.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemPathList.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemPoint.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemProperty.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemRect.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemSize.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemString.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemStringList.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemUInt.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemUInt64.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemULong.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeleton.html delete mode 100644 python/pykde/doc/classref/kdecore/KConfigSkeletonItem.html delete mode 100644 python/pykde/doc/classref/kdecore/KCrash.html delete mode 100644 python/pykde/doc/classref/kdecore/KDCOPPropertyProxy.html delete mode 100644 python/pykde/doc/classref/kdecore/KDE.html delete mode 100644 python/pykde/doc/classref/kdecore/KDesktopFile.html delete mode 100644 python/pykde/doc/classref/kdecore/KEntry.html delete mode 100644 python/pykde/doc/classref/kdecore/KEntryKey.html delete mode 100644 python/pykde/doc/classref/kdecore/KGlobal.html delete mode 100644 python/pykde/doc/classref/kdecore/KGlobalAccel.html delete mode 100644 python/pykde/doc/classref/kdecore/KGlobalSettings.KMouseSettings.html delete mode 100644 python/pykde/doc/classref/kdecore/KGlobalSettings.html delete mode 100644 python/pykde/doc/classref/kdecore/KIDNA.html delete mode 100644 python/pykde/doc/classref/kdecore/KIPC.html delete mode 100644 python/pykde/doc/classref/kdecore/KIcon.html delete mode 100644 python/pykde/doc/classref/kdecore/KIconEffect.html delete mode 100644 python/pykde/doc/classref/kdecore/KIconLoader.html delete mode 100644 python/pykde/doc/classref/kdecore/KIconTheme.html delete mode 100644 python/pykde/doc/classref/kdecore/KInstance.html delete mode 100644 python/pykde/doc/classref/kdecore/KKey.html delete mode 100644 python/pykde/doc/classref/kdecore/KKeyNative.html delete mode 100644 python/pykde/doc/classref/kdecore/KKeySequence.html delete mode 100644 python/pykde/doc/classref/kdecore/KKeyServer.CodeMod.html delete mode 100644 python/pykde/doc/classref/kdecore/KKeyServer.Key.html delete mode 100644 python/pykde/doc/classref/kdecore/KKeyServer.Sym.html delete mode 100644 python/pykde/doc/classref/kdecore/KKeyServer.Variations.html delete mode 100644 python/pykde/doc/classref/kdecore/KKeyServer.html delete mode 100644 python/pykde/doc/classref/kdecore/KLibFactory.html delete mode 100644 python/pykde/doc/classref/kdecore/KLibLoader.html delete mode 100644 python/pykde/doc/classref/kdecore/KLibrary.html delete mode 100644 python/pykde/doc/classref/kdecore/KLocale.html delete mode 100644 python/pykde/doc/classref/kdecore/KLockFile.html delete mode 100644 python/pykde/doc/classref/kdecore/KMD4.html delete mode 100644 python/pykde/doc/classref/kdecore/KMD5.html delete mode 100644 python/pykde/doc/classref/kdecore/KMacroExpander.html delete mode 100644 python/pykde/doc/classref/kdecore/KMacroExpanderBase.html delete mode 100644 python/pykde/doc/classref/kdecore/KMimeSourceFactory.html delete mode 100644 python/pykde/doc/classref/kdecore/KMountPoint.html delete mode 100644 python/pykde/doc/classref/kdecore/KMultipleDrag.html delete mode 100644 python/pykde/doc/classref/kdecore/KNotifyClient.Instance.html delete mode 100644 python/pykde/doc/classref/kdecore/KNotifyClient.html delete mode 100644 python/pykde/doc/classref/kdecore/KPalette.html delete mode 100644 python/pykde/doc/classref/kdecore/KPixmapProvider.html delete mode 100644 python/pykde/doc/classref/kdecore/KProcIO.html delete mode 100644 python/pykde/doc/classref/kdecore/KProcess.html delete mode 100644 python/pykde/doc/classref/kdecore/KProcessController.html delete mode 100644 python/pykde/doc/classref/kdecore/KPty.html delete mode 100644 python/pykde/doc/classref/kdecore/KRFCDate.html delete mode 100644 python/pykde/doc/classref/kdecore/KRandomSequence.html delete mode 100644 python/pykde/doc/classref/kdecore/KRegExp.html delete mode 100644 python/pykde/doc/classref/kdecore/KRootProp.html delete mode 100644 python/pykde/doc/classref/kdecore/KSaveFile.html delete mode 100644 python/pykde/doc/classref/kdecore/KSelectionOwner.html delete mode 100644 python/pykde/doc/classref/kdecore/KSelectionWatcher.html delete mode 100644 python/pykde/doc/classref/kdecore/KServerSocket.html delete mode 100644 python/pykde/doc/classref/kdecore/KSessionManaged.html delete mode 100644 python/pykde/doc/classref/kdecore/KShared.html delete mode 100644 python/pykde/doc/classref/kdecore/KSharedConfig.html delete mode 100644 python/pykde/doc/classref/kdecore/KShell.html delete mode 100644 python/pykde/doc/classref/kdecore/KShellProcess.html delete mode 100644 python/pykde/doc/classref/kdecore/KShortcut.html delete mode 100644 python/pykde/doc/classref/kdecore/KShortcutList.html delete mode 100644 python/pykde/doc/classref/kdecore/KSimpleConfig.html delete mode 100644 python/pykde/doc/classref/kdecore/KSocket.html delete mode 100644 python/pykde/doc/classref/kdecore/KStartupInfo.html delete mode 100644 python/pykde/doc/classref/kdecore/KStartupInfoData.html delete mode 100644 python/pykde/doc/classref/kdecore/KStartupInfoId.html delete mode 100644 python/pykde/doc/classref/kdecore/KStaticDeleterBase.html delete mode 100644 python/pykde/doc/classref/kdecore/KStdAccel.ShortcutList.html delete mode 100644 python/pykde/doc/classref/kdecore/KStdAccel.html delete mode 100644 python/pykde/doc/classref/kdecore/KStringHandler.html delete mode 100644 python/pykde/doc/classref/kdecore/KTempDir.html delete mode 100644 python/pykde/doc/classref/kdecore/KTempFile.html delete mode 100644 python/pykde/doc/classref/kdecore/KTimezone.html delete mode 100644 python/pykde/doc/classref/kdecore/KTimezoneDetails.html delete mode 100644 python/pykde/doc/classref/kdecore/KTimezoneSource.html delete mode 100644 python/pykde/doc/classref/kdecore/KTimezones.html delete mode 100644 python/pykde/doc/classref/kdecore/KURL.List.html delete mode 100644 python/pykde/doc/classref/kdecore/KURL.html delete mode 100644 python/pykde/doc/classref/kdecore/KURLDrag.html delete mode 100644 python/pykde/doc/classref/kdecore/KUniqueApplication.html delete mode 100644 python/pykde/doc/classref/kdecore/KWin.Info.html delete mode 100644 python/pykde/doc/classref/kdecore/KWin.WindowInfo.html delete mode 100644 python/pykde/doc/classref/kdecore/KWin.html delete mode 100644 python/pykde/doc/classref/kdecore/KWinModule.html delete mode 100644 python/pykde/doc/classref/kdecore/KWordMacroExpander.html delete mode 100644 python/pykde/doc/classref/kdecore/KZoneAllocator.html delete mode 100644 python/pykde/doc/classref/kdecore/NET.html delete mode 100644 python/pykde/doc/classref/kdecore/NETExtendedStrut.html delete mode 100644 python/pykde/doc/classref/kdecore/NETIcon.html delete mode 100644 python/pykde/doc/classref/kdecore/NETPoint.html delete mode 100644 python/pykde/doc/classref/kdecore/NETRect.html delete mode 100644 python/pykde/doc/classref/kdecore/NETRootInfo.html delete mode 100644 python/pykde/doc/classref/kdecore/NETRootInfo2.html delete mode 100644 python/pykde/doc/classref/kdecore/NETRootInfo3.html delete mode 100644 python/pykde/doc/classref/kdecore/NETRootInfo4.html delete mode 100644 python/pykde/doc/classref/kdecore/NETSize.html delete mode 100644 python/pykde/doc/classref/kdecore/NETStrut.html delete mode 100644 python/pykde/doc/classref/kdecore/NETWinInfo.html delete mode 100644 python/pykde/doc/classref/kdecore/index.html delete mode 100644 python/pykde/doc/classref/kdecore/kdecore-globals.html delete mode 100644 python/pykde/doc/classref/kdefx/KCPUInfo.html delete mode 100644 python/pykde/doc/classref/kdefx/KImageEffect.html delete mode 100644 python/pykde/doc/classref/kdefx/KPixmap.html delete mode 100644 python/pykde/doc/classref/kdefx/KPixmapEffect.html delete mode 100644 python/pykde/doc/classref/kdefx/KPixmapSplitter.html delete mode 100644 python/pykde/doc/classref/kdefx/KStyle.html delete mode 100644 python/pykde/doc/classref/kdefx/index.html delete mode 100644 python/pykde/doc/classref/kdefx/kdefx-globals.html delete mode 100644 python/pykde/doc/classref/kdeprint/DrBase.html delete mode 100644 python/pykde/doc/classref/kdeprint/DrBooleanOption.html delete mode 100644 python/pykde/doc/classref/kdeprint/DrChoiceGroup.html delete mode 100644 python/pykde/doc/classref/kdeprint/DrConstraint.html delete mode 100644 python/pykde/doc/classref/kdeprint/DrFloatOption.html delete mode 100644 python/pykde/doc/classref/kdeprint/DrGroup.html delete mode 100644 python/pykde/doc/classref/kdeprint/DrIntegerOption.html delete mode 100644 python/pykde/doc/classref/kdeprint/DrListOption.html delete mode 100644 python/pykde/doc/classref/kdeprint/DrMain.html delete mode 100644 python/pykde/doc/classref/kdeprint/DrPageSize.html delete mode 100644 python/pykde/doc/classref/kdeprint/DrStringOption.html delete mode 100644 python/pykde/doc/classref/kdeprint/KMJob.html delete mode 100644 python/pykde/doc/classref/kdeprint/KMJobManager.JobFilter.html delete mode 100644 python/pykde/doc/classref/kdeprint/KMJobManager.html delete mode 100644 python/pykde/doc/classref/kdeprint/KMManager.html delete mode 100644 python/pykde/doc/classref/kdeprint/KMObject.html delete mode 100644 python/pykde/doc/classref/kdeprint/KMPrinter.html delete mode 100644 python/pykde/doc/classref/kdeprint/KPReloadObject.html delete mode 100644 python/pykde/doc/classref/kdeprint/KPrintAction.html delete mode 100644 python/pykde/doc/classref/kdeprint/KPrintDialog.html delete mode 100644 python/pykde/doc/classref/kdeprint/KPrintDialogPage.html delete mode 100644 python/pykde/doc/classref/kdeprint/KPrinter.html delete mode 100644 python/pykde/doc/classref/kdeprint/index.html delete mode 100644 python/pykde/doc/classref/kdeprint/kdeprint-globals.html delete mode 100644 python/pykde/doc/classref/kdeui/KAboutApplication.html delete mode 100644 python/pykde/doc/classref/kdeui/KAboutContainer.html delete mode 100644 python/pykde/doc/classref/kdeui/KAboutContributor.html delete mode 100644 python/pykde/doc/classref/kdeui/KAboutDialog.html delete mode 100644 python/pykde/doc/classref/kdeui/KAboutKDE.html delete mode 100644 python/pykde/doc/classref/kdeui/KAboutWidget.html delete mode 100644 python/pykde/doc/classref/kdeui/KAction.html delete mode 100644 python/pykde/doc/classref/kdeui/KActionCollection.html delete mode 100644 python/pykde/doc/classref/kdeui/KActionMenu.html delete mode 100644 python/pykde/doc/classref/kdeui/KActionPtrShortcutList.html delete mode 100644 python/pykde/doc/classref/kdeui/KActionSelector.html delete mode 100644 python/pykde/doc/classref/kdeui/KActionSeparator.html delete mode 100644 python/pykde/doc/classref/kdeui/KActionShortcutList.html delete mode 100644 python/pykde/doc/classref/kdeui/KActiveLabel.html delete mode 100644 python/pykde/doc/classref/kdeui/KAnimWidget.html delete mode 100644 python/pykde/doc/classref/kdeui/KArrowButton.html delete mode 100644 python/pykde/doc/classref/kdeui/KAuthIcon.html delete mode 100644 python/pykde/doc/classref/kdeui/KBugReport.html delete mode 100644 python/pykde/doc/classref/kdeui/KButtonBox.html delete mode 100644 python/pykde/doc/classref/kdeui/KCModule.html delete mode 100644 python/pykde/doc/classref/kdeui/KCharSelect.html delete mode 100644 python/pykde/doc/classref/kdeui/KCharSelectTable.html delete mode 100644 python/pykde/doc/classref/kdeui/KColor.html delete mode 100644 python/pykde/doc/classref/kdeui/KColorCells.html delete mode 100644 python/pykde/doc/classref/kdeui/KColorCombo.html delete mode 100644 python/pykde/doc/classref/kdeui/KColorDialog.html delete mode 100644 python/pykde/doc/classref/kdeui/KColorDrag.html delete mode 100644 python/pykde/doc/classref/kdeui/KColorPatch.html delete mode 100644 python/pykde/doc/classref/kdeui/KComboBox.html delete mode 100644 python/pykde/doc/classref/kdeui/KCommand.html delete mode 100644 python/pykde/doc/classref/kdeui/KCommandHistory.html delete mode 100644 python/pykde/doc/classref/kdeui/KCompletionBox.html delete mode 100644 python/pykde/doc/classref/kdeui/KConfigDialog.html delete mode 100644 python/pykde/doc/classref/kdeui/KContextMenuManager.html delete mode 100644 python/pykde/doc/classref/kdeui/KCursor.html delete mode 100644 python/pykde/doc/classref/kdeui/KDCOPActionProxy.html delete mode 100644 python/pykde/doc/classref/kdeui/KDateInternalMonthPicker.html delete mode 100644 python/pykde/doc/classref/kdeui/KDateInternalWeekSelector.html delete mode 100644 python/pykde/doc/classref/kdeui/KDateInternalYearSelector.html delete mode 100644 python/pykde/doc/classref/kdeui/KDatePicker.html delete mode 100644 python/pykde/doc/classref/kdeui/KDateTable.html delete mode 100644 python/pykde/doc/classref/kdeui/KDateTimeWidget.html delete mode 100644 python/pykde/doc/classref/kdeui/KDateValidator.html delete mode 100644 python/pykde/doc/classref/kdeui/KDateWidget.html delete mode 100644 python/pykde/doc/classref/kdeui/KDialog.html delete mode 100644 python/pykde/doc/classref/kdeui/KDialogBase.html delete mode 100644 python/pykde/doc/classref/kdeui/KDialogQueue.html delete mode 100644 python/pykde/doc/classref/kdeui/KDockArea.html delete mode 100644 python/pykde/doc/classref/kdeui/KDockMainWindow.html delete mode 100644 python/pykde/doc/classref/kdeui/KDockManager.html delete mode 100644 python/pykde/doc/classref/kdeui/KDockTabGroup.html delete mode 100644 python/pykde/doc/classref/kdeui/KDockWidget.html delete mode 100644 python/pykde/doc/classref/kdeui/KDockWidgetAbstractHeader.html delete mode 100644 python/pykde/doc/classref/kdeui/KDockWidgetAbstractHeaderDrag.html delete mode 100644 python/pykde/doc/classref/kdeui/KDockWidgetHeader.html delete mode 100644 python/pykde/doc/classref/kdeui/KDockWidgetHeaderDrag.html delete mode 100644 python/pykde/doc/classref/kdeui/KDockWindow.html delete mode 100644 python/pykde/doc/classref/kdeui/KDoubleNumInput.html delete mode 100644 python/pykde/doc/classref/kdeui/KDoubleSpinBox.html delete mode 100644 python/pykde/doc/classref/kdeui/KDoubleValidator.html delete mode 100644 python/pykde/doc/classref/kdeui/KDualColorButton.html delete mode 100644 python/pykde/doc/classref/kdeui/KEdFind.html delete mode 100644 python/pykde/doc/classref/kdeui/KEdGotoLine.html delete mode 100644 python/pykde/doc/classref/kdeui/KEdReplace.html delete mode 100644 python/pykde/doc/classref/kdeui/KEdit.html delete mode 100644 python/pykde/doc/classref/kdeui/KEditListBox.CustomEditor.html delete mode 100644 python/pykde/doc/classref/kdeui/KEditListBox.html delete mode 100644 python/pykde/doc/classref/kdeui/KEditToolbar.html delete mode 100644 python/pykde/doc/classref/kdeui/KEditToolbarWidget.html delete mode 100644 python/pykde/doc/classref/kdeui/KFloatValidator.html delete mode 100644 python/pykde/doc/classref/kdeui/KFontAction.html delete mode 100644 python/pykde/doc/classref/kdeui/KFontChooser.html delete mode 100644 python/pykde/doc/classref/kdeui/KFontCombo.html delete mode 100644 python/pykde/doc/classref/kdeui/KFontDialog.html delete mode 100644 python/pykde/doc/classref/kdeui/KFontRequester.html delete mode 100644 python/pykde/doc/classref/kdeui/KFontSizeAction.html delete mode 100644 python/pykde/doc/classref/kdeui/KGradientSelector.html delete mode 100644 python/pykde/doc/classref/kdeui/KGuiItem.html delete mode 100644 python/pykde/doc/classref/kdeui/KHSSelector.html delete mode 100644 python/pykde/doc/classref/kdeui/KHelpMenu.html delete mode 100644 python/pykde/doc/classref/kdeui/KHistoryCombo.html delete mode 100644 python/pykde/doc/classref/kdeui/KIconView.html delete mode 100644 python/pykde/doc/classref/kdeui/KIconViewItem.html delete mode 100644 python/pykde/doc/classref/kdeui/KIconViewSearchLine.html delete mode 100644 python/pykde/doc/classref/kdeui/KInputDialog.html delete mode 100644 python/pykde/doc/classref/kdeui/KIntNumInput.html delete mode 100644 python/pykde/doc/classref/kdeui/KIntSpinBox.html delete mode 100644 python/pykde/doc/classref/kdeui/KIntValidator.html delete mode 100644 python/pykde/doc/classref/kdeui/KJanusWidget.html delete mode 100644 python/pykde/doc/classref/kdeui/KKeyButton.html delete mode 100644 python/pykde/doc/classref/kdeui/KKeyChooser.html delete mode 100644 python/pykde/doc/classref/kdeui/KKeyDialog.html delete mode 100644 python/pykde/doc/classref/kdeui/KLanguageButton.html delete mode 100644 python/pykde/doc/classref/kdeui/KLed.html delete mode 100644 python/pykde/doc/classref/kdeui/KLineEdit.html delete mode 100644 python/pykde/doc/classref/kdeui/KLineEditDlg.html delete mode 100644 python/pykde/doc/classref/kdeui/KListAction.html delete mode 100644 python/pykde/doc/classref/kdeui/KListBox.html delete mode 100644 python/pykde/doc/classref/kdeui/KListView.html delete mode 100644 python/pykde/doc/classref/kdeui/KListViewItem.html delete mode 100644 python/pykde/doc/classref/kdeui/KListViewSearchLine.html delete mode 100644 python/pykde/doc/classref/kdeui/KListViewSearchLineWidget.html delete mode 100644 python/pykde/doc/classref/kdeui/KMacroCommand.html delete mode 100644 python/pykde/doc/classref/kdeui/KMainWindow.html delete mode 100644 python/pykde/doc/classref/kdeui/KMainWindowInterface.html delete mode 100644 python/pykde/doc/classref/kdeui/KMenuBar.html delete mode 100644 python/pykde/doc/classref/kdeui/KMessageBox.html delete mode 100644 python/pykde/doc/classref/kdeui/KMimeTypeValidator.html delete mode 100644 python/pykde/doc/classref/kdeui/KNamedCommand.html delete mode 100644 python/pykde/doc/classref/kdeui/KNumInput.html delete mode 100644 python/pykde/doc/classref/kdeui/KPaletteTable.html delete mode 100644 python/pykde/doc/classref/kdeui/KPanelAppMenu.html delete mode 100644 python/pykde/doc/classref/kdeui/KPanelApplet.html delete mode 100644 python/pykde/doc/classref/kdeui/KPanelExtension.html delete mode 100644 python/pykde/doc/classref/kdeui/KPanelMenu.html delete mode 100644 python/pykde/doc/classref/kdeui/KPassivePopup.html delete mode 100644 python/pykde/doc/classref/kdeui/KPasswordDialog.html delete mode 100644 python/pykde/doc/classref/kdeui/KPasswordEdit.html delete mode 100644 python/pykde/doc/classref/kdeui/KPasteTextAction.html delete mode 100644 python/pykde/doc/classref/kdeui/KPixmapIO.html delete mode 100644 python/pykde/doc/classref/kdeui/KPixmapRegionSelectorDialog.html delete mode 100644 python/pykde/doc/classref/kdeui/KPixmapRegionSelectorWidget.html delete mode 100644 python/pykde/doc/classref/kdeui/KPopupFrame.html delete mode 100644 python/pykde/doc/classref/kdeui/KPopupMenu.html delete mode 100644 python/pykde/doc/classref/kdeui/KPopupTitle.html delete mode 100644 python/pykde/doc/classref/kdeui/KProgress.html delete mode 100644 python/pykde/doc/classref/kdeui/KProgressDialog.html delete mode 100644 python/pykde/doc/classref/kdeui/KPushButton.html delete mode 100644 python/pykde/doc/classref/kdeui/KRadioAction.html delete mode 100644 python/pykde/doc/classref/kdeui/KRecentFilesAction.html delete mode 100644 python/pykde/doc/classref/kdeui/KRestrictedLine.html delete mode 100644 python/pykde/doc/classref/kdeui/KRootPermsIcon.html delete mode 100644 python/pykde/doc/classref/kdeui/KRootPixmap.html delete mode 100644 python/pykde/doc/classref/kdeui/KRuler.html delete mode 100644 python/pykde/doc/classref/kdeui/KScrollView.html delete mode 100644 python/pykde/doc/classref/kdeui/KSelectAction.html delete mode 100644 python/pykde/doc/classref/kdeui/KSelector.html delete mode 100644 python/pykde/doc/classref/kdeui/KSeparator.html delete mode 100644 python/pykde/doc/classref/kdeui/KSharedPixmap.html delete mode 100644 python/pykde/doc/classref/kdeui/KShortcutDialog.html delete mode 100644 python/pykde/doc/classref/kdeui/KSplashScreen.html delete mode 100644 python/pykde/doc/classref/kdeui/KSqueezedTextLabel.html delete mode 100644 python/pykde/doc/classref/kdeui/KStatusBar.html delete mode 100644 python/pykde/doc/classref/kdeui/KStatusBarLabel.html delete mode 100644 python/pykde/doc/classref/kdeui/KStdAction.html delete mode 100644 python/pykde/doc/classref/kdeui/KStdGuiItem.html delete mode 100644 python/pykde/doc/classref/kdeui/KStringListValidator.html delete mode 100644 python/pykde/doc/classref/kdeui/KSystemTray.html delete mode 100644 python/pykde/doc/classref/kdeui/KTabBar.html delete mode 100644 python/pykde/doc/classref/kdeui/KTabCtl.html delete mode 100644 python/pykde/doc/classref/kdeui/KTabWidget.html delete mode 100644 python/pykde/doc/classref/kdeui/KTextBrowser.html delete mode 100644 python/pykde/doc/classref/kdeui/KTextEdit.html delete mode 100644 python/pykde/doc/classref/kdeui/KTimeWidget.html delete mode 100644 python/pykde/doc/classref/kdeui/KTimezoneWidget.html delete mode 100644 python/pykde/doc/classref/kdeui/KTipDatabase.html delete mode 100644 python/pykde/doc/classref/kdeui/KTipDialog.html delete mode 100644 python/pykde/doc/classref/kdeui/KToggleAction.html delete mode 100644 python/pykde/doc/classref/kdeui/KToggleFullScreenAction.html delete mode 100644 python/pykde/doc/classref/kdeui/KToggleToolBarAction.html delete mode 100644 python/pykde/doc/classref/kdeui/KToolBar.html delete mode 100644 python/pykde/doc/classref/kdeui/KToolBarButton.html delete mode 100644 python/pykde/doc/classref/kdeui/KToolBarLabelAction.html delete mode 100644 python/pykde/doc/classref/kdeui/KToolBarPopupAction.html delete mode 100644 python/pykde/doc/classref/kdeui/KToolBarRadioGroup.html delete mode 100644 python/pykde/doc/classref/kdeui/KToolBarSeparator.html delete mode 100644 python/pykde/doc/classref/kdeui/KURLLabel.html delete mode 100644 python/pykde/doc/classref/kdeui/KValueSelector.html delete mode 100644 python/pykde/doc/classref/kdeui/KWidgetAction.html delete mode 100644 python/pykde/doc/classref/kdeui/KWindowInfo.html delete mode 100644 python/pykde/doc/classref/kdeui/KWindowListMenu.html delete mode 100644 python/pykde/doc/classref/kdeui/KWizard.html delete mode 100644 python/pykde/doc/classref/kdeui/KWordWrap.html delete mode 100644 python/pykde/doc/classref/kdeui/KWritePermsIcon.html delete mode 100644 python/pykde/doc/classref/kdeui/KXMLGUIBuilder.html delete mode 100644 python/pykde/doc/classref/kdeui/KXMLGUIClient.StateChange.html delete mode 100644 python/pykde/doc/classref/kdeui/KXMLGUIClient.html delete mode 100644 python/pykde/doc/classref/kdeui/KXMLGUIFactory.html delete mode 100644 python/pykde/doc/classref/kdeui/KXYSelector.html delete mode 100644 python/pykde/doc/classref/kdeui/QXEmbed.html delete mode 100644 python/pykde/doc/classref/kdeui/index.html delete mode 100644 python/pykde/doc/classref/kdeui/kdeui-globals.html delete mode 100644 python/pykde/doc/classref/kfile/KAppTreeListItem.html delete mode 100644 python/pykde/doc/classref/kfile/KApplicationPropsPlugin.html delete mode 100644 python/pykde/doc/classref/kfile/KApplicationTree.html delete mode 100644 python/pykde/doc/classref/kfile/KBindingPropsPlugin.html delete mode 100644 python/pykde/doc/classref/kfile/KCombiView.html delete mode 100644 python/pykde/doc/classref/kfile/KCustomMenuEditor.html delete mode 100644 python/pykde/doc/classref/kfile/KDesktopPropsPlugin.html delete mode 100644 python/pykde/doc/classref/kfile/KDevicePropsPlugin.html delete mode 100644 python/pykde/doc/classref/kfile/KDirOperator.html delete mode 100644 python/pykde/doc/classref/kfile/KDirSelectDialog.html delete mode 100644 python/pykde/doc/classref/kfile/KDirSize.html delete mode 100644 python/pykde/doc/classref/kfile/KDiskFreeSp.html delete mode 100644 python/pykde/doc/classref/kfile/KEncodingFileDialog.Result.html delete mode 100644 python/pykde/doc/classref/kfile/KEncodingFileDialog.html delete mode 100644 python/pykde/doc/classref/kfile/KExecPropsPlugin.html delete mode 100644 python/pykde/doc/classref/kfile/KFile.html delete mode 100644 python/pykde/doc/classref/kfile/KFileDetailView.html delete mode 100644 python/pykde/doc/classref/kfile/KFileDialog.html delete mode 100644 python/pykde/doc/classref/kfile/KFileFilterCombo.html delete mode 100644 python/pykde/doc/classref/kfile/KFileIconView.html delete mode 100644 python/pykde/doc/classref/kfile/KFileIconViewItem.html delete mode 100644 python/pykde/doc/classref/kfile/KFileListViewItem.html delete mode 100644 python/pykde/doc/classref/kfile/KFileOpenWithHandler.html delete mode 100644 python/pykde/doc/classref/kfile/KFilePermissionsPropsPlugin.html delete mode 100644 python/pykde/doc/classref/kfile/KFilePreview.html delete mode 100644 python/pykde/doc/classref/kfile/KFilePropsPlugin.html delete mode 100644 python/pykde/doc/classref/kfile/KFileSharePropsPlugin.html delete mode 100644 python/pykde/doc/classref/kfile/KFileTreeBranch.html delete mode 100644 python/pykde/doc/classref/kfile/KFileTreeView.html delete mode 100644 python/pykde/doc/classref/kfile/KFileTreeViewItem.html delete mode 100644 python/pykde/doc/classref/kfile/KFileTreeViewToolTip.html delete mode 100644 python/pykde/doc/classref/kfile/KFileView.html delete mode 100644 python/pykde/doc/classref/kfile/KFileViewSignaler.html delete mode 100644 python/pykde/doc/classref/kfile/KIconButton.html delete mode 100644 python/pykde/doc/classref/kfile/KIconCanvas.html delete mode 100644 python/pykde/doc/classref/kfile/KIconDialog.html delete mode 100644 python/pykde/doc/classref/kfile/KImageFilePreview.html delete mode 100644 python/pykde/doc/classref/kfile/KNotify.Application.html delete mode 100644 python/pykde/doc/classref/kfile/KNotify.ApplicationList.html delete mode 100644 python/pykde/doc/classref/kfile/KNotify.Event.html delete mode 100644 python/pykde/doc/classref/kfile/KNotify.KNotifyWidget.html delete mode 100644 python/pykde/doc/classref/kfile/KNotify.ListViewItem.html delete mode 100644 python/pykde/doc/classref/kfile/KNotify.html delete mode 100644 python/pykde/doc/classref/kfile/KNotifyDialog.html delete mode 100644 python/pykde/doc/classref/kfile/KOpenWithDlg.html delete mode 100644 python/pykde/doc/classref/kfile/KPreviewWidgetBase.html delete mode 100644 python/pykde/doc/classref/kfile/KPropertiesDialog.html delete mode 100644 python/pykde/doc/classref/kfile/KPropsDlgPlugin.html delete mode 100644 python/pykde/doc/classref/kfile/KRecentDirs.html delete mode 100644 python/pykde/doc/classref/kfile/KRecentDocument.html delete mode 100644 python/pykde/doc/classref/kfile/KURLBar.html delete mode 100644 python/pykde/doc/classref/kfile/KURLBarItem.html delete mode 100644 python/pykde/doc/classref/kfile/KURLBarItemDialog.html delete mode 100644 python/pykde/doc/classref/kfile/KURLBarListBox.html delete mode 100644 python/pykde/doc/classref/kfile/KURLComboBox.html delete mode 100644 python/pykde/doc/classref/kfile/KURLComboRequester.html delete mode 100644 python/pykde/doc/classref/kfile/KURLPropsPlugin.html delete mode 100644 python/pykde/doc/classref/kfile/KURLRequester.html delete mode 100644 python/pykde/doc/classref/kfile/KURLRequesterDlg.html delete mode 100644 python/pykde/doc/classref/kfile/index.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.AbstractView.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.Attr.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CDATASection.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CSSCharsetRule.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CSSException.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CSSFontFaceRule.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CSSImportRule.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CSSMediaRule.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CSSPageRule.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CSSPrimitiveValue.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CSSRule.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CSSRuleList.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CSSStyleDeclaration.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CSSStyleRule.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CSSStyleSheet.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CSSUnknownRule.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CSSValue.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CSSValueList.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CharacterData.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.Comment.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.Counter.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.CustomNodeFilter.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.DOMException.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.DOMImplementation.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.DOMString.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.Document.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.DocumentFragment.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.DocumentStyle.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.DocumentType.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.DomShared.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.Element.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.Entity.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.EntityReference.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.Event.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.EventException.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.EventListener.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLAnchorElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLAppletElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLAreaElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLBRElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLBaseElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLBaseFontElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLBlockquoteElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLBodyElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLButtonElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLCollection.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLDListElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLDirectoryElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLDivElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLDocument.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLFieldSetElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLFontElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLFormElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLFrameElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLFrameSetElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLHRElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLHeadElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLHeadingElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLHtmlElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLIFrameElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLImageElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLInputElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLIsIndexElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLLIElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLLabelElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLLayerElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLLegendElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLLinkElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLMapElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLMenuElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLMetaElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLModElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLOListElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLObjectElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLOptGroupElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLOptionElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLParagraphElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLParamElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLPreElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLQuoteElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLScriptElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLSelectElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLStyleElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLTableCaptionElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLTableCellElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLTableColElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLTableElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLTableRowElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLTableSectionElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLTextAreaElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLTitleElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.HTMLUListElement.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.LinkStyle.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.MediaList.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.MouseEvent.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.MutationEvent.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.NamedNodeMap.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.Node.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.NodeFilter.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.NodeIterator.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.NodeList.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.Notation.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.ProcessingInstruction.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.RGBColor.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.Range.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.RangeException.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.Rect.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.StyleSheet.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.StyleSheetList.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.Text.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.TextEvent.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.TreeWalker.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.UIEvent.html delete mode 100644 python/pykde/doc/classref/khtml/DOM.html delete mode 100644 python/pykde/doc/classref/khtml/KHTMLPart.html delete mode 100644 python/pykde/doc/classref/khtml/KHTMLSettings.html delete mode 100644 python/pykde/doc/classref/khtml/KHTMLView.html delete mode 100644 python/pykde/doc/classref/khtml/index.html delete mode 100644 python/pykde/doc/classref/khtml/khtml-globals.html delete mode 100644 python/pykde/doc/classref/kio/KACL.html delete mode 100644 python/pykde/doc/classref/kio/KAr.html delete mode 100644 python/pykde/doc/classref/kio/KArchive.html delete mode 100644 python/pykde/doc/classref/kio/KArchiveDirectory.html delete mode 100644 python/pykde/doc/classref/kio/KArchiveEntry.html delete mode 100644 python/pykde/doc/classref/kio/KArchiveFile.html delete mode 100644 python/pykde/doc/classref/kio/KAutoMount.html delete mode 100644 python/pykde/doc/classref/kio/KAutoUnmount.html delete mode 100644 python/pykde/doc/classref/kio/KDCOPServiceStarter.html delete mode 100644 python/pykde/doc/classref/kio/KDEDesktopMimeType.Service.html delete mode 100644 python/pykde/doc/classref/kio/KDEDesktopMimeType.html delete mode 100644 python/pykde/doc/classref/kio/KDataTool.html delete mode 100644 python/pykde/doc/classref/kio/KDataToolAction.html delete mode 100644 python/pykde/doc/classref/kio/KDataToolInfo.html delete mode 100644 python/pykde/doc/classref/kio/KDirLister.html delete mode 100644 python/pykde/doc/classref/kio/KDirNotify.html delete mode 100644 python/pykde/doc/classref/kio/KDirWatch.html delete mode 100644 python/pykde/doc/classref/kio/KEMailSettings.html delete mode 100644 python/pykde/doc/classref/kio/KExecMimeType.html delete mode 100644 python/pykde/doc/classref/kio/KFileFilter.html delete mode 100644 python/pykde/doc/classref/kio/KFileItem.html delete mode 100644 python/pykde/doc/classref/kio/KFileMetaInfo.html delete mode 100644 python/pykde/doc/classref/kio/KFileMetaInfoGroup.html delete mode 100644 python/pykde/doc/classref/kio/KFileMetaInfoItem.html delete mode 100644 python/pykde/doc/classref/kio/KFileMetaInfoProvider.html delete mode 100644 python/pykde/doc/classref/kio/KFileMimeTypeInfo.GroupInfo.html delete mode 100644 python/pykde/doc/classref/kio/KFileMimeTypeInfo.ItemInfo.html delete mode 100644 python/pykde/doc/classref/kio/KFileMimeTypeInfo.html delete mode 100644 python/pykde/doc/classref/kio/KFilePlugin.html delete mode 100644 python/pykde/doc/classref/kio/KFileShare.html delete mode 100644 python/pykde/doc/classref/kio/KFileSharePrivate.html delete mode 100644 python/pykde/doc/classref/kio/KFilterBase.html delete mode 100644 python/pykde/doc/classref/kio/KFilterDev.html delete mode 100644 python/pykde/doc/classref/kio/KFolderType.html delete mode 100644 python/pykde/doc/classref/kio/KIO.AuthInfo.html delete mode 100644 python/pykde/doc/classref/kio/KIO.ChmodJob.html delete mode 100644 python/pykde/doc/classref/kio/KIO.Connection.html delete mode 100644 python/pykde/doc/classref/kio/KIO.CopyInfo.html delete mode 100644 python/pykde/doc/classref/kio/KIO.CopyJob.html delete mode 100644 python/pykde/doc/classref/kio/KIO.DavJob.html delete mode 100644 python/pykde/doc/classref/kio/KIO.DefaultProgress.html delete mode 100644 python/pykde/doc/classref/kio/KIO.DeleteJob.html delete mode 100644 python/pykde/doc/classref/kio/KIO.DirectCopyJob.html delete mode 100644 python/pykde/doc/classref/kio/KIO.FileCopyJob.html delete mode 100644 python/pykde/doc/classref/kio/KIO.ForwardingSlaveBase.html delete mode 100644 python/pykde/doc/classref/kio/KIO.Job.html delete mode 100644 python/pykde/doc/classref/kio/KIO.ListJob.html delete mode 100644 python/pykde/doc/classref/kio/KIO.MetaInfoJob.html delete mode 100644 python/pykde/doc/classref/kio/KIO.MimetypeJob.html delete mode 100644 python/pykde/doc/classref/kio/KIO.MkdirJob.html delete mode 100644 python/pykde/doc/classref/kio/KIO.MultiGetJob.html delete mode 100644 python/pykde/doc/classref/kio/KIO.NetAccess.html delete mode 100644 python/pykde/doc/classref/kio/KIO.NetRC.AutoLogin.html delete mode 100644 python/pykde/doc/classref/kio/KIO.NetRC.html delete mode 100644 python/pykde/doc/classref/kio/KIO.PasswordDialog.html delete mode 100644 python/pykde/doc/classref/kio/KIO.PreviewJob.html delete mode 100644 python/pykde/doc/classref/kio/KIO.ProgressBase.html delete mode 100644 python/pykde/doc/classref/kio/KIO.Scheduler.html delete mode 100644 python/pykde/doc/classref/kio/KIO.SessionData.html delete mode 100644 python/pykde/doc/classref/kio/KIO.SimpleJob.html delete mode 100644 python/pykde/doc/classref/kio/KIO.Slave.html delete mode 100644 python/pykde/doc/classref/kio/KIO.SlaveBase.html delete mode 100644 python/pykde/doc/classref/kio/KIO.SlaveConfig.html delete mode 100644 python/pykde/doc/classref/kio/KIO.SlaveInterface.html delete mode 100644 python/pykde/doc/classref/kio/KIO.StatJob.html delete mode 100644 python/pykde/doc/classref/kio/KIO.StatusbarProgress.html delete mode 100644 python/pykde/doc/classref/kio/KIO.StoredTransferJob.html delete mode 100644 python/pykde/doc/classref/kio/KIO.TCPSlaveBase.html delete mode 100644 python/pykde/doc/classref/kio/KIO.Task.html delete mode 100644 python/pykde/doc/classref/kio/KIO.TransferJob.html delete mode 100644 python/pykde/doc/classref/kio/KIO.UDSAtom.html delete mode 100644 python/pykde/doc/classref/kio/KIO.html delete mode 100644 python/pykde/doc/classref/kio/KImageIO.html delete mode 100644 python/pykde/doc/classref/kio/KMimeMagic.html delete mode 100644 python/pykde/doc/classref/kio/KMimeMagicResult.html delete mode 100644 python/pykde/doc/classref/kio/KMimeType.Format.html delete mode 100644 python/pykde/doc/classref/kio/KMimeType.html delete mode 100644 python/pykde/doc/classref/kio/KMimeTypeChooser.html delete mode 100644 python/pykde/doc/classref/kio/KMimeTypeChooserDialog.html delete mode 100644 python/pykde/doc/classref/kio/KNFSShare.html delete mode 100644 python/pykde/doc/classref/kio/KOCRDialog.html delete mode 100644 python/pykde/doc/classref/kio/KOCRDialogFactory.html delete mode 100644 python/pykde/doc/classref/kio/KOpenWithHandler.html delete mode 100644 python/pykde/doc/classref/kio/KProcessRunner.html delete mode 100644 python/pykde/doc/classref/kio/KProtocolInfo.ExtraField.html delete mode 100644 python/pykde/doc/classref/kio/KProtocolInfo.html delete mode 100644 python/pykde/doc/classref/kio/KProtocolManager.html delete mode 100644 python/pykde/doc/classref/kio/KRemoteEncoding.html delete mode 100644 python/pykde/doc/classref/kio/KRun.html delete mode 100644 python/pykde/doc/classref/kio/KSambaShare.html delete mode 100644 python/pykde/doc/classref/kio/KScanDialog.html delete mode 100644 python/pykde/doc/classref/kio/KScanDialogFactory.html delete mode 100644 python/pykde/doc/classref/kio/KService.html delete mode 100644 python/pykde/doc/classref/kio/KServiceGroup.html delete mode 100644 python/pykde/doc/classref/kio/KServiceOffer.html delete mode 100644 python/pykde/doc/classref/kio/KServiceSeparator.html delete mode 100644 python/pykde/doc/classref/kio/KServiceType.html delete mode 100644 python/pykde/doc/classref/kio/KServiceTypeProfile.html delete mode 100644 python/pykde/doc/classref/kio/KShellCompletion.html delete mode 100644 python/pykde/doc/classref/kio/KShred.html delete mode 100644 python/pykde/doc/classref/kio/KSimpleFileFilter.html delete mode 100644 python/pykde/doc/classref/kio/KSycoca.html delete mode 100644 python/pykde/doc/classref/kio/KSycocaDict.html delete mode 100644 python/pykde/doc/classref/kio/KSycocaEntry.html delete mode 100644 python/pykde/doc/classref/kio/KSycocaFactory.html delete mode 100644 python/pykde/doc/classref/kio/KTar.html delete mode 100644 python/pykde/doc/classref/kio/KTrader.html delete mode 100644 python/pykde/doc/classref/kio/KURIFilter.html delete mode 100644 python/pykde/doc/classref/kio/KURIFilterData.html delete mode 100644 python/pykde/doc/classref/kio/KURIFilterPlugin.html delete mode 100644 python/pykde/doc/classref/kio/KURLCompletion.html delete mode 100644 python/pykde/doc/classref/kio/KURLPixmapProvider.html delete mode 100644 python/pykde/doc/classref/kio/KZip.html delete mode 100644 python/pykde/doc/classref/kio/KZipFileEntry.html delete mode 100644 python/pykde/doc/classref/kio/Observer.html delete mode 100644 python/pykde/doc/classref/kio/RenameDlgPlugin.html delete mode 100644 python/pykde/doc/classref/kio/ThumbCreator.html delete mode 100644 python/pykde/doc/classref/kio/index.html delete mode 100644 python/pykde/doc/classref/kio/kio-globals.html delete mode 100644 python/pykde/doc/classref/kmdi/KMdi.html delete mode 100644 python/pykde/doc/classref/kmdi/KMdiChildArea.html delete mode 100644 python/pykde/doc/classref/kmdi/KMdiChildFrm.html delete mode 100644 python/pykde/doc/classref/kmdi/KMdiChildFrmCaption.html delete mode 100644 python/pykde/doc/classref/kmdi/KMdiChildFrmDragBeginEvent.html delete mode 100644 python/pykde/doc/classref/kmdi/KMdiChildFrmDragEndEvent.html delete mode 100644 python/pykde/doc/classref/kmdi/KMdiChildFrmMoveEvent.html delete mode 100644 python/pykde/doc/classref/kmdi/KMdiChildFrmResizeBeginEvent.html delete mode 100644 python/pykde/doc/classref/kmdi/KMdiChildFrmResizeEndEvent.html delete mode 100644 python/pykde/doc/classref/kmdi/KMdiChildView.html delete mode 100644 python/pykde/doc/classref/kmdi/KMdiMainFrm.html delete mode 100644 python/pykde/doc/classref/kmdi/KMdiTaskBar.html delete mode 100644 python/pykde/doc/classref/kmdi/KMdiTaskBarButton.html delete mode 100644 python/pykde/doc/classref/kmdi/KMdiToolViewAccessor.html delete mode 100644 python/pykde/doc/classref/kmdi/KMdiViewCloseEvent.html delete mode 100644 python/pykde/doc/classref/kmdi/KMdiWin32IconButton.html delete mode 100644 python/pykde/doc/classref/kmdi/index.html delete mode 100644 python/pykde/doc/classref/kmdi/kmdi-globals.html delete mode 100644 python/pykde/doc/classref/kparts/ExtTerminalInterface.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.BrowserExtension.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.BrowserHostExtension.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.BrowserInterface.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.BrowserRun.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.DockMainWindow.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.Event.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.Factory.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.GUIActivateEvent.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.HistoryProvider.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.LiveConnectExtension.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.MainWindow.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.OpenURLEvent.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.Part.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.PartActivateEvent.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.PartBase.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.PartManager.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.PartSelectEvent.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.Plugin.PluginInfo.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.Plugin.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.ReadOnlyPart.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.ReadWritePart.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.StatusBarExtension.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.URLArgs.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.WindowArgs.html delete mode 100644 python/pykde/doc/classref/kparts/KParts.html delete mode 100644 python/pykde/doc/classref/kparts/TerminalInterface.html delete mode 100644 python/pykde/doc/classref/kparts/index.html delete mode 100644 python/pykde/doc/classref/kparts/konsoleBrowserExtension.html delete mode 100644 python/pykde/doc/classref/kparts/konsoleFactory.html delete mode 100644 python/pykde/doc/classref/kparts/konsolePart.html delete mode 100644 python/pykde/doc/classref/kparts/kparts-globals.html delete mode 100644 python/pykde/doc/classref/kresources/KRES.ConfigDialog.html delete mode 100644 python/pykde/doc/classref/kresources/KRES.ConfigWidget.html delete mode 100644 python/pykde/doc/classref/kresources/KRES.Factory.html delete mode 100644 python/pykde/doc/classref/kresources/KRES.PluginFactoryBase.html delete mode 100644 python/pykde/doc/classref/kresources/KRES.Resource.html delete mode 100644 python/pykde/doc/classref/kresources/KRES.ResourcePageInfo.html delete mode 100644 python/pykde/doc/classref/kresources/KRES.SelectDialog.html delete mode 100644 python/pykde/doc/classref/kresources/KRES.html delete mode 100644 python/pykde/doc/classref/kresources/index.html delete mode 100644 python/pykde/doc/classref/kspell/KDictSpellingHighlighter.html delete mode 100644 python/pykde/doc/classref/kspell/KSpell.html delete mode 100644 python/pykde/doc/classref/kspell/KSpellConfig.html delete mode 100644 python/pykde/doc/classref/kspell/KSpellDlg.html delete mode 100644 python/pykde/doc/classref/kspell/KSpellingHighlighter.html delete mode 100644 python/pykde/doc/classref/kspell/KSyntaxHighlighter.html delete mode 100644 python/pykde/doc/classref/kspell/index.html delete mode 100644 python/pykde/doc/classref/kspell/kspell-globals.html delete mode 100644 python/pykde/doc/classref/kutils/KCModuleContainer.html delete mode 100644 python/pykde/doc/classref/kutils/KCModuleInfo.html delete mode 100644 python/pykde/doc/classref/kutils/KCModuleLoader.html delete mode 100644 python/pykde/doc/classref/kutils/KCModuleProxy.html delete mode 100644 python/pykde/doc/classref/kutils/KCMultiDialog.html delete mode 100644 python/pykde/doc/classref/kutils/KFind.html delete mode 100644 python/pykde/doc/classref/kutils/KFindDialog.html delete mode 100644 python/pykde/doc/classref/kutils/KMultiTabBar.html delete mode 100644 python/pykde/doc/classref/kutils/KMultiTabBarButton.html delete mode 100644 python/pykde/doc/classref/kutils/KMultiTabBarTab.html delete mode 100644 python/pykde/doc/classref/kutils/KPluginInfo.html delete mode 100644 python/pykde/doc/classref/kutils/KPluginSelector.html delete mode 100644 python/pykde/doc/classref/kutils/KReplace.html delete mode 100644 python/pykde/doc/classref/kutils/KReplaceDialog.html delete mode 100644 python/pykde/doc/classref/kutils/index.html delete mode 100644 python/pykde/doc/dcopext.html delete mode 100644 python/pykde/doc/examples.html delete mode 100644 python/pykde/doc/images/kdcop1.png delete mode 100644 python/pykde/doc/images/kdcop2.png delete mode 100644 python/pykde/doc/images/khtmlpart.png delete mode 100644 python/pykde/doc/images/mimetype.png delete mode 100644 python/pykde/doc/images/uisampler.png delete mode 100644 python/pykde/doc/index.html delete mode 100644 python/pykde/doc/index1.html delete mode 100644 python/pykde/doc/install.html delete mode 100644 python/pykde/doc/kde.css delete mode 100644 python/pykde/doc/libpythonize.html delete mode 100644 python/pykde/doc/limits.html delete mode 100644 python/pykde/doc/signal.html delete mode 100644 python/pykde/doc/static.html delete mode 100644 python/pykde/doc/switches.html delete mode 100644 python/pykde/doc/trouble.html delete mode 100644 python/pykde/examples/README delete mode 100644 python/pykde/examples/aboutkde.png delete mode 100644 python/pykde/examples/astron.png delete mode 100644 python/pykde/examples/example_dcopexport.py delete mode 100644 python/pykde/examples/example_dcopext.py delete mode 100644 python/pykde/examples/kdeform1.ui delete mode 100644 python/pykde/examples/kdeform1.ui.h delete mode 100644 python/pykde/examples/kpartgui.dtd delete mode 100644 python/pykde/examples/kurldemo.py delete mode 100644 python/pykde/examples/menudemo.py delete mode 100644 python/pykde/examples/mimetype.py delete mode 100644 python/pykde/examples/pyKHTMLPart.py delete mode 100644 python/pykde/examples/pykde-sampler/HOWTO.samples delete mode 100644 python/pykde/examples/pykde-sampler/TODO delete mode 100644 python/pykde/examples/pykde-sampler/__init__.py delete mode 100644 python/pykde/examples/pykde-sampler/about.py delete mode 100644 python/pykde/examples/pykde-sampler/basic_widgets/__init__.py delete mode 100644 python/pykde/examples/pykde-sampler/basic_widgets/datepicker.py delete mode 100644 python/pykde/examples/pykde-sampler/basic_widgets/historycombo.py delete mode 100644 python/pykde/examples/pykde-sampler/contributors.txt delete mode 100644 python/pykde/examples/pykde-sampler/dialogs/__init__.py delete mode 100644 python/pykde/examples/pykde-sampler/dialogs/about/__init__.py delete mode 100644 python/pykde/examples/pykde-sampler/dialogs/about/aboutapp.py delete mode 100644 python/pykde/examples/pykde-sampler/dialogs/about/aboutkde.py delete mode 100644 python/pykde/examples/pykde-sampler/dialogs/bugreport.py delete mode 100644 python/pykde/examples/pykde-sampler/dialogs/color.py delete mode 100644 python/pykde/examples/pykde-sampler/dialogs/config.py delete mode 100644 python/pykde/examples/pykde-sampler/dialogs/edfind.py delete mode 100644 python/pykde/examples/pykde-sampler/dialogs/edreplace.py delete mode 100644 python/pykde/examples/pykde-sampler/dialogs/font.py delete mode 100644 python/pykde/examples/pykde-sampler/dialogs/input.py delete mode 100644 python/pykde/examples/pykde-sampler/dialogs/key.py delete mode 100644 python/pykde/examples/pykde-sampler/dialogs/msgbox.py delete mode 100644 python/pykde/examples/pykde-sampler/dialogs/passwd.py delete mode 100644 python/pykde/examples/pykde-sampler/dialogs/progress.py delete mode 100644 python/pykde/examples/pykde-sampler/dialogs/tip.py delete mode 100644 python/pykde/examples/pykde-sampler/dialogs/tips delete mode 100644 python/pykde/examples/pykde-sampler/gen_todo.py delete mode 100644 python/pykde/examples/pykde-sampler/icon_handling/__init__.py delete mode 100644 python/pykde/examples/pykde-sampler/icon_handling/misc.py delete mode 100644 python/pykde/examples/pykde-sampler/icon_handling/sizes.py delete mode 100644 python/pykde/examples/pykde-sampler/lib.py delete mode 100644 python/pykde/examples/pykde-sampler/misc/__init__.py delete mode 100644 python/pykde/examples/pykde-sampler/misc/gradientselect.py delete mode 100644 python/pykde/examples/pykde-sampler/misc/passivepop.py delete mode 100644 python/pykde/examples/pykde-sampler/misc/window_info.py delete mode 100644 python/pykde/examples/pykde-sampler/qt_widgets/CONTRIB delete mode 100644 python/pykde/examples/pykde-sampler/qt_widgets/__init__.py delete mode 100644 python/pykde/examples/pykde-sampler/qt_widgets/table.py delete mode 100644 python/pykde/examples/pykde-sampler/runner.py delete mode 100644 python/pykde/examples/pykde-sampler/sampler.py delete mode 100644 python/pykde/examples/pykde-sampler/sampler.rc delete mode 100644 python/pykde/examples/pykde-sampler/wizards/__init__.py delete mode 100644 python/pykde/examples/pykde-sampler/wizards/wiz.py delete mode 100644 python/pykde/examples/pykde-sampler/xwin/__init__.py delete mode 100644 python/pykde/examples/pytestimage.png delete mode 100644 python/pykde/examples/qxembed_example.png delete mode 100644 python/pykde/examples/qxembedexample.py delete mode 100644 python/pykde/examples/qxembedexample.ui delete mode 100644 python/pykde/examples/systray.py delete mode 100644 python/pykde/examples/uikmdi.py delete mode 100644 python/pykde/examples/uikmdi.rc delete mode 100644 python/pykde/examples/uimodules/uidialogs.py delete mode 100644 python/pykde/examples/uimodules/uimenus.py delete mode 100644 python/pykde/examples/uimodules/uimisc.py delete mode 100644 python/pykde/examples/uimodules/uiwidgets.py delete mode 100644 python/pykde/examples/uimodules/uixml.py delete mode 100644 python/pykde/examples/uiqxembed.py delete mode 100644 python/pykde/examples/uisampler.py delete mode 100644 python/pykde/examples/xmlmenudemo.py delete mode 100644 python/pykde/examples/xmlmenudemoui.rc delete mode 100644 python/pykde/extensions/dcopexport.py delete mode 100644 python/pykde/extensions/dcopext.py delete mode 100644 python/pykde/extra/kde300/kaccelaction.h delete mode 100644 python/pykde/extra/kde300/kaccelbase.h delete mode 100644 python/pykde/extra/kde300/kicontheme.h delete mode 100644 python/pykde/extra/kde300/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde300/konsole_part.h delete mode 100644 python/pykde/extra/kde300/krecentdirs.h delete mode 100644 python/pykde/extra/kde300/ksycocafactory.h delete mode 100644 python/pykde/extra/kde300/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde300/kurifilter.h delete mode 100644 python/pykde/extra/kde301/kaccelaction.h delete mode 100644 python/pykde/extra/kde301/kaccelbase.h delete mode 100644 python/pykde/extra/kde301/kicontheme.h delete mode 100644 python/pykde/extra/kde301/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde301/konsole_part.h delete mode 100644 python/pykde/extra/kde301/krecentdirs.h delete mode 100644 python/pykde/extra/kde301/ksycocafactory.h delete mode 100644 python/pykde/extra/kde301/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde301/kurifilter.h delete mode 100644 python/pykde/extra/kde303/kaccelaction.h delete mode 100644 python/pykde/extra/kde303/kaccelbase.h delete mode 100644 python/pykde/extra/kde303/kicontheme.h delete mode 100644 python/pykde/extra/kde303/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde303/konsole_part.h delete mode 100644 python/pykde/extra/kde303/krecentdirs.h delete mode 100644 python/pykde/extra/kde303/ksycocafactory.h delete mode 100644 python/pykde/extra/kde303/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde303/kurifilter.h delete mode 100644 python/pykde/extra/kde310/kaccelaction.h delete mode 100644 python/pykde/extra/kde310/kaccelbase.h delete mode 100644 python/pykde/extra/kde310/kicontheme.h delete mode 100644 python/pykde/extra/kde310/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde310/konsole_part.h delete mode 100644 python/pykde/extra/kde310/kpanelmenu.h delete mode 100644 python/pykde/extra/kde310/krecentdirs.h delete mode 100644 python/pykde/extra/kde310/ksycocafactory.h delete mode 100644 python/pykde/extra/kde310/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde310/kurifilter.h delete mode 100644 python/pykde/extra/kde311/kaccelaction.h delete mode 100644 python/pykde/extra/kde311/kaccelbase.h delete mode 100644 python/pykde/extra/kde311/kicontheme.h delete mode 100644 python/pykde/extra/kde311/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde311/konsole_part.h delete mode 100644 python/pykde/extra/kde311/kpanelmenu.h delete mode 100644 python/pykde/extra/kde311/krecentdirs.h delete mode 100644 python/pykde/extra/kde311/ksycocafactory.h delete mode 100644 python/pykde/extra/kde311/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde311/kurifilter.h delete mode 100644 python/pykde/extra/kde312/kaccelaction.h delete mode 100644 python/pykde/extra/kde312/kaccelbase.h delete mode 100644 python/pykde/extra/kde312/kicontheme.h delete mode 100644 python/pykde/extra/kde312/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde312/konsole_part.h delete mode 100644 python/pykde/extra/kde312/kpanelmenu.h delete mode 100644 python/pykde/extra/kde312/krecentdirs.h delete mode 100644 python/pykde/extra/kde312/ksycocafactory.h delete mode 100644 python/pykde/extra/kde312/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde312/kurifilter.h delete mode 100644 python/pykde/extra/kde313/kaccelaction.h delete mode 100644 python/pykde/extra/kde313/kaccelbase.h delete mode 100644 python/pykde/extra/kde313/kicontheme.h delete mode 100644 python/pykde/extra/kde313/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde313/konsole_part.h delete mode 100644 python/pykde/extra/kde313/kpanelmenu.h delete mode 100644 python/pykde/extra/kde313/krecentdirs.h delete mode 100644 python/pykde/extra/kde313/ksycocafactory.h delete mode 100644 python/pykde/extra/kde313/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde313/kurifilter.h delete mode 100644 python/pykde/extra/kde314/kaccelaction.h delete mode 100644 python/pykde/extra/kde314/kaccelbase.h delete mode 100644 python/pykde/extra/kde314/kicontheme.h delete mode 100644 python/pykde/extra/kde314/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde314/konsole_part.h delete mode 100644 python/pykde/extra/kde314/kpanelmenu.h delete mode 100644 python/pykde/extra/kde314/krecentdirs.h delete mode 100644 python/pykde/extra/kde314/ksycocafactory.h delete mode 100644 python/pykde/extra/kde314/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde314/kurifilter.h delete mode 100644 python/pykde/extra/kde315/kaccelaction.h delete mode 100644 python/pykde/extra/kde315/kaccelbase.h delete mode 100644 python/pykde/extra/kde315/kicontheme.h delete mode 100644 python/pykde/extra/kde315/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde315/konsole_part.h delete mode 100644 python/pykde/extra/kde315/kpanelmenu.h delete mode 100644 python/pykde/extra/kde315/krecentdirs.h delete mode 100644 python/pykde/extra/kde315/ksycocafactory.h delete mode 100644 python/pykde/extra/kde315/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde315/kurifilter.h delete mode 100644 python/pykde/extra/kde320/configwidget.h delete mode 100644 python/pykde/extra/kde320/kaccelaction.h delete mode 100644 python/pykde/extra/kde320/kaccelbase.h delete mode 100644 python/pykde/extra/kde320/kicontheme.h delete mode 100644 python/pykde/extra/kde320/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde320/konsole_part.h delete mode 100644 python/pykde/extra/kde320/kpanelmenu.h delete mode 100644 python/pykde/extra/kde320/krecentdirs.h delete mode 100644 python/pykde/extra/kde320/ksharedptr.h delete mode 100644 python/pykde/extra/kde320/ksycocafactory.h delete mode 100644 python/pykde/extra/kde320/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde320/kurifilter.h delete mode 100644 python/pykde/extra/kde320/selectdialog.h delete mode 100644 python/pykde/extra/kde321/configwidget.h delete mode 100644 python/pykde/extra/kde321/kaccelaction.h delete mode 100644 python/pykde/extra/kde321/kaccelbase.h delete mode 100644 python/pykde/extra/kde321/kicontheme.h delete mode 100644 python/pykde/extra/kde321/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde321/konsole_part.h delete mode 100644 python/pykde/extra/kde321/kpanelmenu.h delete mode 100644 python/pykde/extra/kde321/krecentdirs.h delete mode 100644 python/pykde/extra/kde321/ksharedptr.h delete mode 100644 python/pykde/extra/kde321/ksycocafactory.h delete mode 100644 python/pykde/extra/kde321/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde321/kurifilter.h delete mode 100644 python/pykde/extra/kde321/selectdialog.h delete mode 100644 python/pykde/extra/kde322/configwidget.h delete mode 100644 python/pykde/extra/kde322/kaccelaction.h delete mode 100644 python/pykde/extra/kde322/kaccelbase.h delete mode 100644 python/pykde/extra/kde322/kicontheme.h delete mode 100644 python/pykde/extra/kde322/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde322/konsole_part.h delete mode 100644 python/pykde/extra/kde322/kpanelmenu.h delete mode 100644 python/pykde/extra/kde322/krecentdirs.h delete mode 100644 python/pykde/extra/kde322/ksharedptr.h delete mode 100644 python/pykde/extra/kde322/ksycocafactory.h delete mode 100644 python/pykde/extra/kde322/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde322/kurifilter.h delete mode 100644 python/pykde/extra/kde322/selectdialog.h delete mode 100644 python/pykde/extra/kde323/configwidget.h delete mode 100644 python/pykde/extra/kde323/kaccelaction.h delete mode 100644 python/pykde/extra/kde323/kaccelbase.h delete mode 100644 python/pykde/extra/kde323/kicontheme.h delete mode 100644 python/pykde/extra/kde323/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde323/konsole_part.h delete mode 100644 python/pykde/extra/kde323/kpanelmenu.h delete mode 100644 python/pykde/extra/kde323/krecentdirs.h delete mode 100644 python/pykde/extra/kde323/ksharedptr.h delete mode 100644 python/pykde/extra/kde323/ksycocafactory.h delete mode 100644 python/pykde/extra/kde323/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde323/kurifilter.h delete mode 100644 python/pykde/extra/kde323/selectdialog.h delete mode 100644 python/pykde/extra/kde330/configwidget.h delete mode 100644 python/pykde/extra/kde330/kaccelaction.h delete mode 100644 python/pykde/extra/kde330/kaccelbase.h delete mode 100644 python/pykde/extra/kde330/kicontheme.h delete mode 100644 python/pykde/extra/kde330/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde330/konsole_part.h delete mode 100644 python/pykde/extra/kde330/kpanelmenu.h delete mode 100644 python/pykde/extra/kde330/krecentdirs.h delete mode 100644 python/pykde/extra/kde330/ksharedptr.h delete mode 100644 python/pykde/extra/kde330/ksycocafactory.h delete mode 100644 python/pykde/extra/kde330/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde330/kurifilter.h delete mode 100644 python/pykde/extra/kde330/selectdialog.h delete mode 100644 python/pykde/extra/kde331/configwidget.h delete mode 100644 python/pykde/extra/kde331/kaccelaction.h delete mode 100644 python/pykde/extra/kde331/kaccelbase.h delete mode 100644 python/pykde/extra/kde331/kicontheme.h delete mode 100644 python/pykde/extra/kde331/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde331/konsole_part.h delete mode 100644 python/pykde/extra/kde331/kpanelmenu.h delete mode 100644 python/pykde/extra/kde331/krecentdirs.h delete mode 100644 python/pykde/extra/kde331/ksharedptr.h delete mode 100644 python/pykde/extra/kde331/ksycocafactory.h delete mode 100644 python/pykde/extra/kde331/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde331/kurifilter.h delete mode 100644 python/pykde/extra/kde331/selectdialog.h delete mode 100644 python/pykde/extra/kde332/configwidget.h delete mode 100644 python/pykde/extra/kde332/kaccelaction.h delete mode 100644 python/pykde/extra/kde332/kaccelbase.h delete mode 100644 python/pykde/extra/kde332/kicontheme.h delete mode 100644 python/pykde/extra/kde332/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde332/konsole_part.h delete mode 100644 python/pykde/extra/kde332/kpanelmenu.h delete mode 100644 python/pykde/extra/kde332/krecentdirs.h delete mode 100644 python/pykde/extra/kde332/ksharedptr.h delete mode 100644 python/pykde/extra/kde332/ksycocafactory.h delete mode 100644 python/pykde/extra/kde332/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde332/kurifilter.h delete mode 100644 python/pykde/extra/kde332/selectdialog.h delete mode 100644 python/pykde/extra/kde340/configwidget.h delete mode 100644 python/pykde/extra/kde340/kaccelaction.h delete mode 100644 python/pykde/extra/kde340/kaccelbase.h delete mode 100644 python/pykde/extra/kde340/kicontheme.h delete mode 100644 python/pykde/extra/kde340/kkeyserver.h delete mode 100644 python/pykde/extra/kde340/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde340/konsole_part.h delete mode 100644 python/pykde/extra/kde340/kpanelmenu.h delete mode 100644 python/pykde/extra/kde340/krecentdirs.h delete mode 100644 python/pykde/extra/kde340/ksharedptr.h delete mode 100644 python/pykde/extra/kde340/ksycocafactory.h delete mode 100644 python/pykde/extra/kde340/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde340/kurifilter.h delete mode 100644 python/pykde/extra/kde340/selectdialog.h delete mode 100644 python/pykde/extra/kde341/configwidget.h delete mode 100644 python/pykde/extra/kde341/kaccelaction.h delete mode 100644 python/pykde/extra/kde341/kaccelbase.h delete mode 100644 python/pykde/extra/kde341/kicontheme.h delete mode 100644 python/pykde/extra/kde341/kkeyserver.h delete mode 100644 python/pykde/extra/kde341/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde341/konsole_part.h delete mode 100644 python/pykde/extra/kde341/kpanelmenu.h delete mode 100644 python/pykde/extra/kde341/krecentdirs.h delete mode 100644 python/pykde/extra/kde341/ksharedptr.h delete mode 100644 python/pykde/extra/kde341/ksycocafactory.h delete mode 100644 python/pykde/extra/kde341/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde341/kurifilter.h delete mode 100644 python/pykde/extra/kde341/selectdialog.h delete mode 100644 python/pykde/extra/kde342/configwidget.h delete mode 100644 python/pykde/extra/kde342/kaccelaction.h delete mode 100644 python/pykde/extra/kde342/kaccelbase.h delete mode 100644 python/pykde/extra/kde342/kicontheme.h delete mode 100644 python/pykde/extra/kde342/kkeyserver.h delete mode 100644 python/pykde/extra/kde342/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde342/konsole_part.h delete mode 100644 python/pykde/extra/kde342/kpanelmenu.h delete mode 100644 python/pykde/extra/kde342/krecentdirs.h delete mode 100644 python/pykde/extra/kde342/ksharedptr.h delete mode 100644 python/pykde/extra/kde342/ksycocafactory.h delete mode 100644 python/pykde/extra/kde342/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde342/kurifilter.h delete mode 100644 python/pykde/extra/kde342/selectdialog.h delete mode 100644 python/pykde/extra/kde343/configwidget.h delete mode 100644 python/pykde/extra/kde343/kaccelaction.h delete mode 100644 python/pykde/extra/kde343/kaccelbase.h delete mode 100644 python/pykde/extra/kde343/kicontheme.h delete mode 100644 python/pykde/extra/kde343/kkeyserver.h delete mode 100644 python/pykde/extra/kde343/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde343/konsole_part.h delete mode 100644 python/pykde/extra/kde343/kpanelmenu.h delete mode 100644 python/pykde/extra/kde343/krecentdirs.h delete mode 100644 python/pykde/extra/kde343/ksharedptr.h delete mode 100644 python/pykde/extra/kde343/ksycocafactory.h delete mode 100644 python/pykde/extra/kde343/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde343/kurifilter.h delete mode 100644 python/pykde/extra/kde343/selectdialog.h delete mode 100644 python/pykde/extra/kde350/configwidget.h delete mode 100644 python/pykde/extra/kde350/kaccelaction.h delete mode 100644 python/pykde/extra/kde350/kaccelbase.h delete mode 100644 python/pykde/extra/kde350/kicontheme.h delete mode 100644 python/pykde/extra/kde350/kkeyserver.h delete mode 100644 python/pykde/extra/kde350/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde350/konsole_part.h delete mode 100644 python/pykde/extra/kde350/kpanelmenu.h delete mode 100644 python/pykde/extra/kde350/krecentdirs.h delete mode 100644 python/pykde/extra/kde350/ksharedptr.h delete mode 100644 python/pykde/extra/kde350/ksycocafactory.h delete mode 100644 python/pykde/extra/kde350/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde350/kurifilter.h delete mode 100644 python/pykde/extra/kde350/selectdialog.h delete mode 100644 python/pykde/extra/kde351/kaccelaction.h delete mode 100644 python/pykde/extra/kde351/kaccelbase.h delete mode 100644 python/pykde/extra/kde351/kicontheme.h delete mode 100644 python/pykde/extra/kde351/kkeyserver.h delete mode 100644 python/pykde/extra/kde351/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde351/konsole_part.h delete mode 100644 python/pykde/extra/kde351/kpanelmenu.h delete mode 100644 python/pykde/extra/kde351/ksharedptr.h delete mode 100644 python/pykde/extra/kde351/ksycocafactory.h delete mode 100644 python/pykde/extra/kde351/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde351/kurifilter.h delete mode 100644 python/pykde/extra/kde352/kaccelaction.h delete mode 100644 python/pykde/extra/kde352/kaccelbase.h delete mode 100644 python/pykde/extra/kde352/kicontheme.h delete mode 100644 python/pykde/extra/kde352/kkeyserver.h delete mode 100644 python/pykde/extra/kde352/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde352/konsole_part.h delete mode 100644 python/pykde/extra/kde352/kpanelmenu.h delete mode 100644 python/pykde/extra/kde352/ksharedptr.h delete mode 100644 python/pykde/extra/kde352/ksycocafactory.h delete mode 100644 python/pykde/extra/kde352/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde352/kurifilter.h delete mode 100644 python/pykde/extra/kde353/kaccelaction.h delete mode 100644 python/pykde/extra/kde353/kaccelbase.h delete mode 100644 python/pykde/extra/kde353/kicontheme.h delete mode 100644 python/pykde/extra/kde353/kkeyserver.h delete mode 100644 python/pykde/extra/kde353/kkeyserver_x11.h delete mode 100644 python/pykde/extra/kde353/konsole_part.h delete mode 100644 python/pykde/extra/kde353/kpanelmenu.h delete mode 100644 python/pykde/extra/kde353/ksharedptr.h delete mode 100644 python/pykde/extra/kde353/ksycocafactory.h delete mode 100644 python/pykde/extra/kde353/ktoolbarbutton.h delete mode 100644 python/pykde/extra/kde353/kurifilter.h delete mode 100644 python/pykde/importTest.py delete mode 100755 python/pykde/postproc delete mode 100644 python/pykde/pykde350.prj delete mode 100644 python/pykde/pykde351.prj delete mode 100644 python/pykde/pykde352.prj delete mode 100644 python/pykde/pykdeconfig.py.in delete mode 100644 python/pykde/sip/dcop/dcopclient.sip delete mode 100644 python/pykde/sip/dcop/dcopmod.sip delete mode 100644 python/pykde/sip/dcop/dcopmod.sip.in delete mode 100644 python/pykde/sip/dcop/dcopobject.sip delete mode 100644 python/pykde/sip/dcop/dcopref.sip delete mode 100644 python/pykde/sip/dcop/dcopstub.sip delete mode 100644 python/pykde/sip/dcop/typedefs.sip delete mode 100644 python/pykde/sip/glossary.html delete mode 100644 python/pykde/sip/kabc/address.sip delete mode 100644 python/pykde/sip/kabc/addressbook.sip delete mode 100644 python/pykde/sip/kabc/addressee.sip delete mode 100644 python/pykde/sip/kabc/addresseedialog.sip delete mode 100644 python/pykde/sip/kabc/addresseelist.sip delete mode 100644 python/pykde/sip/kabc/addresslineedit.sip delete mode 100644 python/pykde/sip/kabc/agent.sip delete mode 100644 python/pykde/sip/kabc/distributionlist.sip delete mode 100644 python/pykde/sip/kabc/distributionlistdialog.sip delete mode 100644 python/pykde/sip/kabc/distributionlisteditor.sip delete mode 100644 python/pykde/sip/kabc/errorhandler.sip delete mode 100644 python/pykde/sip/kabc/field.sip delete mode 100644 python/pykde/sip/kabc/format.sip delete mode 100644 python/pykde/sip/kabc/formatfactory.sip delete mode 100644 python/pykde/sip/kabc/formatplugin.sip delete mode 100644 python/pykde/sip/kabc/geo.sip delete mode 100644 python/pykde/sip/kabc/kabc-kde310.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde311.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde312.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde313.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde314.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde320.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde322.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde323.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde330.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde331.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde332.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde340.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde341.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde342.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde343.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde350.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde351.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde352.diff delete mode 100644 python/pykde/sip/kabc/kabc-kde353.diff delete mode 100644 python/pykde/sip/kabc/kabcmod.sip delete mode 100644 python/pykde/sip/kabc/kabcmod.sip.in delete mode 100644 python/pykde/sip/kabc/key.sip delete mode 100644 python/pykde/sip/kabc/ldapclient.sip delete mode 100644 python/pykde/sip/kabc/ldapconfigwidget.sip delete mode 100644 python/pykde/sip/kabc/ldapurl.sip delete mode 100644 python/pykde/sip/kabc/ldif.sip delete mode 100644 python/pykde/sip/kabc/ldifconverter.sip delete mode 100644 python/pykde/sip/kabc/lock.sip delete mode 100644 python/pykde/sip/kabc/locknull.sip delete mode 100644 python/pykde/sip/kabc/phonenumber.sip delete mode 100644 python/pykde/sip/kabc/picture.sip delete mode 100644 python/pykde/sip/kabc/plugin.sip delete mode 100644 python/pykde/sip/kabc/resource.sip delete mode 100644 python/pykde/sip/kabc/resourcefile.sip delete mode 100644 python/pykde/sip/kabc/resourceselectdialog.sip delete mode 100644 python/pykde/sip/kabc/secrecy.sip delete mode 100644 python/pykde/sip/kabc/sortmode.sip delete mode 100644 python/pykde/sip/kabc/sound.sip delete mode 100644 python/pykde/sip/kabc/stdaddressbook.sip delete mode 100644 python/pykde/sip/kabc/timezone.sip delete mode 100644 python/pykde/sip/kabc/vcardconverter.sip delete mode 100644 python/pykde/sip/kabc/vcardformat.sip delete mode 100644 python/pykde/sip/kabc/vcardformatplugin.sip delete mode 100644 python/pykde/sip/kdecore/bytearray.sip delete mode 100644 python/pykde/sip/kdecore/fixx11h.sip delete mode 100644 python/pykde/sip/kdecore/kaboutdata.sip delete mode 100644 python/pykde/sip/kdecore/kaccel.sip delete mode 100644 python/pykde/sip/kdecore/kaccelaction.sip delete mode 100644 python/pykde/sip/kdecore/kaccelbase.sip delete mode 100644 python/pykde/sip/kdecore/kallocator.sip delete mode 100644 python/pykde/sip/kdecore/kapplication.sip delete mode 100644 python/pykde/sip/kdecore/kasyncio.sip delete mode 100644 python/pykde/sip/kdecore/kaudioplayer.sip delete mode 100644 python/pykde/sip/kdecore/kbufferedio.sip delete mode 100644 python/pykde/sip/kdecore/kcalendarsystem.sip delete mode 100644 python/pykde/sip/kdecore/kcalendarsystemfactory.sip delete mode 100644 python/pykde/sip/kdecore/kcatalogue.sip delete mode 100644 python/pykde/sip/kdecore/kcharsets.sip delete mode 100644 python/pykde/sip/kdecore/kclipboard.sip delete mode 100644 python/pykde/sip/kdecore/kcmdlineargs.sip delete mode 100644 python/pykde/sip/kdecore/kcompletion.sip delete mode 100644 python/pykde/sip/kdecore/kconfig.sip delete mode 100644 python/pykde/sip/kdecore/kconfigbackend.sip delete mode 100644 python/pykde/sip/kdecore/kconfigbase.sip delete mode 100644 python/pykde/sip/kdecore/kconfigdata.sip delete mode 100644 python/pykde/sip/kdecore/kconfigdialogmanager.sip delete mode 100644 python/pykde/sip/kdecore/kconfigskeleton.sip delete mode 100644 python/pykde/sip/kdecore/kcrash.sip delete mode 100644 python/pykde/sip/kdecore/kdcoppropertyproxy.sip delete mode 100644 python/pykde/sip/kdecore/kdebug.sip delete mode 100644 python/pykde/sip/kdecore/kdecore-kde310.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde311.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde312.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde313.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde314.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde315.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde320.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde321.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde322.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde323.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde330.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde331.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde332.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde340.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde341.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde342.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde343.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde350.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde351.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde352.diff delete mode 100644 python/pykde/sip/kdecore/kdecore-kde353.diff delete mode 100644 python/pykde/sip/kdecore/kdecoremod.sip.in delete mode 100644 python/pykde/sip/kdecore/kdesktopfile.sip delete mode 100644 python/pykde/sip/kdecore/kdesktopwidget.sip delete mode 100644 python/pykde/sip/kdecore/kdestyle.sip delete mode 100644 python/pykde/sip/kdecore/kdeversion.sip delete mode 100644 python/pykde/sip/kdecore/kglobal.sip delete mode 100644 python/pykde/sip/kdecore/kglobalaccel.sip delete mode 100644 python/pykde/sip/kdecore/kglobalsettings.sip delete mode 100644 python/pykde/sip/kdecore/kiconeffect.sip delete mode 100644 python/pykde/sip/kdecore/kiconloader.sip delete mode 100644 python/pykde/sip/kdecore/kicontheme.sip delete mode 100644 python/pykde/sip/kdecore/kidna.sip delete mode 100644 python/pykde/sip/kdecore/kinstance.sip delete mode 100644 python/pykde/sip/kdecore/kipc.sip delete mode 100644 python/pykde/sip/kdecore/kkeynative.sip delete mode 100644 python/pykde/sip/kdecore/kkeyserver_x11.sip delete mode 100644 python/pykde/sip/kdecore/klibloader.sip delete mode 100644 python/pykde/sip/kdecore/klocale.sip delete mode 100644 python/pykde/sip/kdecore/klockfile.sip delete mode 100644 python/pykde/sip/kdecore/kmacroexpander.sip delete mode 100644 python/pykde/sip/kdecore/kmanagerselection.sip delete mode 100644 python/pykde/sip/kdecore/kmdcodec.sip delete mode 100644 python/pykde/sip/kdecore/kmimesourcefactory.sip delete mode 100644 python/pykde/sip/kdecore/kmountpoint.sip delete mode 100644 python/pykde/sip/kdecore/kmultipledrag.sip delete mode 100644 python/pykde/sip/kdecore/knotifyclient.sip delete mode 100644 python/pykde/sip/kdecore/kpalette.sip delete mode 100644 python/pykde/sip/kdecore/kpixmapprovider.sip delete mode 100644 python/pykde/sip/kdecore/kprocctrl.sip delete mode 100644 python/pykde/sip/kdecore/kprocess.sip delete mode 100644 python/pykde/sip/kdecore/kprocio.sip delete mode 100644 python/pykde/sip/kdecore/kpty.sip delete mode 100644 python/pykde/sip/kdecore/krandomsequence.sip delete mode 100644 python/pykde/sip/kdecore/kregexp.sip delete mode 100644 python/pykde/sip/kdecore/krfcdate.sip delete mode 100644 python/pykde/sip/kdecore/krootprop.sip delete mode 100644 python/pykde/sip/kdecore/ksavefile.sip delete mode 100644 python/pykde/sip/kdecore/ksharedptr.sip delete mode 100644 python/pykde/sip/kdecore/kshell.sip delete mode 100644 python/pykde/sip/kdecore/kshortcut.sip delete mode 100644 python/pykde/sip/kdecore/kshortcutlist.sip delete mode 100644 python/pykde/sip/kdecore/ksimpleconfig.sip delete mode 100644 python/pykde/sip/kdecore/ksock.sip delete mode 100644 python/pykde/sip/kdecore/kstartupinfo.sip delete mode 100644 python/pykde/sip/kdecore/kstaticdeleter.sip delete mode 100644 python/pykde/sip/kdecore/kstdaccel.sip delete mode 100644 python/pykde/sip/kdecore/kstddirs.sip delete mode 100644 python/pykde/sip/kdecore/kstringhandler.sip delete mode 100644 python/pykde/sip/kdecore/ktempdir.sip delete mode 100644 python/pykde/sip/kdecore/ktempfile.sip delete mode 100644 python/pykde/sip/kdecore/ktimezones.sip delete mode 100644 python/pykde/sip/kdecore/kuniqueapplication.sip delete mode 100644 python/pykde/sip/kdecore/kurl.sip delete mode 100644 python/pykde/sip/kdecore/kurldrag.sip delete mode 100644 python/pykde/sip/kdecore/kuser.sip delete mode 100644 python/pykde/sip/kdecore/kvmallocator.sip delete mode 100644 python/pykde/sip/kdecore/kwin.sip delete mode 100644 python/pykde/sip/kdecore/kwinmodule.sip delete mode 100644 python/pykde/sip/kdecore/kxmessages.sip delete mode 100644 python/pykde/sip/kdecore/netwm.sip delete mode 100644 python/pykde/sip/kdecore/netwm_def.sip delete mode 100644 python/pykde/sip/kdefx/kcpuinfo.sip delete mode 100644 python/pykde/sip/kdefx/kdefx-kde320.diff delete mode 100644 python/pykde/sip/kdefx/kdefx-kde321.diff delete mode 100644 python/pykde/sip/kdefx/kdefx-kde322.diff delete mode 100644 python/pykde/sip/kdefx/kdefx-kde323.diff delete mode 100644 python/pykde/sip/kdefx/kdefx-kde330.diff delete mode 100644 python/pykde/sip/kdefx/kdefx-kde331.diff delete mode 100644 python/pykde/sip/kdefx/kdefx-kde332.diff delete mode 100644 python/pykde/sip/kdefx/kdefx-kde340.diff delete mode 100644 python/pykde/sip/kdefx/kdefx-kde341.diff delete mode 100644 python/pykde/sip/kdefx/kdefx-kde342.diff delete mode 100644 python/pykde/sip/kdefx/kdefx-kde343.diff delete mode 100644 python/pykde/sip/kdefx/kdefx-kde350.diff delete mode 100644 python/pykde/sip/kdefx/kdefx-kde351.diff delete mode 100644 python/pykde/sip/kdefx/kdefx-kde352.diff delete mode 100644 python/pykde/sip/kdefx/kdefx-kde353.diff delete mode 100644 python/pykde/sip/kdefx/kdefxmod.sip delete mode 100644 python/pykde/sip/kdefx/kdefxmod.sip.in delete mode 100644 python/pykde/sip/kdefx/kdrawutil.sip delete mode 100644 python/pykde/sip/kdefx/kimageeffect.sip delete mode 100644 python/pykde/sip/kdefx/kpixmap.sip delete mode 100644 python/pykde/sip/kdefx/kpixmapeffect.sip delete mode 100644 python/pykde/sip/kdefx/kpixmapsplitter.sip delete mode 100644 python/pykde/sip/kdefx/kstyle.sip delete mode 100644 python/pykde/sip/kdeprint/driver.sip delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde310.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde311.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde312.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde313.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde314.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde315.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde320.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde321.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde322.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde323.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde330.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde331.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde332.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde340.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde341.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde342.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde343.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde350.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde351.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde352.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprint-kde353.diff delete mode 100644 python/pykde/sip/kdeprint/kdeprintmod.sip delete mode 100644 python/pykde/sip/kdeprint/kdeprintmod.sip.in delete mode 100644 python/pykde/sip/kdeprint/kmjob.sip delete mode 100644 python/pykde/sip/kdeprint/kmjobmanager.sip delete mode 100644 python/pykde/sip/kdeprint/kmmanager.sip delete mode 100644 python/pykde/sip/kdeprint/kmobject.sip delete mode 100644 python/pykde/sip/kdeprint/kmprinter.sip delete mode 100644 python/pykde/sip/kdeprint/kpreloadobject.sip delete mode 100644 python/pykde/sip/kdeprint/kprintaction.sip delete mode 100644 python/pykde/sip/kdeprint/kprintdialog.sip delete mode 100644 python/pykde/sip/kdeprint/kprintdialogpage.sip delete mode 100644 python/pykde/sip/kdeprint/kprinter.sip delete mode 100644 python/pykde/sip/kdeui/kaboutapplication.sip delete mode 100644 python/pykde/sip/kdeui/kaboutdialog.sip delete mode 100644 python/pykde/sip/kdeui/kaboutkde.sip delete mode 100644 python/pykde/sip/kdeui/kaccelmanager.sip delete mode 100644 python/pykde/sip/kdeui/kaccelmenu.sip delete mode 100644 python/pykde/sip/kdeui/kaction.sip delete mode 100644 python/pykde/sip/kdeui/kactionclasses.sip delete mode 100644 python/pykde/sip/kdeui/kactioncollection.sip delete mode 100644 python/pykde/sip/kdeui/kactionselector.sip delete mode 100644 python/pykde/sip/kdeui/kactionshortcutlist.sip delete mode 100644 python/pykde/sip/kdeui/kactivelabel.sip delete mode 100644 python/pykde/sip/kdeui/kalphapainter.sip delete mode 100644 python/pykde/sip/kdeui/kanimwidget.sip delete mode 100644 python/pykde/sip/kdeui/karrowbutton.sip delete mode 100644 python/pykde/sip/kdeui/kauthicon.sip delete mode 100644 python/pykde/sip/kdeui/kbugreport.sip delete mode 100644 python/pykde/sip/kdeui/kbuttonbox.sip delete mode 100644 python/pykde/sip/kdeui/kcharselect.sip delete mode 100644 python/pykde/sip/kdeui/kcmenumngr.sip delete mode 100644 python/pykde/sip/kdeui/kcmodule.sip delete mode 100644 python/pykde/sip/kdeui/kcolorbtn.sip delete mode 100644 python/pykde/sip/kdeui/kcolorcombo.sip delete mode 100644 python/pykde/sip/kdeui/kcolordialog.sip delete mode 100644 python/pykde/sip/kdeui/kcolordrag.sip delete mode 100644 python/pykde/sip/kdeui/kcombobox.sip delete mode 100644 python/pykde/sip/kdeui/kcommand.sip delete mode 100644 python/pykde/sip/kdeui/kcompletionbox.sip delete mode 100644 python/pykde/sip/kdeui/kconfigdialog.sip delete mode 100644 python/pykde/sip/kdeui/kcontainer.sip delete mode 100644 python/pykde/sip/kdeui/kcursor.sip delete mode 100644 python/pykde/sip/kdeui/kdatepicker.sip delete mode 100644 python/pykde/sip/kdeui/kdatepik.sip delete mode 100644 python/pykde/sip/kdeui/kdatetbl.sip delete mode 100644 python/pykde/sip/kdeui/kdatetimewidget.sip delete mode 100644 python/pykde/sip/kdeui/kdatewidget.sip delete mode 100644 python/pykde/sip/kdeui/kdbtn.sip delete mode 100644 python/pykde/sip/kdeui/kdcopactionproxy.sip delete mode 100644 python/pykde/sip/kdeui/kdeui-kde310.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde311.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde312.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde313.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde314.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde315.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde320.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde321.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde322.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde323.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde330.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde331.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde332.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde340.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde341.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde342.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde343.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde350.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde351.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde352.diff delete mode 100644 python/pykde/sip/kdeui/kdeui-kde353.diff delete mode 100644 python/pykde/sip/kdeui/kdeuimod.sip.in delete mode 100644 python/pykde/sip/kdeui/kdialog.sip delete mode 100644 python/pykde/sip/kdeui/kdialogbase.sip delete mode 100644 python/pykde/sip/kdeui/kdocktabctl.sip delete mode 100644 python/pykde/sip/kdeui/kdockwidget.sip delete mode 100644 python/pykde/sip/kdeui/kdockwindow.sip delete mode 100644 python/pykde/sip/kdeui/kdualcolorbtn.sip delete mode 100644 python/pykde/sip/kdeui/kdualcolorbutton.sip delete mode 100644 python/pykde/sip/kdeui/keditcl.sip delete mode 100644 python/pykde/sip/kdeui/keditlistbox.sip delete mode 100644 python/pykde/sip/kdeui/kedittoolbar.sip delete mode 100644 python/pykde/sip/kdeui/kfontcombo.sip delete mode 100644 python/pykde/sip/kdeui/kfontdialog.sip delete mode 100644 python/pykde/sip/kdeui/kfontrequester.sip delete mode 100644 python/pykde/sip/kdeui/kguiitem.sip delete mode 100644 python/pykde/sip/kdeui/khelpmenu.sip delete mode 100644 python/pykde/sip/kdeui/kiconview.sip delete mode 100644 python/pykde/sip/kdeui/kiconviewsearchline.sip delete mode 100644 python/pykde/sip/kdeui/kinputdialog.sip delete mode 100644 python/pykde/sip/kdeui/kjanuswidget.sip delete mode 100644 python/pykde/sip/kdeui/kkeybutton.sip delete mode 100644 python/pykde/sip/kdeui/kkeydialog.sip delete mode 100644 python/pykde/sip/kdeui/klanguagebutton.sip delete mode 100644 python/pykde/sip/kdeui/kled.sip delete mode 100644 python/pykde/sip/kdeui/klineedit.sip delete mode 100644 python/pykde/sip/kdeui/klineeditdlg.sip delete mode 100644 python/pykde/sip/kdeui/klistbox.sip delete mode 100644 python/pykde/sip/kdeui/klistview.sip delete mode 100644 python/pykde/sip/kdeui/klistviewlineedit.sip delete mode 100644 python/pykde/sip/kdeui/klistviewsearchline.sip delete mode 100644 python/pykde/sip/kdeui/kmainwindow.sip delete mode 100644 python/pykde/sip/kdeui/kmainwindowiface.sip delete mode 100644 python/pykde/sip/kdeui/kmenubar.sip delete mode 100644 python/pykde/sip/kdeui/kmessagebox.sip delete mode 100644 python/pykde/sip/kdeui/knuminput.sip delete mode 100644 python/pykde/sip/kdeui/knumvalidator.sip delete mode 100644 python/pykde/sip/kdeui/kpanelapplet.sip delete mode 100644 python/pykde/sip/kdeui/kpanelappmenu.sip delete mode 100644 python/pykde/sip/kdeui/kpanelextension.sip delete mode 100644 python/pykde/sip/kdeui/kpanelmenu.sip delete mode 100644 python/pykde/sip/kdeui/kpassdlg.sip delete mode 100644 python/pykde/sip/kdeui/kpassivepopup.sip delete mode 100644 python/pykde/sip/kdeui/kpixmapio.sip delete mode 100644 python/pykde/sip/kdeui/kpixmapregionselectordialog.sip delete mode 100644 python/pykde/sip/kdeui/kpixmapregionselectorwidget.sip delete mode 100644 python/pykde/sip/kdeui/kpopupmenu.sip delete mode 100644 python/pykde/sip/kdeui/kprogress.sip delete mode 100644 python/pykde/sip/kdeui/kpushbutton.sip delete mode 100644 python/pykde/sip/kdeui/krestrictedline.sip delete mode 100644 python/pykde/sip/kdeui/krootpixmap.sip delete mode 100644 python/pykde/sip/kdeui/kruler.sip delete mode 100644 python/pykde/sip/kdeui/kscrollview.sip delete mode 100644 python/pykde/sip/kdeui/kselect.sip delete mode 100644 python/pykde/sip/kdeui/kseparator.sip delete mode 100644 python/pykde/sip/kdeui/ksharedpixmap.sip delete mode 100644 python/pykde/sip/kdeui/kshortcutdialog.sip delete mode 100644 python/pykde/sip/kdeui/ksplashscreen.sip delete mode 100644 python/pykde/sip/kdeui/ksqueezedtextlabel.sip delete mode 100644 python/pykde/sip/kdeui/kstatusbar.sip delete mode 100644 python/pykde/sip/kdeui/kstdaction.sip delete mode 100644 python/pykde/sip/kdeui/kstdguiitem.sip delete mode 100644 python/pykde/sip/kdeui/kstringvalidator.sip delete mode 100644 python/pykde/sip/kdeui/ksystemtray.sip delete mode 100644 python/pykde/sip/kdeui/ktabbar.sip delete mode 100644 python/pykde/sip/kdeui/ktabctl.sip delete mode 100644 python/pykde/sip/kdeui/ktabwidget.sip delete mode 100644 python/pykde/sip/kdeui/ktextbrowser.sip delete mode 100644 python/pykde/sip/kdeui/ktextedit.sip delete mode 100644 python/pykde/sip/kdeui/kthemebase.sip delete mode 100644 python/pykde/sip/kdeui/kthemestyle.sip delete mode 100644 python/pykde/sip/kdeui/ktimewidget.sip delete mode 100644 python/pykde/sip/kdeui/ktimezonewidget.sip delete mode 100644 python/pykde/sip/kdeui/ktip.sip delete mode 100644 python/pykde/sip/kdeui/ktmainwindow.sip delete mode 100644 python/pykde/sip/kdeui/ktoolbar.sip delete mode 100644 python/pykde/sip/kdeui/ktoolbarbutton.sip delete mode 100644 python/pykde/sip/kdeui/ktoolbarlabelaction.sip delete mode 100644 python/pykde/sip/kdeui/ktoolbarradiogroup.sip delete mode 100644 python/pykde/sip/kdeui/kurllabel.sip delete mode 100644 python/pykde/sip/kdeui/kwindowinfo.sip delete mode 100644 python/pykde/sip/kdeui/kwindowlistmenu.sip delete mode 100644 python/pykde/sip/kdeui/kwizard.sip delete mode 100644 python/pykde/sip/kdeui/kwordwrap.sip delete mode 100644 python/pykde/sip/kdeui/kxmlgui.sip delete mode 100644 python/pykde/sip/kdeui/kxmlguibuilder.sip delete mode 100644 python/pykde/sip/kdeui/kxmlguiclient.sip delete mode 100644 python/pykde/sip/kdeui/kxmlguifactory.sip delete mode 100644 python/pykde/sip/kdeui/qxembed.sip delete mode 100644 python/pykde/sip/kfile/booktoken.sip delete mode 100644 python/pykde/sip/kfile/kcombiview.sip delete mode 100644 python/pykde/sip/kfile/kcustommenueditor.sip delete mode 100644 python/pykde/sip/kfile/kdiroperator.sip delete mode 100644 python/pykde/sip/kfile/kdirselectdialog.sip delete mode 100644 python/pykde/sip/kfile/kdirsize.sip delete mode 100644 python/pykde/sip/kfile/kdiskfreesp.sip delete mode 100644 python/pykde/sip/kfile/kencodingfiledialog.sip delete mode 100644 python/pykde/sip/kfile/kfile-kde310.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde311.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde312.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde313.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde314.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde315.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde320.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde321.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde322.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde323.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde330.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde331.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde332.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde340.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde341.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde342.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde343.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde350.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde351.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde352.diff delete mode 100644 python/pykde/sip/kfile/kfile-kde353.diff delete mode 100644 python/pykde/sip/kfile/kfile.sip delete mode 100644 python/pykde/sip/kfile/kfilebookmark.sip delete mode 100644 python/pykde/sip/kfile/kfiledetailview.sip delete mode 100644 python/pykde/sip/kfile/kfiledialog.sip delete mode 100644 python/pykde/sip/kfile/kfilefiltercombo.sip delete mode 100644 python/pykde/sip/kfile/kfileiconview.sip delete mode 100644 python/pykde/sip/kfile/kfilemod.sip delete mode 100644 python/pykde/sip/kfile/kfilemod.sip.in delete mode 100644 python/pykde/sip/kfile/kfilepreview.sip delete mode 100644 python/pykde/sip/kfile/kfilereader.sip delete mode 100644 python/pykde/sip/kfile/kfilesharedlg.sip delete mode 100644 python/pykde/sip/kfile/kfiletreebranch.sip delete mode 100644 python/pykde/sip/kfile/kfiletreeview.sip delete mode 100644 python/pykde/sip/kfile/kfiletreeviewitem.sip delete mode 100644 python/pykde/sip/kfile/kfileview.sip delete mode 100644 python/pykde/sip/kfile/kfileviewitem.sip delete mode 100644 python/pykde/sip/kfile/kicondialog.sip delete mode 100644 python/pykde/sip/kfile/kimagefilepreview.sip delete mode 100644 python/pykde/sip/kfile/knotifydialog.sip delete mode 100644 python/pykde/sip/kfile/knotifywidgetbase.sip delete mode 100644 python/pykde/sip/kfile/kopenwith.sip delete mode 100644 python/pykde/sip/kfile/kpreviewwidgetbase.sip delete mode 100644 python/pykde/sip/kfile/kpropertiesdialog.sip delete mode 100644 python/pykde/sip/kfile/kpropsdlg.sip delete mode 100644 python/pykde/sip/kfile/krecentdirs.sip delete mode 100644 python/pykde/sip/kfile/krecentdocument.sip delete mode 100644 python/pykde/sip/kfile/kurlbar.sip delete mode 100644 python/pykde/sip/kfile/kurlcombobox.sip delete mode 100644 python/pykde/sip/kfile/kurlrequester.sip delete mode 100644 python/pykde/sip/kfile/kurlrequesterdlg.sip delete mode 100644 python/pykde/sip/khtml/css_rule.sip delete mode 100644 python/pykde/sip/khtml/css_stylesheet.sip delete mode 100644 python/pykde/sip/khtml/css_value.sip delete mode 100644 python/pykde/sip/khtml/dom2_events.sip delete mode 100644 python/pykde/sip/khtml/dom2_range.sip delete mode 100644 python/pykde/sip/khtml/dom2_traversal.sip delete mode 100644 python/pykde/sip/khtml/dom2_views.sip delete mode 100644 python/pykde/sip/khtml/dom_doc.sip delete mode 100644 python/pykde/sip/khtml/dom_element.sip delete mode 100644 python/pykde/sip/khtml/dom_exception.sip delete mode 100644 python/pykde/sip/khtml/dom_misc.sip delete mode 100644 python/pykde/sip/khtml/dom_node.sip delete mode 100644 python/pykde/sip/khtml/dom_string.sip delete mode 100644 python/pykde/sip/khtml/dom_text.sip delete mode 100644 python/pykde/sip/khtml/dom_xml.sip delete mode 100644 python/pykde/sip/khtml/html_base.sip delete mode 100644 python/pykde/sip/khtml/html_block.sip delete mode 100644 python/pykde/sip/khtml/html_document.sip delete mode 100644 python/pykde/sip/khtml/html_element.sip delete mode 100644 python/pykde/sip/khtml/html_form.sip delete mode 100644 python/pykde/sip/khtml/html_head.sip delete mode 100644 python/pykde/sip/khtml/html_image.sip delete mode 100644 python/pykde/sip/khtml/html_inline.sip delete mode 100644 python/pykde/sip/khtml/html_list.sip delete mode 100644 python/pykde/sip/khtml/html_misc.sip delete mode 100644 python/pykde/sip/khtml/html_object.sip delete mode 100644 python/pykde/sip/khtml/html_table.sip delete mode 100644 python/pykde/sip/khtml/khtml_part.sip delete mode 100644 python/pykde/sip/khtml/khtml_part.sip.323 delete mode 100644 python/pykde/sip/khtml/khtml_part.sip.330 delete mode 100644 python/pykde/sip/khtml/khtml_settings.sip delete mode 100644 python/pykde/sip/khtml/khtmlmod.sip.in delete mode 100644 python/pykde/sip/khtml/khtmlview.sip delete mode 100644 python/pykde/sip/kio/authinfo.sip delete mode 100644 python/pykde/sip/kio/chmodjob.sip delete mode 100644 python/pykde/sip/kio/connection.sip delete mode 100644 python/pykde/sip/kio/davjob.sip delete mode 100644 python/pykde/sip/kio/defaultprogress.sip delete mode 100644 python/pykde/sip/kio/forwardingslavebase.sip delete mode 100644 python/pykde/sip/kio/global.sip delete mode 100644 python/pykde/sip/kio/job.sip delete mode 100644 python/pykde/sip/kio/jobclasses.sip delete mode 100644 python/pykde/sip/kio/kacl.sip delete mode 100644 python/pykde/sip/kio/kar.sip delete mode 100644 python/pykde/sip/kio/karchive.sip delete mode 100644 python/pykde/sip/kio/kautomount.sip delete mode 100644 python/pykde/sip/kio/kdatatool.sip delete mode 100644 python/pykde/sip/kio/kdcopservicestarter.sip delete mode 100644 python/pykde/sip/kio/kdirlister.sip delete mode 100644 python/pykde/sip/kio/kdirnotify.sip delete mode 100644 python/pykde/sip/kio/kdirwatch.sip delete mode 100644 python/pykde/sip/kio/kemailsettings.sip delete mode 100644 python/pykde/sip/kio/kfilefilter.sip delete mode 100644 python/pykde/sip/kio/kfileitem.sip delete mode 100644 python/pykde/sip/kio/kfilemetainfo.sip delete mode 100644 python/pykde/sip/kio/kfileshare.sip delete mode 100644 python/pykde/sip/kio/kfilterbase.sip delete mode 100644 python/pykde/sip/kio/kfilterdev.sip delete mode 100644 python/pykde/sip/kio/kimageio.sip delete mode 100644 python/pykde/sip/kio/kio-kde310.diff delete mode 100644 python/pykde/sip/kio/kio-kde311.diff delete mode 100644 python/pykde/sip/kio/kio-kde312.diff delete mode 100644 python/pykde/sip/kio/kio-kde313.diff delete mode 100644 python/pykde/sip/kio/kio-kde314.diff delete mode 100644 python/pykde/sip/kio/kio-kde315.diff delete mode 100644 python/pykde/sip/kio/kio-kde320.diff delete mode 100644 python/pykde/sip/kio/kio-kde321.diff delete mode 100644 python/pykde/sip/kio/kio-kde322.diff delete mode 100644 python/pykde/sip/kio/kio-kde323.diff delete mode 100644 python/pykde/sip/kio/kio-kde330.diff delete mode 100644 python/pykde/sip/kio/kio-kde331.diff delete mode 100644 python/pykde/sip/kio/kio-kde332.diff delete mode 100644 python/pykde/sip/kio/kio-kde340.diff delete mode 100644 python/pykde/sip/kio/kio-kde341.diff delete mode 100644 python/pykde/sip/kio/kio-kde342.diff delete mode 100644 python/pykde/sip/kio/kio-kde343.diff delete mode 100644 python/pykde/sip/kio/kio-kde350.diff delete mode 100644 python/pykde/sip/kio/kio-kde351.diff delete mode 100644 python/pykde/sip/kio/kio-kde352.diff delete mode 100644 python/pykde/sip/kio/kio-kde353.diff delete mode 100644 python/pykde/sip/kio/kiomod.sip delete mode 100644 python/pykde/sip/kio/kiomod.sip.in delete mode 100644 python/pykde/sip/kio/kmimemagic.sip delete mode 100644 python/pykde/sip/kio/kmimetype.sip delete mode 100644 python/pykde/sip/kio/kmimetypechooser.sip delete mode 100644 python/pykde/sip/kio/knfsshare.sip delete mode 100644 python/pykde/sip/kio/kpac.sip delete mode 100644 python/pykde/sip/kio/kprotocolinfo.sip delete mode 100644 python/pykde/sip/kio/kprotocolmanager.sip delete mode 100644 python/pykde/sip/kio/kremoteencoding.sip delete mode 100644 python/pykde/sip/kio/krun.sip delete mode 100644 python/pykde/sip/kio/ksambashare.sip delete mode 100644 python/pykde/sip/kio/kscan.sip delete mode 100644 python/pykde/sip/kio/kservice.sip delete mode 100644 python/pykde/sip/kio/kservicegroup.sip delete mode 100644 python/pykde/sip/kio/kservicetype.sip delete mode 100644 python/pykde/sip/kio/kshellcompletion.sip delete mode 100644 python/pykde/sip/kio/kshred.sip delete mode 100644 python/pykde/sip/kio/ksycoca.sip delete mode 100644 python/pykde/sip/kio/ksycocadict.sip delete mode 100644 python/pykde/sip/kio/ksycocaentry.sip delete mode 100644 python/pykde/sip/kio/ksycocafactory.sip delete mode 100644 python/pykde/sip/kio/ksycocatype.sip delete mode 100644 python/pykde/sip/kio/ktar.sip delete mode 100644 python/pykde/sip/kio/ktrader.sip delete mode 100644 python/pykde/sip/kio/kurifilter.sip delete mode 100644 python/pykde/sip/kio/kurlcompletion.sip delete mode 100644 python/pykde/sip/kio/kurlpixmapprovider.sip delete mode 100644 python/pykde/sip/kio/kuserprofile.sip delete mode 100644 python/pykde/sip/kio/kzip.sip delete mode 100644 python/pykde/sip/kio/metainfojob.sip delete mode 100644 python/pykde/sip/kio/netaccess.sip delete mode 100644 python/pykde/sip/kio/observer.sip delete mode 100644 python/pykde/sip/kio/passdlg.sip delete mode 100644 python/pykde/sip/kio/paste.sip delete mode 100644 python/pykde/sip/kio/previewjob.sip delete mode 100644 python/pykde/sip/kio/progressbase.sip delete mode 100644 python/pykde/sip/kio/renamedlg.sip delete mode 100644 python/pykde/sip/kio/renamedlgplugin.sip delete mode 100644 python/pykde/sip/kio/scheduler.sip delete mode 100644 python/pykde/sip/kio/sessiondata.sip delete mode 100644 python/pykde/sip/kio/skipdlg.sip delete mode 100644 python/pykde/sip/kio/slave.sip delete mode 100644 python/pykde/sip/kio/slavebase.sip delete mode 100644 python/pykde/sip/kio/slaveconfig.sip delete mode 100644 python/pykde/sip/kio/slaveinterface.sip delete mode 100644 python/pykde/sip/kio/statusbarprogress.sip delete mode 100644 python/pykde/sip/kio/tcpslavebase.sip delete mode 100644 python/pykde/sip/kio/thumbcreator.sip delete mode 100644 python/pykde/sip/kmdi/kmdichildarea.sip delete mode 100644 python/pykde/sip/kmdi/kmdichildfrm.sip delete mode 100644 python/pykde/sip/kmdi/kmdichildfrmcaption.sip delete mode 100644 python/pykde/sip/kmdi/kmdichildview.sip delete mode 100644 python/pykde/sip/kmdi/kmdidefines.sip delete mode 100644 python/pykde/sip/kmdi/kmdimainfrm.sip delete mode 100644 python/pykde/sip/kmdi/kmdimod.sip delete mode 100644 python/pykde/sip/kmdi/kmdimod.sip.in delete mode 100644 python/pykde/sip/kmdi/kmditaskbar.sip delete mode 100644 python/pykde/sip/kmdi/kmditoolviewaccessor.sip delete mode 100644 python/pykde/sip/kparts/browserextension.sip delete mode 100644 python/pykde/sip/kparts/browserinterface.sip delete mode 100644 python/pykde/sip/kparts/browserrun.sip delete mode 100644 python/pykde/sip/kparts/dockmainwindow.sip delete mode 100644 python/pykde/sip/kparts/event.sip delete mode 100644 python/pykde/sip/kparts/factory.sip delete mode 100644 python/pykde/sip/kparts/genericfactory.sip delete mode 100644 python/pykde/sip/kparts/historyprovider.sip delete mode 100644 python/pykde/sip/kparts/konsole_part.sip delete mode 100644 python/pykde/sip/kparts/kparts-kde320.diff delete mode 100644 python/pykde/sip/kparts/kparts-kde321.diff delete mode 100644 python/pykde/sip/kparts/kparts-kde322.diff delete mode 100644 python/pykde/sip/kparts/kparts-kde323.diff delete mode 100644 python/pykde/sip/kparts/kparts-kde330.diff delete mode 100644 python/pykde/sip/kparts/kparts-kde331.diff delete mode 100644 python/pykde/sip/kparts/kparts-kde332.diff delete mode 100644 python/pykde/sip/kparts/kparts-kde340.diff delete mode 100644 python/pykde/sip/kparts/kparts-kde341.diff delete mode 100644 python/pykde/sip/kparts/kparts-kde342.diff delete mode 100644 python/pykde/sip/kparts/kparts-kde343.diff delete mode 100644 python/pykde/sip/kparts/kparts-kde350.diff delete mode 100644 python/pykde/sip/kparts/kparts-kde351.diff delete mode 100644 python/pykde/sip/kparts/kparts-kde352.diff delete mode 100644 python/pykde/sip/kparts/kparts-kde353.diff delete mode 100644 python/pykde/sip/kparts/kpartsmod.sip delete mode 100644 python/pykde/sip/kparts/kpartsmod.sip.in delete mode 100644 python/pykde/sip/kparts/mainwindow.sip delete mode 100644 python/pykde/sip/kparts/part.sip delete mode 100644 python/pykde/sip/kparts/partmanager.sip delete mode 100644 python/pykde/sip/kparts/plugin.sip delete mode 100644 python/pykde/sip/kparts/statusbarextension.sip delete mode 100644 python/pykde/sip/kresources/configdialog.sip delete mode 100644 python/pykde/sip/kresources/configpage.sip delete mode 100644 python/pykde/sip/kresources/configwidget.sip delete mode 100644 python/pykde/sip/kresources/factory.sip delete mode 100644 python/pykde/sip/kresources/kresourcesmod.sip delete mode 100644 python/pykde/sip/kresources/kresourcesmod.sip.in delete mode 100644 python/pykde/sip/kresources/resource.sip delete mode 100644 python/pykde/sip/kresources/selectdialog.sip delete mode 100644 python/pykde/sip/kspell/ksconfig.sip delete mode 100644 python/pykde/sip/kspell/kspell-kde320.diff delete mode 100644 python/pykde/sip/kspell/kspell-kde321.diff delete mode 100644 python/pykde/sip/kspell/kspell-kde322.diff delete mode 100644 python/pykde/sip/kspell/kspell-kde323.diff delete mode 100644 python/pykde/sip/kspell/kspell-kde330.diff delete mode 100644 python/pykde/sip/kspell/kspell-kde331.diff delete mode 100644 python/pykde/sip/kspell/kspell-kde332.diff delete mode 100644 python/pykde/sip/kspell/kspell-kde340.diff delete mode 100644 python/pykde/sip/kspell/kspell-kde341.diff delete mode 100644 python/pykde/sip/kspell/kspell-kde342.diff delete mode 100644 python/pykde/sip/kspell/kspell-kde343.diff delete mode 100644 python/pykde/sip/kspell/kspell-kde350.diff delete mode 100644 python/pykde/sip/kspell/kspell-kde351.diff delete mode 100644 python/pykde/sip/kspell/kspell-kde352.diff delete mode 100644 python/pykde/sip/kspell/kspell-kde353.diff delete mode 100644 python/pykde/sip/kspell/kspell.sip delete mode 100644 python/pykde/sip/kspell/kspelldlg.sip delete mode 100644 python/pykde/sip/kspell/kspellmod.sip.in delete mode 100644 python/pykde/sip/kspell/ksyntaxhighlighter.sip delete mode 100644 python/pykde/sip/kspell2/backgroundchecker.sip delete mode 100644 python/pykde/sip/kspell2/broker.sip delete mode 100644 python/pykde/sip/kspell2/configdialog.sip delete mode 100644 python/pykde/sip/kspell2/configwidget.sip delete mode 100644 python/pykde/sip/kspell2/defaultdictionary.sip delete mode 100644 python/pykde/sip/kspell2/dialog.sip delete mode 100644 python/pykde/sip/kspell2/dictionary.sip delete mode 100644 python/pykde/sip/kspell2/filter.sip delete mode 100644 python/pykde/sip/kspell2/highlighter.sip delete mode 100644 python/pykde/sip/kspell2/kspell2mod.sip.in delete mode 100644 python/pykde/sip/kspell2/settings.sip delete mode 100644 python/pykde/sip/kutils/kcmoduleinfo.sip delete mode 100644 python/pykde/sip/kutils/kcmoduleloader.sip delete mode 100644 python/pykde/sip/kutils/kcmoduleproxy.sip delete mode 100644 python/pykde/sip/kutils/kcmultidialog.sip delete mode 100644 python/pykde/sip/kutils/kfind.sip delete mode 100644 python/pykde/sip/kutils/kfinddialog.sip delete mode 100644 python/pykde/sip/kutils/kmultitabbar.sip delete mode 100644 python/pykde/sip/kutils/kplugininfo.sip delete mode 100644 python/pykde/sip/kutils/kpluginselector.sip delete mode 100644 python/pykde/sip/kutils/kreplace.sip delete mode 100644 python/pykde/sip/kutils/kreplacedialog.sip delete mode 100644 python/pykde/sip/kutils/kutils-kde340.diff delete mode 100644 python/pykde/sip/kutils/kutils-kde341.diff delete mode 100644 python/pykde/sip/kutils/kutilsmod.sip delete mode 100644 python/pykde/sip/kutils/kutilsmod.sip.in delete mode 100644 python/pykde/svnmerge.py delete mode 100644 python/pykde/svnmergedocs.py delete mode 100644 python/pykde/templates/annotated/basicapp.py delete mode 100644 python/pykde/templates/annotated/menuapp1.py delete mode 100644 python/pykde/templates/annotated/menuapp2.py delete mode 100644 python/pykde/templates/annotated/menuapp3.py delete mode 100644 python/pykde/templates/annotated/menuapp3ui.rc delete mode 100644 python/pykde/templates/annotated/minimal.py delete mode 100644 python/pykde/templates/annotated/panelapplet.py delete mode 100644 python/pykde/templates/annotated/systray.py delete mode 100644 python/pykde/templates/annotated/systray1.py delete mode 100644 python/pykde/templates/basic/basicapp.py delete mode 100644 python/pykde/templates/basic/menuapp1.py delete mode 100644 python/pykde/templates/basic/menuapp2.py delete mode 100644 python/pykde/templates/basic/menuapp3.py delete mode 100644 python/pykde/templates/basic/menuapp3ui.rc delete mode 100644 python/pykde/templates/basic/minimal.py delete mode 100644 python/pykde/templates/basic/panelapplet.py delete mode 100644 python/pykde/templates/basic/systray.py delete mode 100644 python/pykde/templates/basic/systray1.py delete mode 100644 python/pyqt/ChangeLog delete mode 100644 python/pyqt/LICENSE delete mode 100644 python/pyqt/NEWS delete mode 100644 python/pyqt/README delete mode 100644 python/pyqt/README.AIX delete mode 100644 python/pyqt/README.SunOS delete mode 100644 python/pyqt/THANKS delete mode 100644 python/pyqt/build.py delete mode 100644 python/pyqt/configure.py delete mode 100644 python/pyqt/doc/PyQt.html delete mode 100644 python/pyqt/doc/PyQt.sgml delete mode 100644 python/pyqt/doc/qtdocs.sip delete mode 100644 python/pyqt/examples2/README delete mode 100755 python/pyqt/examples2/aclock.py delete mode 100755 python/pyqt/examples2/addressbook.py delete mode 100755 python/pyqt/examples2/application.py delete mode 100755 python/pyqt/examples2/buttongroups.py delete mode 100755 python/pyqt/examples2/dclock.py delete mode 100755 python/pyqt/examples2/desktop.py delete mode 100755 python/pyqt/examples2/dirview.py delete mode 100755 python/pyqt/examples2/dragdrop.py delete mode 100644 python/pyqt/examples2/dropsite.py delete mode 100755 python/pyqt/examples2/gears.py delete mode 100755 python/pyqt/examples2/menu.py delete mode 100644 python/pyqt/examples2/qt.png delete mode 100644 python/pyqt/examples2/qtlogo.png delete mode 100644 python/pyqt/examples2/secret.py delete mode 100755 python/pyqt/examples2/semaphore.py delete mode 100755 python/pyqt/examples2/splitter.py delete mode 100755 python/pyqt/examples2/table.py delete mode 100755 python/pyqt/examples2/themes.py delete mode 100644 python/pyqt/examples2/trolltech.bmp delete mode 100644 python/pyqt/examples2/trolltech.gif delete mode 100644 python/pyqt/examples2/tt-logo.png delete mode 100755 python/pyqt/examples2/tut1.py delete mode 100755 python/pyqt/examples2/tut10.py delete mode 100755 python/pyqt/examples2/tut11.py delete mode 100755 python/pyqt/examples2/tut12.py delete mode 100755 python/pyqt/examples2/tut13.py delete mode 100755 python/pyqt/examples2/tut14.py delete mode 100755 python/pyqt/examples2/tut2.py delete mode 100755 python/pyqt/examples2/tut3.py delete mode 100755 python/pyqt/examples2/tut4.py delete mode 100755 python/pyqt/examples2/tut5.py delete mode 100755 python/pyqt/examples2/tut6.py delete mode 100755 python/pyqt/examples2/tut7.py delete mode 100755 python/pyqt/examples2/tut8.py delete mode 100755 python/pyqt/examples2/tut9.py delete mode 100755 python/pyqt/examples2/widgets.py delete mode 100644 python/pyqt/examples3/README delete mode 100644 python/pyqt/examples3/SQL/README delete mode 100644 python/pyqt/examples3/SQL/connect.ui delete mode 100644 python/pyqt/examples3/SQL/connect.ui.h delete mode 100755 python/pyqt/examples3/SQL/dbconnect.py delete mode 100644 python/pyqt/examples3/SQL/dbpar.py delete mode 100644 python/pyqt/examples3/SQL/form1.ui delete mode 100644 python/pyqt/examples3/SQL/form2.ui delete mode 100644 python/pyqt/examples3/SQL/frmconnect.py delete mode 100644 python/pyqt/examples3/SQL/frmconnect.ui delete mode 100755 python/pyqt/examples3/SQL/runform1.py delete mode 100755 python/pyqt/examples3/SQL/runform2.py delete mode 100755 python/pyqt/examples3/SQL/runsqlex.py delete mode 100755 python/pyqt/examples3/SQL/sqlcustom1.py delete mode 100644 python/pyqt/examples3/SQL/sqlex.ui delete mode 100644 python/pyqt/examples3/SQL/sqlex.ui.h delete mode 100755 python/pyqt/examples3/SQL/sqlsubclass5.py delete mode 100755 python/pyqt/examples3/SQL/sqltable4.py delete mode 100644 python/pyqt/examples3/SQL/testdb_mysql.sql delete mode 100644 python/pyqt/examples3/SQL/testdb_pg.sql delete mode 100755 python/pyqt/examples3/aclock.py delete mode 100755 python/pyqt/examples3/addressbook.py delete mode 100755 python/pyqt/examples3/application.py delete mode 100755 python/pyqt/examples3/biff.py delete mode 100755 python/pyqt/examples3/bigtable.py delete mode 100755 python/pyqt/examples3/buttongroups.py delete mode 100644 python/pyqt/examples3/canvas/butterfly.png delete mode 100755 python/pyqt/examples3/canvas/canvas.py delete mode 100644 python/pyqt/examples3/canvas/qt-trans.xpm delete mode 100644 python/pyqt/examples3/canvas/qtlogo.png delete mode 100755 python/pyqt/examples3/checklists.py delete mode 100755 python/pyqt/examples3/cursor.py delete mode 100755 python/pyqt/examples3/dclock.py delete mode 100755 python/pyqt/examples3/desktop.py delete mode 100755 python/pyqt/examples3/dirview.py delete mode 100755 python/pyqt/examples3/dragdrop.py delete mode 100755 python/pyqt/examples3/drawlines.py delete mode 100644 python/pyqt/examples3/dropsite.py delete mode 100644 python/pyqt/examples3/fileopen.xpm delete mode 100755 python/pyqt/examples3/fontdisplayer.py delete mode 100755 python/pyqt/examples3/fonts.py delete mode 100755 python/pyqt/examples3/gears.py delete mode 100644 python/pyqt/examples3/i18n/i18n.pro delete mode 100755 python/pyqt/examples3/i18n/i18n.py delete mode 100644 python/pyqt/examples3/i18n/mywidget.py delete mode 100644 python/pyqt/examples3/i18n/mywidget_cs.qm delete mode 100644 python/pyqt/examples3/i18n/mywidget_cs.ts delete mode 100644 python/pyqt/examples3/i18n/mywidget_de.qm delete mode 100644 python/pyqt/examples3/i18n/mywidget_de.ts delete mode 100644 python/pyqt/examples3/i18n/mywidget_el.qm delete mode 100644 python/pyqt/examples3/i18n/mywidget_el.ts delete mode 100644 python/pyqt/examples3/i18n/mywidget_en.qm delete mode 100644 python/pyqt/examples3/i18n/mywidget_en.ts delete mode 100644 python/pyqt/examples3/i18n/mywidget_eo.qm delete mode 100644 python/pyqt/examples3/i18n/mywidget_eo.ts delete mode 100644 python/pyqt/examples3/i18n/mywidget_fr.qm delete mode 100644 python/pyqt/examples3/i18n/mywidget_fr.ts delete mode 100644 python/pyqt/examples3/i18n/mywidget_it.qm delete mode 100644 python/pyqt/examples3/i18n/mywidget_it.ts delete mode 100644 python/pyqt/examples3/i18n/mywidget_jp.qm delete mode 100644 python/pyqt/examples3/i18n/mywidget_jp.ts delete mode 100644 python/pyqt/examples3/i18n/mywidget_ko.qm delete mode 100644 python/pyqt/examples3/i18n/mywidget_ko.ts delete mode 100644 python/pyqt/examples3/i18n/mywidget_no.qm delete mode 100644 python/pyqt/examples3/i18n/mywidget_no.ts delete mode 100644 python/pyqt/examples3/i18n/mywidget_ru.qm delete mode 100644 python/pyqt/examples3/i18n/mywidget_ru.ts delete mode 100644 python/pyqt/examples3/i18n/mywidget_zh.qm delete mode 100644 python/pyqt/examples3/i18n/mywidget_zh.ts delete mode 100755 python/pyqt/examples3/lineedits.py delete mode 100755 python/pyqt/examples3/listbox.py delete mode 100755 python/pyqt/examples3/listboxcombo.py delete mode 100644 python/pyqt/examples3/marble.png delete mode 100755 python/pyqt/examples3/mdi.py delete mode 100755 python/pyqt/examples3/menu.py delete mode 100755 python/pyqt/examples3/progress.py delete mode 100755 python/pyqt/examples3/progressbar.py delete mode 100755 python/pyqt/examples3/qdir.py delete mode 100755 python/pyqt/examples3/qmag.py delete mode 100644 python/pyqt/examples3/qt.png delete mode 100644 python/pyqt/examples3/qtlogo.png delete mode 100755 python/pyqt/examples3/rangecontrols.py delete mode 100755 python/pyqt/examples3/richtext.py delete mode 100644 python/pyqt/examples3/secret.py delete mode 100755 python/pyqt/examples3/semaphore.py delete mode 100755 python/pyqt/examples3/smalltable.py delete mode 100755 python/pyqt/examples3/splitter.py delete mode 100755 python/pyqt/examples3/tabdialog.py delete mode 100755 python/pyqt/examples3/tablestatistics.py delete mode 100755 python/pyqt/examples3/tooltip.py delete mode 100644 python/pyqt/examples3/trolltech.bmp delete mode 100644 python/pyqt/examples3/trolltech.gif delete mode 100644 python/pyqt/examples3/tt-logo.png delete mode 100755 python/pyqt/examples3/tut1.py delete mode 100755 python/pyqt/examples3/tut10.py delete mode 100755 python/pyqt/examples3/tut11.py delete mode 100755 python/pyqt/examples3/tut12.py delete mode 100755 python/pyqt/examples3/tut13.py delete mode 100755 python/pyqt/examples3/tut14.py delete mode 100755 python/pyqt/examples3/tut2.py delete mode 100755 python/pyqt/examples3/tut3.py delete mode 100755 python/pyqt/examples3/tut4.py delete mode 100755 python/pyqt/examples3/tut5.py delete mode 100755 python/pyqt/examples3/tut6.py delete mode 100755 python/pyqt/examples3/tut7.py delete mode 100755 python/pyqt/examples3/tut8.py delete mode 100755 python/pyqt/examples3/tut9.py delete mode 100644 python/pyqt/examples3/webbrowser/mainwindow.py delete mode 100644 python/pyqt/examples3/webbrowser/mainwindow.ui delete mode 100644 python/pyqt/examples3/webbrowser/webbrowser.py delete mode 100755 python/pyqt/examples3/widgets.py delete mode 100644 python/pyqt/pylupdate3/LICENSE.GPL delete mode 100644 python/pyqt/pylupdate3/fetchtr.cpp delete mode 100644 python/pyqt/pylupdate3/main.cpp delete mode 100644 python/pyqt/pylupdate3/merge.cpp delete mode 100644 python/pyqt/pylupdate3/metatranslator.cpp delete mode 100644 python/pyqt/pylupdate3/metatranslator.h delete mode 100644 python/pyqt/pylupdate3/numberh.cpp delete mode 100644 python/pyqt/pylupdate3/proparser.cpp delete mode 100644 python/pyqt/pylupdate3/proparser.h delete mode 100644 python/pyqt/pylupdate3/pylupdate-prof.sbf delete mode 100644 python/pyqt/pylupdate3/pylupdate.pro.in delete mode 100644 python/pyqt/pylupdate3/pylupdate.sbf delete mode 100644 python/pyqt/pylupdate3/sametexth.cpp delete mode 100644 python/pyqt/pyqtconfig.py.in delete mode 100644 python/pyqt/pyuic2/COPYING delete mode 100644 python/pyqt/pyuic2/domtool.cpp delete mode 100644 python/pyqt/pyuic2/domtool.h delete mode 100644 python/pyqt/pyuic2/globaldefs.h delete mode 100644 python/pyqt/pyuic2/pyuic.pro.in delete mode 100644 python/pyqt/pyuic2/pyuic.sbf delete mode 100644 python/pyqt/pyuic2/uic.cpp delete mode 100644 python/pyqt/pyuic2/uic.h delete mode 100644 python/pyqt/pyuic2/widgetdatabase.cpp delete mode 100644 python/pyqt/pyuic2/widgetdatabase.h delete mode 100644 python/pyqt/pyuic3/LICENSE.GPL delete mode 100644 python/pyqt/pyuic3/domtool.cpp delete mode 100644 python/pyqt/pyuic3/domtool.h delete mode 100644 python/pyqt/pyuic3/embed.cpp delete mode 100644 python/pyqt/pyuic3/form.cpp delete mode 100644 python/pyqt/pyuic3/globaldefs.h delete mode 100644 python/pyqt/pyuic3/main.cpp delete mode 100644 python/pyqt/pyuic3/object.cpp delete mode 100644 python/pyqt/pyuic3/parser.cpp delete mode 100644 python/pyqt/pyuic3/parser.h delete mode 100644 python/pyqt/pyuic3/pyuic-prof.sbf delete mode 100644 python/pyqt/pyuic3/pyuic.pro.in delete mode 100644 python/pyqt/pyuic3/pyuic.sbf delete mode 100644 python/pyqt/pyuic3/subclassing.cpp delete mode 100644 python/pyqt/pyuic3/uic.cpp delete mode 100644 python/pyqt/pyuic3/uic.h delete mode 100644 python/pyqt/pyuic3/widgetdatabase.cpp delete mode 100644 python/pyqt/pyuic3/widgetdatabase.h delete mode 100644 python/pyqt/pyuic3/widgetinterface.h delete mode 100644 python/pyqt/sip/pyqt-gpl.sip delete mode 100644 python/pyqt/sip/qt/copying.sip delete mode 100644 python/pyqt/sip/qt/qaccel.sip delete mode 100644 python/pyqt/sip/qt/qaction.sip delete mode 100644 python/pyqt/sip/qt/qapplication.sip delete mode 100644 python/pyqt/sip/qt/qarray.sip delete mode 100644 python/pyqt/sip/qt/qassistantclient.sip delete mode 100644 python/pyqt/sip/qt/qbitmap.sip delete mode 100644 python/pyqt/sip/qt/qbrush.sip delete mode 100644 python/pyqt/sip/qt/qbutton.sip delete mode 100644 python/pyqt/sip/qt/qbuttongroup.sip delete mode 100644 python/pyqt/sip/qt/qbytearray.sip delete mode 100644 python/pyqt/sip/qt/qcdestyle.sip delete mode 100644 python/pyqt/sip/qt/qcheckbox.sip delete mode 100644 python/pyqt/sip/qt/qclipboard.sip delete mode 100644 python/pyqt/sip/qt/qcolor.sip delete mode 100644 python/pyqt/sip/qt/qcolordialog.sip delete mode 100644 python/pyqt/sip/qt/qcolorgroup.sip delete mode 100644 python/pyqt/sip/qt/qcombobox.sip delete mode 100644 python/pyqt/sip/qt/qcommonstyle.sip delete mode 100644 python/pyqt/sip/qt/qcstring.sip delete mode 100644 python/pyqt/sip/qt/qcursor.sip delete mode 100644 python/pyqt/sip/qt/qdatastream.sip delete mode 100644 python/pyqt/sip/qt/qdatetime.sip delete mode 100644 python/pyqt/sip/qt/qdatetimeedit.sip delete mode 100644 python/pyqt/sip/qt/qdesktopwidget.sip delete mode 100644 python/pyqt/sip/qt/qdial.sip delete mode 100644 python/pyqt/sip/qt/qdialog.sip delete mode 100644 python/pyqt/sip/qt/qdir.sip delete mode 100644 python/pyqt/sip/qt/qdockarea.sip delete mode 100644 python/pyqt/sip/qt/qdockwindow.sip delete mode 100644 python/pyqt/sip/qt/qdragobject.sip delete mode 100644 python/pyqt/sip/qt/qdrawutil.sip delete mode 100644 python/pyqt/sip/qt/qdropsite.sip delete mode 100644 python/pyqt/sip/qt/qerrormessage.sip delete mode 100644 python/pyqt/sip/qt/qevent.sip delete mode 100644 python/pyqt/sip/qt/qeventloop.sip delete mode 100644 python/pyqt/sip/qt/qfile.sip delete mode 100644 python/pyqt/sip/qt/qfiledialog.sip delete mode 100644 python/pyqt/sip/qt/qfileinfo.sip delete mode 100644 python/pyqt/sip/qt/qfont.sip delete mode 100644 python/pyqt/sip/qt/qfontdatabase.sip delete mode 100644 python/pyqt/sip/qt/qfontdialog.sip delete mode 100644 python/pyqt/sip/qt/qfontinfo.sip delete mode 100644 python/pyqt/sip/qt/qfontmetrics.sip delete mode 100644 python/pyqt/sip/qt/qframe.sip delete mode 100644 python/pyqt/sip/qt/qglobal.sip delete mode 100644 python/pyqt/sip/qt/qgmanager.sip delete mode 100644 python/pyqt/sip/qt/qgrid.sip delete mode 100644 python/pyqt/sip/qt/qgridview.sip delete mode 100644 python/pyqt/sip/qt/qgroupbox.sip delete mode 100644 python/pyqt/sip/qt/qhbox.sip delete mode 100644 python/pyqt/sip/qt/qhbuttongroup.sip delete mode 100644 python/pyqt/sip/qt/qheader.sip delete mode 100644 python/pyqt/sip/qt/qhgroupbox.sip delete mode 100644 python/pyqt/sip/qt/qiconset.sip delete mode 100644 python/pyqt/sip/qt/qiconview.sip delete mode 100644 python/pyqt/sip/qt/qimage.sip delete mode 100644 python/pyqt/sip/qt/qinputdialog.sip delete mode 100644 python/pyqt/sip/qt/qinterlacestyle.sip delete mode 100644 python/pyqt/sip/qt/qiodevice.sip delete mode 100644 python/pyqt/sip/qt/qkeycode.sip delete mode 100644 python/pyqt/sip/qt/qkeysequence.sip delete mode 100644 python/pyqt/sip/qt/qlabel.sip delete mode 100644 python/pyqt/sip/qt/qlayout.sip delete mode 100644 python/pyqt/sip/qt/qlcdnumber.sip delete mode 100644 python/pyqt/sip/qt/qlibrary.sip delete mode 100644 python/pyqt/sip/qt/qlineedit.sip delete mode 100644 python/pyqt/sip/qt/qlist.sip delete mode 100644 python/pyqt/sip/qt/qlistbox.sip delete mode 100644 python/pyqt/sip/qt/qlistview.sip delete mode 100644 python/pyqt/sip/qt/qlocale.sip delete mode 100644 python/pyqt/sip/qt/qmainwindow.sip delete mode 100644 python/pyqt/sip/qt/qmemarray.sip delete mode 100644 python/pyqt/sip/qt/qmenubar.sip delete mode 100644 python/pyqt/sip/qt/qmenudata.sip delete mode 100644 python/pyqt/sip/qt/qmessagebox.sip delete mode 100644 python/pyqt/sip/qt/qmetaobject.sip delete mode 100644 python/pyqt/sip/qt/qmime.sip delete mode 100644 python/pyqt/sip/qt/qmotifplusstyle.sip delete mode 100644 python/pyqt/sip/qt/qmotifstyle.sip delete mode 100644 python/pyqt/sip/qt/qmovie.sip delete mode 100644 python/pyqt/sip/qt/qmultilinedit.sip delete mode 100644 python/pyqt/sip/qt/qmutex.sip delete mode 100644 python/pyqt/sip/qt/qnamespace.sip delete mode 100644 python/pyqt/sip/qt/qnetworkprotocol.sip delete mode 100644 python/pyqt/sip/qt/qobject.sip delete mode 100644 python/pyqt/sip/qt/qobjectcleanuphandler.sip delete mode 100644 python/pyqt/sip/qt/qobjectlist.sip delete mode 100644 python/pyqt/sip/qt/qpaintdevice.sip delete mode 100644 python/pyqt/sip/qt/qpaintdevicemetrics.sip delete mode 100644 python/pyqt/sip/qt/qpainter.sip delete mode 100644 python/pyqt/sip/qt/qpair.sip delete mode 100644 python/pyqt/sip/qt/qpalette.sip delete mode 100644 python/pyqt/sip/qt/qpen.sip delete mode 100644 python/pyqt/sip/qt/qpicture.sip delete mode 100644 python/pyqt/sip/qt/qpixmap.sip delete mode 100644 python/pyqt/sip/qt/qpixmapcache.sip delete mode 100644 python/pyqt/sip/qt/qplatinumstyle.sip delete mode 100644 python/pyqt/sip/qt/qpoint.sip delete mode 100644 python/pyqt/sip/qt/qpointarray.sip delete mode 100644 python/pyqt/sip/qt/qpopupmenu.sip delete mode 100644 python/pyqt/sip/qt/qprintdialog.sip delete mode 100644 python/pyqt/sip/qt/qprinter.sip delete mode 100644 python/pyqt/sip/qt/qprocess.sip delete mode 100644 python/pyqt/sip/qt/qprogressbar.sip delete mode 100644 python/pyqt/sip/qt/qprogressdialog.sip delete mode 100644 python/pyqt/sip/qt/qptrlist.sip delete mode 100644 python/pyqt/sip/qt/qpushbutton.sip delete mode 100644 python/pyqt/sip/qt/qradiobutton.sip delete mode 100644 python/pyqt/sip/qt/qrangecontrol.sip delete mode 100644 python/pyqt/sip/qt/qrect.sip delete mode 100644 python/pyqt/sip/qt/qregexp.sip delete mode 100644 python/pyqt/sip/qt/qregion.sip delete mode 100644 python/pyqt/sip/qt/qscrollbar.sip delete mode 100644 python/pyqt/sip/qt/qscrollview.sip delete mode 100644 python/pyqt/sip/qt/qsemaphore.sip delete mode 100644 python/pyqt/sip/qt/qsemimodal.sip delete mode 100644 python/pyqt/sip/qt/qsessionmanager.sip delete mode 100644 python/pyqt/sip/qt/qsettings.sip delete mode 100644 python/pyqt/sip/qt/qsgistyle.sip delete mode 100644 python/pyqt/sip/qt/qsignalmapper.sip delete mode 100644 python/pyqt/sip/qt/qsimplerichtext.sip delete mode 100644 python/pyqt/sip/qt/qsize.sip delete mode 100644 python/pyqt/sip/qt/qsizegrip.sip delete mode 100644 python/pyqt/sip/qt/qsizepolicy.sip delete mode 100644 python/pyqt/sip/qt/qslider.sip delete mode 100644 python/pyqt/sip/qt/qsocketnotifier.sip delete mode 100644 python/pyqt/sip/qt/qsound.sip delete mode 100644 python/pyqt/sip/qt/qspinbox.sip delete mode 100644 python/pyqt/sip/qt/qsplashscreen.sip delete mode 100644 python/pyqt/sip/qt/qsplitter.sip delete mode 100644 python/pyqt/sip/qt/qstatusbar.sip delete mode 100644 python/pyqt/sip/qt/qstring.sip delete mode 100644 python/pyqt/sip/qt/qstringlist.sip delete mode 100644 python/pyqt/sip/qt/qstrlist.sip delete mode 100644 python/pyqt/sip/qt/qstyle.sip delete mode 100644 python/pyqt/sip/qt/qstylefactory.sip delete mode 100644 python/pyqt/sip/qt/qstylesheet.sip delete mode 100644 python/pyqt/sip/qt/qsyntaxhighlighter.sip delete mode 100644 python/pyqt/sip/qt/qtabbar.sip delete mode 100644 python/pyqt/sip/qt/qtabdialog.sip delete mode 100644 python/pyqt/sip/qt/qtableview.sip delete mode 100644 python/pyqt/sip/qt/qtabwidget.sip delete mode 100644 python/pyqt/sip/qt/qtextbrowser.sip delete mode 100644 python/pyqt/sip/qt/qtextcodec.sip delete mode 100644 python/pyqt/sip/qt/qtextedit.sip delete mode 100644 python/pyqt/sip/qt/qtextstream.sip delete mode 100644 python/pyqt/sip/qt/qtextview.sip delete mode 100644 python/pyqt/sip/qt/qthread.sip delete mode 100644 python/pyqt/sip/qt/qtimer.sip delete mode 100644 python/pyqt/sip/qt/qtmod.sip delete mode 100644 python/pyqt/sip/qt/qtoolbar.sip delete mode 100644 python/pyqt/sip/qt/qtoolbox.sip delete mode 100644 python/pyqt/sip/qt/qtoolbutton.sip delete mode 100644 python/pyqt/sip/qt/qtooltip.sip delete mode 100644 python/pyqt/sip/qt/qtranslator.sip delete mode 100644 python/pyqt/sip/qt/qurl.sip delete mode 100644 python/pyqt/sip/qt/qurlinfo.sip delete mode 100644 python/pyqt/sip/qt/qurloperator.sip delete mode 100644 python/pyqt/sip/qt/quuid.sip delete mode 100644 python/pyqt/sip/qt/qvalidator.sip delete mode 100644 python/pyqt/sip/qt/qvaluelist.sip delete mode 100644 python/pyqt/sip/qt/qvariant.sip delete mode 100644 python/pyqt/sip/qt/qvbox.sip delete mode 100644 python/pyqt/sip/qt/qvbuttongroup.sip delete mode 100644 python/pyqt/sip/qt/qvgroupbox.sip delete mode 100644 python/pyqt/sip/qt/qwaitcondition.sip delete mode 100644 python/pyqt/sip/qt/qwhatsthis.sip delete mode 100644 python/pyqt/sip/qt/qwidget.sip delete mode 100644 python/pyqt/sip/qt/qwidgetlist.sip delete mode 100644 python/pyqt/sip/qt/qwidgetstack.sip delete mode 100644 python/pyqt/sip/qt/qwindow.sip delete mode 100644 python/pyqt/sip/qt/qwindowdefs.sip delete mode 100644 python/pyqt/sip/qt/qwindowdefs_qws.sip delete mode 100644 python/pyqt/sip/qt/qwindowdefs_x11.sip delete mode 100644 python/pyqt/sip/qt/qwindowsstyle.sip delete mode 100644 python/pyqt/sip/qt/qwindowsxpstyle.sip delete mode 100644 python/pyqt/sip/qt/qwizard.sip delete mode 100644 python/pyqt/sip/qt/qwmatrix.sip delete mode 100644 python/pyqt/sip/qt/qworkspace.sip delete mode 100644 python/pyqt/sip/qt/versions.sip delete mode 100644 python/pyqt/sip/qtaxcontainer/copying.sip delete mode 100644 python/pyqt/sip/qtaxcontainer/qaxbase.sip delete mode 100644 python/pyqt/sip/qtaxcontainer/qaxobject.sip delete mode 100644 python/pyqt/sip/qtaxcontainer/qaxwidget.sip delete mode 100644 python/pyqt/sip/qtaxcontainer/qtaxcontainermod.sip delete mode 100644 python/pyqt/sip/qtcanvas/copying.sip delete mode 100644 python/pyqt/sip/qtcanvas/qcanvas.sip delete mode 100644 python/pyqt/sip/qtcanvas/qtcanvasmod.sip delete mode 100644 python/pyqt/sip/qtext/copying.sip delete mode 100644 python/pyqt/sip/qtext/qextscintilla.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillaapis.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillabase.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillacommand.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillacommandset.sip delete mode 100644 python/pyqt/sip/qtext/qextscintilladocument.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexer.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexerbash.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexerbatch.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexercpp.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexercsharp.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexercss.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexerdiff.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexerhtml.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexeridl.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexerjava.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexerjavascript.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexerlua.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexermakefile.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexerperl.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexerpov.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexerproperties.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexerpython.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexerruby.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexersql.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillalexertex.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillamacro.sip delete mode 100644 python/pyqt/sip/qtext/qextscintillaprinter.sip delete mode 100644 python/pyqt/sip/qtext/qtextmod.sip delete mode 100644 python/pyqt/sip/qtgl/copying.sip delete mode 100644 python/pyqt/sip/qtgl/qgl.sip delete mode 100644 python/pyqt/sip/qtgl/qglcolormap.sip delete mode 100644 python/pyqt/sip/qtgl/qtglmod.sip delete mode 100644 python/pyqt/sip/qtnetwork/copying.sip delete mode 100644 python/pyqt/sip/qtnetwork/qdns.sip delete mode 100644 python/pyqt/sip/qtnetwork/qftp.sip delete mode 100644 python/pyqt/sip/qtnetwork/qhostaddress.sip delete mode 100644 python/pyqt/sip/qtnetwork/qhttp.sip delete mode 100644 python/pyqt/sip/qtnetwork/qlocalfs.sip delete mode 100644 python/pyqt/sip/qtnetwork/qnetwork.sip delete mode 100644 python/pyqt/sip/qtnetwork/qserversocket.sip delete mode 100644 python/pyqt/sip/qtnetwork/qsocket.sip delete mode 100644 python/pyqt/sip/qtnetwork/qsocketdevice.sip delete mode 100644 python/pyqt/sip/qtnetwork/qtnetworkmod.sip delete mode 100644 python/pyqt/sip/qtpe/copying.sip delete mode 100644 python/pyqt/sip/qtpe/qpeapplication.sip delete mode 100644 python/pyqt/sip/qtpe/qpeapplnk.sip delete mode 100644 python/pyqt/sip/qtpe/qpeconfig.sip delete mode 100644 python/pyqt/sip/qtpe/qpefilemanager.sip delete mode 100644 python/pyqt/sip/qtpe/qpefileselector.sip delete mode 100644 python/pyqt/sip/qtpe/qpefontdatabase.sip delete mode 100644 python/pyqt/sip/qtpe/qpeglobal.sip delete mode 100644 python/pyqt/sip/qtpe/qpemenubar.sip delete mode 100644 python/pyqt/sip/qtpe/qpemenubutton.sip delete mode 100644 python/pyqt/sip/qtpe/qpeqcopenvelope.sip delete mode 100644 python/pyqt/sip/qtpe/qpeqdawg.sip delete mode 100644 python/pyqt/sip/qtpe/qperesource.sip delete mode 100644 python/pyqt/sip/qtpe/qpetimestring.sip delete mode 100644 python/pyqt/sip/qtpe/qpetoolbar.sip delete mode 100644 python/pyqt/sip/qtpe/qtpemod.sip delete mode 100644 python/pyqt/sip/qtsql/copying.sip delete mode 100644 python/pyqt/sip/qtsql/qdatabrowser.sip delete mode 100644 python/pyqt/sip/qtsql/qdatatable.sip delete mode 100644 python/pyqt/sip/qtsql/qdataview.sip delete mode 100644 python/pyqt/sip/qtsql/qeditorfactory.sip delete mode 100644 python/pyqt/sip/qtsql/qsql.sip delete mode 100644 python/pyqt/sip/qtsql/qsqlcursor.sip delete mode 100644 python/pyqt/sip/qtsql/qsqldatabase.sip delete mode 100644 python/pyqt/sip/qtsql/qsqldriver.sip delete mode 100644 python/pyqt/sip/qtsql/qsqleditorfactory.sip delete mode 100644 python/pyqt/sip/qtsql/qsqlerror.sip delete mode 100644 python/pyqt/sip/qtsql/qsqlfield.sip delete mode 100644 python/pyqt/sip/qtsql/qsqlform.sip delete mode 100644 python/pyqt/sip/qtsql/qsqlindex.sip delete mode 100644 python/pyqt/sip/qtsql/qsqlpropertymap.sip delete mode 100644 python/pyqt/sip/qtsql/qsqlquery.sip delete mode 100644 python/pyqt/sip/qtsql/qsqlrecord.sip delete mode 100644 python/pyqt/sip/qtsql/qsqlresult.sip delete mode 100644 python/pyqt/sip/qtsql/qsqlselectcursor.sip delete mode 100644 python/pyqt/sip/qtsql/qtsqlmod.sip delete mode 100644 python/pyqt/sip/qttable/copying.sip delete mode 100644 python/pyqt/sip/qttable/qtable.sip delete mode 100644 python/pyqt/sip/qttable/qttablemod.sip delete mode 100644 python/pyqt/sip/qtui/copying.sip delete mode 100644 python/pyqt/sip/qtui/qtuimod.sip delete mode 100644 python/pyqt/sip/qtui/qwidgetfactory.sip delete mode 100644 python/pyqt/sip/qtxml/copying.sip delete mode 100644 python/pyqt/sip/qtxml/qdom.sip delete mode 100644 python/pyqt/sip/qtxml/qtxmlmod.sip delete mode 100644 python/sip/ChangeLog delete mode 100644 python/sip/LICENSE delete mode 100644 python/sip/NEWS delete mode 100644 python/sip/README delete mode 100644 python/sip/README.HP-UX delete mode 100644 python/sip/THANKS delete mode 100644 python/sip/TODO delete mode 100644 python/sip/configure.py delete mode 100644 python/sip/custom/custom.c delete mode 100644 python/sip/custom/customw.c delete mode 100644 python/sip/custom/mkcustom.py delete mode 100644 python/sip/doc/default.css delete mode 100644 python/sip/doc/sipref.html delete mode 100644 python/sip/doc/sipref.txt delete mode 100644 python/sip/sipdistutils.py delete mode 100644 python/sip/sipgen/export.c delete mode 100644 python/sip/sipgen/gencode.c delete mode 100644 python/sip/sipgen/heap.c delete mode 100644 python/sip/sipgen/lexer.c delete mode 100644 python/sip/sipgen/lexer.l delete mode 100644 python/sip/sipgen/main.c delete mode 100644 python/sip/sipgen/parser.c delete mode 100644 python/sip/sipgen/parser.h delete mode 100644 python/sip/sipgen/parser.y delete mode 100644 python/sip/sipgen/sip.h delete mode 100644 python/sip/sipgen/sipgen.sbf delete mode 100644 python/sip/sipgen/transform.c delete mode 100644 python/sip/siplib/bool.cpp delete mode 100644 python/sip/siplib/objmap.c delete mode 100644 python/sip/siplib/qtlib.c delete mode 100644 python/sip/siplib/sip.h delete mode 100644 python/sip/siplib/sipint.h delete mode 100644 python/sip/siplib/siplib.c delete mode 100644 python/sip/siplib/siplib.sbf delete mode 100644 python/sip/siplib/threads.c delete mode 100644 python/sip/siputils.py delete mode 100644 python/sip/specs/aix-g++ delete mode 100644 python/sip/specs/aix-g++-64 delete mode 100644 python/sip/specs/aix-xlc delete mode 100644 python/sip/specs/aix-xlc-64 delete mode 100644 python/sip/specs/bsdi-g++ delete mode 100644 python/sip/specs/cygwin-g++ delete mode 100644 python/sip/specs/darwin-g++ delete mode 100644 python/sip/specs/dgux-g++ delete mode 100644 python/sip/specs/freebsd-g++ delete mode 100644 python/sip/specs/freebsd-g++34 delete mode 100644 python/sip/specs/freebsd-g++40 delete mode 100644 python/sip/specs/freebsd-icc delete mode 100644 python/sip/specs/hpux-acc delete mode 100644 python/sip/specs/hpux-acc-64 delete mode 100644 python/sip/specs/hpux-acc-o64 delete mode 100644 python/sip/specs/hpux-cc delete mode 100644 python/sip/specs/hpux-g++ delete mode 100644 python/sip/specs/hpux-g++-64 delete mode 100644 python/sip/specs/hpuxi-acc delete mode 100644 python/sip/specs/hpuxi-acc-64 delete mode 100644 python/sip/specs/hurd-g++ delete mode 100644 python/sip/specs/irix-cc delete mode 100644 python/sip/specs/irix-cc-64 delete mode 100644 python/sip/specs/irix-cc-o32 delete mode 100644 python/sip/specs/irix-g++ delete mode 100644 python/sip/specs/irix-g++-64 delete mode 100644 python/sip/specs/linux-cxx delete mode 100644 python/sip/specs/linux-ecc-64 delete mode 100644 python/sip/specs/linux-g++ delete mode 100644 python/sip/specs/linux-g++-32 delete mode 100644 python/sip/specs/linux-g++-64 delete mode 100644 python/sip/specs/linux-icc delete mode 100644 python/sip/specs/linux-kcc delete mode 100644 python/sip/specs/linux-kylix delete mode 100644 python/sip/specs/linux-lsb delete mode 100644 python/sip/specs/linux-pgcc delete mode 100644 python/sip/specs/lynxos-g++ delete mode 100644 python/sip/specs/macx-g++ delete mode 100644 python/sip/specs/macx-mwerks delete mode 100644 python/sip/specs/macx-pbuilder delete mode 100644 python/sip/specs/macx-xcode delete mode 100644 python/sip/specs/macx-xlc delete mode 100644 python/sip/specs/netbsd-g++ delete mode 100644 python/sip/specs/openbsd-g++ delete mode 100644 python/sip/specs/qnx-g++ delete mode 100644 python/sip/specs/reliant-cds delete mode 100644 python/sip/specs/reliant-cds-64 delete mode 100644 python/sip/specs/sco-cc delete mode 100644 python/sip/specs/sco-g++ delete mode 100644 python/sip/specs/solaris-cc delete mode 100644 python/sip/specs/solaris-cc-64 delete mode 100644 python/sip/specs/solaris-g++ delete mode 100644 python/sip/specs/solaris-g++-64 delete mode 100644 python/sip/specs/tru64-cxx delete mode 100644 python/sip/specs/tru64-g++ delete mode 100644 python/sip/specs/unixware-cc delete mode 100644 python/sip/specs/unixware-g++ delete mode 100644 python/sip/specs/win32-borland delete mode 100644 python/sip/specs/win32-g++ delete mode 100644 python/sip/specs/win32-icc delete mode 100644 python/sip/specs/win32-msvc delete mode 100644 python/sip/specs/win32-msvc.net delete mode 100644 python/sip/specs/win32-msvc2005 delete mode 100644 python/sip/specs/win32-watcom diff --git a/python/Makefile.am b/python/Makefile.am deleted file mode 100644 index dfb84740..00000000 --- a/python/Makefile.am +++ /dev/null @@ -1,157 +0,0 @@ -# -# Simon Edwards -# - -site_packages = @PYTHONMODDIR@/site-packages -sip_dir = @datadir@/sip/ -qt_includes = @qt_includes@ -qt_dir = $(dir @qt_includes@) - -python_inc_dir = `echo @PYTHONINC@ | sed s/-I//` - -# qassistantclient.h -# qlist.h - -noinst_DATA = build_pyqt_pykde -EXTRA_DIST = sip pyqt pykde -DISTCLEANFILES = sipdone prepqt prepkde - -build_pyqt_pykde: prepkde - @(cd pyqt && $(MAKE)) - @(cd pykde && $(MAKE)) - -sipdone: - -mkdir sip - export builddir=`pwd` ; \ - cd $(srcdir)/sip ; \ - export QTDIR=${qt_dir} ; \ - export PYTHONPATH=$$builddir/sip:$$PYTHONPATH ; \ - @PYTHON@ configure.py -b @bindir@ -d ${site_packages} -e ${python_inc_dir} -v ${sip_dir} - @(cd sip ; $(MAKE)) - echo "" > sipdone - -prepqt: sipdone - @# A quick hack to make sure that the configure.py programs from PyQt/PyKDE both get the correct sip config. - -mkdir pyqt - export builddir=`pwd` ; \ - export abssrcdir=`cd $(srcdir) && pwd` ; \ - sed "s#sip_bin':.*\$$#sip_bin': '$$builddir/sip/sipgen/sip',#g;s#sip_inc_dir':.*\$$#sip_inc_dir': '$$abssrcdir/sip/siplib',#g" sip/sipconfig.py > pyqt/sipconfig.py - export builddir=`pwd` ; \ - export PYTHONPATH=$$builddir/pyqt:$$PYTHONPATH ; \ - cd $(srcdir)/pyqt ; \ - export QTDIR=${qt_dir} ; \ - echo "yes" | @PYTHON@ configure.py -i -b @bindir@ -d ${site_packages} -v ${sip_dir} - echo "" > prepqt - -prepkde: prepqt - -mkdir pykde - @# PyKDE's configure needs to pick up the correct pyqtconfig.py - export builddir=`pwd` ; \ - export abssrcdir=`cd $(srcdir) && pwd` ; \ - sed "s#sip_bin':.*\$$#sip_bin': '$$builddir/sip/sipgen/sip',#g;s#sip_inc_dir':.*\$$#sip_inc_dir': '$$abssrcdir/sip/siplib',#g" sip/sipconfig.py > pykde/sipconfig.py ; \ - sed "s#pyqt_sip_dir':.*\$$#pyqt_sip_dir': '$$abssrcdir/pyqt/sip',#g" pyqt/pyqtconfig.py > pykde/pyqtconfig.py - export builddir=`pwd` ; \ - export PYTHONPATH=$$builddir/pykde:$$PYTHONPATH ; \ - cd $(srcdir)/pykde ; \ - export QTDIR=${qt_dir} ; \ - @PYTHON@ configure.py -i -k @prefix@ -d ${site_packages} -v ${sip_dir} - echo "" > prepkde - -install: - @(cd sip && $(MAKE) install) - @(cd pyqt && $(MAKE) install) - @(cd pykde && $(MAKE) install) - -uninstall: - @(cd pykde && $(MAKE) uninstall) - @(cd pyqt && $(MAKE) uninstall) - @(cd sip && $(MAKE) uninstall) - -clean: - -(cd sip && $(MAKE) clean) - -(cd pyqt && $(MAKE) clean) - -(cd pykde && $(MAKE) clean) - -rm sipdone - -rm prepqt - -rm prepkde - -dist-hook: - -rm -rf `find $(distdir) -name CVS` - -rm -rf `find $(distdir) -name Makefile` - -rm -rf `find $(distdir) -name "*.pyc"` - -rm -rf `find $(distdir) -name "*.o"` - -rm -rf `find $(distdir) -name "*.so"` - -rm -rf $(distdir)/sipdone - -rm -rf $(distdir)/prepqt - -rm -rf $(distdir)/prepkde - -rm -rf $(distdir)/sip/sipgen/sip - -rm -rf $(distdir)/pyqt/cfgtest - -rm -rf $(distdir)/pyqt/mkfeatures - -rm -rf $(distdir)/pyqt/sipconfig.py - -rm -rf $(distdir)/pyqt/pyqtconfig.py - -rm -rf $(distdir)/pyqt/qt - -rm -rf $(distdir)/pyqt/qtcanvas - -rm -rf $(distdir)/pyqt/qtext - -rm -rf $(distdir)/pyqt/qtgl - -rm -rf $(distdir)/pyqt/qtnetwork - -rm -rf $(distdir)/pyqt/qtsql - -rm -rf $(distdir)/pyqt/qttable - -rm -rf $(distdir)/pyqt/qtui - -rm -rf $(distdir)/pyqt/qtxml - -rm -rf $(distdir)/pykde/sipconfig.py - -rm -rf $(distdir)/pykde/pyqtconfig.py - -rm -rf $(distdir)/pykde/pykdeconfig.py - -rm -rf $(distdir)/pykde/dcop - -rm -rf $(distdir)/pykde/kdecore - -rm -rf $(distdir)/pykde/kdefx - -rm -rf $(distdir)/pykde/kdeprint - -rm -rf $(distdir)/pykde/kdesu - -rm -rf $(distdir)/pykde/kdeui - -rm -rf $(distdir)/pykde/kfile - -rm -rf $(distdir)/pykde/khtml - -rm -rf $(distdir)/pykde/kio - -rm -rf $(distdir)/pykde/kmdi - -rm -rf $(distdir)/pykde/kparts - -rm -rf $(distdir)/pykde/kspell - -distclean-local: - -(cd sip && $(MAKE) distclean) - -(cd pyqt && $(MAKE) distclean) - -(cd pykde && $(MAKE) distclean) - -rm -rf sip/sipgen/sip - -rm -rf sip/sipconfig.py - -rm -rf pyqt/cfgtest - -rm -rf pyqt/cfgtest.cpp - -rm -rf pyqt/features - -rm -rf pyqt/mkfeatures - -rm -rf pyqt/mkfeatures.cpp - -rm -rf pyqt/sipconfig.py - -rm -rf pyqt/pyqtconfig.py - -rm -rf pyqt/qt - -rm -rf pyqt/qtcanvas - -rm -rf pyqt/qtext - -rm -rf pyqt/qtgl - -rm -rf pyqt/qtnetwork - -rm -rf pyqt/qtsql - -rm -rf pyqt/qttable - -rm -rf pyqt/qtui - -rm -rf pyqt/qtxml - -rm -rf pykde/sipconfig.py - -rm -rf pykde/pyqtconfig.py - -rm -rf pykde/pykdeconfig.py - -rm -rf pykde/dcop - -rm -rf pykde/kdecore - -rm -rf pykde/kdefx - -rm -rf pykde/kdeprint - -rm -rf pykde/kdesu - -rm -rf pykde/kdeui - -rm -rf pykde/kfile - -rm -rf pykde/khtml - -rm -rf pykde/kio - -rm -rf pykde/kmdi - -rm -rf pykde/kparts - -rm -rf pykde/kspell - -rm -rf pykde/sip/kspell/kspellmod.sip - -rm -rf pykde/sip/khtml/khtmlmod.sip - -rm -rf pykde/sip/kdecore/kdecoremod.sip - -rm -rf pykde/sip/kdeui/kdeuimod.sip diff --git a/python/README b/python/README new file mode 100644 index 00000000..4ec623cb --- /dev/null +++ b/python/README @@ -0,0 +1,14 @@ +This folder once contained a Trinity-specific copy of the following projects: +SIP +PyQt +PyKDE + +As SIP and PyQt are maintained upstream, a local copy for the Trinity project is not needed. Furthermore, the copy that once resided here was outdated and did not compile with the latest flex/bison/python sources. + +SIP may be downloaded from this URL: +http://www.riverbankcomputing.co.uk/software/sip/download + +PyQt may be downloaded from this URL: +http://www.riverbankcomputing.co.uk/software/pyqt/download3 + +PyKDE has been moved to /libraries/python-kde3, and can be compiled against the latest SIP and PyQt sources. diff --git a/python/README.copy b/python/README.copy deleted file mode 100644 index bb11f868..00000000 --- a/python/README.copy +++ /dev/null @@ -1,29 +0,0 @@ -This directory holds a copy of: - -* SIP 4.2.1, Python binding generator for C++ from Riverbank Computing. - http://www.riverbankcomputing.co.uk/sip/index.php - Published under basically the Python License. (=GPL compatible) - -* PyQt (PyQt-x11-gpl-3.14.1), Python bindings for Qt from Riverbank Computing. - http://www.riverbankcomputing.co.uk/pyqt/index.php - Published under the GPL. - -* PyKDE snapshot 20050628, Python bindings for KDE from Riverbank Computing. - http://www.riverbankcomputing.co.uk/pykde/index.php - Published under the GPL. - -This set of software has been patched to work 'out of the box' with this -version of KDE. - -If you want QScintilla support (needed by the Eric3 Python IDE), then be -sure to install QScintilla before building these bindings. QScintilla -can be downloaded from here: - -http://www.riverbankcomputing.co.uk/qscintilla/index.php - - -All things related to development with Qt/KDE using Python can be discussed -on the PyKDE mailing list: -http://mats.imk.fraunhofer.de/mailman/listinfo/pykde - -Maintainer: Simon Edwards \ No newline at end of file diff --git a/python/configure.in.in b/python/configure.in.in deleted file mode 100644 index a90293f2..00000000 --- a/python/configure.in.in +++ /dev/null @@ -1,11 +0,0 @@ - -KDE_CHECK_PYTHON(1.5) -# FIXME which version do we need? dcoppython requires 1.5 but we need 2.3 I think. - -if test -z "$LIBPYTHON" || test -z "$PYTHONINC"; then - DO_NOT_COMPILE="$DO_NOT_COMPILE python" -fi - -#AC_ARG_VAR([PYTHON]) -#AC_PATH_PROG([PYTHON],[python]) -#AC_OUTPUT(python/Makefile) diff --git a/python/mungepyqtconfig.sed b/python/mungepyqtconfig.sed deleted file mode 100644 index af4f2d00..00000000 --- a/python/mungepyqtconfig.sed +++ /dev/null @@ -1 +0,0 @@ -s/pyqt_sip_dir':.*$/pyqt_sip_dir': '..\/pyqt\/sip',/g diff --git a/python/mungesipconfig.sed b/python/mungesipconfig.sed deleted file mode 100644 index a76367e7..00000000 --- a/python/mungesipconfig.sed +++ /dev/null @@ -1,2 +0,0 @@ -s/sip_bin':.*$/sip_bin': '..\/sip\/sipgen\/sip',/g -s/sip_inc_dir':.*$/sip_inc_dir': '..\/..\/sip\/siplib',/g diff --git a/python/pykde/AUTHORS b/python/pykde/AUTHORS deleted file mode 100644 index 31812665..00000000 --- a/python/pykde/AUTHORS +++ /dev/null @@ -1,6 +0,0 @@ -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/python/pykde/BUGS b/python/pykde/BUGS deleted file mode 100644 index e69de29b..00000000 diff --git a/python/pykde/COPYING b/python/pykde/COPYING deleted file mode 100644 index 03c41e31..00000000 --- a/python/pykde/COPYING +++ /dev/null @@ -1,343 +0,0 @@ -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/python/pykde/ChangeLog b/python/pykde/ChangeLog deleted file mode 100644 index 3bd0311b..00000000 --- a/python/pykde/ChangeLog +++ /dev/null @@ -1,602 +0,0 @@ ------------------------------------------------------------------------- -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/python/pykde/ChangeLog.2001-4 b/python/pykde/ChangeLog.2001-4 deleted file mode 100644 index 7eb8682d..00000000 --- a/python/pykde/ChangeLog.2001-4 +++ /dev/null @@ -1,185 +0,0 @@ -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/python/pykde/Changelog b/python/pykde/Changelog deleted file mode 100644 index 4d56107b..00000000 --- a/python/pykde/Changelog +++ /dev/null @@ -1,779 +0,0 @@ ------------------------------------------------------------------------- -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/python/pykde/INSTALL b/python/pykde/INSTALL deleted file mode 100644 index 499b923a..00000000 --- a/python/pykde/INSTALL +++ /dev/null @@ -1,14 +0,0 @@ -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/python/pykde/NEWS b/python/pykde/NEWS deleted file mode 100644 index 998f8f08..00000000 --- a/python/pykde/NEWS +++ /dev/null @@ -1,3 +0,0 @@ -No news is good news - -Initial Release diff --git a/python/pykde/README b/python/pykde/README deleted file mode 100644 index 1a0c8f6e..00000000 --- a/python/pykde/README +++ /dev/null @@ -1,5 +0,0 @@ -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/python/pykde/THANKS b/python/pykde/THANKS deleted file mode 100644 index d52be618..00000000 --- a/python/pykde/THANKS +++ /dev/null @@ -1,109 +0,0 @@ -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/python/pykde/configure.py b/python/pykde/configure.py deleted file mode 100644 index b92ad181..00000000 --- a/python/pykde/configure.py +++ /dev/null @@ -1,943 +0,0 @@ -# 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") - -# Get the SIP configuration. -sipcfg = sipconfig.Configuration() -pyqtcfg = pyqtconfig.Configuration () - -# Initialise the globals. -pykde_version = 0x031000 -pykde_version_str = "3.16.0" -kde_version = None -kde_version_str = None -kde_version_sfx = None -kde_version_extra = None -kde_max_version = 0x030503 - -sip_min_v3_version = 0x040400 -sip_min_v4_version = 0x040400 -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 >= 0x040000: - if sipcfg.sip_version < sip_min_v4_version: - minv = sip_min_v4_version - else: - if sipcfg.sip_version < sip_min_v3_version: - minv = sip_min_v3_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 = 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 (os.path.join ("sip", mname, mname + "mod.sip.in")) - sipout = open (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 = 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 (): - kde_sip_flags.append ("-t") - kde_sip_flags.append ("ALL") - -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("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 ("sip", mod) - argv.append("-I") - argv.append(subdir) - - # SIP assumes POSIX style path separators. - argv.append(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, "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, "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": - 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 (os.path.join ("sip", mname)): - if s.endswith (".sip"): - 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) - - 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")) - makefile.extra_libs.append ("konsolepart") - - 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), ("contrib/kdepyuic", sipcfg.default_bin_dir)] - ).generate() - - if kde_version >= 0x030500: - f = open ("Makefile", "r") - buff = f.read () - f.close () - target = os.path.join (opt_kdelibdir, "kde3", "libkonsolepart.so") - symlink = os.path.join ( "$(DESTDIR)" + opt_kdelibdir, "libkonsolepart.so") - buff = buff.replace ("install:\n", "install:\n\tln -sf %s %s\n" % (target, symlink)) - f = open ("Makefile.new", "w") - f.write (buff) - f.close () - os.unlink ("Makefile") - os.rename ("Makefile.new", "Makefile") - -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", "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/python/pykde/contrib/kdepyuic b/python/pykde/contrib/kdepyuic deleted file mode 100755 index a0776f0e..00000000 --- a/python/pykde/contrib/kdepyuic +++ /dev/null @@ -1,150 +0,0 @@ -#!/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 = "" - - -# --------- support functions ---------- - -def getOptions (): - global filename - - opterr = 0 - shortOptions = "aip:" - longOptions = "noapp noimport pyuic=" - - 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 - """ - return FALSE - - filename = args[0] - return checkOptions (optlist) - -def checkOptions (optlist): - global addApp, addImport, pyuicPath - - 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] - - - -# --------- operations ---------- - -def addimport (n): - if addApp: - n.write ('from kdecore import KCmdLineArgs, KApplication\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' - - if addApp: - opts = ' -x -o ' - else: - 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/python/pykde/doc/classref/allclasses.html b/python/pykde/doc/classref/allclasses.html deleted file mode 100644 index f552687d..00000000 --- a/python/pykde/doc/classref/allclasses.html +++ /dev/null @@ -1,801 +0,0 @@ - - - - - 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/python/pykde/doc/classref/dcop/DCOPClient.html b/python/pykde/doc/classref/dcop/DCOPClient.html deleted file mode 100644 index c0fe7614..00000000 --- a/python/pykde/doc/classref/dcop/DCOPClient.html +++ /dev/null @@ -1,456 +0,0 @@ - - - - - class DCOPClient - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class DCOPClient


-
- - - - - -
Table of contents
Modules
dcop Classes
All Classes
-
- - - - - - - - - - -
Moduledcop
ClassDCOPClient
InheritsTQObject
-

methods

    -
  • DCOPClient () -
    -
    returns a DCOPClient instance

  • -
  • acceptCalls () -
    -
    returns (bool)

  • -
  • appId () -
    -
    returns (TQCString)

  • -
  • applicationRegistered (appId) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    appIdTQCString
    -

  • -
  • applicationRemoved (appId) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    appIdTQCString
    -

  • -
  • attach () -
    -
    returns (bool)

  • -
  • attachFailed (msg) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    msgTQString
    -

  • -
  • beginTransaction () -
    -
    returns (DCOPClientTransaction)

  • -
  • bindToApp () -
    -
    returns nothing

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

  • -
  • call (remApp, remObj, remFun, data, useEventLoop, timeout) -
    - -
    returns (bool) replyType (TQCString) replyData (TQByteArray)
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    remAppTQCString
    remObjTQCString
    remFunTQCString
    dataTQByteArray
    useEventLoopbool
    timeoutint
    -

  • -
  • call (remApp, remObj, remFun, data, useEventLoop = 0) -
    -
    returns (bool) replyType (TQCString) replyData (TQByteArray)
    - - - - - -
    ArgumentTypeDefault
    remAppTQCString
    remObjTQCString
    remFunTQCString
    dataTQByteArray
    useEventLoopbool0
    -

  • -
  • callAsync (remApp, remObj, remFun, data, callBackObj, callBackSlot) -
    - -
    returns (int)
    In versions KDE 3.3.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    remAppTQCString
    remObjTQCString
    remFunTQCString
    dataTQByteArray
    callBackObjTQObject
    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
    a0TQCString
    a1TQCString
    a2TQCString
    a3TQByteArray
    slotSLOT (Python callable)
    -

  • -
  • callBack (a0, a1, a2) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    a0int
    a1TQCString
    a2TQByteArray
    -

  • -
  • connectDCOPSignal (sender, senderObj, signal, receiverObj, slot, Volatile) -
    -
    returns (bool)
    - - - - - - -
    ArgumentTypeDefault
    senderTQCString
    senderObjTQCString
    signalTQCString
    receiverObjTQCString
    slotTQCString
    Volatilebool
    -

  • -
  • connectDCOPSignal (sender, signal, receiverObj, slot, Volatile) -
    -
    returns (bool)
    - - - - - -
    ArgumentTypeDefault
    senderTQCString
    signalTQCString
    receiverObjTQCString
    slotTQCString
    Volatilebool
    -

  • -
  • dcopServerFile (hostname = 0) -
    - -
    returns (TQCString)
    static
    - -
    ArgumentTypeDefault
    hostnameTQCString0
    -

  • -
  • dcopServerFileOld (hostname = 0) -
    - -
    returns (TQCString)
    static
    - -
    ArgumentTypeDefault
    hostnameTQCString0
    -

  • -
  • defaultObject () -
    -
    returns (TQCString)

  • -
  • detach () -
    -
    returns (bool)

  • -
  • disconnectDCOPSignal (sender, senderObj, signal, receiverObj, slot) -
    -
    returns (bool)
    - - - - - -
    ArgumentTypeDefault
    senderTQCString
    senderObjTQCString
    signalTQCString
    receiverObjTQCString
    slotTQCString
    -

  • -
  • disconnectDCOPSignal (sender, signal, receiverObj, slot) -
    -
    returns (bool)
    - - - - -
    ArgumentTypeDefault
    senderTQCString
    signalTQCString
    receiverObjTQCString
    slotTQCString
    -

  • -
  • emergencyClose () -
    - -
    returns nothing
    static

  • -
  • emitDCOPSignal (object, signal, data) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    objectTQCString
    signalTQCString
    dataTQByteArray
    -

  • -
  • emitDCOPSignal (signal, data) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    signalTQCString
    dataTQByteArray
    -

  • -
  • endTransaction (t, replyType, replyData) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    tDCOPClientTransaction
    replyTypeTQCString
    replyDataTQByteArray
    -

  • -
  • find (app, obj, fun, data) -
    -
    returns (bool) replyType (TQCString) replyData (TQByteArray)
    - - - - -
    ArgumentTypeDefault
    appTQCString
    objTQCString
    funTQCString
    dataTQByteArray
    -

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

  • -
  • findObject (remApp, remObj, remFun, data, useEventLoop, timeout) -
    - -
    returns (bool) foundApp (TQCString) foundObj (TQCString)
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    remAppTQCString
    remObjTQCString
    remFunTQCString
    dataTQByteArray
    useEventLoopbool
    timeoutint
    -

  • -
  • findObject (remApp, remObj, remFun, data, useEventLoop = 0) -
    -
    returns (bool) foundApp (TQCString) foundObj (TQCString)
    - - - - - -
    ArgumentTypeDefault
    remAppTQCString
    remObjTQCString
    remFunTQCString
    dataTQByteArray
    useEventLoopbool0
    -

  • -
  • handleAsyncReply (replyStruct) -
    Not Implemented
    -

  • -
  • iceauthPath () -
    - - -
    returns (TQCString)
    In versions KDE 3.2.0 and above only
    static

  • -
  • isApplicationRegistered (remApp) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    remAppTQCString
    -

  • -
  • 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 (TQCString)
    static
    - -
    ArgumentTypeDefault
    funTQCString
    -

  • -
  • postMortemFunction () -
    - -
    returns (char)
    static

  • -
  • postMortemObject () -
    - -
    returns (char)
    static

  • -
  • postMortemSender () -
    - -
    returns (char)
    static

  • -
  • process (fun, data, replyType, replyData) -
    -
    returns (bool)
    - - - - -
    ArgumentTypeDefault
    funTQCString
    dataTQByteArray
    replyTypeTQCString
    replyDataTQByteArray
    -

  • -
  • 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 (TQCString) replyData (TQByteArray)
    - - - - -
    ArgumentTypeDefault
    appTQCString
    objTQCString
    funTQCString
    dataTQByteArray
    -

  • -
  • registerAs (appId, addPID = 1) -
    -
    returns (TQCString)
    - - -
    ArgumentTypeDefault
    appIdTQCString
    addPIDbool1
    -

  • -
  • registeredApplications () -
    -
    returns (QCStringList)

  • -
  • remoteFunctions (remApp, remObj) -
    -
    returns (QCStringList) ok (bool)
    - - -
    ArgumentTypeDefault
    remAppTQCString
    remObjTQCString
    -

  • -
  • remoteInterfaces (remApp, remObj) -
    -
    returns (QCStringList) ok (bool)
    - - -
    ArgumentTypeDefault
    remAppTQCString
    remObjTQCString
    -

  • -
  • remoteObjects (remApp) -
    -
    returns (QCStringList) ok (bool)
    - -
    ArgumentTypeDefault
    remAppTQCString
    -

  • -
  • resume () -
    -
    returns nothing

  • -
  • send (remApp, remObj, remFun, data) -
    -
    returns (bool)
    - - - - -
    ArgumentTypeDefault
    remAppTQCString
    remObjTQCString
    remFunTQCString
    dataTQByteArray
    -

  • -
  • send (remApp, remObj, remFun, data) -
    -
    returns (bool)
    - - - - -
    ArgumentTypeDefault
    remAppTQCString
    remObjTQCString
    remFunTQCString
    dataTQString
    -

  • -
  • senderId () -
    -
    returns (TQCString)

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

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

  • -
  • setDefaultObject (objId) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    objIdTQCString
    -

  • -
  • 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
    addrTQCString
    -

  • -
  • socket () -
    -
    returns (int)

  • -
  • suspend () -
    -
    returns nothing

  • -
  • transactionId () -
    -
    returns (Q_INT32)

  • -
- - - diff --git a/python/pykde/doc/classref/dcop/DCOPObject.html b/python/pykde/doc/classref/dcop/DCOPObject.html deleted file mode 100644 index 2fc0dfdc..00000000 --- a/python/pykde/doc/classref/dcop/DCOPObject.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - 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
    objTQObject
    -

  • -
  • DCOPObject (objId) -
    -
    returns a DCOPObject instance
    - -
    ArgumentTypeDefault
    objIdTQCString
    -

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

  • -
  • connectDCOPSignal (sender, senderObj, signal, slot, Volatile) -
    -
    returns (bool)
    - - - - - -
    ArgumentTypeDefault
    senderTQCString
    senderObjTQCString
    signalTQCString
    slotTQCString
    Volatilebool
    -

  • -
  • disconnectDCOPSignal (sender, senderObj, signal, slot) -
    -
    returns (bool)
    - - - - -
    ArgumentTypeDefault
    senderTQCString
    senderObjTQCString
    signalTQCString
    slotTQCString
    -

  • -
  • emitDCOPSignal (signal, data) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    signalTQCString
    dataTQByteArray
    -

  • -
  • find (objId) -
    - -
    returns (DCOPObject)
    static
    - -
    ArgumentTypeDefault
    objIdTQCString
    -

  • -
  • functions () -
    -
    returns (QCStringList)

  • -
  • functionsDynamic () -
    -
    returns (QCStringList)

  • -
  • hasObject (objId) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    objIdTQCString
    -

  • -
  • interfaces () -
    -
    returns (QCStringList)

  • -
  • interfacesDynamic () -
    -
    returns (QCStringList)

  • -
  • match (partialId) -
    - -
    returns (TQPtrList)
    static
    - -
    ArgumentTypeDefault
    partialIdTQCString
    -

  • -
  • objId () -
    -
    returns (TQCString)

  • -
  • objectName (obj) -
    - -
    returns (TQCString)
    static
    - -
    ArgumentTypeDefault
    objTQObject
    -

  • -
  • process (fun, data, replyType, replyData) -
    -
    returns (bool)
    - - - - -
    ArgumentTypeDefault
    funTQCString
    dataTQByteArray
    replyTypeTQCString
    replyDataTQByteArray
    -

  • -
  • processDynamic (fun, data, replyType, replyData) -
    -
    returns (bool)
    - - - - -
    ArgumentTypeDefault
    funTQCString
    dataTQByteArray
    replyTypeTQCString
    replyDataTQByteArray
    -

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

  • -
  • setObjId (objId) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    objIdTQCString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/dcop/DCOPObjectProxy.html b/python/pykde/doc/classref/dcop/DCOPObjectProxy.html deleted file mode 100644 index 383111d1..00000000 --- a/python/pykde/doc/classref/dcop/DCOPObjectProxy.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - 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
    objTQCString
    funTQCString
    dataTQByteArray
    replyTypeTQCString
    replyDataTQByteArray
    -

  • -
- - - diff --git a/python/pykde/doc/classref/dcop/DCOPRef.html b/python/pykde/doc/classref/dcop/DCOPRef.html deleted file mode 100644 index f5e35ba9..00000000 --- a/python/pykde/doc/classref/dcop/DCOPRef.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - 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
    appTQCString
    objTQCString
    -

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

  • -
  • DCOPRef (app, obj, type) -
    -
    returns a DCOPRef instance
    - - - -
    ArgumentTypeDefault
    appTQCString
    objTQCString
    typeTQCString
    -

  • -
  • app () -
    -
    returns (TQCString)

  • -
  • call (fun) -
    - -
    returns (DCOPReply)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    funTQCString
    -

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

  • -
  • clear () -
    -
    returns nothing

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

  • -
  • isNull () -
    -
    returns (bool)

  • -
  • obj () -
    - -
    returns (TQCString)
    In versions KDE 3.1.0 and above only

  • -
  • object () -
    -
    returns (TQCString)

  • -
  • send (fun) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    funTQCString
    -

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

  • -
  • setRef (app, obj) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    appTQCString
    objTQCString
    -

  • -
  • setRef (app, obj, type) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    appTQCString
    objTQCString
    typeTQCString
    -

  • -
  • type () -
    -
    returns (TQCString)

  • -
- - - diff --git a/python/pykde/doc/classref/dcop/DCOPReply.html b/python/pykde/doc/classref/dcop/DCOPReply.html deleted file mode 100644 index 975d37bf..00000000 --- a/python/pykde/doc/classref/dcop/DCOPReply.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - 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
    dataTQByteArray
    typeTQCString
- - - diff --git a/python/pykde/doc/classref/dcop/DCOPStub.html b/python/pykde/doc/classref/dcop/DCOPStub.html deleted file mode 100644 index 1627f9ee..00000000 --- a/python/pykde/doc/classref/dcop/DCOPStub.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - 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
    appTQCString
    objTQCString
    -

  • -
  • DCOPStub (client, app, obj) -
    -
    returns a DCOPStub instance
    - - - -
    ArgumentTypeDefault
    clientDCOPClient
    appTQCString
    objTQCString
    -

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

  • -
  • DCOPStub (a0) -
    Not Implemented
    -

  • -
  • app () -
    -
    returns (TQCString)

  • -
  • callFailed () -
    -
    returns nothing

  • -
  • dcopClient () -
    -
    returns (DCOPClient)

  • -
  • obj () -
    -
    returns (TQCString)

  • -
  • ok () -
    -
    returns (bool)

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

  • -
  • status () -
    -
    returns (Status)

  • -
- - - diff --git a/python/pykde/doc/classref/dcop/index.html b/python/pykde/doc/classref/dcop/index.html deleted file mode 100644 index 65b4823c..00000000 --- a/python/pykde/doc/classref/dcop/index.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - 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/python/pykde/doc/classref/glossary.html b/python/pykde/doc/classref/glossary.html deleted file mode 100644 index b4cec3bc..00000000 --- a/python/pykde/doc/classref/glossary.html +++ /dev/null @@ -1,40 +0,0 @@ -

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 TQObject '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/python/pykde/doc/classref/index.html b/python/pykde/doc/classref/index.html deleted file mode 100644 index a73c6acb..00000000 --- a/python/pykde/doc/classref/index.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kabc/KABC.Address.html b/python/pykde/doc/classref/kabc/KABC.Address.html deleted file mode 100644 index 3f2b5b24..00000000 --- a/python/pykde/doc/classref/kabc/KABC.Address.html +++ /dev/null @@ -1,249 +0,0 @@ - - - - - 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 (TQString)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    ISOnameTQString
    -

  • -
  • clear () -
    -
    returns nothing

  • -
  • country () -
    -
    returns (TQString)

  • -
  • countryLabel () -
    - - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    static

  • -
  • countryToISO (cname) -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    cnameTQString
    -

  • -
  • dump () -
    -
    returns nothing

  • -
  • extended () -
    -
    returns (TQString)

  • -
  • extendedLabel () -
    - - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    static

  • -
  • formattedAddress (realName = TQString .null, orgaName = TQString .null) -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    realNameTQStringTQString .null
    orgaNameTQStringTQString .null
    -

  • -
  • id () -
    -
    returns (TQString)

  • -
  • isEmpty () -
    -
    returns (bool)

  • -
  • label () -
    -
    returns (TQString)

  • -
  • labelLabel () -
    - - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    static

  • -
  • locality () -
    -
    returns (TQString)

  • -
  • localityLabel () -
    - - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    static

  • -
  • postOfficeBox () -
    -
    returns (TQString)

  • -
  • postOfficeBoxLabel () -
    - - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    static

  • -
  • postalCode () -
    -
    returns (TQString)

  • -
  • postalCodeLabel () -
    - - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    static

  • -
  • region () -
    -
    returns (TQString)

  • -
  • regionLabel () -
    - - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    static

  • -
  • setCountry (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setExtended (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setId (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setLabel (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setLocality (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setPostOfficeBox (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setPostalCode (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setRegion (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setStreet (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

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

  • -
  • street () -
    -
    returns (TQString)

  • -
  • streetLabel () -
    - - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    static

  • -
  • type () -
    -
    returns (int)

  • -
  • typeLabel () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • typeLabel (type) -
    - - -
    returns (TQString)
    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/python/pykde/doc/classref/kabc/KABC.AddressBook.html b/python/pykde/doc/classref/kabc/KABC.AddressBook.html deleted file mode 100644 index a5e79330..00000000 --- a/python/pykde/doc/classref/kabc/KABC.AddressBook.html +++ /dev/null @@ -1,281 +0,0 @@ - - - - - class KABC.AddressBook - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KABC.AddressBook


-
- - - - - -
Table of contents
Modules
kabc Classes
All Classes
-
- - - - - - - - - - -
Modulekabc
ClassKABC.AddressBook
InheritsTQObject
-

methods

    -
  • AddressBook () -
    -
    returns a AddressBook instance

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

  • -
  • addCustomField (label, category = KABC .Field .All, key = TQString .null, app = TQString .null) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - - - - -
    ArgumentTypeDefault
    labelTQString
    categoryintKABC .Field .All
    keyTQStringTQString .null
    appTQStringTQString .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
    msgTQString
    -

  • -
  • 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
    categoryTQString
    -

  • -
  • findByEmail (email) -
    -
    returns (KABC.Addressee.List)
    - -
    ArgumentTypeDefault
    emailTQString
    -

  • -
  • findByName (name) -
    -
    returns (KABC.Addressee.List)
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • findByUid (uid) -
    -
    returns (KABC.Addressee)
    - -
    ArgumentTypeDefault
    uidTQString
    -

  • -
  • identifier () -
    -
    returns (TQString)

  • -
  • 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
    a1TQString
    -

  • -
  • 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
    a1TQString
    -

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

  • -
  • resources () -
    - -
    returns (TQPtrList)
    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/python/pykde/doc/classref/kabc/KABC.AddressLineEdit.html b/python/pykde/doc/classref/kabc/KABC.AddressLineEdit.html deleted file mode 100644 index 520bfdac..00000000 --- a/python/pykde/doc/classref/kabc/KABC.AddressLineEdit.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - 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
    parentTQWidget
    useCompletionbool1
    namechar0
    -

  • -
  • addAddress (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • 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
    eTQDropEvent
    -

  • -
  • 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
    tTQString
    -

  • -
  • keyPressEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0TQKeyEvent
    -

  • -
  • 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
    eTQMouseEvent
    -

  • -
  • 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
    a0TQFont
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.AddresseeDialog.html b/python/pykde/doc/classref/kabc/KABC.AddresseeDialog.html deleted file mode 100644 index f8984a8f..00000000 --- a/python/pykde/doc/classref/kabc/KABC.AddresseeDialog.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - 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
    parentTQWidget0
    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
    parentTQWidget
    -

  • -
  • getAddressees (parent) -
    - -
    returns (KABC.Addressee.List)
    static
    - -
    ArgumentTypeDefault
    parentTQWidget
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.AddresseeItem.html b/python/pykde/doc/classref/kabc/KABC.AddresseeItem.html deleted file mode 100644 index e3fc80a6..00000000 --- a/python/pykde/doc/classref/kabc/KABC.AddresseeItem.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - class KABC.AddresseeItem - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KABC.AddresseeItem


-
- - - - - -
Table of contents
Modules
kabc Classes
All Classes
-
- - - - - - - - - - -
Modulekabc
ClassKABC.AddresseeItem
InheritsTQListViewItem
-

enums

    -
  • columns = {Name, Email -}
-

methods

    -
  • AddresseeItem (parent, addressee) -
    -
    returns a AddresseeItem instance
    - - -
    ArgumentTypeDefault
    parentTQListView
    addresseeKABC.Addressee
    -

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

  • -
  • key (column, ascending) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    columnint
    ascendingbool
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.Agent.html b/python/pykde/doc/classref/kabc/KABC.Agent.html deleted file mode 100644 index 3cdce9c6..00000000 --- a/python/pykde/doc/classref/kabc/KABC.Agent.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - 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
    urlTQString
    -

  • -
  • 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 (TQString)
    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
    urlTQString
    -

  • -
  • url () -
    - -
    returns (TQString)
    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/python/pykde/doc/classref/kabc/KABC.ConsoleErrorHandler.html b/python/pykde/doc/classref/kabc/KABC.ConsoleErrorHandler.html deleted file mode 100644 index 1e75d8f4..00000000 --- a/python/pykde/doc/classref/kabc/KABC.ConsoleErrorHandler.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - 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
    msgTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.DistributionList.Entry.html b/python/pykde/doc/classref/kabc/KABC.DistributionList.Entry.html deleted file mode 100644 index b466aa82..00000000 --- a/python/pykde/doc/classref/kabc/KABC.DistributionList.Entry.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 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
    _emailTQString
    -

  • -
-

variables

  • -variables - - -
    VariableType
    addresseeKABC::Addressee
    emailTQString
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.DistributionList.html b/python/pykde/doc/classref/kabc/KABC.DistributionList.html deleted file mode 100644 index 8cb57d4f..00000000 --- a/python/pykde/doc/classref/kabc/KABC.DistributionList.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - 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
    nameTQString
    -

  • -
  • emails () -
    -
    returns (TQStringList)

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

  • -
  • insertEntry (a0, email = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KABC.Addressee
    emailTQStringTQString .null
    -

  • -
  • name () -
    -
    returns (TQString)

  • -
  • removeEntry (a0, email = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KABC.Addressee
    emailTQStringTQString .null
    -

  • -
  • setName (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.DistributionListDialog.html b/python/pykde/doc/classref/kabc/KABC.DistributionListDialog.html deleted file mode 100644 index 53ed0b85..00000000 --- a/python/pykde/doc/classref/kabc/KABC.DistributionListDialog.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - 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
    parentTQWidget
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.DistributionListEditorWidget.html b/python/pykde/doc/classref/kabc/KABC.DistributionListEditorWidget.html deleted file mode 100644 index 81cc67f4..00000000 --- a/python/pykde/doc/classref/kabc/KABC.DistributionListEditorWidget.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - class KABC.DistributionListEditorWidget - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KABC.DistributionListEditorWidget


-
- - - - - -
Table of contents
Modules
kabc Classes
All Classes
-
- - - - - - - - - - -
Modulekabc
ClassKABC.DistributionListEditorWidget
InheritsTQWidget
-

methods

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

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.DistributionListManager.html b/python/pykde/doc/classref/kabc/KABC.DistributionListManager.html deleted file mode 100644 index c610249f..00000000 --- a/python/pykde/doc/classref/kabc/KABC.DistributionListManager.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - 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
    nameTQString
    -

  • -
  • listNames () -
    -
    returns (TQStringList)

  • -
  • load () -
    -
    returns (bool)

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

  • -
  • save () -
    -
    returns (bool)

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.DistributionListWatcher.html b/python/pykde/doc/classref/kabc/KABC.DistributionListWatcher.html deleted file mode 100644 index b1ef6812..00000000 --- a/python/pykde/doc/classref/kabc/KABC.DistributionListWatcher.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - class KABC.DistributionListWatcher - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KABC.DistributionListWatcher


-
- - - - - -
Table of contents
Modules
kabc Classes
All Classes
-
- - - - - - - - - - -
Modulekabc
ClassKABC.DistributionListWatcher
InheritsTQObject
-

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/python/pykde/doc/classref/kabc/KABC.EmailSelectDialog.html b/python/pykde/doc/classref/kabc/KABC.EmailSelectDialog.html deleted file mode 100644 index 0948a831..00000000 --- a/python/pykde/doc/classref/kabc/KABC.EmailSelectDialog.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - 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
    emailsTQStringList
    currentTQString
    parentTQWidget
    -

  • -
  • getEmail (emails, current, parent) -
    - -
    returns (TQString)
    static
    - - - -
    ArgumentTypeDefault
    emailsTQStringList
    currentTQString
    parentTQWidget
    -

  • -
  • selected () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.EmailSelector.html b/python/pykde/doc/classref/kabc/KABC.EmailSelector.html deleted file mode 100644 index 80255184..00000000 --- a/python/pykde/doc/classref/kabc/KABC.EmailSelector.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - 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
    emailsTQStringList
    currentTQString
    parentTQWidget
    -

  • -
  • getEmail (emails, current, parent) -
    - - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    emailsTQStringList
    currentTQString
    parentTQWidget
    -

  • -
  • selected () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.ErrorHandler.html b/python/pykde/doc/classref/kabc/KABC.ErrorHandler.html deleted file mode 100644 index 3edea681..00000000 --- a/python/pykde/doc/classref/kabc/KABC.ErrorHandler.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - 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
    msgTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.Field.html b/python/pykde/doc/classref/kabc/KABC.Field.html deleted file mode 100644 index f5fe9cf7..00000000 --- a/python/pykde/doc/classref/kabc/KABC.Field.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - 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 (TQString)
    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
    labelTQString
    categoryint
    keyTQString
    appTQString
    -

  • -
  • 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 (TQString)
    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
    identifierTQString
    -

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

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

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

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

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

  • -
  • value (a0) -
    - -
    returns (TQString)
    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/python/pykde/doc/classref/kabc/KABC.FieldSortMode.html b/python/pykde/doc/classref/kabc/KABC.FieldSortMode.html deleted file mode 100644 index 7278a4cb..00000000 --- a/python/pykde/doc/classref/kabc/KABC.FieldSortMode.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kabc/KABC.Format.html b/python/pykde/doc/classref/kabc/KABC.Format.html deleted file mode 100644 index b8ae4afc..00000000 --- a/python/pykde/doc/classref/kabc/KABC.Format.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - 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
    fileNameTQString
    -

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

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.FormatFactory.html b/python/pykde/doc/classref/kabc/KABC.FormatFactory.html deleted file mode 100644 index d0d9e6c1..00000000 --- a/python/pykde/doc/classref/kabc/KABC.FormatFactory.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - 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
    typeTQString
    -

  • -
  • formats () -
    - -
    returns (TQStringList)
    In versions KDE 3.1.0 and above only

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

  • -
  • 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/python/pykde/doc/classref/kabc/KABC.FormatInfo.html b/python/pykde/doc/classref/kabc/KABC.FormatInfo.html deleted file mode 100644 index 9bc9a209..00000000 --- a/python/pykde/doc/classref/kabc/KABC.FormatInfo.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 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
    descriptionLabelTQString
    libraryTQString
    nameLabelTQString
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.FormatPlugin.html b/python/pykde/doc/classref/kabc/KABC.FormatPlugin.html deleted file mode 100644 index 850f1b13..00000000 --- a/python/pykde/doc/classref/kabc/KABC.FormatPlugin.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - - 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
    fileTQFile
    -

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

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

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

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

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.GUIErrorHandler.html b/python/pykde/doc/classref/kabc/KABC.GUIErrorHandler.html deleted file mode 100644 index 34996198..00000000 --- a/python/pykde/doc/classref/kabc/KABC.GUIErrorHandler.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - 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
    msgTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.Geo.html b/python/pykde/doc/classref/kabc/KABC.Geo.html deleted file mode 100644 index 3e77a965..00000000 --- a/python/pykde/doc/classref/kabc/KABC.Geo.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - 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 (TQString)

  • -
  • 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/python/pykde/doc/classref/kabc/KABC.GuiErrorHandler.html b/python/pykde/doc/classref/kabc/KABC.GuiErrorHandler.html deleted file mode 100644 index 695cabcf..00000000 --- a/python/pykde/doc/classref/kabc/KABC.GuiErrorHandler.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - 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
    parentTQWidget
    -

  • -
  • error (msg) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    msgTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.Key.html b/python/pykde/doc/classref/kabc/KABC.Key.html deleted file mode 100644 index 49c400ea..00000000 --- a/python/pykde/doc/classref/kabc/KABC.Key.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - 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 = TQString .null, type = PGP) -
    - -
    returns a Key instance
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    textTQStringTQString .null
    typeintPGP
    -

  • -
  • binaryData () -
    - -
    returns (TQByteArray)
    In versions KDE 3.1.0 and above only

  • -
  • customTypeString () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • id () -
    - -
    returns (TQString)
    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
    binaryTQByteArray
    -

  • -
  • setCustomTypeString (custom) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    customTQString
    -

  • -
  • setId (id) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    idTQString
    -

  • -
  • setTextData (text) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    textTQString
    -

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

  • -
  • textData () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

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

  • -
  • typeLabel (type) -
    - - -
    returns (TQString)
    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/python/pykde/doc/classref/kabc/KABC.LDAPUrl.Extension.html b/python/pykde/doc/classref/kabc/KABC.LDAPUrl.Extension.html deleted file mode 100644 index 2b3c2a95..00000000 --- a/python/pykde/doc/classref/kabc/KABC.LDAPUrl.Extension.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - 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
    valueTQString
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.LDAPUrl.html b/python/pykde/doc/classref/kabc/KABC.LDAPUrl.html deleted file mode 100644 index 33fbcec6..00000000 --- a/python/pykde/doc/classref/kabc/KABC.LDAPUrl.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - 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 (TQStringList)
    In versions KDE 3.3.0 and above only

  • -
  • dn () -
    - -
    returns (TQString)
    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
    keyTQString
    -

  • -
  • extension (key) -
    - -
    returns (TQString) critical (bool)
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • filter () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • hasExtension (key) -
    - -
    returns (bool)
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • 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
    keyTQString
    -

  • -
  • 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
    attributesTQStringList
    -

  • -
  • setDn (dn) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    dnTQString
    -

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

  • -
  • setExtension (key, value, critical = 0) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    keyTQString
    valueTQString
    criticalbool0
    -

  • -
  • setFilter (filter) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    filterTQString
    -

  • -
  • 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/python/pykde/doc/classref/kabc/KABC.LDIF.html b/python/pykde/doc/classref/kabc/KABC.LDIF.html deleted file mode 100644 index a92a202f..00000000 --- a/python/pykde/doc/classref/kabc/KABC.LDIF.html +++ /dev/null @@ -1,174 +0,0 @@ - - - - - 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 (TQCString)
    In versions KDE 3.3.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    fieldnameTQString
    valueTQByteArray
    linelenuint0
    urlbool0
    -

  • -
  • assembleLine (fieldname, value, linelen = 0, url = 0) -
    - - -
    returns (TQCString)
    In versions KDE 3.3.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    fieldnameTQString
    valueTQCString
    linelenuint0
    urlbool0
    -

  • -
  • assembleLine (fieldname, value, linelen = 0, url = 0) -
    - - -
    returns (TQCString)
    In versions KDE 3.3.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    fieldnameTQString
    valueTQString
    linelenuint0
    urlbool0
    -

  • -
  • attr () -
    - -
    returns (TQString)
    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 (TQString)
    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 (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • newSuperior () -
    - -
    returns (TQString)
    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 (TQString)
    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
    ldifTQByteArray
    -

  • -
  • splitControl (line, oid, value) -
    - - -
    returns (bool) critical (bool)
    In versions KDE 3.3.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    lineTQCString
    oidTQString
    valueTQByteArray
    -

  • -
  • splitLine (line, fieldname, value) -
    - - -
    returns (bool)
    In versions KDE 3.3.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    lineTQCString
    fieldnameTQString
    valueTQByteArray
    -

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

  • -
  • val () -
    - -
    returns (TQByteArray)
    In versions KDE 3.3.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.LDIFConverter.html b/python/pykde/doc/classref/kabc/KABC.LDIFConverter.html deleted file mode 100644 index 50b86b91..00000000 --- a/python/pykde/doc/classref/kabc/KABC.LDIFConverter.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - 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 = TQDateTime .currentDateTime ()) -
    - -
    returns (bool)
    In versions less than KDE 3.5.2 only
    - - - -
    ArgumentTypeDefault
    a0TQString
    a1KABC.Addressee.List
    a2TQDateTimeTQDateTime .currentDateTime ()
    -

  • -
  • LDIFToAddressee (a0, a1, a2 = TQDateTime .currentDateTime ()) -
    - -
    returns (bool)
    In versions less than KDE 3.5.2 only
    - - - -
    ArgumentTypeDefault
    a0TQString
    a1KABC.Addressee.List
    a2TQDateTimeTQDateTime .currentDateTime ()
    -

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

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

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

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

  • -
  • makeLDIFfieldString (field, value, allowEncode = 1) -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    fieldTQString
    valueTQString
    allowEncodebool1
    -

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

  • -
  • splitLine (line, fieldname, value) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    lineTQString
    fieldnameTQString
    valueTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.LdapClient.html b/python/pykde/doc/classref/kabc/KABC.LdapClient.html deleted file mode 100644 index 13377e38..00000000 --- a/python/pykde/doc/classref/kabc/KABC.LdapClient.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - class KABC.LdapClient - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KABC.LdapClient


-
- - - - - -
Table of contents
Modules
kabc Classes
All Classes
-
- - - - - - - - - - -
Modulekabc
ClassKABC.LdapClient
InheritsTQObject
-

methods

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

  • -
  • attrs () -
    - -
    returns (TQStringList)
    In versions KDE 3.1.0 and above only

  • -
  • base () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • bindDN () -
    - -
    returns (TQString)
    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
    a0TQString
    -

  • -
  • host () -
    - -
    returns (TQString)
    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
    dataTQByteArray
    -

  • -
  • port () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • pwdBindDN () -
    - -
    returns (TQString)
    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
    attrsTQStringList
    -

  • -
  • setBase (base) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    baseTQString
    -

  • -
  • setBindDN (bindDN) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    bindDNTQString
    -

  • -
  • setHost (host) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    hostTQString
    -

  • -
  • setPort (port) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    portTQString
    -

  • -
  • setPwdBindDN (pwdBindDN) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    pwdBindDNTQString
    -

  • -
  • setScope (scope) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    scopeTQString
    -

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

  • -
  • 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
    infoTQString
    -

  • -
  • 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
    filterTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.LdapConfigWidget.html b/python/pykde/doc/classref/kabc/KABC.LdapConfigWidget.html deleted file mode 100644 index 1094dd13..00000000 --- a/python/pykde/doc/classref/kabc/KABC.LdapConfigWidget.html +++ /dev/null @@ -1,276 +0,0 @@ - - - - - class KABC.LdapConfigWidget - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KABC.LdapConfigWidget


-
- - - - - -
Table of contents
Modules
kabc Classes
All Classes
-
- - - - - - - - - - -
Modulekabc
ClassKABC.LdapConfigWidget
InheritsTQWidget
-

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
    parentTQWidget0
    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
    parentTQWidget0
    namechar0
    flWFlags0
    -

  • -
  • bindDN () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • dn () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • filter () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

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

  • -
  • host () -
    - -
    returns (TQString)
    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 (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • password () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

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

  • -
  • realm () -
    - -
    returns (TQString)
    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
    binddnTQString
    -

  • -
  • setDn (dn) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    dnTQString
    -

  • -
  • setFilter (filter) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    filterTQString
    -

  • -
  • 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
    hostTQString
    -

  • -
  • setMech (mech) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    mechTQString
    -

  • -
  • setPassword (password) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    passwordTQString
    -

  • -
  • 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
    realmTQString
    -

  • -
  • 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
    userTQString
    -

  • -
  • 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 (TQString)
    In versions KDE 3.3.0 and above only

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

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.LdapObject.html b/python/pykde/doc/classref/kabc/KABC.LdapObject.html deleted file mode 100644 index 780cb57a..00000000 --- a/python/pykde/doc/classref/kabc/KABC.LdapObject.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - 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
    _dnTQString
    _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
    a0TQString
    -

  • -
  • 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 (TQString)
    In versions KDE 3.1.0 and above only

  • -
-

variables

  • -variables - - - -
    VariableType
    attrsLdapAttrMap
    clientKABC::LdapClient*
    dnTQString
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.LdapResult.html b/python/pykde/doc/classref/kabc/KABC.LdapResult.html deleted file mode 100644 index a71c1708..00000000 --- a/python/pykde/doc/classref/kabc/KABC.LdapResult.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 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
    emailTQString
    nameTQString
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.LdapSearch.html b/python/pykde/doc/classref/kabc/KABC.LdapSearch.html deleted file mode 100644 index 42dd5958..00000000 --- a/python/pykde/doc/classref/kabc/KABC.LdapSearch.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - class KABC.LdapSearch - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KABC.LdapSearch


-
- - - - - -
Table of contents
Modules
kabc Classes
All Classes
-
- - - - - - - - - - -
Modulekabc
ClassKABC.LdapSearch
InheritsTQObject
-

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
    a0TQStringList
    -

  • -
  • 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
    txtTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.Lock.html b/python/pykde/doc/classref/kabc/KABC.Lock.html deleted file mode 100644 index ca4b6639..00000000 --- a/python/pykde/doc/classref/kabc/KABC.Lock.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - class KABC.Lock - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KABC.Lock


-
- - - - - -
Table of contents
Modules
kabc Classes
All Classes
-
- - - - - - - - - - -
Modulekabc
ClassKABC.Lock
InheritsTQObject
-

methods

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

  • -
  • error () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

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

  • -
  • lockFileName () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

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

  • -
  • locksDir () -
    - - -
    returns (TQString)
    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
    filenameTQString
    appTQString
    -

  • -
  • 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
    filenameTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.LockNull.html b/python/pykde/doc/classref/kabc/KABC.LockNull.html deleted file mode 100644 index ea5e8ec2..00000000 --- a/python/pykde/doc/classref/kabc/KABC.LockNull.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - 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 (TQString)
    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/python/pykde/doc/classref/kabc/KABC.NameSortMode.html b/python/pykde/doc/classref/kabc/KABC.NameSortMode.html deleted file mode 100644 index 6539fa29..00000000 --- a/python/pykde/doc/classref/kabc/KABC.NameSortMode.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kabc/KABC.PhoneNumber.html b/python/pykde/doc/classref/kabc/KABC.PhoneNumber.html deleted file mode 100644 index 31029690..00000000 --- a/python/pykde/doc/classref/kabc/KABC.PhoneNumber.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - 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
    numberTQString
    typeintHome
    -

  • -
  • id () -
    -
    returns (TQString)

  • -
  • label () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

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

  • -
  • number () -
    -
    returns (TQString)

  • -
  • setId (id) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    idTQString
    -

  • -
  • setNumber (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

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

  • -
  • type () -
    -
    returns (int)

  • -
  • typeLabel () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • typeLabel (type) -
    - - -
    returns (TQString)
    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/python/pykde/doc/classref/kabc/KABC.Picture.html b/python/pykde/doc/classref/kabc/KABC.Picture.html deleted file mode 100644 index 061cde05..00000000 --- a/python/pykde/doc/classref/kabc/KABC.Picture.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - 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
    urlTQString
    -

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

  • -
  • asString () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • data () -
    - -
    returns (TQImage)
    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
    dataTQImage
    -

  • -
  • setType (type) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    typeTQString
    -

  • -
  • setUrl (url) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • type () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • url () -
    - -
    returns (TQString)
    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/python/pykde/doc/classref/kabc/KABC.Plugin.html b/python/pykde/doc/classref/kabc/KABC.Plugin.html deleted file mode 100644 index 69b0ccd7..00000000 --- a/python/pykde/doc/classref/kabc/KABC.Plugin.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - 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 (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • nameLabel () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • setDescriptionLabel (label) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    labelTQString
    -

  • -
  • setNameLabel (label) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    labelTQString
    -

  • -
  • setType (type) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    typeTQString
    -

  • -
  • type () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.Resource.html b/python/pykde/doc/classref/kabc/KABC.Resource.html deleted file mode 100644 index 8be2b766..00000000 --- a/python/pykde/doc/classref/kabc/KABC.Resource.html +++ /dev/null @@ -1,346 +0,0 @@ - - - - - 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 (TQString)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    static
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • 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
    categoryTQString
    -

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

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

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

  • -
  • identifier () -
    - -
    returns (TQString)
    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
    msgTQString
    -

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

  • -
  • name () -
    - -
    returns (TQString)
    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
    msgTQString
    -

  • -
  • 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
    a0TQString
    -

  • -
  • 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/python/pykde/doc/classref/kabc/KABC.ResourceFile.html b/python/pykde/doc/classref/kabc/KABC.ResourceFile.html deleted file mode 100644 index 8fea6407..00000000 --- a/python/pykde/doc/classref/kabc/KABC.ResourceFile.html +++ /dev/null @@ -1,312 +0,0 @@ - - - - - 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
    fileNameTQString
    formatNameTQString"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
    a1TQString
    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
    a1TQString
    a2KABC.FormatPlugin0
    -

  • -
  • ResourceFile (a0, a1, a2 = 0) -
    - -
    returns a ResourceFile instance
    In versions less than KDE 3.1.0 only
    - - - -
    ArgumentTypeDefault
    a0KABC.AddressBook
    a1TQString
    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 (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • fileName () -
    - -
    returns (TQString)
    In versions less than KDE 3.2.0 only

  • -
  • format () -
    - -
    returns (TQString)
    In versions KDE 3.5.1 and above only

  • -
  • identifier () -
    - -
    returns (TQString)
    In versions less than KDE 3.5.1 only

  • -
  • identifier () -
    - -
    returns (TQString)
    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
    fileNameTQString
    formatTQString
    -

  • -
  • 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
    a0TQString
    -

  • -
  • setFileName (a0) -
    - -
    returns nothing
    In versions less than KDE 3.2.0 only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setFormat (name) -
    - -
    returns nothing
    In versions KDE 3.5.1 and above only
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • 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/python/pykde/doc/classref/kabc/KABC.ResourceSelectDialog.html b/python/pykde/doc/classref/kabc/KABC.ResourceSelectDialog.html deleted file mode 100644 index 16ae0181..00000000 --- a/python/pykde/doc/classref/kabc/KABC.ResourceSelectDialog.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - 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
    parentTQWidget0
    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
    parentTQWidget0
    -

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

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.Secrecy.html b/python/pykde/doc/classref/kabc/KABC.Secrecy.html deleted file mode 100644 index eb4e9250..00000000 --- a/python/pykde/doc/classref/kabc/KABC.Secrecy.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - - 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 (TQString)
    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 (TQString)
    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/python/pykde/doc/classref/kabc/KABC.SortMode.html b/python/pykde/doc/classref/kabc/KABC.SortMode.html deleted file mode 100644 index b82da335..00000000 --- a/python/pykde/doc/classref/kabc/KABC.SortMode.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kabc/KABC.SortingTraits.FamilyName.html b/python/pykde/doc/classref/kabc/KABC.SortingTraits.FamilyName.html deleted file mode 100644 index 5b1b56ea..00000000 --- a/python/pykde/doc/classref/kabc/KABC.SortingTraits.FamilyName.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kabc/KABC.SortingTraits.FormattedName.html b/python/pykde/doc/classref/kabc/KABC.SortingTraits.FormattedName.html deleted file mode 100644 index 9c6ff2e8..00000000 --- a/python/pykde/doc/classref/kabc/KABC.SortingTraits.FormattedName.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kabc/KABC.SortingTraits.GivenName.html b/python/pykde/doc/classref/kabc/KABC.SortingTraits.GivenName.html deleted file mode 100644 index 6c75dd1b..00000000 --- a/python/pykde/doc/classref/kabc/KABC.SortingTraits.GivenName.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kabc/KABC.SortingTraits.Name.html b/python/pykde/doc/classref/kabc/KABC.SortingTraits.Name.html deleted file mode 100644 index 429a87dc..00000000 --- a/python/pykde/doc/classref/kabc/KABC.SortingTraits.Name.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kabc/KABC.SortingTraits.Uid.html b/python/pykde/doc/classref/kabc/KABC.SortingTraits.Uid.html deleted file mode 100644 index d28040c7..00000000 --- a/python/pykde/doc/classref/kabc/KABC.SortingTraits.Uid.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kabc/KABC.SortingTraits.html b/python/pykde/doc/classref/kabc/KABC.SortingTraits.html deleted file mode 100644 index b13211be..00000000 --- a/python/pykde/doc/classref/kabc/KABC.SortingTraits.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kabc/KABC.Sound.html b/python/pykde/doc/classref/kabc/KABC.Sound.html deleted file mode 100644 index 1b464995..00000000 --- a/python/pykde/doc/classref/kabc/KABC.Sound.html +++ /dev/null @@ -1,109 +0,0 @@ - - - - - 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
    urlTQString
    -

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

  • -
  • asString () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • data () -
    - -
    returns (TQByteArray)
    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
    dataTQByteArray
    -

  • -
  • setUrl (url) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • url () -
    - -
    returns (TQString)
    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/python/pykde/doc/classref/kabc/KABC.StdAddressBook.html b/python/pykde/doc/classref/kabc/KABC.StdAddressBook.html deleted file mode 100644 index 93099d9d..00000000 --- a/python/pykde/doc/classref/kabc/KABC.StdAddressBook.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - 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 (TQString)
    In versions KDE 3.1.0 and above only
    static

  • -
  • fileName () -
    - -
    returns (TQString)
    static

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

  • -
  • identifier () -
    - -
    returns (TQString)
    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/python/pykde/doc/classref/kabc/KABC.Ticket.html b/python/pykde/doc/classref/kabc/KABC.Ticket.html deleted file mode 100644 index f5f3aa76..00000000 --- a/python/pykde/doc/classref/kabc/KABC.Ticket.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kabc/KABC.TimeZone.html b/python/pykde/doc/classref/kabc/KABC.TimeZone.html deleted file mode 100644 index dd674ece..00000000 --- a/python/pykde/doc/classref/kabc/KABC.TimeZone.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - 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 (TQString)

  • -
  • 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/python/pykde/doc/classref/kabc/KABC.VCardConverter.html b/python/pykde/doc/classref/kabc/KABC.VCardConverter.html deleted file mode 100644 index 5428483e..00000000 --- a/python/pykde/doc/classref/kabc/KABC.VCardConverter.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - 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
    a1TQString
    versionKABC.VCardConverter.Versionv3_0
    -

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

  • -
  • createVCards (list, version = v3_0) -
    - -
    returns (TQString)
    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
    vcardTQString
    -

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

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

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.VCardFormat.html b/python/pykde/doc/classref/kabc/KABC.VCardFormat.html deleted file mode 100644 index aa2003ea..00000000 --- a/python/pykde/doc/classref/kabc/KABC.VCardFormat.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - 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
    fileNameTQString
    -

  • -
  • save (a0, fileName) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    a0KABC.AddressBook
    fileNameTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.VCardFormatPlugin.html b/python/pykde/doc/classref/kabc/KABC.VCardFormatPlugin.html deleted file mode 100644 index 04bf42cb..00000000 --- a/python/pykde/doc/classref/kabc/KABC.VCardFormatPlugin.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - 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
    fileTQFile
    -

  • -
  • load (a0, file) -
    - -
    returns (bool)
    In versions KDE 3.1.1 and above only
    - - -
    ArgumentTypeDefault
    a0KABC.Addressee
    fileTQFile
    -

  • -
  • loadAll (a0, a1, file) -
    - -
    returns (bool)
    In versions KDE 3.1.1 and above only
    - - - -
    ArgumentTypeDefault
    a0KABC.AddressBook
    a1KABC.Resource
    fileTQFile
    -

  • -
  • save (a0, file) -
    - -
    returns nothing
    In versions KDE 3.1.1 and above only
    - - -
    ArgumentTypeDefault
    a0KABC.Addressee
    fileTQFile
    -

  • -
  • saveAll (a0, a1, file) -
    - -
    returns nothing
    In versions KDE 3.1.1 and above only
    - - - -
    ArgumentTypeDefault
    a0KABC.AddressBook
    a1KABC.Resource
    fileTQFile
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/KABC.html b/python/pykde/doc/classref/kabc/KABC.html deleted file mode 100644 index a1ef1949..00000000 --- a/python/pykde/doc/classref/kabc/KABC.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - 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 (TQDateTime)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    dateStringTQString
    -

  • -
  • dateToVCardString (date) -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    dateTQDate
    -

  • -
  • dateToVCardString (date) -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    dateTQDate
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kabc/index.html b/python/pykde/doc/classref/kabc/index.html deleted file mode 100644 index 4091822a..00000000 --- a/python/pykde/doc/classref/kabc/index.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kabc/kabc-globals.html b/python/pykde/doc/classref/kabc/kabc-globals.html deleted file mode 100644 index 266eb8e7..00000000 --- a/python/pykde/doc/classref/kabc/kabc-globals.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - kabc globals - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

kabc Globals


-
- - - - - -
Table of contents
Modules
kabc Classes
All Classes
-
- - - diff --git a/python/pykde/doc/classref/kdecore/KAboutData.html b/python/pykde/doc/classref/kdecore/KAboutData.html deleted file mode 100644 index 18420d5e..00000000 --- a/python/pykde/doc/classref/kdecore/KAboutData.html +++ /dev/null @@ -1,260 +0,0 @@ - - - - - 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 (TQString)
    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 (TQValueList)

  • -
  • bugAddress () -
    -
    returns (TQString)

  • -
  • copyrightStatement () -
    -
    returns (TQString)

  • -
  • credits () -
    -
    returns (TQValueList)

  • -
  • customAuthorPlainText () -
    - -
    returns (TQString)
    In versions KDE 3.5.0 and above only

  • -
  • customAuthorRichText () -
    - -
    returns (TQString)
    In versions KDE 3.5.0 and above only

  • -
  • customAuthorTextEnabled () -
    - -
    returns (bool)
    In versions KDE 3.5.0 and above only

  • -
  • homepage () -
    -
    returns (TQString)

  • -
  • 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 (TQString)

  • -
  • otherText () -
    -
    returns (TQString)

  • -
  • productName () -
    - -
    returns (char)
    In versions KDE 3.2.0 and above only

  • -
  • programLogo () -
    - -
    returns (TQImage)
    In versions KDE 3.4.0 and above only

  • -
  • programName () -
    -
    returns (TQString)

  • -
  • 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
    plainTextTQString
    richTextTQString
    -

  • -
  • 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
    fileTQString
    -

  • -
  • 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
    imageTQImage
    -

  • -
  • 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 (TQString)

  • -
  • translateInternalProgramName () -
    - -
    returns nothing
    In versions KDE 3.5.1 and above only

  • -
  • translators () -
    -
    returns (TQValueList)

  • -
  • unsetCustomAuthorText () -
    - -
    returns nothing
    In versions KDE 3.5.0 and above only

  • -
  • version () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KAboutPerson.html b/python/pykde/doc/classref/kdecore/KAboutPerson.html deleted file mode 100644 index 8a871fd8..00000000 --- a/python/pykde/doc/classref/kdecore/KAboutPerson.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - 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 (TQString)

  • -
  • name () -
    -
    returns (TQString)

  • -
  • task () -
    -
    returns (TQString)

  • -
  • webAddress () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KAboutTranslator.html b/python/pykde/doc/classref/kdecore/KAboutTranslator.html deleted file mode 100644 index d2ac1f76..00000000 --- a/python/pykde/doc/classref/kdecore/KAboutTranslator.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - class KAboutTranslator - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KAboutTranslator


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKAboutTranslator
Inherits
-

methods

    -
  • KAboutTranslator (name = TQString .null, emailAddress = TQString .null) -
    -
    returns a KAboutTranslator instance
    - - -
    ArgumentTypeDefault
    nameTQStringTQString .null
    emailAddressTQStringTQString .null
    -

  • -
  • emailAddress () -
    -
    returns (TQString)

  • -
  • name () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KAccel.html b/python/pykde/doc/classref/kdecore/KAccel.html deleted file mode 100644 index ee1f5791..00000000 --- a/python/pykde/doc/classref/kdecore/KAccel.html +++ /dev/null @@ -1,366 +0,0 @@ - - - - - class KAccel - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KAccel


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKAccel
InheritsTQAccel
-

methods

    -
  • KAccel (pParent, psName = 0) -
    -
    returns a KAccel instance
    - - -
    ArgumentTypeDefault
    pParentTQWidget
    psNamechar0
    -

  • -
  • KAccel (watch, parent, psName = 0) -
    -
    returns a KAccel instance
    - - - -
    ArgumentTypeDefault
    watchTQWidget
    parentTQObject
    psNamechar0
    -

  • -
  • actions () -
    -
    returns (KAccelActions)

  • -
  • changeMenuAccel (menu, id, action) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    menuTQPopupMenu
    idint
    actionTQString
    -

  • -
  • changeMenuAccel (menu, id, accel) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    menuTQPopupMenu
    idint
    accelKStdAccel.StdAccel
    -

  • -
  • configGroup () -
    -
    returns (TQString)

  • -
  • connectItem (sAction, slot, bActivate = 1) -
    - -
    returns (bool)
    In versions KDE 3.1.4 and above only
    - - - -
    ArgumentTypeDefault
    sActionTQString
    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
    a0TQString
    a1TQObject
    a2char
    a3bool1
    -

  • -
  • connectItem (a0, a1, a2) -
    - -
    returns (bool)
    In versions less than KDE 3.1.4 only
    - - - -
    ArgumentTypeDefault
    a0KStdAccel.StdAccel
    a1TQObject
    a2char
    -

  • -
  • currentKey (action) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    actionTQString
    -

  • -
  • emitKeycodeChanged () -
    -
    returns nothing

  • -
  • findKey (key) -
    -
    returns (TQString)
    - -
    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
    sActionTQString
    sLabelTQString
    sWhatsThisTQString
    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
    sActionTQString
    sLabelTQString
    sWhatsThisTQString
    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
    a0TQString
    a1TQString
    a2TQString
    a3KShortcut
    a4TQObject
    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
    a0TQString
    a1TQString
    a2TQString
    a3KShortcut
    a4KShortcut
    a5TQObject
    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
    a2TQObject
    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
    a1TQObject
    a2char
    a3bool1
    a4bool1
    -

  • -
  • insertItem (sLabel, sAction, psKey, nIDMenu = 0, pMenu = 0, bConfigurable = 1) -
    -
    returns (bool)
    - - - - - - -
    ArgumentTypeDefault
    sLabelTQString
    sActionTQString
    psKeychar
    nIDMenuint0
    pMenuTQPopupMenu0
    bConfigurablebool1
    -

  • -
  • insertItem (sLabel, sAction, key, nIDMenu, pMenu, bConfigurable = 1) -
    -
    returns (bool)
    - - - - - - -
    ArgumentTypeDefault
    sLabelTQString
    sActionTQString
    keyint
    nIDMenuint
    pMenuTQPopupMenu
    bConfigurablebool1
    -

  • -
  • insertStdItem (id, descr = TQString .null) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    idKStdAccel.StdAccel
    descrTQStringTQString .null
    -

  • -
  • isEnabled () -
    -
    returns (bool)

  • -
  • keycodeChanged () -
    -
    returns nothing

  • -
  • readSettings (pConfig = 0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    pConfigKConfigBase0
    -

  • -
  • remove (sAction) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    sActionTQString
    -

  • -
  • removeItem (sAction) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    sActionTQString
    -

  • -
  • setAutoUpdate (bAuto) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    bAutobool
    -

  • -
  • setConfigGroup (name) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • setEnabled (bEnabled) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    bEnabledbool
    -

  • -
  • setEnabled (sAction, bEnabled) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    sActionTQString
    bEnabledbool
    -

  • -
  • setItemEnabled (sAction, bEnable) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    sActionTQString
    bEnablebool
    -

  • -
  • setShortcut (sAction, shortcut) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    sActionTQString
    shortcutKShortcut
    -

  • -
  • setSlot (sAction, slot, ) -
    - -
    returns (bool)
    In versions KDE 3.1.4 and above only
    - - -
    ArgumentTypeDefault
    sActionTQString
    slotSLOT (Python callable)
    -

  • -
  • setSlot (a0, a1, a2) -
    - -
    returns (bool)
    In versions less than KDE 3.1.4 only
    - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQObject
    a2char
    -

  • -
  • shortcut (sAction) -
    -
    returns (KShortcut)
    - -
    ArgumentTypeDefault
    sActionTQString
    -

  • -
  • stringToKey (a0) -
    - -
    returns (int)
    static
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • updateConnections () -
    -
    returns (bool)

  • -
  • writeSettings (pConfig = 0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    pConfigKConfigBase0
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KAccelAction.html b/python/pykde/doc/classref/kdecore/KAccelAction.html deleted file mode 100644 index 388fc83d..00000000 --- a/python/pykde/doc/classref/kdecore/KAccelAction.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - 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
    sNameTQString
    sLabelTQString
    sWhatsThisTQString
    cutDef3KShortcut
    cutDef4KShortcut
    pObjSlotTQObject
    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
    sNameTQString
    sLabelTQString
    sWhatsThisTQString
    cutDef3KShortcut
    cutDef4KShortcut
    pObjSlotTQObject
    psMethodSlotchar
    bConfigurablebool
    bEnabledbool
    -

  • -
  • isConfigurable () -
    -
    returns (bool)

  • -
  • isConnected () -
    -
    returns (bool)

  • -
  • isEnabled () -
    -
    returns (bool)

  • -
  • label () -
    -
    returns (TQString)

  • -
  • methodSlotPtr () -
    -
    returns (char)

  • -
  • name () -
    -
    returns (TQString)

  • -
  • objSlotPtr () -
    -
    returns (TQObject)

  • -
  • 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
    labelTQString
    -

  • -
  • setName (name) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • setShortcut (rgCuts) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    rgCutsKShortcut
    -

  • -
  • setSlot (pObjSlot, psMethodSlot) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    pObjSlotTQObject
    psMethodSlotchar
    -

  • -
  • setWhatsThis (whatsThis) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    whatsThisTQString
    -

  • -
  • shortcut () -
    -
    returns (KShortcut)

  • -
  • shortcutDefault () -
    -
    returns (KShortcut)

  • -
  • shortcutDefault3 () -
    -
    returns (KShortcut)

  • -
  • shortcutDefault4 () -
    -
    returns (KShortcut)

  • -
  • toString () -
    -
    returns (TQString)

  • -
  • toStringInternal () -
    -
    returns (TQString)

  • -
  • useFourModifierKeys () -
    - -
    returns (bool)
    static

  • -
  • useFourModifierKeys (use) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    usebool
    -

  • -
  • whatsThis () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KAccelActions.html b/python/pykde/doc/classref/kdecore/KAccelActions.html deleted file mode 100644 index 30beab9a..00000000 --- a/python/pykde/doc/classref/kdecore/KAccelActions.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - 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
    sActionTQString
    -

  • -
  • actionPtr (index) -
    -
    returns (KAccelAction)
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
  • actionPtr (sAction) -
    -
    returns (KAccelAction)
    - -
    ArgumentTypeDefault
    sActionTQString
    -

  • -
  • 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
    sGroupTQString
    -

  • -
  • insert (sAction, sLabel, sWhatsThis, rgCutDefaults3, rgCutDefaults4, pObjSlot = 0, psMethodSlot = 0, bConfigurable = 1, bEnabled = 1) -
    -
    returns (KAccelAction)
    - - - - - - - - - -
    ArgumentTypeDefault
    sActionTQString
    sLabelTQString
    sWhatsThisTQString
    rgCutDefaults3KShortcut
    rgCutDefaults4KShortcut
    pObjSlotTQObject0
    psMethodSlotchar0
    bConfigurablebool1
    bEnabledbool1
    -

  • -
  • insert (sName, sLabel) -
    -
    returns (KAccelAction)
    - - -
    ArgumentTypeDefault
    sNameTQString
    sLabelTQString
    -

  • -
  • insertPtr (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KAccelAction
    -

  • -
  • readActions (sConfigGroup = "Shortcuts", pConfig = 0) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    sConfigGroupTQString"Shortcuts"
    pConfigKConfigBase0
    -

  • -
  • remove (sAction) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    sActionTQString
    -

  • -
  • 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
    sConfigGroupTQString"Shortcuts"
    pConfigKConfigBase0
    bWriteAllbool0
    bGlobalbool0
    -

  • -
-

operators

    -
  • operator [] (index) -
    - -
    returns (KAccelAction),
    In versions KDE 3.1.4 and above only
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KAccelBase.html b/python/pykde/doc/classref/kdecore/KAccelBase.html deleted file mode 100644 index cdc6fe01..00000000 --- a/python/pykde/doc/classref/kdecore/KAccelBase.html +++ /dev/null @@ -1,242 +0,0 @@ - - - - - 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
    sActionTQString
    -

  • -
  • actionPtr (key) -
    -
    returns (KAccelAction)
    - -
    ArgumentTypeDefault
    keyKKey
    -

  • -
  • actionPtr (key) -
    -
    returns (KAccelAction)
    - -
    ArgumentTypeDefault
    keyKKeyServer.Key
    -

  • -
  • actions () -
    -
    returns (KAccelActions)

  • -
  • configGroup () -
    -
    returns (TQString)

  • -
  • 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 (TQPopupMenu)
    - - -
    ArgumentTypeDefault
    pParentTQWidget
    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
    sNameTQString
    sDescTQString
    -

  • -
  • insert (sAction, sDesc, sHelp, rgCutDefaults3, rgCutDefaults4, pObjSlot, psMethodSlot, bConfigurable = 1, bEnabled = 1) -
    -
    returns (KAccelAction)
    - - - - - - - - - -
    ArgumentTypeDefault
    sActionTQString
    sDescTQString
    sHelpTQString
    rgCutDefaults3KShortcut
    rgCutDefaults4KShortcut
    pObjSlotTQObject
    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
    sActionTQString
    -

  • -
  • removeConnection (a0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    a0KAccelAction
    -

  • -
  • setActionEnabled (sAction, bEnable) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    sActionTQString
    bEnablebool
    -

  • -
  • setActionSlot (sAction, pObjSlot, psMethodSlot) -
    -
    returns (bool)
    - - - -
    ArgumentTypeDefault
    sActionTQString
    pObjSlotTQObject
    psMethodSlotchar
    -

  • -
  • setAutoUpdate (bAuto) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    bAutobool
    -

  • -
  • setConfigGlobal (global) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    globalbool
    -

  • -
  • setConfigGroup (group) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    groupTQString
    -

  • -
  • setEnabled (bEnabled) = 0 -
    - -
    returns nothing
    pure virtual
    - -
    ArgumentTypeDefault
    bEnabledbool
    -

  • -
  • setShortcut (sAction, cut) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    sActionTQString
    cutKShortcut
    -

  • -
  • slotRemoveAction (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KAccelAction
    -

  • -
  • updateConnections () -
    -
    returns (bool)

  • -
  • writeSettings (pConfig = 0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pConfigKConfigBase0
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KAccelShortcutList.html b/python/pykde/doc/classref/kdecore/KAccelShortcutList.html deleted file mode 100644 index 0ee9f002..00000000 --- a/python/pykde/doc/classref/kdecore/KAccelShortcutList.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - 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 (TQVariant)
    - - -
    ArgumentTypeDefault
    a0KShortcutList.Other
    indexuint
    -

  • -
  • isConfigurable (index) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
  • isGlobal (index) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
  • label (index) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
  • name (index) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
  • save () -
    -
    returns (bool)

  • -
  • setOther (a0, index, a1) -
    -
    returns (bool)
    - - - -
    ArgumentTypeDefault
    a0KShortcutList.Other
    indexuint
    a1TQVariant
    -

  • -
  • setShortcut (index, shortcut) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    indexuint
    shortcutKShortcut
    -

  • -
  • shortcut (index) -
    -
    returns (KShortcut)
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
  • shortcutDefault (index) -
    -
    returns (KShortcut)
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
  • whatsThis (index) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KApplication.html b/python/pykde/doc/classref/kdecore/KApplication.html deleted file mode 100644 index 41047cd6..00000000 --- a/python/pykde/doc/classref/kdecore/KApplication.html +++ /dev/null @@ -1,666 +0,0 @@ - - - - - class KApplication - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KApplication


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKApplication
InheritsTQApplication, 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
    actionTQString
    _baseURLKURL
    _destURLKURL
    -

  • -
  • appearanceChanged () -
    -
    returns nothing

  • -
  • authorize (genericAction) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    genericActionTQString
    -

  • -
  • authorizeControlModule (menuId) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    menuIdTQString
    -

  • -
  • authorizeControlModules (menuIds) -
    - -
    returns (TQStringList)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    menuIdsTQStringList
    -

  • -
  • authorizeKAction (action) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    actionchar
    -

  • -
  • authorizeURLAction (action, baseURL, destURL) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - - - -
    ArgumentTypeDefault
    actionTQString
    baseURLKURL
    destURLKURL
    -

  • -
  • backgroundChanged (desk) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    deskint
    -

  • -
  • caption () -
    -
    returns (TQString)

  • -
  • checkRecoverFile (pFilename) -
    -
    returns (TQString) bRecover (bool)
    - -
    ArgumentTypeDefault
    pFilenameTQString
    -

  • -
  • 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 (TQPalette)
    In versions KDE 3.1.0 and above only
    static

  • -
  • createApplicationPalette (config, contrast) -
    - - -
    returns (TQPalette)
    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 (TQString)

  • -
  • getDisplay () -
    -
    returns (Display)

  • -
  • guiEnabled () -
    - - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    static

  • -
  • iceIOErrorHandler (conn) -
    Not Implemented
    -

  • -
  • icon () -
    -
    returns (TQPixmap)

  • -
  • iconChanged (group) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    groupint
    -

  • -
  • iconName () -
    -
    returns (TQString)

  • -
  • installKDEPropertyMap () -
    -
    returns nothing

  • -
  • installSigpipeHandler () -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static

  • -
  • installX11EventFilter (filter) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    filterTQWidget
    -

  • -
  • invokeBrowser (url, startup_id) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    urlTQString
    startup_idTQCString
    -

  • -
  • invokeBrowser (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • invokeEditSlot (slot) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    slotchar
    -

  • -
  • invokeHTMLHelp (aFilename, aTopic = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    aFilenameTQString
    aTopicTQStringTQString .null
    -

  • -
  • invokeHelp (anchor, appname, startup_id) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    anchorTQString
    appnameTQString
    startup_idTQCString
    -

  • -
  • invokeHelp (anchor = TQString .null, appname = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    anchorTQStringTQString .null
    appnameTQStringTQString .null
    -

  • -
  • invokeMailer (address, subject, startup_id) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    addressTQString
    subjectTQString
    startup_idTQCString
    -

  • -
  • invokeMailer (address, subject) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    addressTQString
    subjectTQString
    -

  • -
  • invokeMailer (mailtoURL, startup_id, allowAttachments) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    mailtoURLKURL
    startup_idTQCString
    allowAttachmentsbool
    -

  • -
  • invokeMailer (mailtoURL, startup_id) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    mailtoURLKURL
    startup_idTQCString
    -

  • -
  • 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
    toTQString
    ccTQString
    bccTQString
    subjectTQString
    bodyTQString
    messageFileTQString
    attachURLsTQStringList
    startup_idTQCString
    -

  • -
  • invokeMailer (to, cc, bcc, subject, body, messageFile = TQString .null, attachURLs = TQStringList ()) -
    -
    returns nothing
    - - - - - - - -
    ArgumentTypeDefault
    toTQString
    ccTQString
    bccTQString
    subjectTQString
    bodyTQString
    messageFileTQStringTQString .null
    attachURLsTQStringListTQStringList ()
    -

  • -
  • isRestored () -
    -
    returns (bool)

  • -
  • kApplication () -
    - -
    returns (KApplication)
    static

  • -
  • kdeinitExec (name, args, startup_id) -
    - - -
    returns (int) error (TQString) pid (int)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    nameTQString
    argsTQStringList
    startup_idTQCString
    -

  • -
  • kdeinitExec (name, args) -
    - -
    returns (int) error (TQString) pid (int)
    static
    - - -
    ArgumentTypeDefault
    nameTQString
    argsTQStringList
    -

  • -
  • kdeinitExecWait (name, args, startup_id) -
    - - -
    returns (int) error (TQString) pid (int)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    nameTQString
    argsTQStringList
    startup_idTQCString
    -

  • -
  • kdeinitExecWait (name, args) -
    - -
    returns (int) error (TQString) pid (int)
    static
    - - -
    ArgumentTypeDefault
    nameTQString
    argsTQStringList
    -

  • -
  • 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 (TQCString)
    static

  • -
  • makeStdCaption (userCaption, withAppName = 1, modified = 0) -
    -
    returns (TQString)
    - - - -
    ArgumentTypeDefault
    userCaptionTQString
    withAppNamebool1
    modifiedbool0
    -

  • -
  • miniIcon () -
    -
    returns (TQPixmap)

  • -
  • miniIconName () -
    -
    returns (TQString)

  • -
  • mouseState () -
    - - -
    returns (uint)
    In versions KDE 3.1.0 and above only
    static

  • -
  • notify (receiver, event) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    receiverTQObject
    eventTQEvent
    -

  • -
  • paste () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
  • propagateSessionManager () -
    -
    returns nothing

  • -
  • random () -
    - -
    returns (int)
    static

  • -
  • randomString (length) -
    - -
    returns (TQString)
    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
    filterTQWidget
    -

  • -
  • 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_idTQCString
    -

  • -
  • setTopWidget (topWidget) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    topWidgetTQWidget
    -

  • -
  • settingsChanged (category) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    categoryint
    -

  • -
  • shutDown () -
    -
    returns nothing

  • -
  • startKdeinit () -
    - -
    returns nothing
    static

  • -
  • startServiceByDesktopName (_name, URL, startup_id = TQCString ("" ), noWait = 0) -
    - -
    returns (int) error (TQString) dcopService (TQCString) pid (int)
    static
    - - - - -
    ArgumentTypeDefault
    _nameTQString
    URLTQString
    startup_idTQCStringTQCString ("" )
    noWaitbool0
    -

  • -
  • startServiceByDesktopName (_name, URLs, startup_id = TQCString ("" ), noWait = 0) -
    - -
    returns (int) error (TQString) dcopService (TQCString) pid (int)
    static
    - - - - -
    ArgumentTypeDefault
    _nameTQString
    URLsTQStringList
    startup_idTQCStringTQCString ("" )
    noWaitbool0
    -

  • -
  • startServiceByDesktopPath (_name, URL, startup_id = TQCString ("" ), noWait = 0) -
    - -
    returns (int) error (TQString) dcopService (TQCString) pid (int)
    static
    - - - - -
    ArgumentTypeDefault
    _nameTQString
    URLTQString
    startup_idTQCStringTQCString ("" )
    noWaitbool0
    -

  • -
  • startServiceByDesktopPath (_name, URLs, startup_id = TQCString ("" ), noWait = 0) -
    - -
    returns (int) error (TQString) dcopService (TQCString) pid (int)
    static
    - - - - -
    ArgumentTypeDefault
    _nameTQString
    URLsTQStringList
    startup_idTQCStringTQCString ("" )
    noWaitbool0
    -

  • -
  • startServiceByName (_name, URL, startup_id = TQCString ("" ), noWait = 0) -
    - -
    returns (int) error (TQString) dcopService (TQCString) pid (int)
    static
    - - - - -
    ArgumentTypeDefault
    _nameTQString
    URLTQString
    startup_idTQCStringTQCString ("" )
    noWaitbool0
    -

  • -
  • startServiceByName (_name, URLs, startup_id = TQCString ("" ), noWait = 0) -
    - -
    returns (int) error (TQString) dcopService (TQCString) pid (int)
    static
    - - - - -
    ArgumentTypeDefault
    _nameTQString
    URLsTQStringList
    startup_idTQCStringTQCString ("" )
    noWaitbool0
    -

  • -
  • startupId () -
    -
    returns (TQCString)

  • -
  • tempSaveName (pFilename) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    pFilenameTQString
    -

  • -
  • toolbarAppearanceChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • updateRemoteUserTimestamp (dcopId, time = 0) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    dcopIdTQCString
    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/python/pykde/doc/classref/kdecore/KAsyncIO.html b/python/pykde/doc/classref/kdecore/KAsyncIO.html deleted file mode 100644 index 3967e813..00000000 --- a/python/pykde/doc/classref/kdecore/KAsyncIO.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - class KAsyncIO - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KAsyncIO


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKAsyncIO (abstract)
InheritsTQObject, TQIODevice
-

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/python/pykde/doc/classref/kdecore/KAudioPlayer.html b/python/pykde/doc/classref/kdecore/KAudioPlayer.html deleted file mode 100644 index 533405db..00000000 --- a/python/pykde/doc/classref/kdecore/KAudioPlayer.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - class KAudioPlayer - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KAudioPlayer


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKAudioPlayer
InheritsTQObject
-

methods

    -
  • KAudioPlayer (filename, parent = 0, name = 0) -
    -
    returns a KAudioPlayer instance
    - - - -
    ArgumentTypeDefault
    filenameTQString
    parentTQObject0
    namechar0
    -

  • -
  • play (filename) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    filenameTQString
    -

  • -
  • play () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KBufferedIO.html b/python/pykde/doc/classref/kdecore/KBufferedIO.html deleted file mode 100644 index cf9a67ab..00000000 --- a/python/pykde/doc/classref/kdecore/KBufferedIO.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/KCalendarSystem.html b/python/pykde/doc/classref/kdecore/KCalendarSystem.html deleted file mode 100644 index fe0806e7..00000000 --- a/python/pykde/doc/classref/kdecore/KCalendarSystem.html +++ /dev/null @@ -1,306 +0,0 @@ - - - - - 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 (TQDate)
    In versions KDE 3.2.0 and above only
    pure virtual
    - - -
    ArgumentTypeDefault
    dateTQDate
    ndaysint
    -

  • -
  • addMonths (date, nmonths) = 0 -
    - - -
    returns (TQDate)
    In versions KDE 3.2.0 and above only
    pure virtual
    - - -
    ArgumentTypeDefault
    dateTQDate
    nmonthsint
    -

  • -
  • addYears (date, nyears) = 0 -
    - - -
    returns (TQDate)
    In versions KDE 3.2.0 and above only
    pure virtual
    - - -
    ArgumentTypeDefault
    dateTQDate
    nyearsint
    -

  • -
  • calendarName () = 0 -
    - - -
    returns (TQString)
    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
    dateTQDate
    -

  • -
  • dayOfWeek (date) = 0 -
    - - -
    returns (int)
    In versions KDE 3.2.0 and above only
    pure virtual
    - -
    ArgumentTypeDefault
    dateTQDate
    -

  • -
  • dayOfYear (date) = 0 -
    - - -
    returns (int)
    In versions KDE 3.2.0 and above only
    pure virtual
    - -
    ArgumentTypeDefault
    dateTQDate
    -

  • -
  • dayString (pDate, bShort) -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    pDateTQDate
    bShortbool
    -

  • -
  • dayStringToInteger (sNum) -
    - -
    returns (int) iLength (int)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    sNumTQString
    -

  • -
  • daysInMonth (date) = 0 -
    - - -
    returns (int)
    In versions KDE 3.2.0 and above only
    pure virtual
    - -
    ArgumentTypeDefault
    dateTQDate
    -

  • -
  • daysInYear (date) = 0 -
    - - -
    returns (int)
    In versions KDE 3.2.0 and above only
    pure virtual
    - -
    ArgumentTypeDefault
    dateTQDate
    -

  • -
  • 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
    dateTQDate
    -

  • -
  • monthName (month, year, shortName = 0) = 0 -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    pure virtual
    - - - -
    ArgumentTypeDefault
    monthint
    yearint
    shortNamebool0
    -

  • -
  • monthName (date, shortName = 0) = 0 -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    pure virtual
    - - -
    ArgumentTypeDefault
    dateTQDate
    shortNamebool0
    -

  • -
  • monthNamePossessive (month, year, shortName = 0) = 0 -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    pure virtual
    - - - -
    ArgumentTypeDefault
    monthint
    yearint
    shortNamebool0
    -

  • -
  • monthNamePossessive (date, shortName = 0) = 0 -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    pure virtual
    - - -
    ArgumentTypeDefault
    dateTQDate
    shortNamebool0
    -

  • -
  • monthString (pDate, bShort) -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    pDateTQDate
    bShortbool
    -

  • -
  • monthStringToInteger (sNum) -
    - -
    returns (int) iLength (int)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    sNumTQString
    -

  • -
  • monthsInYear (date) = 0 -
    - - -
    returns (int)
    In versions KDE 3.2.0 and above only
    pure virtual
    - -
    ArgumentTypeDefault
    dateTQDate
    -

  • -
  • setYMD (date, y, m, d) = 0 -
    - - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    pure virtual
    - - - - -
    ArgumentTypeDefault
    dateTQDate
    yint
    mint
    dint
    -

  • -
  • weekDayName (weekDay, shortName = 0) = 0 -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    pure virtual
    - - -
    ArgumentTypeDefault
    weekDayint
    shortNamebool0
    -

  • -
  • weekDayName (date, shortName = 0) = 0 -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    pure virtual
    - - -
    ArgumentTypeDefault
    dateTQDate
    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
    dateTQDate
    -

  • -
  • 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
    dateTQDate
    -

  • -
  • yearString (pDate, bShort) -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    pDateTQDate
    bShortbool
    -

  • -
  • yearStringToInteger (sNum) -
    - -
    returns (int) iLength (int)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    sNumTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KCalendarSystemFactory.html b/python/pykde/doc/classref/kdecore/KCalendarSystemFactory.html deleted file mode 100644 index 9c01d694..00000000 --- a/python/pykde/doc/classref/kdecore/KCalendarSystemFactory.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - 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 (TQStringList)
    In versions KDE 3.2.0 and above only
    static

  • -
  • create (calType = TQString .fromLatin1 ("gregorian" ), locale = 0) -
    - - -
    returns (KCalendarSystem)
    In versions KDE 3.2.0 and above only
    static
    - - -
    ArgumentTypeDefault
    calTypeTQStringTQString .fromLatin1 ("gregorian" )
    localeKLocale0
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KCatalogue.html b/python/pykde/doc/classref/kdecore/KCatalogue.html deleted file mode 100644 index 35b6b798..00000000 --- a/python/pykde/doc/classref/kdecore/KCatalogue.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - class KCatalogue - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KCatalogue


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKCatalogue
Inherits
-

methods

    -
  • KCatalogue (name = TQString .null, language = TQString .null) -
    - -
    returns a KCatalogue instance
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    nameTQStringTQString .null
    languageTQStringTQString .null
    -

  • -
  • KCatalogue (rhs) -
    -
    returns a KCatalogue instance
    - -
    ArgumentTypeDefault
    rhsKCatalogue
    -

  • -
  • KCatalogue (a0 = TQString .null) -
    - -
    returns a KCatalogue instance
    In versions less than KDE 3.3.0 only( D MANDRAKE only)
    - -
    ArgumentTypeDefault
    a0TQStringTQString .null
    -

  • -
  • language () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • name () -
    -
    returns (TQString)

  • -
  • 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
    a0TQString
    -

  • -
  • setPluralType (pluralType) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    pluralTypeint
    -

  • -
  • translate (msgid) -
    -
    returns (char)
    - -
    ArgumentTypeDefault
    msgidchar
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KCharMacroExpander.html b/python/pykde/doc/classref/kdecore/KCharMacroExpander.html deleted file mode 100644 index a37b47cc..00000000 --- a/python/pykde/doc/classref/kdecore/KCharMacroExpander.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - 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
    cTQChar'%'
    -

  • -
  • expandEscapedMacro (str, pos, ret) -
    - -
    returns (int)
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    strTQString
    posuint
    retTQStringList
    -

  • -
  • expandMacro (chr, ret) = 0 -
    - - -
    returns (bool)
    In versions KDE 3.3.0 and above only
    pure virtual
    - - -
    ArgumentTypeDefault
    chrTQChar
    retTQStringList
    -

  • -
  • expandPlainMacro (str, pos, ret) -
    - -
    returns (int)
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    strTQString
    posuint
    retTQStringList
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KCharsets.html b/python/pykde/doc/classref/kdecore/KCharsets.html deleted file mode 100644 index d303a4f7..00000000 --- a/python/pykde/doc/classref/kdecore/KCharsets.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - 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 (TQStringList)

  • -
  • codecForName (name) -
    -
    returns (TQTextCodec)
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • codecForName (n) -
    -
    returns (TQTextCodec) ok (bool)
    - -
    ArgumentTypeDefault
    nTQString
    -

  • -
  • descriptiveEncodingNames () -
    -
    returns (TQStringList)

  • -
  • encodingForName (descriptiveName) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    descriptiveNameTQString
    -

  • -
  • encodingsForLanguage (a0) -
    Not Implemented
    -

  • -
  • fromEntity (str) -
    -
    returns (TQChar)
    - -
    ArgumentTypeDefault
    strTQString
    -

  • -
  • fromEntity (str) -
    -
    returns (TQChar) len (int)
    - -
    ArgumentTypeDefault
    strTQString
    -

  • -
  • languageForEncoding (encoding) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    encodingTQString
    -

  • -
  • languages () -
    Not Implemented
    -

  • -
  • resolveEntities (text) -
    - - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    static
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • toEntity (ch) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    chTQChar
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KClipboardSynchronizer.html b/python/pykde/doc/classref/kdecore/KClipboardSynchronizer.html deleted file mode 100644 index 8af49020..00000000 --- a/python/pykde/doc/classref/kdecore/KClipboardSynchronizer.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - class KClipboardSynchronizer - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KClipboardSynchronizer


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKClipboardSynchronizer
InheritsTQObject
-

methods

    -
  • KClipboardSynchronizer (parent = 0, name = 0) -
    - -
    returns a KClipboardSynchronizer instance
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQObject0
    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/python/pykde/doc/classref/kdecore/KCmdLineArgs.html b/python/pykde/doc/classref/kdecore/KCmdLineArgs.html deleted file mode 100644 index d71b0e29..00000000 --- a/python/pykde/doc/classref/kdecore/KCmdLineArgs.html +++ /dev/null @@ -1,220 +0,0 @@ - - - - - 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 (TQString)
    static

  • -
  • enable_i18n () -
    - -
    returns nothing
    static

  • -
  • getOption (option) -
    -
    returns (TQCString)
    - -
    ArgumentTypeDefault
    optionchar
    -

  • -
  • getOptionList (option) -
    - -
    returns (QCStringList)
    In versions KDE 3.1.4 and above only
    - -
    ArgumentTypeDefault
    optionchar
    -

  • -
  • getOptionList (a0) -
    - -
    returns (TQValueList)
    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
    a0TQDataStream
    -

  • -
  • 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
    errorTQString
    -

  • -
  • ~KCmdLineArgs () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KCmdLineOptions.html b/python/pykde/doc/classref/kdecore/KCmdLineOptions.html deleted file mode 100644 index d5aad5b0..00000000 --- a/python/pykde/doc/classref/kdecore/KCmdLineOptions.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/KCodecs.html b/python/pykde/doc/classref/kdecore/KCodecs.html deleted file mode 100644 index 410c805a..00000000 --- a/python/pykde/doc/classref/kdecore/KCodecs.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - - 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 (TQCString)
    static
    - -
    ArgumentTypeDefault
    inTQByteArray
    -

  • -
  • base64Decode (str) -
    - -
    returns (TQCString)
    static
    - -
    ArgumentTypeDefault
    strTQCString
    -

  • -
  • base64Decode (in, out) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    inTQByteArray
    outTQByteArray
    -

  • -
  • base64Encode (in, insertLFs) -
    - -
    returns (TQCString)
    static
    - - -
    ArgumentTypeDefault
    inTQByteArray
    insertLFsbool
    -

  • -
  • base64Encode (str, insertLFs) -
    - -
    returns (TQCString)
    static
    - - -
    ArgumentTypeDefault
    strTQCString
    insertLFsbool
    -

  • -
  • base64Encode (in, out, insertLFs) -
    - -
    returns nothing
    static
    - - - -
    ArgumentTypeDefault
    inTQByteArray
    outTQByteArray
    insertLFsbool
    -

  • -
  • quotedPrintableDecode (in) -
    - -
    returns (TQCString)
    static
    - -
    ArgumentTypeDefault
    inTQByteArray
    -

  • -
  • quotedPrintableDecode (str) -
    - -
    returns (TQCString)
    static
    - -
    ArgumentTypeDefault
    strTQCString
    -

  • -
  • quotedPrintableDecode (in, out) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    inTQByteArray
    outTQByteArray
    -

  • -
  • quotedPrintableEncode (in, useCRLF) -
    - -
    returns (TQCString)
    static
    - - -
    ArgumentTypeDefault
    inTQByteArray
    useCRLFbool
    -

  • -
  • quotedPrintableEncode (str, useCRLF = 1) -
    - -
    returns (TQCString)
    static
    - - -
    ArgumentTypeDefault
    strTQCString
    useCRLFbool1
    -

  • -
  • quotedPrintableEncode (in, out, useCRLF) -
    - -
    returns nothing
    static
    - - - -
    ArgumentTypeDefault
    inTQByteArray
    outTQByteArray
    useCRLFbool
    -

  • -
  • uudecode (in) -
    - -
    returns (TQCString)
    static
    - -
    ArgumentTypeDefault
    inTQByteArray
    -

  • -
  • uudecode (str) -
    - -
    returns (TQCString)
    static
    - -
    ArgumentTypeDefault
    strTQCString
    -

  • -
  • uudecode (in, out) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    inTQByteArray
    outTQByteArray
    -

  • -
  • uuencode (in) -
    - -
    returns (TQCString)
    static
    - -
    ArgumentTypeDefault
    inTQByteArray
    -

  • -
  • uuencode (str) -
    - -
    returns (TQCString)
    static
    - -
    ArgumentTypeDefault
    strTQCString
    -

  • -
  • uuencode (in, out) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    inTQByteArray
    outTQByteArray
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KCompletion.html b/python/pykde/doc/classref/kdecore/KCompletion.html deleted file mode 100644 index a10ae3b3..00000000 --- a/python/pykde/doc/classref/kdecore/KCompletion.html +++ /dev/null @@ -1,211 +0,0 @@ - - - - - class KCompletion - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KCompletion


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKCompletion
InheritsTQObject
-

enums

    -
  • CompOrder = {Sorted, Insertion, Weighted -}
-

methods

    -
  • KCompletion () -
    -
    returns a KCompletion instance

  • -
  • addItem (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemTQString
    -

  • -
  • addItem (item, weight) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    itemTQString
    weightuint
    -

  • -
  • allMatches () -
    -
    returns (TQStringList)

  • -
  • allMatches (string) -
    -
    returns (TQStringList)
    - -
    ArgumentTypeDefault
    stringTQString
    -

  • -
  • 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
    itemsTQStringList
    -

  • -
  • isEmpty () -
    - -
    returns (bool)
    In versions KDE 3.3.0 and above only

  • -
  • isSoundsEnabled () -
    -
    returns (bool)

  • -
  • items () -
    -
    returns (TQStringList)

  • -
  • lastMatch () -
    -
    returns (TQString)

  • -
  • makeCompletion (string) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    stringTQString
    -

  • -
  • match (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemTQString
    -

  • -
  • matches (matchlist) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    matchlistTQStringList
    -

  • -
  • multipleMatches () -
    -
    returns nothing

  • -
  • nextMatch () -
    -
    returns (TQString)

  • -
  • order () -
    -
    returns (CompOrder)

  • -
  • postProcessMatch (match) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    matchTQString
    -

  • -
  • postProcessMatches (matches) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    matchesTQStringList
    -

  • -
  • postProcessMatches (matches) -
    Not Implemented
    -

  • -
  • previousMatch () -
    -
    returns (TQString)

  • -
  • removeItem (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemTQString
    -

  • -
  • setCompletionMode (mode) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    modeKGlobalSettings.Completion
    -

  • -
  • setEnableSounds (enable) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    enablebool
    -

  • -
  • setIgnoreCase (ignoreCase) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    ignoreCasebool
    -

  • -
  • setItems (list) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    listTQStringList
    -

  • -
  • setOrder (order) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    orderKCompletion.CompOrder
    -

  • -
  • slotMakeCompletion (string) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    stringTQString
    -

  • -
  • slotNextMatch () -
    -
    returns nothing

  • -
  • slotPreviousMatch () -
    -
    returns nothing

  • -
  • substringCompletion (string) -
    -
    returns (TQStringList)
    - -
    ArgumentTypeDefault
    stringTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KCompletionBase.html b/python/pykde/doc/classref/kdecore/KCompletionBase.html deleted file mode 100644 index c4ada8da..00000000 --- a/python/pykde/doc/classref/kdecore/KCompletionBase.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - 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
    itemsTQStringList
    -

  • -
  • setCompletedText (text) = 0 -
    - -
    returns nothing
    pure virtual
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KConfig.html b/python/pykde/doc/classref/kdecore/KConfig.html deleted file mode 100644 index 54e6442c..00000000 --- a/python/pykde/doc/classref/kdecore/KConfig.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - class KConfig - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KConfig


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKConfig
InheritsKConfigBase
-

methods

    -
  • KConfig (fileName = TQString .null, bReadOnly = 0, bUseKDEGlobals = 1, resType = "config") -
    -
    returns a KConfig instance
    - - - - -
    ArgumentTypeDefault
    fileNameTQStringTQString .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
    idTQString
    updateFileTQString
    -

  • -
  • copyTo (file, config = 0) -
    - -
    returns (KConfig)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    fileTQString
    configKConfig0
    -

  • -
  • entryMap (pGroup) -
    -
    returns (TQMap)
    - -
    ArgumentTypeDefault
    pGroupTQString
    -

  • -
  • forceGlobal () -
    -
    returns (bool)

  • -
  • groupList () -
    -
    returns (TQStringList)

  • -
  • internalEntryMap (pGroup) -
    -
    returns (KEntryMap)
    - -
    ArgumentTypeDefault
    pGroupTQString
    -

  • -
  • internalEntryMap () -
    -
    returns (KEntryMap)

  • -
  • internalHasGroup (group) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    groupTQCString
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KConfigBackEnd.html b/python/pykde/doc/classref/kdecore/KConfigBackEnd.html deleted file mode 100644 index f6bdf5d9..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigBackEnd.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - 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
    _fileNameTQString
    _resTypechar
    _useKDEGlobalsbool
    -

  • -
  • changeFileName (_fileName, _resType, _useKDEGlobals) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    _fileNameTQString
    _resTypechar
    _useKDEGlobalsbool
    -

  • -
  • checkConfigFilesWritable (warnUser) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    warnUserbool
    -

  • -
  • fileName () -
    -
    returns (TQString)

  • -
  • filename () -
    -
    returns (TQString)

  • -
  • 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
    _localeStringTQCString
    -

  • -
  • sync (bMerge = 1) = 0 -
    - -
    returns nothing
    pure virtual
    - -
    ArgumentTypeDefault
    bMergebool1
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KConfigBase.html b/python/pykde/doc/classref/kdecore/KConfigBase.html deleted file mode 100644 index fc4edf5a..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigBase.html +++ /dev/null @@ -1,970 +0,0 @@ - - - - - class KConfigBase - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KConfigBase


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKConfigBase (abstract)
InheritsTQObject
-

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
    pKeyTQString
    bNLSbool0
    bGlobalbool0
    -

  • -
  • deleteEntry (pKey, bNLS = 0, bGlobal = 0) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    pKeychar
    bNLSbool0
    bGlobalbool0
    -

  • -
  • deleteGroup (group, bDeep = 1, bGlobal = 0) -
    -
    returns (bool)
    - - - -
    ArgumentTypeDefault
    groupTQString
    bDeepbool1
    bGlobalbool0
    -

  • -
  • entryIsImmutable (key) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • entryMap (group) = 0 -
    - -
    returns (TQMap)
    pure virtual
    - -
    ArgumentTypeDefault
    groupTQString
    -

  • -
  • getConfigState () -
    -
    returns (ConfigState)

  • -
  • group () -
    -
    returns (TQString)

  • -
  • groupIsImmutable (group) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    groupTQString
    -

  • -
  • groupList () = 0 -
    - -
    returns (TQStringList)
    pure virtual

  • -
  • hasDefault (key) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • hasGroup (group) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    groupTQString
    -

  • -
  • hasGroup (_pGroup) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    _pGroupTQCString
    -

  • -
  • hasGroup (_pGroup) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    _pGroupchar
    -

  • -
  • hasKey (key) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • hasKey (pKey) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    pKeychar
    -

  • -
  • internalEntryMap (pGroup) = 0 -
    - -
    returns (KEntryMap)
    pure virtual
    - -
    ArgumentTypeDefault
    pGroupTQString
    -

  • -
  • internalEntryMap () = 0 -
    - -
    returns (KEntryMap)
    pure virtual

  • -
  • internalHasGroup (group) = 0 -
    - -
    returns (bool)
    pure virtual
    - -
    ArgumentTypeDefault
    groupTQCString
    -

  • -
  • isDirty () -
    -
    returns (bool)

  • -
  • isDollarExpansion () -
    -
    returns (bool)

  • -
  • isImmutable () -
    -
    returns (bool)

  • -
  • isReadOnly () -
    -
    returns (bool)

  • -
  • locale () -
    -
    returns (TQString)

  • -
  • 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
    pKeyTQString
    bDefaultbool0
    -

  • -
  • readBoolEntry (pKey, bDefault = 0) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    pKeychar
    bDefaultbool0
    -

  • -
  • readColorEntry (pKey, pDefault = 0) -
    -
    returns (TQColor)
    - - -
    ArgumentTypeDefault
    pKeyTQString
    pDefaultTQColor0
    -

  • -
  • readColorEntry (pKey, pDefault = 0) -
    -
    returns (TQColor)
    - - -
    ArgumentTypeDefault
    pKeychar
    pDefaultTQColor0
    -

  • -
  • readDateTimeEntry (pKey, pDefault = 0) -
    -
    returns (TQDateTime)
    - - -
    ArgumentTypeDefault
    pKeyTQString
    pDefaultTQDateTime0
    -

  • -
  • readDateTimeEntry (pKey, pDefault = 0) -
    -
    returns (TQDateTime)
    - - -
    ArgumentTypeDefault
    pKeychar
    pDefaultTQDateTime0
    -

  • -
  • readDefaults () -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only

  • -
  • readDoubleNumEntry (pKey, nDefault = 0.0) -
    -
    returns (double)
    - - -
    ArgumentTypeDefault
    pKeyTQString
    nDefaultdouble0.0
    -

  • -
  • readDoubleNumEntry (pKey, nDefault = 0.0) -
    -
    returns (double)
    - - -
    ArgumentTypeDefault
    pKeychar
    nDefaultdouble0.0
    -

  • -
  • readEntry (pKey, aDefault = TQString .null) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    pKeyTQString
    aDefaultTQStringTQString .null
    -

  • -
  • readEntry (pKey, aDefault = TQString .null) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    pKeychar
    aDefaultTQStringTQString .null
    -

  • -
  • readEntryUntranslated (pKey, aDefault = TQString .null) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    pKeyTQString
    aDefaultTQStringTQString .null
    -

  • -
  • readEntryUntranslated (pKey, aDefault = TQString .null) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    pKeychar
    aDefaultTQStringTQString .null
    -

  • -
  • readEntryUtf8 (pKey) -
    -
    returns (TQCString)
    - -
    ArgumentTypeDefault
    pKeychar
    -

  • -
  • readFontEntry (pKey, pDefault = 0) -
    -
    returns (TQFont)
    - - -
    ArgumentTypeDefault
    pKeyTQString
    pDefaultTQFont0
    -

  • -
  • readFontEntry (pKey, pDefault = 0) -
    -
    returns (TQFont)
    - - -
    ArgumentTypeDefault
    pKeychar
    pDefaultTQFont0
    -

  • -
  • readIntListEntry (pKey) -
    -
    returns (TQValueList)
    - -
    ArgumentTypeDefault
    pKeyTQString
    -

  • -
  • readIntListEntry (pKey) -
    -
    returns (TQValueList)
    - -
    ArgumentTypeDefault
    pKeychar
    -

  • -
  • readListEntry (pKey, list, sep = ',') -
    -
    returns (int)
    - - - -
    ArgumentTypeDefault
    pKeyTQString
    listTQStrList
    sepchar','
    -

  • -
  • readListEntry (pKey, list, sep = ',') -
    -
    returns (int)
    - - - -
    ArgumentTypeDefault
    pKeychar
    listTQStrList
    sepchar','
    -

  • -
  • readListEntry (pKey, sep = ',') -
    -
    returns (TQStringList)
    - - -
    ArgumentTypeDefault
    pKeyTQString
    sepchar','
    -

  • -
  • readListEntry (pKey, sep = ',') -
    -
    returns (TQStringList)
    - - -
    ArgumentTypeDefault
    pKeychar
    sepchar','
    -

  • -
  • readListEntry (pKey, aDefault, sep = ',') -
    - -
    returns (TQStringList)
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    pKeychar
    aDefaultTQStringList
    sepchar','
    -

  • -
  • readLongNumEntry (pKey, nDefault = 0) -
    -
    returns (long)
    - - -
    ArgumentTypeDefault
    pKeyTQString
    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
    pKeyTQString
    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
    pKeyTQString
    nDefaultint0
    -

  • -
  • readNumEntry (pKey, nDefault = 0) -
    -
    returns (int)
    - - -
    ArgumentTypeDefault
    pKeychar
    nDefaultint0
    -

  • -
  • readPathEntry (pKey, aDefault = TQString .null) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    pKeyTQString
    aDefaultTQStringTQString .null
    -

  • -
  • readPathEntry (pKey, aDefault = TQString .null) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    pKeychar
    aDefaultTQStringTQString .null
    -

  • -
  • readPathListEntry (pKey, sep = ',') -
    - -
    returns (TQStringList)
    In versions KDE 3.1.3 and above only
    - - -
    ArgumentTypeDefault
    pKeyTQString
    sepchar','
    -

  • -
  • readPathListEntry (pKey, sep = ',') -
    - -
    returns (TQStringList)
    In versions KDE 3.1.3 and above only
    - - -
    ArgumentTypeDefault
    pKeychar
    sepchar','
    -

  • -
  • readPointEntry (pKey, pDefault = 0) -
    -
    returns (TQPoint)
    - - -
    ArgumentTypeDefault
    pKeyTQString
    pDefaultTQPoint0
    -

  • -
  • readPointEntry (pKey, pDefault = 0) -
    -
    returns (TQPoint)
    - - -
    ArgumentTypeDefault
    pKeychar
    pDefaultTQPoint0
    -

  • -
  • readPropertyEntry (pKey, a0) -
    -
    returns (TQVariant)
    - - -
    ArgumentTypeDefault
    pKeyTQString
    a0TQVariant.Type
    -

  • -
  • readPropertyEntry (pKey, a0) -
    -
    returns (TQVariant)
    - - -
    ArgumentTypeDefault
    pKeychar
    a0TQVariant.Type
    -

  • -
  • readPropertyEntry (pKey, aDefault) -
    -
    returns (TQVariant)
    - - -
    ArgumentTypeDefault
    pKeyTQString
    aDefaultTQVariant
    -

  • -
  • readPropertyEntry (pKey, aDefault) -
    -
    returns (TQVariant)
    - - -
    ArgumentTypeDefault
    pKeychar
    aDefaultTQVariant
    -

  • -
  • readRectEntry (pKey, pDefault = 0) -
    -
    returns (TQRect)
    - - -
    ArgumentTypeDefault
    pKeyTQString
    pDefaultTQRect0
    -

  • -
  • readRectEntry (pKey, pDefault = 0) -
    -
    returns (TQRect)
    - - -
    ArgumentTypeDefault
    pKeychar
    pDefaultTQRect0
    -

  • -
  • readSizeEntry (pKey, pDefault = 0) -
    -
    returns (TQSize)
    - - -
    ArgumentTypeDefault
    pKeyTQString
    pDefaultTQSize0
    -

  • -
  • readSizeEntry (pKey, pDefault = 0) -
    -
    returns (TQSize)
    - - -
    ArgumentTypeDefault
    pKeychar
    pDefaultTQSize0
    -

  • -
  • readUnsignedLongNumEntry (pKey, nDefault = 0) -
    -
    returns (ulong)
    - - -
    ArgumentTypeDefault
    pKeyTQString
    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
    pKeyTQString
    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
    pKeyTQString
    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
    keyTQString
    -

  • -
  • 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
    groupTQString
    -

  • -
  • setGroup (pGroup) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pGroupTQCString
    -

  • -
  • 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
    pKeyTQString
    pValueTQString
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, pValue, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeychar
    pValueTQString
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, pValue, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeyTQString
    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
    pKeyTQString
    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
    pKeyTQString
    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
    pKeyTQString
    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
    pKeyTQString
    rValueTQVariant
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rFont, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeyTQString
    rFontTQFont
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rFont, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeychar
    rFontTQFont
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rColor, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeyTQString
    rColorTQColor
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rColor, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeychar
    rColorTQColor
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rDateTime, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeyTQString
    rDateTimeTQDateTime
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rDateTime, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeychar
    rDateTimeTQDateTime
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeyTQString
    rValueTQRect
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeychar
    rValueTQRect
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeyTQString
    rValueTQPoint
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeychar
    rValueTQPoint
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeychar
    rValueTQVariant
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeyTQString
    rValueTQSize
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeychar
    rValueTQSize
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rValue, sep = ',', bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - - -
    ArgumentTypeDefault
    pKeyTQString
    rValueTQStrList
    sepchar','
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rValue, sep = ',', bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - - -
    ArgumentTypeDefault
    pKeychar
    rValueTQStrList
    sepchar','
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rValue, sep = ',', bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - - -
    ArgumentTypeDefault
    pKeyTQString
    rValueTQStringList
    sepchar','
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rValue, sep = ',', bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - - -
    ArgumentTypeDefault
    pKeychar
    rValueTQStringList
    sepchar','
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeyTQString
    rValueTQValueList
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeychar
    rValueTQValueList
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writePathEntry (pKey, path, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeyTQString
    pathTQString
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
  • writePathEntry (pKey, path, bPersistent = 1, bGlobal = 0, bNLS = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pKeychar
    pathTQString
    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
    pKeyTQString
    rValueTQStringList
    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
    rValueTQStringList
    sepchar','
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KConfigDialogManager.html b/python/pykde/doc/classref/kdecore/KConfigDialogManager.html deleted file mode 100644 index 7719a94c..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigDialogManager.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - class KConfigDialogManager - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KConfigDialogManager


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKConfigDialogManager
InheritsTQObject
-

methods

    -
  • KConfigDialogManager (parent, conf, name = 0) -
    - -
    returns a KConfigDialogManager instance
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    parentTQWidget
    confKConfigSkeleton
    namechar0
    -

  • -
  • addWidget (widget) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    widgetTQWidget
    -

  • -
  • 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
    widgetTQWidget
    trackChangesbool
    -

  • -
  • property (w) -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    wTQWidget
    -

  • -
  • setProperty (w, v) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    wTQWidget
    vTQVariant
    -

  • -
  • 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
    widgetTQWidget
    -

  • -
  • setupWidget (widget, item) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    widgetTQWidget
    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/python/pykde/doc/classref/kdecore/KConfigGroup.html b/python/pykde/doc/classref/kdecore/KConfigGroup.html deleted file mode 100644 index ef8fbff2..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigGroup.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - 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
    groupTQCString
    -

  • -
  • KConfigGroup (master, group) -
    -
    returns a KConfigGroup instance
    - - -
    ArgumentTypeDefault
    masterKConfigBase
    groupTQString
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KConfigGroupSaver.html b/python/pykde/doc/classref/kdecore/KConfigGroupSaver.html deleted file mode 100644 index 7ae10642..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigGroupSaver.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - 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
    groupTQString
    -

  • -
  • KConfigGroupSaver (config, group) -
    -
    returns a KConfigGroupSaver instance
    - - -
    ArgumentTypeDefault
    configKConfigBase
    groupchar
    -

  • -
  • KConfigGroupSaver (config, group) -
    -
    returns a KConfigGroupSaver instance
    - - -
    ArgumentTypeDefault
    configKConfigBase
    groupTQCString
    -

  • -
  • KConfigGroupSaver (a0) -
    -
    returns a KConfigGroupSaver instance
    - -
    ArgumentTypeDefault
    a0KConfigGroupSaver
    -

  • -
  • config () -
    -
    returns (KConfigBase)

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KConfigINIBackEnd.html b/python/pykde/doc/classref/kdecore/KConfigINIBackEnd.html deleted file mode 100644 index 41082d54..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigINIBackEnd.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - 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
    _fileNameTQString
    _resTypechar
    _useKDEGlobalsbool1
    -

  • -
  • getEntryMap (map, bGlobal, mergeFile) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    mapKEntryMap
    bGlobalbool
    mergeFileTQFile
    -

  • -
  • parseConfigFiles () -
    -
    returns (bool)

  • -
  • parseSingleConfigFile (rFile, pWriteBackMap = 0, bGlobal = 0, bDefault = 0) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    rFileTQFile
    pWriteBackMapKEntryMap0
    bGlobalbool0
    bDefaultbool0
    -

  • -
  • sync (bMerge = 1) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    bMergebool1
    -

  • -
  • writeConfigFile (filename, bGlobal = 0, bMerge = 1) -
    -
    returns (bool)
    - - - -
    ArgumentTypeDefault
    filenameTQString
    bGlobalbool0
    bMergebool1
    -

  • -
  • writeEntries (pStream, aTempMap) -
    Not Implemented
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemBool.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemBool.html deleted file mode 100644 index 3100fbec..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemBool.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - 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
    groupTQString
    keyTQString
    referencebool
    defaultValuebool1
    -

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQVariant
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemColor.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemColor.html deleted file mode 100644 index 1698a962..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemColor.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - 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 = TQColor (128 ,128 ,128 )) -
    - -
    returns a ItemColor instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2TQColor
    a3TQColorTQColor (128 ,128 ,128 )
    -

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQColor
    -

  • -
  • setProperty (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQVariant
    -

  • -
  • setValue (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQColor
    -

  • -
  • swapDefault () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
  • value () -
    - -
    returns (TQColor)
    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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemDateTime.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemDateTime.html deleted file mode 100644 index 6157ebf2..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemDateTime.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - 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 = TQDateTime ()) -
    - -
    returns a ItemDateTime instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2TQDateTime
    a3TQDateTimeTQDateTime ()
    -

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQDateTime
    -

  • -
  • setProperty (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQVariant
    -

  • -
  • setValue (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQDateTime
    -

  • -
  • swapDefault () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
  • value () -
    - -
    returns (TQDateTime)
    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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemDouble.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemDouble.html deleted file mode 100644 index 96ecbef6..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemDouble.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - 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
    groupTQString
    keyTQString
    referencedouble
    defaultValuedouble0
    -

  • -
  • maxValue () -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only

  • -
  • minValue () -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQVariant
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemEnum.Choice.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemEnum.Choice.html deleted file mode 100644 index 2cd6f14a..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemEnum.Choice.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 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
    labelTQString
    nameTQString
    whatsThisTQString
- - - diff --git a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemEnum.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemEnum.html deleted file mode 100644 index 8f3a784a..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemEnum.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - 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
    groupTQString
    keyTQString
    referenceint
    choicesTQValueList
    defaultValueint1
    -

  • -
  • choices () -
    - -
    returns (TQValueList)
    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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemFont.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemFont.html deleted file mode 100644 index 80716eeb..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemFont.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - 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
    a0TQString
    a1TQString
    a2TQFont
    a3TQFontKGlobalSettings .generalFont ()
    -

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQFont
    -

  • -
  • setProperty (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQVariant
    -

  • -
  • setValue (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQFont
    -

  • -
  • swapDefault () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
  • value () -
    - -
    returns (TQFont)
    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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemInt.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemInt.html deleted file mode 100644 index b3a99ff9..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemInt.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - 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
    groupTQString
    keyTQString
    referenceint
    defaultValueint1
    -

  • -
  • maxValue () -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only

  • -
  • minValue () -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQVariant
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemInt64.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemInt64.html deleted file mode 100644 index 59f0582f..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemInt64.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - 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
    groupTQString
    keyTQString
    referencelonglong
    defaultValuelonglong0
    -

  • -
  • maxValue () -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only

  • -
  • minValue () -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQVariant
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemIntList.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemIntList.html deleted file mode 100644 index 552a6045..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemIntList.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - 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
    groupTQString
    keyTQString
    referencea Python list of int
    defaultValuea Python list of int0
    -

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQValueList
    -

  • -
  • setProperty (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQVariant
    -

  • -
  • setValue (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQValueList
    -

  • -
  • swapDefault () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
  • value () -
    - -
    returns (TQValueList)
    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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemLong.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemLong.html deleted file mode 100644 index 3e617747..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemLong.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - 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
    groupTQString
    keyTQString
    referencelong
    defaultValuelong1
    -

  • -
  • maxValue () -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only

  • -
  • minValue () -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQVariant
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemPassword.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemPassword.html deleted file mode 100644 index 3f0b7180..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemPassword.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - 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 = TQString .fromLatin1 ("" )) -
    - -
    returns a ItemPassword instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    groupTQString
    keyTQString
    referenceTQString
    defaultValueTQStringTQString .fromLatin1 ("" )
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemPath.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemPath.html deleted file mode 100644 index 83ffe3e7..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemPath.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - 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 = TQString .null) -
    - -
    returns a ItemPath instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    groupTQString
    keyTQString
    referenceTQString
    defaultValueTQStringTQString .null
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemPathList.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemPathList.html deleted file mode 100644 index 5134d761..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemPathList.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - 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 = TQStringList ()) -
    - -
    returns a ItemPathList instance
    In versions KDE 3.4.0 and above only
    - - - - -
    ArgumentTypeDefault
    groupTQString
    keyTQString
    referenceTQStringList
    defaultValueTQStringListTQStringList ()
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemPoint.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemPoint.html deleted file mode 100644 index d0262394..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemPoint.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - 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 = TQPoint ()) -
    - -
    returns a ItemPoint instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2TQPoint
    a3TQPointTQPoint ()
    -

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQPoint
    -

  • -
  • setProperty (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQVariant
    -

  • -
  • setValue (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQPoint
    -

  • -
  • swapDefault () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
  • value () -
    - -
    returns (TQPoint)
    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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemProperty.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemProperty.html deleted file mode 100644 index 6a47d1bc..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemProperty.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - 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
    groupTQString
    keyTQString
    referenceTQVariant
    defaultValueTQVariant0
    -

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQVariant
    -

  • -
  • setProperty (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQVariant
    -

  • -
  • setValue (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQVariant
    -

  • -
  • swapDefault () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
  • value () -
    - -
    returns (TQVariant)
    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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemRect.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemRect.html deleted file mode 100644 index 69a740bd..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemRect.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - 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 = TQRect ()) -
    - -
    returns a ItemRect instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2TQRect
    a3TQRectTQRect ()
    -

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQRect
    -

  • -
  • setProperty (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQVariant
    -

  • -
  • setValue (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQRect
    -

  • -
  • swapDefault () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
  • value () -
    - -
    returns (TQRect)
    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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemSize.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemSize.html deleted file mode 100644 index 6770ade2..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemSize.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - 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 = TQSize ()) -
    - -
    returns a ItemSize instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2TQSize
    a3TQSizeTQSize ()
    -

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQSize
    -

  • -
  • setProperty (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQVariant
    -

  • -
  • setValue (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQSize
    -

  • -
  • swapDefault () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
  • value () -
    - -
    returns (TQSize)
    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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemString.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemString.html deleted file mode 100644 index 5e5e882c..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemString.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - 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 = TQString .fromLatin1 ("" ), a4 = KConfigSkeleton .ItemString .Normal) -
    - -
    returns a ItemString instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2TQString
    a3TQStringTQString .fromLatin1 ("" )
    a4KConfigSkeleton.ItemString.TypeKConfigSkeleton .ItemString .Normal
    -

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQString
    -

  • -
  • setProperty (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQVariant
    -

  • -
  • setValue (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • swapDefault () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
  • value () -
    - -
    returns (TQString)
    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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemStringList.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemStringList.html deleted file mode 100644 index 8d744d81..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemStringList.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - 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 = TQStringList ()) -
    - -
    returns a ItemStringList instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2TQStringList
    a3TQStringListTQStringList ()
    -

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQStringList
    -

  • -
  • setProperty (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQVariant
    -

  • -
  • setValue (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQStringList
    -

  • -
  • swapDefault () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
  • value () -
    - -
    returns (TQStringList)
    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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemUInt.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemUInt.html deleted file mode 100644 index a3fa1008..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemUInt.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - 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
    groupTQString
    keyTQString
    referenceuint
    defaultValueuint1
    -

  • -
  • maxValue () -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only

  • -
  • minValue () -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQVariant
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemUInt64.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemUInt64.html deleted file mode 100644 index a28b1ea1..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemUInt64.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - 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
    groupTQString
    keyTQString
    referenceulonglong
    defaultValueulonglong0
    -

  • -
  • maxValue () -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only

  • -
  • minValue () -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQVariant
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemULong.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemULong.html deleted file mode 100644 index 767ba171..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.ItemULong.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - 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
    groupTQString
    keyTQString
    referenceulong
    defaultValueulong1
    -

  • -
  • maxValue () -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only

  • -
  • minValue () -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only

  • -
  • property () -
    - -
    returns (TQVariant)
    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
    a0TQVariant
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KConfigSkeleton.html b/python/pykde/doc/classref/kdecore/KConfigSkeleton.html deleted file mode 100644 index 57fadda6..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeleton.html +++ /dev/null @@ -1,334 +0,0 @@ - - - - - class KConfigSkeleton - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KConfigSkeleton


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKConfigSkeleton
Inherits
-

methods

    -
  • KConfigSkeleton (configname = TQString .null) -
    - -
    returns a KConfigSkeleton instance
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    confignameTQStringTQString .null
    -

  • -
  • KConfigSkeleton (config) -
    - -
    returns a KConfigSkeleton instance
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    configKSharedConfig.Ptr
    -

  • -
  • addItem (a0, name = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    a0KConfigSkeletonItem
    nameTQStringTQString .null
    -

  • -
  • addItemBool (name, value, defaultValue, key = TQString.null) -
    - -
    returns (ItemBool) reference (bool)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    valuebool
    defaultValuebool
    keyTQStringTQString.null
    -

  • -
  • addItemColor (name, reference, defaultValue = TQColor (128 ,128 ,128 ), key = TQString .null) -
    - -
    returns (ItemColor)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    referenceTQColor
    defaultValueTQColorTQColor (128 ,128 ,128 )
    keyTQStringTQString .null
    -

  • -
  • addItemDateTime (name, reference, defaultValue = TQDateTime (), key = TQString .null) -
    - -
    returns (ItemDateTime)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    referenceTQDateTime
    defaultValueTQDateTimeTQDateTime ()
    keyTQStringTQString .null
    -

  • -
  • addItemDouble (name, value, defaultValue, key = TQString.null) -
    - -
    returns (ItemDouble) reference (double)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    valuedouble
    defaultValuedouble
    keyTQStringTQString.null
    -

  • -
  • addItemFont (name, reference, defaultValue = KGlobalSettings .generalFont (), key = TQString .null) -
    - -
    returns (ItemFont)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    referenceTQFont
    defaultValueTQFontKGlobalSettings .generalFont ()
    keyTQStringTQString .null
    -

  • -
  • addItemInt (name, value, defaultValue, key = TQString.null) -
    - -
    returns (ItemInt) reference (int)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    valueint
    defaultValueint
    keyTQStringTQString.null
    -

  • -
  • addItemInt64 (name, reference, defaultValue = 0, key = TQString .null) -
    - -
    returns (KConfigSkeleton.ItemInt64)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    referencelonglong
    defaultValuelonglong0
    keyTQStringTQString .null
    -

  • -
  • addItemIntList (name, reference, defaultValue = [], key = TQString.null) -
    - -
    returns a Python list of int,
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    referencea Python list of int
    defaultValuea Python list of int[]
    keyTQStringTQString.null
    -

  • -
  • addItemLong (name, value, defaultValue, key = TQString.null) -
    - -
    returns (ItemLong) reference (long)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    valuelong
    defaultValuelong
    keyTQStringTQString.null
    -

  • -
  • addItemPassword (name, reference, defaultValue = TQString .fromLatin1 ("" ), key = TQString .null) -
    - -
    returns (KConfigSkeleton.ItemPassword)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    referenceTQString
    defaultValueTQStringTQString .fromLatin1 ("" )
    keyTQStringTQString .null
    -

  • -
  • addItemPath (name, reference, defaultValue = TQString .fromLatin1 ("" ), key = TQString .null) -
    - -
    returns (KConfigSkeleton.ItemPath)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    referenceTQString
    defaultValueTQStringTQString .fromLatin1 ("" )
    keyTQStringTQString .null
    -

  • -
  • addItemPoint (name, reference, defaultValue = TQPoint (), key = TQString .null) -
    - -
    returns (ItemPoint)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    referenceTQPoint
    defaultValueTQPointTQPoint ()
    keyTQStringTQString .null
    -

  • -
  • addItemProperty (name, reference, defaultValue = TQVariant (), key = TQString .null) -
    - -
    returns (ItemProperty)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    referenceTQVariant
    defaultValueTQVariantTQVariant ()
    keyTQStringTQString .null
    -

  • -
  • addItemRect (name, reference, defaultValue = TQRect (), key = TQString .null) -
    - -
    returns (ItemRect)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    referenceTQRect
    defaultValueTQRectTQRect ()
    keyTQStringTQString .null
    -

  • -
  • addItemSize (name, reference, defaultValue = TQSize (), key = TQString .null) -
    - -
    returns (ItemSize)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    referenceTQSize
    defaultValueTQSizeTQSize ()
    keyTQStringTQString .null
    -

  • -
  • addItemString (name, reference, defaultValue = TQString .fromLatin1 ("" ), key = TQString .null) -
    - -
    returns (ItemString)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    referenceTQString
    defaultValueTQStringTQString .fromLatin1 ("" )
    keyTQStringTQString .null
    -

  • -
  • addItemStringList (name, reference, defaultValue = TQStringList (), key = TQString .null) -
    - -
    returns (KConfigSkeleton.ItemStringList)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    referenceTQStringList
    defaultValueTQStringListTQStringList ()
    keyTQStringTQString .null
    -

  • -
  • addItemUInt (name, value, defaultValue, key = TQString.null) -
    - -
    returns (ItemUInt) reference (uint)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    valueuint
    defaultValueuint
    keyTQStringTQString.null
    -

  • -
  • addItemUInt64 (name, reference, defaultValue = 0, key = TQString .null) -
    - -
    returns (KConfigSkeleton.ItemUInt64)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    referenceulonglong
    defaultValueulonglong0
    keyTQStringTQString .null
    -

  • -
  • addItemULong (name, value, defaultValue, key = TQString.null) -
    - -
    returns (ItemULong) reference (ulong)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    valueulong
    defaultValueulong
    keyTQStringTQString.null
    -

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

  • -
  • currentGroup () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • findItem (name) -
    - -
    returns (KConfigSkeletonItem)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • isImmutable (name) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • 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
    groupTQString
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KConfigSkeletonItem.html b/python/pykde/doc/classref/kdecore/KConfigSkeletonItem.html deleted file mode 100644 index 9be7a32b..00000000 --- a/python/pykde/doc/classref/kdecore/KConfigSkeletonItem.html +++ /dev/null @@ -1,170 +0,0 @@ - - - - - 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
    groupTQString
    keyTQString
    -

  • -
  • group () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • isImmutable () -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only

  • -
  • key () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • label () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • maxValue () -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only

  • -
  • minValue () -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only

  • -
  • name () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • property () = 0 -
    - - -
    returns (TQVariant)
    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
    groupTQString
    -

  • -
  • setKey (key) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • setLabel (l) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    lTQString
    -

  • -
  • setName (name) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • setProperty (p) = 0 -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    pure virtual
    - -
    ArgumentTypeDefault
    pTQVariant
    -

  • -
  • setWhatsThis (w) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    wTQString
    -

  • -
  • swapDefault () = 0 -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    pure virtual

  • -
  • whatsThis () -
    - -
    returns (TQString)
    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/python/pykde/doc/classref/kdecore/KCrash.html b/python/pykde/doc/classref/kdecore/KCrash.html deleted file mode 100644 index 0b8438b1..00000000 --- a/python/pykde/doc/classref/kdecore/KCrash.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - 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
    nameTQString
    -

  • -
  • setApplicationPath (path) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KDCOPPropertyProxy.html b/python/pykde/doc/classref/kdecore/KDCOPPropertyProxy.html deleted file mode 100644 index 700a6765..00000000 --- a/python/pykde/doc/classref/kdecore/KDCOPPropertyProxy.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - 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
    objectTQObject
    -

  • -
  • functions () -
    -
    returns (TQValueList)

  • -
  • functions (object) -
    - -
    returns (TQValueList)
    static
    - -
    ArgumentTypeDefault
    objectTQObject
    -

  • -
  • isPropertyRequest (fun) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    funTQCString
    -

  • -
  • isPropertyRequest (fun, object) -
    - -
    returns (bool)
    static
    - - -
    ArgumentTypeDefault
    funTQCString
    objectTQObject
    -

  • -
  • processPropertyRequest (fun, data, replyType, replyData) -
    -
    returns (bool)
    - - - - -
    ArgumentTypeDefault
    funTQCString
    dataTQByteArray
    replyTypeTQCString
    replyDataTQByteArray
    -

  • -
  • processPropertyRequest (fun, data, replyType, replyData, object) -
    - -
    returns (bool)
    static
    - - - - - -
    ArgumentTypeDefault
    funTQCString
    dataTQByteArray
    replyTypeTQCString
    replyDataTQByteArray
    objectTQObject
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KDE.html b/python/pykde/doc/classref/kdecore/KDE.html deleted file mode 100644 index 8c11f7c5..00000000 --- a/python/pykde/doc/classref/kdecore/KDE.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/KDesktopFile.html b/python/pykde/doc/classref/kdecore/KDesktopFile.html deleted file mode 100644 index ccd5e0ae..00000000 --- a/python/pykde/doc/classref/kdecore/KDesktopFile.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - - 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
    fileNameTQString
    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
    fileTQString
    -

  • -
  • fileName () -
    -
    returns (TQString)

  • -
  • filename () -
    -
    returns (TQString)

  • -
  • hasActionGroup (group) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    groupTQString
    -

  • -
  • 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
    pathTQString
    -

  • -
  • isDesktopFile (path) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
  • locateLocal (path) -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
  • readActions () -
    -
    returns (TQStringList)

  • -
  • readComment () -
    -
    returns (TQString)

  • -
  • readDevice () -
    -
    returns (TQString)

  • -
  • readDocPath () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • readGenericName () -
    -
    returns (TQString)

  • -
  • readIcon () -
    -
    returns (TQString)

  • -
  • readName () -
    -
    returns (TQString)

  • -
  • readPath () -
    -
    returns (TQString)

  • -
  • readType () -
    -
    returns (TQString)

  • -
  • readURL () -
    -
    returns (TQString)

  • -
  • resource () -
    -
    returns (TQString)

  • -
  • setActionGroup (group) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    groupTQString
    -

  • -
  • sortOrder () -
    -
    returns (TQStringList)

  • -
  • tryExec () -
    -
    returns (bool)

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KEntry.html b/python/pykde/doc/classref/kdecore/KEntry.html deleted file mode 100644 index a77ea4ac..00000000 --- a/python/pykde/doc/classref/kdecore/KEntry.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - 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
    mValueTQCString
- - - diff --git a/python/pykde/doc/classref/kdecore/KEntryKey.html b/python/pykde/doc/classref/kdecore/KEntryKey.html deleted file mode 100644 index 6f7c6e7f..00000000 --- a/python/pykde/doc/classref/kdecore/KEntryKey.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - class KEntryKey - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KEntryKey


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKEntryKey
Inherits
-

methods

    -
  • KEntryKey (_group = TQCString ("" ), _key = TQCString ("" )) -
    -
    returns a KEntryKey instance
    - - -
    ArgumentTypeDefault
    _groupTQCStringTQCString ("" )
    _keyTQCStringTQCString ("" )
    -

  • -
-

variables

  • -variables - - - - - -
    VariableType
    bDefaultbool
    bLocalbool
    c_keychar*
    mGroupTQCString
    mKeyTQCString
- - - diff --git a/python/pykde/doc/classref/kdecore/KGlobal.html b/python/pykde/doc/classref/kdecore/KGlobal.html deleted file mode 100644 index e0615e7a..00000000 --- a/python/pykde/doc/classref/kdecore/KGlobal.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - 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 (TQString)
    static
    - -
    ArgumentTypeDefault
    strchar
    -

  • -
  • staticQString (str) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    strTQString
    -

  • -
  • unregisterStaticDeleter (d) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    dKStaticDeleterBase
    -

  • -
-

variables

  • -variables - - - - - - -
    VariableType
    _activeInstanceKInstance*
    _charsetsKCharsets*
    _instanceKInstance*
    _localeKLocale*
    _staticDeletersKStaticDeleterList*
    _stringDictKStringDict*
- - - diff --git a/python/pykde/doc/classref/kdecore/KGlobalAccel.html b/python/pykde/doc/classref/kdecore/KGlobalAccel.html deleted file mode 100644 index 84aed33c..00000000 --- a/python/pykde/doc/classref/kdecore/KGlobalAccel.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - class KGlobalAccel - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KGlobalAccel


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKGlobalAccel
InheritsTQObject
-

methods

    -
  • KGlobalAccel (pParent, psName = 0) -
    -
    returns a KGlobalAccel instance
    - - -
    ArgumentTypeDefault
    pParentTQObject
    psNamechar0
    -

  • -
  • blockShortcuts (block) -
    - - -
    returns nothing
    In versions KDE 3.5.0 and above only
    static
    - -
    ArgumentTypeDefault
    blockbool
    -

  • -
  • configGroup () -
    -
    returns (TQString)

  • -
  • 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
    sActionTQString
    sLabelTQString
    sWhatsThisTQString
    cutDef3KShortcut
    cutDef4KShortcut
    slotSLOT (Python callable)
    bConfigurablebool1
    bEnabledbool1
    -

  • -
  • insert (sName, sLabel) -
    -
    returns (KAccelAction)
    - - -
    ArgumentTypeDefault
    sNameTQString
    sLabelTQString
    -

  • -
  • isEnabled () -
    -
    returns (bool)

  • -
  • label (sAction) -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    sActionTQString
    -

  • -
  • readSettings (pConfig = 0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    pConfigKConfigBase0
    -

  • -
  • remove (sAction) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    sActionTQString
    -

  • -
  • setActionEnabled (sAction, bEnable) -
    - -
    returns (bool)
    In versions KDE 3.4.0 and above only
    - - -
    ArgumentTypeDefault
    sActionTQString
    bEnablebool
    -

  • -
  • setConfigGroup (cg) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    cgTQString
    -

  • -
  • setEnabled (bEnabled) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    bEnabledbool
    -

  • -
  • setEnabled (a0, a1) -
    Not Implemented
    -

  • -
  • setShortcut (sAction, shortcut) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    sActionTQString
    shortcutKShortcut
    -

  • -
  • setSlot (sAction, slot, ) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    sActionTQString
    slotSLOT (Python callable)
    -

  • -
  • shortcut (sAction) -
    -
    returns (KShortcut)
    - -
    ArgumentTypeDefault
    sActionTQString
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KGlobalSettings.KMouseSettings.html b/python/pykde/doc/classref/kdecore/KGlobalSettings.KMouseSettings.html deleted file mode 100644 index 9928940f..00000000 --- a/python/pykde/doc/classref/kdecore/KGlobalSettings.KMouseSettings.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/KGlobalSettings.html b/python/pykde/doc/classref/kdecore/KGlobalSettings.html deleted file mode 100644 index e4c42438..00000000 --- a/python/pykde/doc/classref/kdecore/KGlobalSettings.html +++ /dev/null @@ -1,270 +0,0 @@ - - - - - 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 (TQColor)
    static

  • -
  • activeTitleColor () -
    - -
    returns (TQColor)
    static

  • -
  • alternateBackgroundColor () -
    - -
    returns (TQColor)
    static

  • -
  • autoSelectDelay () -
    - -
    returns (int)
    static

  • -
  • autostartPath () -
    - -
    returns (TQString)
    static

  • -
  • baseColor () -
    - -
    returns (TQColor)
    static

  • -
  • buttonBackground () -
    - - -
    returns (TQColor)
    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 (TQColor)
    In versions KDE 3.4.0 and above only
    static

  • -
  • calculateAlternateBackgroundColor (base) -
    - -
    returns (TQColor)
    static
    - -
    ArgumentTypeDefault
    baseTQColor
    -

  • -
  • changeCursorOverIcon () -
    - -
    returns (bool)
    static

  • -
  • completionMode () -
    - -
    returns (Completion)
    static

  • -
  • contextMenuKey () -
    - -
    returns (int)
    static

  • -
  • contrast () -
    - -
    returns (int)
    static

  • -
  • desktopGeometry (point) -
    - - -
    returns (TQRect)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    pointTQPoint
    -

  • -
  • desktopGeometry (w) -
    - - -
    returns (TQRect)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    wTQWidget
    -

  • -
  • desktopPath () -
    - -
    returns (TQString)
    static

  • -
  • dndEventDelay () -
    - -
    returns (int)
    static

  • -
  • documentPath () -
    - -
    returns (TQString)
    static

  • -
  • fixedFont () -
    - -
    returns (TQFont)
    static

  • -
  • generalFont () -
    - -
    returns (TQFont)
    static

  • -
  • highlightColor () -
    - -
    returns (TQColor)
    static

  • -
  • highlightedTextColor () -
    - -
    returns (TQColor)
    static

  • -
  • inactiveTextColor () -
    - -
    returns (TQColor)
    static

  • -
  • inactiveTitleColor () -
    - -
    returns (TQColor)
    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 = TQString .null) -
    - - -
    returns (TQFont)
    In versions KDE 3.1.0 and above only
    static
    - -
    ArgumentTypeDefault
    textTQStringTQString .null
    -

  • -
  • linkColor () -
    - -
    returns (TQColor)
    static

  • -
  • menuFont () -
    - -
    returns (TQFont)
    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 (TQRect)
    In versions KDE 3.2.0 and above only
    static

  • -
  • taskbarFont () -
    - -
    returns (TQFont)
    static

  • -
  • textColor () -
    - -
    returns (TQColor)
    static

  • -
  • toolBarFont () -
    - -
    returns (TQFont)
    static

  • -
  • toolBarHighlightColor () -
    - -
    returns (TQColor)
    static

  • -
  • trashPath () -
    - -
    returns (TQString)
    static

  • -
  • visitedLinkColor () -
    - -
    returns (TQColor)
    static

  • -
  • visualActivate () -
    - -
    returns (bool)
    static

  • -
  • visualActivateSpeed () -
    - -
    returns (uint)
    static

  • -
  • wheelMouseZooms () -
    - - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    static

  • -
  • windowTitleFont () -
    - -
    returns (TQFont)
    static

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KIDNA.html b/python/pykde/doc/classref/kdecore/KIDNA.html deleted file mode 100644 index 7a28604a..00000000 --- a/python/pykde/doc/classref/kdecore/KIDNA.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - class KIDNA - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KIDNA


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKIDNA
Inherits
-

methods

    -
  • toAscii (idna) -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    idnaTQString
    -

  • -
  • toAsciiCString (idna) -
    - -
    returns (TQCString)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    idnaTQString
    -

  • -
  • toUnicode (idna) -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    idnaTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KIPC.html b/python/pykde/doc/classref/kdecore/KIPC.html deleted file mode 100644 index f9a97a9d..00000000 --- a/python/pykde/doc/classref/kdecore/KIPC.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/KIcon.html b/python/pykde/doc/classref/kdecore/KIcon.html deleted file mode 100644 index 2453851c..00000000 --- a/python/pykde/doc/classref/kdecore/KIcon.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - 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
    pathTQString
    sizeint
    thresholdint
    typeType
- - - diff --git a/python/pykde/doc/classref/kdecore/KIconEffect.html b/python/pykde/doc/classref/kdecore/KIconEffect.html deleted file mode 100644 index c5e95b23..00000000 --- a/python/pykde/doc/classref/kdecore/KIconEffect.html +++ /dev/null @@ -1,205 +0,0 @@ - - - - - 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 (TQImage)
    - - - -
    ArgumentTypeDefault
    srcTQImage
    groupint
    stateint
    -

  • -
  • apply (src, effect, value, rgb, trans) -
    -
    returns (TQImage)
    - - - - - -
    ArgumentTypeDefault
    srcTQImage
    effectint
    valuefloat
    rgbTQColor
    transbool
    -

  • -
  • apply (src, effect, value, rgb, rgb2, trans) -
    - -
    returns (TQImage)
    In versions KDE 3.4.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    srcTQImage
    effectint
    valuefloat
    rgbTQColor
    rgb2TQColor
    transbool
    -

  • -
  • apply (src, group, state) -
    -
    returns (TQPixmap)
    - - - -
    ArgumentTypeDefault
    srcTQPixmap
    groupint
    stateint
    -

  • -
  • apply (src, effect, value, rgb, trans) -
    -
    returns (TQPixmap)
    - - - - - -
    ArgumentTypeDefault
    srcTQPixmap
    effectint
    valuefloat
    rgbTQColor
    transbool
    -

  • -
  • apply (src, effect, value, rgb, rgb2, trans) -
    - -
    returns (TQPixmap)
    In versions KDE 3.4.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    srcTQPixmap
    effectint
    valuefloat
    rgbTQColor
    rgb2TQColor
    transbool
    -

  • -
  • colorize (image, col, value) -
    - -
    returns nothing
    static
    - - - -
    ArgumentTypeDefault
    imageTQImage
    colTQColor
    valuefloat
    -

  • -
  • deSaturate (image, value) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    imageTQImage
    valuefloat
    -

  • -
  • doublePixels (src) -
    -
    returns (TQImage)
    - -
    ArgumentTypeDefault
    srcTQImage
    -

  • -
  • fingerprint (group, state) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    groupint
    stateint
    -

  • -
  • hasEffect (group, state) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    groupint
    stateint
    -

  • -
  • init () -
    -
    returns nothing

  • -
  • overlay (src, overlay) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    srcTQImage
    overlayTQImage
    -

  • -
  • semiTransparent (image) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    imageTQImage
    -

  • -
  • semiTransparent (pixmap) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    pixmapTQPixmap
    -

  • -
  • toGamma (image, value) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    imageTQImage
    valuefloat
    -

  • -
  • toGray (image, value) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    imageTQImage
    valuefloat
    -

  • -
  • toMonochrome (image, black, white, value) -
    - - -
    returns nothing
    In versions KDE 3.4.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    imageTQImage
    blackTQColor
    whiteTQColor
    valuefloat
    -

  • -
  • visualActivate (widget, rect) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    widgetTQWidget
    rectTQRect
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KIconLoader.html b/python/pykde/doc/classref/kdecore/KIconLoader.html deleted file mode 100644 index f9f12b1d..00000000 --- a/python/pykde/doc/classref/kdecore/KIconLoader.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - - class KIconLoader - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KIconLoader


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKIconLoader
Inherits
-

methods

    -
  • KIconLoader (appname = TQString .null, dirs = 0) -
    -
    returns a KIconLoader instance
    - - -
    ArgumentTypeDefault
    appnameTQStringTQString .null
    dirsKStandardDirs0
    -

  • -
  • addAppDir (appname) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    appnameTQString
    -

  • -
  • 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 (TQString)
    - - - -
    ArgumentTypeDefault
    nameTQString
    group_or_sizeint
    canReturnNullbool0
    -

  • -
  • isDelayedIconSetLoadingEnabled () -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only

  • -
  • loadAnimated (name, group, size = 0) -
    -
    returns (TQStringList)
    - - - -
    ArgumentTypeDefault
    nameTQString
    groupKIcon.Group
    sizeint0
    -

  • -
  • loadIcon (name, group, size = 0, state = KIcon .DefaultState, path_store = 0, canReturnNull = 0) -
    -
    returns (TQPixmap)
    - - - - - - -
    ArgumentTypeDefault
    nameTQString
    groupKIcon.Group
    sizeint0
    stateintKIcon .DefaultState
    path_storeTQString0
    canReturnNullbool0
    -

  • -
  • loadIconSet (name, group, size, canReturnNull, immediateExistenceCheck) -
    - -
    returns (TQIconSet)
    In versions KDE 3.5.0 and above only
    - - - - - -
    ArgumentTypeDefault
    nameTQString
    groupKIcon.Group
    sizeint
    canReturnNullbool
    immediateExistenceCheckbool
    -

  • -
  • loadIconSet (name, group, size, canReturnNull) -
    - -
    returns (TQIconSet)
    In versions KDE 3.1.0 and above only
    - - - - -
    ArgumentTypeDefault
    nameTQString
    groupKIcon.Group
    sizeint
    canReturnNullbool
    -

  • -
  • loadIconSet (name, group, size = 0) -
    -
    returns (TQIconSet)
    - - - -
    ArgumentTypeDefault
    nameTQString
    groupKIcon.Group
    sizeint0
    -

  • -
  • loadMovie (name, group, size = 0) -
    -
    returns (TQMovie)
    - - - -
    ArgumentTypeDefault
    nameTQString
    groupKIcon.Group
    sizeint0
    -

  • -
  • moviePath (name, group, size = 0) -
    -
    returns (TQString)
    - - - -
    ArgumentTypeDefault
    nameTQString
    groupKIcon.Group
    sizeint0
    -

  • -
  • queryIcons (group_or_size, context = KIcon .Any) -
    -
    returns (TQStringList)
    - - -
    ArgumentTypeDefault
    group_or_sizeint
    contextKIcon.ContextKIcon .Any
    -

  • -
  • queryIconsByContext (group_or_size, context = KIcon .Any) -
    -
    returns (TQStringList)
    - - -
    ArgumentTypeDefault
    group_or_sizeint
    contextKIcon.ContextKIcon .Any
    -

  • -
  • queryIconsByDir (iconsDir) -
    - -
    returns (TQStringList)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    iconsDirTQString
    -

  • -
  • reconfigure (_appname, _dirs) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    _appnameTQString
    _dirsKStandardDirs
    -

  • -
  • theme () -
    -
    returns (KIconTheme)

  • -
  • unknown () -
    - -
    returns (TQPixmap)
    static

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KIconTheme.html b/python/pykde/doc/classref/kdecore/KIconTheme.html deleted file mode 100644 index 83e0fa6a..00000000 --- a/python/pykde/doc/classref/kdecore/KIconTheme.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - class KIconTheme - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KIconTheme


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKIconTheme
Inherits
-

methods

    -
  • KIconTheme (name, appName = TQString .null) -
    -
    returns a KIconTheme instance
    - - -
    ArgumentTypeDefault
    nameTQString
    appNameTQStringTQString .null
    -

  • -
  • current () -
    - -
    returns (TQString)
    static

  • -
  • defaultSize (group) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    groupKIcon.Group
    -

  • -
  • defaultThemeName () -
    - - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    static

  • -
  • depth () -
    -
    returns (int)

  • -
  • description () -
    -
    returns (TQString)

  • -
  • dir () -
    -
    returns (TQString)

  • -
  • example () -
    -
    returns (TQString)

  • -
  • iconPath (name, size, match) -
    -
    returns (KIcon)
    - - - -
    ArgumentTypeDefault
    nameTQString
    sizeint
    matchKIcon.MatchType
    -

  • -
  • inherits () -
    -
    returns (TQStringList)

  • -
  • isHidden () -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only

  • -
  • isValid () -
    -
    returns (bool)

  • -
  • linkOverlay () -
    -
    returns (TQString)

  • -
  • list () -
    - -
    returns (TQStringList)
    static

  • -
  • lockOverlay () -
    -
    returns (TQString)

  • -
  • name () -
    -
    returns (TQString)

  • -
  • queryIcons (size, context = KIcon .Any) -
    -
    returns (TQStringList)
    - - -
    ArgumentTypeDefault
    sizeint
    contextKIcon.ContextKIcon .Any
    -

  • -
  • queryIconsByContext (size, context = KIcon .Any) -
    -
    returns (TQStringList)
    - - -
    ArgumentTypeDefault
    sizeint
    contextKIcon.ContextKIcon .Any
    -

  • -
  • querySizes (group) -
    -
    returns (TQValueList)
    - -
    ArgumentTypeDefault
    groupKIcon.Group
    -

  • -
  • reconfigure () -
    - -
    returns nothing
    static

  • -
  • screenshot () -
    -
    returns (TQString)

  • -
  • shareOverlay () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • zipOverlay () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KInstance.html b/python/pykde/doc/classref/kdecore/KInstance.html deleted file mode 100644 index 52d6210e..00000000 --- a/python/pykde/doc/classref/kdecore/KInstance.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - 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
    instanceNameTQCString
    -

  • -
  • 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 (TQCString)

  • -
  • mimeSourceFactory () -
    -
    returns (KMimeSourceFactory)

  • -
  • newIconLoader () -
    -
    returns nothing

  • -
  • setConfigName (name) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • sharedConfig () -
    - -
    returns (KSharedConfig)
    In versions KDE 3.2.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KKey.html b/python/pykde/doc/classref/kdecore/KKey.html deleted file mode 100644 index 8b9c04ce..00000000 --- a/python/pykde/doc/classref/kdecore/KKey.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - - 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
    keySeqTQKeySequence
    -

  • -
  • KKey (keyEvent) -
    -
    returns a KKey instance
    - -
    ArgumentTypeDefault
    keyEventTQKeyEvent
    -

  • -
  • KKey (key) -
    -
    returns a KKey instance
    - -
    ArgumentTypeDefault
    keyKKey
    -

  • -
  • KKey (key) -
    -
    returns a KKey instance
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • 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
    keySeqTQKeySequence
    -

  • -
  • init (keyEvent) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keyEventTQKeyEvent
    -

  • -
  • init (key) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keyKKey
    -

  • -
  • init (key) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • init (key, mod) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    keyuint
    moduint
    -

  • -
  • isNull () -
    -
    returns (bool)

  • -
  • isValidNative () -
    Not Implemented
    -

  • -
  • isValidQt () -
    Not Implemented
    -

  • -
  • keyCodeQt () -
    -
    returns (int)

  • -
  • modFlagLabel (f) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    fKKey.ModFlag
    -

  • -
  • modFlags () -
    -
    returns (uint)

  • -
  • null () -
    - -
    returns (KKey)
    static

  • -
  • simplify () -
    -
    returns nothing

  • -
  • sym () -
    -
    returns (uint)

  • -
  • toString () -
    -
    returns (TQString)

  • -
  • toStringInternal () -
    -
    returns (TQString)

  • -
-

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/python/pykde/doc/classref/kdecore/KKeyNative.html b/python/pykde/doc/classref/kdecore/KKeyNative.html deleted file mode 100644 index 3499b791..00000000 --- a/python/pykde/doc/classref/kdecore/KKeyNative.html +++ /dev/null @@ -1,174 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/KKeySequence.html b/python/pykde/doc/classref/kdecore/KKeySequence.html deleted file mode 100644 index 1bf6658d..00000000 --- a/python/pykde/doc/classref/kdecore/KKeySequence.html +++ /dev/null @@ -1,180 +0,0 @@ - - - - - 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
    keySeqTQKeySequence
    -

  • -
  • 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
    keySeqTQString
    -

  • -
  • clear () -
    -
    returns nothing

  • -
  • compare (keySeq) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    keySeqKKeySequence
    -

  • -
  • count () -
    -
    returns (uint)

  • -
  • init (keySeq) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keySeqTQKeySequence
    -

  • -
  • init (key) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keyKKey
    -

  • -
  • init (key) -
    Not Implemented
    -

  • -
  • init (keySeq) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keySeqKKeySequence
    -

  • -
  • init (key) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • isNull () -
    -
    returns (bool)

  • -
  • isTriggerOnRelease () -
    -
    returns (bool)

  • -
  • key (i) -
    -
    returns (KKey)
    - -
    ArgumentTypeDefault
    iuint
    -

  • -
  • keyCodeQt () -
    -
    returns (int)

  • -
  • null () -
    - -
    returns (KKeySequence)
    static

  • -
  • qt () -
    -
    returns (TQKeySequence)

  • -
  • setKey (i, key) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    iuint
    keyKKey
    -

  • -
  • setTriggerOnRelease (a0) -
    Not Implemented
    -

  • -
  • startsWith (keySeq) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keySeqKKeySequence
    -

  • -
  • toString () -
    -
    returns (TQString)

  • -
  • toStringInternal () -
    -
    returns (TQString)

  • -
-

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/python/pykde/doc/classref/kdecore/KKeyServer.CodeMod.html b/python/pykde/doc/classref/kdecore/KKeyServer.CodeMod.html deleted file mode 100644 index f5389c2f..00000000 --- a/python/pykde/doc/classref/kdecore/KKeyServer.CodeMod.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/KKeyServer.Key.html b/python/pykde/doc/classref/kdecore/KKeyServer.Key.html deleted file mode 100644 index 80a6398c..00000000 --- a/python/pykde/doc/classref/kdecore/KKeyServer.Key.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/KKeyServer.Sym.html b/python/pykde/doc/classref/kdecore/KKeyServer.Sym.html deleted file mode 100644 index 81e170df..00000000 --- a/python/pykde/doc/classref/kdecore/KKeyServer.Sym.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - 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
    sTQString
    -

  • -
  • getModsRequired () -
    -
    returns (uint)

  • -
  • getSymVariation () -
    -
    returns (uint)

  • -
  • init (s) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • initQt (keyQt) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keyQtint
    -

  • -
  • qt () -
    -
    returns (int)

  • -
  • toString () -
    -
    returns (TQString)

  • -
  • toStringInternal () -
    -
    returns (TQString)

  • -
-

operators

    -
  • operator uint () -
    Not Implemented
    -

  • -
-

variables

- - - diff --git a/python/pykde/doc/classref/kdecore/KKeyServer.Variations.html b/python/pykde/doc/classref/kdecore/KKeyServer.Variations.html deleted file mode 100644 index 40a3c684..00000000 --- a/python/pykde/doc/classref/kdecore/KKeyServer.Variations.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/KKeyServer.html b/python/pykde/doc/classref/kdecore/KKeyServer.html deleted file mode 100644 index 7f0fc1e8..00000000 --- a/python/pykde/doc/classref/kdecore/KKeyServer.html +++ /dev/null @@ -1,132 +0,0 @@ - - - - - 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
    modTQString
    -

  • -
  • symToKeyQt (sym) -
    Not Implemented
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KLibFactory.html b/python/pykde/doc/classref/kdecore/KLibFactory.html deleted file mode 100644 index 1c27a067..00000000 --- a/python/pykde/doc/classref/kdecore/KLibFactory.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - class KLibFactory - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KLibFactory


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKLibFactory
InheritsTQObject
-

methods

    -
  • KLibFactory (parent = 0, name = 0) -
    -
    returns a KLibFactory instance
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • create (parent = 0, name = 0, classname = "TQObject", args = TQStringList ()) -
    -
    returns (TQObject)
    - - - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    classnamechar"TQObject"
    argsTQStringListTQStringList ()
    -

  • -
  • createObject (parent = 0, name = 0, className = "TQObject", args = TQStringList ()) -
    -
    returns (TQObject)
    - - - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    classNamechar"TQObject"
    argsTQStringListTQStringList ()
    -

  • -
  • objectCreated (obj) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    objTQObject
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KLibLoader.html b/python/pykde/doc/classref/kdecore/KLibLoader.html deleted file mode 100644 index 902cc9aa..00000000 --- a/python/pykde/doc/classref/kdecore/KLibLoader.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - class KLibLoader - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KLibLoader


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKLibLoader
InheritsTQObject
-

methods

    -
  • KLibLoader (parent = 0, name = 0) -
    -
    returns a KLibLoader instance
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • cleanUp () -
    - -
    returns nothing
    static

  • -
  • factory (libname) -
    -
    returns (KLibFactory)
    - -
    ArgumentTypeDefault
    libnamechar
    -

  • -
  • findLibrary (name, instance = KGlobal .instance ()) -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    namechar
    instanceKInstanceKGlobal .instance ()
    -

  • -
  • globalLibrary (name) -
    -
    returns (KLibrary)
    - -
    ArgumentTypeDefault
    namechar
    -

  • -
  • lastErrorMessage () -
    -
    returns (TQString)

  • -
  • library (libname) -
    -
    returns (KLibrary)
    - -
    ArgumentTypeDefault
    libnamechar
    -

  • -
  • self () -
    - -
    returns (KLibLoader)
    static

  • -
  • unloadLibrary (libname) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    libnamechar
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KLibrary.html b/python/pykde/doc/classref/kdecore/KLibrary.html deleted file mode 100644 index f5b8f55e..00000000 --- a/python/pykde/doc/classref/kdecore/KLibrary.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - class KLibrary - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KLibrary


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKLibrary
InheritsTQObject
-

methods

    -
  • KLibrary (libname, filename, handle) -
    Not Implemented
    -

  • -
  • KLibrary (a0, a1, a2) -
    -
    returns a KLibrary instance
    - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2void
    -

  • -
  • factory () -
    -
    returns (KLibFactory)

  • -
  • fileName () -
    -
    returns (TQString)

  • -
  • hasSymbol (name) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    namechar
    -

  • -
  • name () -
    -
    returns (TQString)

  • -
  • symbol (name) -
    -
    returns (void)
    - -
    ArgumentTypeDefault
    namechar
    -

  • -
  • unload () -
    -
    returns nothing

  • -
  • ~KLibrary () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KLocale.html b/python/pykde/doc/classref/kdecore/KLocale.html deleted file mode 100644 index ea2aedfb..00000000 --- a/python/pykde/doc/classref/kdecore/KLocale.html +++ /dev/null @@ -1,583 +0,0 @@ - - - - - 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
    catalogTQString
    configKConfig0
    -

  • -
  • KLocale (rhs) -
    Not Implemented
    -

  • -
  • KLocale (a0) -
    -
    returns a KLocale instance
    - -
    ArgumentTypeDefault
    a0KLocale
    -

  • -
  • _initLanguage (config) -
    - - -
    returns (TQString)
    In versions KDE 3.0.1 and above only
    static
    - -
    ArgumentTypeDefault
    configKConfigBase
    -

  • -
  • allCountriesTwoAlpha () -
    - -
    returns (TQStringList)
    In versions KDE 3.1.0 and above only

  • -
  • allLanguagesTwoAlpha () -
    - -
    returns (TQStringList)
    In versions KDE 3.1.0 and above only

  • -
  • calendar () -
    - -
    returns (KCalendarSystem)
    In versions KDE 3.2.0 and above only

  • -
  • calendarType () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • charset () -
    Not Implemented
    -

  • -
  • codecForEncoding () -
    -
    returns (TQTextCodec)

  • -
  • country () -
    -
    returns (TQString)

  • -
  • currencySymbol () -
    -
    returns (TQString)

  • -
  • dateFormat () -
    -
    returns (TQString)

  • -
  • dateFormatShort () -
    -
    returns (TQString)

  • -
  • dateMonthNamePossessive () -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only

  • -
  • decimalSymbol () -
    -
    returns (TQString)

  • -
  • defaultCountry () -
    - -
    returns (TQString)
    static

  • -
  • defaultLanguage () -
    - -
    returns (TQString)
    static

  • -
  • encoding () -
    -
    returns (char)

  • -
  • encodingMib () -
    -
    returns (int)

  • -
  • fileEncodingMib () -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only

  • -
  • formatDate (pDate, shortFormat = 0) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    pDateTQDate
    shortFormatbool0
    -

  • -
  • formatDateTime (pDateTime, shortFormat, includeSecs = 0) -
    -
    returns (TQString)
    - - - -
    ArgumentTypeDefault
    pDateTimeTQDateTime
    shortFormatbool
    includeSecsbool0
    -

  • -
  • formatLong (num) -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    numlong
    -

  • -
  • formatMoney (num, currency = TQString .null, digits = -1) -
    -
    returns (TQString)
    - - - -
    ArgumentTypeDefault
    numdouble
    currencyTQStringTQString .null
    digitsint-1
    -

  • -
  • formatMoney (numStr) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    numStrTQString
    -

  • -
  • formatNumber (num, precision = -1) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    numdouble
    precisionint-1
    -

  • -
  • formatNumber (numStr) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    numStrTQString
    -

  • -
  • formatNumber (numStr, round, precision) -
    - -
    returns (TQString)
    In versions KDE 3.5.0 and above only
    - - - -
    ArgumentTypeDefault
    numStrTQString
    roundbool
    precisionint
    -

  • -
  • formatTime (pTime, includeSecs, isDuration) -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    pTimeTQTime
    includeSecsbool
    isDurationbool
    -

  • -
  • formatTime (pTime, includeSecs = 0) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    pTimeTQTime
    includeSecsbool0
    -

  • -
  • fracDigits () -
    -
    returns (int)

  • -
  • initInstance () -
    Not Implemented
    -

  • -
  • insertCatalogue (catalog) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    catalogTQString
    -

  • -
  • langLookup (fname, rtype = "html") -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    fnameTQString
    rtypechar"html"
    -

  • -
  • language () -
    -
    returns (TQString)

  • -
  • languageList () -
    -
    returns (TQStringList)

  • -
  • languages () -
    -
    returns (TQString)

  • -
  • languagesTwoAlpha () -
    -
    returns (TQStringList)

  • -
  • measureSystem () -
    -
    returns (KLocale.MeasureSystem)

  • -
  • monetaryDecimalSymbol () -
    -
    returns (TQString)

  • -
  • monetaryThousandsSeparator () -
    -
    returns (TQString)

  • -
  • monthName (i, shortName = 0) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    iint
    shortNamebool0
    -

  • -
  • monthNamePossessive (i, shortName = 0) -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    iint
    shortNamebool0
    -

  • -
  • negativeMonetarySignPosition () -
    -
    returns (SignPosition)

  • -
  • negativePrefixCurrencySymbol () -
    -
    returns (bool)

  • -
  • negativeSign () -
    -
    returns (TQString)

  • -
  • nounDeclension () -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only

  • -
  • pageSize () -
    -
    returns (int)

  • -
  • positiveMonetarySignPosition () -
    -
    returns (SignPosition)

  • -
  • positivePrefixCurrencySymbol () -
    -
    returns (bool)

  • -
  • positiveSign () -
    -
    returns (TQString)

  • -
  • readDate (str) -
    -
    returns (TQDate) ok (bool)
    - -
    ArgumentTypeDefault
    strTQString
    -

  • -
  • readDate (intstr, fmt) -
    -
    returns (TQDate) ok (bool)
    - - -
    ArgumentTypeDefault
    intstrTQString
    fmtTQString
    -

  • -
  • readDate (str, flags) -
    - -
    returns (TQDate) ok (bool)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    strTQString
    flagsKLocale.ReadDateFlags
    -

  • -
  • readMoney (numStr) -
    -
    returns (double) ok (bool)
    - -
    ArgumentTypeDefault
    numStrTQString
    -

  • -
  • readNumber (numStr) -
    -
    returns (double) ok (bool)
    - -
    ArgumentTypeDefault
    numStrTQString
    -

  • -
  • readTime (str) -
    -
    returns (TQTime) ok (bool)
    - -
    ArgumentTypeDefault
    strTQString
    -

  • -
  • readTime (str, flags) -
    - -
    returns (TQTime) ok (bool)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    strTQString
    flagsKLocale.ReadTimeFlags
    -

  • -
  • removeCatalogue (catalog) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    catalogTQString
    -

  • -
  • setActiveCatalogue (catalog) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    catalogTQString
    -

  • -
  • setCalendar (calendarType) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    calendarTypeTQString
    -

  • -
  • setCharset (charset) -
    Not Implemented
    -

  • -
  • setCountry (country) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    countryTQString
    -

  • -
  • setCurrencySymbol (symbol) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    symbolTQString
    -

  • -
  • setDateFormat (format) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    formatTQString
    -

  • -
  • setDateFormatShort (format) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    formatTQString
    -

  • -
  • setDateMonthNamePossessive (possessive) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    possessivebool
    -

  • -
  • setDecimalSymbol (symbol) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    symbolTQString
    -

  • -
  • setEncoding (mibEnum) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    mibEnumint
    -

  • -
  • setFracDigits (digits) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    digitsint
    -

  • -
  • setLanguage (language) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    languageTQString
    -

  • -
  • setLanguage (languages) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    languagesTQStringList
    -

  • -
  • setMainCatalogue (catalog) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    catalogchar
    -

  • -
  • setMeasureSystem (value) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    valueKLocale.MeasureSystem
    -

  • -
  • setMonetaryDecimalSymbol (symbol) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    symbolTQString
    -

  • -
  • setMonetaryThousandsSeparator (separator) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    separatorTQString
    -

  • -
  • setNegativeMonetarySignPosition (signpos) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    signposKLocale.SignPosition
    -

  • -
  • setNegativePrefixCurrencySymbol (prefix) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    prefixbool
    -

  • -
  • setNegativeSign (sign) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    signTQString
    -

  • -
  • setPageSize (paperFormat) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    paperFormatint
    -

  • -
  • setPositiveMonetarySignPosition (signpos) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    signposKLocale.SignPosition
    -

  • -
  • setPositivePrefixCurrencySymbol (prefix) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    prefixbool
    -

  • -
  • setPositiveSign (sign) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    signTQString
    -

  • -
  • setThousandsSeparator (separator) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    separatorTQString
    -

  • -
  • setTimeFormat (format) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    formatTQString
    -

  • -
  • 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
    strTQString
    languageTQString
    countryTQString
    charsetTQString
    -

  • -
  • thousandsSeparator () -
    -
    returns (TQString)

  • -
  • timeFormat () -
    -
    returns (TQString)

  • -
  • translate (index) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    indexchar
    -

  • -
  • translate (comment, fallback) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    commentchar
    fallbackchar
    -

  • -
  • translate (singular, plural, n) -
    -
    returns (TQString)
    - - - -
    ArgumentTypeDefault
    singularchar
    pluralchar
    nulong
    -

  • -
  • translateQt (context, sourceText, message) -
    -
    returns (TQString)
    - - - -
    ArgumentTypeDefault
    contextchar
    sourceTextchar
    messagechar
    -

  • -
  • twoAlphaToCountryName (code) -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    codeTQString
    -

  • -
  • twoAlphaToLanguageName (code) -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    codeTQString
    -

  • -
  • use12Clock () -
    -
    returns (bool)

  • -
  • weekDayName (i, shortName = 0) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    iint
    shortNamebool0
    -

  • -
  • weekStartDay () -
    - -
    returns (int)
    In versions KDE 3.1.0 and above only

  • -
  • weekStartsMonday () -
    -
    returns (bool)

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KLockFile.html b/python/pykde/doc/classref/kdecore/KLockFile.html deleted file mode 100644 index 7469c10e..00000000 --- a/python/pykde/doc/classref/kdecore/KLockFile.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - 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
    fileTQString
    -

  • -
  • getLockInfo () -
    - -
    returns (bool) pid (int) hostname (TQString) appname (TQString)
    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/python/pykde/doc/classref/kdecore/KMD4.html b/python/pykde/doc/classref/kdecore/KMD4.html deleted file mode 100644 index ef2f21d6..00000000 --- a/python/pykde/doc/classref/kdecore/KMD4.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - 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
    aTQByteArray
    -

  • -
  • KMD4 (a) -
    - -
    returns a KMD4 instance
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    aTQCString
    -

  • -
  • KMD4 (u) -
    - -
    returns a KMD4 instance
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    uKMD4
    -

  • -
  • base64Digest () -
    - -
    returns (TQCString)
    In versions KDE 3.4.0 and above only

  • -
  • finalize () -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only

  • -
  • hexDigest () -
    - -
    returns (TQCString)
    In versions KDE 3.4.0 and above only

  • -
  • hexDigest (a0) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    a0TQCString
    -

  • -
  • 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
    inTQByteArray
    -

  • -
  • update (in) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    inTQCString
    -

  • -
  • update (file) -
    - -
    returns (bool)
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    fileTQIODevice
    -

  • -
  • verify (digest) -
    Not Implemented
    -

  • -
  • verify (a0) -
    - -
    returns (bool)
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    a0TQCString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KMD5.html b/python/pykde/doc/classref/kdecore/KMD5.html deleted file mode 100644 index 93d4da69..00000000 --- a/python/pykde/doc/classref/kdecore/KMD5.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - 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
    aTQByteArray
    -

  • -
  • KMD5 (a) -
    -
    returns a KMD5 instance
    - -
    ArgumentTypeDefault
    aTQCString
    -

  • -
  • KMD5 (u) -
    -
    returns a KMD5 instance
    - -
    ArgumentTypeDefault
    uKMD5
    -

  • -
  • base64Digest () -
    -
    returns (TQCString)

  • -
  • finalize () -
    -
    returns nothing

  • -
  • hexDigest () -
    -
    returns (TQCString)

  • -
  • hexDigest (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQCString
    -

  • -
  • 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
    inTQByteArray
    -

  • -
  • update (in) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    inTQCString
    -

  • -
  • update (file) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    fileTQIODevice
    -

  • -
  • verify (digest) -
    Not Implemented
    -

  • -
  • verify (a0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    a0TQCString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KMacroExpander.html b/python/pykde/doc/classref/kdecore/KMacroExpander.html deleted file mode 100644 index d43d9884..00000000 --- a/python/pykde/doc/classref/kdecore/KMacroExpander.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - 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 (TQString)
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    strTQString
    mapTQMap
    cTQChar'%'
    -

  • -
  • expandMacros (str, map, c = '%') -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    strTQString
    mapTQMap
    cTQChar'%'
    -

  • -
  • expandMacros (str, map, c = '%') -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    strTQString
    mapTQMap
    cTQChar'%'
    -

  • -
  • expandMacros (str, map, c = '%') -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    strTQString
    mapTQMap
    cTQChar'%'
    -

  • -
  • expandMacrosShellQuote (str, map, c = '%') -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    strTQString
    mapTQMap
    cTQChar'%'
    -

  • -
  • expandMacrosShellQuote (str, map, c = '%') -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    strTQString
    mapTQMap
    cTQChar'%'
    -

  • -
  • expandMacrosShellQuote (str, map, c = '%') -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    strTQString
    mapTQMap
    cTQChar'%'
    -

  • -
  • expandMacrosShellQuote (str, map, c = '%') -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    strTQString
    mapTQMap
    cTQChar'%'
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KMacroExpanderBase.html b/python/pykde/doc/classref/kdecore/KMacroExpanderBase.html deleted file mode 100644 index 9592c4a3..00000000 --- a/python/pykde/doc/classref/kdecore/KMacroExpanderBase.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - - 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
    cTQChar'%'
    -

  • -
  • escapeChar () -
    - -
    returns (TQChar)
    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
    strTQString
    posuint
    retTQStringList
    -

  • -
  • expandMacros (str) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    strTQString
    -

  • -
  • expandMacrosShellQuote (str, pos) -
    - -
    returns (bool) pos (uint)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    strTQString
    posuint
    -

  • -
  • expandMacrosShellQuote (str) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    strTQString
    -

  • -
  • expandPlainMacro (str, pos, ret) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    strTQString
    posuint
    retTQStringList
    -

  • -
  • setEscapeChar (c) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    cTQChar
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KMimeSourceFactory.html b/python/pykde/doc/classref/kdecore/KMimeSourceFactory.html deleted file mode 100644 index 61c9d514..00000000 --- a/python/pykde/doc/classref/kdecore/KMimeSourceFactory.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - class KMimeSourceFactory - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMimeSourceFactory


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKMimeSourceFactory
InheritsTQMimeSourceFactory
-

methods

    -
  • KMimeSourceFactory (loader = KGlobal .iconLoader ()) -
    -
    returns a KMimeSourceFactory instance
    - -
    ArgumentTypeDefault
    loaderKIconLoaderKGlobal .iconLoader ()
    -

  • -
  • makeAbsolute (abs_or_rel_name, context) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    abs_or_rel_nameTQString
    contextTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KMountPoint.html b/python/pykde/doc/classref/kdecore/KMountPoint.html deleted file mode 100644 index fe5d4222..00000000 --- a/python/pykde/doc/classref/kdecore/KMountPoint.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - 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 (TQString)
    In versions KDE 3.4.0 and above only
    static
    - -
    ArgumentTypeDefault
    optionsTQStringList
    -

  • -
  • mountOptions () -
    - -
    returns (TQStringList)
    In versions KDE 3.2.0 and above only

  • -
  • mountPoint () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • mountType () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • mountedFrom () -
    - -
    returns (TQString)
    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 (TQString)
    In versions KDE 3.2.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KMultipleDrag.html b/python/pykde/doc/classref/kdecore/KMultipleDrag.html deleted file mode 100644 index 8c3fa0b1..00000000 --- a/python/pykde/doc/classref/kdecore/KMultipleDrag.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - class KMultipleDrag - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMultipleDrag


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKMultipleDrag
InheritsTQDragObject
-

methods

    -
  • KMultipleDrag (dragSource = 0, name = 0) -
    -
    returns a KMultipleDrag instance
    - - -
    ArgumentTypeDefault
    dragSourceTQWidget0
    namechar0
    -

  • -
  • addDragObject (dragObject) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    dragObjectTQDragObject
    -

  • -
  • encodedData (mime) -
    - -
    returns (TQByteArray)
    In versions KDE 3.5.0 and above only
    - -
    ArgumentTypeDefault
    mimechar
    -

  • -
  • encodedData (a0) -
    - -
    returns (TQByteArray)
    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/python/pykde/doc/classref/kdecore/KNotifyClient.Instance.html b/python/pykde/doc/classref/kdecore/KNotifyClient.Instance.html deleted file mode 100644 index 397acf7d..00000000 --- a/python/pykde/doc/classref/kdecore/KNotifyClient.Instance.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/KNotifyClient.html b/python/pykde/doc/classref/kdecore/KNotifyClient.html deleted file mode 100644 index 0a38414b..00000000 --- a/python/pykde/doc/classref/kdecore/KNotifyClient.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - 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 = TQString .null) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    reasonTQStringTQString .null
    -

  • -
  • event (winId, event, text = TQString .null) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    winIdint
    eventKNotifyClient.StandardEvent
    textTQStringTQString .null
    -

  • -
  • event (winId, event, text = TQString .null) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    winIdint
    eventKNotifyClient.StandardEvent
    textTQStringTQString .null
    -

  • -
  • event (winId, event, text = TQString .null) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    winIdint
    eventKNotifyClient.StandardEvent
    textTQStringTQString .null
    -

  • -
  • event (winId, event, text = TQString .null) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    winIdint
    eventKNotifyClient.StandardEvent
    textTQStringTQString .null
    -

  • -
  • getDefaultFile (eventname, present) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    eventnameTQString
    presentint
    -

  • -
  • getDefaultPresentation (eventname) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    eventnameTQString
    -

  • -
  • getFile (eventname, present) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    eventnameTQString
    presentint
    -

  • -
  • getPresentation (eventname) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    eventnameTQString
    -

  • -
  • instance () -
    -
    returns (KInstance)

  • -
  • startDaemon () -
    -
    returns (bool)

  • -
  • userEvent (winId, text = TQString .null, present = KNotifyClient .Default, level = KNotifyClient .Default, sound = TQString .null, file = TQString .null) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    winIdint
    textTQStringTQString .null
    presentintKNotifyClient .Default
    levelintKNotifyClient .Default
    soundTQStringTQString .null
    fileTQStringTQString .null
    -

  • -
  • userEvent (winId, text = TQString .null, present = KNotifyClient .Default, level = KNotifyClient .Default, sound = TQString .null, file = TQString .null) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    winIdint
    textTQStringTQString .null
    presentintKNotifyClient .Default
    levelintKNotifyClient .Default
    soundTQStringTQString .null
    fileTQStringTQString .null
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KPalette.html b/python/pykde/doc/classref/kdecore/KPalette.html deleted file mode 100644 index 91256040..00000000 --- a/python/pykde/doc/classref/kdecore/KPalette.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - 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 = TQString .null) -
    -
    returns a KPalette instance
    - -
    ArgumentTypeDefault
    nameTQStringTQString .null
    -

  • -
  • KPalette (a0) -
    -
    returns a KPalette instance
    - -
    ArgumentTypeDefault
    a0KPalette
    -

  • -
  • addColor (newColor, newColorName = TQString .null) -
    -
    returns (int)
    - - -
    ArgumentTypeDefault
    newColorTQColor
    newColorNameTQStringTQString .null
    -

  • -
  • changeColor (index, newColor, newColorName = TQString .null) -
    -
    returns (int)
    - - - -
    ArgumentTypeDefault
    indexint
    newColorTQColor
    newColorNameTQStringTQString .null
    -

  • -
  • changeColor (oldColor, newColor, newColorName = TQString .null) -
    -
    returns (int)
    - - - -
    ArgumentTypeDefault
    oldColorTQColor
    newColorTQColor
    newColorNameTQStringTQString .null
    -

  • -
  • color (index) -
    -
    returns (TQColor)
    - -
    ArgumentTypeDefault
    indexint
    -

  • -
  • colorName (index) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    indexint
    -

  • -
  • colorName (color) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    colorTQColor
    -

  • -
  • description () -
    -
    returns (TQString)

  • -
  • editable () -
    -
    returns (Editable)

  • -
  • findColor (color) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    colorTQColor
    -

  • -
  • getPaletteList () -
    - -
    returns (TQStringList)
    static

  • -
  • name () -
    -
    returns (TQString)

  • -
  • nrColors () -
    -
    returns (int)

  • -
  • save () -
    -
    returns (bool)

  • -
  • setDescription (desc) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    descTQString
    -

  • -
  • setEditable (editable) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    editableKPalette.Editable
    -

  • -
  • setName (name) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KPixmapProvider.html b/python/pykde/doc/classref/kdecore/KPixmapProvider.html deleted file mode 100644 index 66dcb4bd..00000000 --- a/python/pykde/doc/classref/kdecore/KPixmapProvider.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - 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 (TQPixmap)
    pure virtual
    - - -
    ArgumentTypeDefault
    textTQString
    sizeint0
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KProcIO.html b/python/pykde/doc/classref/kdecore/KProcIO.html deleted file mode 100644 index 14477d43..00000000 --- a/python/pykde/doc/classref/kdecore/KProcIO.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - 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
    codecTQTextCodec0
    -

  • -
  • ackRead () -
    -
    returns nothing

  • -
  • closeWhenDone () -
    -
    returns nothing

  • -
  • controlledEmission () -
    -
    returns nothing

  • -
  • enableReadSignals (enable) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    enablebool
    -

  • -
  • fgets (line, autoAck = 0) -
    -
    returns (int)
    - - -
    ArgumentTypeDefault
    lineTQString
    autoAckbool0
    -

  • -
  • fputs (line, AppendNewLine = 1) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    lineTQString
    AppendNewLinebool1
    -

  • -
  • readReady (pio) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pioKProcIO
    -

  • -
  • readln (autoAck = 1) -
    -
    returns (int) line (TQString) 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
    lineTQString
    appendnewlinebool1
    -

  • -
  • writeStdin (line, appendnewline) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    lineTQCString
    appendnewlinebool
    -

  • -
  • writeStdin (data) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    dataTQByteArray
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KProcess.html b/python/pykde/doc/classref/kdecore/KProcess.html deleted file mode 100644 index 368b26b4..00000000 --- a/python/pykde/doc/classref/kdecore/KProcess.html +++ /dev/null @@ -1,348 +0,0 @@ - - - - - class KProcess - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KProcess


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKProcess
InheritsTQObject
-

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
    parentTQObject
    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 (TQValueList)

  • -
  • 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 (TQString)
    In versions KDE 3.1.0 and above only
    static
    - -
    ArgumentTypeDefault
    argTQString
    -

  • -
  • 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
    nameTQString
    valueTQString
    -

  • -
  • setExecutable (proc) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    procTQString
    -

  • -
  • 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
    dirTQString
    -

  • -
  • 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
    a0TQString
    -

  • -
  • 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
    a0TQCString
    -

  • -
  • operator << (a0) -
    - -
    returns (KProcess)
    In versions KDE 3.1.4 and above only
    - -
    ArgumentTypeDefault
    a0TQStringList
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KProcessController.html b/python/pykde/doc/classref/kdecore/KProcessController.html deleted file mode 100644 index e4ac1b48..00000000 --- a/python/pykde/doc/classref/kdecore/KProcessController.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - class KProcessController - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KProcessController


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKProcessController
InheritsTQObject
-

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/python/pykde/doc/classref/kdecore/KPty.html b/python/pykde/doc/classref/kdecore/KPty.html deleted file mode 100644 index fdccfa31..00000000 --- a/python/pykde/doc/classref/kdecore/KPty.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/KRFCDate.html b/python/pykde/doc/classref/kdecore/KRFCDate.html deleted file mode 100644 index d3399fee..00000000 --- a/python/pykde/doc/classref/kdecore/KRFCDate.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - 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
    dateTQString
    -

  • -
  • parseDateISO8601 (date) -
    - -
    returns (time_t)
    static
    - -
    ArgumentTypeDefault
    dateTQString
    -

  • -
  • rfc2822DateString (utcTime, utcOffset) -
    - -
    returns (TQCString)
    static
    - - -
    ArgumentTypeDefault
    utcTimetime_t
    utcOffsetint
    -

  • -
  • rfc2822DateString (utcTime) -
    - -
    returns (TQCString)
    static
    - -
    ArgumentTypeDefault
    utcTimetime_t
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KRandomSequence.html b/python/pykde/doc/classref/kdecore/KRandomSequence.html deleted file mode 100644 index 6074d9da..00000000 --- a/python/pykde/doc/classref/kdecore/KRandomSequence.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/KRegExp.html b/python/pykde/doc/classref/kdecore/KRegExp.html deleted file mode 100644 index 5530768e..00000000 --- a/python/pykde/doc/classref/kdecore/KRegExp.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/KRootProp.html b/python/pykde/doc/classref/kdecore/KRootProp.html deleted file mode 100644 index 155e3749..00000000 --- a/python/pykde/doc/classref/kdecore/KRootProp.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - class KRootProp - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KRootProp


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKRootProp
Inherits
-

methods

    -
  • KRootProp (rProp = TQString .null) -
    -
    returns a KRootProp instance
    - -
    ArgumentTypeDefault
    rPropTQStringTQString .null
    -

  • -
  • destroy () -
    -
    returns nothing

  • -
  • listEntries () -
    -
    returns (TQStringList)

  • -
  • prop () -
    -
    returns (TQString)

  • -
  • readColorEntry (rKey, pDefault = 0) -
    -
    returns (TQColor)
    - - -
    ArgumentTypeDefault
    rKeyTQString
    pDefaultTQColor0
    -

  • -
  • readEntry (rKey, pDefault = TQString .null) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    rKeyTQString
    pDefaultTQStringTQString .null
    -

  • -
  • readFontEntry (rKey, pDefault = 0) -
    -
    returns (TQFont)
    - - -
    ArgumentTypeDefault
    rKeyTQString
    pDefaultTQFont0
    -

  • -
  • readNumEntry (rKey, nDefault = 0) -
    -
    returns (int)
    - - -
    ArgumentTypeDefault
    rKeyTQString
    nDefaultint0
    -

  • -
  • removeEntry (rKey) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    rKeyTQString
    -

  • -
  • setProp (rProp = "") -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    rPropTQString""
    -

  • -
  • sync () -
    -
    returns nothing

  • -
  • writeEntry (rKey, rValue) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    rKeyTQString
    rValueTQString
    -

  • -
  • writeEntry (rKey, nValue) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    rKeyTQString
    nValueint
    -

  • -
  • writeEntry (rKey, rFont) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    rKeyTQString
    rFontTQFont
    -

  • -
  • writeEntry (rKey, rColor) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    rKeyTQString
    rColorTQColor
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KSaveFile.html b/python/pykde/doc/classref/kdecore/KSaveFile.html deleted file mode 100644 index 771e51ec..00000000 --- a/python/pykde/doc/classref/kdecore/KSaveFile.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - 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
    filenameTQString
    modeint438
    -

  • -
  • abort () -
    -
    returns nothing

  • -
  • backupFile (filename, backupDir = TQString .null, backupExtension = TQString .fromLatin1 ("~" )) -
    - - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    filenameTQString
    backupDirTQStringTQString .null
    backupExtensionTQStringTQString .fromLatin1 ("~" )
    -

  • -
  • close () -
    -
    returns (bool)

  • -
  • dataStream () -
    -
    returns (TQDataStream)

  • -
  • file () -
    -
    returns (TQFile)

  • -
  • fstream () -
    Not Implemented
    -

  • -
  • handle () -
    -
    returns (int)

  • -
  • name () -
    -
    returns (TQString)

  • -
  • status () -
    -
    returns (int)

  • -
  • textStream () -
    -
    returns (TQTextStream)

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KSelectionOwner.html b/python/pykde/doc/classref/kdecore/KSelectionOwner.html deleted file mode 100644 index 5423358f..00000000 --- a/python/pykde/doc/classref/kdecore/KSelectionOwner.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - class KSelectionOwner - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KSelectionOwner


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKSelectionOwner
InheritsTQObject
-

methods

    -
  • KSelectionOwner (selection, screen = -1, parent = 0) -
    - -
    returns a KSelectionOwner instance
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    selectionAtom
    screenint-1
    parentTQObject0
    -

  • -
  • KSelectionOwner (selection, screen = -1, parent = 0) -
    - -
    returns a KSelectionOwner instance
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    selectionchar
    screenint-1
    parentTQObject0
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KSelectionWatcher.html b/python/pykde/doc/classref/kdecore/KSelectionWatcher.html deleted file mode 100644 index a7c7d8a1..00000000 --- a/python/pykde/doc/classref/kdecore/KSelectionWatcher.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - class KSelectionWatcher - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KSelectionWatcher


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKSelectionWatcher
InheritsTQObject
-

methods

    -
  • KSelectionWatcher (selection, screen = -1, parent = 0) -
    - -
    returns a KSelectionWatcher instance
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    selectionAtom
    screenint-1
    parentTQObject0
    -

  • -
  • KSelectionWatcher (selection, screen = -1, parent = 0) -
    - -
    returns a KSelectionWatcher instance
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    selectionchar
    screenint-1
    parentTQObject0
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KServerSocket.html b/python/pykde/doc/classref/kdecore/KServerSocket.html deleted file mode 100644 index 207c40c7..00000000 --- a/python/pykde/doc/classref/kdecore/KServerSocket.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - - class KServerSocket - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KServerSocket


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKServerSocket
InheritsTQObject
-

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/python/pykde/doc/classref/kdecore/KSessionManaged.html b/python/pykde/doc/classref/kdecore/KSessionManaged.html deleted file mode 100644 index 411fabe0..00000000 --- a/python/pykde/doc/classref/kdecore/KSessionManaged.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/KShared.html b/python/pykde/doc/classref/kdecore/KShared.html deleted file mode 100644 index 7cdf6870..00000000 --- a/python/pykde/doc/classref/kdecore/KShared.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/KSharedConfig.html b/python/pykde/doc/classref/kdecore/KSharedConfig.html deleted file mode 100644 index e015231d..00000000 --- a/python/pykde/doc/classref/kdecore/KSharedConfig.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - 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
    fileNameTQString
    immutablebool
    useKDEGlobalsbool
    -

  • -
  • openConfig (fileName, immutable = 0, bUseKDEGlobals = 1) -
    - - -
    returns (KSharedConfig.Ptr)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    fileNameTQString
    immutablebool0
    bUseKDEGlobalsbool1
    -

  • -
  • ~KSharedConfig () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KShell.html b/python/pykde/doc/classref/kdecore/KShell.html deleted file mode 100644 index 5229eb6b..00000000 --- a/python/pykde/doc/classref/kdecore/KShell.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - 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 (TQString)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    userTQString
    -

  • -
  • joinArgs (a0) -
    - -
    returns (TQString),
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0 Python list of string
    -

  • -
  • joinArgs (a0) -
    - -
    returns (TQString),
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0 Python list of string
    -

  • -
  • joinArgsDQ (args) -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    argsTQStringList
    -

  • -
  • splitArgs (cmd, flags = 0) -
    - -
    returns (TQStringList) err (int)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    cmdTQString
    flagsint0
    -

  • -
  • tildeExpand (path) -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KShellProcess.html b/python/pykde/doc/classref/kdecore/KShellProcess.html deleted file mode 100644 index 76a5562a..00000000 --- a/python/pykde/doc/classref/kdecore/KShellProcess.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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 (TQString)
    static
    - -
    ArgumentTypeDefault
    argTQString
    -

  • -
  • start (runmode = NotifyOnExit, comm = NoCommunication) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    runmodeRunModeNotifyOnExit
    commCommunicationNoCommunication
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KShortcut.html b/python/pykde/doc/classref/kdecore/KShortcut.html deleted file mode 100644 index baafb9e9..00000000 --- a/python/pykde/doc/classref/kdecore/KShortcut.html +++ /dev/null @@ -1,243 +0,0 @@ - - - - - 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
    keySeqTQKeySequence
    -

  • -
  • 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
    shortcutTQString
    -

  • -
  • 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
    keySeqTQKeySequence
    -

  • -
  • init (key) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keyKKey
    -

  • -
  • init (keySeq) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keySeqKKeySequence
    -

  • -
  • init (shortcut) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    shortcutKShortcut
    -

  • -
  • init (shortcut) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    shortcutTQString
    -

  • -
  • 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 (TQString)

  • -
  • toStringInternal (pcutDefault = 0) -
    -
    returns (TQString)
    - -
    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 TQKeySequence () -
    Not Implemented
    -

  • -
  • operator int () -
    Not Implemented
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KShortcutList.html b/python/pykde/doc/classref/kdecore/KShortcutList.html deleted file mode 100644 index 03a11cf5..00000000 --- a/python/pykde/doc/classref/kdecore/KShortcutList.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - 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 (TQVariant)
    pure virtual
    - - -
    ArgumentTypeDefault
    a0KShortcutList.Other
    indexuint
    -

  • -
  • index (sName) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    sNameTQString
    -

  • -
  • 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 (TQString)
    pure virtual
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
  • name (index) = 0 -
    - -
    returns (TQString)
    pure virtual
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
  • readSettings (sConfigGroup = TQString .null, pConfig = 0) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    sConfigGroupTQStringTQString .null
    pConfigKConfigBase0
    -

  • -
  • save () = 0 -
    - -
    returns (bool)
    pure virtual

  • -
  • setOther (a0, index, a1) = 0 -
    - -
    returns (bool)
    pure virtual
    - - - -
    ArgumentTypeDefault
    a0KShortcutList.Other
    indexuint
    a1TQVariant
    -

  • -
  • 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 (TQString)
    pure virtual
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
  • writeSettings (sConfigGroup = TQString .null, pConfig = 0, bWriteAll = 0, bGlobal = 0) -
    -
    returns (bool)
    - - - - -
    ArgumentTypeDefault
    sConfigGroupTQStringTQString .null
    pConfigKConfigBase0
    bWriteAllbool0
    bGlobalbool0
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KSimpleConfig.html b/python/pykde/doc/classref/kdecore/KSimpleConfig.html deleted file mode 100644 index 57817167..00000000 --- a/python/pykde/doc/classref/kdecore/KSimpleConfig.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - 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
    fileNameTQString
    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/python/pykde/doc/classref/kdecore/KSocket.html b/python/pykde/doc/classref/kdecore/KSocket.html deleted file mode 100644 index 7b942d2f..00000000 --- a/python/pykde/doc/classref/kdecore/KSocket.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - class KSocket - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KSocket


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKSocket
InheritsTQObject
-

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
    _hostTQString
    _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/python/pykde/doc/classref/kdecore/KStartupInfo.html b/python/pykde/doc/classref/kdecore/KStartupInfo.html deleted file mode 100644 index e553fbd3..00000000 --- a/python/pykde/doc/classref/kdecore/KStartupInfo.html +++ /dev/null @@ -1,227 +0,0 @@ - - - - - class KStartupInfo - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KStartupInfo


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKStartupInfo
InheritsTQObject
-

enums

    -
  • (anonymous) = {CleanOnCantDetect, DisableKWinModule, AnnounceSilenceChanges -}
  • startup_t = {NoMatch, Match, CantDetect -}
-

methods

    -
  • KStartupInfo (flags, parent = 0, name = 0) -
    -
    returns a KStartupInfo instance
    - - - -
    ArgumentTypeDefault
    flagsbool
    parentTQObject0
    namechar0
    -

  • -
  • appStarted () -
    - -
    returns nothing
    static

  • -
  • appStarted (startup_id) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    startup_idTQCString
    -

  • -
  • 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 (TQCString)
    In versions KDE 3.3.0 and above only
    static

  • -
  • currentStartupIdEnv () -
    - -
    returns (KStartupInfoId)
    static

  • -
  • customEvent (e_P) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    e_PTQCustomEvent
    -

  • -
  • 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
    windowTQWidget
    startup_idTQCString
    -

  • -
  • setTimeout (secs) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    secsuint
    -

  • -
  • setWindowStartupId (window, id) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    windowWId
    idTQCString
    -

  • -
  • silenceStartup (silence) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    silencebool
    -

  • -
  • windowStartupId (w) -
    - -
    returns (TQCString)
    static
    - -
    ArgumentTypeDefault
    wWId
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KStartupInfoData.html b/python/pykde/doc/classref/kdecore/KStartupInfoData.html deleted file mode 100644 index f31300c4..00000000 --- a/python/pykde/doc/classref/kdecore/KStartupInfoData.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - - 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
    txtTQString
    -

  • -
  • WMClass () -
    -
    returns (TQCString)

  • -
  • addPid (pid) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pidpid_t
    -

  • -
  • bin () -
    -
    returns (TQString)

  • -
  • description () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • desktop () -
    -
    returns (int)

  • -
  • findDescription () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • findIcon () -
    -
    returns (TQString)

  • -
  • findName () -
    -
    returns (TQString)

  • -
  • findWMClass () -
    -
    returns (TQCString)

  • -
  • hostname () -
    -
    returns (TQCString)

  • -
  • icon () -
    -
    returns (TQString)

  • -
  • is_pid (pid) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    pidpid_t
    -

  • -
  • name () -
    -
    returns (TQString)

  • -
  • pids () -
    -
    returns (TQValueList)

  • -
  • pids () -
    - -
    returns (TQValueList)
    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
    binTQString
    -

  • -
  • setDescription (descr) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    descrTQString
    -

  • -
  • setDesktop (desktop) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    desktopint
    -

  • -
  • setHostname (hostname = TQCString ()) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    hostnameTQCStringTQCString ()
    -

  • -
  • setIcon (icon) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iconTQString
    -

  • -
  • setName (name) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • 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
    wmclassTQCString
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KStartupInfoId.html b/python/pykde/doc/classref/kdecore/KStartupInfoId.html deleted file mode 100644 index 1d52fd85..00000000 --- a/python/pykde/doc/classref/kdecore/KStartupInfoId.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - 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
    txtTQString
    -

  • -
  • id () -
    -
    returns (TQCString)

  • -
  • initId (id = "") -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    idTQCString""
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KStaticDeleterBase.html b/python/pykde/doc/classref/kdecore/KStaticDeleterBase.html deleted file mode 100644 index 08800b8c..00000000 --- a/python/pykde/doc/classref/kdecore/KStaticDeleterBase.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/KStdAccel.ShortcutList.html b/python/pykde/doc/classref/kdecore/KStdAccel.ShortcutList.html deleted file mode 100644 index 6913ee34..00000000 --- a/python/pykde/doc/classref/kdecore/KStdAccel.ShortcutList.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - - 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 (TQVariant)
    - - -
    ArgumentTypeDefault
    a0KShortcutList.Other
    indexuint
    -

  • -
  • isConfigurable (index) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
  • label (index) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
  • name (index) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
  • save () -
    -
    returns (bool)

  • -
  • setOther (a0, index, a1) -
    -
    returns (bool)
    - - - -
    ArgumentTypeDefault
    a0KShortcutList.Other
    indexuint
    a1TQVariant
    -

  • -
  • setShortcut (index, shortcut) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    indexuint
    shortcutKShortcut
    -

  • -
  • shortcut (index) -
    -
    returns (KShortcut)
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
  • shortcutDefault (index) -
    -
    returns (KShortcut)
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
  • whatsThis (index) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    indexuint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KStdAccel.html b/python/pykde/doc/classref/kdecore/KStdAccel.html deleted file mode 100644 index 01f4834a..00000000 --- a/python/pykde/doc/classref/kdecore/KStdAccel.html +++ /dev/null @@ -1,284 +0,0 @@ - - - - - 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 (TQString)
    - -
    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 (TQString)
    - -
    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
    pEventTQKeyEvent
    keyQtint
    -

  • -
  • key (a0) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    a0KStdAccel.StdAccel
    -

  • -
  • label (id) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    idKStdAccel.StdAccel
    -

  • -
  • name (id) -
    -
    returns (TQString)
    - -
    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/python/pykde/doc/classref/kdecore/KStringHandler.html b/python/pykde/doc/classref/kdecore/KStringHandler.html deleted file mode 100644 index b302390f..00000000 --- a/python/pykde/doc/classref/kdecore/KStringHandler.html +++ /dev/null @@ -1,292 +0,0 @@ - - - - - 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 (TQString)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    nameTQString
    fontMetricsTQFontMetrics
    maxlenuint30
    -

  • -
  • cPixelSqueeze (name, fontMetrics, maxPixels) -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    nameTQString
    fontMetricsTQFontMetrics
    maxPixelsuint
    -

  • -
  • capwords (text) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • capwords (list) -
    - -
    returns (TQStringList)
    static
    - -
    ArgumentTypeDefault
    listTQStringList
    -

  • -
  • center (text, width) -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    textTQString
    widthuint
    -

  • -
  • csqueeze (str, maxlen = 40) -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    strTQString
    maxlenuint40
    -

  • -
  • from8Bit (str) -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    strchar
    -

  • -
  • insword (text, word, pos) -
    - -
    returns (TQString)
    static
    - - - -
    ArgumentTypeDefault
    textTQString
    wordTQString
    posuint
    -

  • -
  • isUtf8 (str) -
    - - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    strchar
    -

  • -
  • lEmSqueeze (name, fontMetrics, maxlen = 30) -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    nameTQString
    fontMetricsTQFontMetrics
    maxlenuint30
    -

  • -
  • lPixelSqueeze (name, fontMetrics, maxPixels) -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    nameTQString
    fontMetricsTQFontMetrics
    maxPixelsuint
    -

  • -
  • ljust (text, width) -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    textTQString
    widthuint
    -

  • -
  • lsqueeze (str, maxlen = 40) -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    strTQString
    maxlenuint40
    -

  • -
  • matchFileName (filename, pattern) -
    - -
    returns (bool)
    static
    - - -
    ArgumentTypeDefault
    filenameTQString
    patternTQString
    -

  • -
  • matchFilename (filename, pattern) -
    - -
    returns (bool)
    static
    - - -
    ArgumentTypeDefault
    filenameTQString
    patternTQString
    -

  • -
  • obscure (str) -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    strTQString
    -

  • -
  • 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 (TQString)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    nameTQString
    fontMetricsTQFontMetrics
    maxlenuint30
    -

  • -
  • rPixelSqueeze (name, fontMetrics, maxPixels) -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    nameTQString
    fontMetricsTQFontMetrics
    maxPixelsuint
    -

  • -
  • remrange (text, range) -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    textTQString
    rangechar
    -

  • -
  • remword (text, pos) -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    textTQString
    posuint
    -

  • -
  • remword (text, word) -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    textTQString
    wordTQString
    -

  • -
  • reverse (text) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • reverse (list) -
    - -
    returns (TQStringList)
    static
    - -
    ArgumentTypeDefault
    listTQStringList
    -

  • -
  • rjust (text, width) -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    textTQString
    widthuint
    -

  • -
  • rsqueeze (str, maxlen = 40) -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    strTQString
    maxlenuint40
    -

  • -
  • setword (text, word, pos) -
    - -
    returns (TQString)
    static
    - - - -
    ArgumentTypeDefault
    textTQString
    wordTQString
    posuint
    -

  • -
  • tagURLs (text) -
    - - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    static
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • word (text, pos) -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    textTQString
    posuint
    -

  • -
  • word (text, range) -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    textTQString
    rangechar
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KTempDir.html b/python/pykde/doc/classref/kdecore/KTempDir.html deleted file mode 100644 index 56c163e0..00000000 --- a/python/pykde/doc/classref/kdecore/KTempDir.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - - class KTempDir - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KTempDir


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKTempDir
Inherits
-

methods

    -
  • KTempDir (directoryPrefix = TQString .null, mode = 448) -
    - -
    returns a KTempDir instance
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    directoryPrefixTQStringTQString .null
    modeint448
    -

  • -
  • create (directoryPrefix, mode) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    directoryPrefixTQString
    modeint
    -

  • -
  • existing () -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only

  • -
  • name () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • qDir () -
    - -
    returns (TQDir)
    In versions KDE 3.2.0 and above only

  • -
  • removeDir (path) -
    - - -
    returns (bool)
    In versions KDE 3.5.2 and above only
    static
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KTempFile.html b/python/pykde/doc/classref/kdecore/KTempFile.html deleted file mode 100644 index e99cd4f9..00000000 --- a/python/pykde/doc/classref/kdecore/KTempFile.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - class KTempFile - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KTempFile


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKTempFile
Inherits
-

methods

    -
  • KTempFile (filePrefix = TQString .null, fileExtension = TQString .null, mode = 384) -
    -
    returns a KTempFile instance
    - - - -
    ArgumentTypeDefault
    filePrefixTQStringTQString .null
    fileExtensionTQStringTQString .null
    modeint384
    -

  • -
  • KTempFile (a0) -
    -
    returns a KTempFile instance
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • close () -
    -
    returns (bool)

  • -
  • create (filePrefix, fileExtension, mode) -
    -
    returns (bool)
    - - - -
    ArgumentTypeDefault
    filePrefixTQString
    fileExtensionTQString
    modeint
    -

  • -
  • dataStream () -
    -
    returns (TQDataStream)

  • -
  • file () -
    -
    returns (TQFile)

  • -
  • fstream () -
    Not Implemented
    -

  • -
  • handle () -
    -
    returns (int)

  • -
  • name () -
    -
    returns (TQString)

  • -
  • 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 (TQTextStream)

  • -
  • unlink () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KTimezone.html b/python/pykde/doc/classref/kdecore/KTimezone.html deleted file mode 100644 index 14d23229..00000000 --- a/python/pykde/doc/classref/kdecore/KTimezone.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - - 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 = TQString (), latitude = KTimezone .UNKNOWN, longitude = KTimezone .UNKNOWN, comment = TQString ()) -
    - -
    returns a KTimezone instance
    In versions KDE 3.5.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    dbKSharedPtr
    nameTQString
    countryCodeTQStringTQString ()
    latitudefloatKTimezone .UNKNOWN
    longitudefloatKTimezone .UNKNOWN
    commentTQStringTQString ()
    -

  • -
  • KTimezone (a0) -
    - -
    returns a KTimezone instance
    In versions KDE 3.5.0 and above only
    - -
    ArgumentTypeDefault
    a0KTimezone
    -

  • -
  • comment () -
    - -
    returns (TQString)
    In versions KDE 3.5.0 and above only

  • -
  • convert (newZone, dateTime) -
    - -
    returns (TQDateTime)
    In versions KDE 3.5.0 and above only
    - - -
    ArgumentTypeDefault
    newZoneKTimezone
    dateTimeTQDateTime
    -

  • -
  • countryCode () -
    - -
    returns (TQString)
    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 (TQString)
    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
    dateTimeTQDateTime
    -

  • -
  • parse (dataReceiver) -
    - -
    returns (bool)
    In versions KDE 3.5.0 and above only
    - -
    ArgumentTypeDefault
    dataReceiverKTimezoneDetails
    -

  • -
-

variables

- - - diff --git a/python/pykde/doc/classref/kdecore/KTimezoneDetails.html b/python/pykde/doc/classref/kdecore/KTimezoneDetails.html deleted file mode 100644 index 3146a801..00000000 --- a/python/pykde/doc/classref/kdecore/KTimezoneDetails.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - 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
    abbrTQString
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KTimezoneSource.html b/python/pykde/doc/classref/kdecore/KTimezoneSource.html deleted file mode 100644 index 348b6149..00000000 --- a/python/pykde/doc/classref/kdecore/KTimezoneSource.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - 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
    dbTQString
    -

  • -
  • db () -
    - -
    returns (TQString)
    In versions KDE 3.5.0 and above only

  • -
  • parse (zone, dataReceiver) -
    - -
    returns (bool)
    In versions KDE 3.5.0 and above only
    - - -
    ArgumentTypeDefault
    zoneTQString
    dataReceiverKTimezoneDetails
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KTimezones.html b/python/pykde/doc/classref/kdecore/KTimezones.html deleted file mode 100644 index 00b3dae1..00000000 --- a/python/pykde/doc/classref/kdecore/KTimezones.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - 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
    nameTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KURL.List.html b/python/pykde/doc/classref/kdecore/KURL.List.html deleted file mode 100644 index 3b525110..00000000 --- a/python/pykde/doc/classref/kdecore/KURL.List.html +++ /dev/null @@ -1,183 +0,0 @@ - - - - - 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
    a0TQStringList
    -

  • -
  • __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 (TQStringList)

  • -
-

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/python/pykde/doc/classref/kdecore/KURL.html b/python/pykde/doc/classref/kdecore/KURL.html deleted file mode 100644 index fd061051..00000000 --- a/python/pykde/doc/classref/kdecore/KURL.html +++ /dev/null @@ -1,562 +0,0 @@ - - - - - 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
    urlTQString
    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
    urlTQCString
    encoding_hintint0
    -

  • -
  • KURL (u) -
    -
    returns a KURL instance
    - -
    ArgumentTypeDefault
    uKURL
    -

  • -
  • KURL (u) -
    -
    returns a KURL instance
    - -
    ArgumentTypeDefault
    uTQUrl
    -

  • -
  • KURL (_baseurl, _rel_url, encoding_hint = 0) -
    -
    returns a KURL instance
    - - - -
    ArgumentTypeDefault
    _baseurlKURL
    _rel_urlTQString
    encoding_hintint0
    -

  • -
  • addPath (txt) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    txtTQString
    -

  • -
  • addQueryItem (_item, _value, encoding_hint = 0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - - -
    ArgumentTypeDefault
    _itemTQString
    _valueTQString
    encoding_hintint0
    -

  • -
  • adjustPath (_trailing) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _trailingint
    -

  • -
  • cd (_dir) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    _dirTQString
    -

  • -
  • 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 (TQString)
    static
    - - -
    ArgumentTypeDefault
    strTQString
    encoding_hintint0
    -

  • -
  • directory (_strip_trailing_slash_from_result = 1, _ignore_trailing_slash_in_path = 1) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    _strip_trailing_slash_from_resultbool1
    _ignore_trailing_slash_in_pathbool1
    -

  • -
  • encode_string (str, encoding_hint = 0) -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    strTQString
    encoding_hintint0
    -

  • -
  • encode_string_no_slash (str, encoding_hint = 0) -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    strTQString
    encoding_hintint0
    -

  • -
  • encodedHtmlRef () -
    -
    returns (TQString)

  • -
  • encodedPathAndQuery (_trailing = 0, _no_empty_path = 0, encoding_hint = 0) -
    -
    returns (TQString)
    - - - -
    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 (TQString)

  • -
  • fileName (_ignore_trailing_slash_in_path = 1) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    _ignore_trailing_slash_in_pathbool1
    -

  • -
  • filename (_ignore_trailing_slash_in_path = 1) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    _ignore_trailing_slash_in_pathbool1
    -

  • -
  • fromPathOrURL (text) -
    - - -
    returns (KURL)
    In versions KDE 3.1.0 and above only
    static
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • hasHTMLRef () -
    -
    returns (bool)

  • -
  • hasHost () -
    -
    returns (bool)

  • -
  • hasPass () -
    -
    returns (bool)

  • -
  • hasPath () -
    -
    returns (bool)

  • -
  • hasRef () -
    -
    returns (bool)

  • -
  • hasSubURL () -
    -
    returns (bool)

  • -
  • hasUser () -
    -
    returns (bool)

  • -
  • host () -
    -
    returns (TQString)

  • -
  • htmlRef () -
    -
    returns (TQString)

  • -
  • htmlURL () -
    - -
    returns (TQString)
    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
    _urlTQString
    -

  • -
  • isValid () -
    -
    returns (bool)

  • -
  • join (_list) -
    - -
    returns (KURL)
    static
    - -
    ArgumentTypeDefault
    _listKURL.List
    -

  • -
  • parse (_url, encoding_hint = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    _urlTQString
    encoding_hintint0
    -

  • -
  • parseMailto (_url, encoding_hint = 0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    _urlTQString
    encoding_hintint0
    -

  • -
  • parseRawURI (_url, encoding_hint = 0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    _urlTQString
    encoding_hintint0
    -

  • -
  • parseURL (_url, encoding_hint = 0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    _urlTQString
    encoding_hintint0
    -

  • -
  • pass_ () -
    - -
    returns (TQString)
    Renamed: was ' pass -' in C++

  • -
  • path () -
    -
    returns (TQString)

  • -
  • path (_trailing) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    _trailingint
    -

  • -
  • pathOrURL () -
    - -
    returns (TQString)
    In versions KDE 3.4.0 and above only

  • -
  • port () -
    -
    returns (ushort)

  • -
  • prettyURL (_trailing = 0) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    _trailingint0
    -

  • -
  • prettyURL (_trailing, _flags) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    _trailingint
    _flagsKURL.AdjustementFlags
    -

  • -
  • protocol () -
    -
    returns (TQString)

  • -
  • query () -
    -
    returns (TQString)

  • -
  • queryItem (item) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    itemTQString
    -

  • -
  • queryItem (item, encoding_hint) -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    itemTQString
    encoding_hintint
    -

  • -
  • queryItems (options = 0) -
    - -
    returns (TQMap)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    optionsint0
    -

  • -
  • queryItems (options, encoding_hint) -
    - -
    returns (TQMap)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    optionsint
    encoding_hintint
    -

  • -
  • ref () -
    -
    returns (TQString)

  • -
  • relativePath (base_dir, path) -
    - - -
    returns (TQString) isParent (bool)
    In versions KDE 3.2.0 and above only
    static
    - - -
    ArgumentTypeDefault
    base_dirTQString
    pathTQString
    -

  • -
  • relativeURL (base_url, url, encoding_hint = 0) -
    - - -
    returns (TQString)
    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
    _itemTQString
    -

  • -
  • reset () -
    -
    returns nothing

  • -
  • setDirectory (dir) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    dirTQString
    -

  • -
  • setEncodedPath (_txt, encoding_hint = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    _txtTQString
    encoding_hintint0
    -

  • -
  • setEncodedPathAndQuery (_txt, encoding_hint = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    _txtTQString
    encoding_hintint0
    -

  • -
  • setFileEncoding (encoding) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    encodingTQString
    -

  • -
  • setFileName (_txt) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _txtTQString
    -

  • -
  • setHTMLRef (_ref) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _refTQString
    -

  • -
  • setHost (_txt) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _txtTQString
    -

  • -
  • setPass (_txt) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _txtTQString
    -

  • -
  • setPath (path) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
  • setPort (_p) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _pushort
    -

  • -
  • setProtocol (_txt) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _txtTQString
    -

  • -
  • setQuery (_txt, encoding_hint = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    _txtTQString
    encoding_hintint0
    -

  • -
  • setRef (_txt) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _txtTQString
    -

  • -
  • setUser (_txt) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _txtTQString
    -

  • -
  • split (_url) -
    - -
    returns (KURL.List)
    static
    - -
    ArgumentTypeDefault
    _urlTQString
    -

  • -
  • 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
    protocolTQString
    -

  • -
  • url (_trailing = 0, encoding_hint = 0) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    _trailingint0
    encoding_hintint0
    -

  • -
  • user () -
    -
    returns (TQString)

  • -
-

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
    a0TQString
    -

  • -
  • 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
    a0TQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KURLDrag.html b/python/pykde/doc/classref/kdecore/KURLDrag.html deleted file mode 100644 index c96be1ab..00000000 --- a/python/pykde/doc/classref/kdecore/KURLDrag.html +++ /dev/null @@ -1,165 +0,0 @@ - - - - - class KURLDrag - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KURLDrag


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKURLDrag
InheritsTQUriDrag
-

methods

    -
  • KURLDrag (urls, dragSource, name) -
    - -
    returns a KURLDrag instance
    In versions KDE 3.1.4 and above only
    - - - -
    ArgumentTypeDefault
    urlsKURL.List
    dragSourceTQWidget
    namechar
    -

  • -
  • KURLDrag (urls, metaData, dragSource, name) -
    - -
    returns a KURLDrag instance
    In versions KDE 3.1.4 and above only
    - - - - -
    ArgumentTypeDefault
    urlsKURL.List
    metaDataTQMap
    dragSourceTQWidget
    namechar
    -

  • -
  • KURLDrag (urls, metaData, dragSource, name) -
    - -
    returns a KURLDrag instance
    In versions KDE 3.1.4 and above only
    - - - - -
    ArgumentTypeDefault
    urlsTQStrList
    metaDataTQMap
    dragSourceTQWidget
    namechar
    -

  • -
  • decode (e, urls) -
    - - -
    returns (bool)
    In versions KDE 3.1.4 and above only
    static
    - - -
    ArgumentTypeDefault
    eTQMimeSource
    urlsKURL.List
    -

  • -
  • decode (e, urls, metaData) -
    - - -
    returns (bool)
    In versions KDE 3.1.4 and above only
    static
    - - - -
    ArgumentTypeDefault
    eTQMimeSource
    urlsKURL.List
    metaDataTQMap
    -

  • -
  • encodedData (mime) -
    - -
    returns (TQByteArray)
    In versions KDE 3.5.0 and above only
    - -
    ArgumentTypeDefault
    mimechar
    -

  • -
  • encodedData (a0) -
    - -
    returns (TQByteArray)
    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 (TQMap)
    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
    dragSourceTQWidget0
    namechar0
    -

  • -
  • newDrag (urls, metaData, dragSource = 0, name = 0) -
    - - -
    returns (KURLDrag)
    In versions KDE 3.1.4 and above only
    static
    - - - - -
    ArgumentTypeDefault
    urlsKURL.List
    metaDataTQMap
    dragSourceTQWidget0
    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
    sTQCString
    -

  • -
  • urlToString (url) -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KUniqueApplication.html b/python/pykde/doc/classref/kdecore/KUniqueApplication.html deleted file mode 100644 index 99b2094b..00000000 --- a/python/pykde/doc/classref/kdecore/KUniqueApplication.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - 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
    funTQCString
    dataTQByteArray
    replyTypeTQCString
    replyDataTQByteArray
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KWin.Info.html b/python/pykde/doc/classref/kdecore/KWin.Info.html deleted file mode 100644 index 1448648e..00000000 --- a/python/pykde/doc/classref/kdecore/KWin.Info.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - 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 (TQString)

  • -
-

variables

  • -variables - - - - - - - - - - - - -
    VariableType
    desktopint
    frameGeometryTQRect
    geometryTQRect
    mappingStateNET::MappingState
    nameTQString
    onAllDesktopsbool
    pidpid_t
    stateulong
    strutNETStrut
    visibleNameTQString
    winWId
    windowTypeNET::WindowType
- - - diff --git a/python/pykde/doc/classref/kdecore/KWin.WindowInfo.html b/python/pykde/doc/classref/kdecore/KWin.WindowInfo.html deleted file mode 100644 index d3bead16..00000000 --- a/python/pykde/doc/classref/kdecore/KWin.WindowInfo.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - 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 (TQRect)
    In versions KDE 3.2.0 and above only

  • -
  • geometry () -
    - -
    returns (TQRect)
    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 (TQString)
    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 (TQString)
    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 (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • visibleIconNameWithState () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • visibleName () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • visibleNameWithState () -
    - -
    returns (TQString)
    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/python/pykde/doc/classref/kdecore/KWin.html b/python/pykde/doc/classref/kdecore/KWin.html deleted file mode 100644 index edca886f..00000000 --- a/python/pykde/doc/classref/kdecore/KWin.html +++ /dev/null @@ -1,304 +0,0 @@ - - - - - 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 (TQPixmap)
    static
    - - - - -
    ArgumentTypeDefault
    winWId
    widthint-1
    heightint-1
    scalebool0
    -

  • -
  • icon (win, width, height, scale, flags) -
    - - -
    returns (TQPixmap)
    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 (TQString)
    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
    iconTQPixmap
    miniIconTQPixmap
    -

  • -
  • 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/python/pykde/doc/classref/kdecore/KWinModule.html b/python/pykde/doc/classref/kdecore/KWinModule.html deleted file mode 100644 index 944b174b..00000000 --- a/python/pykde/doc/classref/kdecore/KWinModule.html +++ /dev/null @@ -1,191 +0,0 @@ - - - - - class KWinModule - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KWinModule


-
- - - - - -
Table of contents
Modules
kdecore Classes
All Classes
-
- - - - - - - - - - -
Modulekdecore
ClassKWinModule
InheritsTQObject
-

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
    parentTQObject
    whatint
    -

  • -
  • KWinModule (parent = 0) -
    -
    returns a KWinModule instance
    - -
    ArgumentTypeDefault
    parentTQObject0
    -

  • -
  • 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 (TQString)
    - -
    ArgumentTypeDefault
    desktopint
    -

  • -
  • desktopNamesChanged () -
    -
    returns nothing

  • -
  • doNotManage (title) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    titleTQString
    -

  • -
  • hasWId (id) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    idWId
    -

  • -
  • numberOfDesktops () -
    -
    returns (int)

  • -
  • numberOfDesktopsChanged (num) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    numint
    -

  • -
  • setDesktopName (desktop, name) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    desktopint
    nameTQString
    -

  • -
  • stackingOrder () -
    -
    returns (TQValueList)

  • -
  • stackingOrderChanged () -
    -
    returns nothing

  • -
  • strutChanged () -
    -
    returns nothing

  • -
  • systemTrayWindowAdded (id) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    idWId
    -

  • -
  • systemTrayWindowRemoved (id) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    idWId
    -

  • -
  • systemTrayWindows () -
    -
    returns (TQValueList)

  • -
  • 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 (TQValueList)

  • -
  • workArea (desktop = -1) -
    -
    returns (TQRect)
    - -
    ArgumentTypeDefault
    desktopint-1
    -

  • -
  • workArea (excludes, desktop = -1) -
    -
    returns (TQRect)
    - - -
    ArgumentTypeDefault
    excludesTQValueList
    desktopint-1
    -

  • -
  • workAreaChanged () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KWordMacroExpander.html b/python/pykde/doc/classref/kdecore/KWordMacroExpander.html deleted file mode 100644 index b170b2b6..00000000 --- a/python/pykde/doc/classref/kdecore/KWordMacroExpander.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - 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
    cTQChar'%'
    -

  • -
  • expandEscapedMacro (str, pos, ret) -
    - -
    returns (int)
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    strTQString
    posuint
    retTQStringList
    -

  • -
  • expandMacro (str, ret) = 0 -
    - - -
    returns (bool)
    In versions KDE 3.3.0 and above only
    pure virtual
    - - -
    ArgumentTypeDefault
    strTQString
    retTQStringList
    -

  • -
  • expandPlainMacro (str, pos, ret) -
    - -
    returns (int)
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    strTQString
    posuint
    retTQStringList
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdecore/KZoneAllocator.html b/python/pykde/doc/classref/kdecore/KZoneAllocator.html deleted file mode 100644 index 0d3d6d9d..00000000 --- a/python/pykde/doc/classref/kdecore/KZoneAllocator.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/NET.html b/python/pykde/doc/classref/kdecore/NET.html deleted file mode 100644 index 3c45bd3a..00000000 --- a/python/pykde/doc/classref/kdecore/NET.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/NETExtendedStrut.html b/python/pykde/doc/classref/kdecore/NETExtendedStrut.html deleted file mode 100644 index d02a704f..00000000 --- a/python/pykde/doc/classref/kdecore/NETExtendedStrut.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/NETIcon.html b/python/pykde/doc/classref/kdecore/NETIcon.html deleted file mode 100644 index b4a5f0db..00000000 --- a/python/pykde/doc/classref/kdecore/NETIcon.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/NETPoint.html b/python/pykde/doc/classref/kdecore/NETPoint.html deleted file mode 100644 index 0c44a148..00000000 --- a/python/pykde/doc/classref/kdecore/NETPoint.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/NETRect.html b/python/pykde/doc/classref/kdecore/NETRect.html deleted file mode 100644 index 6c2369d1..00000000 --- a/python/pykde/doc/classref/kdecore/NETRect.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/NETRootInfo.html b/python/pykde/doc/classref/kdecore/NETRootInfo.html deleted file mode 100644 index c192a7ed..00000000 --- a/python/pykde/doc/classref/kdecore/NETRootInfo.html +++ /dev/null @@ -1,424 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/NETRootInfo2.html b/python/pykde/doc/classref/kdecore/NETRootInfo2.html deleted file mode 100644 index dd3adf17..00000000 --- a/python/pykde/doc/classref/kdecore/NETRootInfo2.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/NETRootInfo3.html b/python/pykde/doc/classref/kdecore/NETRootInfo3.html deleted file mode 100644 index 570f1d67..00000000 --- a/python/pykde/doc/classref/kdecore/NETRootInfo3.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/NETRootInfo4.html b/python/pykde/doc/classref/kdecore/NETRootInfo4.html deleted file mode 100644 index cda8e97a..00000000 --- a/python/pykde/doc/classref/kdecore/NETRootInfo4.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/NETSize.html b/python/pykde/doc/classref/kdecore/NETSize.html deleted file mode 100644 index 73b96527..00000000 --- a/python/pykde/doc/classref/kdecore/NETSize.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/NETStrut.html b/python/pykde/doc/classref/kdecore/NETStrut.html deleted file mode 100644 index 9b6f7aa3..00000000 --- a/python/pykde/doc/classref/kdecore/NETStrut.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/NETWinInfo.html b/python/pykde/doc/classref/kdecore/NETWinInfo.html deleted file mode 100644 index 027f8ad0..00000000 --- a/python/pykde/doc/classref/kdecore/NETWinInfo.html +++ /dev/null @@ -1,315 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/index.html b/python/pykde/doc/classref/kdecore/index.html deleted file mode 100644 index af08ab11..00000000 --- a/python/pykde/doc/classref/kdecore/index.html +++ /dev/null @@ -1,180 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdecore/kdecore-globals.html b/python/pykde/doc/classref/kdecore/kdecore-globals.html deleted file mode 100644 index f5606d86..00000000 --- a/python/pykde/doc/classref/kdecore/kdecore-globals.html +++ /dev/null @@ -1,209 +0,0 @@ - - - - - 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 (TQPixmap)
    - - - - -
    ArgumentTypeDefault
    nameTQString
    sizeint0
    stateintKIcon .DefaultState
    instanceKInstanceKGlobal .instance ()
    -

  • -
  • BarIcon (name, instance) -
    -
    returns (TQPixmap)
    - - -
    ArgumentTypeDefault
    nameTQString
    instanceKInstance
    -

  • -
  • BarIconSet (name, size = 0, instance = KGlobal .instance ()) -
    -
    returns (TQIconSet)
    - - - -
    ArgumentTypeDefault
    nameTQString
    sizeint0
    instanceKInstanceKGlobal .instance ()
    -

  • -
  • DesktopIcon (name, size = 0, state = KIcon .DefaultState, instance = KGlobal .instance ()) -
    -
    returns (TQPixmap)
    - - - - -
    ArgumentTypeDefault
    nameTQString
    sizeint0
    stateintKIcon .DefaultState
    instanceKInstanceKGlobal .instance ()
    -

  • -
  • DesktopIcon (name, instance) -
    -
    returns (TQPixmap)
    - - -
    ArgumentTypeDefault
    nameTQString
    instanceKInstance
    -

  • -
  • DesktopIconSet (name, size = 0, instance = KGlobal .instance ()) -
    -
    returns (TQIconSet)
    - - - -
    ArgumentTypeDefault
    nameTQString
    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 (TQPixmap)
    - - - - -
    ArgumentTypeDefault
    nameTQString
    sizeint0
    stateintKIcon .DefaultState
    instanceKInstanceKGlobal .instance ()
    -

  • -
  • MainBarIcon (name, instance) -
    -
    returns (TQPixmap)
    - - -
    ArgumentTypeDefault
    nameTQString
    instanceKInstance
    -

  • -
  • MainBarIconSet (name, size = 0, instance = KGlobal .instance ()) -
    -
    returns (TQIconSet)
    - - - -
    ArgumentTypeDefault
    nameTQString
    sizeint0
    instanceKInstanceKGlobal .instance ()
    -

  • -
  • SmallIcon (name, size = 0, state = KIcon .DefaultState, instance = KGlobal .instance ()) -
    -
    returns (TQPixmap)
    - - - - -
    ArgumentTypeDefault
    nameTQString
    sizeint0
    stateintKIcon .DefaultState
    instanceKInstanceKGlobal .instance ()
    -

  • -
  • SmallIcon (name, instance) -
    -
    returns (TQPixmap)
    - - -
    ArgumentTypeDefault
    nameTQString
    instanceKInstance
    -

  • -
  • SmallIconSet (name, size = 0, instance = KGlobal .instance ()) -
    -
    returns (TQIconSet)
    - - - -
    ArgumentTypeDefault
    nameTQString
    sizeint0
    instanceKInstanceKGlobal .instance ()
    -

  • -
  • UserIcon (name, state = KIcon .DefaultState, instance = KGlobal .instance ()) -
    -
    returns (TQPixmap)
    - - - -
    ArgumentTypeDefault
    nameTQString
    stateintKIcon .DefaultState
    instanceKInstanceKGlobal .instance ()
    -

  • -
  • UserIcon (name, instance) -
    -
    returns (TQPixmap)
    - - -
    ArgumentTypeDefault
    nameTQString
    instanceKInstance
    -

  • -
  • UserIconSet (name, instance = KGlobal .instance ()) -
    -
    returns (TQIconSet)
    - - -
    ArgumentTypeDefault
    nameTQString
    instanceKInstanceKGlobal .instance ()
    -

  • -
  • checkAccess (pathname, mode) -
    Not Implemented
    -

  • -
  • i18n (text) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    textchar
    -

  • -
  • i18n (comment, text) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    commentchar
    textchar
    -

  • -
  • i18n (singular, plural, n) -
    -
    returns (TQString)
    - - - -
    ArgumentTypeDefault
    singularchar
    pluralchar
    nulong
    -

  • -
  • kasciistricmp (str1, str2) -
    - -
    returns (int)
    In versions KDE 3.4.0 and above only
    - - -
    ArgumentTypeDefault
    str1char
    str2char
    -

  • -
  • testKEntryMap (dict) -
    -
    returns (TQMap
    - -
    ArgumentTypeDefault
    dictKEntryMap
    -

  • -
  • urlcmp (_url1, _url2) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    _url1TQString
    _url2TQString
    -

  • -
  • urlcmp (_url1, _url2, _ignore_trailing, _ignore_ref) -
    -
    returns (bool)
    - - - - -
    ArgumentTypeDefault
    _url1TQString
    _url2TQString
    _ignore_trailingbool
    _ignore_refbool
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdefx/KCPUInfo.html b/python/pykde/doc/classref/kdefx/KCPUInfo.html deleted file mode 100644 index e39f5093..00000000 --- a/python/pykde/doc/classref/kdefx/KCPUInfo.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdefx/KImageEffect.html b/python/pykde/doc/classref/kdefx/KImageEffect.html deleted file mode 100644 index 6b87d905..00000000 --- a/python/pykde/doc/classref/kdefx/KImageEffect.html +++ /dev/null @@ -1,523 +0,0 @@ - - - - - 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 (TQImage)
    static
    - - -
    ArgumentTypeDefault
    srcTQImage
    typeKImageEffect.NoiseTypeGaussianNoise
    -

  • -
  • blend (clr, dst, opacity) -
    - -
    returns (TQImage)
    static
    - - - -
    ArgumentTypeDefault
    clrTQColor
    dstTQImage
    opacityfloat
    -

  • -
  • blend (src, dst, opacity) -
    - -
    returns (TQImage)
    static
    - - - -
    ArgumentTypeDefault
    srcTQImage
    dstTQImage
    opacityfloat
    -

  • -
  • blend (image, initial_intensity, bgnd, eff, anti_dir = 0) -
    - -
    returns (TQImage)
    static
    - - - - - -
    ArgumentTypeDefault
    imageTQImage
    initial_intensityfloat
    bgndTQColor
    effKImageEffect.GradientType
    anti_dirbool0
    -

  • -
  • blend (image1, image2, gt, xf = 100, yf = 100) -
    - -
    returns (TQImage)
    static
    - - - - - -
    ArgumentTypeDefault
    image1TQImage
    image2TQImage
    gtKImageEffect.GradientType
    xfint100
    yfint100
    -

  • -
  • blend (image1, image2, blendImage, channel) -
    - -
    returns (TQImage)
    static
    - - - - -
    ArgumentTypeDefault
    image1TQImage
    image2TQImage
    blendImageTQImage
    channelKImageEffect.RGBComponent
    -

  • -
  • blend (upper, lower, output) -
    - -
    returns (bool)
    static
    - - - -
    ArgumentTypeDefault
    upperTQImage
    lowerTQImage
    outputTQImage
    -

  • -
  • blend (x, y, upper, lower, output) -
    - -
    returns (bool) x (int) y (int)
    static
    - - - - - -
    ArgumentTypeDefault
    xint
    yint
    upperTQImage
    lowerTQImage
    outputTQImage
    -

  • -
  • blendOnLower (x, y, upper, lower) -
    - -
    returns (bool)
    static
    - - - - -
    ArgumentTypeDefault
    xint
    yint
    upperTQImage
    lowerTQImage
    -

  • -
  • blendOnLower (upper, upperOffset, lower, lowerRect) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    upperTQImage
    upperOffsetTQPoint
    lowerTQImage
    lowerRectTQRect
    -

  • -
  • blendOnLower (upper, upperOffset, lower, lowerRect, opacity) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    upperTQImage
    upperOffsetTQPoint
    lowerTQImage
    lowerRectTQRect
    opacityfloat
    -

  • -
  • blendOnLower (upper, lower, disposition, opacity) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    upperTQImage
    lowerTQImage
    dispositionKImageEffect.Disposition
    opacityfloat
    -

  • -
  • blur (src, radius, sigma) -
    - - -
    returns (TQImage)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    srcTQImage
    radiusdouble
    sigmadouble
    -

  • -
  • blur (src, factor = 50.0) -
    - -
    returns (TQImage)
    static
    - - -
    ArgumentTypeDefault
    srcTQImage
    factordouble50.0
    -

  • -
  • bumpmap (img, map, azimuth, elevation, depth, xofs, yofs, waterlevel, ambient, compensate, invert, type, tiled) -
    - - -
    returns (TQImage)
    In versions KDE 3.3.0 and above only
    static
    - - - - - - - - - - - - - -
    ArgumentTypeDefault
    imgTQImage
    mapTQImage
    azimuthdouble
    elevationdouble
    depthint
    xofsint
    yofsint
    waterlevelint
    ambientint
    compensatebool
    invertbool
    typeKImageEffect.BumpmapType
    tiledbool
    -

  • -
  • channelIntensity (image, percent, channel) -
    - -
    returns (TQImage)
    static
    - - - -
    ArgumentTypeDefault
    imageTQImage
    percentfloat
    channelKImageEffect.RGBComponent
    -

  • -
  • charcoal (src, radius, sigma) -
    - - -
    returns (TQImage)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    srcTQImage
    radiusdouble
    sigmadouble
    -

  • -
  • charcoal (src, factor = 50.0) -
    - -
    returns (TQImage)
    static
    - - -
    ArgumentTypeDefault
    srcTQImage
    factordouble50.0
    -

  • -
  • computeDestinationRect (lowerSize, disposition, upper) -
    - - -
    returns (TQRect)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    lowerSizeTQSize
    dispositionKImageEffect.Disposition
    upperTQImage
    -

  • -
  • contrast (image, c) -
    - -
    returns (TQImage)
    static
    - - -
    ArgumentTypeDefault
    imageTQImage
    cint
    -

  • -
  • contrastHSV (img, sharpen = 1) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    imgTQImage
    sharpenbool1
    -

  • -
  • desaturate (image, desat = 0.3) -
    - -
    returns (TQImage)
    static
    - - -
    ArgumentTypeDefault
    imageTQImage
    desatfloat0.3
    -

  • -
  • despeckle (src) -
    - -
    returns (TQImage)
    static
    - -
    ArgumentTypeDefault
    srcTQImage
    -

  • -
  • dither (image, palette, size) -
    Not Implemented
    -

  • -
  • edge (src, radius = 50.0) -
    - -
    returns (TQImage)
    static
    - - -
    ArgumentTypeDefault
    srcTQImage
    radiusdouble50.0
    -

  • -
  • emboss (src, radius, sigma) -
    - - -
    returns (TQImage)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    srcTQImage
    radiusdouble
    sigmadouble
    -

  • -
  • emboss (src) -
    - -
    returns (TQImage)
    static
    - -
    ArgumentTypeDefault
    srcTQImage
    -

  • -
  • equalize (img) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    imgTQImage
    -

  • -
  • fade (image, val, color) -
    - -
    returns (TQImage)
    static
    - - - -
    ArgumentTypeDefault
    imageTQImage
    valfloat
    colorTQColor
    -

  • -
  • flatten (image, ca, cb, ncols = 0) -
    - -
    returns (TQImage)
    static
    - - - - -
    ArgumentTypeDefault
    imageTQImage
    caTQColor
    cbTQColor
    ncolsint0
    -

  • -
  • gradient (size, ca, cb, type, ncols = 3) -
    - -
    returns (TQImage)
    static
    - - - - - -
    ArgumentTypeDefault
    sizeTQSize
    caTQColor
    cbTQColor
    typeKImageEffect.GradientType
    ncolsint3
    -

  • -
  • hash (image, lite = NorthLite, spacing = 0) -
    - -
    returns (TQImage)
    static
    - - - -
    ArgumentTypeDefault
    imageTQImage
    liteKImageEffect.LightingNorthLite
    spacinguint0
    -

  • -
  • implode (src, factor = 30.0, background = -1) -
    - -
    returns (TQImage)
    static
    - - - -
    ArgumentTypeDefault
    srcTQImage
    factordouble30.0
    backgrounduint-1
    -

  • -
  • intensity (image, percent) -
    - -
    returns (TQImage)
    static
    - - -
    ArgumentTypeDefault
    imageTQImage
    percentfloat
    -

  • -
  • modulate (image, modImage, reverse, type, factor, channel) -
    - -
    returns (TQImage)
    static
    - - - - - - -
    ArgumentTypeDefault
    imageTQImage
    modImageTQImage
    reversebool
    typeKImageEffect.ModulationType
    factorint
    channelKImageEffect.RGBComponent
    -

  • -
  • normalize (img) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    imgTQImage
    -

  • -
  • oilPaint (src, radius = 3) -
    - -
    returns (TQImage)
    static
    - - -
    ArgumentTypeDefault
    srcTQImage
    radiusint3
    -

  • -
  • oilPaintConvolve (src, radius) -
    - - -
    returns (TQImage)
    In versions KDE 3.2.0 and above only
    static
    - - -
    ArgumentTypeDefault
    srcTQImage
    radiusdouble
    -

  • -
  • rotate (src, r) -
    - -
    returns (TQImage)
    static
    - - -
    ArgumentTypeDefault
    srcTQImage
    rKImageEffect.RotateDirection
    -

  • -
  • sample (src, w, h) -
    - -
    returns (TQImage)
    static
    - - - -
    ArgumentTypeDefault
    srcTQImage
    wint
    hint
    -

  • -
  • selectedImage (img, col) -
    - -
    returns (TQImage)
    static
    - - -
    ArgumentTypeDefault
    imgTQImage
    colTQColor
    -

  • -
  • shade (src, color_shading = 1, azimuth = 30.0, elevation = 30.0) -
    - -
    returns (TQImage)
    static
    - - - - -
    ArgumentTypeDefault
    srcTQImage
    color_shadingbool1
    azimuthdouble30.0
    elevationdouble30.0
    -

  • -
  • sharpen (src, radius, sigma) -
    - - -
    returns (TQImage)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    srcTQImage
    radiusdouble
    sigmadouble
    -

  • -
  • sharpen (src, factor = 30.0) -
    - -
    returns (TQImage)
    static
    - - -
    ArgumentTypeDefault
    srcTQImage
    factordouble30.0
    -

  • -
  • solarize (img, factor = 50.0) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    imgTQImage
    factordouble50.0
    -

  • -
  • spread (src, amount = 3) -
    - -
    returns (TQImage)
    static
    - - -
    ArgumentTypeDefault
    srcTQImage
    amountuint3
    -

  • -
  • swirl (src, degrees = 50.0, background = -1) -
    - -
    returns (TQImage)
    static
    - - - -
    ArgumentTypeDefault
    srcTQImage
    degreesdouble50.0
    backgrounduint-1
    -

  • -
  • threshold (img, value = 128) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    imgTQImage
    valueuint128
    -

  • -
  • toGray (image, fast = 0) -
    - -
    returns (TQImage)
    static
    - - -
    ArgumentTypeDefault
    imageTQImage
    fastbool0
    -

  • -
  • unbalancedGradient (size, ca, cb, type, xfactor = 100, yfactor = 100, ncols = 3) -
    - -
    returns (TQImage)
    static
    - - - - - - - -
    ArgumentTypeDefault
    sizeTQSize
    caTQColor
    cbTQColor
    typeKImageEffect.GradientType
    xfactorint100
    yfactorint100
    ncolsint3
    -

  • -
  • wave (src, amplitude = 25.0, frequency = 150.0, background = -1) -
    - -
    returns (TQImage)
    static
    - - - - -
    ArgumentTypeDefault
    srcTQImage
    amplitudedouble25.0
    frequencydouble150.0
    backgrounduint-1
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdefx/KPixmap.html b/python/pykde/doc/classref/kdefx/KPixmap.html deleted file mode 100644 index 4b0d53e0..00000000 --- a/python/pykde/doc/classref/kdefx/KPixmap.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - class KPixmap - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KPixmap


-
- - - - - -
Table of contents
Modules
kdefx Classes
All Classes
-
- - - - - - - - - - -
Modulekdefx
ClassKPixmap
InheritsTQPixmap
-

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
    pixTQPixmap
    -

  • -
  • checkColorTable (image) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    imageTQImage
    -

  • -
  • convertFromImage (img, conversion_flags) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    imgTQImage
    conversion_flagsint
    -

  • -
  • convertFromImage (img, mode = WebColor) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    imgTQImage
    modeColorModeWebColor
    -

  • -
  • load (fileName, format, conversion_flags) -
    -
    returns (bool)
    - - - -
    ArgumentTypeDefault
    fileNameTQString
    formatchar
    conversion_flagsint
    -

  • -
  • load (fileName, format = 0, mode = WebColor) -
    -
    returns (bool)
    - - - -
    ArgumentTypeDefault
    fileNameTQString
    formatchar0
    modeColorModeWebColor
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdefx/KPixmapEffect.html b/python/pykde/doc/classref/kdefx/KPixmapEffect.html deleted file mode 100644 index 7b08725b..00000000 --- a/python/pykde/doc/classref/kdefx/KPixmapEffect.html +++ /dev/null @@ -1,178 +0,0 @@ - - - - - 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
    bgndTQColor
    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
    sizeTQSize
    -

  • -
  • desaturate (pixmap, desat = 0.3) -
    - -
    returns (KPixmap)
    static
    - - -
    ArgumentTypeDefault
    pixmapKPixmap
    desatfloat0.3
    -

  • -
  • dither (pixmap, palette, size) -
    - -
    returns (KPixmap)
    static
    - - - -
    ArgumentTypeDefault
    pixmapKPixmap
    paletteTQColor
    sizeint
    -

  • -
  • fade (pixmap, val, color) -
    - -
    returns (KPixmap)
    static
    - - - -
    ArgumentTypeDefault
    pixmapKPixmap
    valdouble
    colorTQColor
    -

  • -
  • gradient (pixmap, ca, cb, type, ncols = 3) -
    - -
    returns (KPixmap)
    static
    - - - - - -
    ArgumentTypeDefault
    pixmapKPixmap
    caTQColor
    cbTQColor
    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
    sizeTQSize
    caTQColor
    cbTQColor
    ncolsint8
    -

  • -
  • selectedPixmap (pixmap, col) -
    - -
    returns (KPixmap)
    static
    - - -
    ArgumentTypeDefault
    pixmapKPixmap
    colTQColor
    -

  • -
  • 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
    caTQColor
    cbTQColor
    typeKPixmapEffect.GradientType
    xfactorint100
    yfactorint100
    ncolsint3
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdefx/KPixmapSplitter.html b/python/pykde/doc/classref/kdefx/KPixmapSplitter.html deleted file mode 100644 index 924d91d2..00000000 --- a/python/pykde/doc/classref/kdefx/KPixmapSplitter.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - 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 (TQRect)
    - -
    ArgumentTypeDefault
    posint
    -

  • -
  • coordinates (ch) -
    -
    returns (TQRect)
    - -
    ArgumentTypeDefault
    chTQChar
    -

  • -
  • itemSize () -
    -
    returns (TQSize)

  • -
  • pixmap () -
    -
    returns (TQPixmap)

  • -
  • setHSpacing (spacing) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    spacingint
    -

  • -
  • setItemSize (size) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sizeTQSize
    -

  • -
  • setPixmap (pixmap) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pixmapTQPixmap
    -

  • -
  • setVSpacing (spacing) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    spacingint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdefx/KStyle.html b/python/pykde/doc/classref/kdefx/KStyle.html deleted file mode 100644 index edaf40f9..00000000 --- a/python/pykde/doc/classref/kdefx/KStyle.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - - class KStyle - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KStyle


-
- - - - - -
Table of contents
Modules
kdefx Classes
All Classes
-
- - - - - - - - - - -
Modulekdefx
ClassKStyle
InheritsTQCommonStyle
-

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 (TQString)
    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 = TQStyleOption (TQStyleOption .Default )) -
    -
    returns nothing
    - - - - - - - - - -
    ArgumentTypeDefault
    controlComplexControl
    pTQPainter
    widgetTQWidget
    rTQRect
    cgTQColorGroup
    flagsSFlagsStyle_Default
    controlsSCFlagsSC_All
    activeSCFlagsSC_None
    a0TQStyleOptionTQStyleOption (TQStyleOption .Default )
    -

  • -
  • drawControl (element, p, widget, r, cg, flags = Style_Default, a0 = TQStyleOption (TQStyleOption .Default )) -
    -
    returns nothing
    - - - - - - - -
    ArgumentTypeDefault
    elementControlElement
    pTQPainter
    widgetTQWidget
    rTQRect
    cgTQColorGroup
    flagsSFlagsStyle_Default
    a0TQStyleOptionTQStyleOption (TQStyleOption .Default )
    -

  • -
  • drawKStylePrimitive (kpe, p, widget, r, cg, flags = Style_Default, a0 = TQStyleOption (TQStyleOption .Default )) -
    -
    returns nothing
    - - - - - - - -
    ArgumentTypeDefault
    kpeKStyle.KStylePrimitive
    pTQPainter
    widgetTQWidget
    rTQRect
    cgTQColorGroup
    flagsSFlagsStyle_Default
    a0TQStyleOptionTQStyleOption (TQStyleOption .Default )
    -

  • -
  • drawPrimitive (pe, p, r, cg, flags = Style_Default, a0 = TQStyleOption (TQStyleOption .Default )) -
    -
    returns nothing
    - - - - - - -
    ArgumentTypeDefault
    pePrimitiveElement
    pTQPainter
    rTQRect
    cgTQColorGroup
    flagsSFlagsStyle_Default
    a0TQStyleOptionTQStyleOption (TQStyleOption .Default )
    -

  • -
  • eventFilter (object, event) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    objectTQObject
    eventTQEvent
    -

  • -
  • kPixelMetric (kpm, widget = 0) -
    -
    returns (int)
    - - -
    ArgumentTypeDefault
    kpmKStyle.KStylePixelMetric
    widgetTQWidget0
    -

  • -
  • pixelMetric (m, widget = 0) -
    -
    returns (int)
    - - -
    ArgumentTypeDefault
    mPixelMetric
    widgetTQWidget0
    -

  • -
  • polish (widget) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    widgetTQWidget
    -

  • -
  • polishPopupMenu (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQPopupMenu
    -

  • -
  • querySubControl (control, widget, pos, a0 = TQStyleOption (TQStyleOption .Default )) -
    -
    returns (SubControl)
    - - - - -
    ArgumentTypeDefault
    controlComplexControl
    widgetTQWidget
    posTQPoint
    a0TQStyleOptionTQStyleOption (TQStyleOption .Default )
    -

  • -
  • querySubControlMetrics (control, widget, sc, a0 = TQStyleOption (TQStyleOption .Default )) -
    -
    returns (TQRect)
    - - - - -
    ArgumentTypeDefault
    controlComplexControl
    widgetTQWidget
    scSubControl
    a0TQStyleOptionTQStyleOption (TQStyleOption .Default )
    -

  • -
  • renderMenuBlendPixmap (pix, cg, popup) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    pixKPixmap
    cgTQColorGroup
    popupTQPopupMenu
    -

  • -
  • setScrollBarType (sbtype) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sbtypeKStyle.KStyleScrollBarType
    -

  • -
  • styleFlags () -
    -
    returns (KStyle.KStyleFlags)

  • -
  • styleHint (sh, w = 0, opt = TQStyleOption (TQStyleOption .Default ), shr = 0) -
    -
    returns (int)
    - - - - -
    ArgumentTypeDefault
    shStyleHint
    wTQWidget0
    optTQStyleOptionTQStyleOption (TQStyleOption .Default )
    shrQStyleHintReturn0
    -

  • -
  • stylePixmap (stylepixmap, widget = 0, a0 = TQStyleOption (TQStyleOption .Default )) -
    -
    returns (TQPixmap)
    - - - -
    ArgumentTypeDefault
    stylepixmapStylePixmap
    widgetTQWidget0
    a0TQStyleOptionTQStyleOption (TQStyleOption .Default )
    -

  • -
  • subRect (r, widget) -
    -
    returns (TQRect)
    - - -
    ArgumentTypeDefault
    rSubRect
    widgetTQWidget
    -

  • -
  • unPolish (widget) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    widgetTQWidget
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdefx/index.html b/python/pykde/doc/classref/kdefx/index.html deleted file mode 100644 index fa1f59dc..00000000 --- a/python/pykde/doc/classref/kdefx/index.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdefx/kdefx-globals.html b/python/pykde/doc/classref/kdefx/kdefx-globals.html deleted file mode 100644 index 32374715..00000000 --- a/python/pykde/doc/classref/kdefx/kdefx-globals.html +++ /dev/null @@ -1,151 +0,0 @@ - - - - - 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
    pTQPainter
    gTQColorGroup
    xint
    yint
    lightColorTQBitmap0
    midColorTQBitmap0
    midlightColorTQBitmap0
    darkColorTQBitmap0
    blackColorTQBitmap0
    whiteColorTQBitmap0
    -

  • -
  • kColorBitmaps (p, g, x, y, w, h, isXBitmaps = 1, lightColor = 0, midColor = 0, midlightColor = 0, darkColor = 0, blackColor = 0, whiteColor = 0) -
    -
    returns nothing
    - - - - - - - - - - - - - -
    ArgumentTypeDefault
    pTQPainter
    gTQColorGroup
    xint
    yint
    wint
    hint
    isXBitmapsbool1
    lightColoruchar0
    midColoruchar0
    midlightColoruchar0
    darkColoruchar0
    blackColoruchar0
    whiteColoruchar0
    -

  • -
  • kDrawBeButton (p, r, g, sunken = 0, fill = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pTQPainter
    rTQRect
    gTQColorGroup
    sunkenbool0
    fillTQBrush0
    -

  • -
  • kDrawBeButton (p, x, y, w, h, g, sunken = 0, fill = 0) -
    -
    returns nothing
    - - - - - - - - -
    ArgumentTypeDefault
    pTQPainter
    xint
    yint
    wint
    hint
    gTQColorGroup
    sunkenbool0
    fillTQBrush0
    -

  • -
  • kDrawNextButton (p, r, g, sunken = 0, fill = 0) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pTQPainter
    rTQRect
    gTQColorGroup
    sunkenbool0
    fillTQBrush0
    -

  • -
  • kDrawNextButton (p, x, y, w, h, g, sunken = 0, fill = 0) -
    -
    returns nothing
    - - - - - - - - -
    ArgumentTypeDefault
    pTQPainter
    xint
    yint
    wint
    hint
    gTQColorGroup
    sunkenbool0
    fillTQBrush0
    -

  • -
  • kDrawRoundButton (p, r, g, sunken = 0) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    pTQPainter
    rTQRect
    gTQColorGroup
    sunkenbool0
    -

  • -
  • kDrawRoundButton (p, x, y, w, h, g, sunken = 0) -
    -
    returns nothing
    - - - - - - - -
    ArgumentTypeDefault
    pTQPainter
    xint
    yint
    wint
    hint
    gTQColorGroup
    sunkenbool0
    -

  • -
  • kDrawRoundMask (p, x, y, w, h, clear = 0) -
    -
    returns nothing
    - - - - - - -
    ArgumentTypeDefault
    pTQPainter
    xint
    yint
    wint
    hint
    clearbool0
    -

  • -
  • kRoundMaskRegion (r, x, y, w, h) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    rTQRegion
    xint
    yint
    wint
    hint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeprint/DrBase.html b/python/pykde/doc/classref/kdeprint/DrBase.html deleted file mode 100644 index c3b01264..00000000 --- a/python/pykde/doc/classref/kdeprint/DrBase.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - 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 (TQString)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • getOptions (opts, incldef = 0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    optsTQMap
    incldefbool0
    -

  • -
  • has (key) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • isOption () -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only

  • -
  • name () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • prettyText () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • set (key, val) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    keyTQString
    valTQString
    -

  • -
  • 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
    sTQString
    -

  • -
  • setOptions (opts) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    optsTQMap
    -

  • -
  • setValueText (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • type () -
    - -
    returns (DrBase.Type)
    In versions KDE 3.1.0 and above only

  • -
  • valueText () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeprint/DrBooleanOption.html b/python/pykde/doc/classref/kdeprint/DrBooleanOption.html deleted file mode 100644 index 57d6aad6..00000000 --- a/python/pykde/doc/classref/kdeprint/DrBooleanOption.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdeprint/DrChoiceGroup.html b/python/pykde/doc/classref/kdeprint/DrChoiceGroup.html deleted file mode 100644 index 9a2cedc1..00000000 --- a/python/pykde/doc/classref/kdeprint/DrChoiceGroup.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdeprint/DrConstraint.html b/python/pykde/doc/classref/kdeprint/DrConstraint.html deleted file mode 100644 index 8037649e..00000000 --- a/python/pykde/doc/classref/kdeprint/DrConstraint.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - 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 = TQString .null, c2 = TQString .null) -
    - -
    returns a DrConstraint instance
    In versions KDE 3.1.0 and above only
    - - - - -
    ArgumentTypeDefault
    o1TQString
    o2TQString
    c1TQStringTQString .null
    c2TQStringTQString .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/python/pykde/doc/classref/kdeprint/DrFloatOption.html b/python/pykde/doc/classref/kdeprint/DrFloatOption.html deleted file mode 100644 index 80331b4a..00000000 --- a/python/pykde/doc/classref/kdeprint/DrFloatOption.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - 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 (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • setValueText (s) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • valueText () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeprint/DrGroup.html b/python/pykde/doc/classref/kdeprint/DrGroup.html deleted file mode 100644 index b33ece2e..00000000 --- a/python/pykde/doc/classref/kdeprint/DrGroup.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - 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
    optsTQMap
    incldefbool0
    -

  • -
  • groupForOption (optname) -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    optnameTQString
    -

  • -
  • 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
    nameTQString
    -

  • -
  • setOptions (opts) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    optsTQMap
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeprint/DrIntegerOption.html b/python/pykde/doc/classref/kdeprint/DrIntegerOption.html deleted file mode 100644 index cc986e79..00000000 --- a/python/pykde/doc/classref/kdeprint/DrIntegerOption.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - 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 (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • setValueText (s) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • valueText () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeprint/DrListOption.html b/python/pykde/doc/classref/kdeprint/DrListOption.html deleted file mode 100644 index 7bc91c25..00000000 --- a/python/pykde/doc/classref/kdeprint/DrListOption.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - - 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
    txtTQString
    -

  • -
  • getOptions (opts, incldef = 0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    optsTQMap
    incldefbool0
    -

  • -
  • prettyText () -
    - -
    returns (TQString)
    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
    optsTQMap
    -

  • -
  • setValueText (s) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • valueText () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeprint/DrMain.html b/python/pykde/doc/classref/kdeprint/DrMain.html deleted file mode 100644 index f1f74c5d..00000000 --- a/python/pykde/doc/classref/kdeprint/DrMain.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - 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
    nameTQString
    -

  • -
  • 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
    nameTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeprint/DrPageSize.html b/python/pykde/doc/classref/kdeprint/DrPageSize.html deleted file mode 100644 index 4acbb03f..00000000 --- a/python/pykde/doc/classref/kdeprint/DrPageSize.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - 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
    sTQString
    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 (TQSize)
    In versions KDE 3.1.0 and above only

  • -
  • name () -
    - -
    returns (TQString)
    In versions less than KDE 3.2.0 only

  • -
  • pageHeight () -
    - -
    returns (float)
    In versions KDE 3.2.0 and above only

  • -
  • pageName () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • pageRect () -
    - -
    returns (TQRect)
    In versions KDE 3.1.0 and above only

  • -
  • pageSize () -
    - -
    returns (TQSize)
    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/python/pykde/doc/classref/kdeprint/DrStringOption.html b/python/pykde/doc/classref/kdeprint/DrStringOption.html deleted file mode 100644 index 1bb21c07..00000000 --- a/python/pykde/doc/classref/kdeprint/DrStringOption.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 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
    sTQString
    -

  • -
  • valueText () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeprint/KMJob.html b/python/pykde/doc/classref/kdeprint/KMJob.html deleted file mode 100644 index 6e592803..00000000 --- a/python/pykde/doc/classref/kdeprint/KMJob.html +++ /dev/null @@ -1,242 +0,0 @@ - - - - - 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 (TQString)
    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 (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • owner () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • pages () -
    - -
    returns (int)
    In versions KDE 3.1.0 and above only

  • -
  • pixmap () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • printer () -
    - -
    returns (TQString)
    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
    attTQString
    -

  • -
  • 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
    sTQString
    -

  • -
  • setOwner (s) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • 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
    sTQString
    -

  • -
  • 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
    sTQString
    -

  • -
  • 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 (TQString)
    In versions KDE 3.1.0 and above only

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

  • -
  • uri () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeprint/KMJobManager.JobFilter.html b/python/pykde/doc/classref/kdeprint/KMJobManager.JobFilter.html deleted file mode 100644 index 836b1b88..00000000 --- a/python/pykde/doc/classref/kdeprint/KMJobManager.JobFilter.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdeprint/KMJobManager.html b/python/pykde/doc/classref/kdeprint/KMJobManager.html deleted file mode 100644 index 6c774e0f..00000000 --- a/python/pykde/doc/classref/kdeprint/KMJobManager.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - class KMJobManager - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMJobManager


-
- - - - - -
Table of contents
Modules
kdeprint Classes
All Classes
-
- - - - - - - - - - -
Modulekdeprint
ClassKMJobManager
InheritsTQObject
-

enums

    -
  • JobType = {ActiveJobs, CompletedJobs -}
-

methods

    -
  • KMJobManager (parent = 0, name = 0) -
    - -
    returns a KMJobManager instance
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQObject0
    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
    prTQString
    typeKMJobManager.JobTypeActiveJobs
    isSpecialbool0
    -

  • -
  • addPrinter (a0, a1 = ActiveJobs) -
    - -
    returns nothing
    In versions less than KDE 3.2.2 only
    - - -
    ArgumentTypeDefault
    a0TQString
    a1KMJobManager.JobTypeActiveJobs
    -

  • -
  • clearFilter () -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only

  • -
  • createPluginActions (a0) -
    - -
    returns (TQValueList
    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
    a1TQPtrList
    -

  • -
  • filter () -
    Not Implemented
    -

  • -
  • findJob (uri) -
    - -
    returns (KMJob)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    uriTQString
    -

  • -
  • jobList (reload = 1) -
    - -
    returns (TQPtrList)
    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
    prnameTQString
    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
    prTQString
    typeKMJobManager.JobTypeActiveJobs
    -

  • -
  • self () -
    - - -
    returns (KMJobManager)
    In versions KDE 3.1.0 and above only
    static

  • -
  • sendCommand (uri, action, arg = TQString .null) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - - - -
    ArgumentTypeDefault
    uriTQString
    actionint
    argTQStringTQString .null
    -

  • -
  • sendCommand (jobs, action, arg = TQString .null) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - - - -
    ArgumentTypeDefault
    jobsTQPtrList
    actionint
    argTQStringTQString .null
    -

  • -
  • sendCommandSystemJob (jobs, action, arg = TQString .null) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - - - -
    ArgumentTypeDefault
    jobsTQPtrList
    actionint
    argTQStringTQString .null
    -

  • -
  • sendCommandThreadJob (jobs, action, arg = TQString .null) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - - - -
    ArgumentTypeDefault
    jobsTQPtrList
    actionint
    argTQStringTQString .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
    a1TQPtrList
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeprint/KMManager.html b/python/pykde/doc/classref/kdeprint/KMManager.html deleted file mode 100644 index 45f317ae..00000000 --- a/python/pykde/doc/classref/kdeprint/KMManager.html +++ /dev/null @@ -1,363 +0,0 @@ - - - - - class KMManager - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMManager


-
- - - - - -
Table of contents
Modules
kdeprint Classes
All Classes
-
- - - - - - - - - - -
Modulekdeprint
ClassKMManager
InheritsTQObject
-

enums

    -
  • PrinterOperations = {PrinterEnabling, PrinterCreation, PrinterDefault, PrinterTesting, PrinterConfigure, PrinterRemoval, PrinterAll -}
  • ServerOperations = {ServerRestarting, ServerConfigure, ServerAll -}
-

methods

    -
  • KMManager (parent = 0, name = 0) -
    -
    returns a KMManager instance
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • addPrinter (p) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pKMPrinter
    -

  • -
  • addPrinterWizard (parent = 0) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    parentTQWidget0
    -

  • -
  • 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
    nameTQString
    -

  • -
  • completePrinterShort (p) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    pKMPrinter
    -

  • -
  • configureServer (parent = 0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    parentTQWidget0
    -

  • -
  • createPluginActions (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KActionCollection
    -

  • -
  • createPrinter (p) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    pKMPrinter
    -

  • -
  • createSpecialPrinter (p) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    pKMPrinter
    -

  • -
  • defaultPrinter () -
    -
    returns (KMPrinter)

  • -
  • detectLocalPrinters () -
    -
    returns (TQStringList)

  • -
  • discardAllPrinters (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • driverDbCreationProgram () -
    -
    returns (TQString)

  • -
  • driverDirectory () -
    -
    returns (TQString)

  • -
  • enableFilter (on) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    onbool
    -

  • -
  • enablePrinter (p, on) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    pKMPrinter
    onbool
    -

  • -
  • enablePrinter (name, state) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    nameTQString
    statebool
    -

  • -
  • errorMsg () -
    -
    returns (TQString)

  • -
  • findPrinter (name) -
    -
    returns (KMPrinter)
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • hardDefault () -
    -
    returns (KMPrinter)

  • -
  • hasManagement () -
    -
    returns (bool)

  • -
  • invokeOptionsDialog (parent = 0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    parentTQWidget0
    -

  • -
  • 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 (TQPtrList)
    - -
    ArgumentTypeDefault
    reloadbool1
    -

  • -
  • printerListComplete (reload = 1) -
    -
    returns (TQPtrList)
    - -
    ArgumentTypeDefault
    reloadbool1
    -

  • -
  • printerOperationMask () -
    -
    returns (int)

  • -
  • removePrinter (p) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    pKMPrinter
    -

  • -
  • removePrinter (name) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • 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
    nameTQString
    -

  • -
  • setErrorMsg (s) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • 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
    nameTQString
    statebool
    -

  • -
  • stateInformation () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • testPage () -
    -
    returns (TQString)

  • -
  • testPrinter (p) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    pKMPrinter
    -

  • -
  • uncompressFile (srcname, destname) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    srcnameTQString
    destnameTQString
    -

  • -
  • 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/python/pykde/doc/classref/kdeprint/KMObject.html b/python/pykde/doc/classref/kdeprint/KMObject.html deleted file mode 100644 index 3b5f474f..00000000 --- a/python/pykde/doc/classref/kdeprint/KMObject.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdeprint/KMPrinter.html b/python/pykde/doc/classref/kdeprint/KMPrinter.html deleted file mode 100644 index 19355ee8..00000000 --- a/python/pykde/doc/classref/kdeprint/KMPrinter.html +++ /dev/null @@ -1,420 +0,0 @@ - - - - - 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
    sTQString
    -

  • -
  • 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
    parentTQWidget0
    -

  • -
  • compare (p1, p2) -
    - -
    returns (int)
    static
    - - -
    ArgumentTypeDefault
    p1KMPrinter
    p2KMPrinter
    -

  • -
  • copy (p) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pKMPrinter
    -

  • -
  • dbEntry () -
    Not Implemented
    -

  • -
  • defaultOption (key) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • defaultOptions () -
    -
    returns (TQMap)

  • -
  • description () -
    -
    returns (TQString)

  • -
  • device () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • device () -
    - -
    returns (KURL)
    In versions less than KDE 3.2.0 only

  • -
  • deviceProtocol () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • driver () -
    Not Implemented
    -

  • -
  • driverInfo () -
    -
    returns (TQString)

  • -
  • editedOption (key) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • editedOptions () -
    -
    returns (TQMap)

  • -
  • hasOption (key) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • instanceName () -
    -
    returns (TQString)

  • -
  • 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 (TQString)

  • -
  • manufacturer () -
    -
    returns (TQString)

  • -
  • members () -
    -
    returns (TQStringList)

  • -
  • model () -
    -
    returns (TQString)

  • -
  • name () -
    -
    returns (TQString)

  • -
  • option (key) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • options () -
    -
    returns (TQMap)

  • -
  • ownSoftDefault () -
    -
    returns (bool)

  • -
  • pixmap () -
    -
    returns (TQString)

  • -
  • printerCap () -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only

  • -
  • printerName () -
    -
    returns (TQString)

  • -
  • removeOption (key) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • setAcceptJobs (on) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    onbool
    -

  • -
  • setDbEntry (e) -
    Not Implemented
    -

  • -
  • setDefaultOption (key, value) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    keyTQString
    valueTQString
    -

  • -
  • setDefaultOptions (opts) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    optsTQMap
    -

  • -
  • setDescription (s) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • setDevice (d) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    dTQString
    -

  • -
  • setDevice (a0) -
    - -
    returns nothing
    In versions less than KDE 3.2.0 only
    - -
    ArgumentTypeDefault
    a0KURL
    -

  • -
  • setDriver (a0) -
    Not Implemented
    -

  • -
  • setDriverInfo (s) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • setEdited (on) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    onbool
    -

  • -
  • setEditedOption (key, value) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    keyTQString
    valueTQString
    -

  • -
  • setEditedOptions (opts) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    optsTQMap
    -

  • -
  • setHardDefault (on) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    onbool
    -

  • -
  • setInstanceName (s) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • setLocation (s) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • setManufacturer (s) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • setMembers (l) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    lTQStringList
    -

  • -
  • setModel (s) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • setName (s) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • setOption (key, value) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    keyTQString
    valueTQString
    -

  • -
  • setOptions (opts) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    optsTQMap
    -

  • -
  • setOwnSoftDefault (on) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    onbool
    -

  • -
  • setPixmap (s) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • setPrinterCap (c) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    cint
    -

  • -
  • setPrinterName (s) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • 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 (TQString)

  • -
  • takeDriver () -
    Not Implemented
    -

  • -
  • type () -
    -
    returns (int)

  • -
  • uri () -
    -
    returns (KURL)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeprint/KPReloadObject.html b/python/pykde/doc/classref/kdeprint/KPReloadObject.html deleted file mode 100644 index e3b5dc37..00000000 --- a/python/pykde/doc/classref/kdeprint/KPReloadObject.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdeprint/KPrintAction.html b/python/pykde/doc/classref/kdeprint/KPrintAction.html deleted file mode 100644 index 9f9db060..00000000 --- a/python/pykde/doc/classref/kdeprint/KPrintAction.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - 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
    textTQString
    typeKPrintAction.PrinterTypeAll
    parentWidgetTQWidget0
    parentTQObject0
    namechar0
    -

  • -
  • KPrintAction (text, icon, type = All, parentWidget = 0, parent = 0, name = 0) -
    -
    returns a KPrintAction instance
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    iconTQIconSet
    typeKPrintAction.PrinterTypeAll
    parentWidgetTQWidget0
    parentTQObject0
    namechar0
    -

  • -
  • KPrintAction (text, icon, type = All, parentWidget = 0, parent = 0, name = 0) -
    -
    returns a KPrintAction instance
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    iconTQString
    typeKPrintAction.PrinterTypeAll
    parentWidgetTQWidget0
    parentTQObject0
    namechar0
    -

  • -
  • exportAll (parentWidget = 0, parent = 0, name = 0) -
    - -
    returns (KPrintAction)
    static
    - - - -
    ArgumentTypeDefault
    parentWidgetTQWidget0
    parentTQObject0
    namechar0
    -

  • -
  • exportRegular (parentWidget = 0, parent = 0, name = 0) -
    - -
    returns (KPrintAction)
    static
    - - - -
    ArgumentTypeDefault
    parentWidgetTQWidget0
    parentTQObject0
    namechar0
    -

  • -
  • exportSpecial (parentWidget = 0, parent = 0, name = 0) -
    - -
    returns (KPrintAction)
    static
    - - - -
    ArgumentTypeDefault
    parentWidgetTQWidget0
    parentTQObject0
    namechar0
    -

  • -
  • initialize (type, parentWidget) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    typeKPrintAction.PrinterType
    parentWidgetTQWidget
    -

  • -
  • print_ (a0) -
    - -
    returns nothing
    Renamed: was ' print -' in C++
    - -
    ArgumentTypeDefault
    a0KPrinter
    -

  • -
  • slotAboutToShow () -
    -
    returns nothing

  • -
  • slotActivated (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeprint/KPrintDialog.html b/python/pykde/doc/classref/kdeprint/KPrintDialog.html deleted file mode 100644 index 82799d5e..00000000 --- a/python/pykde/doc/classref/kdeprint/KPrintDialog.html +++ /dev/null @@ -1,193 +0,0 @@ - - - - - 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
    parentTQWidget0
    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 = TQString .null, forceExpand = 0) -
    - -
    returns (KPrintDialog)
    static
    - - - - -
    ArgumentTypeDefault
    a0KPrinter
    a1TQWidget
    captionTQStringTQString .null
    forceExpandbool0
    -

  • -
  • reload () -
    -
    returns nothing

  • -
  • setDialogPages (pages) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pagesTQPtrList
    -

  • -
  • setFlags (f) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    fint
    -

  • -
  • setOutputFileExtension (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • 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
    a0TQString
    -

  • -
  • 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/python/pykde/doc/classref/kdeprint/KPrintDialogPage.html b/python/pykde/doc/classref/kdeprint/KPrintDialogPage.html deleted file mode 100644 index 4864f9f9..00000000 --- a/python/pykde/doc/classref/kdeprint/KPrintDialogPage.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - class KPrintDialogPage - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KPrintDialogPage


-
- - - - - -
Table of contents
Modules
kdeprint Classes
All Classes
-
- - - - - - - - - - -
Modulekdeprint
ClassKPrintDialogPage
InheritsTQWidget
-

methods

    -
  • KPrintDialogPage (parent = 0, name = 0) -
    -
    returns a KPrintDialogPage instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KPrintDialogPage (pr, dr = 0, parent = 0, name = 0) -
    Not Implemented
    -

  • -
  • driver () -
    Not Implemented
    -

  • -
  • getOptions (opts, incldef = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    optsTQMap
    incldefbool0
    -

  • -
  • id () -
    -
    returns (int)

  • -
  • isValid (msg) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    msgTQString
    -

  • -
  • onlyRealPrinters () -
    -
    returns (bool)

  • -
  • printer () -
    Not Implemented
    -

  • -
  • setId (ID) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    IDint
    -

  • -
  • setOnlyRealPrinters (on = 1) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    onbool1
    -

  • -
  • setOptions (opts) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    optsTQMap
    -

  • -
  • setTitle (txt) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    txtTQString
    -

  • -
  • title () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeprint/KPrinter.html b/python/pykde/doc/classref/kdeprint/KPrinter.html deleted file mode 100644 index 645b078f..00000000 --- a/python/pykde/doc/classref/kdeprint/KPrinter.html +++ /dev/null @@ -1,493 +0,0 @@ - - - - - class KPrinter - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KPrinter


-
- - - - - -
Table of contents
Modules
kdeprint Classes
All Classes
-
- - - - - - - - - - -
Modulekdeprint
ClassKPrinter
InheritsTQPaintDevice, 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 = TQPrinter .ScreenResolution) -
    -
    returns a KPrinter instance
    - - -
    ArgumentTypeDefault
    restorebool1
    mTQPrinter.PrinterModeTQPrinter .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 = TQString .null, parent = 0) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    prnameTQStringTQString .null
    parentTQWidget0
    -

  • -
  • cmd (a0, a1, a2) -
    Not Implemented
    -

  • -
  • collate () -
    -
    returns (KPrinter.CollateType)

  • -
  • colorMode () -
    -
    returns (KPrinter.ColorMode)

  • -
  • creator () -
    -
    returns (TQString)

  • -
  • currentPage () -
    -
    returns (int)

  • -
  • doPreview (file) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    fileTQString
    -

  • -
  • docDirectory () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • docFileName () -
    -
    returns (TQString)

  • -
  • docName () -
    -
    returns (TQString)

  • -
  • errorMessage () -
    -
    returns (TQString)

  • -
  • finishPrinting () -
    -
    returns nothing

  • -
  • fromPage () -
    -
    returns (int)

  • -
  • fullPage () -
    -
    returns (bool)

  • -
  • implementation () -
    Not Implemented
    -

  • -
  • init (restore = 1, m = TQPrinter .ScreenResolution) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    restorebool1
    mTQPrinter.PrinterModeTQPrinter .ScreenResolution
    -

  • -
  • initOptions (opts) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    optsTQMap
    -

  • -
  • loadSettings () -
    -
    returns nothing

  • -
  • margins () -
    -
    returns (TQSize)

  • -
  • 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 (TQString)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • options () -
    -
    returns (TQMap)

  • -
  • orientation () -
    -
    returns (KPrinter.Orientation)

  • -
  • outputFileName () -
    -
    returns (TQString)

  • -
  • outputToFile () -
    -
    returns (bool)

  • -
  • pageList () -
    -
    returns (TQValueList)

  • -
  • 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
    filesTQStringList
    removeafterbool0
    startviewerbool1
    -

  • -
  • printProgram () -
    -
    returns (TQString)

  • -
  • printerName () -
    -
    returns (TQString)

  • -
  • printerSelectionOption () -
    -
    returns (TQString)

  • -
  • realDrawableArea () -
    - -
    returns (TQRect)
    In versions KDE 3.1.0 and above only

  • -
  • realPageSize () -
    -
    returns (TQSize)

  • -
  • 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 (TQString)

  • -
  • 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
    a0TQString
    -

  • -
  • setCurrentPage (p = 0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pint0
    -

  • -
  • setDocDirectory (dir) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    dirTQString
    -

  • -
  • setDocFileName (filename) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    filenameTQString
    -

  • -
  • setDocName (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setErrorMessage (msg) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    msgTQString
    -

  • -
  • setFromTo (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0int
    a1int
    -

  • -
  • setFullPage (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • setMargins (m) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    mTQSize
    -

  • -
  • 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
    keyTQString
    valueTQString
    -

  • -
  • setOption (key, value, broadcast) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    keyTQString
    valueTQString
    broadcastbool
    -

  • -
  • setOptions (opts) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    optsTQMap
    -

  • -
  • setOrientation (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KPrinter.Orientation
    -

  • -
  • setOutputFileName (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • 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
    cmdTQString
    -

  • -
  • setPrinterName (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setPrinterSelectionOption (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setRealDrawableArea (r) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    rTQRect
    -

  • -
  • setRealPageSize (p) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pTQSize
    -

  • -
  • setRealPageSize (p) -
    Not Implemented
    -

  • -
  • setResolution (dpi) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    dpiint
    -

  • -
  • setSearchName (n) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    nTQString
    -

  • -
  • setUsePrinterResolution (on) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    onbool
    -

  • -
  • setup (parent = 0, caption = TQString .null, forceExpand = 0) -
    -
    returns (bool)
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    captionTQStringTQString .null
    forceExpandbool0
    -

  • -
  • toPage () -
    -
    returns (int)

  • -
  • translateQtOptions () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdeprint/index.html b/python/pykde/doc/classref/kdeprint/index.html deleted file mode 100644 index 21dad9e6..00000000 --- a/python/pykde/doc/classref/kdeprint/index.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdeprint/kdeprint-globals.html b/python/pykde/doc/classref/kdeprint/kdeprint-globals.html deleted file mode 100644 index e0e2fa6e..00000000 --- a/python/pykde/doc/classref/kdeprint/kdeprint-globals.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 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
    nameTQString
    -

  • -
  • pageSizeToPageName (s) -
    -
    returns (char)
    - -
    ArgumentTypeDefault
    sKPrinter.PageSize
    -

  • -
  • rangeToSize (a0) -
    Not Implemented
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KAboutApplication.html b/python/pykde/doc/classref/kdeui/KAboutApplication.html deleted file mode 100644 index 9aac6e0c..00000000 --- a/python/pykde/doc/classref/kdeui/KAboutApplication.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    modalbool1
    -

  • -
  • KAboutApplication (aboutData, parent = 0, name = 0, modal = 1) -
    -
    returns a KAboutApplication instance
    - - - - -
    ArgumentTypeDefault
    aboutDataKAboutData
    parentTQWidget0
    namechar0
    modalbool1
    -

  • -
  • buildDialog (aboutData) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    aboutDataKAboutData
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KAboutContainer.html b/python/pykde/doc/classref/kdeui/KAboutContainer.html deleted file mode 100644 index f201255d..00000000 --- a/python/pykde/doc/classref/kdeui/KAboutContainer.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - class KAboutContainer - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KAboutContainer


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKAboutContainer
InheritsTQFrame
-

methods

    -
  • KAboutContainer (parent = 0, name = 0, margin = 0, spacing = 0, childAlignment = AlignCenter, innerAlignment = AlignCenter) -
    -
    returns a KAboutContainer instance
    - - - - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    marginint0
    spacingint0
    childAlignmentintAlignCenter
    innerAlignmentintAlignCenter
    -

  • -
  • addImage (fileName, alignment = AlignLeft) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    fileNameTQString
    alignmentintAlignLeft
    -

  • -
  • addPerson (name, email, url, task, showHeader = 0, showframe = 0, showBold = 0) -
    -
    returns nothing
    - - - - - - - -
    ArgumentTypeDefault
    nameTQString
    emailTQString
    urlTQString
    taskTQString
    showHeaderbool0
    showframebool0
    showBoldbool0
    -

  • -
  • addTitle (title, alignment = AlignLeft, showframe = 0, showBold = 0) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    titleTQString
    alignmentintAlignLeft
    showframebool0
    showBoldbool0
    -

  • -
  • addWidget (widget) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    widgetTQWidget
    -

  • -
  • childEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQChildEvent
    -

  • -
  • mailClick (name, address) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    nameTQString
    addressTQString
    -

  • -
  • minimumSizeHint () -
    -
    returns (TQSize)

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • urlClick (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KAboutContributor.html b/python/pykde/doc/classref/kdeui/KAboutContributor.html deleted file mode 100644 index be78ee05..00000000 --- a/python/pykde/doc/classref/kdeui/KAboutContributor.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - class KAboutContributor - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KAboutContributor


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKAboutContributor
InheritsTQFrame
-

methods

    -
  • KAboutContributor (parent = 0, name = 0, username = TQString .null, email = TQString .null, url = TQString .null, work = TQString .null, showHeader = 0, showFrame = 1, showBold = 0) -
    -
    returns a KAboutContributor instance
    - - - - - - - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    usernameTQStringTQString .null
    emailTQStringTQString .null
    urlTQStringTQString .null
    workTQStringTQString .null
    showHeaderbool0
    showFramebool1
    showBoldbool0
    -

  • -
  • emailClickedSlot (emailaddress) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    emailaddressTQString
    -

  • -
  • fontChange (oldFont) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    oldFontTQFont
    -

  • -
  • getEmail () -
    -
    returns (TQString)

  • -
  • getName () -
    -
    returns (TQString)

  • -
  • getURL () -
    -
    returns (TQString)

  • -
  • getWork () -
    -
    returns (TQString)

  • -
  • openURL (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • sendEmail (name, email) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    nameTQString
    emailTQString
    -

  • -
  • setEmail (text, header = TQString .null, update = 1) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    textTQString
    headerTQStringTQString .null
    updatebool1
    -

  • -
  • setName (text, header = TQString .null, update = 1) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    textTQString
    headerTQStringTQString .null
    updatebool1
    -

  • -
  • setURL (text, header = TQString .null, update = 1) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    textTQString
    headerTQStringTQString .null
    updatebool1
    -

  • -
  • setWork (text, header = TQString .null, update = 1) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    textTQString
    headerTQStringTQString .null
    updatebool1
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • urlClickedSlot (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KAboutDialog.html b/python/pykde/doc/classref/kdeui/KAboutDialog.html deleted file mode 100644 index b0ff3c67..00000000 --- a/python/pykde/doc/classref/kdeui/KAboutDialog.html +++ /dev/null @@ -1,263 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    modalbool1
    -

  • -
  • KAboutDialog (dialogLayout, caption, buttonMask, defaultButton, parent = 0, name = 0, modal = 0, separator = 0, user1 = TQString .null, user2 = TQString .null, user3 = TQString .null) -
    -
    returns a KAboutDialog instance
    - - - - - - - - - - - -
    ArgumentTypeDefault
    dialogLayoutint
    captionTQString
    buttonMaskint
    defaultButtonButtonCode
    parentTQWidget0
    namechar0
    modalbool0
    separatorbool0
    user1TQStringTQString .null
    user2TQStringTQString .null
    user3TQStringTQString .null
    -

  • -
  • addContainer (childAlignment, innerAlignment) -
    -
    returns (KAboutContainer)
    - - -
    ArgumentTypeDefault
    childAlignmentint
    innerAlignmentint
    -

  • -
  • addContainerPage (title, childAlignment = AlignCenter, innerAlignment = AlignCenter) -
    -
    returns (KAboutContainer)
    - - - -
    ArgumentTypeDefault
    titleTQString
    childAlignmentintAlignCenter
    innerAlignmentintAlignCenter
    -

  • -
  • addContributor (name, email, url, work) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    nameTQString
    emailTQString
    urlTQString
    workTQString
    -

  • -
  • addLicensePage (title, text, numLines = 10) -
    -
    returns (TQFrame)
    - - - -
    ArgumentTypeDefault
    titleTQString
    textTQString
    numLinesint10
    -

  • -
  • addPage (title) -
    -
    returns (TQFrame)
    - -
    ArgumentTypeDefault
    titleTQString
    -

  • -
  • addScrolledContainerPage (title, childAlignment = AlignCenter, innerAlignment = AlignCenter) -
    -
    returns (KAboutContainer)
    - - - -
    ArgumentTypeDefault
    titleTQString
    childAlignmentintAlignCenter
    innerAlignmentintAlignCenter
    -

  • -
  • addTextPage (title, text, richText = 0, numLines = 10) -
    -
    returns (TQFrame)
    - - - - -
    ArgumentTypeDefault
    titleTQString
    textTQString
    richTextbool0
    numLinesint10
    -

  • -
  • adjust () -
    -
    returns nothing

  • -
  • imageURL (parent, caption, path, imageColor, url) -
    - -
    returns nothing
    static
    - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    captionTQString
    pathTQString
    imageColorTQColor
    urlTQString
    -

  • -
  • mouseTrackSlot (mode, e) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    modeint
    eTQMouseEvent
    -

  • -
  • openURL (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • openURLSlot (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • sendEmail (name, email) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    nameTQString
    emailTQString
    -

  • -
  • sendEmailSlot (name, email) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    nameTQString
    emailTQString
    -

  • -
  • setAuthor (name, email, url, work) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    nameTQString
    emailTQString
    urlTQString
    workTQString
    -

  • -
  • setIcon (fileName) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    fileNameTQString
    -

  • -
  • setImage (fileName) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    fileNameTQString
    -

  • -
  • setImageBackgroundColor (color) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    colorTQColor
    -

  • -
  • setImageFrame (state) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    statebool
    -

  • -
  • setLogo (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQPixmap
    -

  • -
  • setMaintainer (name, email, url, work) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    nameTQString
    emailTQString
    urlTQString
    workTQString
    -

  • -
  • setProduct (appName, version, author, year) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    appNameTQString
    versionTQString
    authorTQString
    yearTQString
    -

  • -
  • setProgramLogo (fileName) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    fileNameTQString
    -

  • -
  • setProgramLogo (pixmap) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    pixmapTQPixmap
    -

  • -
  • setTitle (title) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    titleTQString
    -

  • -
  • setVersion (name) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • show () -
    -
    returns nothing

  • -
  • show (centerParent) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    centerParentTQWidget
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KAboutKDE.html b/python/pykde/doc/classref/kdeui/KAboutKDE.html deleted file mode 100644 index 18f1abeb..00000000 --- a/python/pykde/doc/classref/kdeui/KAboutKDE.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    modalbool1
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KAboutWidget.html b/python/pykde/doc/classref/kdeui/KAboutWidget.html deleted file mode 100644 index 15f4a9a5..00000000 --- a/python/pykde/doc/classref/kdeui/KAboutWidget.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - class KAboutWidget - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KAboutWidget


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKAboutWidget
InheritsTQWidget
-

methods

    -
  • KAboutWidget (parent = 0, name = 0) -
    -
    returns a KAboutWidget instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • addContributor (name, email, url, work) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    nameTQString
    emailTQString
    urlTQString
    workTQString
    -

  • -
  • adjust () -
    -
    returns nothing

  • -
  • openURL (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • openURLSlot (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • resizeEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • sendEmail (name, email) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    nameTQString
    emailTQString
    -

  • -
  • sendEmailSlot (name, email) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    nameTQString
    emailTQString
    -

  • -
  • setAuthor (name, email, url, work) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    nameTQString
    emailTQString
    urlTQString
    workTQString
    -

  • -
  • setLogo (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQPixmap
    -

  • -
  • setMaintainer (name, email, url, work) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    nameTQString
    emailTQString
    urlTQString
    workTQString
    -

  • -
  • setVersion (name) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KAction.html b/python/pykde/doc/classref/kdeui/KAction.html deleted file mode 100644 index d9e70585..00000000 --- a/python/pykde/doc/classref/kdeui/KAction.html +++ /dev/null @@ -1,531 +0,0 @@ - - - - - class KAction - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KAction


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKAction
InheritsTQObject
-

enums

    -
  • ActivationReason = {UnknownActivation, EmulatedActivation, AccelActivation, PopupMenuActivation, ToolBarActivation -}
-

methods

    -
  • KAction (text, cut, slot, parent, name) -
    -
    returns a KAction instance
    - - - - - -
    ArgumentTypeDefault
    textTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentKActionCollection
    namechar
    -

  • -
  • KAction (text, pix, cut, slot, parent, name) -
    -
    returns a KAction instance
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentKActionCollection
    namechar
    -

  • -
  • KAction (parent = 0, name = 0) -
    -
    returns a KAction instance
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • KAction (text, pix, cut, slot, parent, name) -
    -
    returns a KAction instance
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQString
    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
    textTQString
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • KAction (text, cut, slot, parent, name = 0) -
    -
    returns a KAction instance
    - - - - - -
    ArgumentTypeDefault
    textTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KAction (text, pix, cut = KShortcut (), parent = 0, name = 0) -
    -
    returns a KAction instance
    - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQIconSet
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • KAction (text, pix, cut = KShortcut (), parent = 0, name = 0) -
    -
    returns a KAction instance
    - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQString
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • KAction (text, pix, cut, slot, parent, name = 0) -
    -
    returns a KAction instance
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KAction (text, pix, cut, slot, parent, name = 0) -
    -
    returns a KAction instance
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    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
    parentTQWidget
    idint
    -

  • -
  • addContainer (parent, representative) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    parentTQWidget
    representativeTQWidget
    -

  • -
  • container (index) -
    -
    returns (TQWidget)
    - -
    ArgumentTypeDefault
    indexint
    -

  • -
  • containerCount () -
    -
    returns (int)

  • -
  • enabled (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • findContainer (widget) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    widgetTQWidget
    -

  • -
  • findContainer (id) -
    - -
    returns (int)
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    idint
    -

  • -
  • getToolButtonID () -
    - -
    returns (int)
    static

  • -
  • group () -
    -
    returns (TQString)

  • -
  • guiItem () -
    - -
    returns (KGuiItem)
    In versions KDE 3.3.0 and above only

  • -
  • hasIcon () -
    -
    returns (bool)

  • -
  • hasIconSet () -
    -
    returns (bool)

  • -
  • icon () -
    -
    returns (TQString)

  • -
  • iconSet (group, size = 0) -
    -
    returns (TQIconSet)
    - - -
    ArgumentTypeDefault
    groupKIcon.Group
    sizeint0
    -

  • -
  • iconSet () -
    -
    returns (TQIconSet)

  • -
  • isEnabled () -
    -
    returns (bool)

  • -
  • isPlugged () -
    -
    returns (bool)

  • -
  • isPlugged (container) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    containerTQWidget
    -

  • -
  • isPlugged (container, id) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    containerTQWidget
    idint
    -

  • -
  • isPlugged (container, _representative) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    containerTQWidget
    _representativeTQWidget
    -

  • -
  • 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 (TQString)

  • -
  • plug (widget, index = -1) -
    -
    returns (int)
    - - -
    ArgumentTypeDefault
    widgetTQWidget
    indexint-1
    -

  • -
  • plugAccel (accel, configurable = 1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    accelKAccel
    configurablebool1
    -

  • -
  • plugMainWindowAccel (w) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    wTQWidget
    -

  • -
  • popupMenu (index) -
    -
    returns (TQPopupMenu)
    - -
    ArgumentTypeDefault
    indexint
    -

  • -
  • removeContainer (index) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    indexint
    -

  • -
  • representative (index) -
    -
    returns (TQWidget)
    - -
    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
    a0TQString
    -

  • -
  • setIcon (icon) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iconTQString
    -

  • -
  • setIconSet (iconSet) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iconSetTQIconSet
    -

  • -
  • setShortcut (a0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    a0KShortcut
    -

  • -
  • setShortcutConfigurable (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • setShortcutText (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setStatusText (text) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • setText (text) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • setToolTip (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setWhatsThis (text) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • shortcut () -
    -
    returns (KShortcut)

  • -
  • shortcutDefault () -
    -
    returns (KShortcut)

  • -
  • shortcutText () -
    -
    returns (TQString)

  • -
  • 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 (TQString)

  • -
  • text () -
    -
    returns (TQString)

  • -
  • toolBar (index) -
    -
    returns (KToolBar)
    - -
    ArgumentTypeDefault
    indexint
    -

  • -
  • toolTip () -
    -
    returns (TQString)

  • -
  • unplug (w) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    wTQWidget
    -

  • -
  • 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
    menuTQPopupMenu
    idint
    -

  • -
  • updateText (i) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iint
    -

  • -
  • updateToolTip (id) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    idint
    -

  • -
  • updateWhatsThis (i) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iint
    -

  • -
  • whatsThis () -
    -
    returns (TQString)

  • -
  • whatsThisWithIcon () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KActionCollection.html b/python/pykde/doc/classref/kdeui/KActionCollection.html deleted file mode 100644 index 2483a8a4..00000000 --- a/python/pykde/doc/classref/kdeui/KActionCollection.html +++ /dev/null @@ -1,574 +0,0 @@ - - - - - class KActionCollection - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KActionCollection


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKActionCollection
InheritsTQObject
-

methods

    -
  • KActionCollection (a0, a1 = 0, a2 = 0) -
    - -
    returns a KActionCollection instance
    In versions less than KDE 3.2.0 only
    - - - -
    ArgumentTypeDefault
    a0TQWidget
    a1char0
    a2KInstance0
    -

  • -
  • KActionCollection (a0, a1, a2 = 0, a3 = 0) -
    - -
    returns a KActionCollection instance
    In versions less than KDE 3.2.0 only
    - - - - -
    ArgumentTypeDefault
    a0TQWidget
    a1TQObject
    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
    a0TQObject0
    a1char0
    a2KInstance0
    -

  • -
  • KActionCollection (parent, name = 0, instance = 0) -
    - -
    returns a KActionCollection instance
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar0
    instanceKInstance0
    -

  • -
  • KActionCollection (watch, parent, name = 0, instance = 0) -
    - -
    returns a KActionCollection instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    watchTQWidget
    parentTQObject
    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
    parentTQObject
    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
    a0TQString
    -

  • -
  • actionStatusText (text) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • actions (a0) -
    - -
    returns (TQValueList
    In versions KDE 3.1.5 and above, but less than KDE 3.5.3
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • actions () -
    - -
    returns (TQValueList
    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
    groupTQString
    -

  • -
  • actions () -
    - -
    returns (KActionPtrList)
    In versions KDE 3.2.0 and above only

  • -
  • actions (a0) -
    - -
    returns (TQValueList
    In versions less than KDE 3.2.2 only( D MANDRAKE only)
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • actions () -
    - -
    returns (TQValueList
    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
    a0TQWidget
    a1KAction
    -

  • -
  • connectHighlight (container, action) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    containerTQWidget
    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
    a0TQWidget
    a1KAction
    -

  • -
  • disconnectHighlight (container, action) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    containerTQWidget
    actionKAction
    -

  • -
  • groups () -
    - -
    returns (TQStringList)
    In versions less than KDE 3.2.0 only

  • -
  • groups () -
    - -
    returns (TQStringList)
    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 = TQString .null, a1 = 0) -
    - -
    returns (bool)
    In versions less than KDE 3.2.0 only
    - - -
    ArgumentTypeDefault
    a0TQStringTQString .null
    a1KConfigBase0
    -

  • -
  • readShortcutSettings (sConfigGroup = TQString .null, pConfig = 0) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    sConfigGroupTQStringTQString .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
    a0TQWidget
    -

  • -
  • setWidget (widget) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    widgetTQWidget
    -

  • -
  • setXMLFile (a0) -
    - -
    returns nothing
    In versions less than KDE 3.2.0 only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setXMLFile (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • 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 = TQString .null, a1 = 0) -
    - -
    returns (bool)
    In versions less than KDE 3.2.0 only
    - - -
    ArgumentTypeDefault
    a0TQStringTQString .null
    a1KConfigBase0
    -

  • -
  • writeShortcutSettings (sConfigGroup = TQString .null, pConfig = 0) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    sConfigGroupTQStringTQString .null
    pConfigKConfigBase0
    -

  • -
  • xmlFile () -
    - -
    returns (TQString)
    In versions less than KDE 3.2.0 only

  • -
  • xmlFile () -
    - -
    returns (TQString)
    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/python/pykde/doc/classref/kdeui/KActionMenu.html b/python/pykde/doc/classref/kdeui/KActionMenu.html deleted file mode 100644 index 316ba6be..00000000 --- a/python/pykde/doc/classref/kdeui/KActionMenu.html +++ /dev/null @@ -1,227 +0,0 @@ - - - - - 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
    a0TQString
    a1TQObject0
    a2char0
    -

  • -
  • KActionMenu (a0, a1, a2 = 0, a3 = 0) -
    - -
    returns a KActionMenu instance
    In versions less than KDE 3.2.0 only
    - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQIconSet
    a2TQObject0
    a3char0
    -

  • -
  • KActionMenu (a0, a1, a2 = 0, a3 = 0) -
    - -
    returns a KActionMenu instance
    In versions less than KDE 3.2.0 only
    - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2TQObject0
    a3char0
    -

  • -
  • KActionMenu (a0 = 0, a1 = 0) -
    - -
    returns a KActionMenu instance
    In versions less than KDE 3.2.0 only
    - - -
    ArgumentTypeDefault
    a0TQObject0
    a1char0
    -

  • -
  • KActionMenu (text, parent = 0, name = 0) -
    - -
    returns a KActionMenu instance
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    textTQString
    parentTQObject0
    namechar0
    -

  • -
  • KActionMenu (text, icon, parent = 0, name = 0) -
    - -
    returns a KActionMenu instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    textTQString
    iconTQIconSet
    parentTQObject0
    namechar0
    -

  • -
  • KActionMenu (text, icon, parent = 0, name = 0) -
    - -
    returns a KActionMenu instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    textTQString
    iconTQString
    parentTQObject0
    namechar0
    -

  • -
  • KActionMenu (parent = 0, name = 0) -
    - -
    returns a KActionMenu instance
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQObject0
    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
    a0TQWidget
    a1int-1
    -

  • -
  • plug (widget, index = -1) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    widgetTQWidget
    indexint-1
    -

  • -
  • popup (a0) -
    - -
    returns nothing
    In versions less than KDE 3.2.0 only
    - -
    ArgumentTypeDefault
    a0TQPoint
    -

  • -
  • popup (global) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    globalTQPoint
    -

  • -
  • 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/python/pykde/doc/classref/kdeui/KActionPtrShortcutList.html b/python/pykde/doc/classref/kdeui/KActionPtrShortcutList.html deleted file mode 100644 index 431cb4be..00000000 --- a/python/pykde/doc/classref/kdeui/KActionPtrShortcutList.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - - 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
    a0TQValueList
    -

  • -
  • count () -
    -
    returns (uint)

  • -
  • getOther (a0, index) -
    -
    returns (TQVariant)
    - - -
    ArgumentTypeDefault
    a0Other
    indexuint
    -

  • -
  • isConfigurable (a0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    a0uint
    -

  • -
  • label (a0) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    a0uint
    -

  • -
  • name (i) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    iuint
    -

  • -
  • save () -
    -
    returns (bool)

  • -
  • setOther (a0, index, a1) -
    -
    returns (bool)
    - - - -
    ArgumentTypeDefault
    a0Other
    indexuint
    a1TQVariant
    -

  • -
  • setShortcut (a0, a1) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    a0uint
    a1KShortcut
    -

  • -
  • shortcut (a0) -
    -
    returns (KShortcut)
    - -
    ArgumentTypeDefault
    a0uint
    -

  • -
  • shortcutDefault (a0) -
    -
    returns (KShortcut)
    - -
    ArgumentTypeDefault
    a0uint
    -

  • -
  • whatsThis (a0) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    a0uint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KActionSelector.html b/python/pykde/doc/classref/kdeui/KActionSelector.html deleted file mode 100644 index 0dfd56ce..00000000 --- a/python/pykde/doc/classref/kdeui/KActionSelector.html +++ /dev/null @@ -1,233 +0,0 @@ - - - - - class KActionSelector - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KActionSelector


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKActionSelector
InheritsTQWidget
-

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
    parentTQWidget0
    namechar0
    -

  • -
  • added (item) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    itemTQListBoxItem
    -

  • -
  • availableInsertionPolicy () -
    - -
    returns (KActionSelector.InsertionPolicy)
    In versions KDE 3.3.0 and above only

  • -
  • availableLabel () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • availableListBox () -
    - -
    returns (TQListBox)
    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
    a0TQObject
    a1TQEvent
    -

  • -
  • keyPressEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    a0TQKeyEvent
    -

  • -
  • 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
    itemTQListBoxItem
    -

  • -
  • movedUp (item) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    itemTQListBoxItem
    -

  • -
  • 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
    itemTQListBoxItem
    -

  • -
  • selectedInsertionPolicy () -
    - -
    returns (KActionSelector.InsertionPolicy)
    In versions KDE 3.3.0 and above only

  • -
  • selectedLabel () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • selectedListBox () -
    - -
    returns (TQListBox)
    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
    textTQString
    -

  • -
  • setButtonIcon (icon, button) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    iconTQString
    buttonKActionSelector.MoveButton
    -

  • -
  • setButtonIconSet (iconset, button) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    iconsetTQIconSet
    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
    tipTQString
    buttonKActionSelector.MoveButton
    -

  • -
  • setButtonWhatsThis (text, button) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    textTQString
    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
    textTQString
    -

  • -
  • 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/python/pykde/doc/classref/kdeui/KActionSeparator.html b/python/pykde/doc/classref/kdeui/KActionSeparator.html deleted file mode 100644 index 68ad582d..00000000 --- a/python/pykde/doc/classref/kdeui/KActionSeparator.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - 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
    a0TQObject0
    a1char0
    -

  • -
  • KActionSeparator (parent = 0, name = 0) -
    - -
    returns a KActionSeparator instance
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • plug (a0, a1 = -1) -
    - -
    returns (int)
    In versions less than KDE 3.2.0 only
    - - -
    ArgumentTypeDefault
    a0TQWidget
    a1int-1
    -

  • -
  • plug (widget, index = -1) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    widgetTQWidget
    indexint-1
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KActionShortcutList.html b/python/pykde/doc/classref/kdeui/KActionShortcutList.html deleted file mode 100644 index 47f4fcc3..00000000 --- a/python/pykde/doc/classref/kdeui/KActionShortcutList.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - - 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 (TQVariant)
    - - -
    ArgumentTypeDefault
    a0Other
    indexuint
    -

  • -
  • instance () -
    -
    returns (KInstance)

  • -
  • isConfigurable (a0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    a0uint
    -

  • -
  • label (a0) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    a0uint
    -

  • -
  • name (i) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    iuint
    -

  • -
  • save () -
    -
    returns (bool)

  • -
  • setOther (a0, index, a1) -
    -
    returns (bool)
    - - - -
    ArgumentTypeDefault
    a0Other
    indexuint
    a1TQVariant
    -

  • -
  • setShortcut (a0, a1) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    a0uint
    a1KShortcut
    -

  • -
  • shortcut (a0) -
    -
    returns (KShortcut)
    - -
    ArgumentTypeDefault
    a0uint
    -

  • -
  • shortcutDefault (a0) -
    -
    returns (KShortcut)
    - -
    ArgumentTypeDefault
    a0uint
    -

  • -
  • whatsThis (a0) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    a0uint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KActiveLabel.html b/python/pykde/doc/classref/kdeui/KActiveLabel.html deleted file mode 100644 index d46baf5b..00000000 --- a/python/pykde/doc/classref/kdeui/KActiveLabel.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - class KActiveLabel - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KActiveLabel


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKActiveLabel
InheritsTQTextBrowser
-

methods

    -
  • KActiveLabel (parent, name = 0) -
    -
    returns a KActiveLabel instance
    - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar0
    -

  • -
  • KActiveLabel (text, parent, name = 0) -
    -
    returns a KActiveLabel instance
    - - - -
    ArgumentTypeDefault
    textTQString
    parentTQWidget
    namechar0
    -

  • -
  • focusInEvent (fe) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    feTQFocusEvent
    -

  • -
  • focusOutEvent (fe) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    feTQFocusEvent
    -

  • -
  • keyPressEvent (e) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    eTQKeyEvent
    -

  • -
  • minimumSizeHint () -
    - -
    returns (TQSize)
    In versions KDE 3.1.0 and above only

  • -
  • openLink (link) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    linkTQString
    -

  • -
  • sizeHint () -
    - -
    returns (TQSize)
    In versions KDE 3.1.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KAnimWidget.html b/python/pykde/doc/classref/kdeui/KAnimWidget.html deleted file mode 100644 index fb06a70b..00000000 --- a/python/pykde/doc/classref/kdeui/KAnimWidget.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - class KAnimWidget - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KAnimWidget


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKAnimWidget
InheritsTQFrame
-

methods

    -
  • KAnimWidget (icons, size = 0, parent = 0, name = 0) -
    -
    returns a KAnimWidget instance
    - - - - -
    ArgumentTypeDefault
    iconsTQString
    sizeint0
    parentTQWidget0
    namechar0
    -

  • -
  • KAnimWidget (a0 = 0, a1 = 0) -
    Not Implemented
    -

  • -
  • clicked () -
    -
    returns nothing

  • -
  • drawContents (p) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pTQPainter
    -

  • -
  • enterEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQEvent
    -

  • -
  • hideEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQHideEvent
    -

  • -
  • icons () -
    - -
    returns (TQString)
    In versions KDE 3.4.0 and above only

  • -
  • leaveEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQEvent
    -

  • -
  • mousePressEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • mouseReleaseEvent (e) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • setIcons (icons) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iconsTQString
    -

  • -
  • setSize (size) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sizeint
    -

  • -
  • showEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQShowEvent
    -

  • -
  • 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/python/pykde/doc/classref/kdeui/KArrowButton.html b/python/pykde/doc/classref/kdeui/KArrowButton.html deleted file mode 100644 index 34a67bba..00000000 --- a/python/pykde/doc/classref/kdeui/KArrowButton.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - - class KArrowButton - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KArrowButton


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKArrowButton
InheritsTQPushButton
-

methods

    -
  • KArrowButton (parent = 0, arrow = Qt .UpArrow, name = 0) -
    -
    returns a KArrowButton instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    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
    a0TQPainter
    -

  • -
  • setArrowTp (tp) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    tpint
    -

  • -
  • setArrowType (a) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    aQt.ArrowType
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KAuthIcon.html b/python/pykde/doc/classref/kdeui/KAuthIcon.html deleted file mode 100644 index 4b70ff7f..00000000 --- a/python/pykde/doc/classref/kdeui/KAuthIcon.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - class KAuthIcon - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KAuthIcon


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKAuthIcon (abstract)
InheritsTQWidget
-

methods

    -
  • KAuthIcon (parent = 0, name = 0) -
    -
    returns a KAuthIcon instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • authChanged (authorized) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    authorizedbool
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • status () = 0 -
    - -
    returns (bool)
    pure virtual

  • -
  • updateStatus () = 0 -
    - -
    returns nothing
    pure virtual

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KBugReport.html b/python/pykde/doc/classref/kdeui/KBugReport.html deleted file mode 100644 index 0ddc15d9..00000000 --- a/python/pykde/doc/classref/kdeui/KBugReport.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - 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
    parentTQWidget0
    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
    a0TQString
    -

  • -
  • text () -
    -
    returns (TQString)

  • -
  • updateURL () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KButtonBox.html b/python/pykde/doc/classref/kdeui/KButtonBox.html deleted file mode 100644 index a34a0e97..00000000 --- a/python/pykde/doc/classref/kdeui/KButtonBox.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - class KButtonBox - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KButtonBox


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKButtonBox
InheritsTQWidget
-

methods

    -
  • KButtonBox (parent, _orientation = Horizontal, border = 0, _autoborder = 6) -
    -
    returns a KButtonBox instance
    - - - - -
    ArgumentTypeDefault
    parentTQWidget
    _orientationOrientationHorizontal
    borderint0
    _autoborderint6
    -

  • -
  • addButton (text, noexpand = 0) -
    -
    returns (TQPushButton)
    - - -
    ArgumentTypeDefault
    textTQString
    noexpandbool0
    -

  • -
  • addButton (text, slot, noexpand = 0) -
    -
    returns (TQPushButton)
    - - - -
    ArgumentTypeDefault
    textTQString
    slotSLOT (Python callable)
    noexpandbool0
    -

  • -
  • addButton (guiitem, noexpand = 0) -
    - -
    returns (TQPushButton)
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    guiitemKGuiItem
    noexpandbool0
    -

  • -
  • addButton (guiitem, slot, noexpand = 0) -
    - -
    returns (TQPushButton)
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    guiitemKGuiItem
    slotSLOT (Python callable)
    noexpandbool0
    -

  • -
  • addStretch (scale = 1) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    scaleint1
    -

  • -
  • bestButtonSize () -
    -
    returns (TQSize)

  • -
  • buttonSizeHint (a0) -
    -
    returns (TQSize)
    - -
    ArgumentTypeDefault
    a0TQPushButton
    -

  • -
  • layout () -
    -
    returns nothing

  • -
  • placeButtons () -
    -
    returns nothing

  • -
  • resizeEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • sizePolicy () -
    -
    returns (TQSizePolicy)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KCModule.html b/python/pykde/doc/classref/kdeui/KCModule.html deleted file mode 100644 index dec77ea2..00000000 --- a/python/pykde/doc/classref/kdeui/KCModule.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - class KCModule - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KCModule


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKCModule
InheritsTQWidget
-

enums

    -
  • Button = {Help, Default, Apply, Reset, Cancel, Ok, SysDefault -}
-

methods

    -
  • KCModule (parent = 0, name = 0, args = TQStringList ()) -
    -
    returns a KCModule instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    argsTQStringListTQStringList ()
    -

  • -
  • KCModule (instance, parent = 0, args = TQStringList ()) -
    -
    returns a KCModule instance
    - - - -
    ArgumentTypeDefault
    instanceKInstance
    parentTQWidget0
    argsTQStringListTQStringList ()
    -

  • -
  • aboutData () -
    -
    returns (KAboutData)

  • -
  • addConfig (config, widget) -
    - -
    returns (KConfigDialogManager)
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    configKConfigSkeleton
    widgetTQWidget
    -

  • -
  • buttons () -
    -
    returns (int)

  • -
  • changed (state) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    statebool
    -

  • -
  • changed () -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only

  • -
  • configs () -
    - -
    returns (TQPtrList)
    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 (TQString)

  • -
  • quickHelpChanged () -
    -
    returns nothing

  • -
  • rootOnlyMsg () -
    -
    returns (TQString)

  • -
  • 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
    helpTQString
    -

  • -
  • setRootOnlyMsg (msg) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    msgTQString
    -

  • -
  • 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/python/pykde/doc/classref/kdeui/KCharSelect.html b/python/pykde/doc/classref/kdeui/KCharSelect.html deleted file mode 100644 index 6fd84f51..00000000 --- a/python/pykde/doc/classref/kdeui/KCharSelect.html +++ /dev/null @@ -1,201 +0,0 @@ - - - - - class KCharSelect - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KCharSelect


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKCharSelect
InheritsTQVBox
-

methods

    -
  • KCharSelect (parent, name, font = TQString .null, chr = ' ', tableNum = 0) -
    -
    returns a KCharSelect instance
    - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar
    fontTQStringTQString .null
    chrTQChar' '
    tableNumint0
    -

  • -
  • activated (c) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    cTQChar
    -

  • -
  • activated () -
    -
    returns nothing

  • -
  • charActivated (c) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    cTQChar
    -

  • -
  • charActivated () -
    -
    returns nothing

  • -
  • charFocusItemChanged () -
    -
    returns nothing

  • -
  • charFocusItemChanged (c) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    cTQChar
    -

  • -
  • charHighlighted (c) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    cTQChar
    -

  • -
  • charHighlighted () -
    -
    returns nothing

  • -
  • charTableDown () -
    -
    returns nothing

  • -
  • charTableUp () -
    -
    returns nothing

  • -
  • chr () -
    -
    returns (TQChar)

  • -
  • 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
    cTQChar
    -

  • -
  • font () -
    -
    returns (TQString)

  • -
  • fontChanged (_font) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _fontTQString
    -

  • -
  • fontSelected (_font) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _fontTQString
    -

  • -
  • highlighted (c) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    cTQChar
    -

  • -
  • highlighted () -
    -
    returns nothing

  • -
  • isFontComboEnabled () -
    -
    returns (bool)

  • -
  • isTableSpinBoxEnabled () -
    -
    returns (bool)

  • -
  • setChar (chr) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    chrTQChar
    -

  • -
  • setFont (font) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    fontTQString
    -

  • -
  • setTableNum (tableNum) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    tableNumint
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • 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
    cTQChar
    -

  • -
  • tableChanged (_value) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _valueint
    -

  • -
  • tableNum () -
    -
    returns (int)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KCharSelectTable.html b/python/pykde/doc/classref/kdeui/KCharSelectTable.html deleted file mode 100644 index ca677279..00000000 --- a/python/pykde/doc/classref/kdeui/KCharSelectTable.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - - class KCharSelectTable - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KCharSelectTable


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKCharSelectTable
InheritsTQGridView
-

methods

    -
  • KCharSelectTable (parent, name, _font, _chr, _tableNum) -
    -
    returns a KCharSelectTable instance
    - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar
    _fontTQString
    _chrTQChar
    _tableNumint
    -

  • -
  • activated (c) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    cTQChar
    -

  • -
  • activated () -
    -
    returns nothing

  • -
  • chr () -
    -
    returns (TQChar)

  • -
  • doubleClicked () -
    -
    returns nothing

  • -
  • focusItemChanged () -
    -
    returns nothing

  • -
  • focusItemChanged (c) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    cTQChar
    -

  • -
  • gotoDown () -
    -
    returns nothing

  • -
  • gotoLeft () -
    -
    returns nothing

  • -
  • gotoRight () -
    -
    returns nothing

  • -
  • gotoUp () -
    -
    returns nothing

  • -
  • highlighted (c) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    cTQChar
    -

  • -
  • highlighted () -
    -
    returns nothing

  • -
  • keyPressEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQKeyEvent
    -

  • -
  • mouseDoubleClickEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • mouseMoveEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • mousePressEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • mouseReleaseEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • paintCell (p, row, col) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    pTQPainter
    rowint
    colint
    -

  • -
  • resizeEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • setChar (_chr) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _chrTQChar
    -

  • -
  • setFont (_font) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _fontTQString
    -

  • -
  • setTableNum (_tableNum) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _tableNumint
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • tableDown () -
    -
    returns nothing

  • -
  • tableUp () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KColor.html b/python/pykde/doc/classref/kdeui/KColor.html deleted file mode 100644 index 9fcb56d0..00000000 --- a/python/pykde/doc/classref/kdeui/KColor.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - - class KColor - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KColor


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKColor
InheritsTQColor
-

methods

    -
  • KColor () -
    -
    returns a KColor instance

  • -
  • KColor (col) -
    -
    returns a KColor instance
    - -
    ArgumentTypeDefault
    colKColor
    -

  • -
  • KColor (col) -
    -
    returns a KColor instance
    - -
    ArgumentTypeDefault
    colTQColor
    -

  • -
  • 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/python/pykde/doc/classref/kdeui/KColorCells.html b/python/pykde/doc/classref/kdeui/KColorCells.html deleted file mode 100644 index 8847b22b..00000000 --- a/python/pykde/doc/classref/kdeui/KColorCells.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - class KColorCells - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KColorCells


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKColorCells
InheritsTQGridView
-

methods

    -
  • KColorCells (parent, rows, cols) -
    -
    returns a KColorCells instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget
    rowsint
    colsint
    -

  • -
  • color (indx) -
    -
    returns (TQColor)
    - -
    ArgumentTypeDefault
    indxint
    -

  • -
  • colorDoubleClicked (col) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    colint
    -

  • -
  • colorSelected (col) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    colint
    -

  • -
  • dragEnterEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDragEnterEvent
    -

  • -
  • dropEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDropEvent
    -

  • -
  • getSelected () -
    -
    returns (int)

  • -
  • mouseDoubleClickEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • mouseMoveEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • mousePressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • mouseReleaseEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • numCells () -
    -
    returns (int)

  • -
  • paintCell (painter, row, col) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    painterTQPainter
    rowint
    colint
    -

  • -
  • posToCell (pos, ignoreBorders = 0) -
    -
    returns (int)
    - - -
    ArgumentTypeDefault
    posTQPoint
    ignoreBordersbool0
    -

  • -
  • resizeEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • setAcceptDrags (_acceptDrags) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _acceptDragsbool
    -

  • -
  • setColor (colNum, col) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    colNumint
    colTQColor
    -

  • -
  • setShading (_shade) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _shadebool
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KColorCombo.html b/python/pykde/doc/classref/kdeui/KColorCombo.html deleted file mode 100644 index 21707af4..00000000 --- a/python/pykde/doc/classref/kdeui/KColorCombo.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - class KColorCombo - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KColorCombo


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKColorCombo
InheritsTQComboBox
-

methods

    -
  • KColorCombo (parent, name = 0) -
    -
    returns a KColorCombo instance
    - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar0
    -

  • -
  • activated (col) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    colTQColor
    -

  • -
  • color () -
    -
    returns (TQColor)

  • -
  • highlighted (col) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    colTQColor
    -

  • -
  • resizeEvent (re) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    reTQResizeEvent
    -

  • -
  • setColor (col) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    colTQColor
    -

  • -
  • showEmptyList () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KColorDialog.html b/python/pykde/doc/classref/kdeui/KColorDialog.html deleted file mode 100644 index f42e460c..00000000 --- a/python/pykde/doc/classref/kdeui/KColorDialog.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    modalbool0
    -

  • -
  • color () -
    -
    returns (TQColor)

  • -
  • colorSelected (col) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    colTQColor
    -

  • -
  • defaultColor () -
    -
    returns (TQColor)

  • -
  • eventFilter (obj, ev) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    objTQObject
    evTQEvent
    -

  • -
  • getColor (theColor, parent = 0) -
    - -
    returns (int)
    static
    - - -
    ArgumentTypeDefault
    theColorTQColor
    parentTQWidget0
    -

  • -
  • getColor (theColor, defaultColor, parent = 0) -
    - -
    returns (int)
    static
    - - - -
    ArgumentTypeDefault
    theColorTQColor
    defaultColorTQColor
    parentTQWidget0
    -

  • -
  • grabColor (p) -
    - -
    returns (TQColor)
    static
    - -
    ArgumentTypeDefault
    pTQPoint
    -

  • -
  • keyPressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQKeyEvent
    -

  • -
  • mouseReleaseEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • setColor (col) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    colTQColor
    -

  • -
  • setDefaultColor (defaultCol) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    defaultColTQColor
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KColorDrag.html b/python/pykde/doc/classref/kdeui/KColorDrag.html deleted file mode 100644 index f13e6b38..00000000 --- a/python/pykde/doc/classref/kdeui/KColorDrag.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - - class KColorDrag - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KColorDrag


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKColorDrag
InheritsTQStoredDrag
-

methods

    -
  • KColorDrag (dragsource = 0, name = 0) -
    -
    returns a KColorDrag instance
    - - -
    ArgumentTypeDefault
    dragsourceTQWidget0
    namechar0
    -

  • -
  • KColorDrag (col, dragsource = 0, name = 0) -
    -
    returns a KColorDrag instance
    - - - -
    ArgumentTypeDefault
    colTQColor
    dragsourceTQWidget0
    namechar0
    -

  • -
  • canDecode (e) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    eTQMimeSource
    -

  • -
  • decode (e, col) -
    - -
    returns (bool)
    static
    - - -
    ArgumentTypeDefault
    eTQMimeSource
    colTQColor
    -

  • -
  • encodedData (m) -
    - -
    returns (TQByteArray)
    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
    a0TQColor
    dragsourceTQWidget
    -

  • -
  • setColor (col) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    colTQColor
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KColorPatch.html b/python/pykde/doc/classref/kdeui/KColorPatch.html deleted file mode 100644 index ded6e990..00000000 --- a/python/pykde/doc/classref/kdeui/KColorPatch.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - class KColorPatch - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KColorPatch


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKColorPatch
InheritsTQFrame
-

methods

    -
  • KColorPatch (parent) -
    -
    returns a KColorPatch instance
    - -
    ArgumentTypeDefault
    parentTQWidget
    -

  • -
  • colorChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQColor
    -

  • -
  • dragEnterEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDragEnterEvent
    -

  • -
  • drawContents (painter) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    painterTQPainter
    -

  • -
  • dropEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDropEvent
    -

  • -
  • mouseMoveEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • setColor (col) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    colTQColor
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KComboBox.html b/python/pykde/doc/classref/kdeui/KComboBox.html deleted file mode 100644 index a0cd6a70..00000000 --- a/python/pykde/doc/classref/kdeui/KComboBox.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - - class KComboBox - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KComboBox


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKComboBox
InheritsTQComboBox, KCompletionBase
-

methods

    -
  • KComboBox (parent = 0, name = 0) -
    -
    returns a KComboBox instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KComboBox (rw, parent = 0, name = 0) -
    -
    returns a KComboBox instance
    - - - -
    ArgumentTypeDefault
    rwbool
    parentTQWidget0
    namechar0
    -

  • -
  • aboutToShowContextMenu (p) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pTQPopupMenu
    -

  • -
  • autoCompletion () -
    -
    returns (bool)

  • -
  • changeURL (url, index) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    urlKURL
    indexint
    -

  • -
  • changeURL (pixmap, url, index) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    pixmapTQPixmap
    urlKURL
    indexint
    -

  • -
  • completion (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • completionBox (create) -
    -
    returns (KCompletionBox)
    - -
    ArgumentTypeDefault
    createbool
    -

  • -
  • completionModeChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KGlobalSettings.Completion
    -

  • -
  • contains (text) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • create (a0 = 0, initializeWindow = 1, destroyOldWindow = 1) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    a0WId0
    initializeWindowbool1
    destroyOldWindowbool1
    -

  • -
  • cursorPosition () -
    -
    returns (int)

  • -
  • eventFilter (a0, a1) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    a0TQObject
    a1TQEvent
    -

  • -
  • insertURL (url, index = -1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    urlKURL
    indexint-1
    -

  • -
  • insertURL (pixmap, url, index = -1) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    pixmapTQPixmap
    urlKURL
    indexint-1
    -

  • -
  • isContextMenuEnabled () -
    -
    returns (bool)

  • -
  • isURLDropsEnabled () -
    -
    returns (bool)

  • -
  • itemSelected (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQListBoxItem
    -

  • -
  • makeCompletion (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • returnPressed () -
    -
    returns nothing

  • -
  • returnPressed (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • rotateText (type) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    typeKCompletionBase.KeyBindingType
    -

  • -
  • setAutoCompletion (autocomplete) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    autocompletebool
    -

  • -
  • setCompletedItems (items) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemsTQStringList
    -

  • -
  • setCompletedText (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setCompletedText (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0TQString
    a1bool
    -

  • -
  • setContextMenuEnabled (showMenu) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    showMenubool
    -

  • -
  • setCurrentItem (item, insert = 0, index = -1) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    itemTQString
    insertbool0
    indexint-1
    -

  • -
  • setCurrentItem (index) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    indexint
    -

  • -
  • setEditURL (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • setLineEdit (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQLineEdit
    -

  • -
  • setTrapReturnKey (trap) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    trapbool
    -

  • -
  • setURLDropsEnabled (enable) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    enablebool
    -

  • -
  • substringCompletion (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • textRotation (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KCompletionBase.KeyBindingType
    -

  • -
  • trapReturnKey () -
    -
    returns (bool)

  • -
  • wheelEvent (ev) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    evTQWheelEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KCommand.html b/python/pykde/doc/classref/kdeui/KCommand.html deleted file mode 100644 index 46e8fba2..00000000 --- a/python/pykde/doc/classref/kdeui/KCommand.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 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 (TQString)
    pure virtual

  • -
  • unexecute () = 0 -
    - -
    returns nothing
    pure virtual

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KCommandHistory.html b/python/pykde/doc/classref/kdeui/KCommandHistory.html deleted file mode 100644 index ee8efd14..00000000 --- a/python/pykde/doc/classref/kdeui/KCommandHistory.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - class KCommandHistory - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KCommandHistory


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKCommandHistory
InheritsTQObject
-

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/python/pykde/doc/classref/kdeui/KCompletionBox.html b/python/pykde/doc/classref/kdeui/KCompletionBox.html deleted file mode 100644 index 46fadca2..00000000 --- a/python/pykde/doc/classref/kdeui/KCompletionBox.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - 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
    parentTQWidget
    namechar0
    -

  • -
  • activateOnSelect () -
    - -
    returns (bool)
    In versions KDE 3.4.3 and above only

  • -
  • activated (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • calculateGeometry () -
    - -
    returns (TQRect)
    In versions KDE 3.2.0 and above only

  • -
  • cancelledText () -
    -
    returns (TQString)

  • -
  • down () -
    -
    returns nothing

  • -
  • end () -
    -
    returns nothing

  • -
  • eventFilter (a0, a1) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    a0TQObject
    a1TQEvent
    -

  • -
  • hide () -
    -
    returns nothing

  • -
  • home () -
    -
    returns nothing

  • -
  • insertItems (items, index = -1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    itemsTQStringList
    indexint-1
    -

  • -
  • isTabHandling () -
    -
    returns (bool)

  • -
  • items () -
    -
    returns (TQStringList)

  • -
  • 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
    txtTQString
    -

  • -
  • setItems (items) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemsTQStringList
    -

  • -
  • setTabHandling (enable) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    enablebool
    -

  • -
  • show () -
    -
    returns nothing

  • -
  • sizeAndPosition () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • slotActivated (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQListBoxItem
    -

  • -
  • up () -
    -
    returns nothing

  • -
  • userCancelled (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KConfigDialog.html b/python/pykde/doc/classref/kdeui/KConfigDialog.html deleted file mode 100644 index b7fd4827..00000000 --- a/python/pykde/doc/classref/kdeui/KConfigDialog.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - 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
    parentTQWidget
    namechar
    configKConfigSkeleton
    dialogTypeKDialogBase.DialogTypeKDialogBase .IconList
    dialogButtonsintKDialogBase .Default | KDialogBase .Ok | KDialogBase .Apply | KDialogBase .Cancel | KDialogBase .Help
    defaultButtonKDialogBase.ButtonCodeOk
    modalbool0
    -

  • -
  • addPage (page, itemName, pixmapName, header = TQString .null, manage = 1) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    pageTQWidget
    itemNameTQString
    pixmapNameTQString
    headerTQStringTQString .null
    managebool1
    -

  • -
  • addPage (page, config, itemName, pixmapName, header = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - - - - -
    ArgumentTypeDefault
    pageTQWidget
    configKConfigSkeleton
    itemNameTQString
    pixmapNameTQString
    headerTQStringTQString .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/python/pykde/doc/classref/kdeui/KContextMenuManager.html b/python/pykde/doc/classref/kdeui/KContextMenuManager.html deleted file mode 100644 index 7eff51d6..00000000 --- a/python/pykde/doc/classref/kdeui/KContextMenuManager.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - class KContextMenuManager - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KContextMenuManager


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKContextMenuManager
InheritsTQObject
-

methods

    -
  • KContextMenuManager (parent = 0, name = 0) -
    -
    returns a KContextMenuManager instance
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • insert (widget, popup) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    widgetTQWidget
    popupTQPopupMenu
    -

  • -
  • showOnButtonPress () -
    - -
    returns (bool)
    static

  • -
  • ~KContextMenuManager () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KCursor.html b/python/pykde/doc/classref/kdeui/KCursor.html deleted file mode 100644 index fad0078b..00000000 --- a/python/pykde/doc/classref/kdeui/KCursor.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - 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 (TQCursor)
    static

  • -
  • autoHideEventFilter (a0, a1) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    a0TQObject
    a1TQEvent
    -

  • -
  • blankCursor () -
    - -
    returns (TQCursor)
    static

  • -
  • crossCursor () -
    - -
    returns (TQCursor)
    static

  • -
  • handCursor () -
    - -
    returns (TQCursor)
    static

  • -
  • hideCursorDelay () -
    - -
    returns (int)
    static

  • -
  • ibeamCursor () -
    - -
    returns (TQCursor)
    static

  • -
  • setAutoHideCursor (w, enable) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    wTQWidget
    enablebool
    -

  • -
  • setAutoHideCursor (w, enable, customEventFilter) -
    - -
    returns nothing
    static
    - - - -
    ArgumentTypeDefault
    wTQWidget
    enablebool
    customEventFilterbool
    -

  • -
  • setHideCursorDelay (ms) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    msint
    -

  • -
  • sizeAllCursor () -
    - -
    returns (TQCursor)
    static

  • -
  • sizeBDiagCursor () -
    - -
    returns (TQCursor)
    static

  • -
  • sizeFDiagCursor () -
    - -
    returns (TQCursor)
    static

  • -
  • sizeHorCursor () -
    - -
    returns (TQCursor)
    static

  • -
  • sizeVerCursor () -
    - -
    returns (TQCursor)
    static

  • -
  • upArrowCursor () -
    - -
    returns (TQCursor)
    static

  • -
  • waitCursor () -
    - -
    returns (TQCursor)
    static

  • -
  • whatsThisCursor () -
    - -
    returns (TQCursor)
    static

  • -
  • workingCursor () -
    - -
    returns (TQCursor)
    static

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDCOPActionProxy.html b/python/pykde/doc/classref/kdeui/KDCOPActionProxy.html deleted file mode 100644 index 4c9841ff..00000000 --- a/python/pykde/doc/classref/kdeui/KDCOPActionProxy.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - 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 = TQCString ()) -
    -
    returns (TQMap)
    - -
    ArgumentTypeDefault
    appIdTQCStringTQCString ()
    -

  • -
  • actionObjectId (name) -
    -
    returns (TQCString)
    - -
    ArgumentTypeDefault
    nameTQCString
    -

  • -
  • actions () -
    -
    returns (TQValueList

  • -
  • process (obj, fun, data, replyType, replyData) -
    -
    returns (bool)
    - - - - - -
    ArgumentTypeDefault
    objTQCString
    funTQCString
    dataTQByteArray
    replyTypeTQCString
    replyDataTQByteArray
    -

  • -
  • processAction (obj, fun, data, replyType, replyData, action) -
    -
    returns (bool)
    - - - - - - -
    ArgumentTypeDefault
    objTQCString
    funTQCString
    dataTQByteArray
    replyTypeTQCString
    replyDataTQByteArray
    actionKAction
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDateInternalMonthPicker.html b/python/pykde/doc/classref/kdeui/KDateInternalMonthPicker.html deleted file mode 100644 index c22772a9..00000000 --- a/python/pykde/doc/classref/kdeui/KDateInternalMonthPicker.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - class KDateInternalMonthPicker - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDateInternalMonthPicker


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDateInternalMonthPicker
InheritsTQGridView
-

methods

    -
  • KDateInternalMonthPicker (date, parent, name = 0) -
    - -
    returns a KDateInternalMonthPicker instance
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    dateTQDate
    parentTQWidget
    namechar0
    -

  • -
  • KDateInternalMonthPicker (a0, a1, a2 = 0) -
    - -
    returns a KDateInternalMonthPicker instance
    In versions less than KDE 3.2.0 only
    - - - -
    ArgumentTypeDefault
    a0int
    a1TQWidget
    a2char0
    -

  • -
  • closeMe (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • contentsMouseMoveEvent (e) -
    - -
    returns nothing
    In versions KDE 3.0.1 and above only
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • contentsMouseMoveEvent (a0) -
    - -
    returns nothing
    In versions less than KDE 3.0.1 only
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • contentsMousePressEvent (e) -
    - -
    returns nothing
    In versions KDE 3.0.1 and above only
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • contentsMousePressEvent (a0) -
    - -
    returns nothing
    In versions less than KDE 3.0.1 only
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • contentsMouseReleaseEvent (e) -
    - -
    returns nothing
    In versions KDE 3.0.1 and above only
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • contentsMouseReleaseEvent (a0) -
    - -
    returns nothing
    In versions less than KDE 3.0.1 only
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • getResult () -
    -
    returns (int)

  • -
  • paintCell (painter, row, col) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    painterTQPainter
    rowint
    colint
    -

  • -
  • setupPainter (p) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pTQPainter
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • viewportResizeEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.0.1 and above only
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • viewportResizeEvent (a0) -
    - -
    returns nothing
    In versions less than KDE 3.0.1 only
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDateInternalWeekSelector.html b/python/pykde/doc/classref/kdeui/KDateInternalWeekSelector.html deleted file mode 100644 index a6343e9f..00000000 --- a/python/pykde/doc/classref/kdeui/KDateInternalWeekSelector.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - - class KDateInternalWeekSelector - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDateInternalWeekSelector


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDateInternalWeekSelector
InheritsTQLineEdit
-

methods

    -
  • KDateInternalWeekSelector (parent = 0, name = 0) -
    - -
    returns a KDateInternalWeekSelector instance
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KDateInternalWeekSelector (a0, a1 = 0, a2 = 0) -
    - -
    returns a KDateInternalWeekSelector instance
    In versions less than KDE 3.2.0 only
    - - - -
    ArgumentTypeDefault
    a0int
    a1TQWidget0
    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/python/pykde/doc/classref/kdeui/KDateInternalYearSelector.html b/python/pykde/doc/classref/kdeui/KDateInternalYearSelector.html deleted file mode 100644 index d6a7fb85..00000000 --- a/python/pykde/doc/classref/kdeui/KDateInternalYearSelector.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - class KDateInternalYearSelector - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDateInternalYearSelector


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDateInternalYearSelector
InheritsTQLineEdit
-

methods

    -
  • KDateInternalYearSelector (parent = 0, name = 0) -
    - -
    returns a KDateInternalYearSelector instance
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KDateInternalYearSelector (a0, a1 = 0, a2 = 0) -
    - -
    returns a KDateInternalYearSelector instance
    In versions less than KDE 3.2.0 only
    - - - -
    ArgumentTypeDefault
    a0int
    a1TQWidget0
    a2char0
    -

  • -
  • closeMe (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • getYear () -
    -
    returns (int)

  • -
  • setYear (year) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    yearint
    -

  • -
  • yearEnteredSlot () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDatePicker.html b/python/pykde/doc/classref/kdeui/KDatePicker.html deleted file mode 100644 index e9bda36c..00000000 --- a/python/pykde/doc/classref/kdeui/KDatePicker.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - - class KDatePicker - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDatePicker


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDatePicker
InheritsTQFrame
-

methods

    -
  • KDatePicker (parent = 0, a0 = TQDate .currentDate (), name = 0) -
    -
    returns a KDatePicker instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    a0TQDateTQDate .currentDate ()
    namechar0
    -

  • -
  • KDatePicker (parent, a0, name, f) -
    - -
    returns a KDatePicker instance
    In versions KDE 3.1.0 and above only
    - - - - -
    ArgumentTypeDefault
    parentTQWidget
    a0TQDate
    namechar
    fWFlags
    -

  • -
  • KDatePicker (parent, name) -
    - -
    returns a KDatePicker instance
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar
    -

  • -
  • date () -
    -
    returns (TQDate)

  • -
  • dateChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDate
    -

  • -
  • dateChangedSlot (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDate
    -

  • -
  • dateEntered (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDate
    -

  • -
  • dateSelected (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDate
    -

  • -
  • 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
    oTQObject
    eTQEvent
    -

  • -
  • fontSize () -
    -
    returns (int)

  • -
  • getDate () -
    -
    returns (TQDate)

  • -
  • 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
    a0TQResizeEvent
    -

  • -
  • resizeEvent (a0) -
    - -
    returns nothing
    In versions less than KDE 3.1.0 only
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • 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
    a0TQDate
    -

  • -
  • setEnabled (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • setFontSize (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • 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/python/pykde/doc/classref/kdeui/KDateTable.html b/python/pykde/doc/classref/kdeui/KDateTable.html deleted file mode 100644 index 1f1253ab..00000000 --- a/python/pykde/doc/classref/kdeui/KDateTable.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - class KDateTable - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDateTable


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDateTable
InheritsTQGridView
-

enums

    -
  • BackgroundMode = {NoBgMode, RectangleMode, CircleMode -}
-

methods

    -
  • KDateTable (parent = 0, date = TQDate .currentDate (), name = 0, f = 0) -
    -
    returns a KDateTable instance
    - - - - -
    ArgumentTypeDefault
    parentTQWidget0
    dateTQDateTQDate .currentDate ()
    namechar0
    fWFlags0
    -

  • -
  • KDateTable (parent, name, f = 0) -
    - -
    returns a KDateTable instance
    In versions KDE 3.4.0 and above only
    - - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar
    fWFlags0
    -

  • -
  • aboutToShowContextMenu (menu, date) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    menuKPopupMenu
    dateTQDate
    -

  • -
  • contentsMousePressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • dateChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDate
    -

  • -
  • dateChanged (cur, old) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    curTQDate
    oldTQDate
    -

  • -
  • dateFromPos (pos) -
    - -
    returns (TQDate)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    posint
    -

  • -
  • focusInEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQFocusEvent
    -

  • -
  • focusOutEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQFocusEvent
    -

  • -
  • getDate () -
    -
    returns (TQDate)

  • -
  • keyPressEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQKeyEvent
    -

  • -
  • paintCell (a0, a1, a2) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    a0TQPainter
    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
    dateTQDate
    -

  • -
  • setCustomDatePainting (date, fgColor, bgMode = NoBgMode, bgColor = TQColor ()) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    dateTQDate
    fgColorTQColor
    bgModeBackgroundModeNoBgMode
    bgColorTQColorTQColor ()
    -

  • -
  • setDate (a0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    a0TQDate
    -

  • -
  • setFontSize (size) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sizeint
    -

  • -
  • setPopupMenuEnabled (enable) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    enablebool
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • tableClicked () -
    -
    returns nothing

  • -
  • unsetCustomDatePainting (date) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    dateTQDate
    -

  • -
  • viewportResizeEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • wheelEvent (e) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    eTQWheelEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDateTimeWidget.html b/python/pykde/doc/classref/kdeui/KDateTimeWidget.html deleted file mode 100644 index 0b939a16..00000000 --- a/python/pykde/doc/classref/kdeui/KDateTimeWidget.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - class KDateTimeWidget - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDateTimeWidget


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDateTimeWidget
InheritsTQWidget
-

methods

    -
  • KDateTimeWidget (parent = 0, name = 0) -
    - -
    returns a KDateTimeWidget instance
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KDateTimeWidget (datetime, parent = 0, name = 0) -
    - -
    returns a KDateTimeWidget instance
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    datetimeTQDateTime
    parentTQWidget0
    namechar0
    -

  • -
  • dateTime () -
    - -
    returns (TQDateTime)
    In versions KDE 3.2.0 and above only

  • -
  • setDateTime (datetime) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    datetimeTQDateTime
    -

  • -
  • valueChanged (datetime) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    datetimeTQDateTime
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDateValidator.html b/python/pykde/doc/classref/kdeui/KDateValidator.html deleted file mode 100644 index cc9a42bd..00000000 --- a/python/pykde/doc/classref/kdeui/KDateValidator.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - class KDateValidator - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDateValidator


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDateValidator
InheritsTQValidator
-

methods

    -
  • KDateValidator (parent = 0, name = 0) -
    -
    returns a KDateValidator instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • date (a0, a1) -
    -
    returns (State)
    - - -
    ArgumentTypeDefault
    a0TQString
    a1TQDate
    -

  • -
  • fixup (input) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    inputTQString
    -

  • -
  • validate (a0) -
    -
    returns (State) a1 (int)
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDateWidget.html b/python/pykde/doc/classref/kdeui/KDateWidget.html deleted file mode 100644 index b1db30d2..00000000 --- a/python/pykde/doc/classref/kdeui/KDateWidget.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - class KDateWidget - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDateWidget


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDateWidget
InheritsTQWidget
-

methods

    -
  • KDateWidget (parent, name = 0) -
    -
    returns a KDateWidget instance
    - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar0
    -

  • -
  • KDateWidget (date, parent, name = 0) -
    -
    returns a KDateWidget instance
    - - - -
    ArgumentTypeDefault
    dateTQDate
    parentTQWidget
    namechar0
    -

  • -
  • changed (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDate
    -

  • -
  • date () -
    -
    returns (TQDate)

  • -
  • init () -
    -
    returns nothing

  • -
  • init (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQDate
    -

  • -
  • setDate (date) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    dateTQDate
    -

  • -
  • slotDateChanged () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDialog.html b/python/pykde/doc/classref/kdeui/KDialog.html deleted file mode 100644 index 7cef67d2..00000000 --- a/python/pykde/doc/classref/kdeui/KDialog.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - - class KDialog - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDialog


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDialog
InheritsTQDialog
-

methods

    -
  • KDialog (parent = 0, name = 0, modal = 0, f = 0) -
    -
    returns a KDialog instance
    - - - - -
    ArgumentTypeDefault
    parentTQWidget0
    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
    widgetTQWidget
    areaTQRect
    screenint-1
    -

  • -
  • centerOnScreen (widget, screen = -1) -
    - - -
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    - - -
    ArgumentTypeDefault
    widgetTQWidget
    screenint-1
    -

  • -
  • keyPressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQKeyEvent
    -

  • -
  • layoutHintChanged () -
    -
    returns nothing

  • -
  • marginHint () -
    - -
    returns (int)
    static

  • -
  • polish () -
    -
    returns nothing

  • -
  • resizeLayout (widget, margin, spacing) -
    - -
    returns nothing
    static
    - - - -
    ArgumentTypeDefault
    widgetTQWidget
    marginint
    spacingint
    -

  • -
  • resizeLayout (lay, margin, spacing) -
    - -
    returns nothing
    static
    - - - -
    ArgumentTypeDefault
    layTQLayoutItem
    marginint
    spacingint
    -

  • -
  • setCaption (caption) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    captionTQString
    -

  • -
  • setPlainCaption (caption) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    captionTQString
    -

  • -
  • spacingHint () -
    - -
    returns (int)
    static

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDialogBase.html b/python/pykde/doc/classref/kdeui/KDialogBase.html deleted file mode 100644 index aa292cea..00000000 --- a/python/pykde/doc/classref/kdeui/KDialogBase.html +++ /dev/null @@ -1,706 +0,0 @@ - - - - - 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 = TQString .null, buttonMask = Ok | Apply | Cancel, defaultButton = Ok, separator = 0, user1 = KGuiItem (), user2 = KGuiItem (), user3 = KGuiItem ()) -
    -
    returns a KDialogBase instance
    - - - - - - - - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    modalbool1
    captionTQStringTQString .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
    captionTQString
    buttonMaskint
    defaultButtonKDialogBase.ButtonCode
    parentTQWidget0
    namechar0
    modalbool1
    separatorbool0
    user1KGuiItemKGuiItem ()
    user2KGuiItemKGuiItem ()
    user3KGuiItemKGuiItem ()
    -

  • -
  • KDialogBase (dialogFace, f, parent = 0, name = 0, modal = 1, caption = TQString .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
    parentTQWidget0
    namechar0
    modalbool1
    captionTQStringTQString .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
    captionTQString
    buttonMaskintYes | No | Cancel
    defaultButtonKDialogBase.ButtonCodeYes
    escapeButtonKDialogBase.ButtonCodeCancel
    parentTQWidget0
    namechar0
    modalbool1
    separatorbool0
    yesKGuiItemKStdGuiItem .yes ()
    noKGuiItemKStdGuiItem .no ()
    cancelKGuiItemKStdGuiItem .cancel ()
    -

  • -
  • aboutToShowDetails () -
    -
    returns nothing

  • -
  • aboutToShowPage (page) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pageTQWidget
    -

  • -
  • actionButton (id) -
    -
    returns (TQPushButton)
    - -
    ArgumentTypeDefault
    idKDialogBase.ButtonCode
    -

  • -
  • activePageIndex () -
    -
    returns (int)

  • -
  • addButtonBelowList (text, recv, slot) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    textTQString
    recvTQObject
    slotchar
    -

  • -
  • addButtonBelowList (guiitem, recv, slot) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    guiitemKGuiItem
    recvTQObject
    slotchar
    -

  • -
  • addGridPage (n, dir, itemName, header = TQString .null, pixmap = TQPixmap ()) -
    -
    returns (TQGrid)
    - - - - - -
    ArgumentTypeDefault
    nint
    dirQt.Orientation
    itemNameTQString
    headerTQStringTQString .null
    pixmapTQPixmapTQPixmap ()
    -

  • -
  • addGridPage (n, dir, items, header = TQString .null, pixmap = TQPixmap ()) -
    -
    returns (TQGrid)
    - - - - - -
    ArgumentTypeDefault
    nint
    dirQt.Orientation
    itemsTQStringList
    headerTQStringTQString .null
    pixmapTQPixmapTQPixmap ()
    -

  • -
  • addHBoxPage (itemName, header = TQString .null, pixmap = TQPixmap ()) -
    -
    returns (TQHBox)
    - - - -
    ArgumentTypeDefault
    itemNameTQString
    headerTQStringTQString .null
    pixmapTQPixmapTQPixmap ()
    -

  • -
  • addHBoxPage (items, header = TQString .null, pixmap = TQPixmap ()) -
    -
    returns (TQHBox)
    - - - -
    ArgumentTypeDefault
    itemsTQStringList
    headerTQStringTQString .null
    pixmapTQPixmapTQPixmap ()
    -

  • -
  • addPage (itemName, header = TQString .null, pixmap = TQPixmap ()) -
    -
    returns (TQFrame)
    - - - -
    ArgumentTypeDefault
    itemNameTQString
    headerTQStringTQString .null
    pixmapTQPixmapTQPixmap ()
    -

  • -
  • addPage (items, header = TQString .null, pixmap = TQPixmap ()) -
    -
    returns (TQFrame)
    - - - -
    ArgumentTypeDefault
    itemsTQStringList
    headerTQStringTQString .null
    pixmapTQPixmapTQPixmap ()
    -

  • -
  • addVBoxPage (itemName, header = TQString .null, pixmap = TQPixmap ()) -
    -
    returns (TQVBox)
    - - - -
    ArgumentTypeDefault
    itemNameTQString
    headerTQStringTQString .null
    pixmapTQPixmapTQPixmap ()
    -

  • -
  • addVBoxPage (items, header = TQString .null, pixmap = TQPixmap ()) -
    -
    returns (TQVBox)
    - - - -
    ArgumentTypeDefault
    itemsTQStringList
    headerTQStringTQString .null
    pixmapTQPixmapTQPixmap ()
    -

  • -
  • addWidgetBelowList (widget) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    widgetTQWidget
    -

  • -
  • adjustSize () -
    -
    returns nothing

  • -
  • apply () -
    -
    returns nothing

  • -
  • applyClicked () -
    -
    returns nothing

  • -
  • applyPressed () -
    -
    returns nothing

  • -
  • backgroundChanged () -
    -
    returns nothing

  • -
  • backgroundTile () -
    - -
    returns (TQPixmap)
    static

  • -
  • calculateSize (w, h) -
    -
    returns (TQSize)
    - - -
    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
    eTQCloseEvent
    -

  • -
  • configDialogSize (groupName) -
    -
    returns (TQSize)
    - -
    ArgumentTypeDefault
    groupNameTQString
    -

  • -
  • configDialogSize (config, groupName) -
    - -
    returns (TQSize)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    configKConfig
    groupNameTQString
    -

  • -
  • 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 (TQPixmap)
    static

  • -
  • getBorderWidths () -
    -
    returns ulx (int) uly (int) lrx (int) lry (int)

  • -
  • getContentsRect () -
    -
    returns (TQRect)

  • -
  • haveBackgroundTile () -
    - -
    returns (bool)
    static

  • -
  • helpClicked () -
    -
    returns nothing

  • -
  • helpClickedSlot (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • helpLinkText () -
    -
    returns (TQString)

  • -
  • hidden () -
    -
    returns nothing

  • -
  • hideEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQHideEvent
    -

  • -
  • incInitialSize (s, noResize = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    sTQSize
    noResizebool0
    -

  • -
  • keyPressEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQKeyEvent
    -

  • -
  • mainWidget () -
    -
    returns (TQWidget)

  • -
  • makeGridMainWidget (n, dir) -
    -
    returns (TQGrid)
    - - -
    ArgumentTypeDefault
    nint
    dirQt.Orientation
    -

  • -
  • makeHBoxMainWidget () -
    -
    returns (TQHBox)

  • -
  • makeMainWidget () -
    -
    returns (TQFrame)

  • -
  • makeVBoxMainWidget () -
    -
    returns (TQVBox)

  • -
  • minimumSizeHint () -
    -
    returns (TQSize)

  • -
  • noClicked () -
    -
    returns nothing

  • -
  • okClicked () -
    -
    returns nothing

  • -
  • pageIndex (widget) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    widgetTQWidget
    -

  • -
  • plainPage () -
    -
    returns (TQFrame)

  • -
  • saveDialogSize (groupName, global = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    groupNameTQString
    globalbool0
    -

  • -
  • saveDialogSize (config, groupName, global = 0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    configKConfig
    groupNameTQString
    globalbool0
    -

  • -
  • setBackgroundTile (pix) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    pixTQPixmap
    -

  • -
  • setButtonApply (item = KStdGuiItem .apply ()) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    itemKGuiItemKStdGuiItem .apply ()
    -

  • -
  • setButtonApplyText (text = TQString .null, tooltip = TQString .null, quickhelp = TQString .null) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    textTQStringTQString .null
    tooltipTQStringTQString .null
    quickhelpTQStringTQString .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 = TQString .null, tooltip = TQString .null, quickhelp = TQString .null) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    textTQStringTQString .null
    tooltipTQStringTQString .null
    quickhelpTQStringTQString .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 = TQString .null, tooltip = TQString .null, quickhelp = TQString .null) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    textTQStringTQString .null
    tooltipTQStringTQString .null
    quickhelpTQStringTQString .null
    -

  • -
  • setButtonText (id, text) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    idKDialogBase.ButtonCode
    textTQString
    -

  • -
  • setButtonTip (id, text) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    idKDialogBase.ButtonCode
    textTQString
    -

  • -
  • setButtonWhatsThis (id, text) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    idKDialogBase.ButtonCode
    textTQString
    -

  • -
  • setDetails (showDetails) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    showDetailsbool
    -

  • -
  • setDetailsWidget (detailsWidget) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    detailsWidgetTQWidget
    -

  • -
  • setEscapeButton (id) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    idKDialogBase.ButtonCode
    -

  • -
  • setFolderIcon (path, pixmap) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    pathTQStringList
    pixmapTQPixmap
    -

  • -
  • setHelp (anchor, appname = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    anchorTQString
    appnameTQStringTQString .null
    -

  • -
  • setHelpLinkText (text) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • setIconListAllVisible (state) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    statebool
    -

  • -
  • setInitialSize (s, noResize = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    sTQSize
    noResizebool0
    -

  • -
  • setMainWidget (widget) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    widgetTQWidget
    -

  • -
  • 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 (TQSize)

  • -
  • 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/python/pykde/doc/classref/kdeui/KDialogQueue.html b/python/pykde/doc/classref/kdeui/KDialogQueue.html deleted file mode 100644 index 0244ac4e..00000000 --- a/python/pykde/doc/classref/kdeui/KDialogQueue.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - class KDialogQueue - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDialogQueue


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDialogQueue
InheritsTQObject
-

methods

    -
  • KDialogQueue () -
    -
    returns a KDialogQueue instance

  • -
  • queueDialog (a0) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    a0TQDialog
    -

  • -
  • self () -
    - -
    returns (KDialogQueue)
    static

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDockArea.html b/python/pykde/doc/classref/kdeui/KDockArea.html deleted file mode 100644 index 4dd0bb43..00000000 --- a/python/pykde/doc/classref/kdeui/KDockArea.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - class KDockArea - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDockArea


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDockArea
InheritsTQWidget
-

methods

    -
  • KDockArea (parent = 0, name = 0) -
    -
    returns a KDockArea instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • activateDock () -
    -
    returns nothing

  • -
  • createDockWidget (name, pixmap, parent = 0, strCaption = 0, strTabPageLabel = " ") -
    -
    returns (KDockWidget)
    - - - - - -
    ArgumentTypeDefault
    nameTQString
    pixmapTQPixmap
    parentTQWidget0
    strCaptionTQString0
    strTabPageLabelTQString" "
    -

  • -
  • dockHideShowMenu () -
    -
    returns (TQPopupMenu)

  • -
  • 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
    widgetTQWidget
    -

  • -
  • manager () -
    -
    returns (KDockManager)

  • -
  • readDockConfig (base) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    baseTQDomElement
    -

  • -
  • readDockConfig (c = 0, group = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    cKConfig0
    groupTQStringTQString .null
    -

  • -
  • resizeEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • setMainDockWidget (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KDockWidget
    -

  • -
  • slotDockWidgetUndocked () -
    -
    returns nothing

  • -
  • writeDockConfig (base) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    baseTQDomElement
    -

  • -
  • writeDockConfig (c = 0, group = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    cKConfig0
    groupTQStringTQString .null
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDockMainWindow.html b/python/pykde/doc/classref/kdeui/KDockMainWindow.html deleted file mode 100644 index 282dc5d6..00000000 --- a/python/pykde/doc/classref/kdeui/KDockMainWindow.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    fWFlagsWType_TopLevel | WDestructiveClose
    -

  • -
  • activateDock () -
    -
    returns nothing

  • -
  • createDockWidget (name, pixmap, parent = 0, strCaption = 0, strTabPageLabel = " ") -
    -
    returns (KDockWidget)
    - - - - - -
    ArgumentTypeDefault
    nameTQString
    pixmapTQPixmap
    parentTQWidget0
    strCaptionTQString0
    strTabPageLabelTQString" "
    -

  • -
  • dockHideShowMenu () -
    -
    returns (TQPopupMenu)

  • -
  • 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
    widgetTQWidget
    -

  • -
  • manager () -
    -
    returns (KDockManager)

  • -
  • readDockConfig (base) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    baseTQDomElement
    -

  • -
  • readDockConfig (c = 0, group = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    cKConfig0
    groupTQStringTQString .null
    -

  • -
  • setMainDockWidget (dockwidget) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    dockwidgetKDockWidget
    -

  • -
  • setView (widget) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    widgetTQWidget
    -

  • -
  • slotDockWidgetUndocked () -
    -
    returns nothing

  • -
  • writeDockConfig (base) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    baseTQDomElement
    -

  • -
  • writeDockConfig (c = 0, group = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    cKConfig0
    groupTQStringTQString .null
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDockManager.html b/python/pykde/doc/classref/kdeui/KDockManager.html deleted file mode 100644 index 19155426..00000000 --- a/python/pykde/doc/classref/kdeui/KDockManager.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - class KDockManager - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDockManager


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDockManager
InheritsTQObject
-

enums

    -
  • EnReadDockConfigMode = {Unknown, WrapExistingWidgetsOnly, RestoreAllDockwidgets -}
-

methods

    -
  • KDockManager (mainWindow, name = 0) -
    -
    returns a KDockManager instance
    - - -
    ArgumentTypeDefault
    mainWindowTQWidget
    namechar0
    -

  • -
  • activate () -
    -
    returns nothing

  • -
  • change () -
    -
    returns nothing

  • -
  • dockHideShowMenu () -
    -
    returns (TQPopupMenu)

  • -
  • dumpDockWidgets () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
  • eventFilter (object, event) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    objectTQObject
    eventTQEvent
    -

  • -
  • findWidgetParentDock (w) -
    -
    returns (KDockWidget)
    - -
    ArgumentTypeDefault
    wTQWidget
    -

  • -
  • finishReadDockConfig () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
  • getDockWidgetFromName (dockName) -
    -
    returns (KDockWidget)
    - -
    ArgumentTypeDefault
    dockNameTQString
    -

  • -
  • makeWidgetDockVisible (w) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    wTQWidget
    -

  • -
  • readConfig (c = 0, group = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    cKConfig0
    groupTQStringTQString .null
    -

  • -
  • readConfig (base) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    baseTQDomElement
    -

  • -
  • 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 = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    cKConfig0
    groupTQStringTQString .null
    -

  • -
  • writeConfig (base) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    baseTQDomElement
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDockTabGroup.html b/python/pykde/doc/classref/kdeui/KDockTabGroup.html deleted file mode 100644 index b03b1d64..00000000 --- a/python/pykde/doc/classref/kdeui/KDockTabGroup.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - class KDockTabGroup - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDockTabGroup


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDockTabGroup
InheritsTQTabWidget
-

methods

    -
  • KDockTabGroup (parent = 0, name = 0) -
    -
    returns a KDockTabGroup instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • transientTo () -
    - -
    returns (TQWidget)
    In versions KDE 3.2.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDockWidget.html b/python/pykde/doc/classref/kdeui/KDockWidget.html deleted file mode 100644 index b5615815..00000000 --- a/python/pykde/doc/classref/kdeui/KDockWidget.html +++ /dev/null @@ -1,320 +0,0 @@ - - - - - class KDockWidget - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDockWidget


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDockWidget
InheritsTQWidget
-

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
    pixmapTQPixmap
    parentTQWidget0
    strCaptionTQString0
    strTabPageLabelTQString" "
    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
    a0TQEvent
    -

  • -
  • 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 (TQWidget)

  • -
  • hasUndocked () -
    -
    returns nothing

  • -
  • headerCloseButtonClicked () -
    -
    returns nothing

  • -
  • headerDockbackButtonClicked () -
    -
    returns nothing

  • -
  • iMBeingClosed () -
    -
    returns nothing

  • -
  • isDockBackPossible () -
    -
    returns (bool)

  • -
  • latestKDockContainer () -
    - -
    returns (TQWidget)
    In versions KDE 3.1.0 and above only

  • -
  • leaveEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0TQEvent
    -

  • -
  • loseFormerBrotherDockWidget () -
    -
    returns nothing

  • -
  • makeDockVisible () -
    -
    returns nothing

  • -
  • manualDock (target, dockPos, spliPos = 50, pos = TQPoint (0 ,0 ), check = 0, tabIndex = -1) -
    -
    returns (KDockWidget)
    - - - - - - -
    ArgumentTypeDefault
    targetKDockWidget
    dockPosKDockWidget.DockPosition
    spliPosint50
    posTQPointTQPoint (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
    a0TQMouseEvent
    -

  • -
  • mousePressEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • mouseReleaseEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • paintEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0TQPaintEvent
    -

  • -
  • parentDockContainer () -
    - -
    returns (TQWidget)
    In versions KDE 3.1.0 and above only

  • -
  • parentDockTabGroup () -
    -
    returns (KDockTabGroup)

  • -
  • pixmap () -
    - -
    returns (TQPixmap)
    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
    parentTQWidget
    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
    a0TQWidget
    -

  • -
  • setPixmap (pixmap = TQPixmap ()) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    pixmapTQPixmapTQPixmap ()
    -

  • -
  • setTabPageLabel (label) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    labelTQString
    -

  • -
  • setToolTipString (ttStr) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    ttStrTQString
    -

  • -
  • setWidget (w) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    wTQWidget
    -

  • -
  • show () -
    -
    returns nothing

  • -
  • tabPageLabel () -
    -
    returns (TQString)

  • -
  • toDesktop () -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only

  • -
  • toolTipString () -
    -
    returns (TQString)

  • -
  • transientTo () -
    - -
    returns (TQWidget)
    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
    a0TQWidget
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDockWidgetAbstractHeader.html b/python/pykde/doc/classref/kdeui/KDockWidgetAbstractHeader.html deleted file mode 100644 index 9226b353..00000000 --- a/python/pykde/doc/classref/kdeui/KDockWidgetAbstractHeader.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - class KDockWidgetAbstractHeader - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDockWidgetAbstractHeader


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDockWidgetAbstractHeader
InheritsTQFrame
-

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/python/pykde/doc/classref/kdeui/KDockWidgetAbstractHeaderDrag.html b/python/pykde/doc/classref/kdeui/KDockWidgetAbstractHeaderDrag.html deleted file mode 100644 index 52ef4360..00000000 --- a/python/pykde/doc/classref/kdeui/KDockWidgetAbstractHeaderDrag.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - class KDockWidgetAbstractHeaderDrag - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDockWidgetAbstractHeaderDrag


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDockWidgetAbstractHeaderDrag
InheritsTQFrame
-

methods

    -
  • KDockWidgetAbstractHeaderDrag (parent, dock, name = 0) -
    -
    returns a KDockWidgetAbstractHeaderDrag instance
    - - - -
    ArgumentTypeDefault
    parentKDockWidgetAbstractHeader
    dockKDockWidget
    namechar0
    -

  • -
  • dockWidget () -
    -
    returns (KDockWidget)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDockWidgetHeader.html b/python/pykde/doc/classref/kdeui/KDockWidgetHeader.html deleted file mode 100644 index fe4b340e..00000000 --- a/python/pykde/doc/classref/kdeui/KDockWidgetHeader.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdeui/KDockWidgetHeaderDrag.html b/python/pykde/doc/classref/kdeui/KDockWidgetHeaderDrag.html deleted file mode 100644 index 73f23940..00000000 --- a/python/pykde/doc/classref/kdeui/KDockWidgetHeaderDrag.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - 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
    a0TQPaintEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDockWindow.html b/python/pykde/doc/classref/kdeui/KDockWindow.html deleted file mode 100644 index 882f4034..00000000 --- a/python/pykde/doc/classref/kdeui/KDockWindow.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDoubleNumInput.html b/python/pykde/doc/classref/kdeui/KDoubleNumInput.html deleted file mode 100644 index 027ec231..00000000 --- a/python/pykde/doc/classref/kdeui/KDoubleNumInput.html +++ /dev/null @@ -1,228 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    -

  • -
  • KDoubleNumInput (value, parent = 0, name = 0) -
    -
    returns a KDoubleNumInput instance
    - - - -
    ArgumentTypeDefault
    valuedouble
    parentTQWidget0
    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
    parentTQWidget0
    namechar0
    -

  • -
  • KDoubleNumInput (below, value, parent = 0, name = 0) -
    -
    returns a KDoubleNumInput instance
    - - - - -
    ArgumentTypeDefault
    belowKNumInput
    valuedouble
    parentTQWidget0
    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
    parentTQWidget0
    namechar0
    -

  • -
  • doLayout () -
    -
    returns nothing

  • -
  • eventFilter (a0, a1) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    a0TQObject
    a1TQEvent
    -

  • -
  • maxValue () -
    -
    returns (double)

  • -
  • minValue () -
    -
    returns (double)

  • -
  • minimumSizeHint () -
    -
    returns (TQSize)

  • -
  • precision () -
    -
    returns (int)

  • -
  • prefix () -
    -
    returns (TQString)

  • -
  • 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
    a0TQResizeEvent
    -

  • -
  • setLabel (label, a = AlignLeft | AlignTop) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    labelTQString
    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
    prefixTQString
    -

  • -
  • 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
    textTQString
    -

  • -
  • setSuffix (suffix) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    suffixTQString
    -

  • -
  • setValue (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0double
    -

  • -
  • specialValueText () -
    -
    returns (TQString)

  • -
  • suffix () -
    -
    returns (TQString)

  • -
  • value () -
    -
    returns (double)

  • -
  • valueChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0double
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDoubleSpinBox.html b/python/pykde/doc/classref/kdeui/KDoubleSpinBox.html deleted file mode 100644 index 46f4fcd6..00000000 --- a/python/pykde/doc/classref/kdeui/KDoubleSpinBox.html +++ /dev/null @@ -1,177 +0,0 @@ - - - - - class KDoubleSpinBox - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDoubleSpinBox


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDoubleSpinBox
InheritsTQSpinBox
-

methods

    -
  • KDoubleSpinBox (parent = 0, name = 0) -
    - -
    returns a KDoubleSpinBox instance
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    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
    parentTQWidget0
    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 (TQString)
    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
    a0TQValidator
    -

  • -
  • 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/python/pykde/doc/classref/kdeui/KDoubleValidator.html b/python/pykde/doc/classref/kdeui/KDoubleValidator.html deleted file mode 100644 index 0c5a1cb1..00000000 --- a/python/pykde/doc/classref/kdeui/KDoubleValidator.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - class KDoubleValidator - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDoubleValidator


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDoubleValidator
InheritsTQDoubleValidator
-

methods

    -
  • KDoubleValidator (parent, name = 0) -
    - -
    returns a KDoubleValidator instance
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQObject
    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
    parentTQObject
    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 (TQValidator.State) pos (int)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    inputTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KDualColorButton.html b/python/pykde/doc/classref/kdeui/KDualColorButton.html deleted file mode 100644 index 470e8dab..00000000 --- a/python/pykde/doc/classref/kdeui/KDualColorButton.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - class KDualColorButton - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDualColorButton


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKDualColorButton
InheritsTQWidget
-

enums

    -
  • DualColor = {Foreground, Background -}
-

methods

    -
  • KDualColorButton (parent = 0, name = 0, dialogParent = 0) -
    -
    returns a KDualColorButton instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    dialogParentTQWidget0
    -

  • -
  • KDualColorButton (fgColor, bgColor, parent = 0, name = 0, dialogParent = 0) -
    -
    returns a KDualColorButton instance
    - - - - - -
    ArgumentTypeDefault
    fgColorTQColor
    bgColorTQColor
    parentTQWidget0
    namechar0
    dialogParentTQWidget0
    -

  • -
  • background () -
    -
    returns (TQColor)

  • -
  • bgChanged (c) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    cTQColor
    -

  • -
  • current () -
    -
    returns (KDualColorButton.DualColor)

  • -
  • currentChanged (s) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sKDualColorButton.DualColor
    -

  • -
  • currentColor () -
    -
    returns (TQColor)

  • -
  • dragEnterEvent (ev) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    evTQDragEnterEvent
    -

  • -
  • dropEvent (ev) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    evTQDropEvent
    -

  • -
  • fgChanged (c) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    cTQColor
    -

  • -
  • foreground () -
    -
    returns (TQColor)

  • -
  • metrics (fgRect, bgRect) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    fgRectTQRect
    bgRectTQRect
    -

  • -
  • mouseMoveEvent (ev) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    evTQMouseEvent
    -

  • -
  • mousePressEvent (ev) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    evTQMouseEvent
    -

  • -
  • mouseReleaseEvent (ev) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    evTQMouseEvent
    -

  • -
  • paintEvent (ev) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    evTQPaintEvent
    -

  • -
  • setBackground (c) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    cTQColor
    -

  • -
  • setCurrent (s) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sKDualColorButton.DualColor
    -

  • -
  • setCurrentColor (c) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    cTQColor
    -

  • -
  • setForeground (c) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    cTQColor
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KEdFind.html b/python/pykde/doc/classref/kdeui/KEdFind.html deleted file mode 100644 index 04e737bd..00000000 --- a/python/pykde/doc/classref/kdeui/KEdFind.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    modalbool1
    -

  • -
  • case_sensitive () -
    -
    returns (bool)

  • -
  • done () -
    -
    returns nothing

  • -
  • done (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • getText () -
    -
    returns (TQString)

  • -
  • 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
    stringTQString
    -

  • -
  • slotCancel () -
    -
    returns nothing

  • -
  • slotUser1 () -
    -
    returns nothing

  • -
  • textSearchChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KEdGotoLine.html b/python/pykde/doc/classref/kdeui/KEdGotoLine.html deleted file mode 100644 index 00a0cb10..00000000 --- a/python/pykde/doc/classref/kdeui/KEdGotoLine.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    modalbool1
    -

  • -
  • getLineNumber () -
    -
    returns (int)

  • -
  • selected (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KEdReplace.html b/python/pykde/doc/classref/kdeui/KEdReplace.html deleted file mode 100644 index eebb5e32..00000000 --- a/python/pykde/doc/classref/kdeui/KEdReplace.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    modalbool1
    -

  • -
  • case_sensitive () -
    -
    returns (bool)

  • -
  • done () -
    -
    returns nothing

  • -
  • done (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • find () -
    -
    returns nothing

  • -
  • getReplaceText () -
    -
    returns (TQString)

  • -
  • getText () -
    -
    returns (TQString)

  • -
  • get_direction () -
    -
    returns (bool)

  • -
  • replace () -
    -
    returns nothing

  • -
  • replaceAll () -
    -
    returns nothing

  • -
  • replaceCombo () -
    -
    returns (KHistoryCombo)

  • -
  • searchCombo () -
    -
    returns (KHistoryCombo)

  • -
  • setText (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • slotCancel () -
    -
    returns nothing

  • -
  • slotClose () -
    -
    returns nothing

  • -
  • slotUser1 () -
    -
    returns nothing

  • -
  • slotUser2 () -
    -
    returns nothing

  • -
  • slotUser3 () -
    -
    returns nothing

  • -
  • textSearchChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KEdit.html b/python/pykde/doc/classref/kdeui/KEdit.html deleted file mode 100644 index 44337429..00000000 --- a/python/pykde/doc/classref/kdeui/KEdit.html +++ /dev/null @@ -1,264 +0,0 @@ - - - - - class KEdit - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KEdit


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKEdit
InheritsTQMultiLineEdit
-

enums

    -
  • (anonymous) = {NONE, FORWARD, BACKWARD -}
-

methods

    -
  • CursorPositionChanged () -
    -
    returns nothing

  • -
  • KEdit (_parent = 0, name = 0) -
    -
    returns a KEdit instance
    - - -
    ArgumentTypeDefault
    _parentTQWidget0
    namechar0
    -

  • -
  • cleanWhiteSpace () -
    -
    returns nothing

  • -
  • computePosition () -
    -
    returns nothing

  • -
  • contentsDragEnterEvent (e) -
    - -
    returns nothing
    In versions KDE 3.1.3 and above only
    - -
    ArgumentTypeDefault
    eTQDragEnterEvent
    -

  • -
  • contentsDragMoveEvent (e) -
    - -
    returns nothing
    In versions KDE 3.1.3 and above only
    - -
    ArgumentTypeDefault
    eTQDragMoveEvent
    -

  • -
  • contentsDropEvent (e) -
    - -
    returns nothing
    In versions KDE 3.1.3 and above only
    - -
    ArgumentTypeDefault
    eTQDropEvent
    -

  • -
  • corrected (originalword, newword, pos) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    originalwordTQString
    newwordTQString
    posuint
    -

  • -
  • create (a0 = 0, initializeWindow = 1, destroyOldWindow = 1) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    a0WId0
    initializeWindowbool1
    destroyOldWindowbool1
    -

  • -
  • createPopupMenu (pos) -
    - -
    returns (TQPopupMenu)
    In versions KDE 3.2.3 and above only
    - -
    ArgumentTypeDefault
    posTQPoint
    -

  • -
  • currentColumn () -
    -
    returns (int)

  • -
  • currentLine () -
    -
    returns (int)

  • -
  • doGotoLine () -
    -
    returns nothing

  • -
  • doReplace (s_pattern, case_sensitive, regex, forward, line, col, replace) -
    -
    returns (int)
    - - - - - - - -
    ArgumentTypeDefault
    s_patternTQString
    case_sensitivebool
    regexbool
    forwardbool
    lineint
    colint
    replacebool
    -

  • -
  • doSearch (s_pattern, case_sensitive, regex, forward, line, col) -
    -
    returns (int)
    - - - - - - -
    ArgumentTypeDefault
    s_patternTQString
    case_sensitivebool
    regexbool
    forwardbool
    lineint
    colint
    -

  • -
  • dragEnterEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQDragEnterEvent
    -

  • -
  • dragMoveEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQDragMoveEvent
    -

  • -
  • dropEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQDropEvent
    -

  • -
  • ensureCursorVisible () -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only

  • -
  • gotUrlDrop (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQDropEvent
    -

  • -
  • insertText (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQTextStream
    -

  • -
  • installRBPopup (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQPopupMenu
    -

  • -
  • keyPressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQKeyEvent
    -

  • -
  • misspelling (word, a0, pos) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    wordTQString
    a0TQStringList
    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
    a0TQTextStream
    softWrapbool
    -

  • -
  • saveText (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQTextStream
    -

  • -
  • search () -
    -
    returns nothing

  • -
  • selectFont () -
    -
    returns nothing

  • -
  • selectWordUnderCursor () -
    - -
    returns (TQString)
    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
    a0TQCursor
    -

  • -
  • 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
    a0TQPaintEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KEditListBox.CustomEditor.html b/python/pykde/doc/classref/kdeui/KEditListBox.CustomEditor.html deleted file mode 100644 index 7320d43f..00000000 --- a/python/pykde/doc/classref/kdeui/KEditListBox.CustomEditor.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - 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
    repWidgetTQWidget
    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 (TQWidget)
    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
    repWidgetTQWidget
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KEditListBox.html b/python/pykde/doc/classref/kdeui/KEditListBox.html deleted file mode 100644 index 6325b71b..00000000 --- a/python/pykde/doc/classref/kdeui/KEditListBox.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - class KEditListBox - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KEditListBox


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKEditListBox
InheritsTQGroupBox
-

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
    parentTQWidget0
    namechar0
    checkAtEnteringbool0
    buttonsintAll
    -

  • -
  • KEditListBox (title, parent = 0, name = 0, checkAtEntering = 0, buttons = All) -
    -
    returns a KEditListBox instance
    - - - - - -
    ArgumentTypeDefault
    titleTQString
    parentTQWidget0
    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
    titleTQString
    customEditorKEditListBox.CustomEditor
    parentTQWidget0
    namechar0
    checkAtEnteringbool0
    buttonsintAll
    -

  • -
  • addButton () -
    -
    returns (TQPushButton)

  • -
  • addItem () -
    -
    returns nothing

  • -
  • added (text) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • 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 (TQString)

  • -
  • downButton () -
    -
    returns (TQPushButton)

  • -
  • enableMoveButtons (index) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    indexint
    -

  • -
  • insertItem (text, index = -1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    textTQString
    indexint-1
    -

  • -
  • insertStrList (list, index = -1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    listTQStrList
    indexint-1
    -

  • -
  • insertStrList (list, index = -1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    listTQStrList
    indexint-1
    -

  • -
  • insertStrList (list, index) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    lista Python list of strings
    indexint
    -

  • -
  • insertStringList (list, index = -1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    listTQStringList
    indexint-1
    -

  • -
  • items () -
    -
    returns (TQStringList)

  • -
  • lineEdit () -
    -
    returns (KLineEdit)

  • -
  • listBox () -
    -
    returns (TQListBox)

  • -
  • moveItemDown () -
    -
    returns nothing

  • -
  • moveItemUp () -
    -
    returns nothing

  • -
  • removeButton () -
    -
    returns (TQPushButton)

  • -
  • removeItem () -
    -
    returns nothing

  • -
  • removed (text) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • 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
    itemsTQStringList
    -

  • -
  • text (index) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    indexint
    -

  • -
  • typedSomething (text) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • upButton () -
    -
    returns (TQPushButton)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KEditToolbar.html b/python/pykde/doc/classref/kdeui/KEditToolbar.html deleted file mode 100644 index 615b904d..00000000 --- a/python/pykde/doc/classref/kdeui/KEditToolbar.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - - class KEditToolbar - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KEditToolbar


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKEditToolbar
InheritsKDialogBase
-

methods

    -
  • KEditToolbar (collection, xmlfile = TQString .null, global = 1, parent = 0, name = 0) -
    -
    returns a KEditToolbar instance
    - - - - - -
    ArgumentTypeDefault
    collectionKActionCollection
    xmlfileTQStringTQString .null
    globalbool1
    parentTQWidget0
    namechar0
    -

  • -
  • KEditToolbar (defaultToolbar, collection, xmlfile = TQString .null, global = 1, parent = 0, name = 0) -
    - -
    returns a KEditToolbar instance
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    defaultToolbarTQString
    collectionKActionCollection
    xmlfileTQStringTQString .null
    globalbool1
    parentTQWidget0
    namechar0
    -

  • -
  • KEditToolbar (factory, parent = 0, name = 0) -
    -
    returns a KEditToolbar instance
    - - - -
    ArgumentTypeDefault
    factoryKXMLGUIFactory
    parentTQWidget0
    namechar0
    -

  • -
  • KEditToolbar (defaultToolbar, factory, parent = 0, name = 0) -
    - -
    returns a KEditToolbar instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    defaultToolbarTQString
    factoryKXMLGUIFactory
    parentTQWidget0
    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/python/pykde/doc/classref/kdeui/KEditToolbarWidget.html b/python/pykde/doc/classref/kdeui/KEditToolbarWidget.html deleted file mode 100644 index 53a178e9..00000000 --- a/python/pykde/doc/classref/kdeui/KEditToolbarWidget.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - class KEditToolbarWidget - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KEditToolbarWidget


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKEditToolbarWidget
InheritsTQWidget, KXMLGUIClient
-

methods

    -
  • KEditToolbarWidget (collection, xmlfile = TQString .null, global = 1, parent = 0) -
    -
    returns a KEditToolbarWidget instance
    - - - - -
    ArgumentTypeDefault
    collectionKActionCollection
    xmlfileTQStringTQString .null
    globalbool1
    parentTQWidget0
    -

  • -
  • KEditToolbarWidget (defaultToolbar, collection, file = TQString .null, global = 1, parent = 0) -
    - -
    returns a KEditToolbarWidget instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    defaultToolbarTQString
    collectionKActionCollection
    fileTQStringTQString .null
    globalbool1
    parentTQWidget0
    -

  • -
  • KEditToolbarWidget (factory, parent = 0) -
    -
    returns a KEditToolbarWidget instance
    - - -
    ArgumentTypeDefault
    factoryKXMLGUIFactory
    parentTQWidget0
    -

  • -
  • KEditToolbarWidget (defaultToolbar, factory, parent = 0) -
    - -
    returns a KEditToolbarWidget instance
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    defaultToolbarTQString
    factoryKXMLGUIFactory
    parentTQWidget0
    -

  • -
  • 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
    fileTQString
    globalbool
    -

  • -
  • insertActive (item, before, prepend = 0) -
    Not Implemented
    -

  • -
  • loadActionList (elem) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    elemTQDomElement
    -

  • -
  • loadToolbarCombo (defaultToolbar = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    defaultToolbarTQStringTQString .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
    itemTQListViewItem
    -

  • -
  • 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
    eTQDropEvent
    afterTQListViewItem
    -

  • -
  • slotInactiveSelected (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemTQListViewItem
    -

  • -
  • slotInsertButton () -
    -
    returns nothing

  • -
  • slotRemoveButton () -
    -
    returns nothing

  • -
  • slotToolbarSelected (text) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • slotUpButton () -
    -
    returns nothing

  • -
  • updateLocal (elem) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    elemTQDomElement
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KFloatValidator.html b/python/pykde/doc/classref/kdeui/KFloatValidator.html deleted file mode 100644 index 7d1e9258..00000000 --- a/python/pykde/doc/classref/kdeui/KFloatValidator.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - class KFloatValidator - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KFloatValidator


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKFloatValidator
InheritsTQValidator
-

methods

    -
  • KFloatValidator (parent, name = 0) -
    -
    returns a KFloatValidator instance
    - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar0
    -

  • -
  • KFloatValidator (bottom, top, parent, name = 0) -
    -
    returns a KFloatValidator instance
    - - - - -
    ArgumentTypeDefault
    bottomdouble
    topdouble
    parentTQWidget
    namechar0
    -

  • -
  • KFloatValidator (bottom, top, localeAware, parent, name = 0) -
    -
    returns a KFloatValidator instance
    - - - - - -
    ArgumentTypeDefault
    bottomdouble
    topdouble
    localeAwarebool
    parentTQWidget
    namechar0
    -

  • -
  • acceptLocalizedNumbers () -
    -
    returns (bool)

  • -
  • bottom () -
    -
    returns (double)

  • -
  • fixup (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setAcceptLocalizedNumbers (b) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    bbool
    -

  • -
  • setRange (bottom, top) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    bottomdouble
    topdouble
    -

  • -
  • top () -
    -
    returns (double)

  • -
  • validate (a0) -
    -
    returns (State) a1 (int)
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KFontAction.html b/python/pykde/doc/classref/kdeui/KFontAction.html deleted file mode 100644 index 2ceb0edf..00000000 --- a/python/pykde/doc/classref/kdeui/KFontAction.html +++ /dev/null @@ -1,252 +0,0 @@ - - - - - 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
    a0TQString
    a1KShortcutKShortcut ()
    a2TQObject0
    a3char0
    -

  • -
  • KFontAction (a0, a1, slot, a4, a5 = 0) -
    - -
    returns a KFontAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1KShortcut
    slotSLOT (Python callable)
    a4TQObject
    a5char0
    -

  • -
  • KFontAction (text, pix, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KFontAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQString
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • KFontAction (text, pix, cut, slot, parent, name = 0) -
    - -
    returns a KFontAction instance
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KFontAction (text, pix, cut, slot, parent, name = 0) -
    - -
    returns a KFontAction instance
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    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
    textTQString
    cutKShortcutKShortcut ()
    parentTQObject0
    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
    textTQString
    pixTQString
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • KFontAction (parent = 0, name = 0) -
    - -
    returns a KFontAction instance
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • KFontAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) -
    - -
    returns a KFontAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQIconSet
    a2KShortcutKShortcut ()
    a3TQObject0
    a4char0
    -

  • -
  • KFontAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) -
    - -
    returns a KFontAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2KShortcutKShortcut ()
    a3TQObject0
    a4char0
    -

  • -
  • KFontAction (a0, a1, a2, slot, a5, a6 = 0) -
    - -
    returns a KFontAction instance
    In versions less than KDE 3.2.0 only
    - - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQIconSet
    a2KShortcut
    slotSLOT (Python callable)
    a5TQObject
    a6char0
    -

  • -
  • KFontAction (a0, a1, a2, slot, a5, a6 = 0) -
    - -
    returns a KFontAction instance
    In versions less than KDE 3.2.0 only
    - - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2KShortcut
    slotSLOT (Python callable)
    a5TQObject
    a6char0
    -

  • -
  • KFontAction (a0 = 0, a1 = 0) -
    - -
    returns a KFontAction instance
    In versions less than KDE 3.2.0 only
    - - -
    ArgumentTypeDefault
    a0TQObject0
    a1char0
    -

  • -
  • KFontAction (text, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KFontAction instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    textTQString
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • KFontAction (text, cut, slot, parent, name = 0) -
    - -
    returns a KFontAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KFontAction (text, pix, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KFontAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQIconSet
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • font () -
    - -
    returns (TQString)
    In versions less than KDE 3.2.0 only

  • -
  • font () -
    - -
    returns (TQString)
    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
    a0TQWidget
    a1int-1
    -

  • -
  • plug (a0, index = -1) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    a0TQWidget
    indexint-1
    -

  • -
  • setFont (a0) -
    - -
    returns nothing
    In versions less than KDE 3.2.0 only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setFont (family) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    familyTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KFontChooser.html b/python/pykde/doc/classref/kdeui/KFontChooser.html deleted file mode 100644 index 076c0603..00000000 --- a/python/pykde/doc/classref/kdeui/KFontChooser.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - class KFontChooser - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KFontChooser


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKFontChooser
InheritsTQWidget
-

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 = TQStringList(), makeFrame = 1, visibleListSize = 8, diff = 0, sizeIsRelativeState = 0) -
    -
    returns ,
    - - - - - - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namestring""
    onlyFixedbool0
    fontListTQStringListTQStringList()
    makeFramebool1
    visibleListSizeint8
    diffbool0
    sizeIsRelativeStateTQButton.ToggleState0
    -

  • -
  • backgroundColor () -
    -
    returns (TQColor)

  • -
  • color () -
    -
    returns (TQColor)

  • -
  • enableColumn (column, state) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    columnint
    statebool
    -

  • -
  • font () -
    -
    returns (TQFont)

  • -
  • fontDiffFlags () -
    -
    returns (int)

  • -
  • fontSelected (font) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    fontTQFont
    -

  • -
  • getFontList (list, fontListCriteria) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    listTQStringList
    fontListCriteriabool
    -

  • -
  • getXLFD (theFont) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    theFontTQFont
    -

  • -
  • sampleText () -
    -
    returns (TQString)

  • -
  • setBackgroundColor (col) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    colTQColor
    -

  • -
  • setColor (col) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    colTQColor
    -

  • -
  • setFont (font, onlyFixed = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    fontTQFont
    onlyFixedbool0
    -

  • -
  • setSampleBoxVisible (visible) -
    - -
    returns nothing
    In versions KDE 3.5.0 and above only
    - -
    ArgumentTypeDefault
    visiblebool
    -

  • -
  • setSampleText (text) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • setSizeIsRelative (relative) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    relativeTQButton.ToggleState
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • sizeIsRelative () -
    -
    returns (TQButton.ToggleState)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KFontCombo.html b/python/pykde/doc/classref/kdeui/KFontCombo.html deleted file mode 100644 index 6afdb78c..00000000 --- a/python/pykde/doc/classref/kdeui/KFontCombo.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - 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
    parentTQWidget
    namechar0
    -

  • -
  • KFontCombo (fonts, parent, name = 0) -
    -
    returns a KFontCombo instance
    - - - -
    ArgumentTypeDefault
    fontsTQStringList
    parentTQWidget
    namechar0
    -

  • -
  • bold () -
    -
    returns (bool)

  • -
  • currentFont () -
    -
    returns (TQString)

  • -
  • displayFonts () -
    - -
    returns (bool)
    static

  • -
  • italic () -
    -
    returns (bool)

  • -
  • setBold (bold) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    boldbool
    -

  • -
  • setCurrentFont (family) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    familyTQString
    -

  • -
  • setCurrentItem (i) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iint
    -

  • -
  • setFonts (fonts) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    fontsTQStringList
    -

  • -
  • 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/python/pykde/doc/classref/kdeui/KFontDialog.html b/python/pykde/doc/classref/kdeui/KFontDialog.html deleted file mode 100644 index e5a056ac..00000000 --- a/python/pykde/doc/classref/kdeui/KFontDialog.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - 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 = TQStringList(), makeFrame = 1, diff = 0, sizeIsRelativeState = 0) -
    -
    returns a KFontDialog instance
    - - - - - - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namestring""
    onlyFixedbool0
    modalbool0
    fontlistTQStringListTQStringList()
    makeFramebool1
    diffbool0
    sizeIsRelativeStateTQButton.ToggleState0
    -

  • -
  • font () -
    -
    returns (TQFont)

  • -
  • fontSelected (font) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    fontTQFont
    -

  • -
  • getFont (theFont, onlyFixed = False, parent = 0, makeFrame = True, sizeIsRelative = TQButton.Off) -
    - -
    returns (int) sizeIsRelative (TQButton.ToggleState),
    static
    - - - - - -
    ArgumentTypeDefault
    theFontTQFont
    onlyFixedboolFalse
    parentTQWidget0
    makeFrameboolTrue
    sizeIsRelativeTQButton.ToggleStateTQButton.Off
    -

  • -
  • getFontAndText (theFont, theString, onlyFixed = False, parent = 0, makeFrame = true, sizeIsRelative = TQButton.Off) -
    - -
    returns (int) sizeIsRelative (TQButton.ToggleState),
    static
    - - - - - - -
    ArgumentTypeDefault
    theFontTQFont
    theStringTQString
    onlyFixedboolFalse
    parentTQWidget0
    makeFramebooltrue
    sizeIsRelativeTQButton.ToggleStateTQButton.Off
    -

  • -
  • getFontDiff (theFont, diffFlags, onlyFixed = False, parent = 0, makeFrame = true, sizeIsRelative = TQButton.Off) -
    - -
    returns (int) sizeIsRelative (TQButton.ToggleState),
    static
    - - - - - - -
    ArgumentTypeDefault
    theFontTQFont
    diffFlagsint
    onlyFixedboolFalse
    parentTQWidget0
    makeFramebooltrue
    sizeIsRelativeTQButton.ToggleStateTQButton.Off
    -

  • -
  • setFont (font, onlyFixed = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    fontTQFont
    onlyFixedbool0
    -

  • -
  • setSizeIsRelative (relative) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    relativeTQButton.ToggleState
    -

  • -
  • sizeIsRelative () -
    -
    returns (TQButton.ToggleState)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KFontRequester.html b/python/pykde/doc/classref/kdeui/KFontRequester.html deleted file mode 100644 index 45f32d32..00000000 --- a/python/pykde/doc/classref/kdeui/KFontRequester.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - class KFontRequester - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KFontRequester


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKFontRequester
InheritsTQWidget
-

methods

    -
  • KFontRequester (parent = 0, name = 0, onlyFixed = 0) -
    - -
    returns a KFontRequester instance
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    onlyFixedbool0
    -

  • -
  • button () -
    - -
    returns (TQPushButton)
    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 (TQFont)
    In versions KDE 3.2.0 and above only

  • -
  • fontSelected (font) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    fontTQFont
    -

  • -
  • isFixedOnly () -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only

  • -
  • label () -
    - -
    returns (TQLabel)
    In versions KDE 3.2.0 and above only

  • -
  • sampleText () -
    - -
    returns (TQString)
    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
    fontTQFont
    onlyFixedbool0
    -

  • -
  • setSampleText (text) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • setTitle (title) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    titleTQString
    -

  • -
  • setToolTip () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
  • title () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KFontSizeAction.html b/python/pykde/doc/classref/kdeui/KFontSizeAction.html deleted file mode 100644 index b50d0dd1..00000000 --- a/python/pykde/doc/classref/kdeui/KFontSizeAction.html +++ /dev/null @@ -1,263 +0,0 @@ - - - - - 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
    a0TQString
    a1KShortcutKShortcut ()
    a2TQObject0
    a3char0
    -

  • -
  • KFontSizeAction (a0, a1, slot, a4, a5 = 0) -
    - -
    returns a KFontSizeAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1KShortcut
    slotSLOT (Python callable)
    a4TQObject
    a5char0
    -

  • -
  • KFontSizeAction (text, pix, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KFontSizeAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQString
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • KFontSizeAction (text, pix, cut, slot, parent, name = 0) -
    - -
    returns a KFontSizeAction instance
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KFontSizeAction (text, pix, cut, slot, parent, name = 0) -
    - -
    returns a KFontSizeAction instance
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KFontSizeAction (parent = 0, name = 0) -
    - -
    returns a KFontSizeAction instance
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • KFontSizeAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) -
    - -
    returns a KFontSizeAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQIconSet
    a2KShortcutKShortcut ()
    a3TQObject0
    a4char0
    -

  • -
  • KFontSizeAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) -
    - -
    returns a KFontSizeAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2KShortcutKShortcut ()
    a3TQObject0
    a4char0
    -

  • -
  • KFontSizeAction (a0, a1, a2, slot, a5, a6 = 0) -
    - -
    returns a KFontSizeAction instance
    In versions less than KDE 3.2.0 only
    - - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQIconSet
    a2KShortcut
    slotSLOT (Python callable)
    a5TQObject
    a6char0
    -

  • -
  • KFontSizeAction (a0, a1, a2, slot, a5, a6 = 0) -
    - -
    returns a KFontSizeAction instance
    In versions less than KDE 3.2.0 only
    - - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2KShortcut
    slotSLOT (Python callable)
    a5TQObject
    a6char0
    -

  • -
  • KFontSizeAction (a0 = 0, a1 = 0) -
    - -
    returns a KFontSizeAction instance
    In versions less than KDE 3.2.0 only
    - - -
    ArgumentTypeDefault
    a0TQObject0
    a1char0
    -

  • -
  • KFontSizeAction (text, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KFontSizeAction instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    textTQString
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • KFontSizeAction (text, cut, slot, parent, name = 0) -
    - -
    returns a KFontSizeAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KFontSizeAction (text, pix, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KFontSizeAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQIconSet
    cutKShortcutKShortcut ()
    parentTQObject0
    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
    a0TQString
    -

  • -
  • 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
    a0TQString
    -

  • -
  • slotActivated () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KGradientSelector.html b/python/pykde/doc/classref/kdeui/KGradientSelector.html deleted file mode 100644 index 73896159..00000000 --- a/python/pykde/doc/classref/kdeui/KGradientSelector.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    -

  • -
  • KGradientSelector (o, parent = 0, name = 0) -
    -
    returns a KGradientSelector instance
    - - - -
    ArgumentTypeDefault
    oOrientation
    parentTQWidget0
    namechar0
    -

  • -
  • drawContents (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQPainter
    -

  • -
  • firstColor () -
    -
    returns (TQColor)

  • -
  • firstText () -
    -
    returns (TQString)

  • -
  • minimumSize () -
    -
    returns (TQSize)

  • -
  • secondColor () -
    -
    returns (TQColor)

  • -
  • secondText () -
    -
    returns (TQString)

  • -
  • setColors (col1, col2) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    col1TQColor
    col2TQColor
    -

  • -
  • setFirstColor (col) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    colTQColor
    -

  • -
  • setFirstText (t) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    tTQString
    -

  • -
  • setSecondColor (col) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    colTQColor
    -

  • -
  • setSecondText (t) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    tTQString
    -

  • -
  • setText (t1, t2) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    t1TQString
    t2TQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KGuiItem.html b/python/pykde/doc/classref/kdeui/KGuiItem.html deleted file mode 100644 index e5c7a8df..00000000 --- a/python/pykde/doc/classref/kdeui/KGuiItem.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - 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 = TQString .null, toolTip = TQString .null, whatsThis = TQString .null) -
    -
    returns a KGuiItem instance
    - - - - -
    ArgumentTypeDefault
    textTQString
    iconNameTQStringTQString .null
    toolTipTQStringTQString .null
    whatsThisTQStringTQString .null
    -

  • -
  • KGuiItem (text, iconSet, toolTip = TQString .null, whatsThis = TQString .null) -
    -
    returns a KGuiItem instance
    - - - - -
    ArgumentTypeDefault
    textTQString
    iconSetTQIconSet
    toolTipTQStringTQString .null
    whatsThisTQStringTQString .null
    -

  • -
  • KGuiItem (rhs) -
    -
    returns a KGuiItem instance
    - -
    ArgumentTypeDefault
    rhsKGuiItem
    -

  • -
  • hasIcon () -
    -
    returns (bool)

  • -
  • hasIconSet () -
    -
    returns (bool)

  • -
  • iconName () -
    -
    returns (TQString)

  • -
  • iconSet (a0, size = 0, instance = KGlobal .instance ()) -
    -
    returns (TQIconSet)
    - - - -
    ArgumentTypeDefault
    a0KIcon.Group
    sizeint0
    instanceKInstanceKGlobal .instance ()
    -

  • -
  • iconSet () -
    -
    returns (TQIconSet)

  • -
  • isEnabled () -
    -
    returns (bool)

  • -
  • plainText () -
    -
    returns (TQString)

  • -
  • setEnabled (enable) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    enablebool
    -

  • -
  • setIconName (iconName) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iconNameTQString
    -

  • -
  • setIconSet (iconset) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iconsetTQIconSet
    -

  • -
  • setText (text) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • setToolTip (tooltip) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    tooltipTQString
    -

  • -
  • setWhatsThis (whatsThis) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    whatsThisTQString
    -

  • -
  • text () -
    -
    returns (TQString)

  • -
  • toolTip () -
    -
    returns (TQString)

  • -
  • whatsThis () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KHSSelector.html b/python/pykde/doc/classref/kdeui/KHSSelector.html deleted file mode 100644 index f0b6e52b..00000000 --- a/python/pykde/doc/classref/kdeui/KHSSelector.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    -

  • -
  • drawContents (painter) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    painterTQPainter
    -

  • -
  • drawPalette (pixmap) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pixmapTQPixmap
    -

  • -
  • resizeEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KHelpMenu.html b/python/pykde/doc/classref/kdeui/KHelpMenu.html deleted file mode 100644 index 24363fc5..00000000 --- a/python/pykde/doc/classref/kdeui/KHelpMenu.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - class KHelpMenu - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KHelpMenu


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKHelpMenu
InheritsTQObject
-

enums

    -
  • MenuId = {menuHelpContents, menuWhatsThis, menuAboutApp, menuAboutKDE, menuReportBug -}
-

methods

    -
  • KHelpMenu (parent = 0, aboutAppText = TQString .null, showWhatsThis = 1) -
    -
    returns a KHelpMenu instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    aboutAppTextTQStringTQString .null
    showWhatsThisbool1
    -

  • -
  • KHelpMenu (parent, aboutData, showWhatsThis = 1, actions = 0) -
    -
    returns a KHelpMenu instance
    - - - - -
    ArgumentTypeDefault
    parentTQWidget
    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/python/pykde/doc/classref/kdeui/KHistoryCombo.html b/python/pykde/doc/classref/kdeui/KHistoryCombo.html deleted file mode 100644 index a0fa641d..00000000 --- a/python/pykde/doc/classref/kdeui/KHistoryCombo.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    -

  • -
  • KHistoryCombo (useCompletion, parent = 0, name = 0) -
    -
    returns a KHistoryCombo instance
    - - - -
    ArgumentTypeDefault
    useCompletionbool
    parentTQWidget0
    namechar0
    -

  • -
  • addToHistory (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemTQString
    -

  • -
  • clearHistory () -
    -
    returns nothing

  • -
  • cleared () -
    -
    returns nothing

  • -
  • historyItems () -
    -
    returns (TQStringList)

  • -
  • insertItems (items) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemsTQStringList
    -

  • -
  • keyPressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQKeyEvent
    -

  • -
  • pixmapProvider () -
    -
    returns (KPixmapProvider)

  • -
  • removeFromHistory (item) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    itemTQString
    -

  • -
  • reset () -
    -
    returns nothing

  • -
  • setHistoryItems (items) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemsTQStringList
    -

  • -
  • setHistoryItems (items, setCompletionList) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    itemsTQStringList
    setCompletionListbool
    -

  • -
  • setPixmapProvider (prov) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    provKPixmapProvider
    -

  • -
  • useCompletion () -
    -
    returns (bool)

  • -
  • wheelEvent (ev) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    evTQWheelEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KIconView.html b/python/pykde/doc/classref/kdeui/KIconView.html deleted file mode 100644 index 69b01f68..00000000 --- a/python/pykde/doc/classref/kdeui/KIconView.html +++ /dev/null @@ -1,213 +0,0 @@ - - - - - class KIconView - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KIconView


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKIconView
InheritsTQIconView
-

enums

    -
  • Mode = {Execute, Select -}
-

methods

    -
  • KIconView (parent = 0, name = 0, f = 0) -
    -
    returns a KIconView instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    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
    eTQDragEnterEvent
    -

  • -
  • contentsDragLeaveEvent (e) -
    - -
    returns nothing
    In versions KDE 3.5.0 and above only
    - -
    ArgumentTypeDefault
    eTQDragLeaveEvent
    -

  • -
  • contentsDragMoveEvent (e) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    eTQDragMoveEvent
    -

  • -
  • contentsDropEvent (e) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    eTQDropEvent
    -

  • -
  • contentsMouseDoubleClickEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • contentsMousePressEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • contentsMouseReleaseEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • doubleClicked (item, pos) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    itemTQIconViewItem
    posTQPoint
    -

  • -
  • emitExecute (item, pos) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    itemTQIconViewItem
    posTQPoint
    -

  • -
  • executed (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemTQIconViewItem
    -

  • -
  • executed (item, pos) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    itemTQIconViewItem
    posTQPoint
    -

  • -
  • focusOutEvent (fe) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    feTQFocusEvent
    -

  • -
  • held (item) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    itemTQIconViewItem
    -

  • -
  • iconTextHeight () -
    - -
    returns (int)
    In versions KDE 3.3.0 and above only

  • -
  • leaveEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQEvent
    -

  • -
  • mode () -
    -
    returns (Mode)

  • -
  • setFont (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQFont
    -

  • -
  • 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
    itemTQIconViewItem
    -

  • -
  • slotOnViewport () -
    -
    returns nothing

  • -
  • slotSettingsChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • takeItem (item) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    itemTQIconViewItem
    -

  • -
  • updateDragHoldItem (e) -
    - -
    returns nothing
    In versions KDE 3.5.0 and above only
    - -
    ArgumentTypeDefault
    eTQDropEvent
    -

  • -
  • wheelEvent (e) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    eTQWheelEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KIconViewItem.html b/python/pykde/doc/classref/kdeui/KIconViewItem.html deleted file mode 100644 index d01e86cd..00000000 --- a/python/pykde/doc/classref/kdeui/KIconViewItem.html +++ /dev/null @@ -1,150 +0,0 @@ - - - - - class KIconViewItem - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KIconViewItem


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKIconViewItem
InheritsTQIconViewItem
-

methods

    -
  • KIconViewItem (parent) -
    -
    returns a KIconViewItem instance
    - -
    ArgumentTypeDefault
    parentTQIconView
    -

  • -
  • KIconViewItem (parent, after) -
    -
    returns a KIconViewItem instance
    - - -
    ArgumentTypeDefault
    parentTQIconView
    afterTQIconViewItem
    -

  • -
  • KIconViewItem (parent, text) -
    -
    returns a KIconViewItem instance
    - - -
    ArgumentTypeDefault
    parentTQIconView
    textTQString
    -

  • -
  • KIconViewItem (parent, after, text) -
    -
    returns a KIconViewItem instance
    - - - -
    ArgumentTypeDefault
    parentTQIconView
    afterTQIconViewItem
    textTQString
    -

  • -
  • KIconViewItem (parent, text, icon) -
    -
    returns a KIconViewItem instance
    - - - -
    ArgumentTypeDefault
    parentTQIconView
    textTQString
    iconTQPixmap
    -

  • -
  • KIconViewItem (parent, after, text, icon) -
    -
    returns a KIconViewItem instance
    - - - - -
    ArgumentTypeDefault
    parentTQIconView
    afterTQIconViewItem
    textTQString
    iconTQPixmap
    -

  • -
  • KIconViewItem (parent, text, picture) -
    -
    returns a KIconViewItem instance
    - - - -
    ArgumentTypeDefault
    parentTQIconView
    textTQString
    pictureTQPicture
    -

  • -
  • KIconViewItem (parent, after, text, picture) -
    -
    returns a KIconViewItem instance
    - - - - -
    ArgumentTypeDefault
    parentTQIconView
    afterTQIconViewItem
    textTQString
    pictureTQPicture
    -

  • -
  • calcRect (text_ = TQString .null) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    text_TQStringTQString .null
    -

  • -
  • init () -
    -
    returns nothing

  • -
  • paintItem (p, c) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    pTQPainter
    cTQColorGroup
    -

  • -
  • paintPixmap (p, c) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    pTQPainter
    cTQColorGroup
    -

  • -
  • paintText (p, c) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    pTQPainter
    cTQColorGroup
    -

  • -
  • pixmapSize () -
    - -
    returns (TQSize)
    In versions KDE 3.3.0 and above only

  • -
  • setPixmapSize (size) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    sizeTQSize
    -

  • -
  • wordWrap () -
    - -
    returns (KWordWrap)
    In versions KDE 3.2.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KIconViewSearchLine.html b/python/pykde/doc/classref/kdeui/KIconViewSearchLine.html deleted file mode 100644 index 935e475b..00000000 --- a/python/pykde/doc/classref/kdeui/KIconViewSearchLine.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - 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
    parentTQWidget0
    iconViewTQIconView0
    namechar0
    -

  • -
  • KIconViewSearchLine (parent, name) -
    - -
    returns a KIconViewSearchLine instance
    In versions KDE 3.4.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQWidget
    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
    itemTQIconViewItem
    -

  • -
  • iconView () -
    - -
    returns (TQIconView)
    In versions KDE 3.4.0 and above only

  • -
  • init (iconView = 0) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    iconViewTQIconView0
    -

  • -
  • itemMatches (item, s) -
    - -
    returns (bool)
    In versions KDE 3.4.0 and above only
    - - -
    ArgumentTypeDefault
    itemTQIconViewItem
    sTQString
    -

  • -
  • queueSearch (s) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • 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
    ivTQIconView
    -

  • -
  • showItem (item) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    itemTQIconViewItem
    -

  • -
  • updateSearch (s = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    sTQStringTQString .null
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KInputDialog.html b/python/pykde/doc/classref/kdeui/KInputDialog.html deleted file mode 100644 index 2a81933c..00000000 --- a/python/pykde/doc/classref/kdeui/KInputDialog.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - 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
    captionTQString
    labelTQString
    valueTQString
    parentTQWidget
    namechar
    validatorTQValidator
    maskTQString
    -

  • -
  • KInputDialog (caption, label, value, parent, name) -
    - -
    returns a KInputDialog instance
    In versions KDE 3.3.0 and above only
    - - - - - -
    ArgumentTypeDefault
    captionTQString
    labelTQString
    valueTQString
    parentTQWidget
    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
    captionTQString
    labelTQString
    valueint
    minValueint
    maxValueint
    stepint
    baseint
    parentTQWidget
    namechar
    -

  • -
  • KInputDialog (caption, label, list, current, editable, parent, name) -
    - -
    returns a KInputDialog instance
    In versions KDE 3.2.0 and above only
    - - - - - - - -
    ArgumentTypeDefault
    captionTQString
    labelTQString
    listTQStringList
    currentint
    editablebool
    parentTQWidget
    namechar
    -

  • -
  • KInputDialog (caption, label, list, select, editable, parent, name) -
    - -
    returns a KInputDialog instance
    In versions KDE 3.2.0 and above only
    - - - - - - - -
    ArgumentTypeDefault
    captionTQString
    labelTQString
    listTQStringList
    selectTQStringList
    editablebool
    parentTQWidget
    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
    captionTQString
    labelTQString
    valuedouble0
    minValuedouble-2147483647
    maxValuedouble2147483647
    stepdouble0.1
    decimalsint1
    parentTQWidget0
    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
    captionTQString
    labelTQString
    valueint0
    minValueint-2147483647
    maxValueint2147483647
    stepint1
    baseint10
    parentTQWidget0
    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 (TQString) ok (bool)
    In versions KDE 3.2.0 and above only
    static
    - - - - - - - -
    ArgumentTypeDefault
    captionTQString
    labelTQString
    listTQStringList
    currentint0
    editablebool0
    parentTQWidget0
    namechar0
    -

  • -
  • getItemList (caption, label, list = TQStringList (), select = TQStringList (), multiple = 0, parent = 0, name = 0) -
    - - -
    returns (TQStringList) ok (bool)
    In versions KDE 3.2.0 and above only
    static
    - - - - - - - -
    ArgumentTypeDefault
    captionTQString
    labelTQString
    listTQStringListTQStringList ()
    selectTQStringListTQStringList ()
    multiplebool0
    parentTQWidget0
    namechar0
    -

  • -
  • getMultiLineText (caption, label, value = TQString .null, parent = 0, name = 0) -
    - - -
    returns (TQString) ok (bool)
    In versions KDE 3.3.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    captionTQString
    labelTQString
    valueTQStringTQString .null
    parentTQWidget0
    namechar0
    -

  • -
  • getText (caption, label, value = TQString .null, parent = 0, name = 0, validator = 0, mask = TQString .null) -
    - - -
    returns (TQString) ok (bool)
    In versions KDE 3.2.0 and above only
    static
    - - - - - - - -
    ArgumentTypeDefault
    captionTQString
    labelTQString
    valueTQStringTQString .null
    parentTQWidget0
    namechar0
    validatorTQValidator0
    maskTQStringTQString .null
    -

  • -
  • text (caption, label, value = TQString .null, parent = 0, name = 0, validator = 0, mask = TQString .null, whatsThis = TQString .null) -
    - - -
    returns (TQString) ok (bool)
    In versions KDE 3.3.0 and above only
    static
    - - - - - - - - -
    ArgumentTypeDefault
    captionTQString
    labelTQString
    valueTQStringTQString .null
    parentTQWidget0
    namechar0
    validatorTQValidator0
    maskTQStringTQString .null
    whatsThisTQStringTQString .null
    -

  • -
  • ~KInputDialog () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KIntNumInput.html b/python/pykde/doc/classref/kdeui/KIntNumInput.html deleted file mode 100644 index 2f54754e..00000000 --- a/python/pykde/doc/classref/kdeui/KIntNumInput.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    -

  • -
  • KIntNumInput (value, parent = 0, base = 10, name = 0) -
    -
    returns a KIntNumInput instance
    - - - - -
    ArgumentTypeDefault
    valueint
    parentTQWidget0
    baseint10
    namechar0
    -

  • -
  • KIntNumInput (below, value, parent = 0, base = 10, name = 0) -
    -
    returns a KIntNumInput instance
    - - - - - -
    ArgumentTypeDefault
    belowKNumInput
    valueint
    parentTQWidget0
    baseint10
    namechar0
    -

  • -
  • doLayout () -
    -
    returns nothing

  • -
  • maxValue () -
    -
    returns (int)

  • -
  • minValue () -
    -
    returns (int)

  • -
  • minimumSizeHint () -
    -
    returns (TQSize)

  • -
  • prefix () -
    -
    returns (TQString)

  • -
  • 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
    a0TQResizeEvent
    -

  • -
  • setEditFocus (mark = 1) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    markbool1
    -

  • -
  • setLabel (label, a = AlignLeft | AlignTop) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    labelTQString
    aintAlignLeft | AlignTop
    -

  • -
  • setMaxValue (max) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    maxint
    -

  • -
  • setMinValue (min) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    minint
    -

  • -
  • setPrefix (prefix) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    prefixTQString
    -

  • -
  • 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
    textTQString
    -

  • -
  • setSuffix (suffix) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    suffixTQString
    -

  • -
  • setValue (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • specialValueText () -
    -
    returns (TQString)

  • -
  • suffix () -
    -
    returns (TQString)

  • -
  • value () -
    -
    returns (int)

  • -
  • valueChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KIntSpinBox.html b/python/pykde/doc/classref/kdeui/KIntSpinBox.html deleted file mode 100644 index 0d9f8e56..00000000 --- a/python/pykde/doc/classref/kdeui/KIntSpinBox.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - class KIntSpinBox - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KIntSpinBox


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKIntSpinBox
InheritsTQSpinBox
-

methods

    -
  • KIntSpinBox (parent = 0, name = 0) -
    -
    returns a KIntSpinBox instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KIntSpinBox (lower, upper, step, value, base = 10, parent = 0, name = 0) -
    -
    returns a KIntSpinBox instance
    - - - - - - - -
    ArgumentTypeDefault
    lowerint
    upperint
    stepint
    valueint
    baseint10
    parentTQWidget0
    namechar0
    -

  • -
  • base () -
    -
    returns (int)

  • -
  • mapTextToValue () -
    Not Implemented
    -

  • -
  • mapValueToText (a0) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • setBase (base) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    baseint
    -

  • -
  • setEditFocus (mark) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    markbool
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KIntValidator.html b/python/pykde/doc/classref/kdeui/KIntValidator.html deleted file mode 100644 index 350b5d21..00000000 --- a/python/pykde/doc/classref/kdeui/KIntValidator.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - class KIntValidator - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KIntValidator


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKIntValidator
InheritsTQValidator
-

methods

    -
  • KIntValidator (parent, base = 10, name = 0) -
    -
    returns a KIntValidator instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget
    baseint10
    namechar0
    -

  • -
  • KIntValidator (bottom, top, parent, base = 10, name = 0) -
    -
    returns a KIntValidator instance
    - - - - - -
    ArgumentTypeDefault
    bottomint
    topint
    parentTQWidget
    baseint10
    namechar0
    -

  • -
  • base () -
    -
    returns (int)

  • -
  • bottom () -
    -
    returns (int)

  • -
  • fixup (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setBase (base) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    baseint
    -

  • -
  • setRange (bottom, top) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    bottomint
    topint
    -

  • -
  • top () -
    -
    returns (int)

  • -
  • validate (a0) -
    -
    returns (State) a1 (int)
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KJanusWidget.html b/python/pykde/doc/classref/kdeui/KJanusWidget.html deleted file mode 100644 index bc025d56..00000000 --- a/python/pykde/doc/classref/kdeui/KJanusWidget.html +++ /dev/null @@ -1,288 +0,0 @@ - - - - - class KJanusWidget - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KJanusWidget


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKJanusWidget
InheritsTQWidget
-

enums

    -
  • Face = {TreeList, Tabbed, Plain, Swallow, IconList -}
-

methods

    -
  • FindParent () -
    -
    returns (TQWidget)

  • -
  • InsertTreeListItem (items, pixmap, page) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    itemsTQStringList
    pixmapTQPixmap
    pageTQFrame
    -

  • -
  • KJanusWidget (parent = 0, name = 0, face = Plain) -
    -
    returns a KJanusWidget instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    faceintPlain
    -

  • -
  • aboutToShowPage (page) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pageTQWidget
    -

  • -
  • activePageIndex () -
    -
    returns (int)

  • -
  • addButtonBelowList (text, recv, slot) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    textTQString
    recvTQObject
    slotchar
    -

  • -
  • addButtonBelowList (guiitem, recv, slot) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    guiitemKGuiItem
    recvTQObject
    slotchar
    -

  • -
  • addGridPage (n, dir, itemName, header = TQString .null, pixmap = TQPixmap ()) -
    -
    returns (TQGrid)
    - - - - - -
    ArgumentTypeDefault
    nint
    dirQt.Orientation
    itemNameTQString
    headerTQStringTQString .null
    pixmapTQPixmapTQPixmap ()
    -

  • -
  • addGridPage (n, dir, items, header = TQString .null, pixmap = TQPixmap ()) -
    -
    returns (TQGrid)
    - - - - - -
    ArgumentTypeDefault
    nint
    dirQt.Orientation
    itemsTQStringList
    headerTQStringTQString .null
    pixmapTQPixmapTQPixmap ()
    -

  • -
  • addHBoxPage (itemName, header = TQString .null, pixmap = TQPixmap ()) -
    -
    returns (TQHBox)
    - - - -
    ArgumentTypeDefault
    itemNameTQString
    headerTQStringTQString .null
    pixmapTQPixmapTQPixmap ()
    -

  • -
  • addHBoxPage (items, header = TQString .null, pixmap = TQPixmap ()) -
    -
    returns (TQHBox)
    - - - -
    ArgumentTypeDefault
    itemsTQStringList
    headerTQStringTQString .null
    pixmapTQPixmapTQPixmap ()
    -

  • -
  • addPage (item, header = TQString .null, pixmap = TQPixmap ()) -
    -
    returns (TQFrame)
    - - - -
    ArgumentTypeDefault
    itemTQString
    headerTQStringTQString .null
    pixmapTQPixmapTQPixmap ()
    -

  • -
  • addPage (items, header = TQString .null, pixmap = TQPixmap ()) -
    -
    returns (TQFrame)
    - - - -
    ArgumentTypeDefault
    itemsTQStringList
    headerTQStringTQString .null
    pixmapTQPixmapTQPixmap ()
    -

  • -
  • addPageWidget (page, items, header, pixmap) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    pageTQFrame
    itemsTQStringList
    headerTQString
    pixmapTQPixmap
    -

  • -
  • addVBoxPage (item, header = TQString .null, pixmap = TQPixmap ()) -
    -
    returns (TQVBox)
    - - - -
    ArgumentTypeDefault
    itemTQString
    headerTQStringTQString .null
    pixmapTQPixmapTQPixmap ()
    -

  • -
  • addVBoxPage (items, header = TQString .null, pixmap = TQPixmap ()) -
    -
    returns (TQVBox)
    - - - -
    ArgumentTypeDefault
    itemsTQStringList
    headerTQStringTQString .null
    pixmapTQPixmapTQPixmap ()
    -

  • -
  • addWidgetBelowList (widget) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    widgetTQWidget
    -

  • -
  • eventFilter (o, e) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    oTQObject
    eTQEvent
    -

  • -
  • face () -
    -
    returns (int)

  • -
  • isValid () -
    -
    returns (bool)

  • -
  • minimumSizeHint () -
    -
    returns (TQSize)

  • -
  • pageIndex (widget) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    widgetTQWidget
    -

  • -
  • pageTitle (index) -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    indexint
    -

  • -
  • pageWidget (index) -
    - -
    returns (TQWidget)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    indexint
    -

  • -
  • plainPage () -
    -
    returns (TQFrame)

  • -
  • removePage (page) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    pageTQWidget
    -

  • -
  • setFocus () -
    -
    returns nothing

  • -
  • setFolderIcon (path, pixmap) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    pathTQStringList
    pixmapTQPixmap
    -

  • -
  • setIconListAllVisible (state) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    statebool
    -

  • -
  • setRootIsDecorated (state) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    statebool
    -

  • -
  • setShowIconsInTreeList (state) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    statebool
    -

  • -
  • setSwallowedWidget (widget) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    widgetTQWidget
    -

  • -
  • setTreeListAutoResize (state) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    statebool
    -

  • -
  • showEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQShowEvent
    -

  • -
  • showPage (index) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    indexint
    -

  • -
  • showPage (w) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    wTQWidget
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • unfoldTreeList (persist = 0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    persistbool0
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KKeyButton.html b/python/pykde/doc/classref/kdeui/KKeyButton.html deleted file mode 100644 index 860e8eb5..00000000 --- a/python/pykde/doc/classref/kdeui/KKeyButton.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - class KKeyButton - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KKeyButton


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKKeyButton
InheritsTQPushButton
-

methods

    -
  • KKeyButton (parent = 0, name = 0) -
    -
    returns a KKeyButton instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • captureShortcut () -
    -
    returns nothing

  • -
  • capturedShortcut (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KShortcut
    -

  • -
  • drawButton (_painter) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _painterTQPainter
    -

  • -
  • 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
    textTQString
    -

  • -
  • shortcut () -
    -
    returns (KShortcut)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KKeyChooser.html b/python/pykde/doc/classref/kdeui/KKeyChooser.html deleted file mode 100644 index bd232b9b..00000000 --- a/python/pykde/doc/classref/kdeui/KKeyChooser.html +++ /dev/null @@ -1,280 +0,0 @@ - - - - - class KKeyChooser - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KKeyChooser


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKKeyChooser
InheritsTQWidget
-

enums

    -
  • ActionType = {Application, ApplicationGlobal, Standard, Global -}
-

methods

    -
  • KKeyChooser (parent, type = Application, bAllowLetterShortcuts = 1) -
    -
    returns a KKeyChooser instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget
    typeKKeyChooser.ActionTypeApplication
    bAllowLetterShortcutsbool1
    -

  • -
  • KKeyChooser (coll, parent, bAllowLetterShortcuts = 1) -
    -
    returns a KKeyChooser instance
    - - - -
    ArgumentTypeDefault
    collKActionCollection
    parentTQWidget
    bAllowLetterShortcutsbool1
    -

  • -
  • KKeyChooser (actions, parent, bAllowLetterShortcuts = 1) -
    -
    returns a KKeyChooser instance
    - - - -
    ArgumentTypeDefault
    actionsKAccel
    parentTQWidget
    bAllowLetterShortcutsbool1
    -

  • -
  • KKeyChooser (actions, parent) -
    -
    returns a KKeyChooser instance
    - - -
    ArgumentTypeDefault
    actionsKGlobalAccel
    parentTQWidget
    -

  • -
  • KKeyChooser (a0, parent, type = Application, bAllowLetterShortcuts = 1) -
    -
    returns a KKeyChooser instance
    - - - - -
    ArgumentTypeDefault
    a0KShortcutList
    parentTQWidget
    typeKKeyChooser.ActionTypeApplication
    bAllowLetterShortcutsbool1
    -

  • -
  • KKeyChooser (actions, parent, bCheckAgainstStdKeys, bAllowLetterShortcuts, bAllowWinKey = 0) -
    -
    returns a KKeyChooser instance
    - - - - - -
    ArgumentTypeDefault
    actionsKAccel
    parentTQWidget
    bCheckAgainstStdKeysbool
    bAllowLetterShortcutsbool
    bAllowWinKeybool0
    -

  • -
  • KKeyChooser (actions, parent, bCheckAgainstStdKeys, bAllowLetterShortcuts, bAllowWinKey = 0) -
    -
    returns a KKeyChooser instance
    - - - - - -
    ArgumentTypeDefault
    actionsKGlobalAccel
    parentTQWidget
    bCheckAgainstStdKeysbool
    bAllowLetterShortcutsbool
    bAllowWinKeybool0
    -

  • -
  • _warning (seq, sAction, sTitle) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    seqKKeySequence
    sActionTQString
    sTitleTQString
    -

  • -
  • allDefault () -
    -
    returns nothing

  • -
  • buildListView (iList, title = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    iListuint
    titleTQStringTQString .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
    parentTQWidget
    -

  • -
  • checkStandardShortcutsConflict (cut, warnUser, parent) -
    - - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    cutKShortcut
    warnUserbool
    parentTQWidget
    -

  • -
  • commitChanges () -
    -
    returns nothing

  • -
  • fontChange (_font) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _fontTQFont
    -

  • -
  • 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
    titleTQString
    -

  • -
  • 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
    ipoQListViewItemTQListViewItem
    ipoQPointTQPoint
    cint
    -

  • -
  • slotListItemSelected (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemTQListViewItem
    -

  • -
  • 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
    sConfigGroupTQString
    pConfigKConfigBase
    bClearUnsetbool
    -

  • -
  • updateButtons () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KKeyDialog.html b/python/pykde/doc/classref/kdeui/KKeyDialog.html deleted file mode 100644 index 9e3bb06a..00000000 --- a/python/pykde/doc/classref/kdeui/KKeyDialog.html +++ /dev/null @@ -1,170 +0,0 @@ - - - - - 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
    parentTQWidget0
    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
    parentTQWidget0
    namechar0
    -

  • -
  • commitChanges () -
    -
    returns nothing

  • -
  • configure (bSaveSettings = 1) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    bSaveSettingsbool1
    -

  • -
  • configure (coll, parent = 0, bSaveSettings = 1) -
    - -
    returns (int)
    static
    - - - -
    ArgumentTypeDefault
    collKActionCollection
    parentTQWidget0
    bSaveSettingsbool1
    -

  • -
  • configure (keys, parent = 0, bSaveSettings = 1) -
    - -
    returns (int)
    static
    - - - -
    ArgumentTypeDefault
    keysKAccel
    parentTQWidget0
    bSaveSettingsbool1
    -

  • -
  • configure (keys, parent = 0, bSaveSettings = 1) -
    - -
    returns (int)
    static
    - - - -
    ArgumentTypeDefault
    keysKGlobalAccel
    parentTQWidget0
    bSaveSettingsbool1
    -

  • -
  • configure (coll, bAllowLetterShortcuts, parent = 0, bSaveSettings = 1) -
    - - -
    returns (int)
    In versions KDE 3.1.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    collKActionCollection
    bAllowLetterShortcutsbool
    parentTQWidget0
    bSaveSettingsbool1
    -

  • -
  • configure (keys, bAllowLetterShortcuts, parent = 0, bSaveSettings = 1) -
    - - -
    returns (int)
    In versions KDE 3.1.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    keysKAccel
    bAllowLetterShortcutsbool
    parentTQWidget0
    bSaveSettingsbool1
    -

  • -
  • configure (keys, bAllowLetterShortcuts, parent = 0, bSaveSettings = 1) -
    - - -
    returns (int)
    In versions KDE 3.1.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    keysKGlobalAccel
    bAllowLetterShortcutsbool
    parentTQWidget0
    bSaveSettingsbool1
    -

  • -
  • configureKeys (keys, save_settings = 1, parent = 0) -
    - -
    returns (int)
    static
    - - - -
    ArgumentTypeDefault
    keysKAccel
    save_settingsbool1
    parentTQWidget0
    -

  • -
  • configureKeys (keys, save_settings = 1, parent = 0) -
    - -
    returns (int)
    static
    - - - -
    ArgumentTypeDefault
    keysKGlobalAccel
    save_settingsbool1
    parentTQWidget0
    -

  • -
  • configureKeys (coll, a0, save_settings = 1, parent = 0) -
    - -
    returns (int)
    static
    - - - - -
    ArgumentTypeDefault
    collKActionCollection
    a0TQString
    save_settingsbool1
    parentTQWidget0
    -

  • -
  • insert (a0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    a0KActionCollection
    -

  • -
  • insert (a0, title) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    a0KActionCollection
    titleTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KLanguageButton.html b/python/pykde/doc/classref/kdeui/KLanguageButton.html deleted file mode 100644 index 1feb0856..00000000 --- a/python/pykde/doc/classref/kdeui/KLanguageButton.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - class KLanguageButton - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KLanguageButton


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKLanguageButton
InheritsTQWidget
-

methods

    -
  • KLanguageButton (parent = 0, name = 0) -
    - -
    returns a KLanguageButton instance
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KLanguageButton (text, parent = 0, name = 0) -
    - -
    returns a KLanguageButton instance
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    textTQString
    parentTQWidget0
    namechar0
    -

  • -
  • activated (id) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    idTQString
    -

  • -
  • 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
    idTQString
    -

  • -
  • count () -
    - -
    returns (int)
    In versions KDE 3.3.0 and above only

  • -
  • current () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • highlighted (id) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    idTQString
    -

  • -
  • id (i) -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    iint
    -

  • -
  • insertItem (icon, text, id, submenu = TQString .null, index = -1) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - - - - -
    ArgumentTypeDefault
    iconTQIconSet
    textTQString
    idTQString
    submenuTQStringTQString .null
    indexint-1
    -

  • -
  • insertItem (text, id, submenu = TQString .null, index = -1) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - - - -
    ArgumentTypeDefault
    textTQString
    idTQString
    submenuTQStringTQString .null
    indexint-1
    -

  • -
  • insertLanguage (path, name, sub = TQString .null, submenu = TQString .null, index = -1) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - - - - -
    ArgumentTypeDefault
    pathTQString
    nameTQString
    subTQStringTQString .null
    submenuTQStringTQString .null
    indexint-1
    -

  • -
  • insertSeparator (submenu = TQString .null, index = -1) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    submenuTQStringTQString .null
    indexint-1
    -

  • -
  • insertSubmenu (icon, text, id, submenu = TQString .null, index = -1) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - - - - -
    ArgumentTypeDefault
    iconTQIconSet
    textTQString
    idTQString
    submenuTQStringTQString .null
    indexint-1
    -

  • -
  • insertSubmenu (text, id, submenu = TQString .null, index = -1) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - - - -
    ArgumentTypeDefault
    textTQString
    idTQString
    submenuTQStringTQString .null
    indexint-1
    -

  • -
  • setCurrentItem (id) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    idTQString
    -

  • -
  • setText (text) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KLed.html b/python/pykde/doc/classref/kdeui/KLed.html deleted file mode 100644 index 2cc553ec..00000000 --- a/python/pykde/doc/classref/kdeui/KLed.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - class KLed - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KLed


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKLed
InheritsTQWidget
-

enums

    -
  • Look = {Flat, Raised, Sunken -}
  • Shape = {Rectangular, Circular -}
  • State = {Off, On -}
-

methods

    -
  • KLed (parent = 0, name = 0) -
    -
    returns a KLed instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KLed (col, parent = 0, name = 0) -
    Not Implemented
    -

  • -
  • KLed (col, state, look, shape, parent = 0, name = 0) -
    -
    returns a KLed instance
    - - - - - - -
    ArgumentTypeDefault
    colTQColor
    stateKLed.State
    lookKLed.Look
    shapeKLed.Shape
    parentTQWidget0
    namechar0
    -

  • -
  • color () -
    -
    returns (TQColor)

  • -
  • darkFactor () -
    -
    returns (int)

  • -
  • ensureRoundLed () -
    - -
    returns (int)
    In versions KDE 3.3.0 and above only

  • -
  • look () -
    -
    returns (Look)

  • -
  • minimumSizeHint () -
    -
    returns (TQSize)

  • -
  • off () -
    -
    returns nothing

  • -
  • on () -
    -
    returns nothing

  • -
  • paintCachedPixmap () -
    - -
    returns (bool)
    In versions KDE 3.3.0 and above only

  • -
  • paintEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQPaintEvent
    -

  • -
  • paintFlat () -
    -
    returns nothing

  • -
  • paintRect () -
    -
    returns nothing

  • -
  • paintRectFrame (raised) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    raisedbool
    -

  • -
  • paintRound () -
    -
    returns nothing

  • -
  • paintSunken () -
    -
    returns nothing

  • -
  • setColor (color) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    colorTQColor
    -

  • -
  • 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 (TQSize)

  • -
  • state () -
    -
    returns (State)

  • -
  • toggle () -
    -
    returns nothing

  • -
  • toggleState () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KLineEdit.html b/python/pykde/doc/classref/kdeui/KLineEdit.html deleted file mode 100644 index 492d6379..00000000 --- a/python/pykde/doc/classref/kdeui/KLineEdit.html +++ /dev/null @@ -1,329 +0,0 @@ - - - - - class KLineEdit - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KLineEdit


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKLineEdit
InheritsTQLineEdit, KCompletionBase
-

methods

    -
  • KLineEdit (string, parent, name = 0) -
    -
    returns a KLineEdit instance
    - - - -
    ArgumentTypeDefault
    stringTQString
    parentTQWidget
    namechar0
    -

  • -
  • KLineEdit (parent = 0, name = 0) -
    -
    returns a KLineEdit instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • aboutToShowContextMenu (p) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pTQPopupMenu
    -

  • -
  • autoSuggest () -
    - -
    returns (bool)
    In versions KDE 3.4.0 and above only

  • -
  • clear () -
    -
    returns nothing

  • -
  • completion (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • completionBox (create) -
    -
    returns (KCompletionBox)
    - -
    ArgumentTypeDefault
    createbool
    -

  • -
  • completionBoxActivated (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • completionModeChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KGlobalSettings.Completion
    -

  • -
  • contextMenuEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.3.1 and above only
    - -
    ArgumentTypeDefault
    a0TQContextMenuEvent
    -

  • -
  • 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 (TQPopupMenu)

  • -
  • cursorAtEnd () -
    -
    returns nothing

  • -
  • dropEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDropEvent
    -

  • -
  • eventFilter (a0, a1) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    a0TQObject
    a1TQEvent
    -

  • -
  • focusInEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    a0TQFocusEvent
    -

  • -
  • isContextMenuEnabled () -
    -
    returns (bool)

  • -
  • isSqueezedTextEnabled () -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only

  • -
  • isURLDropsEnabled () -
    -
    returns (bool)

  • -
  • keyPressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQKeyEvent
    -

  • -
  • makeCompletion (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • mouseDoubleClickEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • mousePressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • originalText () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • resizeEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • returnPressed (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • rotateText (type) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    typeKCompletionBase.KeyBindingType
    -

  • -
  • setCompletedItems (items) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemsTQStringList
    -

  • -
  • setCompletedItems (items, autoSuggest) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    itemsTQStringList
    autoSuggestbool
    -

  • -
  • setCompletedText (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setCompletedText (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0TQString
    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
    textTQString
    -

  • -
  • setText (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • 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
    a0TQString
    -

  • -
  • textRotation (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KCompletionBase.KeyBindingType
    -

  • -
  • trapReturnKey () -
    -
    returns (bool)

  • -
  • userCancelled (cancelText) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    cancelTextTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KLineEditDlg.html b/python/pykde/doc/classref/kdeui/KLineEditDlg.html deleted file mode 100644 index 94775298..00000000 --- a/python/pykde/doc/classref/kdeui/KLineEditDlg.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - 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
    _textTQString
    _valueTQString
    parentTQWidget
    -

  • -
  • getText (text, value, parent, validator = 0) -
    - -
    returns (TQString) ok (bool)
    static
    - - - - -
    ArgumentTypeDefault
    textTQString
    valueTQString
    parentTQWidget
    validatorTQValidator0
    -

  • -
  • getText (caption, text, value = TQString .null, parent = 0, validator = 0) -
    - -
    returns (TQString) ok (bool)
    static
    - - - - - -
    ArgumentTypeDefault
    captionTQString
    textTQString
    valueTQStringTQString .null
    parentTQWidget0
    validatorTQValidator0
    -

  • -
  • lineEdit () -
    -
    returns (KLineEdit)

  • -
  • slotClear () -
    -
    returns nothing

  • -
  • slotTextChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • text () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KListAction.html b/python/pykde/doc/classref/kdeui/KListAction.html deleted file mode 100644 index 3d8a753a..00000000 --- a/python/pykde/doc/classref/kdeui/KListAction.html +++ /dev/null @@ -1,221 +0,0 @@ - - - - - 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
    a0TQString
    a1KShortcutKShortcut ()
    a2TQObject0
    a3char0
    -

  • -
  • KListAction (a0, a1, slot, a4, a5 = 0) -
    - -
    returns a KListAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1KShortcut
    slotSLOT (Python callable)
    a4TQObject
    a5char0
    -

  • -
  • KListAction (text, pix, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KListAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQString
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • KListAction (text, pix, cut, slot, parent, name = 0) -
    - -
    returns a KListAction instance
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KListAction (text, pix, cut, slot, parent, name = 0) -
    - -
    returns a KListAction instance
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KListAction (parent = 0, name = 0) -
    - -
    returns a KListAction instance
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • KListAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) -
    - -
    returns a KListAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQIconSet
    a2KShortcutKShortcut ()
    a3TQObject0
    a4char0
    -

  • -
  • KListAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) -
    - -
    returns a KListAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2KShortcutKShortcut ()
    a3TQObject0
    a4char0
    -

  • -
  • KListAction (a0, a1, a2, slot, a5, a6 = 0) -
    - -
    returns a KListAction instance
    In versions less than KDE 3.2.0 only
    - - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQIconSet
    a2KShortcut
    slotSLOT (Python callable)
    a5TQObject
    a6char0
    -

  • -
  • KListAction (a0, a1, a2, slot, a5, a6 = 0) -
    - -
    returns a KListAction instance
    In versions less than KDE 3.2.0 only
    - - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2KShortcut
    slotSLOT (Python callable)
    a5TQObject
    a6char0
    -

  • -
  • KListAction (a0 = 0, a1 = 0) -
    - -
    returns a KListAction instance
    In versions less than KDE 3.2.0 only
    - - -
    ArgumentTypeDefault
    a0TQObject0
    a1char0
    -

  • -
  • KListAction (text, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KListAction instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    textTQString
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • KListAction (text, cut, slot, parent, name = 0) -
    - -
    returns a KListAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KListAction (text, pix, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KListAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQIconSet
    cutKShortcutKShortcut ()
    parentTQObject0
    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 (TQString)
    In versions less than KDE 3.2.0 only

  • -
  • currentText () -
    - -
    returns (TQString)
    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/python/pykde/doc/classref/kdeui/KListBox.html b/python/pykde/doc/classref/kdeui/KListBox.html deleted file mode 100644 index edb74607..00000000 --- a/python/pykde/doc/classref/kdeui/KListBox.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - class KListBox - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KListBox


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKListBox
InheritsTQListBox
-

methods

    -
  • KListBox (parent = 0, name = 0, f = 0) -
    -
    returns a KListBox instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    fWFlags0
    -

  • -
  • contentsMouseDoubleClickEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • contentsMousePressEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • doubleClicked (item, pos) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    itemTQListBoxItem
    posTQPoint
    -

  • -
  • emitExecute (item, pos) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    itemTQListBoxItem
    posTQPoint
    -

  • -
  • executed (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemTQListBoxItem
    -

  • -
  • executed (item, pos) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    itemTQListBoxItem
    posTQPoint
    -

  • -
  • focusOutEvent (fe) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    feTQFocusEvent
    -

  • -
  • keyPressEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQKeyEvent
    -

  • -
  • leaveEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQEvent
    -

  • -
  • slotAutoSelect () -
    -
    returns nothing

  • -
  • slotOnItem (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemTQListBoxItem
    -

  • -
  • slotOnViewport () -
    -
    returns nothing

  • -
  • slotSettingsChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KListView.html b/python/pykde/doc/classref/kdeui/KListView.html deleted file mode 100644 index a3ad2b80..00000000 --- a/python/pykde/doc/classref/kdeui/KListView.html +++ /dev/null @@ -1,712 +0,0 @@ - - - - - class KListView - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KListView


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKListView
InheritsTQListView
-

enums

    -
  • SelectionModeExt = {Single, Multi, Extended, NoSelection, FileManager -}
-

methods

    -
  • KListView (parent = 0, name = 0) -
    -
    returns a KListView instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • aboutToMove () -
    -
    returns nothing

  • -
  • acceptDrag (event) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    eventTQDropEvent
    -

  • -
  • activateAutomaticSelection () -
    -
    returns nothing

  • -
  • addColumn (label, width = -1) -
    - -
    returns (int)
    In versions KDE 3.0.1 and above only
    - - -
    ArgumentTypeDefault
    labelTQString
    widthint-1
    -

  • -
  • addColumn (iconset, label, width = -1) -
    - -
    returns (int)
    In versions KDE 3.0.1 and above only
    - - - -
    ArgumentTypeDefault
    iconsetTQIconSet
    labelTQString
    widthint-1
    -

  • -
  • alternateBackground () -
    -
    returns (TQColor)

  • -
  • ascendingSort () -
    -
    returns (bool)

  • -
  • autoOpen () -
    -
    returns (bool)

  • -
  • automaticSelection () -
    -
    returns (bool)

  • -
  • below (rect, p) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    rectTQRect
    pTQPoint
    -

  • -
  • below (i, p) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    iTQListViewItem
    pTQPoint
    -

  • -
  • cleanDropVisualizer () -
    -
    returns nothing

  • -
  • cleanItemHighlighter () -
    -
    returns nothing

  • -
  • columnSorted () -
    -
    returns (int)

  • -
  • contentsDragEnterEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDragEnterEvent
    -

  • -
  • contentsDragLeaveEvent (event) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eventTQDragLeaveEvent
    -

  • -
  • contentsDragMoveEvent (event) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eventTQDragMoveEvent
    -

  • -
  • contentsDropEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDropEvent
    -

  • -
  • contentsMouseDoubleClickEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • contentsMouseMoveEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • contentsMousePressEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • contentsMouseReleaseEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • contextMenu (l, i, p) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    lKListView
    iTQListViewItem
    pTQPoint
    -

  • -
  • 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
    itemTQListViewItem
    rowint
    -

  • -
  • doubleClicked (item, pos, c) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    itemTQListViewItem
    posTQPoint
    cint
    -

  • -
  • doubleClicked (a0, a1, a2) -
    - -
    returns nothing
    In versions less than KDE 3.3.0 only
    - - - -
    ArgumentTypeDefault
    a0TQListViewItem
    a1TQPoint
    a2int
    -

  • -
  • dragEnabled () -
    -
    returns (bool)

  • -
  • dragObject () -
    Not Implemented
    -

  • -
  • dragObject () -
    -
    returns (TQDragObject)

  • -
  • drawDropVisualizer (p, parent, after) -
    -
    returns (TQRect)
    - - - -
    ArgumentTypeDefault
    pTQPainter
    parentTQListViewItem
    afterTQListViewItem
    -

  • -
  • drawItemHighlighter (painter, item) -
    -
    returns (TQRect)
    - - -
    ArgumentTypeDefault
    painterTQPainter
    itemTQListViewItem
    -

  • -
  • dropHighlighter () -
    -
    returns (bool)

  • -
  • dropVisualizer () -
    -
    returns (bool)

  • -
  • dropVisualizerWidth () -
    -
    returns (int)

  • -
  • dropped (e, after) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    eTQDropEvent
    afterTQListViewItem
    -

  • -
  • dropped (list, e, after) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    listKListView
    eTQDropEvent
    afterTQListViewItem
    -

  • -
  • dropped (list, e, parent, after) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    listKListView
    eTQDropEvent
    parentTQListViewItem
    afterTQListViewItem
    -

  • -
  • dropped (e, parent, after) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    eTQDropEvent
    parentTQListViewItem
    afterTQListViewItem
    -

  • -
  • emitContextMenu (a0, a1, a2) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    a0TQListViewItem
    a1TQPoint
    a2int
    -

  • -
  • emitContextMenu (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KListView
    a1TQListViewItem
    -

  • -
  • emitExecute (item, pos, c) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    itemTQListViewItem
    posTQPoint
    cint
    -

  • -
  • event (a0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    a0TQEvent
    -

  • -
  • executed (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemTQListViewItem
    -

  • -
  • executed (item, pos, c) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    itemTQListViewItem
    posTQPoint
    cint
    -

  • -
  • fileManagerKeyPressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQKeyEvent
    -

  • -
  • findDrop (pos, parent, after) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    posTQPoint
    parentTQListViewItem
    afterTQListViewItem
    -

  • -
  • focusInEvent (fe) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    feTQFocusEvent
    -

  • -
  • focusOutEvent (fe) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    feTQFocusEvent
    -

  • -
  • fullWidth () -
    -
    returns (bool)

  • -
  • isExecuteArea (point) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    pointTQPoint
    -

  • -
  • 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
    itemTQListViewItem
    -

  • -
  • itemAtIndex (index) -
    -
    returns (TQListViewItem)
    - -
    ArgumentTypeDefault
    indexint
    -

  • -
  • itemIndex (item) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    itemTQListViewItem
    -

  • -
  • itemRemoved (item) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    itemTQListViewItem
    -

  • -
  • itemRenamed (item, str, col) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    itemTQListViewItem
    strTQString
    colint
    -

  • -
  • itemRenamed (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemTQListViewItem
    -

  • -
  • itemsMovable () -
    -
    returns (bool)

  • -
  • itemsRenameable () -
    -
    returns (bool)

  • -
  • keyPressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQKeyEvent
    -

  • -
  • lastChild () -
    -
    returns (TQListViewItem)

  • -
  • lastItem () -
    -
    returns (TQListViewItem)

  • -
  • leaveEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQEvent
    -

  • -
  • menuShortCutPressed (list, item) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    listKListView
    itemTQListViewItem
    -

  • -
  • movableDropEvent (parent, afterme) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    parentTQListViewItem
    aftermeTQListViewItem
    -

  • -
  • moveItem (item, parent, after) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    itemTQListViewItem
    parentTQListViewItem
    afterTQListViewItem
    -

  • -
  • moved () -
    -
    returns nothing

  • -
  • moved (item, afterFirst, afterNow) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    itemTQListViewItem
    afterFirstTQListViewItem
    afterNowTQListViewItem
    -

  • -
  • moved (items, afterFirst, afterNow) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    itemsTQPtrList
    afterFirstTQPtrList
    afterNowTQPtrList
    -

  • -
  • removeColumn (index) -
    - -
    returns nothing
    In versions KDE 3.0.1 and above only
    - -
    ArgumentTypeDefault
    indexint
    -

  • -
  • rename (item, c) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    itemTQListViewItem
    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
    groupTQString
    -

  • -
  • saveLayout (config, group) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    configKConfig
    groupTQString
    -

  • -
  • selectedItems () -
    -
    returns (TQPtrList)

  • -
  • selectedItems (includeHiddenItems) -
    - -
    returns (TQPtrList)
    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
    cTQColor
    -

  • -
  • 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
    itemTQListViewItem
    posTQPoint
    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
    itemTQListViewItem
    posTQPoint
    cint
    -

  • -
  • slotOnItem (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemTQListViewItem
    -

  • -
  • 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
    iTQListViewItem
    -

  • -
  • tooltip (item, column) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    itemTQListViewItem
    columnint
    -

  • -
  • tooltipColumn () -
    -
    returns (int)

  • -
  • viewportPaintEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQPaintEvent
    -

  • -
  • viewportResizeEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQResizeEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KListViewItem.html b/python/pykde/doc/classref/kdeui/KListViewItem.html deleted file mode 100644 index eac5ae69..00000000 --- a/python/pykde/doc/classref/kdeui/KListViewItem.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - class KListViewItem - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KListViewItem


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKListViewItem
InheritsTQListViewItem
-

methods

    -
  • KListViewItem (parent) -
    -
    returns a KListViewItem instance
    - -
    ArgumentTypeDefault
    parentTQListView
    -

  • -
  • KListViewItem (parent) -
    -
    returns a KListViewItem instance
    - -
    ArgumentTypeDefault
    parentTQListViewItem
    -

  • -
  • KListViewItem (parent, after) -
    -
    returns a KListViewItem instance
    - - -
    ArgumentTypeDefault
    parentTQListView
    afterTQListViewItem
    -

  • -
  • KListViewItem (parent, after) -
    -
    returns a KListViewItem instance
    - - -
    ArgumentTypeDefault
    parentTQListViewItem
    afterTQListViewItem
    -

  • -
  • KListViewItem (parent, a0, a1 = TQString .null, a2 = TQString .null, a3 = TQString .null, a4 = TQString .null, a5 = TQString .null, a6 = TQString .null, a7 = TQString .null) -
    -
    returns a KListViewItem instance
    - - - - - - - - - -
    ArgumentTypeDefault
    parentTQListView
    a0TQString
    a1TQStringTQString .null
    a2TQStringTQString .null
    a3TQStringTQString .null
    a4TQStringTQString .null
    a5TQStringTQString .null
    a6TQStringTQString .null
    a7TQStringTQString .null
    -

  • -
  • KListViewItem (parent, a0, a1 = TQString .null, a2 = TQString .null, a3 = TQString .null, a4 = TQString .null, a5 = TQString .null, a6 = TQString .null, a7 = TQString .null) -
    -
    returns a KListViewItem instance
    - - - - - - - - - -
    ArgumentTypeDefault
    parentTQListViewItem
    a0TQString
    a1TQStringTQString .null
    a2TQStringTQString .null
    a3TQStringTQString .null
    a4TQStringTQString .null
    a5TQStringTQString .null
    a6TQStringTQString .null
    a7TQStringTQString .null
    -

  • -
  • KListViewItem (parent, after, a0, a1 = TQString .null, a2 = TQString .null, a3 = TQString .null, a4 = TQString .null, a5 = TQString .null, a6 = TQString .null, a7 = TQString .null) -
    -
    returns a KListViewItem instance
    - - - - - - - - - - -
    ArgumentTypeDefault
    parentTQListView
    afterTQListViewItem
    a0TQString
    a1TQStringTQString .null
    a2TQStringTQString .null
    a3TQStringTQString .null
    a4TQStringTQString .null
    a5TQStringTQString .null
    a6TQStringTQString .null
    a7TQStringTQString .null
    -

  • -
  • KListViewItem (parent, after, a0, a1 = TQString .null, a2 = TQString .null, a3 = TQString .null, a4 = TQString .null, a5 = TQString .null, a6 = TQString .null, a7 = TQString .null) -
    -
    returns a KListViewItem instance
    - - - - - - - - - - -
    ArgumentTypeDefault
    parentTQListViewItem
    afterTQListViewItem
    a0TQString
    a1TQStringTQString .null
    a2TQStringTQString .null
    a3TQStringTQString .null
    a4TQStringTQString .null
    a5TQStringTQString .null
    a6TQStringTQString .null
    a7TQStringTQString .null
    -

  • -
  • backgroundColor () -
    -
    returns (TQColor)

  • -
  • backgroundColor (column) -
    - -
    returns (TQColor)
    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
    itemTQListViewItem
    -

  • -
  • isAlternate () -
    -
    returns (bool)

  • -
  • paintCell (p, cg, column, width, alignment) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pTQPainter
    cgTQColorGroup
    columnint
    widthint
    alignmentint
    -

  • -
  • takeItem (item) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    itemTQListViewItem
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KListViewSearchLine.html b/python/pykde/doc/classref/kdeui/KListViewSearchLine.html deleted file mode 100644 index 684dd7af..00000000 --- a/python/pykde/doc/classref/kdeui/KListViewSearchLine.html +++ /dev/null @@ -1,132 +0,0 @@ - - - - - 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
    parentTQWidget0
    listViewKListView0
    namechar0
    -

  • -
  • KListViewSearchLine (parent, name) -
    - -
    returns a KListViewSearchLine instance
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQWidget
    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 (TQPopupMenu)
    In versions KDE 3.3.0 and above only

  • -
  • itemMatches (item, s) -
    - -
    returns (bool)
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    itemTQListViewItem
    sTQString
    -

  • -
  • 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
    searchTQString
    -

  • -
  • searchColumns () -
    - -
    returns (TQValueList)
    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
    columnsTQValueList
    -

  • -
  • updateSearch (s = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    sTQStringTQString .null
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KListViewSearchLineWidget.html b/python/pykde/doc/classref/kdeui/KListViewSearchLineWidget.html deleted file mode 100644 index c71f43d2..00000000 --- a/python/pykde/doc/classref/kdeui/KListViewSearchLineWidget.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - class KListViewSearchLineWidget - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KListViewSearchLineWidget


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKListViewSearchLineWidget
InheritsTQHBox
-

methods

    -
  • KListViewSearchLineWidget (listView = 0, parent = 0, name = 0) -
    - -
    returns a KListViewSearchLineWidget instance
    In versions KDE 3.4.0 and above only
    - - - -
    ArgumentTypeDefault
    listViewKListView0
    parentTQWidget0
    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/python/pykde/doc/classref/kdeui/KMacroCommand.html b/python/pykde/doc/classref/kdeui/KMacroCommand.html deleted file mode 100644 index 43e7a7a9..00000000 --- a/python/pykde/doc/classref/kdeui/KMacroCommand.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - 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
    nameTQString
    -

  • -
  • addCommand (command) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    commandKCommand
    -

  • -
  • execute () -
    -
    returns nothing

  • -
  • unexecute () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KMainWindow.html b/python/pykde/doc/classref/kdeui/KMainWindow.html deleted file mode 100644 index e8f7d5da..00000000 --- a/python/pykde/doc/classref/kdeui/KMainWindow.html +++ /dev/null @@ -1,421 +0,0 @@ - - - - - class KMainWindow - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMainWindow


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKMainWindow
InheritsTQMainWindow, 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
    parentTQWidget0
    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
    parentTQWidget0
    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
    groupNameTQString
    forcebool
    -

  • -
  • applyMainWindowSettings (config, groupName = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    configKConfig
    groupNameTQStringTQString .null
    -

  • -
  • autoSaveGroup () -
    - -
    returns (TQString)
    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
    eTQChildEvent
    -

  • -
  • classNameOfToplevel (number) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    numberint
    -

  • -
  • closeEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQCloseEvent
    -

  • -
  • configureToolbars () -
    - -
    returns (int)
    In versions KDE 3.3.0 and above only

  • -
  • createGUI (xmlfile = TQString .null, _conserveMemory = 1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    xmlfileTQStringTQString .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 (TQPtrList)
    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 = TQString .null, showWhatsThis = 1) -
    -
    returns (KPopupMenu)
    - - -
    ArgumentTypeDefault
    aboutAppTextTQStringTQString .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
    eTQPaintEvent
    -

  • -
  • 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
    eTQResizeEvent
    -

  • -
  • 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 = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    configKConfig
    groupNameTQStringTQString .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 = TQString .fromLatin1 ("MainWindow" ), saveWindowSize = 1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    groupNameTQStringTQString .fromLatin1 ("MainWindow" )
    saveWindowSizebool1
    -

  • -
  • setCaption (caption) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    captionTQString
    -

  • -
  • setCaption (caption, modified) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    captionTQString
    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
    a0TQPixmap
    -

  • -
  • setPlainCaption (caption) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    captionTQString
    -

  • -
  • setSettingsDirty () -
    -
    returns nothing

  • -
  • setStandardToolBarMenuEnabled (enable) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    enablebool
    -

  • -
  • settingsDirty () -
    -
    returns (bool)

  • -
  • settingsGroup () -
    -
    returns (TQString)

  • -
  • setupGUI (options = ToolBar | Keys | StatusBar | Save | Create, xmlfile = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    optionsintToolBar | Keys | StatusBar | Save | Create
    xmlfileTQStringTQString .null
    -

  • -
  • setupGUI (defaultSize, options = ToolBar | Keys | StatusBar | Save | Create, xmlfile = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.5.0 and above only
    - - - -
    ArgumentTypeDefault
    defaultSizeTQSize
    optionsintToolBar | Keys | StatusBar | Save | Create
    xmlfileTQStringTQString .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 (TQSize)
    - -
    ArgumentTypeDefault
    sizeTQSize
    -

  • -
  • slotStateChanged (newstate) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    newstateTQString
    -

  • -
  • slotStateChanged (newstate, a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    newstateTQString
    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
    memberListTQPtrList*
- - - diff --git a/python/pykde/doc/classref/kdeui/KMainWindowInterface.html b/python/pykde/doc/classref/kdeui/KMainWindowInterface.html deleted file mode 100644 index 58a8ca13..00000000 --- a/python/pykde/doc/classref/kdeui/KMainWindowInterface.html +++ /dev/null @@ -1,171 +0,0 @@ - - - - - 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
    nameTQCString
    -

  • -
  • actionIsEnabled (action) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    actionTQCString
    -

  • -
  • actionMap () -
    -
    returns (TQMap)

  • -
  • actionToolTip (action) -
    -
    returns (TQCString)
    - -
    ArgumentTypeDefault
    actionTQCString
    -

  • -
  • actions () -
    -
    returns (QCStringList)

  • -
  • activateAction (action) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    actionTQCString
    -

  • -
  • disableAction (action) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    actionTQCString
    -

  • -
  • enableAction (action) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    actionTQCString
    -

  • -
  • 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
    funTQCString
    dataTQByteArray
    replyTypeTQCString
    replyDataTQByteArray
    -

  • -
  • processDynamic (fun, data, replyType, replyData) -
    -
    returns (bool)
    - - - - -
    ArgumentTypeDefault
    funTQCString
    dataTQByteArray
    replyTypeTQCString
    replyDataTQByteArray
    -

  • -
  • 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/python/pykde/doc/classref/kdeui/KMenuBar.html b/python/pykde/doc/classref/kdeui/KMenuBar.html deleted file mode 100644 index 9f110da4..00000000 --- a/python/pykde/doc/classref/kdeui/KMenuBar.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - class KMenuBar - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMenuBar


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKMenuBar
InheritsTQMenuBar
-

methods

    -
  • KMenuBar (parent = 0, name = 0) -
    -
    returns a KMenuBar instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • closeEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.2.3 and above only
    - -
    ArgumentTypeDefault
    a0TQCloseEvent
    -

  • -
  • drawContents (a0) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    a0TQPainter
    -

  • -
  • eventFilter (a0, a1) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    a0TQObject
    a1TQEvent
    -

  • -
  • 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
    sTQSize
    -

  • -
  • resizeEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • 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
    rTQRect
    -

  • -
  • 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
    a0TQShowEvent
    -

  • -
  • sizeHint () -
    - -
    returns (TQSize)
    In versions KDE 3.4.0 and above only

  • -
  • slotReadConfig () -
    -
    returns nothing

  • -
  • x11Event (a0) -
    Not Implemented
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KMessageBox.html b/python/pykde/doc/classref/kdeui/KMessageBox.html deleted file mode 100644 index 09cb1a4f..00000000 --- a/python/pykde/doc/classref/kdeui/KMessageBox.html +++ /dev/null @@ -1,677 +0,0 @@ - - - - - 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 = TQString .null, options = 1) -
    - -
    returns nothing
    static
    - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    captionTQStringTQString .null
    optionsbool1
    -

  • -
  • createKMessageBox (dialog, icon, text, strlist, ask, options, details = TQString .null) -
    - - -
    returns (int) checkboxReturn (bool)
    In versions KDE 3.3.0 and above only
    static
    - - - - - - - -
    ArgumentTypeDefault
    dialogKDialogBase
    iconTQMessageBox.Icon
    textTQString
    strlistTQStringList
    askTQString
    optionsint
    detailsTQStringTQString .null
    -

  • -
  • createKMessageBox (dialog, icon, text, strlist, ask, options, details = TQString .null, notifyType = TQMessageBox .Information) -
    - - -
    returns (int) checkboxReturn (bool)
    In versions KDE 3.3.0 and above only
    static
    - - - - - - - - -
    ArgumentTypeDefault
    dialogKDialogBase
    iconTQPixmap
    textTQString
    strlistTQStringList
    askTQString
    optionsint
    detailsTQStringTQString .null
    notifyTypeTQMessageBox.IconTQMessageBox .Information
    -

  • -
  • detailedError (parent, text, details, caption = TQString .null, options = 1) -
    - -
    returns nothing
    static
    - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    detailsTQString
    captionTQStringTQString .null
    optionsbool1
    -

  • -
  • detailedErrorWId (parent_id, text, details, caption = TQString .null, options = Notify) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    parent_idWId
    textTQString
    detailsTQString
    captionTQStringTQString .null
    optionsintNotify
    -

  • -
  • detailedSorry (parent, text, details, caption = TQString .null, options = 1) -
    - -
    returns nothing
    static
    - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    detailsTQString
    captionTQStringTQString .null
    optionsbool1
    -

  • -
  • detailedSorryWId (parent_id, text, details, caption = TQString .null, options = Notify) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    parent_idWId
    textTQString
    detailsTQString
    captionTQStringTQString .null
    optionsintNotify
    -

  • -
  • enableAllMessages () -
    - -
    returns nothing
    static

  • -
  • enableMessage (dontShowAgainName) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    dontShowAgainNameTQString
    -

  • -
  • error (parent, text, caption = TQString .null, options = 1) -
    - -
    returns nothing
    static
    - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    captionTQStringTQString .null
    optionsbool1
    -

  • -
  • errorList (parent, text, strlist, caption = TQString .null, options = Notify) -
    - - -
    returns nothing
    In versions KDE 3.4.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    strlistTQStringList
    captionTQStringTQString .null
    optionsintNotify
    -

  • -
  • errorListWId (parent_id, text, strlist, caption = TQString .null, options = Notify) -
    - - -
    returns nothing
    In versions KDE 3.4.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    parent_idWId
    textTQString
    strlistTQStringList
    captionTQStringTQString .null
    optionsintNotify
    -

  • -
  • errorWId (parent_id, text, caption = TQString .null, options = Notify) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    parent_idWId
    textTQString
    captionTQStringTQString .null
    optionsintNotify
    -

  • -
  • information (parent, text, caption = TQString .null, dontShowAgainName = TQString .null, options = 1) -
    - -
    returns nothing
    static
    - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    captionTQStringTQString .null
    dontShowAgainNameTQStringTQString .null
    optionsbool1
    -

  • -
  • informationList (parent, text, strlist, caption = TQString .null, dontShowAgainName = TQString .null, options = Notify) -
    - - -
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    - - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    strlistTQStringList
    captionTQStringTQString .null
    dontShowAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • informationListWId (parent_id, text, strlist, caption = TQString .null, dontShowAgainName = TQString .null, options = Notify) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - - - - - - -
    ArgumentTypeDefault
    parent_idWId
    textTQString
    strlistTQStringList
    captionTQStringTQString .null
    dontShowAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • informationWId (parent_id, text, caption = TQString .null, dontShowAgainName = TQString .null, options = Notify) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    parent_idWId
    textTQString
    captionTQStringTQString .null
    dontShowAgainNameTQStringTQString .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
    parentTQWidget
    typeKMessageBox.DialogType
    textTQString
    captionTQString
    buttonYesKGuiItem
    buttonNoKGuiItem
    dontShowAskAgainNameTQString
    optionsintNotify
    -

  • -
  • messageBox (parent, type, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), options = Notify) -
    - -
    returns (int)
    static
    - - - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    typeKMessageBox.DialogType
    textTQString
    captionTQStringTQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    optionsintNotify
    -

  • -
  • messageBoxWId (parent_id, type, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontShowAskAgainName = TQString .null, options = Notify) -
    - - -
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    - - - - - - - - -
    ArgumentTypeDefault
    parent_idWId
    typeKMessageBox.DialogType
    textTQString
    captionTQStringTQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontShowAskAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • questionYesNo (parent, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify) -
    - -
    returns (int)
    static
    - - - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    captionTQStringTQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • questionYesNoCancel (parent, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify) -
    - -
    returns (int)
    static
    - - - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    captionTQStringTQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • questionYesNoCancelWId (parent_id, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify) -
    - - -
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    - - - - - - - -
    ArgumentTypeDefault
    parent_idWId
    textTQString
    captionTQStringTQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • questionYesNoList (parent, text, strlist, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify) -
    - -
    returns (int)
    static
    - - - - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    strlistTQStringList
    captionTQStringTQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • questionYesNoListWId (parent_id, text, strlist, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify) -
    - - -
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    - - - - - - - - -
    ArgumentTypeDefault
    parent_idWId
    textTQString
    strlistTQStringList
    captionTQStringTQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • questionYesNoWId (parent_id, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify) -
    - - -
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    - - - - - - - -
    ArgumentTypeDefault
    parent_idWId
    textTQString
    captionTQStringTQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • queuedDetailedError (parent, text, details, caption = TQString .null) -
    - -
    returns nothing
    static
    - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    detailsTQString
    captionTQStringTQString .null
    -

  • -
  • queuedDetailedErrorWId (parent_id, text, details, caption = TQString .null) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    parent_idWId
    textTQString
    detailsTQString
    captionTQStringTQString .null
    -

  • -
  • queuedMessageBox (parent, type, text, caption, options) -
    - - -
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    typeKMessageBox.DialogType
    textTQString
    captionTQString
    optionsint
    -

  • -
  • queuedMessageBox (parent, type, text, caption = TQString .null) -
    - -
    returns nothing
    static
    - - - - -
    ArgumentTypeDefault
    parentTQWidget
    typeKMessageBox.DialogType
    textTQString
    captionTQStringTQString .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
    textTQString
    captionTQString
    optionsint
    -

  • -
  • queuedMessageBoxWId (parent_id, type, text, caption = TQString .null) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    parent_idWId
    typeKMessageBox.DialogType
    textTQString
    captionTQStringTQString .null
    -

  • -
  • saveDontShowAgainContinue (dontShowAgainName) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    dontShowAgainNameTQString
    -

  • -
  • saveDontShowAgainYesNo (dontShowAgainName, result) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - - -
    ArgumentTypeDefault
    dontShowAgainNameTQString
    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
    dontShowAgainNameTQString
    -

  • -
  • shouldBeShownYesNo (dontShowAgainName) -
    - - -
    returns (bool) result (KMessageBox.ButtonCode)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    dontShowAgainNameTQString
    -

  • -
  • sorry (parent, text, caption = TQString .null, options = 1) -
    - -
    returns nothing
    static
    - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    captionTQStringTQString .null
    optionsbool1
    -

  • -
  • sorryWId (parent_id, text, caption = TQString .null, options = Notify) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    parent_idWId
    textTQString
    captionTQStringTQString .null
    optionsintNotify
    -

  • -
  • warningContinueCancel (parent, text, caption = TQString .null, buttonContinue = KStdGuiItem .cont (), dontAskAgainName = TQString .null, options = Notify) -
    - -
    returns (int)
    static
    - - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    captionTQStringTQString .null
    buttonContinueKGuiItemKStdGuiItem .cont ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • warningContinueCancelList (parent, text, strlist, caption = TQString .null, buttonContinue = KStdGuiItem .cont (), dontAskAgainName = TQString .null, options = Notify) -
    - - -
    returns (int)
    In versions KDE 3.1.0 and above only
    static
    - - - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    strlistTQStringList
    captionTQStringTQString .null
    buttonContinueKGuiItemKStdGuiItem .cont ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • warningContinueCancelList (a0, a1, a2, a3 = TQString .null, a4 = TQString .null, a5 = TQString .null, a6 = Notify) -
    Not Implemented
    -

  • -
  • warningContinueCancelList (a0, a1, a2, a3 = TQString .null, a4 = KGuiItem (), a5 = TQString .null, a6 = Notify) -
    - - -
    returns (int)
    In versions KDE 3.0.3 and above, but less than KDE 3.1.0
    static
    - - - - - - - -
    ArgumentTypeDefault
    a0TQWidget
    a1TQString
    a2TQStringList
    a3TQStringTQString .null
    a4KGuiItemKGuiItem ()
    a5TQStringTQString .null
    a6intNotify
    -

  • -
  • warningContinueCancelListWId (parent_id, text, strlist, caption = TQString .null, buttonContinue = KStdGuiItem .cont (), dontAskAgainName = TQString .null, options = Notify) -
    - - -
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    - - - - - - - -
    ArgumentTypeDefault
    parent_idWId
    textTQString
    strlistTQStringList
    captionTQStringTQString .null
    buttonContinueKGuiItemKStdGuiItem .cont ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • warningContinueCancelWId (parent_id, text, caption = TQString .null, buttonContinue = KStdGuiItem .cont (), dontAskAgainName = TQString .null, options = Notify) -
    - - -
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    - - - - - - -
    ArgumentTypeDefault
    parent_idWId
    textTQString
    captionTQStringTQString .null
    buttonContinueKGuiItemKStdGuiItem .cont ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • warningYesNo (parent, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify) -
    - -
    returns (int)
    static
    - - - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    captionTQStringTQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • warningYesNoCancel (parent, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify) -
    - -
    returns (int)
    static
    - - - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    captionTQStringTQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • warningYesNoCancelList (parent, text, strlist, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify) -
    - - -
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    - - - - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    strlistTQStringList
    captionTQStringTQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • warningYesNoCancelListWId (parent_id, text, strlist, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify) -
    - - -
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    - - - - - - - - -
    ArgumentTypeDefault
    parent_idWId
    textTQString
    strlistTQStringList
    captionTQStringTQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • warningYesNoCancelWId (parent_id, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify) -
    - - -
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    - - - - - - - -
    ArgumentTypeDefault
    parent_idWId
    textTQString
    captionTQStringTQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify
    -

  • -
  • warningYesNoList (parent, text, strlist, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify | Dangerous) -
    - - -
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    - - - - - - - - -
    ArgumentTypeDefault
    parentTQWidget
    textTQString
    strlistTQStringList
    captionTQStringTQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify | Dangerous
    -

  • -
  • warningYesNoListWId (parent_id, text, strlist, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify | Dangerous) -
    - - -
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    - - - - - - - - -
    ArgumentTypeDefault
    parent_idWId
    textTQString
    strlistTQStringList
    captionTQStringTQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify | Dangerous
    -

  • -
  • warningYesNoWId (parent_id, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify | Dangerous) -
    - - -
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    - - - - - - - -
    ArgumentTypeDefault
    parent_idWId
    textTQString
    captionTQStringTQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameTQStringTQString .null
    optionsintNotify | Dangerous
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KMimeTypeValidator.html b/python/pykde/doc/classref/kdeui/KMimeTypeValidator.html deleted file mode 100644 index 4b2c6b10..00000000 --- a/python/pykde/doc/classref/kdeui/KMimeTypeValidator.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - class KMimeTypeValidator - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMimeTypeValidator


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKMimeTypeValidator
InheritsTQValidator
-

methods

    -
  • KMimeTypeValidator (parent, name = 0) -
    -
    returns a KMimeTypeValidator instance
    - - -
    ArgumentTypeDefault
    parentTQObject
    namechar0
    -

  • -
  • fixup (input) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    inputTQString
    -

  • -
  • validate (input) -
    -
    returns (State) pos (int)
    - -
    ArgumentTypeDefault
    inputTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KNamedCommand.html b/python/pykde/doc/classref/kdeui/KNamedCommand.html deleted file mode 100644 index 360c0a84..00000000 --- a/python/pykde/doc/classref/kdeui/KNamedCommand.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 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
    nameTQString
    -

  • -
  • name () -
    -
    returns (TQString)

  • -
  • setName (name) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KNumInput.html b/python/pykde/doc/classref/kdeui/KNumInput.html deleted file mode 100644 index 3ee9ff99..00000000 --- a/python/pykde/doc/classref/kdeui/KNumInput.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - class KNumInput - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KNumInput


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKNumInput (abstract)
InheritsTQWidget
-

methods

    -
  • KNumInput (parent = 0, name = 0) -
    -
    returns a KNumInput instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KNumInput (below, parent = 0, name = 0) -
    -
    returns a KNumInput instance
    - - - -
    ArgumentTypeDefault
    belowKNumInput
    parentTQWidget0
    namechar0
    -

  • -
  • doLayout () = 0 -
    - -
    returns nothing
    pure virtual

  • -
  • label () -
    -
    returns (TQString)

  • -
  • layout (deep) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    deepbool
    -

  • -
  • setLabel (label, a = AlignLeft | AlignTop) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    labelTQString
    aintAlignLeft | AlignTop
    -

  • -
  • setSteps (minor, major) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    minorint
    majorint
    -

  • -
  • showSlider () -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • sizePolicy () -
    -
    returns (TQSizePolicy)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KPaletteTable.html b/python/pykde/doc/classref/kdeui/KPaletteTable.html deleted file mode 100644 index aadb493d..00000000 --- a/python/pykde/doc/classref/kdeui/KPaletteTable.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - class KPaletteTable - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KPaletteTable


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKPaletteTable
InheritsTQWidget
-

methods

    -
  • KPaletteTable (parent, minWidth = 210, cols = 16) -
    -
    returns a KPaletteTable instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget
    minWidthint210
    colsint16
    -

  • -
  • addToCustomColors (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQColor
    -

  • -
  • addToRecentColors (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQColor
    -

  • -
  • colorDoubleClicked (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0TQColor
    a1TQString
    -

  • -
  • colorSelected (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0TQColor
    a1TQString
    -

  • -
  • palette () -
    -
    returns (TQString)

  • -
  • readNamedColor () -
    -
    returns nothing

  • -
  • setPalette (paletteName) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    paletteNameTQString
    -

  • -
  • slotColorCellDoubleClicked (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • slotColorCellSelected (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • slotColorTextSelected (colorText) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    colorTextTQString
    -

  • -
  • slotSetPalette (_paletteName) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _paletteNameTQString
    -

  • -
  • slotShowNamedColorReadError () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KPanelAppMenu.html b/python/pykde/doc/classref/kdeui/KPanelAppMenu.html deleted file mode 100644 index f936cc93..00000000 --- a/python/pykde/doc/classref/kdeui/KPanelAppMenu.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - class KPanelAppMenu - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KPanelAppMenu


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKPanelAppMenu
InheritsTQObject, DCOPObject
-

methods

    -
  • KPanelAppMenu (title, parent = 0, name = 0) -
    -
    returns a KPanelAppMenu instance
    - - - -
    ArgumentTypeDefault
    titleTQString
    parentTQObject0
    namechar0
    -

  • -
  • KPanelAppMenu (icon, title, parent, name) -
    -
    returns a KPanelAppMenu instance
    - - - - -
    ArgumentTypeDefault
    iconTQPixmap
    titleTQString
    parentTQObject
    namechar
    -

  • -
  • KPanelAppMenu (parent, name) -
    -
    returns a KPanelAppMenu instance
    - - -
    ArgumentTypeDefault
    parentTQObject
    namechar
    -

  • -
  • activated (id) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    idint
    -

  • -
  • clear () -
    -
    returns nothing

  • -
  • init (icon, title) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    iconTQPixmap
    titleTQString
    -

  • -
  • insertItem (text, id = -1) -
    -
    returns (int)
    - - -
    ArgumentTypeDefault
    textTQString
    idint-1
    -

  • -
  • insertItem (icon, text, id = -1) -
    -
    returns (int)
    - - - -
    ArgumentTypeDefault
    iconTQPixmap
    textTQString
    idint-1
    -

  • -
  • insertMenu (icon, text, id = -1) -
    -
    returns (KPanelAppMenu)
    - - - -
    ArgumentTypeDefault
    iconTQPixmap
    textTQString
    idint-1
    -

  • -
  • process (fun, data, replyType, reply) -
    -
    returns (bool)
    - - - - -
    ArgumentTypeDefault
    funTQCString
    dataTQByteArray
    replyTypeTQCString
    replyTQByteArray
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KPanelApplet.html b/python/pykde/doc/classref/kdeui/KPanelApplet.html deleted file mode 100644 index 198aec31..00000000 --- a/python/pykde/doc/classref/kdeui/KPanelApplet.html +++ /dev/null @@ -1,197 +0,0 @@ - - - - - class KPanelApplet - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KPanelApplet


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKPanelApplet
InheritsTQFrame
-

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
    configFileTQString
    tKPanelApplet.TypeNormal
    actionsint0
    parentTQWidget0
    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 (TQPopupMenu)
    In versions KDE 3.2.0 and above only

  • -
  • eventFilter (a0, a1) -
    - -
    returns (bool)
    In versions KDE 3.4.0 and above only
    - - -
    ArgumentTypeDefault
    a0TQObject
    a1TQEvent
    -

  • -
  • 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
    a0TQPopupMenu
    -

  • -
  • 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
    widgetTQWidget
    watchbool1
    -

  • -
  • widthForHeight (height) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    heightint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KPanelExtension.html b/python/pykde/doc/classref/kdeui/KPanelExtension.html deleted file mode 100644 index 60ba4479..00000000 --- a/python/pykde/doc/classref/kdeui/KPanelExtension.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - class KPanelExtension - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KPanelExtension


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKPanelExtension
InheritsTQFrame
-

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
    configFileTQString
    tKPanelExtension.TypeNormal
    actionsint0
    parentTQWidget0
    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 (TQPopupMenu)
    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
    a0TQPopupMenu
    -

  • -
  • 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 (TQSize)
    - - -
    ArgumentTypeDefault
    a0KPanelExtension.Position
    maxsizeTQSize
    -

  • -
  • 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/python/pykde/doc/classref/kdeui/KPanelMenu.html b/python/pykde/doc/classref/kdeui/KPanelMenu.html deleted file mode 100644 index cfa2aeed..00000000 --- a/python/pykde/doc/classref/kdeui/KPanelMenu.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    -

  • -
  • KPanelMenu (startDir, parent = 0, name = 0) -
    -
    returns a KPanelMenu instance
    - - - -
    ArgumentTypeDefault
    startDirTQString
    parentTQWidget0
    namechar0
    -

  • -
  • deinitialize () -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only

  • -
  • disableAutoClear () -
    -
    returns nothing

  • -
  • hideEvent (ev) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    evTQHideEvent
    -

  • -
  • init (path = TQString .null) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pathTQStringTQString .null
    -

  • -
  • initialize () = 0 -
    - -
    returns nothing
    pure virtual

  • -
  • initialized () -
    -
    returns (bool)

  • -
  • path () -
    -
    returns (TQString)

  • -
  • reinitialize () -
    -
    returns nothing

  • -
  • setInitialized (on) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    onbool
    -

  • -
  • setPath (p) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pTQString
    -

  • -
  • slotAboutToShow () -
    -
    returns nothing

  • -
  • slotClear () -
    -
    returns nothing

  • -
  • slotExec (id) = 0 -
    - -
    returns nothing
    pure virtual
    - -
    ArgumentTypeDefault
    idint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KPassivePopup.html b/python/pykde/doc/classref/kdeui/KPassivePopup.html deleted file mode 100644 index 40ccddd5..00000000 --- a/python/pykde/doc/classref/kdeui/KPassivePopup.html +++ /dev/null @@ -1,309 +0,0 @@ - - - - - class KPassivePopup - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KPassivePopup


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKPassivePopup
InheritsTQFrame
-

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
    parentTQWidget0
    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
    parentTQWidget0
    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
    posTQPoint
    -

  • -
  • defaultArea () -
    - -
    returns (TQRect)
    In versions KDE 3.1.0 and above only

  • -
  • hideEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0TQHideEvent
    -

  • -
  • message (text, parent, name = 0) -
    - - -
    returns (KPassivePopup)
    In versions KDE 3.1.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    textTQString
    parentTQWidget
    namechar0
    -

  • -
  • message (caption, text, parent, name = 0) -
    - - -
    returns (KPassivePopup)
    In versions KDE 3.1.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    captionTQString
    textTQString
    parentTQWidget
    namechar0
    -

  • -
  • message (caption, text, icon, parent, name = 0, timeout = -1) -
    - - -
    returns (KPassivePopup)
    In versions KDE 3.1.0 and above only
    static
    - - - - - - -
    ArgumentTypeDefault
    captionTQString
    textTQString
    iconTQPixmap
    parentTQWidget
    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
    captionTQString
    textTQString
    iconTQPixmap
    parentWId
    namechar0
    timeoutint-1
    -

  • -
  • message (popupStyle, text, parent, name = 0) -
    - - -
    returns (KPassivePopup)
    In versions KDE 3.5.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    popupStyleint
    textTQString
    parentTQWidget
    namechar0
    -

  • -
  • message (popupStyle, caption, text, parent, name = 0) -
    - - -
    returns (KPassivePopup)
    In versions KDE 3.5.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    popupStyleint
    captionTQString
    textTQString
    parentTQWidget
    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
    captionTQString
    textTQString
    iconTQPixmap
    parentTQWidget
    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
    captionTQString
    textTQString
    iconTQPixmap
    parentWId
    namechar0
    timeoutint-1
    -

  • -
  • mouseReleaseEvent (e) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • moveNear (target) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    targetTQRect
    -

  • -
  • paintEvent (pe) -
    - -
    returns nothing
    In versions KDE 3.5.0 and above only
    - -
    ArgumentTypeDefault
    peTQPaintEvent
    -

  • -
  • 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
    anchorTQPoint
    -

  • -
  • 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
    childTQWidget
    -

  • -
  • setView (caption, text = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    captionTQString
    textTQStringTQString .null
    -

  • -
  • setView (caption, text, icon) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - - -
    ArgumentTypeDefault
    captionTQString
    textTQString
    iconTQPixmap
    -

  • -
  • 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
    pTQPoint
    -

  • -
  • standardView (caption, text, icon, parent = 0) -
    - -
    returns (TQVBox)
    In versions KDE 3.1.0 and above only
    - - - - -
    ArgumentTypeDefault
    captionTQString
    textTQString
    iconTQPixmap
    parentTQWidget0
    -

  • -
  • 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 (TQWidget)
    In versions KDE 3.1.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KPasswordDialog.html b/python/pykde/doc/classref/kdeui/KPasswordDialog.html deleted file mode 100644 index 83c14ab5..00000000 --- a/python/pykde/doc/classref/kdeui/KPasswordDialog.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    -

  • -
  • KPasswordDialog (type, prompt, enableKeep = 0, extraBttn = 0) -
    -
    returns a KPasswordDialog instance
    - - - - -
    ArgumentTypeDefault
    typeint
    promptTQString
    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
    iconNameTQString
    parentTQWidget0
    namechar0
    -

  • -
  • addLine (key, value) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    keyTQString
    valueTQString
    -

  • -
  • 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
    passwordTQCString
    promptTQString
    -

  • -
  • getPassword (password, prompt) -
    - -
    returns (int) keep (int)
    static
    - - -
    ArgumentTypeDefault
    passwordTQCString
    promptTQString
    -

  • -
  • 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 (TQString)

  • -
  • 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
    promptTQString
    -

  • -
  • 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/python/pykde/doc/classref/kdeui/KPasswordEdit.html b/python/pykde/doc/classref/kdeui/KPasswordEdit.html deleted file mode 100644 index 80427d92..00000000 --- a/python/pykde/doc/classref/kdeui/KPasswordEdit.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - class KPasswordEdit - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KPasswordEdit


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKPasswordEdit
InheritsTQLineEdit
-

enums

    -
  • EchoModes = {OneStar, ThreeStars, NoEcho -}
-

methods

    -
  • KPasswordEdit (parent = 0, name = 0) -
    -
    returns a KPasswordEdit instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KPasswordEdit (echoMode, parent, name) -
    -
    returns a KPasswordEdit instance
    - - - -
    ArgumentTypeDefault
    echoModeEchoMode
    parentTQWidget
    namechar
    -

  • -
  • KPasswordEdit (echoMode, parent, name) -
    - -
    returns a KPasswordEdit instance
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    echoModeKPasswordEdit.EchoModes
    parentTQWidget
    namechar
    -

  • -
  • KPasswordEdit (parent, name, echoMode) -
    -
    returns a KPasswordEdit instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar
    echoModeint
    -

  • -
  • erase () -
    -
    returns nothing

  • -
  • event (e) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    eTQEvent
    -

  • -
  • focusInEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQFocusEvent
    -

  • -
  • insert (a0) -
    - -
    returns nothing
    In versions KDE 3.1.2 and above only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • keyPressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQKeyEvent
    -

  • -
  • 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/python/pykde/doc/classref/kdeui/KPasteTextAction.html b/python/pykde/doc/classref/kdeui/KPasteTextAction.html deleted file mode 100644 index 2c58d335..00000000 --- a/python/pykde/doc/classref/kdeui/KPasteTextAction.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - 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
    textTQString
    iconTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject0
    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
    widgetTQWidget
    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/python/pykde/doc/classref/kdeui/KPixmapIO.html b/python/pykde/doc/classref/kdeui/KPixmapIO.html deleted file mode 100644 index 1003bc9e..00000000 --- a/python/pykde/doc/classref/kdeui/KPixmapIO.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - 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 (TQImage)
    - -
    ArgumentTypeDefault
    pixmapTQPixmap
    -

  • -
  • convertToPixmap (image) -
    -
    returns (TQPixmap)
    - -
    ArgumentTypeDefault
    imageTQImage
    -

  • -
  • getImage (src, sx, sy, sw, sh) -
    -
    returns (TQImage)
    - - - - - -
    ArgumentTypeDefault
    srcTQPixmap
    sxint
    syint
    swint
    shint
    -

  • -
  • getImage (src, rect) -
    -
    returns (TQImage)
    - - -
    ArgumentTypeDefault
    srcTQPixmap
    rectTQRect
    -

  • -
  • preAllocShm (size) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sizeint
    -

  • -
  • putImage (dst, dx, dy, src) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    dstTQPixmap
    dxint
    dyint
    srcTQImage
    -

  • -
  • putImage (dst, offset, src) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    dstTQPixmap
    offsetTQPoint
    srcTQImage
    -

  • -
  • setShmPolicy (policy) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    policyint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KPixmapRegionSelectorDialog.html b/python/pykde/doc/classref/kdeui/KPixmapRegionSelectorDialog.html deleted file mode 100644 index aeb78119..00000000 --- a/python/pykde/doc/classref/kdeui/KPixmapRegionSelectorDialog.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    modalbool0
    -

  • -
  • getSelectedImage (pixmap, parent = 0) -
    - - -
    returns (TQImage)
    In versions KDE 3.4.0 and above only
    static
    - - -
    ArgumentTypeDefault
    pixmapTQPixmap
    parentTQWidget0
    -

  • -
  • getSelectedImage (pixmap, aspectRatioWidth, aspectRatioHeight, parent = 0) -
    - - -
    returns (TQImage)
    In versions KDE 3.4.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    pixmapTQPixmap
    aspectRatioWidthint
    aspectRatioHeightint
    parentTQWidget0
    -

  • -
  • getSelectedRegion (pixmap, parent = 0) -
    - - -
    returns (TQRect)
    In versions KDE 3.4.0 and above only
    static
    - - -
    ArgumentTypeDefault
    pixmapTQPixmap
    parentTQWidget0
    -

  • -
  • getSelectedRegion (pixmap, aspectRatioWidth, aspectRatioHeight, parent = 0) -
    - - -
    returns (TQRect)
    In versions KDE 3.4.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    pixmapTQPixmap
    aspectRatioWidthint
    aspectRatioHeightint
    parentTQWidget0
    -

  • -
  • pixmapRegionSelectorWidget () -
    - -
    returns (KPixmapRegionSelectorWidget)
    In versions KDE 3.4.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KPixmapRegionSelectorWidget.html b/python/pykde/doc/classref/kdeui/KPixmapRegionSelectorWidget.html deleted file mode 100644 index fdc5b4e6..00000000 --- a/python/pykde/doc/classref/kdeui/KPixmapRegionSelectorWidget.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - class KPixmapRegionSelectorWidget - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KPixmapRegionSelectorWidget


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKPixmapRegionSelectorWidget
InheritsTQWidget
-

methods

    -
  • KPixmapRegionSelectorWidget (parent = 0, name = 0) -
    - -
    returns a KPixmapRegionSelectorWidget instance
    In versions KDE 3.4.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • createPopupMenu () -
    - -
    returns (KPopupMenu)
    In versions KDE 3.4.0 and above only

  • -
  • pixmap () -
    - -
    returns (TQPixmap)
    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 (TQImage)
    In versions KDE 3.4.0 and above only

  • -
  • selectedRegion () -
    - -
    returns (TQRect)
    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
    pixmapTQPixmap
    -

  • -
  • setSelectedRegion (rect) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    rectTQRect
    -

  • -
  • setSelectionAspectRatio (width, height) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - - -
    ArgumentTypeDefault
    widthint
    heightint
    -

  • -
  • unzoomedSelectedRegion () -
    - -
    returns (TQRect)
    In versions KDE 3.4.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KPopupFrame.html b/python/pykde/doc/classref/kdeui/KPopupFrame.html deleted file mode 100644 index 244e1fa3..00000000 --- a/python/pykde/doc/classref/kdeui/KPopupFrame.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - class KPopupFrame - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KPopupFrame


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKPopupFrame
InheritsTQFrame
-

methods

    -
  • KPopupFrame (parent = 0, name = 0) -
    -
    returns a KPopupFrame instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • close (r) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    rint
    -

  • -
  • exec_ (p) -
    - -
    returns (int)
    Renamed: was ' exec -' in C++
    - -
    ArgumentTypeDefault
    pTQPoint
    -

  • -
  • 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
    eTQKeyEvent
    -

  • -
  • keyPressEvent (a0) -
    - -
    returns nothing
    In versions less than KDE 3.0.1 only
    - -
    ArgumentTypeDefault
    a0TQKeyEvent
    -

  • -
  • popup (pos) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    posTQPoint
    -

  • -
  • resizeEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.0.1 and above only
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • resizeEvent (a0) -
    - -
    returns nothing
    In versions less than KDE 3.0.1 only
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • setMainWidget (m) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    mTQWidget
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KPopupMenu.html b/python/pykde/doc/classref/kdeui/KPopupMenu.html deleted file mode 100644 index 7dae019a..00000000 --- a/python/pykde/doc/classref/kdeui/KPopupMenu.html +++ /dev/null @@ -1,244 +0,0 @@ - - - - - class KPopupMenu - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KPopupMenu


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKPopupMenu
InheritsTQPopupMenu
-

methods

    -
  • KPopupMenu (parent = 0, name = 0) -
    -
    returns a KPopupMenu instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KPopupMenu (title, parent = 0, name = 0) -
    -
    returns a KPopupMenu instance
    - - - -
    ArgumentTypeDefault
    titleTQString
    parentTQWidget0
    namechar0
    -

  • -
  • aboutToShowContextMenu (menu, menuItem, ctxMenu) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    menuKPopupMenu
    menuItemint
    ctxMenuTQPopupMenu
    -

  • -
  • activateItemAt (index) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    indexint
    -

  • -
  • changeTitle (id, text) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    idint
    textTQString
    -

  • -
  • changeTitle (id, icon, text) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    idint
    iconTQPixmap
    textTQString
    -

  • -
  • closeEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0TQCloseEvent
    -

  • -
  • contextMenu () -
    - -
    returns (TQPopupMenu)
    In versions KDE 3.2.0 and above only

  • -
  • contextMenuEvent (e) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    eTQContextMenuEvent
    -

  • -
  • 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
    a0TQHideEvent
    -

  • -
  • insertTitle (text, id = -1, index = -1) -
    -
    returns (int)
    - - - -
    ArgumentTypeDefault
    textTQString
    idint-1
    indexint-1
    -

  • -
  • insertTitle (icon, text, id = -1, index = -1) -
    -
    returns (int)
    - - - - -
    ArgumentTypeDefault
    iconTQPixmap
    textTQString
    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
    eTQKeyEvent
    -

  • -
  • mousePressEvent (e) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • mouseReleaseEvent (e) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • 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
    titleTQString
    -

  • -
  • showCtxMenu (pos) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    posTQPoint
    -

  • -
  • state () -
    - -
    returns (Qt.ButtonState)
    In versions KDE 3.4.0 and above only

  • -
  • title (id = -1) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    idint-1
    -

  • -
  • titlePixmap (id) -
    -
    returns (TQPixmap)
    - -
    ArgumentTypeDefault
    idint
    -

  • -
  • underlineText (text, length) -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    textTQString
    lengthuint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KPopupTitle.html b/python/pykde/doc/classref/kdeui/KPopupTitle.html deleted file mode 100644 index 12d77a72..00000000 --- a/python/pykde/doc/classref/kdeui/KPopupTitle.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - - class KPopupTitle - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KPopupTitle


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKPopupTitle
InheritsTQWidget
-

methods

    -
  • KPopupTitle (parent = 0, name = 0) -
    -
    returns a KPopupTitle instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KPopupTitle (gradient, color, textColor, parent = 0, name = 0) -
    -
    returns a KPopupTitle instance
    - - - - - -
    ArgumentTypeDefault
    gradientKPixmapEffect.GradientType
    colorTQColor
    textColorTQColor
    parentTQWidget0
    namechar0
    -

  • -
  • KPopupTitle (background, color, textColor, parent = 0, name = 0) -
    -
    returns a KPopupTitle instance
    - - - - - -
    ArgumentTypeDefault
    backgroundKPixmap
    colorTQColor
    textColorTQColor
    parentTQWidget0
    namechar0
    -

  • -
  • calcSize () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
  • icon () -
    -
    returns (TQPixmap)

  • -
  • paintEvent (ev) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    evTQPaintEvent
    -

  • -
  • setIcon (pix) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    pixTQPixmap
    -

  • -
  • setText (text) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • setTitle (text, icon = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    textTQString
    iconTQPixmap0
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • title () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KProgress.html b/python/pykde/doc/classref/kdeui/KProgress.html deleted file mode 100644 index 5d467270..00000000 --- a/python/pykde/doc/classref/kdeui/KProgress.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - class KProgress - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KProgress


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKProgress
InheritsTQProgressBar
-

methods

    -
  • KProgress (parent = 0, name = 0, f = 0) -
    -
    returns a KProgress instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    fWFlags0
    -

  • -
  • KProgress (totalSteps, parent = 0, name = 0, f = 0) -
    -
    returns a KProgress instance
    - - - - -
    ArgumentTypeDefault
    totalStepsint
    parentTQWidget0
    namechar0
    fWFlags0
    -

  • -
  • advance (offset) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    offsetint
    -

  • -
  • format () -
    -
    returns (TQString)

  • -
  • maxValue () -
    -
    returns (int)

  • -
  • percentageChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • setFormat (format) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    formatTQString
    -

  • -
  • setIndicator (indicator, progress, totalSteps) -
    -
    returns (bool)
    - - - -
    ArgumentTypeDefault
    indicatorTQString
    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/python/pykde/doc/classref/kdeui/KProgressDialog.html b/python/pykde/doc/classref/kdeui/KProgressDialog.html deleted file mode 100644 index f40fd6f5..00000000 --- a/python/pykde/doc/classref/kdeui/KProgressDialog.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - 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 = TQString .null, text = TQString .null, modal = 0) -
    -
    returns a KProgressDialog instance
    - - - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    captionTQStringTQString .null
    textTQStringTQString .null
    modalbool0
    -

  • -
  • allowCancel () -
    -
    returns (bool)

  • -
  • autoClose () -
    -
    returns (bool)

  • -
  • autoReset () -
    -
    returns (bool)

  • -
  • buttonText () -
    -
    returns (TQString)

  • -
  • labelText () -
    -
    returns (TQString)

  • -
  • 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
    a0TQString
    -

  • -
  • setLabel (text) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • 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/python/pykde/doc/classref/kdeui/KPushButton.html b/python/pykde/doc/classref/kdeui/KPushButton.html deleted file mode 100644 index 126dda09..00000000 --- a/python/pykde/doc/classref/kdeui/KPushButton.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - class KPushButton - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KPushButton


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKPushButton
InheritsTQPushButton
-

methods

    -
  • KPushButton (parent, name = 0) -
    -
    returns a KPushButton instance
    - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar0
    -

  • -
  • KPushButton (text, parent, name = 0) -
    -
    returns a KPushButton instance
    - - - -
    ArgumentTypeDefault
    textTQString
    parentTQWidget
    namechar0
    -

  • -
  • KPushButton (icon, text, parent, name = 0) -
    -
    returns a KPushButton instance
    - - - - -
    ArgumentTypeDefault
    iconTQIconSet
    textTQString
    parentTQWidget
    namechar0
    -

  • -
  • KPushButton (item, parent, name = 0) -
    -
    returns a KPushButton instance
    - - - -
    ArgumentTypeDefault
    itemKGuiItem
    parentTQWidget
    namechar0
    -

  • -
  • dragObject () -
    -
    returns (TQDragObject)

  • -
  • 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
    a0TQMouseEvent
    -

  • -
  • mousePressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • 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
    iconSetTQIconSet
    -

  • -
  • setText (text) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • startDrag () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KRadioAction.html b/python/pykde/doc/classref/kdeui/KRadioAction.html deleted file mode 100644 index 63b2ee3a..00000000 --- a/python/pykde/doc/classref/kdeui/KRadioAction.html +++ /dev/null @@ -1,199 +0,0 @@ - - - - - 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
    a0TQString
    a1KShortcutKShortcut ()
    a2TQObject0
    a3char0
    -

  • -
  • KRadioAction (a0, a1, slot, a4, a5 = 0) -
    - -
    returns a KRadioAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1KShortcut
    slotSLOT (Python callable)
    a4TQObject
    a5char0
    -

  • -
  • KRadioAction (text, pix, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KRadioAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQString
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • KRadioAction (text, pix, cut, slot, parent, name = 0) -
    - -
    returns a KRadioAction instance
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KRadioAction (text, pix, cut, slot, parent, name = 0) -
    - -
    returns a KRadioAction instance
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KRadioAction (parent = 0, name = 0) -
    - -
    returns a KRadioAction instance
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • KRadioAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) -
    - -
    returns a KRadioAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQIconSet
    a2KShortcutKShortcut ()
    a3TQObject0
    a4char0
    -

  • -
  • KRadioAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) -
    - -
    returns a KRadioAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2KShortcutKShortcut ()
    a3TQObject0
    a4char0
    -

  • -
  • KRadioAction (a0, a1, a2, slot, a5, a6 = 0) -
    - -
    returns a KRadioAction instance
    In versions less than KDE 3.2.0 only
    - - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQIconSet
    a2KShortcut
    slotSLOT (Python callable)
    a5TQObject
    a6char0
    -

  • -
  • KRadioAction (a0, a1, a2, slot, a5, a6 = 0) -
    - -
    returns a KRadioAction instance
    In versions less than KDE 3.2.0 only
    - - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2KShortcut
    slotSLOT (Python callable)
    a5TQObject
    a6char0
    -

  • -
  • KRadioAction (a0 = 0, a1 = 0) -
    - -
    returns a KRadioAction instance
    In versions less than KDE 3.2.0 only
    - - -
    ArgumentTypeDefault
    a0TQObject0
    a1char0
    -

  • -
  • KRadioAction (text, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KRadioAction instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    textTQString
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • KRadioAction (text, cut, slot, parent, name = 0) -
    - -
    returns a KRadioAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KRadioAction (text, pix, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KRadioAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQIconSet
    cutKShortcutKShortcut ()
    parentTQObject0
    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/python/pykde/doc/classref/kdeui/KRecentFilesAction.html b/python/pykde/doc/classref/kdeui/KRecentFilesAction.html deleted file mode 100644 index d3c47e44..00000000 --- a/python/pykde/doc/classref/kdeui/KRecentFilesAction.html +++ /dev/null @@ -1,380 +0,0 @@ - - - - - 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
    a0TQString
    a1KShortcut
    a2TQObject
    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
    a0TQString
    a1KShortcut
    slotSLOT (Python callable)
    a4TQObject
    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
    textTQString
    pixTQString
    cutKShortcut
    parentTQObject
    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
    textTQString
    pixTQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    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
    textTQString
    pixTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    maxItemsuint10
    -

  • -
  • KRecentFilesAction (parent = 0, name = 0, maxItems = 10) -
    - -
    returns a KRecentFilesAction instance
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    parentTQObject0
    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
    a0TQString
    a1TQIconSet
    a2KShortcut
    a3TQObject
    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
    a0TQString
    a1TQString
    a2KShortcut
    a3TQObject
    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
    a0TQString
    a1TQIconSet
    a2KShortcut
    slotSLOT (Python callable)
    a5TQObject
    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
    a0TQString
    a1TQString
    a2KShortcut
    slotSLOT (Python callable)
    a5TQObject
    a6char0
    a7uint10
    -

  • -
  • KRecentFilesAction (a0 = 0, a1 = 0, a2 = 10) -
    - -
    returns a KRecentFilesAction instance
    In versions less than KDE 3.2.0 only
    - - - -
    ArgumentTypeDefault
    a0TQObject0
    a1char0
    a2uint10
    -

  • -
  • KRecentFilesAction (text, cut, parent, name = 0, maxItems = 10) -
    - -
    returns a KRecentFilesAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    cutKShortcut
    parentTQObject
    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
    textTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    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
    textTQString
    pixTQIconSet
    cutKShortcut
    parentTQObject
    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
    nameTQString
    -

  • -
  • 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 (TQStringList)
    In versions KDE 3.5.0 and above only

  • -
  • itemSelected (a0) -
    - -
    returns nothing
    In versions less than KDE 3.2.0 only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • itemSelected (string) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    stringTQString
    -

  • -
  • items () -
    - -
    returns (TQStringList)
    In versions KDE 3.5.0 and above only

  • -
  • loadEntries (a0, a1 = TQString .null) -
    - -
    returns nothing
    In versions less than KDE 3.2.0 only
    - - -
    ArgumentTypeDefault
    a0KConfig
    a1TQStringTQString .null
    -

  • -
  • loadEntries (config, groupname = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    configKConfig
    groupnameTQStringTQString .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
    widgetTQWidget
    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 = TQString .null) -
    - -
    returns nothing
    In versions less than KDE 3.2.0 only
    - - -
    ArgumentTypeDefault
    a0KConfig
    a1TQStringTQString .null
    -

  • -
  • saveEntries (config, groupname = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    configKConfig
    groupnameTQStringTQString .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
    a0TQString
    -

  • -
  • 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/python/pykde/doc/classref/kdeui/KRestrictedLine.html b/python/pykde/doc/classref/kdeui/KRestrictedLine.html deleted file mode 100644 index e2f866da..00000000 --- a/python/pykde/doc/classref/kdeui/KRestrictedLine.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - 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 = TQString .null) -
    -
    returns a KRestrictedLine instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    validTQStringTQString .null
    -

  • -
  • invalidChar (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • keyPressEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQKeyEvent
    -

  • -
  • setValidChars (valid) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    validTQString
    -

  • -
  • validChars () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KRootPermsIcon.html b/python/pykde/doc/classref/kdeui/KRootPermsIcon.html deleted file mode 100644 index bd3551dc..00000000 --- a/python/pykde/doc/classref/kdeui/KRootPermsIcon.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    -

  • -
  • status () -
    -
    returns (bool)

  • -
  • updateStatus () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KRootPixmap.html b/python/pykde/doc/classref/kdeui/KRootPixmap.html deleted file mode 100644 index 8cd65837..00000000 --- a/python/pykde/doc/classref/kdeui/KRootPixmap.html +++ /dev/null @@ -1,132 +0,0 @@ - - - - - class KRootPixmap - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KRootPixmap


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKRootPixmap
InheritsTQObject
-

methods

    -
  • KRootPixmap (target, name = 0) -
    -
    returns a KRootPixmap instance
    - - -
    ArgumentTypeDefault
    targetTQWidget
    namechar0
    -

  • -
  • KRootPixmap (target, parent, name = 0) -
    -
    returns a KRootPixmap instance
    - - - -
    ArgumentTypeDefault
    targetTQWidget
    parentTQObject
    namechar0
    -

  • -
  • backgroundUpdated (pm) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pmTQPixmap
    -

  • -
  • checkAvailable (a0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • color () -
    - -
    returns (TQColor)
    In versions KDE 3.2.0 and above only

  • -
  • currentDesktop () -
    -
    returns (int)

  • -
  • customPainting () -
    -
    returns (bool)

  • -
  • enableExports () -
    -
    returns nothing

  • -
  • eventFilter (a0, a1) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    a0TQObject
    a1TQEvent
    -

  • -
  • 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
    colorTQColor
    -

  • -
  • start () -
    -
    returns nothing

  • -
  • stop () -
    -
    returns nothing

  • -
  • updateBackground (a0) -
    Not Implemented
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KRuler.html b/python/pykde/doc/classref/kdeui/KRuler.html deleted file mode 100644 index 3c4c6abc..00000000 --- a/python/pykde/doc/classref/kdeui/KRuler.html +++ /dev/null @@ -1,311 +0,0 @@ - - - - - class KRuler - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KRuler


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKRuler
InheritsTQFrame
-

enums

    -
  • MetricStyle = {Custom, Pixel, Inch, Millimetres, Centimetres, Metres -}
-

methods

    -
  • KRuler (parent = 0, name = 0) -
    -
    returns a KRuler instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KRuler (orient, parent = 0, name = 0, f = 0) -
    -
    returns a KRuler instance
    - - - - -
    ArgumentTypeDefault
    orientOrientation
    parentTQWidget0
    namechar0
    fWFlags0
    -

  • -
  • KRuler (orient, widgetWidth, parent = 0, name = 0, f = 0) -
    -
    returns a KRuler instance
    - - - - - -
    ArgumentTypeDefault
    orientOrientation
    widgetWidthint
    parentTQWidget0
    namechar0
    fWFlags0
    -

  • -
  • bigMarkDistance () -
    -
    returns (int)

  • -
  • drawContents (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQPainter
    -

  • -
  • endLabel () -
    -
    returns (TQString)

  • -
  • 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
    a0TQString
    -

  • -
  • 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/python/pykde/doc/classref/kdeui/KScrollView.html b/python/pykde/doc/classref/kdeui/KScrollView.html deleted file mode 100644 index fba8b9e3..00000000 --- a/python/pykde/doc/classref/kdeui/KScrollView.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - class KScrollView - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KScrollView


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKScrollView
InheritsTQScrollView
-

methods

    -
  • KScrollView (parent = 0, name = 0, f = 0) -
    - -
    returns a KScrollView instance
    In versions KDE 3.5.0 and above only
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    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
    eTQWheelEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KSelectAction.html b/python/pykde/doc/classref/kdeui/KSelectAction.html deleted file mode 100644 index b6ddd526..00000000 --- a/python/pykde/doc/classref/kdeui/KSelectAction.html +++ /dev/null @@ -1,536 +0,0 @@ - - - - - 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
    a0TQString
    a1KShortcutKShortcut ()
    a2TQObject0
    a3char0
    -

  • -
  • KSelectAction (a0, a1, slot, a4, a5 = 0) -
    - -
    returns a KSelectAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1KShortcut
    slotSLOT (Python callable)
    a4TQObject
    a5char0
    -

  • -
  • KSelectAction (text, pix, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KSelectAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQString
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • KSelectAction (text, pix, cut, slot, parent, name = 0) -
    - -
    returns a KSelectAction instance
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KSelectAction (text, pix, cut, slot, parent, name = 0) -
    - -
    returns a KSelectAction instance
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KSelectAction (parent = 0, name = 0) -
    - -
    returns a KSelectAction instance
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • KSelectAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) -
    - -
    returns a KSelectAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQIconSet
    a2KShortcutKShortcut ()
    a3TQObject0
    a4char0
    -

  • -
  • KSelectAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) -
    - -
    returns a KSelectAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2KShortcutKShortcut ()
    a3TQObject0
    a4char0
    -

  • -
  • KSelectAction (a0, a1, a2, slot, a5, a6 = 0) -
    - -
    returns a KSelectAction instance
    In versions less than KDE 3.2.0 only
    - - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQIconSet
    a2KShortcut
    slotSLOT (Python callable)
    a5TQObject
    a6char0
    -

  • -
  • KSelectAction (a0, a1, a2, slot, a5, a6 = 0) -
    - -
    returns a KSelectAction instance
    In versions less than KDE 3.2.0 only
    - - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2KShortcut
    slotSLOT (Python callable)
    a5TQObject
    a6char0
    -

  • -
  • KSelectAction (a0 = 0, a1 = 0) -
    - -
    returns a KSelectAction instance
    In versions less than KDE 3.2.0 only
    - - -
    ArgumentTypeDefault
    a0TQObject0
    a1char0
    -

  • -
  • KSelectAction (text, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KSelectAction instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    textTQString
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • KSelectAction (text, cut, slot, parent, name = 0) -
    - -
    returns a KSelectAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KSelectAction (text, pix, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KSelectAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQIconSet
    cutKShortcutKShortcut ()
    parentTQObject0
    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
    a0TQString
    -

  • -
  • 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
    textTQString
    -

  • -
  • changeItem (a0, a1) -
    - -
    returns nothing
    In versions less than KDE 3.2.0 only
    - - -
    ArgumentTypeDefault
    a0int
    a1TQString
    -

  • -
  • changeItem (a0, a1, a2) -
    - -
    returns nothing
    In versions less than KDE 3.2.0 only
    - - - -
    ArgumentTypeDefault
    a0int
    a1int
    a2TQString
    -

  • -
  • changeItem (index, text) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    indexint
    textTQString
    -

  • -
  • changeItem (id, index, text) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    idint
    indexint
    textTQString
    -

  • -
  • 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 (TQStringList)
    In versions KDE 3.1.0 and above, but less than KDE 3.5.3

  • -
  • comboItems () -
    - -
    returns (TQStringList)
    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 (TQString)
    In versions less than KDE 3.2.0 only

  • -
  • currentText () -
    - -
    returns (TQString)
    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 (TQStringList)
    In versions less than KDE 3.2.0 only

  • -
  • items () -
    - -
    returns (TQStringList)
    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
    a0TQWidget
    a1int-1
    -

  • -
  • plug (widget, index = -1) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    widgetTQWidget
    indexint-1
    -

  • -
  • popupMenu () -
    - -
    returns (TQPopupMenu)
    In versions less than KDE 3.2.0 only

  • -
  • popupMenu () -
    - -
    returns (TQPopupMenu)
    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
    a0TQStringList
    -

  • -
  • setItems (lst) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    lstTQStringList
    -

  • -
  • 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
    a0TQString
    -

  • -
  • 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
    textTQString
    -

  • -
  • 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/python/pykde/doc/classref/kdeui/KSelector.html b/python/pykde/doc/classref/kdeui/KSelector.html deleted file mode 100644 index 4d3f08bd..00000000 --- a/python/pykde/doc/classref/kdeui/KSelector.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - class KSelector - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KSelector


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKSelector
InheritsTQWidget, TQRangeControl
-

methods

    -
  • KSelector (parent = 0, name = 0) -
    -
    returns a KSelector instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KSelector (o, parent = 0, name = 0) -
    -
    returns a KSelector instance
    - - - -
    ArgumentTypeDefault
    oOrientation
    parentTQWidget0
    namechar0
    -

  • -
  • contentsRect () -
    -
    returns (TQRect)

  • -
  • drawArrow (painter, show, pos) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    painterTQPainter
    showbool
    posTQPoint
    -

  • -
  • drawContents (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQPainter
    -

  • -
  • indent () -
    -
    returns (bool)

  • -
  • maxValue () -
    -
    returns (int)

  • -
  • minValue () -
    -
    returns (int)

  • -
  • mouseMoveEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • mousePressEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • orientation () -
    -
    returns (Orientation)

  • -
  • paintEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQPaintEvent
    -

  • -
  • 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
    a0TQWheelEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KSeparator.html b/python/pykde/doc/classref/kdeui/KSeparator.html deleted file mode 100644 index 4f8ead19..00000000 --- a/python/pykde/doc/classref/kdeui/KSeparator.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - class KSeparator - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KSeparator


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKSeparator
InheritsTQFrame
-

methods

    -
  • KSeparator (parent = 0, name = 0, f = 0) -
    -
    returns a KSeparator instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    fWFlags0
    -

  • -
  • KSeparator (orientation, parent = 0, name = 0, f = 0) -
    -
    returns a KSeparator instance
    - - - - -
    ArgumentTypeDefault
    orientationint
    parentTQWidget0
    namechar0
    fWFlags0
    -

  • -
  • drawFrame (p) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pTQPainter
    -

  • -
  • orientation () -
    -
    returns (int)

  • -
  • setOrientation (orient) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    orientint
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KSharedPixmap.html b/python/pykde/doc/classref/kdeui/KSharedPixmap.html deleted file mode 100644 index a95030c2..00000000 --- a/python/pykde/doc/classref/kdeui/KSharedPixmap.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - class KSharedPixmap - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KSharedPixmap


-
- - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKSharedPixmap
InheritsTQWidget, 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
    nameTQString
    -

  • -
  • isAvailable (a0) -
    - -
    returns (bool)
    In versions less than KDE 3.1.2 only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • loadFromShared (name, rect = TQRect ()) -
    - -
    returns (bool)
    In versions KDE 3.1.2 and above only
    - - -
    ArgumentTypeDefault
    nameTQString
    rectTQRectTQRect ()
    -

  • -
  • loadFromShared (a0, a1 = TQRect ()) -
    - -
    returns (bool)
    In versions less than KDE 3.1.2 only
    - - -
    ArgumentTypeDefault
    a0TQString
    a1TQRectTQRect ()
    -

  • -
  • x11Event (a0) -
    Not Implemented
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KShortcutDialog.html b/python/pykde/doc/classref/kdeui/KShortcutDialog.html deleted file mode 100644 index b51e0307..00000000 --- a/python/pykde/doc/classref/kdeui/KShortcutDialog.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - 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
    parentTQWidget0
    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/python/pykde/doc/classref/kdeui/KSplashScreen.html b/python/pykde/doc/classref/kdeui/KSplashScreen.html deleted file mode 100644 index 621b0ae4..00000000 --- a/python/pykde/doc/classref/kdeui/KSplashScreen.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - class KSplashScreen - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KSplashScreen


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKSplashScreen
InheritsTQSplashScreen
-

methods

    -
  • KSplashScreen (pixmap, f = 0) -
    - -
    returns a KSplashScreen instance
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    pixmapTQPixmap
    fWFlags0
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KSqueezedTextLabel.html b/python/pykde/doc/classref/kdeui/KSqueezedTextLabel.html deleted file mode 100644 index 692d7ae7..00000000 --- a/python/pykde/doc/classref/kdeui/KSqueezedTextLabel.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - class KSqueezedTextLabel - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KSqueezedTextLabel


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKSqueezedTextLabel
InheritsTQLabel
-

methods

    -
  • KSqueezedTextLabel (parent, name = 0) -
    -
    returns a KSqueezedTextLabel instance
    - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar0
    -

  • -
  • KSqueezedTextLabel (text, parent, name = 0) -
    -
    returns a KSqueezedTextLabel instance
    - - - -
    ArgumentTypeDefault
    textTQString
    parentTQWidget
    namechar0
    -

  • -
  • minimumSizeHint () -
    -
    returns (TQSize)

  • -
  • resizeEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • setAlignment (a0) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • setText (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • sizeHint () -
    - -
    returns (TQSize)
    In versions KDE 3.3.0 and above only

  • -
  • squeezeTextToLabel () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KStatusBar.html b/python/pykde/doc/classref/kdeui/KStatusBar.html deleted file mode 100644 index b31fea9f..00000000 --- a/python/pykde/doc/classref/kdeui/KStatusBar.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - class KStatusBar - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KStatusBar


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKStatusBar
InheritsTQStatusBar
-

enums

    -
  • BarStatus = {Toggle, Show, Hide -}
-

methods

    -
  • KStatusBar (parent = 0, name = 0) -
    -
    returns a KStatusBar instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • changeItem (text, id) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    textTQString
    idint
    -

  • -
  • hasItem (id) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    idint
    -

  • -
  • insertFixedItem (text, id, permanent = 0) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    textTQString
    idint
    permanentbool0
    -

  • -
  • insertItem (text, id, stretch = 0, permanent = 0) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    textTQString
    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/python/pykde/doc/classref/kdeui/KStatusBarLabel.html b/python/pykde/doc/classref/kdeui/KStatusBarLabel.html deleted file mode 100644 index 7a61e0bf..00000000 --- a/python/pykde/doc/classref/kdeui/KStatusBarLabel.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - class KStatusBarLabel - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KStatusBarLabel


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKStatusBarLabel
InheritsTQLabel
-

methods

    -
  • KStatusBarLabel (text, _id, parent = 0, name = 0) -
    -
    returns a KStatusBarLabel instance
    - - - - -
    ArgumentTypeDefault
    textTQString
    _idint
    parentKStatusBar0
    namechar0
    -

  • -
  • itemPressed (id) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    idint
    -

  • -
  • itemReleased (id) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    idint
    -

  • -
  • mousePressEvent (_event) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _eventTQMouseEvent
    -

  • -
  • mouseReleaseEvent (_event) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _eventTQMouseEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KStdAction.html b/python/pykde/doc/classref/kdeui/KStdAction.html deleted file mode 100644 index 948d5c1c..00000000 --- a/python/pykde/doc/classref/kdeui/KStdAction.html +++ /dev/null @@ -1,579 +0,0 @@ - - - - - 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
    windowTQWidget
    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 (TQStringList)
    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/python/pykde/doc/classref/kdeui/KStdGuiItem.html b/python/pykde/doc/classref/kdeui/KStdGuiItem.html deleted file mode 100644 index af7dae3c..00000000 --- a/python/pykde/doc/classref/kdeui/KStdGuiItem.html +++ /dev/null @@ -1,213 +0,0 @@ - - - - - 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 (TQString)
    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/python/pykde/doc/classref/kdeui/KStringListValidator.html b/python/pykde/doc/classref/kdeui/KStringListValidator.html deleted file mode 100644 index 94027db2..00000000 --- a/python/pykde/doc/classref/kdeui/KStringListValidator.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - class KStringListValidator - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KStringListValidator


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKStringListValidator
InheritsTQValidator
-

methods

    -
  • KStringListValidator (list = TQStringList (), rejecting = 1, fixupEnabled = 0, parent = 0, name = 0) -
    -
    returns a KStringListValidator instance
    - - - - - -
    ArgumentTypeDefault
    listTQStringListTQStringList ()
    rejectingbool1
    fixupEnabledbool0
    parentTQObject0
    namechar0
    -

  • -
  • fixup (input) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    inputTQString
    -

  • -
  • isFixupEnabled () -
    -
    returns (bool)

  • -
  • isRejecting () -
    -
    returns (bool)

  • -
  • setFixupEnabled (fixupEnabled) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    fixupEnabledbool
    -

  • -
  • setRejecting (rejecting) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    rejectingbool
    -

  • -
  • setStringList (list) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    listTQStringList
    -

  • -
  • stringList () -
    -
    returns (TQStringList)

  • -
  • validate (input) -
    -
    returns (State) pos (int)
    - -
    ArgumentTypeDefault
    inputTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KSystemTray.html b/python/pykde/doc/classref/kdeui/KSystemTray.html deleted file mode 100644 index 05e45a61..00000000 --- a/python/pykde/doc/classref/kdeui/KSystemTray.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - - class KSystemTray - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KSystemTray


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKSystemTray
InheritsTQLabel
-

methods

    -
  • KSystemTray (parent = 0, name = 0) -
    -
    returns a KSystemTray instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    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
    a0TQEvent
    -

  • -
  • loadIcon (icon, instance = KGlobal .instance ()) -
    - - -
    returns (TQPixmap)
    In versions KDE 3.2.0 and above only
    static
    - - -
    ArgumentTypeDefault
    iconTQString
    instanceKInstanceKGlobal .instance ()
    -

  • -
  • mousePressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • mouseReleaseEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • 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
    titleTQString
    -

  • -
  • 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
    iconTQPixmap
    -

  • -
  • showEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQShowEvent
    -

  • -
  • toggleActive () -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KTabBar.html b/python/pykde/doc/classref/kdeui/KTabBar.html deleted file mode 100644 index a6b13954..00000000 --- a/python/pykde/doc/classref/kdeui/KTabBar.html +++ /dev/null @@ -1,268 +0,0 @@ - - - - - class KTabBar - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KTabBar


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKTabBar
InheritsTQTabBar
-

methods

    -
  • KTabBar (parent = 0, name = 0) -
    - -
    returns a KTabBar instance
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    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
    a1TQPoint
    -

  • -
  • dragMoveEvent (e) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    eTQDragMoveEvent
    -

  • -
  • dropEvent (e) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    eTQDropEvent
    -

  • -
  • 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
    a0TQTab
    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
    eTQMouseEvent
    -

  • -
  • 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
    eTQMouseEvent
    -

  • -
  • mousePressEvent (e) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • mouseReleaseEvent (e) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • 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
    a0TQPainter
    a1TQRect
    a2TQTab
    a3bool
    -

  • -
  • receivedDropEvent (a0, a1) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    a0int
    a1TQDropEvent
    -

  • -
  • removeTab (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQTab
    -

  • -
  • 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
    a1TQColor
    -

  • -
  • 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 (TQColor)
    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
    eTQWheelEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KTabCtl.html b/python/pykde/doc/classref/kdeui/KTabCtl.html deleted file mode 100644 index ca983d5e..00000000 --- a/python/pykde/doc/classref/kdeui/KTabCtl.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - class KTabCtl - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KTabCtl


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKTabCtl
InheritsTQWidget
-

methods

    -
  • KTabCtl (parent = 0, name = 0) -
    -
    returns a KTabCtl instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • addTab (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0TQWidget
    a1TQString
    -

  • -
  • getChildRect () -
    -
    returns (TQRect)

  • -
  • isTabEnabled (a0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • paintEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQPaintEvent
    -

  • -
  • resizeEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • setBorder (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • setFont (font) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    fontTQFont
    -

  • -
  • setShape (shape) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    shapeTQTabBar.Shape
    -

  • -
  • setSizes () -
    -
    returns nothing

  • -
  • setTabEnabled (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0TQString
    a1bool
    -

  • -
  • setTabFont (font) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    fontTQFont
    -

  • -
  • show () -
    -
    returns nothing

  • -
  • showTab (i) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iint
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • tabSelected (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KTabWidget.html b/python/pykde/doc/classref/kdeui/KTabWidget.html deleted file mode 100644 index d8fde767..00000000 --- a/python/pykde/doc/classref/kdeui/KTabWidget.html +++ /dev/null @@ -1,360 +0,0 @@ - - - - - class KTabWidget - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KTabWidget


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKTabWidget
InheritsTQTabWidget
-

methods

    -
  • KTabWidget (parent = 0, name = 0, f = 0) -
    - -
    returns a KTabWidget instance
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    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
    a0TQWidget
    a1TQString
    -

  • -
  • changeTab (child, iconset, label) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - - - -
    ArgumentTypeDefault
    childTQWidget
    iconsetTQIconSet
    labelTQString
    -

  • -
  • closeRequest (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQWidget
    -

  • -
  • closeRequest (a0) -
    Not Implemented
    -

  • -
  • contextMenu (a0) -
    Not Implemented
    -

  • -
  • contextMenu (a0, a1) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    a0TQWidget
    a1TQPoint
    -

  • -
  • contextMenu (a0, a1) -
    Not Implemented
    -

  • -
  • dragMoveEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQDragMoveEvent
    -

  • -
  • dropEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQDropEvent
    -

  • -
  • 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
    a0TQWidget
    -

  • -
  • initiateDrag (a0) -
    Not Implemented
    -

  • -
  • insertTab (a0, a1, index = -1) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - - - -
    ArgumentTypeDefault
    a0TQWidget
    a1TQString
    indexint-1
    -

  • -
  • insertTab (child, iconset, label, index = -1) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - - - - -
    ArgumentTypeDefault
    childTQWidget
    iconsetTQIconSet
    labelTQString
    indexint-1
    -

  • -
  • insertTab (a0, a1, index = -1) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - - - -
    ArgumentTypeDefault
    a0TQWidget
    a1TQTab
    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 (TQString)
    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
    a0TQWidget
    -

  • -
  • mouseDoubleClick (a0) -
    Not Implemented
    -

  • -
  • mouseDoubleClickEvent (e) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • 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
    a0TQWidget
    -

  • -
  • mouseMiddleClick (a0) -
    Not Implemented
    -

  • -
  • mousePressEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • 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
    a0TQDropEvent
    -

  • -
  • receivedDropEvent (a0, a1) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    a0TQWidget
    a1TQDropEvent
    -

  • -
  • receivedDropEvent (a0, a1) -
    Not Implemented
    -

  • -
  • removePage (w) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    wTQWidget
    -

  • -
  • resizeEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • 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
    a0TQWidget
    colorTQColor
    -

  • -
  • setTabLabel (a0, a1) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - - -
    ArgumentTypeDefault
    a0TQWidget
    a1TQString
    -

  • -
  • 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 (TQColor)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQWidget
    -

  • -
  • tabLabel (a0) -
    - -
    returns (TQString)
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    a0TQWidget
    -

  • -
  • 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
    eTQWheelEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KTextBrowser.html b/python/pykde/doc/classref/kdeui/KTextBrowser.html deleted file mode 100644 index 0700fa9c..00000000 --- a/python/pykde/doc/classref/kdeui/KTextBrowser.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - class KTextBrowser - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KTextBrowser


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKTextBrowser
InheritsTQTextBrowser
-

methods

    -
  • KTextBrowser (parent = 0, name = 0, notifyClick = 0) -
    -
    returns a KTextBrowser instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    notifyClickbool0
    -

  • -
  • contentsWheelEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQWheelEvent
    -

  • -
  • createPopupMenu (pos) -
    - -
    returns (TQPopupMenu)
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    posTQPoint
    -

  • -
  • isNotifyClick () -
    -
    returns (bool)

  • -
  • keyPressEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQKeyEvent
    -

  • -
  • mailClick (name, address) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    nameTQString
    addressTQString
    -

  • -
  • setNotifyClick (notifyClick) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    notifyClickbool
    -

  • -
  • setSource (name) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • urlClick (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • viewportMouseMoveEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KTextEdit.html b/python/pykde/doc/classref/kdeui/KTextEdit.html deleted file mode 100644 index 5662f941..00000000 --- a/python/pykde/doc/classref/kdeui/KTextEdit.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - class KTextEdit - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KTextEdit


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKTextEdit
InheritsTQTextEdit
-

methods

    -
  • KTextEdit (text, context = TQString .null, parent = 0, name = 0) -
    - -
    returns a KTextEdit instance
    In versions KDE 3.1.0 and above only
    - - - - -
    ArgumentTypeDefault
    textTQString
    contextTQStringTQString .null
    parentTQWidget0
    namechar0
    -

  • -
  • KTextEdit (parent = 0, name = 0) -
    - -
    returns a KTextEdit instance
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    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
    a0TQWheelEvent
    -

  • -
  • createPopupMenu (pos) -
    - -
    returns (TQPopupMenu)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    posTQPoint
    -

  • -
  • createPopupMenu () -
    - -
    returns (TQPopupMenu)
    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
    a0TQFocusEvent
    -

  • -
  • 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
    a0TQKeyEvent
    -

  • -
  • 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
    paletteTQPalette
    -

  • -
  • setReadOnly (readOnly) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    readOnlybool
    -

  • -
  • virtual_hook (id, data) -
    Not Implemented
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KTimeWidget.html b/python/pykde/doc/classref/kdeui/KTimeWidget.html deleted file mode 100644 index 3cc0e5ab..00000000 --- a/python/pykde/doc/classref/kdeui/KTimeWidget.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - class KTimeWidget - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KTimeWidget


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKTimeWidget
InheritsTQWidget
-

methods

    -
  • KTimeWidget (parent = 0, name = 0) -
    - -
    returns a KTimeWidget instance
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KTimeWidget (time, parent = 0, name = 0) -
    - -
    returns a KTimeWidget instance
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    timeTQTime
    parentTQWidget0
    namechar0
    -

  • -
  • setTime (time) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    timeTQTime
    -

  • -
  • time () -
    - -
    returns (TQTime)
    In versions KDE 3.2.0 and above only

  • -
  • valueChanged (time) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    timeTQTime
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KTimezoneWidget.html b/python/pykde/doc/classref/kdeui/KTimezoneWidget.html deleted file mode 100644 index 05bda3ac..00000000 --- a/python/pykde/doc/classref/kdeui/KTimezoneWidget.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    dbKTimezones0
    -

  • -
  • displayName (zone) -
    - - -
    returns (TQString)
    In versions KDE 3.5.0 and above only
    static
    - -
    ArgumentTypeDefault
    zoneKTimezone
    -

  • -
  • selection () -
    - -
    returns (TQStringList)
    In versions KDE 3.5.0 and above only

  • -
  • setSelected (zone, selected) -
    - -
    returns nothing
    In versions KDE 3.5.0 and above only
    - - -
    ArgumentTypeDefault
    zoneTQString
    selectedbool
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KTipDatabase.html b/python/pykde/doc/classref/kdeui/KTipDatabase.html deleted file mode 100644 index a0e56e8e..00000000 --- a/python/pykde/doc/classref/kdeui/KTipDatabase.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - class KTipDatabase - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KTipDatabase


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKTipDatabase
Inherits
-

methods

    -
  • KTipDatabase (tipFile = TQString .null) -
    -
    returns a KTipDatabase instance
    - -
    ArgumentTypeDefault
    tipFileTQStringTQString .null
    -

  • -
  • KTipDatabase (tipFiles) -
    - -
    returns a KTipDatabase instance
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    tipFilesTQStringList
    -

  • -
  • nextTip () -
    -
    returns nothing

  • -
  • prevTip () -
    -
    returns nothing

  • -
  • tip () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KTipDialog.html b/python/pykde/doc/classref/kdeui/KTipDialog.html deleted file mode 100644 index 86e5d68d..00000000 --- a/python/pykde/doc/classref/kdeui/KTipDialog.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    -

  • -
  • KTipDialog (a0, a1 = 0, a2 = 0) -
    - -
    returns a KTipDialog instance
    In versions less than KDE 3.1.0 only
    - - - -
    ArgumentTypeDefault
    a0KTipDatabase
    a1TQWidget0
    a2char0
    -

  • -
  • eventFilter (a0, a1) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    a0TQObject
    a1TQEvent
    -

  • -
  • 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
    parentTQWidget
    tipFilesTQStringList
    forcebool0
    -

  • -
  • showTip (parent, tipFile = TQString .null, force = 0) -
    - -
    returns nothing
    static
    - - - -
    ArgumentTypeDefault
    parentTQWidget
    tipFileTQStringTQString .null
    forcebool0
    -

  • -
  • showTip (tipFile = TQString .null, force = 0) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    tipFileTQStringTQString .null
    forcebool0
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KToggleAction.html b/python/pykde/doc/classref/kdeui/KToggleAction.html deleted file mode 100644 index fbf16301..00000000 --- a/python/pykde/doc/classref/kdeui/KToggleAction.html +++ /dev/null @@ -1,298 +0,0 @@ - - - - - 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
    a0TQString
    a1KShortcutKShortcut ()
    a2TQObject0
    a3char0
    -

  • -
  • KToggleAction (a0, a1, slot, a4, a5 = 0) -
    - -
    returns a KToggleAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1KShortcut
    slotSLOT (Python callable)
    a4TQObject
    a5char0
    -

  • -
  • KToggleAction (text, pix, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KToggleAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQString
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • KToggleAction (text, pix, cut, slot, parent, name = 0) -
    - -
    returns a KToggleAction instance
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KToggleAction (text, pix, cut, slot, parent, name = 0) -
    - -
    returns a KToggleAction instance
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KToggleAction (parent = 0, name = 0) -
    - -
    returns a KToggleAction instance
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • KToggleAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) -
    - -
    returns a KToggleAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQIconSet
    a2KShortcutKShortcut ()
    a3TQObject0
    a4char0
    -

  • -
  • KToggleAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) -
    - -
    returns a KToggleAction instance
    In versions less than KDE 3.2.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2KShortcutKShortcut ()
    a3TQObject0
    a4char0
    -

  • -
  • KToggleAction (a0, a1, a2, slot, a5, a6 = 0) -
    - -
    returns a KToggleAction instance
    In versions less than KDE 3.2.0 only
    - - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQIconSet
    a2KShortcut
    slotSLOT (Python callable)
    a5TQObject
    a6char0
    -

  • -
  • KToggleAction (a0, a1, a2, slot, a5, a6 = 0) -
    - -
    returns a KToggleAction instance
    In versions less than KDE 3.2.0 only
    - - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2KShortcut
    slotSLOT (Python callable)
    a5TQObject
    a6char0
    -

  • -
  • KToggleAction (a0 = 0, a1 = 0) -
    - -
    returns a KToggleAction instance
    In versions less than KDE 3.2.0 only
    - - -
    ArgumentTypeDefault
    a0TQObject0
    a1char0
    -

  • -
  • KToggleAction (text, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KToggleAction instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    textTQString
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • KToggleAction (text, cut, slot, parent, name = 0) -
    - -
    returns a KToggleAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject
    namechar0
    -

  • -
  • KToggleAction (text, pix, cut = KShortcut (), parent = 0, name = 0) -
    - -
    returns a KToggleAction instance
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    textTQString
    pixTQIconSet
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • exclusiveGroup () -
    - -
    returns (TQString)
    In versions less than KDE 3.2.0 only

  • -
  • exclusiveGroup () -
    - -
    returns (TQString)
    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
    a0TQWidget
    a1int-1
    -

  • -
  • plug (widget, index = -1) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    widgetTQWidget
    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
    a0TQString
    -

  • -
  • setExclusiveGroup (name) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • 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 (TQString)
    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/python/pykde/doc/classref/kdeui/KToggleFullScreenAction.html b/python/pykde/doc/classref/kdeui/KToggleFullScreenAction.html deleted file mode 100644 index 02c62615..00000000 --- a/python/pykde/doc/classref/kdeui/KToggleFullScreenAction.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - 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)
    parentTQObject
    windowTQWidget
    namechar
    -

  • -
  • eventFilter (o, e) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    oTQObject
    eTQEvent
    -

  • -
  • 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
    windowTQWidget
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KToggleToolBarAction.html b/python/pykde/doc/classref/kdeui/KToggleToolBarAction.html deleted file mode 100644 index f6d8536a..00000000 --- a/python/pykde/doc/classref/kdeui/KToggleToolBarAction.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - 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
    a1TQString
    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
    a1TQString
    a2KActionCollection
    a3char
    -

  • -
  • KToggleToolBarAction (toolBarName, text, parent, name) -
    - -
    returns a KToggleToolBarAction instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    toolBarNamechar
    textTQString
    parentKActionCollection
    namechar
    -

  • -
  • KToggleToolBarAction (toolBar, text, parent, name) -
    - -
    returns a KToggleToolBarAction instance
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    toolBarKToolBar
    textTQString
    parentKActionCollection
    namechar
    -

  • -
  • plug (a0, a1 = -1) -
    - -
    returns (int)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    - - -
    ArgumentTypeDefault
    a0TQWidget
    a1int-1
    -

  • -
  • plug (widget, index = -1) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    widgetTQWidget
    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/python/pykde/doc/classref/kdeui/KToolBar.html b/python/pykde/doc/classref/kdeui/KToolBar.html deleted file mode 100644 index 3808debe..00000000 --- a/python/pykde/doc/classref/kdeui/KToolBar.html +++ /dev/null @@ -1,797 +0,0 @@ - - - - - class KToolBar - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KToolBar


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKToolBar
InheritsTQToolBar
-

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
    parentTQWidget
    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
    parentWindowTQMainWindow
    dockTQWidget
    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
    _configGroupTQString
    forceGlobalbool0
    -

  • -
  • applySettings (config, configGroup, force) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    configKConfig
    configGroupTQString
    forcebool
    -

  • -
  • applySettings (config, configGroup) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    configKConfig
    configGroupTQString
    -

  • -
  • barPos () -
    -
    returns (BarPosition)

  • -
  • changeComboItem (id, text, index = -1) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    idint
    textTQString
    indexint-1
    -

  • -
  • childEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQChildEvent
    -

  • -
  • 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
    eTQEvent
    -

  • -
  • fullSize () -
    -
    returns (bool)

  • -
  • getButton (id) -
    -
    returns (KToolBarButton)
    - -
    ArgumentTypeDefault
    idint
    -

  • -
  • getCombo (id) -
    -
    returns (KComboBox)
    - -
    ArgumentTypeDefault
    idint
    -

  • -
  • getComboItem (id, index = -1) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    idint
    indexint-1
    -

  • -
  • getLined (id) -
    -
    returns (KLineEdit)
    - -
    ArgumentTypeDefault
    idint
    -

  • -
  • getLinedText (id) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    idint
    -

  • -
  • getWidget (id) -
    -
    returns (TQWidget)
    - -
    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)
    iconsTQString
    indexint-1
    -

  • -
  • insertButton (icon, id, enabled = 1, text = TQString .null, index = -1, _instance = KGlobal .instance ()) -
    -
    returns (int)
    - - - - - - -
    ArgumentTypeDefault
    iconTQString
    idint
    enabledbool1
    textTQStringTQString .null
    indexint-1
    _instanceKInstanceKGlobal .instance ()
    -

  • -
  • insertButton (icon, id, signal, slot, enabled = 1, text = TQString .null, index = -1, _instance = KGlobal .instance ()) -
    -
    returns (int)
    - - - - - - - - -
    ArgumentTypeDefault
    iconTQString
    idint
    signalchar
    slotSLOT (Python callable)
    enabledbool1
    textTQStringTQString .null
    indexint-1
    _instanceKInstanceKGlobal .instance ()
    -

  • -
  • insertButton (pixmap, id, enabled = 1, text = TQString .null, index = -1) -
    -
    returns (int)
    - - - - - -
    ArgumentTypeDefault
    pixmapTQPixmap
    idint
    enabledbool1
    textTQStringTQString .null
    indexint-1
    -

  • -
  • insertButton (pixmap, id, signal, slot, enabled = 1, text = TQString .null, index = -1) -
    -
    returns (int)
    - - - - - - - -
    ArgumentTypeDefault
    pixmapTQPixmap
    idint
    signalchar
    slotSLOT (Python callable)
    enabledbool1
    textTQStringTQString .null
    indexint-1
    -

  • -
  • insertButton (icon, id, popup, enabled, _text, index = -1) -
    -
    returns (int)
    - - - - - - -
    ArgumentTypeDefault
    iconTQString
    idint
    popupTQPopupMenu
    enabledbool
    _textTQString
    indexint-1
    -

  • -
  • insertButton (pixmap, id, popup, enabled, _text, index = -1) -
    -
    returns (int)
    - - - - - - -
    ArgumentTypeDefault
    pixmapTQPixmap
    idint
    popupTQPopupMenu
    enabledbool
    _textTQString
    indexint-1
    -

  • -
  • insertCombo (list, id, writable, signal, slot, enabled = 1, tooltiptext = TQString .null, size = 70, index = -1, policy = TQComboBox .AtBottom) -
    -
    returns (int)
    - - - - - - - - - - -
    ArgumentTypeDefault
    listTQStringList
    idint
    writablebool
    signalchar
    slotSLOT (Python callable)
    enabledbool1
    tooltiptextTQStringTQString .null
    sizeint70
    indexint-1
    policyTQComboBox.PolicyTQComboBox .AtBottom
    -

  • -
  • insertCombo (text, id, writable, signal, slot, enabled = 1, tooltiptext = TQString .null, size = 70, index = -1, policy = TQComboBox .AtBottom) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - - - - - - - - - -
    ArgumentTypeDefault
    textTQString
    idint
    writablebool
    signalchar
    slotSLOT (Python callable)
    enabledbool1
    tooltiptextTQStringTQString .null
    sizeint70
    indexint-1
    policyTQComboBox.PolicyTQComboBox .AtBottom
    -

  • -
  • insertCombo (a0, a1, a2, a3, a4, a5, a6 = 1, a7 = TQString .null, a8 = 70, a9 = -1, a10 = TQComboBox .AtBottom) -
    - -
    returns (int)
    In versions less than KDE 3.2.0 only
    - - - - - - - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1int
    a2bool
    a3char
    a4TQObject
    a5char
    a6bool1
    a7TQStringTQString .null
    a8int70
    a9int-1
    a10TQComboBox.PolicyTQComboBox .AtBottom
    -

  • -
  • insertComboItem (id, text, index) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    idint
    textTQString
    indexint
    -

  • -
  • insertComboList (id, list, index) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    idint
    listTQStringList
    indexint
    -

  • -
  • insertLineSeparator (index, id) -
    -
    returns (int)
    - - -
    ArgumentTypeDefault
    indexint
    idint
    -

  • -
  • insertLined (text, id, signal, slot, enabled = 1, toolTipText = TQString .null, size = 70, index = -1) -
    -
    returns (int)
    - - - - - - - - -
    ArgumentTypeDefault
    textTQString
    idint
    signalchar
    slotSLOT (Python callable)
    enabledbool1
    toolTipTextTQStringTQString .null
    sizeint70
    indexint-1
    -

  • -
  • insertSeparator (index, id) -
    -
    returns (int)
    - - -
    ArgumentTypeDefault
    indexint
    idint
    -

  • -
  • insertWidget (id, width, _widget, index = -1) -
    -
    returns (int)
    - - - - -
    ArgumentTypeDefault
    idint
    widthint
    _widgetTQWidget
    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
    eTQDomElement
    -

  • -
  • maxHeight () -
    -
    returns (int)

  • -
  • maxWidth () -
    -
    returns (int)

  • -
  • minimumSize () -
    -
    returns (TQSize)

  • -
  • minimumSizeHint () -
    -
    returns (TQSize)

  • -
  • modechange () -
    -
    returns nothing

  • -
  • mousePressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • 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
    eTQResizeEvent
    -

  • -
  • saveSettings (config, configGroup) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    configKConfig
    configGroupTQString
    -

  • -
  • saveState () -
    -
    returns nothing

  • -
  • saveState (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQDomElement
    -

  • -
  • 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
    _iconTQString
    -

  • -
  • setButtonIconSet (id, iconset) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    idint
    iconsetTQIconSet
    -

  • -
  • setButtonPixmap (id, _pixmap) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    idint
    _pixmapTQPixmap
    -

  • -
  • setCurrentComboItem (id, index) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    idint
    indexint
    -

  • -
  • setDelayedPopup (id, _popup, toggle = 0) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    idint
    _popupTQPopupMenu
    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
    txtTQString
    -

  • -
  • 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
    textTQString
    -

  • -
  • setMaxHeight (h) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    hint
    -

  • -
  • setMaxWidth (dw) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    dwint
    -

  • -
  • setStretchableWidget (w) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    wTQWidget
    -

  • -
  • setText (txt) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    txtTQString
    -

  • -
  • setTitle (_title) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _titleTQString
    -

  • -
  • setToggle (id, flag = 1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    idint
    flagbool1
    -

  • -
  • setXMLGUIClient (client) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    clientKXMLGUIClient
    -

  • -
  • settingsGroup () -
    -
    returns (TQString)

  • -
  • show () -
    -
    returns nothing

  • -
  • showEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQShowEvent
    -

  • -
  • showItem (id) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    idint
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • sizePolicy () -
    -
    returns (TQSizePolicy)

  • -
  • text () -
    -
    returns (TQString)

  • -
  • 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/python/pykde/doc/classref/kdeui/KToolBarButton.html b/python/pykde/doc/classref/kdeui/KToolBarButton.html deleted file mode 100644 index 7b898572..00000000 --- a/python/pykde/doc/classref/kdeui/KToolBarButton.html +++ /dev/null @@ -1,325 +0,0 @@ - - - - - class KToolBarButton - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KToolBarButton


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKToolBarButton
InheritsTQToolButton
-

methods

    -
  • KToolBarButton (icon, id, parent, name = 0, txt = TQString .null, _instance = KGlobal .instance ()) -
    -
    returns a KToolBarButton instance
    - - - - - - -
    ArgumentTypeDefault
    iconTQString
    idint
    parentTQWidget
    namechar0
    txtTQStringTQString .null
    _instanceKInstanceKGlobal .instance ()
    -

  • -
  • KToolBarButton (pixmap, id, parent, name = 0, txt = TQString .null) -
    -
    returns a KToolBarButton instance
    - - - - - -
    ArgumentTypeDefault
    pixmapTQPixmap
    idint
    parentTQWidget
    namechar0
    txtTQStringTQString .null
    -

  • -
  • KToolBarButton (parent = 0, name = 0) -
    -
    returns a KToolBarButton instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    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
    pTQPainter
    -

  • -
  • enterEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQEvent
    -

  • -
  • event (e) -
    - -
    returns (bool)
    In versions KDE 3.5.0 and above only
    - -
    ArgumentTypeDefault
    eTQEvent
    -

  • -
  • eventFilter (o, e) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    oTQObject
    eTQEvent
    -

  • -
  • 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
    eTQEvent
    -

  • -
  • minimumSize () -
    -
    returns (TQSize)

  • -
  • minimumSizeHint () -
    -
    returns (TQSize)

  • -
  • modeChange () -
    -
    returns nothing

  • -
  • mousePressEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.4.2 and above only
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • mouseReleaseEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.4.2 and above only
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • on (flag = 1) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    flagbool1
    -

  • -
  • paletteChange (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQPalette
    -

  • -
  • popup () -
    -
    returns (TQPopupMenu)

  • -
  • pressed (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • released (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • setDefaultIcon (icon) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iconTQString
    -

  • -
  • setDefaultPixmap (pixmap) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pixmapTQPixmap
    -

  • -
  • setDelayedPopup (p, unused = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    pTQPopupMenu
    unusedbool0
    -

  • -
  • setDisabledIcon (icon) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iconTQString
    -

  • -
  • setDisabledPixmap (pixmap) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pixmapTQPixmap
    -

  • -
  • setIcon (icon) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iconTQString
    -

  • -
  • setIcon (pixmap) -
    - -
    returns nothing
    In versions KDE 3.0.1 and above only
    - -
    ArgumentTypeDefault
    pixmapTQPixmap
    -

  • -
  • setIcon (icon, generate) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    iconTQString
    generatebool
    -

  • -
  • setIconSet (iconset) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iconsetTQIconSet
    -

  • -
  • setNoStyle (no_style = 1) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    no_stylebool1
    -

  • -
  • setPixmap (pixmap) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pixmapTQPixmap
    -

  • -
  • setPopup (p, unused) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    pTQPopupMenu
    unusedbool
    -

  • -
  • setRadio (f = 1) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    fbool1
    -

  • -
  • setText (text) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • setTextLabel (a0, tipToo) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0TQString
    tipToobool
    -

  • -
  • setToggle (toggle = 1) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    togglebool1
    -

  • -
  • showMenu () -
    -
    returns nothing

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • 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/python/pykde/doc/classref/kdeui/KToolBarLabelAction.html b/python/pykde/doc/classref/kdeui/KToolBarLabelAction.html deleted file mode 100644 index 6e2083a4..00000000 --- a/python/pykde/doc/classref/kdeui/KToolBarLabelAction.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - - 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
    textTQString
    cutKShortcut
    receiverTQObject
    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
    buddyTQWidget
    textTQString
    cutKShortcut
    receiverTQObject
    slotchar
    parentKActionCollection
    namechar
    -

  • -
  • KToolBarLabelAction (label, cut, receiver, slot, parent, name) -
    - -
    returns a KToolBarLabelAction instance
    In versions KDE 3.4.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    labelTQLabel
    cutKShortcut
    receiverTQObject
    slotchar
    parentKActionCollection
    namechar
    -

  • -
  • buddy () -
    - -
    returns (TQWidget)
    In versions KDE 3.4.0 and above only

  • -
  • label () -
    - -
    returns (TQLabel)
    In versions KDE 3.4.0 and above only

  • -
  • setBuddy (buddy) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    buddyTQWidget
    -

  • -
  • setText (text) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • virtual_hook (id, data) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - - -
    ArgumentTypeDefault
    idint
    datavoid
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KToolBarPopupAction.html b/python/pykde/doc/classref/kdeui/KToolBarPopupAction.html deleted file mode 100644 index 51869efd..00000000 --- a/python/pykde/doc/classref/kdeui/KToolBarPopupAction.html +++ /dev/null @@ -1,177 +0,0 @@ - - - - - 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
    a0TQString
    a1TQString
    a2KShortcutKShortcut ()
    a3TQObject0
    a4char0
    -

  • -
  • KToolBarPopupAction (a0, a1, a2, slot, a5 = 0, a6 = 0) -
    - -
    returns a KToolBarPopupAction instance
    In versions less than KDE 3.2.0 only
    - - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    a2KShortcut
    slotSLOT (Python callable)
    a5TQObject0
    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
    textTQString
    iconTQString
    cutKShortcutKShortcut ()
    parentTQObject0
    namechar0
    -

  • -
  • KToolBarPopupAction (text, icon, cut, slot, parent = 0, name = 0) -
    - -
    returns a KToolBarPopupAction instance
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    iconTQString
    cutKShortcut
    slotSLOT (Python callable)
    parentTQObject0
    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
    a0TQWidget
    a1int-1
    -

  • -
  • plug (widget, index = -1) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    widgetTQWidget
    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/python/pykde/doc/classref/kdeui/KToolBarRadioGroup.html b/python/pykde/doc/classref/kdeui/KToolBarRadioGroup.html deleted file mode 100644 index abdce057..00000000 --- a/python/pykde/doc/classref/kdeui/KToolBarRadioGroup.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - class KToolBarRadioGroup - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KToolBarRadioGroup


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKToolBarRadioGroup
InheritsTQObject
-

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/python/pykde/doc/classref/kdeui/KToolBarSeparator.html b/python/pykde/doc/classref/kdeui/KToolBarSeparator.html deleted file mode 100644 index 9ba79121..00000000 --- a/python/pykde/doc/classref/kdeui/KToolBarSeparator.html +++ /dev/null @@ -1,81 +0,0 @@ - - - - - class KToolBarSeparator - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KToolBarSeparator


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKToolBarSeparator
InheritsTQFrame
-

methods

    -
  • KToolBarSeparator (a0, l, parent, name = 0) -
    -
    returns a KToolBarSeparator instance
    - - - - -
    ArgumentTypeDefault
    a0Orientation
    lbool
    parentTQToolBar
    namechar0
    -

  • -
  • drawContents (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQPainter
    -

  • -
  • orientation () -
    -
    returns (Orientation)

  • -
  • setOrientation (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0Orientation
    -

  • -
  • showLine () -
    -
    returns (bool)

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • sizePolicy () -
    -
    returns (TQSizePolicy)

  • -
  • styleChange (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQStyle
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KURLLabel.html b/python/pykde/doc/classref/kdeui/KURLLabel.html deleted file mode 100644 index d0d665b3..00000000 --- a/python/pykde/doc/classref/kdeui/KURLLabel.html +++ /dev/null @@ -1,263 +0,0 @@ - - - - - class KURLLabel - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KURLLabel


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKURLLabel
InheritsTQLabel
-

methods

    -
  • KURLLabel (parent = 0, name = 0) -
    -
    returns a KURLLabel instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KURLLabel (url, text = TQString .null, parent = 0, name = 0) -
    -
    returns a KURLLabel instance
    - - - - -
    ArgumentTypeDefault
    urlTQString
    textTQStringTQString .null
    parentTQWidget0
    namechar0
    -

  • -
  • activeRect () -
    - -
    returns (TQRect)
    In versions KDE 3.5.1 and above only

  • -
  • altPixmap () -
    -
    returns (TQPixmap)

  • -
  • enterEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQEvent
    -

  • -
  • enteredURL (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • enteredURL () -
    -
    returns nothing

  • -
  • event (e) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    eTQEvent
    -

  • -
  • isFloatEnabled () -
    -
    returns (bool)

  • -
  • isGlowEnabled () -
    -
    returns (bool)

  • -
  • leaveEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQEvent
    -

  • -
  • leftClickedURL (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • leftClickedURL () -
    -
    returns nothing

  • -
  • leftURL (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • leftURL () -
    -
    returns nothing

  • -
  • middleClickedURL (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • middleClickedURL () -
    -
    returns nothing

  • -
  • mouseReleaseEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • rightClickedURL (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • rightClickedURL () -
    -
    returns nothing

  • -
  • setAltPixmap (altPix) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    altPixTQPixmap
    -

  • -
  • setCursor (cursor) -
    - -
    returns nothing
    In versions KDE 3.5.1 and above only
    - -
    ArgumentTypeDefault
    cursorTQCursor
    -

  • -
  • 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
    a0TQFont
    -

  • -
  • setGlow (glow = 1) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    glowbool1
    -

  • -
  • setHighlightedColor (highcolor) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    highcolorTQColor
    -

  • -
  • setHighlightedColor (highcolor) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    highcolorTQString
    -

  • -
  • setMargin (margin) -
    - -
    returns nothing
    In versions KDE 3.5.1 and above only
    - -
    ArgumentTypeDefault
    marginint
    -

  • -
  • setSelectedColor (selcolor) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    selcolorTQColor
    -

  • -
  • setSelectedColor (selcolor) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    selcolorTQString
    -

  • -
  • setSizePolicy (a0) -
    - -
    returns nothing
    In versions KDE 3.5.2 and above only
    - -
    ArgumentTypeDefault
    a0TQSizePolicy
    -

  • -
  • setTipText (tip) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    tipTQString
    -

  • -
  • setURL (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • setUnderline (on = 1) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    onbool1
    -

  • -
  • setUseCursor (on, cursor = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    onbool
    cursorTQCursor0
    -

  • -
  • setUseTips (on = 1) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    onbool1
    -

  • -
  • tipText () -
    -
    returns (TQString)

  • -
  • unsetCursor () -
    - -
    returns nothing
    In versions KDE 3.5.1 and above only

  • -
  • url () -
    -
    returns (TQString)

  • -
  • useCursor () -
    -
    returns (bool)

  • -
  • useTips () -
    -
    returns (bool)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KValueSelector.html b/python/pykde/doc/classref/kdeui/KValueSelector.html deleted file mode 100644 index 59c0ad36..00000000 --- a/python/pykde/doc/classref/kdeui/KValueSelector.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    -

  • -
  • KValueSelector (o, parent = 0, name = 0) -
    -
    returns a KValueSelector instance
    - - - -
    ArgumentTypeDefault
    oOrientation
    parentTQWidget0
    namechar0
    -

  • -
  • drawContents (painter) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    painterTQPainter
    -

  • -
  • drawPalette (pixmap) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pixmapTQPixmap
    -

  • -
  • hue () -
    -
    returns (int)

  • -
  • resizeEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • saturation () -
    -
    returns (int)

  • -
  • setHue (h) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    hint
    -

  • -
  • setSaturation (s) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sint
    -

  • -
  • updateContents () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KWidgetAction.html b/python/pykde/doc/classref/kdeui/KWidgetAction.html deleted file mode 100644 index 1986bcdb..00000000 --- a/python/pykde/doc/classref/kdeui/KWidgetAction.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - 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
    a0TQWidget
    a1TQString
    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
    widgetTQWidget
    textTQString
    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
    a0TQWidget
    a1int-1
    -

  • -
  • plug (widget, index = -1) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    widgetTQWidget
    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
    a0TQWidget
    -

  • -
  • unplug (w) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    wTQWidget
    -

  • -
  • 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 (TQWidget)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0

  • -
  • widget () -
    - -
    returns (TQWidget)
    In versions KDE 3.2.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KWindowInfo.html b/python/pykde/doc/classref/kdeui/KWindowInfo.html deleted file mode 100644 index 4f35e757..00000000 --- a/python/pykde/doc/classref/kdeui/KWindowInfo.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - class KWindowInfo - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KWindowInfo


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKWindowInfo
InheritsTQObject
-

methods

    -
  • KWindowInfo (parent, name = 0) -
    - -
    returns a KWindowInfo instance
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQWidget
    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
    textTQString
    pixTQPixmap
    -

  • -
  • message (text) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • message (text, pix) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    textTQString
    pixTQPixmap
    -

  • -
  • message (text, timeout) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    textTQString
    timeoutint
    -

  • -
  • message (text, pix, timeout) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - - -
    ArgumentTypeDefault
    textTQString
    pixTQPixmap
    timeoutint
    -

  • -
  • permanent (text) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • permanent (text, pix) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    textTQString
    pixTQPixmap
    -

  • -
  • 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
    windowTQWidget
    textTQString
    timeoutint-1
    -

  • -
  • showMessage (window, text, pix, timeout = -1) -
    - - -
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    windowTQWidget
    textTQString
    pixTQPixmap
    timeoutint-1
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KWindowListMenu.html b/python/pykde/doc/classref/kdeui/KWindowListMenu.html deleted file mode 100644 index 5d1b6bef..00000000 --- a/python/pykde/doc/classref/kdeui/KWindowListMenu.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - 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
    parentTQWidget0
    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/python/pykde/doc/classref/kdeui/KWizard.html b/python/pykde/doc/classref/kdeui/KWizard.html deleted file mode 100644 index 09040381..00000000 --- a/python/pykde/doc/classref/kdeui/KWizard.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - class KWizard - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KWizard


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKWizard
InheritsTQWizard
-

methods

    -
  • KWizard (parent = 0, name = 0, modal = 0, f = 0) -
    -
    returns a KWizard instance
    - - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    modalbool0
    fWFlags0
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KWordWrap.html b/python/pykde/doc/classref/kdeui/KWordWrap.html deleted file mode 100644 index 3ebf03ea..00000000 --- a/python/pykde/doc/classref/kdeui/KWordWrap.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - - 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
    rTQRect
    -

  • -
  • boundingRect () -
    -
    returns (TQRect)

  • -
  • drawFadeoutText (p, x, y, maxW, t) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    pTQPainter
    xint
    yint
    maxWint
    tTQString
    -

  • -
  • drawText (painter, x, y, flags = Qt .AlignAuto) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    painterTQPainter
    xint
    yint
    flagsintQt .AlignAuto
    -

  • -
  • drawTruncateText (p, x, y, maxW, t) -
    - - -
    returns nothing
    In versions KDE 3.3.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    pTQPainter
    xint
    yint
    maxWint
    tTQString
    -

  • -
  • formatText (fm, r, flags, str, len = -1) -
    - -
    returns (KWordWrap)
    static
    - - - - - -
    ArgumentTypeDefault
    fmTQFontMetrics
    rTQRect
    flagsint
    strTQString
    lenint-1
    -

  • -
  • truncatedString (dots = 1) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    dotsbool1
    -

  • -
  • wrappedString () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KWritePermsIcon.html b/python/pykde/doc/classref/kdeui/KWritePermsIcon.html deleted file mode 100644 index 5975bb44..00000000 --- a/python/pykde/doc/classref/kdeui/KWritePermsIcon.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - 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
    fileNameTQString
    parentTQWidget0
    namechar0
    -

  • -
  • fileName () -
    - -
    returns (TQString)
    In versions KDE 3.4.0 and above only

  • -
  • setFileName (fileName) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    fileNameTQString
    -

  • -
  • status () -
    -
    returns (bool)

  • -
  • updateStatus () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KXMLGUIBuilder.html b/python/pykde/doc/classref/kdeui/KXMLGUIBuilder.html deleted file mode 100644 index 87e0ef67..00000000 --- a/python/pykde/doc/classref/kdeui/KXMLGUIBuilder.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - 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
    widgetTQWidget
    -

  • -
  • builderClient () -
    -
    returns (KXMLGUIClient)

  • -
  • builderInstance () -
    -
    returns (KInstance)

  • -
  • containerTags () -
    -
    returns (TQStringList)

  • -
  • createContainer (parent, index, element) -
    Not Implemented
    -

  • -
  • createCustomElement (parent, index, element) -
    -
    returns (int)
    - - - -
    ArgumentTypeDefault
    parentTQWidget
    indexint
    elementTQDomElement
    -

  • -
  • customTags () -
    -
    returns (TQStringList)

  • -
  • finalizeGUI (client) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    clientKXMLGUIClient
    -

  • -
  • removeContainer (container, parent, element, id) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    containerTQWidget
    parentTQWidget
    elementTQDomElement
    idint
    -

  • -
  • removeCustomElement (parent, id) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    parentTQWidget
    idint
    -

  • -
  • setBuilderClient (client) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    clientKXMLGUIClient
    -

  • -
  • setBuilderInstance (instance) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    instanceKInstance
    -

  • -
  • widget () -
    -
    returns (TQWidget)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KXMLGUIClient.StateChange.html b/python/pykde/doc/classref/kdeui/KXMLGUIClient.StateChange.html deleted file mode 100644 index f1f16538..00000000 --- a/python/pykde/doc/classref/kdeui/KXMLGUIClient.StateChange.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - 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
    actionsToDisableTQStringList
    actionsToEnableTQStringList
- - - diff --git a/python/pykde/doc/classref/kdeui/KXMLGUIClient.html b/python/pykde/doc/classref/kdeui/KXMLGUIClient.html deleted file mode 100644 index 02995916..00000000 --- a/python/pykde/doc/classref/kdeui/KXMLGUIClient.html +++ /dev/null @@ -1,231 +0,0 @@ - - - - - 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
    elementTQDomElement
    -

  • -
  • actionCollection () -
    -
    returns (KActionCollection)

  • -
  • addStateActionDisabled (state, action) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    stateTQString
    actionTQString
    -

  • -
  • addStateActionEnabled (state, action) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    stateTQString
    actionTQString
    -

  • -
  • beginXMLPlug (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0TQWidget
    -

  • -
  • childClients () -
    -
    returns (TQPtrList)

  • -
  • clientBuilder () -
    -
    returns (KXMLGUIBuilder)

  • -
  • conserveMemory () -
    -
    returns nothing

  • -
  • domDocument () -
    -
    returns (TQDomDocument)

  • -
  • endXMLPlug () -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only

  • -
  • factory () -
    -
    returns (KXMLGUIFactory)

  • -
  • findMostRecentXMLFile (files, doc) -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    filesTQStringList
    docTQString
    -

  • -
  • getActionsToChangeForState (state) -
    -
    returns (KXMLGUIClient.StateChange)
    - -
    ArgumentTypeDefault
    stateTQString
    -

  • -
  • insertChildClient (child) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    childKXMLGUIClient
    -

  • -
  • instance () -
    -
    returns (KInstance)

  • -
  • localXMLFile () -
    -
    returns (TQString)

  • -
  • parentClient () -
    -
    returns (KXMLGUIClient)

  • -
  • plugActionList (name, actionList) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    nameTQString
    actionListTQPtrList
    -

  • -
  • prepareXMLUnplug (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0TQWidget
    -

  • -
  • reloadXML () -
    -
    returns nothing

  • -
  • removeChildClient (child) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    childKXMLGUIClient
    -

  • -
  • setClientBuilder (builder) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    builderKXMLGUIBuilder
    -

  • -
  • setDOMDocument (document, merge = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    documentTQDomDocument
    mergebool0
    -

  • -
  • setFactory (factory) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    factoryKXMLGUIFactory
    -

  • -
  • setInstance (instance) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    instanceKInstance
    -

  • -
  • setLocalXMLFile (file) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    fileTQString
    -

  • -
  • setXML (document, merge = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    documentTQString
    mergebool0
    -

  • -
  • setXMLFile (file, merge = 0, setXMLDoc = 1) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    fileTQString
    mergebool0
    setXMLDocbool1
    -

  • -
  • setXMLGUIBuildDocument (doc) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    docTQDomDocument
    -

  • -
  • stateChanged (newstate, reverse = StateNoReverse) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    newstateTQString
    reverseKXMLGUIClient.ReverseStateChangeStateNoReverse
    -

  • -
  • unplugActionList (name) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • xmlFile () -
    -
    returns (TQString)

  • -
  • xmlguiBuildDocument () -
    -
    returns (TQDomDocument)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KXMLGUIFactory.html b/python/pykde/doc/classref/kdeui/KXMLGUIFactory.html deleted file mode 100644 index ac1965f0..00000000 --- a/python/pykde/doc/classref/kdeui/KXMLGUIFactory.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - class KXMLGUIFactory - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KXMLGUIFactory


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKXMLGUIFactory
InheritsTQObject
-

methods

    -
  • KXMLGUIFactory (builder, parent = 0, name = 0) -
    -
    returns a KXMLGUIFactory instance
    - - - -
    ArgumentTypeDefault
    builderKXMLGUIBuilder
    parentTQObject0
    namechar0
    -

  • -
  • actionPropertiesElement (doc) -
    - - -
    returns (TQDomElement)
    In versions KDE 3.3.0 and above only
    static
    - -
    ArgumentTypeDefault
    docTQDomDocument
    -

  • -
  • addClient (client) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    clientKXMLGUIClient
    -

  • -
  • clientAdded (client) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    clientKXMLGUIClient
    -

  • -
  • clientRemoved (client) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    clientKXMLGUIClient
    -

  • -
  • clients () -
    -
    returns (TQPtrList)

  • -
  • 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 (TQWidget)
    - - - -
    ArgumentTypeDefault
    containerNameTQString
    clientKXMLGUIClient
    useTagNamebool0
    -

  • -
  • containers (tagName) -
    -
    returns (TQPtrList)
    - -
    ArgumentTypeDefault
    tagNameTQString
    -

  • -
  • documentToXML (doc) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    docTQDomDocument
    -

  • -
  • elementToXML (elem) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    elemTQDomElement
    -

  • -
  • findActionByName (elem, sName, create) -
    - - -
    returns (TQDomElement)
    In versions KDE 3.3.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    elemTQDomElement
    sNameTQString
    createbool
    -

  • -
  • plugActionList (client, name, actionList) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    clientKXMLGUIClient
    nameTQString
    actionListTQPtrList
    -

  • -
  • readConfigFile (filename, never_null, instance = 0) -
    - -
    returns (TQString)
    static
    - - - -
    ArgumentTypeDefault
    filenameTQString
    never_nullbool
    instanceKInstance0
    -

  • -
  • readConfigFile (filename, instance = 0) -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    filenameTQString
    instanceKInstance0
    -

  • -
  • removeClient (client) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    clientKXMLGUIClient
    -

  • -
  • removeDOMComments (node) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    nodeTQDomNode
    -

  • -
  • reset () -
    -
    returns nothing

  • -
  • resetContainer (containerName, useTagName = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    containerNameTQString
    useTagNamebool0
    -

  • -
  • saveConfigFile (doc, filename, instance = 0) -
    - -
    returns (bool)
    static
    - - - -
    ArgumentTypeDefault
    docTQDomDocument
    filenameTQString
    instanceKInstance0
    -

  • -
  • unplugActionList (client, name) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    clientKXMLGUIClient
    nameTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/KXYSelector.html b/python/pykde/doc/classref/kdeui/KXYSelector.html deleted file mode 100644 index e2f8e7f1..00000000 --- a/python/pykde/doc/classref/kdeui/KXYSelector.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - class KXYSelector - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KXYSelector


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassKXYSelector
InheritsTQWidget
-

methods

    -
  • KXYSelector (parent = 0, name = 0) -
    -
    returns a KXYSelector instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • contentsRect () -
    -
    returns (TQRect)

  • -
  • drawContents (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQPainter
    -

  • -
  • drawCursor (p, xp, yp) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    pTQPainter
    xpint
    ypint
    -

  • -
  • mouseMoveEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • mousePressEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • paintEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQPaintEvent
    -

  • -
  • 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
    a0TQWheelEvent
    -

  • -
  • xValue () -
    -
    returns (int)

  • -
  • yValue () -
    -
    returns (int)

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/QXEmbed.html b/python/pykde/doc/classref/kdeui/QXEmbed.html deleted file mode 100644 index cd3bbdca..00000000 --- a/python/pykde/doc/classref/kdeui/QXEmbed.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - - class QXEmbed - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class QXEmbed


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
- - - - - - - - - - -
Modulekdeui
ClassQXEmbed
InheritsTQWidget
-

enums

    -
  • Protocol = {XEMBED, XPLAIN -}
-

methods

    -
  • QXEmbed (parent = 0, name = 0, f = 0) -
    -
    returns a QXEmbed instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    fWFlags0
    -

  • -
  • autoDelete () -
    -
    returns (bool)

  • -
  • customWhatsThis () -
    -
    returns (bool)

  • -
  • embed (w) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    wWId
    -

  • -
  • embedClientIntoWindow (client, window) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    clientTQWidget
    windowWId
    -

  • -
  • embeddedWinId () -
    -
    returns (WId)

  • -
  • embeddedWindowDestroyed () -
    -
    returns nothing

  • -
  • enterWhatsThisMode () -
    -
    returns nothing

  • -
  • event (a0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    a0TQEvent
    -

  • -
  • eventFilter (a0, a1) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    a0TQObject
    a1TQEvent
    -

  • -
  • focusInEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQFocusEvent
    -

  • -
  • focusNextPrevChild (next) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    nextbool
    -

  • -
  • focusOutEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQFocusEvent
    -

  • -
  • initialize () -
    - -
    returns nothing
    static

  • -
  • keyPressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQKeyEvent
    -

  • -
  • keyReleaseEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQKeyEvent
    -

  • -
  • minimumSizeHint () -
    -
    returns (TQSize)

  • -
  • 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
    parentTQWidget
    fWFlags
    pTQPoint
    showItbool0
    -

  • -
  • resizeEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • 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
    a0TQShowEvent
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • sizePolicy () -
    -
    returns (TQSizePolicy)

  • -
  • windowChanged (w) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    wWId
    -

  • -
  • x11Event (a0) -
    Not Implemented
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kdeui/index.html b/python/pykde/doc/classref/kdeui/index.html deleted file mode 100644 index 73b5c5a7..00000000 --- a/python/pykde/doc/classref/kdeui/index.html +++ /dev/null @@ -1,213 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kdeui/kdeui-globals.html b/python/pykde/doc/classref/kdeui/kdeui-globals.html deleted file mode 100644 index 50eecb42..00000000 --- a/python/pykde/doc/classref/kdeui/kdeui-globals.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - kdeui globals - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

kdeui Globals


-
- - - - - -
Table of contents
Modules
kdeui Classes
All Classes
-
-

global methods

    -
  • testKActionList (list) -
    -
    returns (TQPtrList),
    - -
    ArgumentTypeDefault
    listTQPtrList
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KAppTreeListItem.html b/python/pykde/doc/classref/kfile/KAppTreeListItem.html deleted file mode 100644 index 82ac583a..00000000 --- a/python/pykde/doc/classref/kfile/KAppTreeListItem.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - class KAppTreeListItem - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KAppTreeListItem


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKAppTreeListItem
InheritsTQListViewItem
-

methods

    -
  • KAppTreeListItem (a0, a1, a2, a3, a4, a5, a6) -
    - -
    returns a KAppTreeListItem instance
    In versions less than KDE 3.1.0 only
    - - - - - - - -
    ArgumentTypeDefault
    a0KListView
    a1TQString
    a2TQPixmap
    a3bool
    a4bool
    a5TQString
    a6TQString
    -

  • -
  • KAppTreeListItem (a0, a1, a2, a3, a4, a5, a6) -
    - -
    returns a KAppTreeListItem instance
    In versions less than KDE 3.1.0 only
    - - - - - - - -
    ArgumentTypeDefault
    a0TQListViewItem
    a1TQString
    a2TQPixmap
    a3bool
    a4bool
    a5TQString
    a6TQString
    -

  • -
  • 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
    a0TQPixmap
    a1bool
    a2bool
    a3TQString
    a4TQString
    -

  • -
  • isDirectory () -
    - -
    returns (bool)
    In versions less than KDE 3.1.0 only

  • -
  • key (a0, a1) -
    - -
    returns (TQString)
    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/python/pykde/doc/classref/kfile/KApplicationPropsPlugin.html b/python/pykde/doc/classref/kfile/KApplicationPropsPlugin.html deleted file mode 100644 index 5005f80f..00000000 --- a/python/pykde/doc/classref/kfile/KApplicationPropsPlugin.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kfile/KApplicationTree.html b/python/pykde/doc/classref/kfile/KApplicationTree.html deleted file mode 100644 index 984be259..00000000 --- a/python/pykde/doc/classref/kfile/KApplicationTree.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - 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
    a0TQWidget
    -

  • -
  • addDesktopGroup (a0, a1 = 0) -
    - -
    returns nothing
    In versions less than KDE 3.1.0 only
    - - -
    ArgumentTypeDefault
    a0TQString
    a1KAppTreeListItem0
    -

  • -
  • highlighted (a0, a1) -
    - -
    returns nothing
    In versions less than KDE 3.1.0 only
    - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    -

  • -
  • 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
    a0TQResizeEvent
    -

  • -
  • selected (a0, a1) -
    - -
    returns nothing
    In versions less than KDE 3.1.0 only
    - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    -

  • -
  • slotItemHighlighted (a0) -
    - -
    returns nothing
    In versions less than KDE 3.1.0 only
    - -
    ArgumentTypeDefault
    a0TQListViewItem
    -

  • -
  • slotSelectionChanged (a0) -
    - -
    returns nothing
    In versions less than KDE 3.1.0 only
    - -
    ArgumentTypeDefault
    a0TQListViewItem
    -

  • -
-

variables

  • -variables - -
    VariableType
    itKAppTreeListItem*
- - - diff --git a/python/pykde/doc/classref/kfile/KBindingPropsPlugin.html b/python/pykde/doc/classref/kfile/KBindingPropsPlugin.html deleted file mode 100644 index 21208629..00000000 --- a/python/pykde/doc/classref/kfile/KBindingPropsPlugin.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kfile/KCombiView.html b/python/pykde/doc/classref/kfile/KCombiView.html deleted file mode 100644 index ecefca74..00000000 --- a/python/pykde/doc/classref/kfile/KCombiView.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - - class KCombiView - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KCombiView


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKCombiView
InheritsTQSplitter, KFileView
-

methods

    -
  • KCombiView (parent, name) -
    -
    returns a KCombiView instance
    - - -
    ArgumentTypeDefault
    parentTQWidget
    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
    oTQObject
    eTQEvent
    -

  • -
  • 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 = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    a0KConfig
    groupTQStringTQString .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
    sortTQDir.SortSpec
    -

  • -
  • slotSortingChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDir.SortSpec
    -

  • -
  • updateView (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • updateView (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KFileItem
    -

  • -
  • widget () -
    -
    returns (TQWidget)

  • -
  • writeConfig (a0, group = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    a0KConfig
    groupTQStringTQString .null
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KCustomMenuEditor.html b/python/pykde/doc/classref/kfile/KCustomMenuEditor.html deleted file mode 100644 index c513f2cf..00000000 --- a/python/pykde/doc/classref/kfile/KCustomMenuEditor.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - 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
    parentTQWidget
    -

  • -
  • 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/python/pykde/doc/classref/kfile/KDesktopPropsPlugin.html b/python/pykde/doc/classref/kfile/KDesktopPropsPlugin.html deleted file mode 100644 index 4179cc12..00000000 --- a/python/pykde/doc/classref/kfile/KDesktopPropsPlugin.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kfile/KDevicePropsPlugin.html b/python/pykde/doc/classref/kfile/KDevicePropsPlugin.html deleted file mode 100644 index d4c44408..00000000 --- a/python/pykde/doc/classref/kfile/KDevicePropsPlugin.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kfile/KDirOperator.html b/python/pykde/doc/classref/kfile/KDirOperator.html deleted file mode 100644 index 6be53823..00000000 --- a/python/pykde/doc/classref/kfile/KDirOperator.html +++ /dev/null @@ -1,520 +0,0 @@ - - - - - class KDirOperator - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDirOperator


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKDirOperator
InheritsTQWidget
-

enums

    -
  • ActionTypes = {SortActions, ViewActions, NavActions, FileActions, AllActions -}
-

methods

    -
  • KDirOperator (urlName = KURL (), parent = 0, name = 0) -
    -
    returns a KDirOperator instance
    - - - -
    ArgumentTypeDefault
    urlNameKURLKURL ()
    parentTQWidget0
    namechar0
    -

  • -
  • actionCollection () -
    -
    returns (KActionCollection)

  • -
  • activatedMenu (a0, pos) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KFileItem
    posTQPoint
    -

  • -
  • 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
    a0TQString
    -

  • -
  • completionObject () -
    -
    returns (KCompletion)

  • -
  • createView (parent, view) -
    -
    returns (KFileView)
    - - -
    ArgumentTypeDefault
    parentTQWidget
    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
    parentTQWidget
    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
    eventTQDropEvent
    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 (TQString)
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • makeDirCompletion (a0) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • mimeFilter () -
    - -
    returns (TQStringList)
    In versions KDE 3.1.2 and above only

  • -
  • mkdir (directory, enterDirectory = 1) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    directoryTQString
    enterDirectorybool1
    -

  • -
  • mkdir () -
    -
    returns nothing

  • -
  • mode () -
    -
    returns (KFile.Mode)

  • -
  • nameFilter () -
    -
    returns (TQString)

  • -
  • numDirs () -
    -
    returns (int)

  • -
  • numFiles () -
    -
    returns (int)

  • -
  • onlyDoubleClickSelectsFiles () -
    -
    returns (bool)

  • -
  • pathChanged () -
    -
    returns nothing

  • -
  • prepareCompletionObjects () -
    -
    returns nothing

  • -
  • progressBar () -
    -
    returns (KProgress)

  • -
  • readConfig (a0, group = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KConfig
    groupTQStringTQString .null
    -

  • -
  • rereadDir () -
    -
    returns nothing

  • -
  • resetCursor () -
    -
    returns nothing

  • -
  • resizeEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • resizeEvent (a0) -
    - -
    returns nothing
    In versions less than KDE 3.2.0 only
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • 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
    filenameTQString
    -

  • -
  • 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
    mimetypesTQStringList
    -

  • -
  • setMode (m) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    mKFile.Mode
    -

  • -
  • setNameFilter (filter) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    filterTQString
    -

  • -
  • setOnlyDoubleClickSelectsFiles (enable) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    enablebool
    -

  • -
  • setPreviewWidget (w) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    wTQWidget
    -

  • -
  • setShowHiddenFiles (s) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sbool
    -

  • -
  • setSorting (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDir.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
    groupTQString
    -

  • -
  • 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
    matchTQString
    -

  • -
  • sortByDate () -
    -
    returns nothing

  • -
  • sortByName () -
    -
    returns nothing

  • -
  • sortBySize () -
    -
    returns nothing

  • -
  • sortReversed () -
    -
    returns nothing

  • -
  • sorting () -
    -
    returns (TQDir.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
    parentTQWidget
    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 (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • viewWidget () -
    -
    returns (TQWidget)

  • -
  • writeConfig (a0, group = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KConfig
    groupTQStringTQString .null
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KDirSelectDialog.html b/python/pykde/doc/classref/kfile/KDirSelectDialog.html deleted file mode 100644 index d9f06827..00000000 --- a/python/pykde/doc/classref/kfile/KDirSelectDialog.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - class KDirSelectDialog - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDirSelectDialog


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKDirSelectDialog
InheritsKDialogBase
-

methods

    -
  • KDirSelectDialog (startDir = TQString .null, localOnly = 0, parent = 0, name = 0, modal = 0) -
    -
    returns a KDirSelectDialog instance
    - - - - - -
    ArgumentTypeDefault
    startDirTQStringTQString .null
    localOnlybool0
    parentTQWidget0
    namechar0
    modalbool0
    -

  • -
  • accept () -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only

  • -
  • localOnly () -
    -
    returns (bool)

  • -
  • selectDirectory (startDir = TQString .null, localOnly = 0, parent = 0, caption = TQString .null) -
    - -
    returns (KURL)
    static
    - - - - -
    ArgumentTypeDefault
    startDirTQStringTQString .null
    localOnlybool0
    parentTQWidget0
    captionTQStringTQString .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 (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • url () -
    -
    returns (KURL)

  • -
  • view () -
    -
    returns (KFileTreeView)

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KDirSize.html b/python/pykde/doc/classref/kfile/KDirSize.html deleted file mode 100644 index 186a1808..00000000 --- a/python/pykde/doc/classref/kfile/KDirSize.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kfile/KDiskFreeSp.html b/python/pykde/doc/classref/kfile/KDiskFreeSp.html deleted file mode 100644 index ff9815dd..00000000 --- a/python/pykde/doc/classref/kfile/KDiskFreeSp.html +++ /dev/null @@ -1,81 +0,0 @@ - - - - - class KDiskFreeSp - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDiskFreeSp


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKDiskFreeSp
InheritsTQObject
-

methods

    -
  • KDiskFreeSp (parent = 0, name = 0) -
    - -
    returns a KDiskFreeSp instance
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQObject0
    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
    pathTQString
    -

  • -
  • foundMountPoint (mountPoint, kBSize, kBUsed, kBAvail) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - - - -
    ArgumentTypeDefault
    mountPointTQString
    kBSizeulong
    kBUsedulong
    kBAvailulong
    -

  • -
  • foundMountPoint (a3) -
    Not Implemented
    -

  • -
  • readDF (mountPoint) -
    - -
    returns (int)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    mountPointTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KEncodingFileDialog.Result.html b/python/pykde/doc/classref/kfile/KEncodingFileDialog.Result.html deleted file mode 100644 index 2b65d45e..00000000 --- a/python/pykde/doc/classref/kfile/KEncodingFileDialog.Result.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 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
    encodingTQString
    fileNamesTQStringList
- - - diff --git a/python/pykde/doc/classref/kfile/KEncodingFileDialog.html b/python/pykde/doc/classref/kfile/KEncodingFileDialog.html deleted file mode 100644 index 07dc7a59..00000000 --- a/python/pykde/doc/classref/kfile/KEncodingFileDialog.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - class KEncodingFileDialog - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KEncodingFileDialog


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKEncodingFileDialog
InheritsKFileDialog
-

methods

    -
  • KEncodingFileDialog (startDir = TQString .null, encoding = TQString .null, filter = TQString .null, caption = TQString .null, type = KFileDialog .Opening, parent = 0, name = "", modal = 1) -
    - -
    returns a KEncodingFileDialog instance
    In versions KDE 3.2.0 and above only
    - - - - - - - - -
    ArgumentTypeDefault
    startDirTQStringTQString .null
    encodingTQStringTQString .null
    filterTQStringTQString .null
    captionTQStringTQString .null
    typeKFileDialog.OperationModeKFileDialog .Opening
    parentTQWidget0
    namechar""
    modalbool1
    -

  • -
  • getOpenFileNameAndEncoding (encoding = TQString .null, startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null) -
    - - -
    returns (KEncodingFileDialog.Result)
    In versions KDE 3.2.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    encodingTQStringTQString .null
    startDirTQStringTQString .null
    filterTQStringTQString .null
    parentTQWidget0
    captionTQStringTQString .null
    -

  • -
  • getOpenFileNamesAndEncoding (encoding = TQString .null, startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null) -
    - - -
    returns (KEncodingFileDialog.Result)
    In versions KDE 3.2.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    encodingTQStringTQString .null
    startDirTQStringTQString .null
    filterTQStringTQString .null
    parentTQWidget0
    captionTQStringTQString .null
    -

  • -
  • getOpenURLAndEncoding (encoding = TQString .null, startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null) -
    - - -
    returns (KEncodingFileDialog.Result)
    In versions KDE 3.2.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    encodingTQStringTQString .null
    startDirTQStringTQString .null
    filterTQStringTQString .null
    parentTQWidget0
    captionTQStringTQString .null
    -

  • -
  • getOpenURLsAndEncoding (encoding = TQString .null, startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null) -
    - - -
    returns (KEncodingFileDialog.Result)
    In versions KDE 3.2.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    encodingTQStringTQString .null
    startDirTQStringTQString .null
    filterTQStringTQString .null
    parentTQWidget0
    captionTQStringTQString .null
    -

  • -
  • getSaveFileNameAndEncoding (encoding = TQString .null, startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null) -
    - - -
    returns (KEncodingFileDialog.Result)
    In versions KDE 3.2.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    encodingTQStringTQString .null
    startDirTQStringTQString .null
    filterTQStringTQString .null
    parentTQWidget0
    captionTQStringTQString .null
    -

  • -
  • getSaveURLAndEncoding (encoding = TQString .null, startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null) -
    - - -
    returns (KEncodingFileDialog.Result)
    In versions KDE 3.2.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    encodingTQStringTQString .null
    startDirTQStringTQString .null
    filterTQStringTQString .null
    parentTQWidget0
    captionTQStringTQString .null
    -

  • -
  • selectedEncoding () -
    - -
    returns (TQString)
    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/python/pykde/doc/classref/kfile/KExecPropsPlugin.html b/python/pykde/doc/classref/kfile/KExecPropsPlugin.html deleted file mode 100644 index 2e5f55a4..00000000 --- a/python/pykde/doc/classref/kfile/KExecPropsPlugin.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kfile/KFile.html b/python/pykde/doc/classref/kfile/KFile.html deleted file mode 100644 index eb764757..00000000 --- a/python/pykde/doc/classref/kfile/KFile.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - - 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
    sortTQDir.SortSpec
    -

  • -
  • isSortByName (sort) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    sortTQDir.SortSpec
    -

  • -
  • isSortBySize (sort) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    sortTQDir.SortSpec
    -

  • -
  • isSortCaseInsensitive (sort) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    sortTQDir.SortSpec
    -

  • -
  • isSortDirsFirst (sort) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    sortTQDir.SortSpec
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KFileDetailView.html b/python/pykde/doc/classref/kfile/KFileDetailView.html deleted file mode 100644 index 21b1c043..00000000 --- a/python/pykde/doc/classref/kfile/KFileDetailView.html +++ /dev/null @@ -1,274 +0,0 @@ - - - - - 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
    parentTQWidget
    namechar
    -

  • -
  • acceptDrag (e) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    eTQDropEvent
    -

  • -
  • clearSelection () -
    -
    returns nothing

  • -
  • clearView () -
    -
    returns nothing

  • -
  • contentsDragEnterEvent (e) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    eTQDragEnterEvent
    -

  • -
  • contentsDragLeaveEvent (e) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    eTQDragLeaveEvent
    -

  • -
  • contentsDragMoveEvent (e) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    eTQDragMoveEvent
    -

  • -
  • contentsDropEvent (ev) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    evTQDropEvent
    -

  • -
  • currentFileItem () -
    -
    returns (KFileItem)

  • -
  • determineIcon (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemKFileListViewItem
    -

  • -
  • dragObject () -
    - -
    returns (TQDragObject)
    In versions KDE 3.2.0 and above only

  • -
  • dropped (event, fileItem) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    eventTQDropEvent
    fileItemKFileItem
    -

  • -
  • dropped (event, urls, url) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    eventTQDropEvent
    urlsKURL.List
    urlKURL
    -

  • -
  • ensureItemVisible (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KFileItem
    -

  • -
  • firstFileItem () -
    -
    returns (KFileItem)

  • -
  • highlighted (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQListViewItem
    -

  • -
  • insertItem (i) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iKFileItem
    -

  • -
  • invertSelection () -
    -
    returns nothing

  • -
  • isSelected (i) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    iKFileItem
    -

  • -
  • keyPressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQKeyEvent
    -

  • -
  • listingCompleted () -
    -
    returns nothing

  • -
  • mimeTypeDeterminationFinished () -
    -
    returns nothing

  • -
  • nextItem (a0) -
    -
    returns (KFileItem)
    - -
    ArgumentTypeDefault
    a0KFileItem
    -

  • -
  • prevItem (a0) -
    -
    returns (KFileItem)
    - -
    ArgumentTypeDefault
    a0KFileItem
    -

  • -
  • readConfig (a0, group = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    a0KConfig
    groupTQStringTQString .null
    -

  • -
  • removeItem (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KFileItem
    -

  • -
  • rightButtonPressed (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQListViewItem
    -

  • -
  • scrollWidget () -
    -
    returns (TQScrollView)

  • -
  • selectAll () -
    -
    returns nothing

  • -
  • selected (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQListViewItem
    -

  • -
  • 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
    a0TQDir.SortSpec
    -

  • -
  • slotDoubleClicked (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQListViewItem
    -

  • -
  • slotSelectionChanged () -
    -
    returns nothing

  • -
  • slotSortingChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • updateView (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • updateView (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KFileItem
    -

  • -
  • widget () -
    -
    returns (TQWidget)

  • -
  • writeConfig (a0, group = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    a0KConfig
    groupTQStringTQString .null
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KFileDialog.html b/python/pykde/doc/classref/kfile/KFileDialog.html deleted file mode 100644 index 89cc0a6d..00000000 --- a/python/pykde/doc/classref/kfile/KFileDialog.html +++ /dev/null @@ -1,543 +0,0 @@ - - - - - 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
    startDirTQString
    filterTQString
    parentTQWidget
    namechar
    modalbool
    -

  • -
  • KFileDialog (startDir, filter, parent, name, modal, widget) -
    - -
    returns a KFileDialog instance
    In versions KDE 3.1.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    startDirTQString
    filterTQString
    parentTQWidget
    namechar
    modalbool
    widgetTQWidget
    -

  • -
  • 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 (TQString)

  • -
  • currentFilterExtension () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • currentFilterMimeType () -
    -
    returns (KMimeType.Ptr)

  • -
  • currentMimeFilter () -
    -
    returns (TQString)

  • -
  • dirCompletion (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • enterURL (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • enterURL (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • fileCompletion (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • fileHighlighted (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • fileHighlighted (i) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iKFileItem
    -

  • -
  • fileSelected (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • fileSelected (i) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iKFileItem
    -

  • -
  • filterChanged (filter) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    filterTQString
    -

  • -
  • getCompleteURL (a0) -
    - -
    returns (KURL)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • getExistingDirectory (startDir = TQString .null, parent = 0, caption = TQString .null) -
    - -
    returns (TQString)
    static
    - - - -
    ArgumentTypeDefault
    startDirTQStringTQString .null
    parentTQWidget0
    captionTQStringTQString .null
    -

  • -
  • getExistingURL (startDir = TQString .null, parent = 0, caption = TQString .null) -
    - - -
    returns (KURL)
    In versions KDE 3.1.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    startDirTQStringTQString .null
    parentTQWidget0
    captionTQStringTQString .null
    -

  • -
  • getImageOpenURL (startDir = TQString .null, parent = 0, caption = TQString .null) -
    - -
    returns (KURL)
    static
    - - - -
    ArgumentTypeDefault
    startDirTQStringTQString .null
    parentTQWidget0
    captionTQStringTQString .null
    -

  • -
  • getOpenFileName (startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null) -
    - -
    returns (TQString)
    static
    - - - - -
    ArgumentTypeDefault
    startDirTQStringTQString .null
    filterTQStringTQString .null
    parentTQWidget0
    captionTQStringTQString .null
    -

  • -
  • getOpenFileNameWId (startDir, filter, parent_id, caption) -
    - - -
    returns (TQString)
    In versions KDE 3.4.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    startDirTQString
    filterTQString
    parent_idWId
    captionTQString
    -

  • -
  • getOpenFileNames (startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null) -
    - -
    returns (TQStringList)
    static
    - - - - -
    ArgumentTypeDefault
    startDirTQStringTQString .null
    filterTQStringTQString .null
    parentTQWidget0
    captionTQStringTQString .null
    -

  • -
  • getOpenURL (startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null) -
    - -
    returns (KURL)
    static
    - - - - -
    ArgumentTypeDefault
    startDirTQStringTQString .null
    filterTQStringTQString .null
    parentTQWidget0
    captionTQStringTQString .null
    -

  • -
  • getOpenURLs (startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null) -
    - -
    returns (KURL.List)
    static
    - - - - -
    ArgumentTypeDefault
    startDirTQStringTQString .null
    filterTQStringTQString .null
    parentTQWidget0
    captionTQStringTQString .null
    -

  • -
  • getSaveFileName (startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null) -
    - -
    returns (TQString)
    static
    - - - - -
    ArgumentTypeDefault
    startDirTQStringTQString .null
    filterTQStringTQString .null
    parentTQWidget0
    captionTQStringTQString .null
    -

  • -
  • getSaveFileNameWId (dir, filter, parent_id, caption) -
    - - -
    returns (TQString)
    In versions KDE 3.4.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    dirTQString
    filterTQString
    parent_idWId
    captionTQString
    -

  • -
  • getSaveURL (startDir = TQString .null, filter = TQString .null, parent = 0, caption = TQString .null) -
    - -
    returns (KURL)
    static
    - - - - -
    ArgumentTypeDefault
    startDirTQStringTQString .null
    filterTQStringTQString .null
    parentTQWidget0
    captionTQStringTQString .null
    -

  • -
  • getStartURL (startDir, recentDirClass) -
    - - -
    returns (KURL)
    In versions KDE 3.1.0 and above only
    static
    - - -
    ArgumentTypeDefault
    startDirTQString
    recentDirClassTQString
    -

  • -
  • init (startDir, filter, widget) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - - -
    ArgumentTypeDefault
    startDirTQString
    filterTQString
    widgetTQWidget
    -

  • -
  • 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
    eTQKeyEvent
    -

  • -
  • locationActivated (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • mode () -
    -
    returns (KFile.Mode)

  • -
  • multiSelectionChanged () -
    -
    returns nothing

  • -
  • okButton () -
    -
    returns (KPushButton)

  • -
  • operationMode () -
    -
    returns (KFileDialog.OperationMode)

  • -
  • parseSelectedURLs () -
    -
    returns (KURL.List)

  • -
  • pathComboChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • pathComboIndex () -
    - -
    returns (int)
    In versions KDE 3.1.0 and above only

  • -
  • readConfig (a0, group = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KConfig
    groupTQStringTQString .null
    -

  • -
  • readRecentFiles (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KConfig
    -

  • -
  • saveRecentFiles (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KConfig
    -

  • -
  • selectedFile () -
    -
    returns (TQString)

  • -
  • selectedFiles () -
    -
    returns (TQStringList)

  • -
  • selectedURL () -
    -
    returns (KURL)

  • -
  • selectedURLs () -
    -
    returns (KURL.List)

  • -
  • selectionChanged () -
    -
    returns nothing

  • -
  • setFilter (filter) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    filterTQString
    -

  • -
  • setFilterMimeType (label, types, defaultType) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    labelTQString
    typesKMimeType.List
    defaultTypeKMimeType.Ptr
    -

  • -
  • setKeepLocation (keep) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    keepbool
    -

  • -
  • setLocationLabel (text) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • setMimeFilter (types, defaultType = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    typesTQStringList
    defaultTypeTQStringTQString .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
    wTQWidget
    -

  • -
  • setPreviewWidget (w) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    wKPreviewWidgetBase
    -

  • -
  • setSelection (name) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • 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
    lineTQString
    -

  • -
  • 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 = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KConfig
    groupTQStringTQString .null
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KFileFilterCombo.html b/python/pykde/doc/classref/kfile/KFileFilterCombo.html deleted file mode 100644 index be9d62c2..00000000 --- a/python/pykde/doc/classref/kfile/KFileFilterCombo.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    -

  • -
  • currentFilter () -
    -
    returns (TQString)

  • -
  • defaultFilter () -
    -
    returns (TQString)

  • -
  • eventFilter (o, e) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    oTQObject
    eTQEvent
    -

  • -
  • filterChanged () -
    -
    returns nothing

  • -
  • setCurrentFilter (filter) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    filterTQString
    -

  • -
  • setDefaultFilter (filter) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    filterTQString
    -

  • -
  • setFilter (filter) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    filterTQString
    -

  • -
  • setMimeFilter (types, defaultType) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    typesTQStringList
    defaultTypeTQString
    -

  • -
  • showsAllTypes () -
    -
    returns (bool)

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KFileIconView.html b/python/pykde/doc/classref/kfile/KFileIconView.html deleted file mode 100644 index 64435421..00000000 --- a/python/pykde/doc/classref/kfile/KFileIconView.html +++ /dev/null @@ -1,306 +0,0 @@ - - - - - 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
    parentTQWidget
    namechar
    -

  • -
  • acceptDrag (e) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    eTQDropEvent
    -

  • -
  • 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
    eTQDragEnterEvent
    -

  • -
  • contentsDragLeaveEvent (e) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    eTQDragLeaveEvent
    -

  • -
  • contentsDragMoveEvent (e) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    eTQDragMoveEvent
    -

  • -
  • contentsDropEvent (ev) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    evTQDropEvent
    -

  • -
  • currentFileItem () -
    -
    returns (KFileItem)

  • -
  • determineIcon (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemKFileIconViewItem
    -

  • -
  • dragObject () -
    - -
    returns (TQDragObject)
    In versions KDE 3.2.0 and above only

  • -
  • dropped (event, fileItem) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    eventTQDropEvent
    fileItemKFileItem
    -

  • -
  • dropped (event, urls, url) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    eventTQDropEvent
    urlsKURL.List
    urlKURL
    -

  • -
  • ensureItemVisible (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KFileItem
    -

  • -
  • eventFilter (o, e) -
    - -
    returns (bool)
    In versions KDE 3.0.1 and above only
    - - -
    ArgumentTypeDefault
    oTQObject
    eTQEvent
    -

  • -
  • firstFileItem () -
    -
    returns (KFileItem)

  • -
  • hideEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQHideEvent
    -

  • -
  • iconSize () -
    -
    returns (int)

  • -
  • insertItem (i) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iKFileItem
    -

  • -
  • invertSelection () -
    -
    returns nothing

  • -
  • isSelected (i) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    iKFileItem
    -

  • -
  • keyPressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQKeyEvent
    -

  • -
  • listingCompleted () -
    -
    returns nothing

  • -
  • mimeTypeDeterminationFinished () -
    -
    returns nothing

  • -
  • nextItem (a0) -
    -
    returns (KFileItem)
    - -
    ArgumentTypeDefault
    a0KFileItem
    -

  • -
  • prevItem (a0) -
    -
    returns (KFileItem)
    - -
    ArgumentTypeDefault
    a0KFileItem
    -

  • -
  • readConfig (a0, group = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KConfig
    groupTQStringTQString .null
    -

  • -
  • removeItem (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KFileItem
    -

  • -
  • scrollWidget () -
    -
    returns (TQScrollView)

  • -
  • 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
    sortTQDir.SortSpec
    -

  • -
  • showEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQShowEvent
    -

  • -
  • showPreviews () -
    -
    returns nothing

  • -
  • updateView (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • updateView (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KFileItem
    -

  • -
  • widget () -
    -
    returns (TQWidget)

  • -
  • writeConfig (a0, group = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KConfig
    groupTQStringTQString .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/python/pykde/doc/classref/kfile/KFileIconViewItem.html b/python/pykde/doc/classref/kfile/KFileIconViewItem.html deleted file mode 100644 index ca5f22a6..00000000 --- a/python/pykde/doc/classref/kfile/KFileIconViewItem.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - 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
    parentTQIconView
    textTQString
    pixmapTQPixmap
    fiKFileItem
    -

  • -
  • KFileIconViewItem (parent, fi) -
    - -
    returns a KFileIconViewItem instance
    In versions KDE 3.0.1 and above only
    - - -
    ArgumentTypeDefault
    parentTQIconView
    fiKFileItem
    -

  • -
  • fileInfo () -
    -
    returns (KFileItem)

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KFileListViewItem.html b/python/pykde/doc/classref/kfile/KFileListViewItem.html deleted file mode 100644 index 0b417b44..00000000 --- a/python/pykde/doc/classref/kfile/KFileListViewItem.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - 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
    parentTQListView
    textTQString
    iconTQPixmap
    fiKFileItem
    -

  • -
  • KFileListViewItem (parent, fi) -
    - -
    returns a KFileListViewItem instance
    In versions KDE 3.0.1 and above only
    - - -
    ArgumentTypeDefault
    parentTQListView
    fiKFileItem
    -

  • -
  • KFileListViewItem (parent, text, icon, fi, after) -
    -
    returns a KFileListViewItem instance
    - - - - - -
    ArgumentTypeDefault
    parentTQListView
    textTQString
    iconTQPixmap
    fiKFileItem
    afterTQListViewItem
    -

  • -
  • fileInfo () -
    -
    returns (KFileItem)

  • -
  • init () -
    - -
    returns nothing
    In versions KDE 3.0.1 and above only

  • -
  • key (a0, a1) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    a0int
    a1bool
    -

  • -
  • rect () -
    -
    returns (TQRect)

  • -
  • setKey (key) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KFileOpenWithHandler.html b/python/pykde/doc/classref/kfile/KFileOpenWithHandler.html deleted file mode 100644 index ef4b6f5f..00000000 --- a/python/pykde/doc/classref/kfile/KFileOpenWithHandler.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kfile/KFilePermissionsPropsPlugin.html b/python/pykde/doc/classref/kfile/KFilePermissionsPropsPlugin.html deleted file mode 100644 index 75115f3b..00000000 --- a/python/pykde/doc/classref/kfile/KFilePermissionsPropsPlugin.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kfile/KFilePreview.html b/python/pykde/doc/classref/kfile/KFilePreview.html deleted file mode 100644 index 62610dc0..00000000 --- a/python/pykde/doc/classref/kfile/KFilePreview.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - class KFilePreview - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KFilePreview


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKFilePreview
InheritsTQSplitter, KFileView
-

methods

    -
  • KFilePreview (parent, name) -
    -
    returns a KFilePreview instance
    - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar
    -

  • -
  • KFilePreview (view, parent, name) -
    -
    returns a KFilePreview instance
    - - - -
    ArgumentTypeDefault
    viewKFileView
    parentTQWidget
    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 = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    a0KConfig
    groupTQStringTQString .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
    wTQWidget
    uKURL
    -

  • -
  • setSelected (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KFileItem
    a1bool
    -

  • -
  • setSelectionMode (sm) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    smKFile.SelectionMode
    -

  • -
  • setSorting (sort) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sortTQDir.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 (TQWidget)

  • -
  • writeConfig (a0, group = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    a0KConfig
    groupTQStringTQString .null
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KFilePropsPlugin.html b/python/pykde/doc/classref/kfile/KFilePropsPlugin.html deleted file mode 100644 index 6648553e..00000000 --- a/python/pykde/doc/classref/kfile/KFilePropsPlugin.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - - 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
    mpTQString
    kBSizeulong
    kBUsedulong
    kBAvailulong
    -

  • -
  • slotSizeDetermine () -
    -
    returns nothing

  • -
  • slotSizeStop () -
    -
    returns nothing

  • -
  • supports (_items) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    _itemsKFileItemList
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KFileSharePropsPlugin.html b/python/pykde/doc/classref/kfile/KFileSharePropsPlugin.html deleted file mode 100644 index 27812233..00000000 --- a/python/pykde/doc/classref/kfile/KFileSharePropsPlugin.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - 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 (TQWidget)
    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/python/pykde/doc/classref/kfile/KFileTreeBranch.html b/python/pykde/doc/classref/kfile/KFileTreeBranch.html deleted file mode 100644 index eaccd00b..00000000 --- a/python/pykde/doc/classref/kfile/KFileTreeBranch.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - - 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
    nameTQString
    pixTQPixmap
    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 (TQString)

  • -
  • newTreeViewItems (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KFileTreeBranch
    a1KFileTreeViewItemList
    -

  • -
  • openPixmap () -
    -
    returns (TQPixmap)

  • -
  • pixmap () -
    -
    returns (TQPixmap)

  • -
  • 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
    nTQString
    -

  • -
  • setOpen (setopen = 1) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    setopenbool1
    -

  • -
  • setOpenPixmap (pix) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pixTQPixmap
    -

  • -
  • setRoot (r) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    rKFileTreeViewItem
    -

  • -
  • setShowExtensions (visible = 1) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    visiblebool1
    -

  • -
  • showExtensions () -
    -
    returns (bool)

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KFileTreeView.html b/python/pykde/doc/classref/kfile/KFileTreeView.html deleted file mode 100644 index 5cb4afa4..00000000 --- a/python/pykde/doc/classref/kfile/KFileTreeView.html +++ /dev/null @@ -1,265 +0,0 @@ - - - - - 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
    parentTQWidget
    namechar0
    -

  • -
  • acceptDrag (event) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    eventTQDropEvent
    -

  • -
  • addBranch (path, name, showHidden = 0) -
    -
    returns (KFileTreeBranch)
    - - - -
    ArgumentTypeDefault
    pathKURL
    nameTQString
    showHiddenbool0
    -

  • -
  • addBranch (path, name, pix, showHidden = 0) -
    -
    returns (KFileTreeBranch)
    - - - - -
    ArgumentTypeDefault
    pathKURL
    nameTQString
    pixTQPixmap
    showHiddenbool0
    -

  • -
  • addBranch (a0) -
    -
    returns (KFileTreeBranch)
    - -
    ArgumentTypeDefault
    a0KFileTreeBranch
    -

  • -
  • branch (searchName) -
    -
    returns (KFileTreeBranch)
    - -
    ArgumentTypeDefault
    searchNameTQString
    -

  • -
  • branches () -
    -
    returns (KFileTreeBranchList)

  • -
  • contentsDragEnterEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQDragEnterEvent
    -

  • -
  • contentsDragLeaveEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQDragLeaveEvent
    -

  • -
  • contentsDragMoveEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQDragMoveEvent
    -

  • -
  • contentsDropEvent (ev) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    evTQDropEvent
    -

  • -
  • currentKFileTreeViewItem () -
    -
    returns (KFileTreeViewItem)

  • -
  • currentURL () -
    -
    returns (KURL)

  • -
  • dragObject () -
    -
    returns (TQDragObject)

  • -
  • dropped (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0TQWidget
    a1TQDropEvent
    -

  • -
  • dropped (a0, a1, a2) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    a0TQWidget
    a1TQDropEvent
    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
    a0TQWidget
    a1TQDropEvent
    a2KURL.List
    a3KURL
    -

  • -
  • dropped (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0TQDropEvent
    a1TQListViewItem
    -

  • -
  • dropped (a0, a1, a2) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    a0KFileTreeView
    a1TQDropEvent
    a2TQListViewItem
    -

  • -
  • dropped (a0, a1, a2) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    a0TQDropEvent
    a1TQListViewItem
    a2TQListViewItem
    -

  • -
  • dropped (a0, a1, a2, a3) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    a0KFileTreeView
    a1TQDropEvent
    a2TQListViewItem
    a3TQListViewItem
    -

  • -
  • findItem (brnch, relUrl) -
    -
    returns (KFileTreeViewItem)
    - - -
    ArgumentTypeDefault
    brnchKFileTreeBranch
    relUrlTQString
    -

  • -
  • findItem (branchName, relUrl) -
    -
    returns (KFileTreeViewItem)
    - - -
    ArgumentTypeDefault
    branchNameTQString
    relUrlTQString
    -

  • -
  • itemIcon (a0, gap = 0) -
    -
    returns (TQPixmap)
    - - -
    ArgumentTypeDefault
    a0KFileTreeViewItem
    gapint0
    -

  • -
  • onItem (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • 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
    a0TQListViewItem
    -

  • -
  • 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/python/pykde/doc/classref/kfile/KFileTreeViewItem.html b/python/pykde/doc/classref/kfile/KFileTreeViewItem.html deleted file mode 100644 index 021e7ba9..00000000 --- a/python/pykde/doc/classref/kfile/KFileTreeViewItem.html +++ /dev/null @@ -1,81 +0,0 @@ - - - - - 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 (TQString)

  • -
  • setListed (wasListed) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    wasListedbool
    -

  • -
  • url () -
    -
    returns (KURL)

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KFileTreeViewToolTip.html b/python/pykde/doc/classref/kfile/KFileTreeViewToolTip.html deleted file mode 100644 index 94957de9..00000000 --- a/python/pykde/doc/classref/kfile/KFileTreeViewToolTip.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - class KFileTreeViewToolTip - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KFileTreeViewToolTip


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKFileTreeViewToolTip
InheritsTQToolTip
-

methods

    -
  • KFileTreeViewToolTip (view) -
    -
    returns a KFileTreeViewToolTip instance
    - -
    ArgumentTypeDefault
    viewTQListView
    -

  • -
  • maybeTip (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQPoint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KFileView.html b/python/pykde/doc/classref/kfile/KFileView.html deleted file mode 100644 index 28708d7f..00000000 --- a/python/pykde/doc/classref/kfile/KFileView.html +++ /dev/null @@ -1,301 +0,0 @@ - - - - - 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 = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KConfig
    groupTQStringTQString .null
    -

  • -
  • removeItem (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemKFileItem
    -

  • -
  • selectAll () -
    -
    returns nothing

  • -
  • selectedItems () -
    -
    returns (KFileItemList)

  • -
  • selectionMode () -
    -
    returns (KFile.SelectionMode)

  • -
  • setCurrentItem (filename) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    filenameTQString
    -

  • -
  • 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
    sortTQDir.SortSpec
    -

  • -
  • setViewMode (vm) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    vmKFileView.ViewMode
    -

  • -
  • setViewName (name) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • signaler () -
    -
    returns (KFileViewSignaler)

  • -
  • sortReversed () -
    -
    returns nothing

  • -
  • sorting () -
    -
    returns (TQDir.SortSpec)

  • -
  • sortingKey (value, isDir, sortSpec) -
    - -
    returns (TQString)
    static
    - - - -
    ArgumentTypeDefault
    valueTQString
    isDirbool
    sortSpecint
    -

  • -
  • sortingKey (value, isDir, sortSpec) -
    - -
    returns (TQString)
    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 (TQString)

  • -
  • widget () = 0 -
    - -
    returns (TQWidget)
    pure virtual

  • -
  • widget () -
    Not Implemented
    -

  • -
  • writeConfig (a0, group = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KConfig
    groupTQStringTQString .null
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KFileViewSignaler.html b/python/pykde/doc/classref/kfile/KFileViewSignaler.html deleted file mode 100644 index e1188f47..00000000 --- a/python/pykde/doc/classref/kfile/KFileViewSignaler.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - class KFileViewSignaler - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KFileViewSignaler


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKFileViewSignaler
InheritsTQObject
-

methods

    -
  • activate (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemKFileItem
    -

  • -
  • activateMenu (i, pos) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    iKFileItem
    posTQPoint
    -

  • -
  • activatedMenu (i, a0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    iKFileItem
    a0TQPoint
    -

  • -
  • changeSorting (sorting) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sortingTQDir.SortSpec
    -

  • -
  • dirActivated (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KFileItem
    -

  • -
  • dropURLs (i, e, urls) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    iKFileItem
    eTQDropEvent
    urlsKURL.List
    -

  • -
  • dropped (a0, a1, a2) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    a0KFileItem
    a1TQDropEvent
    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
    a0TQDir.SortSpec
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KIconButton.html b/python/pykde/doc/classref/kfile/KIconButton.html deleted file mode 100644 index 79cca198..00000000 --- a/python/pykde/doc/classref/kfile/KIconButton.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - - class KIconButton - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KIconButton


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKIconButton
InheritsTQPushButton
-

methods

    -
  • KIconButton (parent = 0, name = 0) -
    -
    returns a KIconButton instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KIconButton (loader, parent, name = 0) -
    -
    returns a KIconButton instance
    - - - -
    ArgumentTypeDefault
    loaderKIconLoader
    parentTQWidget
    namechar0
    -

  • -
  • icon () -
    -
    returns (TQString)

  • -
  • iconChanged (icon) -
    Not Implemented
    -

  • -
  • iconSize () -
    -
    returns (int)

  • -
  • resetIcon () -
    -
    returns nothing

  • -
  • setIcon (icon) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iconTQString
    -

  • -
  • 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/python/pykde/doc/classref/kfile/KIconCanvas.html b/python/pykde/doc/classref/kfile/KIconCanvas.html deleted file mode 100644 index 9113e026..00000000 --- a/python/pykde/doc/classref/kfile/KIconCanvas.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    -

  • -
  • finished () -
    -
    returns nothing

  • -
  • getCurrent () -
    -
    returns (TQString)

  • -
  • loadFiles (files) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    filesTQStringList
    -

  • -
  • nameChanged (a0) -
    Not Implemented
    -

  • -
  • progress (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • startLoading (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • stopLoading () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KIconDialog.html b/python/pykde/doc/classref/kfile/KIconDialog.html deleted file mode 100644 index 6efece43..00000000 --- a/python/pykde/doc/classref/kfile/KIconDialog.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    -

  • -
  • KIconDialog (loader, parent = 0, name = 0) -
    -
    returns a KIconDialog instance
    - - - -
    ArgumentTypeDefault
    loaderKIconLoader
    parentTQWidget0
    namechar0
    -

  • -
  • getIcon (group = KIcon .Desktop, context = KIcon .Application, strictIconSize = 0, iconSize = 0, user = 0, parent = 0, caption = TQString .null) -
    - -
    returns (TQString)
    static
    - - - - - - - -
    ArgumentTypeDefault
    groupKIcon.GroupKIcon .Desktop
    contextKIcon.ContextKIcon .Application
    strictIconSizebool0
    iconSizeint0
    userbool0
    parentTQWidget0
    captionTQStringTQString .null
    -

  • -
  • iconSize () -
    -
    returns (int)

  • -
  • newIconName (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • openDialog () -
    -
    returns (TQString)

  • -
  • selectIcon (group = KIcon .Desktop, context = KIcon .Application, user = 0) -
    -
    returns (TQString)
    - - - -
    ArgumentTypeDefault
    groupKIcon.GroupKIcon .Desktop
    contextKIcon.ContextKIcon .Application
    userbool0
    -

  • -
  • setCustomLocation (location) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    locationTQString
    -

  • -
  • 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/python/pykde/doc/classref/kfile/KImageFilePreview.html b/python/pykde/doc/classref/kfile/KImageFilePreview.html deleted file mode 100644 index 3a768d98..00000000 --- a/python/pykde/doc/classref/kfile/KImageFilePreview.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - 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
    parentTQWidget
    -

  • -
  • clearPreview () -
    -
    returns nothing

  • -
  • createJob (url, w, h) -
    -
    returns (KIO.PreviewJob)
    - - - -
    ArgumentTypeDefault
    urlKURL
    wint
    hint
    -

  • -
  • gotPreview (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KFileItem
    a1TQPixmap
    -

  • -
  • resizeEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQResizeEvent
    -

  • -
  • showPreview (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • showPreview () -
    -
    returns nothing

  • -
  • showPreview (url, force) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    urlKURL
    forcebool
    -

  • -
  • sizeHint () -
    -
    returns (TQSize)

  • -
  • toggleAuto (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KNotify.Application.html b/python/pykde/doc/classref/kfile/KNotify.Application.html deleted file mode 100644 index bcc2774a..00000000 --- a/python/pykde/doc/classref/kfile/KNotify.Application.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - 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
    pathTQString
    -

  • -
  • appName () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • eventList () -
    - -
    returns (KNotify.EventList)
    In versions KDE 3.1.0 and above only

  • -
  • icon () -
    - -
    returns (TQString)
    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 (TQString)
    In versions KDE 3.1.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KNotify.ApplicationList.html b/python/pykde/doc/classref/kfile/KNotify.ApplicationList.html deleted file mode 100644 index 6d635093..00000000 --- a/python/pykde/doc/classref/kfile/KNotify.ApplicationList.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kfile/KNotify.Event.html b/python/pykde/doc/classref/kfile/KNotify.Event.html deleted file mode 100644 index 785ba6f6..00000000 --- a/python/pykde/doc/classref/kfile/KNotify.Event.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - 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 (TQString)
    In versions KDE 3.1.0 and above only

  • -
-

variables

  • -variables - - - - - -
    VariableType
    commandlineTQString
    dontShowint
    logfileTQString
    presentationint
    soundfileTQString
- - - diff --git a/python/pykde/doc/classref/kfile/KNotify.KNotifyWidget.html b/python/pykde/doc/classref/kfile/KNotify.KNotifyWidget.html deleted file mode 100644 index 8f41f252..00000000 --- a/python/pykde/doc/classref/kfile/KNotify.KNotifyWidget.html +++ /dev/null @@ -1,150 +0,0 @@ - - - - - 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
    a0TQWidget0
    a1char0
    a2bool0
    -

  • -
  • addApplicationEvents (a0) -
    - -
    returns (KNotify.Application)
    In versions less than KDE 3.2.0 only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • 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
    a0TQShowEvent
    -

  • -
  • 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/python/pykde/doc/classref/kfile/KNotify.ListViewItem.html b/python/pykde/doc/classref/kfile/KNotify.ListViewItem.html deleted file mode 100644 index 65fd8c80..00000000 --- a/python/pykde/doc/classref/kfile/KNotify.ListViewItem.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - class KNotify.ListViewItem - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KNotify.ListViewItem


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKNotify.ListViewItem
InheritsTQListViewItem
-

methods

    -
  • ListViewItem (view, event) -
    - -
    returns a ListViewItem instance
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    viewTQListView
    eventKNotify.Event
    -

  • -
  • compare (i, col, ascending) -
    - -
    returns (int)
    In versions KDE 3.1.0 and above only
    - - - -
    ArgumentTypeDefault
    iTQListViewItem
    colint
    ascendingbool
    -

  • -
  • event () -
    - -
    returns (KNotify.Event)
    In versions KDE 3.1.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KNotify.html b/python/pykde/doc/classref/kfile/KNotify.html deleted file mode 100644 index c43b05a2..00000000 --- a/python/pykde/doc/classref/kfile/KNotify.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - class KNotify - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KNotify


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKNotify
Inherits
-

classes

- - - diff --git a/python/pykde/doc/classref/kfile/KNotifyDialog.html b/python/pykde/doc/classref/kfile/KNotifyDialog.html deleted file mode 100644 index a8c92de9..00000000 --- a/python/pykde/doc/classref/kfile/KNotifyDialog.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - 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
    parentTQWidget0
    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
    pathTQString
    -

  • -
  • 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
    parentTQWidget0
    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/python/pykde/doc/classref/kfile/KOpenWithDlg.html b/python/pykde/doc/classref/kfile/KOpenWithDlg.html deleted file mode 100644 index e3499cb6..00000000 --- a/python/pykde/doc/classref/kfile/KOpenWithDlg.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - class KOpenWithDlg - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KOpenWithDlg


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKOpenWithDlg
InheritsTQDialog
-

methods

    -
  • KOpenWithDlg (urls, parent = 0) -
    -
    returns a KOpenWithDlg instance
    - - -
    ArgumentTypeDefault
    urlsKURL.List
    parentTQWidget0
    -

  • -
  • KOpenWithDlg (urls, text, value, parent = 0) -
    -
    returns a KOpenWithDlg instance
    - - - - -
    ArgumentTypeDefault
    urlsKURL.List
    textTQString
    valueTQString
    parentTQWidget0
    -

  • -
  • KOpenWithDlg (serviceType, value, parent = 0) -
    -
    returns a KOpenWithDlg instance
    - - - -
    ArgumentTypeDefault
    serviceTypeTQString
    valueTQString
    parentTQWidget0
    -

  • -
  • KOpenWithDlg (parent = 0) -
    - -
    returns a KOpenWithDlg instance
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    parentTQWidget0
    -

  • -
  • 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
    textTQString
    valueTQString
    -

  • -
  • 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
    _nameTQString
    _execTQString
    -

  • -
  • slotOK () -
    -
    returns nothing

  • -
  • slotSelected (_name, _exec) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    _nameTQString
    _execTQString
    -

  • -
  • slotTerminalToggled (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • slotTextChanged () -
    -
    returns nothing

  • -
  • text () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KPreviewWidgetBase.html b/python/pykde/doc/classref/kfile/KPreviewWidgetBase.html deleted file mode 100644 index f913d168..00000000 --- a/python/pykde/doc/classref/kfile/KPreviewWidgetBase.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - class KPreviewWidgetBase - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KPreviewWidgetBase


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKPreviewWidgetBase (abstract)
InheritsTQWidget
-

methods

    -
  • KPreviewWidgetBase (parent, name = 0) -
    -
    returns a KPreviewWidgetBase instance
    - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar0
    -

  • -
  • clearPreview () = 0 -
    - -
    returns nothing
    pure virtual

  • -
  • setSupportedMimeTypes (mimeTypes) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    mimeTypesTQStringList
    -

  • -
  • showPreview (url) = 0 -
    - -
    returns nothing
    pure virtual
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • supportedMimeTypes () -
    - -
    returns (TQStringList)
    In versions KDE 3.2.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KPropertiesDialog.html b/python/pykde/doc/classref/kfile/KPropertiesDialog.html deleted file mode 100644 index f1614ab1..00000000 --- a/python/pykde/doc/classref/kfile/KPropertiesDialog.html +++ /dev/null @@ -1,223 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    modalbool0
    autoShowbool1
    -

  • -
  • KPropertiesDialog (_items, parent = 0, name = 0, modal = 0, autoShow = 1) -
    -
    returns a KPropertiesDialog instance
    - - - - - -
    ArgumentTypeDefault
    _itemsKFileItemList
    parentTQWidget0
    namechar0
    modalbool0
    autoShowbool1
    -

  • -
  • KPropertiesDialog (_url, _mode, parent = 0, name = 0, modal = 0, autoShow = 1) -
    -
    returns a KPropertiesDialog instance
    - - - - - - -
    ArgumentTypeDefault
    _urlKURL
    _modemode_t
    parentTQWidget0
    namechar0
    modalbool0
    autoShowbool1
    -

  • -
  • KPropertiesDialog (_url, parent = 0, name = 0, modal = 0, autoShow = 1) -
    -
    returns a KPropertiesDialog instance
    - - - - - -
    ArgumentTypeDefault
    _urlKURL
    parentTQWidget0
    namechar0
    modalbool0
    autoShowbool1
    -

  • -
  • KPropertiesDialog (_tempUrl, _currentDir, _defaultName, parent = 0, name = 0, modal = 0, autoShow = 1) -
    -
    returns a KPropertiesDialog instance
    - - - - - - - -
    ArgumentTypeDefault
    _tempUrlKURL
    _currentDirKURL
    _defaultNameTQString
    parentTQWidget0
    namechar0
    modalbool0
    autoShowbool1
    -

  • -
  • KPropertiesDialog (title, parent = 0, name = 0, modal = 0) -
    -
    returns a KPropertiesDialog instance
    - - - - -
    ArgumentTypeDefault
    titleTQString
    parentTQWidget0
    namechar0
    modalbool0
    -

  • -
  • abortApplying () -
    -
    returns nothing

  • -
  • applied () -
    -
    returns nothing

  • -
  • canDisplay (_items) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    _itemsKFileItemList
    -

  • -
  • canceled () -
    -
    returns nothing

  • -
  • currentDir () -
    -
    returns (KURL)

  • -
  • defaultName () -
    -
    returns (TQString)

  • -
  • 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
    _nameTQString
    -

  • -
  • 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
    pageTQWidget
    -

  • -
  • showDialog (item, parent = 0, name = 0, modal = 0) -
    - - -
    returns (bool)
    In versions KDE 3.4.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    itemKFileItem
    parentTQWidget0
    namechar0
    modalbool0
    -

  • -
  • showDialog (_url, parent = 0, name = 0, modal = 0) -
    - - -
    returns (bool)
    In versions KDE 3.4.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    _urlKURL
    parentTQWidget0
    namechar0
    modalbool0
    -

  • -
  • showDialog (_items, parent = 0, name = 0, modal = 0) -
    - - -
    returns (bool)
    In versions KDE 3.4.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    _itemsKFileItemList
    parentTQWidget0
    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/python/pykde/doc/classref/kfile/KPropsDlgPlugin.html b/python/pykde/doc/classref/kfile/KPropsDlgPlugin.html deleted file mode 100644 index af586e08..00000000 --- a/python/pykde/doc/classref/kfile/KPropsDlgPlugin.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - class KPropsDlgPlugin - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KPropsDlgPlugin


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKPropsDlgPlugin
InheritsTQObject
-

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/python/pykde/doc/classref/kfile/KRecentDirs.html b/python/pykde/doc/classref/kfile/KRecentDirs.html deleted file mode 100644 index c5c14092..00000000 --- a/python/pykde/doc/classref/kfile/KRecentDirs.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - 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
    fileClassTQString
    directoryTQString
    -

  • -
  • dir (fileClass) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    fileClassTQString
    -

  • -
  • list (fileClass) -
    - -
    returns (TQStringList)
    static
    - -
    ArgumentTypeDefault
    fileClassTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KRecentDocument.html b/python/pykde/doc/classref/kfile/KRecentDocument.html deleted file mode 100644 index 9f9f6a9b..00000000 --- a/python/pykde/doc/classref/kfile/KRecentDocument.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - 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
    desktopEntryNameTQString
    -

  • -
  • add (documentStr, isURL = 0) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    documentStrTQString
    isURLbool0
    -

  • -
  • clear () -
    - -
    returns nothing
    static

  • -
  • maximumItems () -
    - -
    returns (int)
    static

  • -
  • recentDocumentDirectory () -
    - -
    returns (TQString)
    static

  • -
  • recentDocuments () -
    - -
    returns (TQStringList)
    static

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KURLBar.html b/python/pykde/doc/classref/kfile/KURLBar.html deleted file mode 100644 index d76c2ede..00000000 --- a/python/pykde/doc/classref/kfile/KURLBar.html +++ /dev/null @@ -1,211 +0,0 @@ - - - - - class KURLBar - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KURLBar


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKURLBar
InheritsTQFrame
-

methods

    -
  • KURLBar (useGlobalItems, parent = 0, name = 0, f = 0) -
    -
    returns a KURLBar instance
    - - - - -
    ArgumentTypeDefault
    useGlobalItemsbool
    parentTQWidget0
    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 = TQString .null, group = KIcon .Panel) -
    - -
    returns (KURLBarItem)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    urlKURL
    descriptionTQString
    iconTQStringTQString .null
    groupKIcon.GroupKIcon .Panel
    -

  • -
  • insertItem (url, description, applicationLocal = 1, icon = TQString .null, group = KIcon .Panel) -
    -
    returns (KURLBarItem)
    - - - - - -
    ArgumentTypeDefault
    urlKURL
    descriptionTQString
    applicationLocalbool1
    iconTQStringTQString .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 (TQSize)

  • -
  • orientation () -
    -
    returns (Qt.Orientation)

  • -
  • paletteChange (a0) -
    - -
    returns nothing
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    a0TQPalette
    -

  • -
  • readConfig (config, itemGroup) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    configKConfig
    itemGroupTQString
    -

  • -
  • readItem (i, config, applicationLocal) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    iint
    configKConfig
    applicationLocalbool
    -

  • -
  • resizeEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • 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 (TQSize)

  • -
  • slotContextMenuRequested (a0, pos) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0TQListBoxItem
    posTQPoint
    -

  • -
  • slotDropped (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDropEvent
    -

  • -
  • slotSelected (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQListBoxItem
    -

  • -
  • writeConfig (config, itemGroup) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    configKConfig
    itemGroupTQString
    -

  • -
  • writeItem (item, i, a0, global) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    itemKURLBarItem
    iint
    a0KConfig
    globalbool
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KURLBarItem.html b/python/pykde/doc/classref/kfile/KURLBarItem.html deleted file mode 100644 index ede3c47d..00000000 --- a/python/pykde/doc/classref/kfile/KURLBarItem.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - class KURLBarItem - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KURLBarItem


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKURLBarItem
InheritsTQListBoxPixmap
-

methods

    -
  • KURLBarItem (parent, url, persistent, description = TQString .null, icon = TQString .null, group = KIcon .Panel) -
    - -
    returns a KURLBarItem instance
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    parentKURLBar
    urlKURL
    persistentbool
    descriptionTQStringTQString .null
    iconTQStringTQString .null
    groupKIcon.GroupKIcon .Panel
    -

  • -
  • KURLBarItem (parent, url, description = TQString .null, icon = TQString .null, group = KIcon .Panel) -
    -
    returns a KURLBarItem instance
    - - - - - -
    ArgumentTypeDefault
    parentKURLBar
    urlKURL
    descriptionTQStringTQString .null
    iconTQStringTQString .null
    groupKIcon.GroupKIcon .Panel
    -

  • -
  • applicationLocal () -
    -
    returns (bool)

  • -
  • description () -
    -
    returns (TQString)

  • -
  • height (a0) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    a0TQListBox
    -

  • -
  • icon () -
    -
    returns (TQString)

  • -
  • iconGroup () -
    -
    returns (KIcon.Group)

  • -
  • isPersistent () -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only

  • -
  • paint (p) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pTQPainter
    -

  • -
  • pixmap () -
    -
    returns (TQPixmap)

  • -
  • setApplicationLocal (local) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    localbool
    -

  • -
  • setDescription (desc) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    descTQString
    -

  • -
  • setIcon (icon, group = KIcon .Panel) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    iconTQString
    groupKIcon.GroupKIcon .Panel
    -

  • -
  • setToolTip (tip) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    tipTQString
    -

  • -
  • setURL (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • sizeHint () -
    - -
    returns (TQSize)
    In versions KDE 3.0.1 and above only

  • -
  • toolTip () -
    -
    returns (TQString)

  • -
  • url () -
    -
    returns (KURL)

  • -
  • width (a0) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    a0TQListBox
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KURLBarItemDialog.html b/python/pykde/doc/classref/kfile/KURLBarItemDialog.html deleted file mode 100644 index 7344e51f..00000000 --- a/python/pykde/doc/classref/kfile/KURLBarItemDialog.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - 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
    descriptionTQString
    iconTQString
    appLocalbool1
    iconSizeintKIcon .SizeMedium
    parentTQWidget0
    namechar0
    -

  • -
  • applicationLocal () -
    -
    returns (bool)

  • -
  • description () -
    -
    returns (TQString)

  • -
  • getInformation (allowGlobal, url, description, icon, iconSize, parent = 0) -
    - -
    returns (bool) appLocal (bool)
    static
    - - - - - - -
    ArgumentTypeDefault
    allowGlobalbool
    urlKURL
    descriptionTQString
    iconTQString
    iconSizeint
    parentTQWidget0
    -

  • -
  • icon () -
    -
    returns (TQString)

  • -
  • url () -
    -
    returns (KURL)

  • -
  • urlChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KURLBarListBox.html b/python/pykde/doc/classref/kfile/KURLBarListBox.html deleted file mode 100644 index af027d63..00000000 --- a/python/pykde/doc/classref/kfile/KURLBarListBox.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    -

  • -
  • contentsDragEnterEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDragEnterEvent
    -

  • -
  • contentsDropEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDropEvent
    -

  • -
  • contextMenuEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQContextMenuEvent
    -

  • -
  • dragObject () -
    -
    returns (TQDragObject)

  • -
  • dropped (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQDropEvent
    -

  • -
  • 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
    a0TQPaintEvent
    -

  • -
  • setOrientation (orient) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    orientQt.Orientation
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KURLComboBox.html b/python/pykde/doc/classref/kfile/KURLComboBox.html deleted file mode 100644 index 35e1ddc6..00000000 --- a/python/pykde/doc/classref/kfile/KURLComboBox.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    -

  • -
  • KURLComboBox (mode, rw, parent = 0, name = 0) -
    -
    returns a KURLComboBox instance
    - - - - -
    ArgumentTypeDefault
    modeKURLComboBox.Mode
    rwbool
    parentTQWidget0
    namechar0
    -

  • -
  • addDefaultURL (url, text = TQString .null) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    urlKURL
    textTQStringTQString .null
    -

  • -
  • addDefaultURL (url, pix, text = TQString .null) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    urlKURL
    pixTQPixmap
    textTQStringTQString .null
    -

  • -
  • getPixmap (url) -
    -
    returns (TQPixmap)
    - -
    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
    urlsTQStringList
    -

  • -
  • setURLs (urls, remove) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    urlsTQStringList
    removeKURLComboBox.OverLoadResolving
    -

  • -
  • slotActivated (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • updateItem (item, index, pix) -
    Not Implemented
    -

  • -
  • urlActivated (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • urls () -
    -
    returns (TQStringList)

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KURLComboRequester.html b/python/pykde/doc/classref/kfile/KURLComboRequester.html deleted file mode 100644 index 71655612..00000000 --- a/python/pykde/doc/classref/kfile/KURLComboRequester.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KURLPropsPlugin.html b/python/pykde/doc/classref/kfile/KURLPropsPlugin.html deleted file mode 100644 index 60e8cedc..00000000 --- a/python/pykde/doc/classref/kfile/KURLPropsPlugin.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kfile/KURLRequester.html b/python/pykde/doc/classref/kfile/KURLRequester.html deleted file mode 100644 index 57758e81..00000000 --- a/python/pykde/doc/classref/kfile/KURLRequester.html +++ /dev/null @@ -1,171 +0,0 @@ - - - - - class KURLRequester - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KURLRequester


-
- - - - - -
Table of contents
Modules
kfile Classes
All Classes
-
- - - - - - - - - - -
Modulekfile
ClassKURLRequester
InheritsTQHBox
-

methods

    -
  • KURLRequester (parent = 0, name = 0) -
    -
    returns a KURLRequester instance
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    -

  • -
  • KURLRequester (url, parent = 0, name = 0) -
    -
    returns a KURLRequester instance
    - - - -
    ArgumentTypeDefault
    urlTQString
    parentTQWidget0
    namechar0
    -

  • -
  • KURLRequester (editWidget, parent, name = 0) -
    -
    returns a KURLRequester instance
    - - - -
    ArgumentTypeDefault
    editWidgetTQWidget
    parentTQWidget
    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 (TQString)
    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
    a0TQString
    -

  • -
  • setCaption (caption) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    captionTQString
    -

  • -
  • setFilter (filter) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    filterTQString
    -

  • -
  • 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
    urlTQString
    -

  • -
  • showLocalProtocol () -
    -
    returns (bool)

  • -
  • slotOpenDialog () -
    -
    returns nothing

  • -
  • textChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • url () -
    -
    returns (TQString)

  • -
  • urlSelected (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/KURLRequesterDlg.html b/python/pykde/doc/classref/kfile/KURLRequesterDlg.html deleted file mode 100644 index af094d4c..00000000 --- a/python/pykde/doc/classref/kfile/KURLRequesterDlg.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - 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
    urlTQString
    parentTQWidget
    namechar
    modalbool1
    -

  • -
  • KURLRequesterDlg (url, text, parent, name, modal = 1) -
    -
    returns a KURLRequesterDlg instance
    - - - - - -
    ArgumentTypeDefault
    urlTQString
    textTQString
    parentTQWidget
    namechar
    modalbool1
    -

  • -
  • fileDialog () -
    -
    returns (KFileDialog)

  • -
  • getURL (url = TQString .null, parent = 0, caption = TQString .null) -
    - -
    returns (KURL)
    static
    - - - -
    ArgumentTypeDefault
    urlTQStringTQString .null
    parentTQWidget0
    captionTQStringTQString .null
    -

  • -
  • selectedURL () -
    -
    returns (KURL)

  • -
  • urlRequester () -
    -
    returns (KURLRequester)

  • -
- - - diff --git a/python/pykde/doc/classref/kfile/index.html b/python/pykde/doc/classref/kfile/index.html deleted file mode 100644 index 1c3ac8d2..00000000 --- a/python/pykde/doc/classref/kfile/index.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.AbstractView.html b/python/pykde/doc/classref/khtml/DOM.AbstractView.html deleted file mode 100644 index 72349b83..00000000 --- a/python/pykde/doc/classref/khtml/DOM.AbstractView.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.Attr.html b/python/pykde/doc/classref/khtml/DOM.Attr.html deleted file mode 100644 index 631082de..00000000 --- a/python/pykde/doc/classref/khtml/DOM.Attr.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CDATASection.html b/python/pykde/doc/classref/khtml/DOM.CDATASection.html deleted file mode 100644 index d2519cae..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CDATASection.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CSSCharsetRule.html b/python/pykde/doc/classref/khtml/DOM.CSSCharsetRule.html deleted file mode 100644 index 34e716a2..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CSSCharsetRule.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CSSException.html b/python/pykde/doc/classref/khtml/DOM.CSSException.html deleted file mode 100644 index dac4e991..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CSSException.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CSSFontFaceRule.html b/python/pykde/doc/classref/khtml/DOM.CSSFontFaceRule.html deleted file mode 100644 index 3059e87a..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CSSFontFaceRule.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CSSImportRule.html b/python/pykde/doc/classref/khtml/DOM.CSSImportRule.html deleted file mode 100644 index 15245c4d..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CSSImportRule.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CSSMediaRule.html b/python/pykde/doc/classref/khtml/DOM.CSSMediaRule.html deleted file mode 100644 index f7733aa6..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CSSMediaRule.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CSSPageRule.html b/python/pykde/doc/classref/khtml/DOM.CSSPageRule.html deleted file mode 100644 index 5634a75c..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CSSPageRule.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CSSPrimitiveValue.html b/python/pykde/doc/classref/khtml/DOM.CSSPrimitiveValue.html deleted file mode 100644 index 78a4f703..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CSSPrimitiveValue.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CSSRule.html b/python/pykde/doc/classref/khtml/DOM.CSSRule.html deleted file mode 100644 index 4e891264..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CSSRule.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CSSRuleList.html b/python/pykde/doc/classref/khtml/DOM.CSSRuleList.html deleted file mode 100644 index 1a0f8529..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CSSRuleList.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CSSStyleDeclaration.html b/python/pykde/doc/classref/khtml/DOM.CSSStyleDeclaration.html deleted file mode 100644 index 763ec61e..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CSSStyleDeclaration.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CSSStyleRule.html b/python/pykde/doc/classref/khtml/DOM.CSSStyleRule.html deleted file mode 100644 index 823498d2..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CSSStyleRule.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CSSStyleSheet.html b/python/pykde/doc/classref/khtml/DOM.CSSStyleSheet.html deleted file mode 100644 index 83b4b8ba..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CSSStyleSheet.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CSSUnknownRule.html b/python/pykde/doc/classref/khtml/DOM.CSSUnknownRule.html deleted file mode 100644 index 963db0e1..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CSSUnknownRule.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CSSValue.html b/python/pykde/doc/classref/khtml/DOM.CSSValue.html deleted file mode 100644 index b8bbec47..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CSSValue.html +++ /dev/null @@ -1,81 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CSSValueList.html b/python/pykde/doc/classref/khtml/DOM.CSSValueList.html deleted file mode 100644 index 0b3e2266..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CSSValueList.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CharacterData.html b/python/pykde/doc/classref/khtml/DOM.CharacterData.html deleted file mode 100644 index 26e79518..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CharacterData.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.Comment.html b/python/pykde/doc/classref/khtml/DOM.Comment.html deleted file mode 100644 index 526f868c..00000000 --- a/python/pykde/doc/classref/khtml/DOM.Comment.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.Counter.html b/python/pykde/doc/classref/khtml/DOM.Counter.html deleted file mode 100644 index 1bc741c3..00000000 --- a/python/pykde/doc/classref/khtml/DOM.Counter.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.CustomNodeFilter.html b/python/pykde/doc/classref/khtml/DOM.CustomNodeFilter.html deleted file mode 100644 index e48c6172..00000000 --- a/python/pykde/doc/classref/khtml/DOM.CustomNodeFilter.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.DOMException.html b/python/pykde/doc/classref/khtml/DOM.DOMException.html deleted file mode 100644 index cb254cbd..00000000 --- a/python/pykde/doc/classref/khtml/DOM.DOMException.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.DOMImplementation.html b/python/pykde/doc/classref/khtml/DOM.DOMImplementation.html deleted file mode 100644 index 1ddd5033..00000000 --- a/python/pykde/doc/classref/khtml/DOM.DOMImplementation.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.DOMString.html b/python/pykde/doc/classref/khtml/DOM.DOMString.html deleted file mode 100644 index d2522121..00000000 --- a/python/pykde/doc/classref/khtml/DOM.DOMString.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - 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
    strTQChar
    lenuint
    -

  • -
  • DOMString (a0) -
    -
    returns a DOMString instance
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • 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
    cTQChar
    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 (TQString)

  • -
  • toInt () -
    -
    returns (int)

  • -
  • truncate (len) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    lenuint
    -

  • -
  • unicode () -
    -
    returns (TQChar)

  • -
  • upper () -
    -
    returns (DOM.DOMString)

  • -
-

operators

    -
  • operator + (a0) -
    -
    returns (DOM.DOMString)
    - -
    ArgumentTypeDefault
    a0DOM.DOMString
    -

  • -
  • operator += (a0) -
    -
    returns (DOM.DOMString)
    - -
    ArgumentTypeDefault
    a0DOM.DOMString
    -

  • -
  • operator [] (index) -
    -
    returns (TQChar),
    - -
    ArgumentTypeDefault
    indexin
    -

  • -
- - - diff --git a/python/pykde/doc/classref/khtml/DOM.Document.html b/python/pykde/doc/classref/khtml/DOM.Document.html deleted file mode 100644 index dd12a983..00000000 --- a/python/pykde/doc/classref/khtml/DOM.Document.html +++ /dev/null @@ -1,292 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.DocumentFragment.html b/python/pykde/doc/classref/khtml/DOM.DocumentFragment.html deleted file mode 100644 index d35a07a8..00000000 --- a/python/pykde/doc/classref/khtml/DOM.DocumentFragment.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.DocumentStyle.html b/python/pykde/doc/classref/khtml/DOM.DocumentStyle.html deleted file mode 100644 index 1b2df6eb..00000000 --- a/python/pykde/doc/classref/khtml/DOM.DocumentStyle.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.DocumentType.html b/python/pykde/doc/classref/khtml/DOM.DocumentType.html deleted file mode 100644 index 3c7911ed..00000000 --- a/python/pykde/doc/classref/khtml/DOM.DocumentType.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.DomShared.html b/python/pykde/doc/classref/khtml/DOM.DomShared.html deleted file mode 100644 index 885a8ac1..00000000 --- a/python/pykde/doc/classref/khtml/DOM.DomShared.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.Element.html b/python/pykde/doc/classref/khtml/DOM.Element.html deleted file mode 100644 index c7fd5bed..00000000 --- a/python/pykde/doc/classref/khtml/DOM.Element.html +++ /dev/null @@ -1,220 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.Entity.html b/python/pykde/doc/classref/khtml/DOM.Entity.html deleted file mode 100644 index c264e3c6..00000000 --- a/python/pykde/doc/classref/khtml/DOM.Entity.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.EntityReference.html b/python/pykde/doc/classref/khtml/DOM.EntityReference.html deleted file mode 100644 index de2a1d73..00000000 --- a/python/pykde/doc/classref/khtml/DOM.EntityReference.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.Event.html b/python/pykde/doc/classref/khtml/DOM.Event.html deleted file mode 100644 index 1dd15f6e..00000000 --- a/python/pykde/doc/classref/khtml/DOM.Event.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.EventException.html b/python/pykde/doc/classref/khtml/DOM.EventException.html deleted file mode 100644 index de6744ae..00000000 --- a/python/pykde/doc/classref/khtml/DOM.EventException.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.EventListener.html b/python/pykde/doc/classref/khtml/DOM.EventListener.html deleted file mode 100644 index 54257ce3..00000000 --- a/python/pykde/doc/classref/khtml/DOM.EventListener.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLAnchorElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLAnchorElement.html deleted file mode 100644 index 7ecfb866..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLAnchorElement.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLAppletElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLAppletElement.html deleted file mode 100644 index b217715e..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLAppletElement.html +++ /dev/null @@ -1,180 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLAreaElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLAreaElement.html deleted file mode 100644 index 9f7b5db7..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLAreaElement.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLBRElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLBRElement.html deleted file mode 100644 index 18b9b13c..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLBRElement.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLBaseElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLBaseElement.html deleted file mode 100644 index 60ca3e9a..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLBaseElement.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLBaseFontElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLBaseFontElement.html deleted file mode 100644 index 3218d92b..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLBaseFontElement.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLBlockquoteElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLBlockquoteElement.html deleted file mode 100644 index a34399d2..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLBlockquoteElement.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLBodyElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLBodyElement.html deleted file mode 100644 index 30686b4a..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLBodyElement.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLButtonElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLButtonElement.html deleted file mode 100644 index 5b3d3726..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLButtonElement.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLCollection.html b/python/pykde/doc/classref/khtml/DOM.HTMLCollection.html deleted file mode 100644 index 475cb693..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLCollection.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLDListElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLDListElement.html deleted file mode 100644 index ab14426e..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLDListElement.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLDirectoryElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLDirectoryElement.html deleted file mode 100644 index 1e5825fc..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLDirectoryElement.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLDivElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLDivElement.html deleted file mode 100644 index 7b2cdcc7..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLDivElement.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLDocument.html b/python/pykde/doc/classref/khtml/DOM.HTMLDocument.html deleted file mode 100644 index ae8d21b1..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLDocument.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLElement.html deleted file mode 100644 index 07cf8547..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLElement.html +++ /dev/null @@ -1,150 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLFieldSetElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLFieldSetElement.html deleted file mode 100644 index 86d49c49..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLFieldSetElement.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLFontElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLFontElement.html deleted file mode 100644 index 8b793e71..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLFontElement.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLFormElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLFormElement.html deleted file mode 100644 index 04215c4c..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLFormElement.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLFrameElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLFrameElement.html deleted file mode 100644 index 2e53b4f6..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLFrameElement.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLFrameSetElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLFrameSetElement.html deleted file mode 100644 index e88fb21d..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLFrameSetElement.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLHRElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLHRElement.html deleted file mode 100644 index abef8ca2..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLHRElement.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLHeadElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLHeadElement.html deleted file mode 100644 index fe329273..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLHeadElement.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLHeadingElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLHeadingElement.html deleted file mode 100644 index 0d4f8241..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLHeadingElement.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLHtmlElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLHtmlElement.html deleted file mode 100644 index 66ff63e5..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLHtmlElement.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLIFrameElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLIFrameElement.html deleted file mode 100644 index 3d22a8ae..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLIFrameElement.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLImageElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLImageElement.html deleted file mode 100644 index ed00f02a..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLImageElement.html +++ /dev/null @@ -1,186 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLInputElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLInputElement.html deleted file mode 100644 index 5dfa038b..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLInputElement.html +++ /dev/null @@ -1,279 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLIsIndexElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLIsIndexElement.html deleted file mode 100644 index 24ba7a61..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLIsIndexElement.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLLIElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLLIElement.html deleted file mode 100644 index aa868ad8..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLLIElement.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLLabelElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLLabelElement.html deleted file mode 100644 index 9e89da44..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLLabelElement.html +++ /dev/null @@ -1,81 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLLayerElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLLayerElement.html deleted file mode 100644 index 71c0a9fe..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLLayerElement.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLLegendElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLLegendElement.html deleted file mode 100644 index d1fc7496..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLLegendElement.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLLinkElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLLinkElement.html deleted file mode 100644 index 9facd146..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLLinkElement.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLMapElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLMapElement.html deleted file mode 100644 index 4abbb147..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLMapElement.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLMenuElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLMenuElement.html deleted file mode 100644 index 5df63036..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLMenuElement.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLMetaElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLMetaElement.html deleted file mode 100644 index e20d07ff..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLMetaElement.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLModElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLModElement.html deleted file mode 100644 index 5240472b..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLModElement.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLOListElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLOListElement.html deleted file mode 100644 index b71ed54b..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLOListElement.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLObjectElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLObjectElement.html deleted file mode 100644 index 8c868c20..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLObjectElement.html +++ /dev/null @@ -1,240 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLOptGroupElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLOptGroupElement.html deleted file mode 100644 index 82de37f4..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLOptGroupElement.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLOptionElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLOptionElement.html deleted file mode 100644 index 4da1c41c..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLOptionElement.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLParagraphElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLParagraphElement.html deleted file mode 100644 index 8cd2b7f5..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLParagraphElement.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLParamElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLParamElement.html deleted file mode 100644 index 1b06ca07..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLParamElement.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLPreElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLPreElement.html deleted file mode 100644 index 0bd3a4f8..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLPreElement.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLQuoteElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLQuoteElement.html deleted file mode 100644 index 478c13de..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLQuoteElement.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLScriptElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLScriptElement.html deleted file mode 100644 index 82b2e08d..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLScriptElement.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLSelectElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLSelectElement.html deleted file mode 100644 index e6492bfa..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLSelectElement.html +++ /dev/null @@ -1,153 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLStyleElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLStyleElement.html deleted file mode 100644 index 778ded7c..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLStyleElement.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLTableCaptionElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLTableCaptionElement.html deleted file mode 100644 index 66c0cf2a..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLTableCaptionElement.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLTableCellElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLTableCellElement.html deleted file mode 100644 index 0a67afe7..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLTableCellElement.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLTableColElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLTableColElement.html deleted file mode 100644 index e8476ff8..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLTableColElement.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLTableElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLTableElement.html deleted file mode 100644 index aab07f02..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLTableElement.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLTableRowElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLTableRowElement.html deleted file mode 100644 index 2383f766..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLTableRowElement.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLTableSectionElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLTableSectionElement.html deleted file mode 100644 index d21647a3..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLTableSectionElement.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLTextAreaElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLTextAreaElement.html deleted file mode 100644 index ba158ad0..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLTextAreaElement.html +++ /dev/null @@ -1,189 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLTitleElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLTitleElement.html deleted file mode 100644 index 1a08e650..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLTitleElement.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.HTMLUListElement.html b/python/pykde/doc/classref/khtml/DOM.HTMLUListElement.html deleted file mode 100644 index 21e71d42..00000000 --- a/python/pykde/doc/classref/khtml/DOM.HTMLUListElement.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.LinkStyle.html b/python/pykde/doc/classref/khtml/DOM.LinkStyle.html deleted file mode 100644 index db3004ef..00000000 --- a/python/pykde/doc/classref/khtml/DOM.LinkStyle.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.MediaList.html b/python/pykde/doc/classref/khtml/DOM.MediaList.html deleted file mode 100644 index 4fe4224e..00000000 --- a/python/pykde/doc/classref/khtml/DOM.MediaList.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.MouseEvent.html b/python/pykde/doc/classref/khtml/DOM.MouseEvent.html deleted file mode 100644 index 53414887..00000000 --- a/python/pykde/doc/classref/khtml/DOM.MouseEvent.html +++ /dev/null @@ -1,109 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.MutationEvent.html b/python/pykde/doc/classref/khtml/DOM.MutationEvent.html deleted file mode 100644 index 9d5b60dc..00000000 --- a/python/pykde/doc/classref/khtml/DOM.MutationEvent.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.NamedNodeMap.html b/python/pykde/doc/classref/khtml/DOM.NamedNodeMap.html deleted file mode 100644 index 6f377c90..00000000 --- a/python/pykde/doc/classref/khtml/DOM.NamedNodeMap.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.Node.html b/python/pykde/doc/classref/khtml/DOM.Node.html deleted file mode 100644 index fcca5835..00000000 --- a/python/pykde/doc/classref/khtml/DOM.Node.html +++ /dev/null @@ -1,221 +0,0 @@ - - - - - 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 (TQRect)

  • -
  • 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 (TQString)

  • -
-

operators

    -
  • operator != (a0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    a0DOM.Node
    -

  • -
  • operator == (a0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    a0DOM.Node
    -

  • -
- - - diff --git a/python/pykde/doc/classref/khtml/DOM.NodeFilter.html b/python/pykde/doc/classref/khtml/DOM.NodeFilter.html deleted file mode 100644 index 8eed4a11..00000000 --- a/python/pykde/doc/classref/khtml/DOM.NodeFilter.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.NodeIterator.html b/python/pykde/doc/classref/khtml/DOM.NodeIterator.html deleted file mode 100644 index 10c7c515..00000000 --- a/python/pykde/doc/classref/khtml/DOM.NodeIterator.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.NodeList.html b/python/pykde/doc/classref/khtml/DOM.NodeList.html deleted file mode 100644 index 3b089c81..00000000 --- a/python/pykde/doc/classref/khtml/DOM.NodeList.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.Notation.html b/python/pykde/doc/classref/khtml/DOM.Notation.html deleted file mode 100644 index 6e333afc..00000000 --- a/python/pykde/doc/classref/khtml/DOM.Notation.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.ProcessingInstruction.html b/python/pykde/doc/classref/khtml/DOM.ProcessingInstruction.html deleted file mode 100644 index 1ae2ff79..00000000 --- a/python/pykde/doc/classref/khtml/DOM.ProcessingInstruction.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.RGBColor.html b/python/pykde/doc/classref/khtml/DOM.RGBColor.html deleted file mode 100644 index 3e374cf5..00000000 --- a/python/pykde/doc/classref/khtml/DOM.RGBColor.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - 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
    cTQColor
    -

  • -
  • 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 (TQColor)
    In versions less than KDE 3.1.0 only

  • -
  • green () -
    -
    returns (DOM.CSSPrimitiveValue)

  • -
  • red () -
    -
    returns (DOM.CSSPrimitiveValue)

  • -
- - - diff --git a/python/pykde/doc/classref/khtml/DOM.Range.html b/python/pykde/doc/classref/khtml/DOM.Range.html deleted file mode 100644 index 56d53f40..00000000 --- a/python/pykde/doc/classref/khtml/DOM.Range.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.RangeException.html b/python/pykde/doc/classref/khtml/DOM.RangeException.html deleted file mode 100644 index a660b957..00000000 --- a/python/pykde/doc/classref/khtml/DOM.RangeException.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.Rect.html b/python/pykde/doc/classref/khtml/DOM.Rect.html deleted file mode 100644 index b9149c7f..00000000 --- a/python/pykde/doc/classref/khtml/DOM.Rect.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.StyleSheet.html b/python/pykde/doc/classref/khtml/DOM.StyleSheet.html deleted file mode 100644 index 8a2317f0..00000000 --- a/python/pykde/doc/classref/khtml/DOM.StyleSheet.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.StyleSheetList.html b/python/pykde/doc/classref/khtml/DOM.StyleSheetList.html deleted file mode 100644 index 4872d733..00000000 --- a/python/pykde/doc/classref/khtml/DOM.StyleSheetList.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.Text.html b/python/pykde/doc/classref/khtml/DOM.Text.html deleted file mode 100644 index 6e741659..00000000 --- a/python/pykde/doc/classref/khtml/DOM.Text.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.TextEvent.html b/python/pykde/doc/classref/khtml/DOM.TextEvent.html deleted file mode 100644 index 6c161284..00000000 --- a/python/pykde/doc/classref/khtml/DOM.TextEvent.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.TreeWalker.html b/python/pykde/doc/classref/khtml/DOM.TreeWalker.html deleted file mode 100644 index a1d6a96b..00000000 --- a/python/pykde/doc/classref/khtml/DOM.TreeWalker.html +++ /dev/null @@ -1,109 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.UIEvent.html b/python/pykde/doc/classref/khtml/DOM.UIEvent.html deleted file mode 100644 index 1605f5cf..00000000 --- a/python/pykde/doc/classref/khtml/DOM.UIEvent.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/DOM.html b/python/pykde/doc/classref/khtml/DOM.html deleted file mode 100644 index 89a13c92..00000000 --- a/python/pykde/doc/classref/khtml/DOM.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/KHTMLPart.html b/python/pykde/doc/classref/khtml/KHTMLPart.html deleted file mode 100644 index 9edb9489..00000000 --- a/python/pykde/doc/classref/khtml/KHTMLPart.html +++ /dev/null @@ -1,807 +0,0 @@ - - - - - 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
    parentWidgetTQWidget0
    widgetnamechar0
    parentTQObject0
    namechar0
    profKHTMLPart.GUIProfileDefaultGUI
    -

  • -
  • KHTMLPart (view, parent = 0, name = 0, prof = DefaultGUI) -
    -
    returns a KHTMLPart instance
    - - - - -
    ArgumentTypeDefault
    viewKHTMLView
    parentTQObject0
    namechar0
    profKHTMLPart.GUIProfileDefaultGUI
    -

  • -
  • activeNode () -
    -
    returns (DOM.Node)

  • -
  • autoloadImages () -
    -
    returns (bool)

  • -
  • autoloadImages (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    ebool
    -

  • -
  • backgroundURL () -
    -
    returns (KURL)

  • -
  • baseTarget () -
    -
    returns (TQString)

  • -
  • 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
    urlTQString
    -

  • -
  • createJavaContext () -
    Not Implemented
    -

  • -
  • createPart (parentWidget, widgetName, parent, name, mimetype, serviceName, serviceTypes, params) -
    -
    returns (KParts.ReadOnlyPart)
    - - - - - - - - -
    ArgumentTypeDefault
    parentWidgetTQWidget
    widgetNamechar
    parentTQObject
    namechar
    mimetypeTQString
    serviceNameTQString
    serviceTypesTQStringList
    paramsTQStringList
    -

  • -
  • currentFrame () -
    -
    returns (KParts.ReadOnlyPart)

  • -
  • customEvent (event) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eventTQCustomEvent
    -

  • -
  • dcopObjectId () -
    -
    returns (TQCString)

  • -
  • 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
    mimeTypeTQString
    -

  • -
  • doWriteStream (data) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    dataTQByteArray
    -

  • -
  • docCreated () -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only

  • -
  • document () -
    -
    returns (DOM.Document)

  • -
  • documentSource () -
    -
    returns (TQString)

  • -
  • 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 (TQString)

  • -
  • end () -
    -
    returns nothing

  • -
  • executeScript (n, script) -
    -
    returns (TQVariant)
    - - -
    ArgumentTypeDefault
    nDOM.Node
    scriptTQString
    -

  • -
  • executeScript (script) -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    scriptTQString
    -

  • -
  • executeScript (a0) -
    - -
    returns (TQVariant)
    In versions less than KDE 3.2.0 only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • findFrame (f) -
    -
    returns (KHTMLPart)
    - -
    ArgumentTypeDefault
    fTQString
    -

  • -
  • findFrameParent (callingPart, f) -
    -
    returns (KHTMLPart) childFrame (khtml.ChildFrame)
    - - -
    ArgumentTypeDefault
    callingPartKParts.ReadOnlyPart
    fTQString
    -

  • -
  • findFramePart (f) -
    -
    returns (KParts.ReadOnlyPart)
    - -
    ArgumentTypeDefault
    fTQString
    -

  • -
  • 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
    strTQString
    optionslong
    parentTQWidget0
    findDialogKFindDialog0
    -

  • -
  • findTextBegin () -
    -
    returns nothing

  • -
  • findTextNext (str, forward, caseSensitive, isRegExp) -
    -
    returns (bool)
    - - - - -
    ArgumentTypeDefault
    strTQString
    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
    urlTQString
    formDataTQByteArray
    targetTQString
    contentTypeTQString
    boundaryTQString
    -

  • -
  • frameExists (frameName) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    frameNameTQString
    -

  • -
  • frameNames () -
    -
    returns (TQStringList)

  • -
  • framejScript (framePart) -
    -
    returns (KJSProxy)
    - -
    ArgumentTypeDefault
    framePartKParts.ReadOnlyPart
    -

  • -
  • frames () -
    -
    returns (TQPtrList)

  • -
  • gotoAnchor (name) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • 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
    textTQString
    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 (TQString)

  • -
  • jsStatusBarText () -
    -
    returns (TQString)

  • -
  • khtmlDrawContentsEvent (a0) -
    Not Implemented
    -

  • -
  • khtmlMouseDoubleClickEvent (a0) -
    Not Implemented
    -

  • -
  • khtmlMouseMoveEvent (event) -
    Not Implemented
    -

  • -
  • khtmlMousePressEvent (event) -
    Not Implemented
    -

  • -
  • khtmlMouseReleaseEvent (event) -
    Not Implemented
    -

  • -
  • lastModified () -
    -
    returns (TQString)

  • -
  • 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
    urlTQString
    -

  • -
  • onlyLocalReferences () -
    -
    returns (bool)

  • -
  • openFile () -
    -
    returns (bool)

  • -
  • openURL (url) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • pageReferrer () -
    - -
    returns (TQString)
    In versions KDE 3.1.3 and above only

  • -
  • paint (a0, a1, a2 = 0) -
    -
    returns a3 (bool)
    - - - -
    ArgumentTypeDefault
    a0TQPainter
    a1TQRect
    a2int0
    -

  • -
  • parentPart () -
    -
    returns (KHTMLPart)

  • -
  • partManager () -
    -
    returns (KParts.PartManager)

  • -
  • pluginPageQuestionAsked (mimetype) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    mimetypeTQString
    -

  • -
  • pluginsEnabled () -
    -
    returns (bool)

  • -
  • popupMenu (url, point) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    urlTQString
    pointTQPoint
    -

  • -
  • preloadScript (url, script) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    urlTQString
    scriptTQString
    -

  • -
  • preloadStyleSheet (url, stylesheet) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    urlTQString
    stylesheetTQString
    -

  • -
  • prevAnchor () -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only

  • -
  • referrer () -
    -
    returns (TQString)

  • -
  • restoreState (stream) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    streamTQDataStream
    -

  • -
  • restored () -
    -
    returns (bool)

  • -
  • saveState (stream) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    streamTQDataStream
    -

  • -
  • scheduleRedirection (delay, url, lockHistory = 1) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    delayint
    urlTQString
    lockHistorybool1
    -

  • -
  • selectAll () -
    -
    returns nothing

  • -
  • selectedText () -
    -
    returns (TQString)

  • -
  • selectedTextAsHTML () -
    -
    returns (TQString)

  • -
  • 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
    a0TQString
    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
    nameTQString
    overridebool0
    -

  • -
  • setFixedFont (name) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • setFormNotification (fn) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    fnKHTMLPart.FormNotification
    -

  • -
  • setJSDefaultStatusBarText (text) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • setJSStatusBarText (text) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • 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
    mimetypeTQString
    -

  • -
  • setPluginsEnabled (enable) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    enablebool
    -

  • -
  • setSelection (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0DOM.Range
    -

  • -
  • setStandardFont (name) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • setStatusBarText (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0TQString
    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
    cTQCursor
    -

  • -
  • setUserStyleSheet (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • setUserStyleSheet (styleSheet) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    styleSheetTQString
    -

  • -
  • 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 = TQString .null, boundary = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    actionchar
    urlTQString
    formDataTQByteArray
    targetTQString
    contentTypeTQStringTQString .null
    boundaryTQStringTQString .null
    -

  • -
  • toplevelURL () -
    - -
    returns (KURL)
    In versions KDE 3.2.0 and above only

  • -
  • urlCursor () -
    -
    returns (TQCursor)

  • -
  • urlSelected (url, button, state, _target, args = KParts .URLArgs ()) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    urlTQString
    buttonint
    stateint
    _targetTQString
    argsKParts.URLArgsKParts .URLArgs ()
    -

  • -
  • view () -
    -
    returns (KHTMLView)

  • -
  • write (str, len = -1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    strchar
    lenint-1
    -

  • -
  • write (str) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    strTQString
    -

  • -
  • zoomFactor () -
    -
    returns (int)

  • -
- - - diff --git a/python/pykde/doc/classref/khtml/KHTMLSettings.html b/python/pykde/doc/classref/khtml/KHTMLSettings.html deleted file mode 100644 index 9a8839f7..00000000 --- a/python/pykde/doc/classref/khtml/KHTMLSettings.html +++ /dev/null @@ -1,318 +0,0 @@ - - - - - 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
    urlTQString
    -

  • -
  • 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 (TQString)
    static

  • -
  • baseColor () -
    - -
    returns (TQColor)
    In versions KDE 3.4.0 and above only

  • -
  • changeCursor () -
    -
    returns (bool)

  • -
  • cursiveFontName () -
    -
    returns (TQString)

  • -
  • encoding () -
    -
    returns (TQString)

  • -
  • fallbackAccessKeysAssignments () -
    - -
    returns (TQValueList>)
    In versions KDE 3.5.0 and above only

  • -
  • fantasyFontName () -
    -
    returns (TQString)

  • -
  • fixedFontName () -
    -
    returns (TQString)

  • -
  • 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
    urlTQString
    -

  • -
  • 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 = TQString .null) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    hostnameTQStringTQString .null
    -

  • -
  • isJavaScriptDebugEnabled (hostname = TQString .null) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    hostnameTQStringTQString .null
    -

  • -
  • isJavaScriptEnabled (hostname = TQString .null) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    hostnameTQStringTQString .null
    -

  • -
  • isJavaScriptErrorReportingEnabled (hostname = TQString .null) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    hostnameTQStringTQString .null
    -

  • -
  • isOpenMiddleClickEnabled () -
    - -
    returns (bool)
    In versions KDE 3.3.0 and above only

  • -
  • isPluginsEnabled (hostname = TQString .null) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    hostnameTQStringTQString .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 (TQColor)

  • -
  • maxFormCompletionItems () -
    -
    returns (int)

  • -
  • mediumFontSize () -
    -
    returns (int)

  • -
  • minFontSize () -
    -
    returns (int)

  • -
  • readDomainSettings (config, reset, global, pd_settings) -
    Not Implemented
    -

  • -
  • sansSerifFontName () -
    -
    returns (TQString)

  • -
  • serifFontName () -
    -
    returns (TQString)

  • -
  • setFixedFontName (n) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    nTQString
    -

  • -
  • 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
    nTQString
    -

  • -
  • settingsToCSS () -
    -
    returns (TQString)

  • -
  • showAnimations () -
    -
    returns (KHTMLSettings.KAnimationAdvice)

  • -
  • splitDomainAdvice (configStr, domain) -
    Not Implemented
    -

  • -
  • stdFontName () -
    -
    returns (TQString)

  • -
  • strToAdvice (_str) -
    - -
    returns (KJavaScriptAdvice)
    static
    - -
    ArgumentTypeDefault
    _strTQString
    -

  • -
  • textColor () -
    -
    returns (TQColor)

  • -
  • underlineLink () -
    -
    returns (bool)

  • -
  • unfinishedImageFrame () -
    - -
    returns (bool)
    In versions KDE 3.4.0 and above only

  • -
  • userStyleSheet () -
    -
    returns (TQString)

  • -
  • vLinkColor () -
    -
    returns (TQColor)

  • -
  • windowFocusPolicy (hostname = TQString .null) -
    - -
    returns (KHTMLSettings.KJSWindowFocusPolicy)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    hostnameTQStringTQString .null
    -

  • -
  • windowMovePolicy (hostname = TQString .null) -
    - -
    returns (KHTMLSettings.KJSWindowMovePolicy)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    hostnameTQStringTQString .null
    -

  • -
  • windowOpenPolicy (hostname = TQString .null) -
    - -
    returns (KHTMLSettings.KJSWindowOpenPolicy)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    hostnameTQStringTQString .null
    -

  • -
  • windowResizePolicy (hostname = TQString .null) -
    - -
    returns (KHTMLSettings.KJSWindowResizePolicy)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    hostnameTQStringTQString .null
    -

  • -
  • windowStatusPolicy (hostname = TQString .null) -
    - -
    returns (KHTMLSettings.KJSWindowStatusPolicy)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    hostnameTQStringTQString .null
    -

  • -
- - - diff --git a/python/pykde/doc/classref/khtml/KHTMLView.html b/python/pykde/doc/classref/khtml/KHTMLView.html deleted file mode 100644 index b50b5e6d..00000000 --- a/python/pykde/doc/classref/khtml/KHTMLView.html +++ /dev/null @@ -1,287 +0,0 @@ - - - - - class KHTMLView - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KHTMLView


-
- - - - - -
Table of contents
Modules
khtml Classes
All Classes
-
- - - - - - - - - - -
Modulekhtml
ClassKHTMLView
InheritsTQScrollView
-

methods

    -
  • KHTMLView (part, parent, name = 0) -
    -
    returns a KHTMLView instance
    - - - -
    ArgumentTypeDefault
    partKHTMLPart
    parentTQWidget
    namechar0
    -

  • -
  • clear () -
    -
    returns nothing

  • -
  • cleared () -
    -
    returns nothing

  • -
  • closeEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0TQCloseEvent
    -

  • -
  • contentsContextMenuEvent (_ce) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _ceTQContextMenuEvent
    -

  • -
  • displayAccessKeys () -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only

  • -
  • doAutoScroll () -
    -
    returns nothing

  • -
  • dragEnterEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDragEnterEvent
    -

  • -
  • drawContents (p, clipx, clipy, clipw, cliph) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    pTQPainter
    clipxint
    clipyint
    clipwint
    cliphint
    -

  • -
  • drawContents (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQPainter
    -

  • -
  • dropEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDropEvent
    -

  • -
  • eventFilter (a0, a1) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    a0TQObject
    a1TQEvent
    -

  • -
  • 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
    a0TQFocusEvent
    -

  • -
  • focusNextPrevChild (next) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    nextbool
    -

  • -
  • focusOutEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQFocusEvent
    -

  • -
  • frameWidth () -
    -
    returns (int)

  • -
  • hideAccessKeys () -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only

  • -
  • hideEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQHideEvent
    -

  • -
  • keyPressEvent (_ke) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _keTQKeyEvent
    -

  • -
  • keyReleaseEvent (_ke) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _keTQKeyEvent
    -

  • -
  • 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
    eventTQResizeEvent
    -

  • -
  • 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
    a0TQShowEvent
    -

  • -
  • slotPaletteChanged () -
    -
    returns nothing

  • -
  • slotScrollBarMoved () -
    -
    returns nothing

  • -
  • timerEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQTimerEvent
    -

  • -
  • viewportMouseDoubleClickEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • viewportMouseMoveEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • viewportMousePressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • viewportMouseReleaseEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • viewportResizeEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • viewportWheelEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQWheelEvent
    -

  • -
  • zoomView (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
- - - diff --git a/python/pykde/doc/classref/khtml/index.html b/python/pykde/doc/classref/khtml/index.html deleted file mode 100644 index 601c9c1d..00000000 --- a/python/pykde/doc/classref/khtml/index.html +++ /dev/null @@ -1,153 +0,0 @@ - - - - - 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/python/pykde/doc/classref/khtml/khtml-globals.html b/python/pykde/doc/classref/khtml/khtml-globals.html deleted file mode 100644 index 817eb1ea..00000000 --- a/python/pykde/doc/classref/khtml/khtml-globals.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - khtml globals - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

khtml Globals


-
- - - - - -
Table of contents
Modules
khtml Classes
All Classes
-
- - - diff --git a/python/pykde/doc/classref/kio/KACL.html b/python/pykde/doc/classref/kio/KACL.html deleted file mode 100644 index 37de9ac3..00000000 --- a/python/pykde/doc/classref/kio/KACL.html +++ /dev/null @@ -1,209 +0,0 @@ - - - - - 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
    aclStringTQString
    -

  • -
  • 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 (TQString)
    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
    nameTQString
    -

  • -
  • namedUserPermissions (name) -
    - -
    returns (ushort) exists (bool)
    In versions KDE 3.5.0 and above only
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • 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
    aclStrTQString
    -

  • -
  • 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
    nameTQString
    a0ushort
    -

  • -
  • setNamedUserPermissions (name, a0) -
    - -
    returns (bool)
    In versions KDE 3.5.0 and above only
    - - -
    ArgumentTypeDefault
    nameTQString
    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/python/pykde/doc/classref/kio/KAr.html b/python/pykde/doc/classref/kio/KAr.html deleted file mode 100644 index 7206a485..00000000 --- a/python/pykde/doc/classref/kio/KAr.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - 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
    filenameTQString
    -

  • -
  • KAr (dev) -
    - -
    returns a KAr instance
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    devTQIODevice
    -

  • -
  • 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 (TQString)
    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
    nameTQString
    userTQString
    groupTQString
    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
    nameTQString
    userTQString
    groupTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KArchive.html b/python/pykde/doc/classref/kio/KArchive.html deleted file mode 100644 index e71890d8..00000000 --- a/python/pykde/doc/classref/kio/KArchive.html +++ /dev/null @@ -1,288 +0,0 @@ - - - - - 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
    devTQIODevice
    -

  • -
  • addLocalDirectory (path, destName) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    pathTQString
    destNameTQString
    -

  • -
  • addLocalFile (fileName, destName) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    fileNameTQString
    destNameTQString
    -

  • -
  • close () -
    -
    returns nothing

  • -
  • closeArchive () = 0 -
    - -
    returns (bool)
    pure virtual

  • -
  • closeSucceeded () -
    - -
    returns (bool)
    In versions KDE 3.5.0 and above only

  • -
  • device () -
    -
    returns (TQIODevice)

  • -
  • directory () -
    -
    returns (KArchiveDirectory)

  • -
  • doneWriting (size) = 0 -
    - -
    returns (bool)
    pure virtual
    - -
    ArgumentTypeDefault
    sizeuint
    -

  • -
  • findOrCreate (path) -
    -
    returns (KArchiveDirectory)
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
  • 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
    nameTQString
    userTQString
    groupTQString
    sizeuint
    -

  • -
  • prepareWriting (name, user, group, size, perm, atime, mtime, ctime) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - - - - - - - -
    ArgumentTypeDefault
    nameTQString
    userTQString
    groupTQString
    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
    nameTQString
    userTQString
    groupTQString
    sizeuint
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    -

  • -
  • rootDir () -
    -
    returns (KArchiveDirectory)

  • -
  • setDevice (dev) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    devTQIODevice
    -

  • -
  • 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
    nameTQString
    userTQString
    groupTQString
    -

  • -
  • writeDir (name, user, group, perm, atime, mtime, ctime) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - - - - - - -
    ArgumentTypeDefault
    nameTQString
    userTQString
    groupTQString
    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
    nameTQString
    userTQString
    groupTQString
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    -

  • -
  • writeFile (name, user, group, size, data) -
    -
    returns (bool)
    - - - - - -
    ArgumentTypeDefault
    nameTQString
    userTQString
    groupTQString
    sizeuint
    datachar
    -

  • -
  • writeFile (name, user, group, size, perm, atime, mtime, ctime, data) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - - - - - - - - -
    ArgumentTypeDefault
    nameTQString
    userTQString
    groupTQString
    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
    nameTQString
    userTQString
    groupTQString
    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
    nameTQString
    targetTQString
    userTQString
    groupTQString
    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
    nameTQString
    targetTQString
    userTQString
    groupTQString
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    -

  • -
  • ~KArchive () -
    - -
    returns nothing
    In versions less than KDE 3.1.0 only

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KArchiveDirectory.html b/python/pykde/doc/classref/kio/KArchiveDirectory.html deleted file mode 100644 index 17fae5ed..00000000 --- a/python/pykde/doc/classref/kio/KArchiveDirectory.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - - 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
    nameTQString
    accessint
    dateint
    userTQString
    groupTQString
    symlinkTQString
    -

  • -
  • addEntry (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KArchiveEntry
    -

  • -
  • copyTo (dest, recursive = 1) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    destTQString
    recursivebool1
    -

  • -
  • entries () -
    -
    returns (TQStringList)

  • -
  • entry (name) -
    -
    returns (KArchiveEntry)
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • isDirectory () -
    -
    returns (bool)

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KArchiveEntry.html b/python/pykde/doc/classref/kio/KArchiveEntry.html deleted file mode 100644 index 590dda1f..00000000 --- a/python/pykde/doc/classref/kio/KArchiveEntry.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - 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
    nameTQString
    accessint
    dateint
    userTQString
    groupTQString
    symlinkTQString
    -

  • -
  • archive () -
    -
    returns (KArchive)

  • -
  • date () -
    -
    returns (int)

  • -
  • datetime () -
    -
    returns (TQDateTime)

  • -
  • group () -
    -
    returns (TQString)

  • -
  • isDirectory () -
    -
    returns (bool)

  • -
  • isFile () -
    -
    returns (bool)

  • -
  • name () -
    -
    returns (TQString)

  • -
  • permissions () -
    -
    returns (mode_t)

  • -
  • symlink () -
    -
    returns (TQString)

  • -
  • user () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KArchiveFile.html b/python/pykde/doc/classref/kio/KArchiveFile.html deleted file mode 100644 index ca070fd7..00000000 --- a/python/pykde/doc/classref/kio/KArchiveFile.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - 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
    nameTQString
    accessint
    dateint
    userTQString
    groupTQString
    symlinkTQString
    posint
    sizeint
    -

  • -
  • copyTo (dest) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    destTQString
    -

  • -
  • data () -
    -
    returns (TQByteArray)

  • -
  • device () -
    -
    returns (TQIODevice)

  • -
  • 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/python/pykde/doc/classref/kio/KAutoMount.html b/python/pykde/doc/classref/kio/KAutoMount.html deleted file mode 100644 index 3ffdd9a3..00000000 --- a/python/pykde/doc/classref/kio/KAutoMount.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - class KAutoMount - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KAutoMount


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKAutoMount
InheritsTQObject
-

methods

    -
  • KAutoMount (readonly, format, device, mountpoint, desktopFile, show_filemanager_window = 1) -
    -
    returns a KAutoMount instance
    - - - - - - -
    ArgumentTypeDefault
    readonlybool
    formatTQString
    deviceTQString
    mountpointTQString
    desktopFileTQString
    show_filemanager_windowbool1
    -

  • -
  • error () -
    -
    returns nothing

  • -
  • finished () -
    -
    returns nothing

  • -
  • slotResult (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KIO.Job
    -

  • -
  • ~KAutoMount () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KAutoUnmount.html b/python/pykde/doc/classref/kio/KAutoUnmount.html deleted file mode 100644 index 5fd61285..00000000 --- a/python/pykde/doc/classref/kio/KAutoUnmount.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - class KAutoUnmount - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KAutoUnmount


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKAutoUnmount
InheritsTQObject
-

methods

    -
  • KAutoUnmount (mountpoint, desktopFile) -
    -
    returns a KAutoUnmount instance
    - - -
    ArgumentTypeDefault
    mountpointTQString
    desktopFileTQString
    -

  • -
  • error () -
    -
    returns nothing

  • -
  • finished () -
    -
    returns nothing

  • -
  • slotResult (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KIO.Job
    -

  • -
  • ~KAutoUnmount () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KDCOPServiceStarter.html b/python/pykde/doc/classref/kio/KDCOPServiceStarter.html deleted file mode 100644 index 8192d27e..00000000 --- a/python/pykde/doc/classref/kio/KDCOPServiceStarter.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - 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 = TQString .null, preferences = TQString .null, error = 0, dcopService = 0, flags = 0) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    serviceTypeTQString
    constraintTQStringTQString .null
    preferencesTQStringTQString .null
    errorTQString0
    dcopServiceTQCString0
    flagsint0
    -

  • -
  • self () -
    - - -
    returns (KDCOPServiceStarter)
    In versions KDE 3.2.0 and above only
    static

  • -
  • startServiceFor (serviceType, constraint = TQString .null, preferences = TQString .null, error = 0, dcopService = 0, flags = 0) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    serviceTypeTQString
    constraintTQStringTQString .null
    preferencesTQStringTQString .null
    errorTQString0
    dcopServiceTQCString0
    flagsint0
    -

  • -
  • ~KDCOPServiceStarter () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KDEDesktopMimeType.Service.html b/python/pykde/doc/classref/kio/KDEDesktopMimeType.Service.html deleted file mode 100644 index 35f2241d..00000000 --- a/python/pykde/doc/classref/kio/KDEDesktopMimeType.Service.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 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_strExecTQString
    m_strIconTQString
    m_strNameTQString
    m_typeKDEDesktopMimeType::ServiceType
- - - diff --git a/python/pykde/doc/classref/kio/KDEDesktopMimeType.html b/python/pykde/doc/classref/kio/KDEDesktopMimeType.html deleted file mode 100644 index bb7c0ef3..00000000 --- a/python/pykde/doc/classref/kio/KDEDesktopMimeType.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - - 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
    _strTQDataStream
    offsetint
    -

  • -
  • builtinServices (_url) -
    - -
    returns (TQValueList)
    static
    - -
    ArgumentTypeDefault
    _urlKURL
    -

  • -
  • comment (_url, _is_local) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    _urlTQString
    _is_localbool
    -

  • -
  • comment (_url, _is_local) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    _urlKURL
    _is_localbool
    -

  • -
  • executeService (path, service) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    pathTQString
    serviceKDEDesktopMimeType.Service
    -

  • -
  • executeService (urls, service) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    urlsKURL.List
    serviceKDEDesktopMimeType.Service
    -

  • -
  • icon (_url, _is_local) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    _urlTQString
    _is_localbool
    -

  • -
  • icon (_url, _is_local) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    _urlKURL
    _is_localbool
    -

  • -
  • pixmap (_url, _group, _force_size = 0, _state = 0, _path = 0) -
    -
    returns (TQPixmap)
    - - - - - -
    ArgumentTypeDefault
    _urlKURL
    _groupKIcon.Group
    _force_sizeint0
    _stateint0
    _pathTQString0
    -

  • -
  • pixmap (group, force_size, state, path) -
    -
    returns (TQPixmap)
    - - - - -
    ArgumentTypeDefault
    groupKIcon.Group
    force_sizeint
    stateint
    pathTQString
    -

  • -
  • run (_url, _is_local) -
    - -
    returns (pid_t)
    static
    - - -
    ArgumentTypeDefault
    _urlKURL
    _is_localbool
    -

  • -
  • runApplication (_url, _serviceFile) -
    - -
    returns (pid_t)
    static
    - - -
    ArgumentTypeDefault
    _urlKURL
    _serviceFileTQString
    -

  • -
  • 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 (TQValueList)
    static
    - - -
    ArgumentTypeDefault
    pathTQString
    bLocalFilesbool
    -

  • -
  • userDefinedServices (path, config, bLocalFiles) -
    - - -
    returns (TQValueList)
    In versions KDE 3.4.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    pathTQString
    configKConfig
    bLocalFilesbool
    -

  • -
  • userDefinedServices (path, config, bLocalFiles, file_list) -
    - - -
    returns (TQValueList)
    In versions KDE 3.5.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    pathTQString
    configKConfig
    bLocalFilesbool
    file_listKURL.List
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KDataTool.html b/python/pykde/doc/classref/kio/KDataTool.html deleted file mode 100644 index c9720bd5..00000000 --- a/python/pykde/doc/classref/kio/KDataTool.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - class KDataTool - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDataTool


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKDataTool (abstract)
InheritsTQObject
-

methods

    -
  • KDataTool (parent = 0, name = 0) -
    -
    returns a KDataTool instance
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • instance () -
    -
    returns (KInstance)

  • -
  • run (command, data, datatype, mimetype) = 0 -
    - -
    returns (bool)
    pure virtual
    - - - - -
    ArgumentTypeDefault
    commandTQString
    datavoid
    datatypeTQString
    mimetypeTQString
    -

  • -
  • setInstance (instance) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    instanceKInstance
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KDataToolAction.html b/python/pykde/doc/classref/kio/KDataToolAction.html deleted file mode 100644 index 8051be87..00000000 --- a/python/pykde/doc/classref/kio/KDataToolAction.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - 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
    textTQString
    infoKDataToolInfo
    commandTQString
    parentTQObject0
    namechar0
    -

  • -
  • dataToolActionList (tools, receiver, slot) -
    - -
    returns (TQPtrList)
    static
    - - - -
    ArgumentTypeDefault
    toolsTQValueList
    receiverTQObject
    slotchar
    -

  • -
  • slotActivated () -
    -
    returns nothing

  • -
  • toolActivated (info, command) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    infoKDataToolInfo
    commandTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KDataToolInfo.html b/python/pykde/doc/classref/kio/KDataToolInfo.html deleted file mode 100644 index 2968c4f9..00000000 --- a/python/pykde/doc/classref/kio/KDataToolInfo.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - 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 (TQStringList)

  • -
  • createTool (parent = 0, name = 0) -
    -
    returns (KDataTool)
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • dataType () -
    -
    returns (TQString)

  • -
  • icon () -
    -
    returns (TQPixmap)

  • -
  • iconName () -
    -
    returns (TQString)

  • -
  • instance () -
    -
    returns (KInstance)

  • -
  • isReadOnly () -
    -
    returns (bool)

  • -
  • isValid () -
    -
    returns (bool)

  • -
  • mimeTypes () -
    -
    returns (TQStringList)

  • -
  • miniIcon () -
    -
    returns (TQPixmap)

  • -
  • query (datatype, mimetype, instance) -
    - -
    returns (TQValueList)
    static
    - - - -
    ArgumentTypeDefault
    datatypeTQString
    mimetypeTQString
    instanceKInstance
    -

  • -
  • service () -
    -
    returns (KService.Ptr)

  • -
  • userCommands () -
    -
    returns (TQStringList)

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KDirLister.html b/python/pykde/doc/classref/kio/KDirLister.html deleted file mode 100644 index cda02a91..00000000 --- a/python/pykde/doc/classref/kio/KDirLister.html +++ /dev/null @@ -1,356 +0,0 @@ - - - - - class KDirLister - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDirLister


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKDirLister
InheritsTQObject
-

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
    mimeExcludeTQString
    filtersTQStringList
    -

  • -
  • doMimeFilter (mime, filters) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    mimeTQString
    filtersTQStringList
    -

  • -
  • doNameFilter (name, filters) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    nameTQString
    filtersTQPtrList
    -

  • -
  • emitChanges () -
    -
    returns nothing

  • -
  • find (_url) -
    -
    returns (KFileItem)
    - -
    ArgumentTypeDefault
    _urlKURL
    -

  • -
  • findByName (name) -
    -
    returns (KFileItem)
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • findByURL (_url) -
    -
    returns (KFileItem)
    - -
    ArgumentTypeDefault
    _urlKURL
    -

  • -
  • handleError (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KIO.Job
    -

  • -
  • infoMessage (msg) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    msgTQString
    -

  • -
  • 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 (TQWidget)
    In versions KDE 3.1.0 and above only

  • -
  • matchesFilter (name) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • matchesFilter (a0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    a0KFileItem
    -

  • -
  • matchesMimeFilter (mime) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    mimeTQString
    -

  • -
  • matchesMimeFilter (a0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    a0KFileItem
    -

  • -
  • mimeFilters () -
    -
    returns (TQStringList)

  • -
  • nameFilter () -
    -
    returns (TQString)

  • -
  • 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
    parentTQWidget
    -

  • -
  • 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
    windowTQWidget
    -

  • -
  • setMimeExcludeFilter (mimeList) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    mimeListTQStringList
    -

  • -
  • setMimeFilter (mimeList) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    mimeListTQStringList
    -

  • -
  • setNameFilter (filter) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    filterTQString
    -

  • -
  • 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/python/pykde/doc/classref/kio/KDirNotify.html b/python/pykde/doc/classref/kio/KDirNotify.html deleted file mode 100644 index 8c3d58ca..00000000 --- a/python/pykde/doc/classref/kio/KDirNotify.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - 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
    funTQCString
    dataTQByteArray
    replyTypeTQCString
    replyDataTQByteArray
    -

  • -
  • ~KDirNotify () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KDirWatch.html b/python/pykde/doc/classref/kio/KDirWatch.html deleted file mode 100644 index 40a5a689..00000000 --- a/python/pykde/doc/classref/kio/KDirWatch.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - class KDirWatch - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDirWatch


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKDirWatch
InheritsTQObject
-

enums

    -
  • Method = {FAM, DNotify, Stat, INotify -}
  • Method = {FAM, DNotify, Stat -}
-

methods

    -
  • KDirWatch (parent = 0, name = 0) -
    -
    returns a KDirWatch instance
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • addDir (path, watchFiles = 0, recursive = 0) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    pathTQString
    watchFilesbool0
    recursivebool0
    -

  • -
  • addFile (file) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    fileTQString
    -

  • -
  • contains (path) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
  • created (path) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
  • ctime (path) -
    -
    returns (TQDateTime)
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
  • deleted (path) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
  • dirty (path) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
  • 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
    pathTQString
    -

  • -
  • removeFile (file) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    fileTQString
    -

  • -
  • restartDirScan (path) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
  • self () -
    - -
    returns (KDirWatch)
    static

  • -
  • setCreated (path) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
  • setDeleted (path) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
  • setDirty (path) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
  • startScan (notify = 0, skippedToo = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    notifybool0
    skippedToobool0
    -

  • -
  • statistics () -
    - -
    returns nothing
    static

  • -
  • stopDirScan (path) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
  • stopScan () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KEMailSettings.html b/python/pykde/doc/classref/kio/KEMailSettings.html deleted file mode 100644 index d8450cc1..00000000 --- a/python/pykde/doc/classref/kio/KEMailSettings.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - 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 (TQString)

  • -
  • defaultProfileName () -
    -
    returns (TQString)

  • -
  • getExtendedSetting (a0, a1) -
    Not Implemented
    -

  • -
  • getSetting (s) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    sKEMailSettings.Setting
    -

  • -
  • profiles () -
    -
    returns (TQStringList)

  • -
  • setDefault (def) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    defTQString
    -

  • -
  • setExtendedSetting (a0, a1, a2) -
    Not Implemented
    -

  • -
  • setProfile (s) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • setSetting (s, v) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    sKEMailSettings.Setting
    vTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KExecMimeType.html b/python/pykde/doc/classref/kio/KExecMimeType.html deleted file mode 100644 index a2ac7d93..00000000 --- a/python/pykde/doc/classref/kio/KExecMimeType.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - 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
    _strTQDataStream
    offsetint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KFileFilter.html b/python/pykde/doc/classref/kio/KFileFilter.html deleted file mode 100644 index df1e7ebb..00000000 --- a/python/pykde/doc/classref/kio/KFileFilter.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kio/KFileItem.html b/python/pykde/doc/classref/kio/KFileItem.html deleted file mode 100644 index 89c29603..00000000 --- a/python/pykde/doc/classref/kio/KFileItem.html +++ /dev/null @@ -1,326 +0,0 @@ - - - - - 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
    mimeTypeTQString
    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 (TQString)

  • -
  • getToolTipText (maxcount = 6) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    maxcountint6
    -

  • -
  • group () -
    -
    returns (TQString)

  • -
  • hasExtendedACL () -
    - -
    returns (bool)
    In versions KDE 3.5.0 and above only

  • -
  • iconName () -
    -
    returns (TQString)

  • -
  • 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 (TQString)

  • -
  • localPath () -
    - -
    returns (TQString)
    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 (TQString)

  • -
  • mimeTypePtr () -
    -
    returns (KMimeType.Ptr)

  • -
  • mimetype () -
    -
    returns (TQString)

  • -
  • mode () -
    -
    returns (mode_t)

  • -
  • mostLocalURL () -
    - -
    returns (KURL) local (bool)
    In versions KDE 3.4.0 and above only

  • -
  • name (lowerCase = 0) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    lowerCasebool0
    -

  • -
  • overlays () -
    -
    returns (int)

  • -
  • parsePermissions (perm) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    permmode_t
    -

  • -
  • permissions () -
    -
    returns (mode_t)

  • -
  • permissionsString () -
    -
    returns (TQString)

  • -
  • pixmap (_size, _state = 0) -
    -
    returns (TQPixmap)
    - - -
    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
    mimetypeTQString
    -

  • -
  • setName (name) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • 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 (TQString)

  • -
  • 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 (TQString)
    - -
    ArgumentTypeDefault
    whichuintKIO .UDS_MODIFICATION_TIME
    -

  • -
  • unmark () -
    -
    returns nothing

  • -
  • url () -
    -
    returns (KURL)

  • -
  • user () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KFileMetaInfo.html b/python/pykde/doc/classref/kio/KFileMetaInfo.html deleted file mode 100644 index 59c1e470..00000000 --- a/python/pykde/doc/classref/kio/KFileMetaInfo.html +++ /dev/null @@ -1,197 +0,0 @@ - - - - - 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 = TQString .null, what = Fastest) -
    -
    returns a KFileMetaInfo instance
    - - - -
    ArgumentTypeDefault
    pathTQString
    mimeTypeTQStringTQString .null
    whatuintFastest
    -

  • -
  • KFileMetaInfo (url, mimeType = TQString .null, what = Fastest) -
    - -
    returns a KFileMetaInfo instance
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    urlKURL
    mimeTypeTQStringTQString .null
    whatuintFastest
    -

  • -
  • KFileMetaInfo () -
    -
    returns a KFileMetaInfo instance

  • -
  • KFileMetaInfo (original) -
    -
    returns a KFileMetaInfo instance
    - -
    ArgumentTypeDefault
    originalKFileMetaInfo
    -

  • -
  • addGroup (name) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • appendGroup (name) -
    -
    returns (KFileMetaInfoGroup)
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • applyChanges () -
    -
    returns (bool)

  • -
  • applyChanges (path) -
    - -
    returns (bool)
    In versions KDE 3.5.3 and above only
    - -
    ArgumentTypeDefault
    pathTQString
    -

  • -
  • contains (key) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • containsGroup (key) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • deref () -
    -
    returns nothing

  • -
  • editableGroups () -
    -
    returns (TQStringList)

  • -
  • group (key) -
    -
    returns (KFileMetaInfoGroup)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • groups () -
    -
    returns (TQStringList)

  • -
  • isEmpty () -
    -
    returns (bool)

  • -
  • isValid () -
    -
    returns (bool)

  • -
  • item (key) -
    -
    returns (KFileMetaInfoItem)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • item (hint) -
    -
    returns (KFileMetaInfoItem)
    - -
    ArgumentTypeDefault
    hintHint
    -

  • -
  • mimeType () -
    -
    returns (TQString)

  • -
  • path () -
    -
    returns (TQString)

  • -
  • plugin () -
    -
    returns (KFilePlugin)

  • -
  • preferredGroups () -
    -
    returns (TQStringList)

  • -
  • preferredKeys () -
    -
    returns (TQStringList)

  • -
  • ref () -
    -
    returns nothing

  • -
  • removeGroup (name) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • removedGroups () -
    -
    returns (TQStringList)

  • -
  • saveItem (key, preferredGroup = TQString .null, createGroup = 1) -
    -
    returns (KFileMetaInfoItem)
    - - - -
    ArgumentTypeDefault
    keyTQString
    preferredGroupTQStringTQString .null
    createGroupbool1
    -

  • -
  • supportedGroups () -
    -
    returns (TQStringList)

  • -
  • supportedKeys () -
    -
    returns (TQStringList)

  • -
  • url () -
    - -
    returns (KURL)
    In versions KDE 3.2.0 and above only

  • -
  • value (key) -
    -
    returns (TQVariant)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
-

operators

    -
  • operator [] (key) -
    - -
    returns (KFileMetaInfoGroup),
    In versions KDE 3.1.4 and above only
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KFileMetaInfoGroup.html b/python/pykde/doc/classref/kio/KFileMetaInfoGroup.html deleted file mode 100644 index 38865e14..00000000 --- a/python/pykde/doc/classref/kio/KFileMetaInfoGroup.html +++ /dev/null @@ -1,153 +0,0 @@ - - - - - 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
    nameTQString
    infoKFileMimeTypeInfo
    -

  • -
  • KFileMetaInfoGroup (original) -
    -
    returns a KFileMetaInfoGroup instance
    - -
    ArgumentTypeDefault
    originalKFileMetaInfoGroup
    -

  • -
  • KFileMetaInfoGroup () -
    -
    returns a KFileMetaInfoGroup instance

  • -
  • addItem (key) -
    -
    returns (KFileMetaInfoItem)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • appendItem (key, value) -
    -
    returns (KFileMetaInfoItem)
    - - -
    ArgumentTypeDefault
    keyTQString
    valueTQVariant
    -

  • -
  • attributes () -
    -
    returns (uint)

  • -
  • contains (key) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • 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
    keyTQString
    -

  • -
  • item (hint) -
    -
    returns (KFileMetaInfoItem)
    - -
    ArgumentTypeDefault
    hintuint
    -

  • -
  • keys () -
    -
    returns (TQStringList)

  • -
  • name () -
    -
    returns (TQString)

  • -
  • preferredKeys () -
    -
    returns (TQStringList)

  • -
  • ref () -
    -
    returns nothing

  • -
  • removeItem (key) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • removedItems () -
    -
    returns (TQStringList)

  • -
  • setAdded () -
    -
    returns nothing

  • -
  • supportedKeys () -
    -
    returns (TQStringList)

  • -
  • supportsVariableKeys () -
    -
    returns (bool)

  • -
  • translatedName () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • value (key) -
    -
    returns (TQVariant)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
-

operators

    -
  • operator [] (key) -
    - -
    returns (KFileMetaInfoItem),
    In versions KDE 3.1.4 and above only
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KFileMetaInfoItem.html b/python/pykde/doc/classref/kio/KFileMetaInfoItem.html deleted file mode 100644 index cec827a0..00000000 --- a/python/pykde/doc/classref/kio/KFileMetaInfoItem.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - 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
    keyTQString
    valueTQVariant
    -

  • -
  • 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 (TQString)

  • -
  • prefix () -
    -
    returns (TQString)

  • -
  • ref () -
    -
    returns nothing

  • -
  • setAdded () -
    -
    returns nothing

  • -
  • setRemoved () -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only

  • -
  • setValue (value) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    valueTQVariant
    -

  • -
  • string (mangle = 1) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    manglebool1
    -

  • -
  • suffix () -
    -
    returns (TQString)

  • -
  • translatedKey () -
    -
    returns (TQString)

  • -
  • type () -
    -
    returns (TQVariant.Type)

  • -
  • unit () -
    Not Implemented
    -

  • -
  • value () -
    -
    returns (TQVariant)

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KFileMetaInfoProvider.html b/python/pykde/doc/classref/kio/KFileMetaInfoProvider.html deleted file mode 100644 index 791724a0..00000000 --- a/python/pykde/doc/classref/kio/KFileMetaInfoProvider.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - class KFileMetaInfoProvider - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KFileMetaInfoProvider


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKFileMetaInfoProvider
InheritsTQObject
-

methods

    -
  • KFileMetaInfoProvider () -
    Not Implemented
    -

  • -
  • KFileMetaInfoProvider () -
    -
    returns a KFileMetaInfoProvider instance

  • -
  • mimeTypeInfo (mimeType) -
    -
    returns (KFileMimeTypeInfo)
    - -
    ArgumentTypeDefault
    mimeTypeTQString
    -

  • -
  • mimeTypeInfo (mimeType, protocol) -
    - -
    returns (KFileMimeTypeInfo)
    In versions KDE 3.4.0 and above only
    - - -
    ArgumentTypeDefault
    mimeTypeTQString
    protocolTQString
    -

  • -
  • plugin (mimeType) -
    -
    returns (KFilePlugin)
    - -
    ArgumentTypeDefault
    mimeTypeTQString
    -

  • -
  • plugin (mimeType, protocol) -
    - -
    returns (KFilePlugin)
    In versions KDE 3.4.0 and above only
    - - -
    ArgumentTypeDefault
    mimeTypeTQString
    protocolTQString
    -

  • -
  • preferredGroups (mimeType) -
    -
    returns (TQStringList)
    - -
    ArgumentTypeDefault
    mimeTypeTQString
    -

  • -
  • preferredKeys (mimeType) -
    -
    returns (TQStringList)
    - -
    ArgumentTypeDefault
    mimeTypeTQString
    -

  • -
  • self () -
    - -
    returns (KFileMetaInfoProvider)
    static

  • -
  • supportedMimeTypes () -
    - -
    returns (TQStringList)
    In versions KDE 3.1.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KFileMimeTypeInfo.GroupInfo.html b/python/pykde/doc/classref/kio/KFileMimeTypeInfo.GroupInfo.html deleted file mode 100644 index d4b0beb3..00000000 --- a/python/pykde/doc/classref/kio/KFileMimeTypeInfo.GroupInfo.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - 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
    nameTQString
    translatedNameTQString
    -

  • -
  • attributes () -
    -
    returns (uint)

  • -
  • itemInfo (key) -
    -
    returns (KFileMimeTypeInfo.ItemInfo)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • name () -
    -
    returns (TQString)

  • -
  • supportedKeys () -
    -
    returns (TQStringList)

  • -
  • supportsVariableKeys () -
    -
    returns (bool)

  • -
  • translatedName () -
    -
    returns (TQString)

  • -
  • variableItemInfo () -
    -
    returns (KFileMimeTypeInfo.ItemInfo)

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KFileMimeTypeInfo.ItemInfo.html b/python/pykde/doc/classref/kio/KFileMimeTypeInfo.ItemInfo.html deleted file mode 100644 index ec4b0cdc..00000000 --- a/python/pykde/doc/classref/kio/KFileMimeTypeInfo.ItemInfo.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - - 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
    keyTQString
    translatedKeyTQString
    typeTQVariant.Type
    -

  • -
  • attributes () -
    -
    returns (uint)

  • -
  • hint () -
    -
    returns (uint)

  • -
  • isVariableItem () -
    -
    returns (bool)

  • -
  • key () -
    -
    returns (TQString)

  • -
  • prefix () -
    -
    returns (TQString)

  • -
  • string (value, mangle = 1) -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    valueTQVariant
    manglebool1
    -

  • -
  • suffix () -
    -
    returns (TQString)

  • -
  • translatedKey () -
    -
    returns (TQString)

  • -
  • type () -
    -
    returns (TQVariant.Type)

  • -
  • unit () -
    -
    returns (uint)

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KFileMimeTypeInfo.html b/python/pykde/doc/classref/kio/KFileMimeTypeInfo.html deleted file mode 100644 index 2fb98a0a..00000000 --- a/python/pykde/doc/classref/kio/KFileMimeTypeInfo.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - 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
    mimeTypeTQString
    -

  • -
  • addGroupInfo (name, translatedName) -
    -
    returns (KFileMimeTypeInfo.GroupInfo)
    - - -
    ArgumentTypeDefault
    nameTQString
    translatedNameTQString
    -

  • -
  • createValidator (group, key, parent = 0, name = 0) -
    -
    returns (TQValidator)
    - - - - -
    ArgumentTypeDefault
    groupTQString
    keyTQString
    parentTQObject0
    namechar0
    -

  • -
  • groupInfo (group) -
    -
    returns (KFileMimeTypeInfo.GroupInfo)
    - -
    ArgumentTypeDefault
    groupTQString
    -

  • -
  • mimeType () -
    -
    returns (TQString)

  • -
  • preferredGroups () -
    -
    returns (TQStringList)

  • -
  • preferredKeys () -
    -
    returns (TQStringList)

  • -
  • supportedGroups () -
    -
    returns (TQStringList)

  • -
  • supportedKeys () -
    -
    returns (TQStringList)

  • -
  • translatedGroups () -
    -
    returns (TQStringList)

  • -
-

variables

  • -variables - - - - -
    VariableType
    m_attruint
    m_itemDictTQDict
    m_supportedKeysTQStringList
    m_translatedNameTQString
- - - diff --git a/python/pykde/doc/classref/kio/KFilePlugin.html b/python/pykde/doc/classref/kio/KFilePlugin.html deleted file mode 100644 index 61b06c3e..00000000 --- a/python/pykde/doc/classref/kio/KFilePlugin.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - class KFilePlugin - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KFilePlugin


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKFilePlugin (abstract)
InheritsTQObject
-

methods

    -
  • KFilePlugin (parent, name, args) -
    -
    returns a KFilePlugin instance
    - - - -
    ArgumentTypeDefault
    parentTQObject
    namechar
    argsTQStringList
    -

  • -
  • addGroupInfo (info, key, translatedKey) -
    -
    returns (KFileMimeTypeInfo.GroupInfo)
    - - - -
    ArgumentTypeDefault
    infoKFileMimeTypeInfo
    keyTQString
    translatedKeyTQString
    -

  • -
  • addItemInfo (gi, key, translatedKey, type) -
    -
    returns (KFileMimeTypeInfo.ItemInfo)
    - - - - -
    ArgumentTypeDefault
    giKFileMimeTypeInfo.GroupInfo
    keyTQString
    translatedKeyTQString
    typeTQVariant.Type
    -

  • -
  • addMimeTypeInfo (mimeType) -
    -
    returns (KFileMimeTypeInfo)
    - -
    ArgumentTypeDefault
    mimeTypeTQString
    -

  • -
  • addVariableInfo (gi, type, attr) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    giKFileMimeTypeInfo.GroupInfo
    typeTQVariant.Type
    attruint
    -

  • -
  • appendGroup (info, key) -
    -
    returns (KFileMetaInfoGroup)
    - - -
    ArgumentTypeDefault
    infoKFileMetaInfo
    keyTQString
    -

  • -
  • appendItem (group, key, value) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    groupKFileMetaInfoGroup
    keyTQString
    valueTQVariant
    -

  • -
  • createValidator (mimeType, group, key, parent, name) -
    -
    returns (TQValidator)
    - - - - - -
    ArgumentTypeDefault
    mimeTypeTQString
    groupTQString
    keyTQString
    parentTQObject
    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
    prefixTQString
    -

  • -
  • setSuffix (item, suffix) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    itemKFileMimeTypeInfo.ItemInfo
    suffixTQString
    -

  • -
  • setUnit (item, unit) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    itemKFileMimeTypeInfo.ItemInfo
    unituint
    -

  • -
  • writeInfo (info) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    infoKFileMetaInfo
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KFileShare.html b/python/pykde/doc/classref/kio/KFileShare.html deleted file mode 100644 index 36ed1a2a..00000000 --- a/python/pykde/doc/classref/kio/KFileShare.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - 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 (TQString)
    In versions KDE 3.3.0 and above only
    static

  • -
  • findExe (exeName) -
    - - -
    returns (TQString)
    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
    pathTQString
    -

  • -
  • 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
    pathTQString
    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/python/pykde/doc/classref/kio/KFileSharePrivate.html b/python/pykde/doc/classref/kio/KFileSharePrivate.html deleted file mode 100644 index 4096bdba..00000000 --- a/python/pykde/doc/classref/kio/KFileSharePrivate.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - class KFileSharePrivate - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KFileSharePrivate


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKFileSharePrivate
InheritsTQObject
-

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
    a0TQString
    -

  • -
-

variables

  • -variables - - -
    VariableType
    _selfKFileSharePrivate*
    m_watchFileKDirWatch*
- - - diff --git a/python/pykde/doc/classref/kio/KFilterBase.html b/python/pykde/doc/classref/kio/KFilterBase.html deleted file mode 100644 index 3a591a3e..00000000 --- a/python/pykde/doc/classref/kio/KFilterBase.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - class KFilterBase - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KFilterBase


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKFilterBase (abstract)
InheritsTQObject
-

enums

    -
  • Result = {OK, END, ERROR -}
-

methods

    -
  • KFilterBase () -
    -
    returns a KFilterBase instance

  • -
  • compress (finish) = 0 -
    - -
    returns (KFilterBase.Result)
    pure virtual
    - -
    ArgumentTypeDefault
    finishbool
    -

  • -
  • device () -
    -
    returns (TQIODevice)

  • -
  • findFilterByFileName (fileName) -
    - -
    returns (KFilterBase)
    static
    - -
    ArgumentTypeDefault
    fileNameTQString
    -

  • -
  • findFilterByMimeType (mimeType) -
    - -
    returns (KFilterBase)
    static
    - -
    ArgumentTypeDefault
    mimeTypeTQString
    -

  • -
  • 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
    devTQIODevice
    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
    filenameTQCString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KFilterDev.html b/python/pykde/doc/classref/kio/KFilterDev.html deleted file mode 100644 index a4abab0f..00000000 --- a/python/pykde/doc/classref/kio/KFilterDev.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - class KFilterDev - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KFilterDev


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKFilterDev
InheritsTQIODevice
-

methods

    -
  • KFilterDev (filter, autoDeleteFilterBase) -
    -
    returns a KFilterDev instance
    - - -
    ArgumentTypeDefault
    filterKFilterBase
    autoDeleteFilterBasebool
    -

  • -
  • at () -
    -
    returns (TQIODevice.Offset)

  • -
  • at (a0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    a0TQIODevice.Offset
    -

  • -
  • atEnd () -
    -
    returns (bool)

  • -
  • close () -
    -
    returns nothing

  • -
  • createFilterDevice (base, file) -
    - -
    returns (TQIODevice)
    static
    - - -
    ArgumentTypeDefault
    baseKFilterBase
    fileTQFile
    -

  • -
  • device (inDevice, mimetype) -
    - -
    returns (TQIODevice)
    static
    - - -
    ArgumentTypeDefault
    inDeviceTQIODevice
    mimetypeTQString
    -

  • -
  • device (inDevice, mimetype, autoDeleteInDevice) -
    - - -
    returns (TQIODevice)
    In versions KDE 3.1.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    inDeviceTQIODevice
    mimetypeTQString
    autoDeleteInDevicebool
    -

  • -
  • deviceForFile (fileName, mimetype = TQString .null, forceFilter = 0) -
    - -
    returns (TQIODevice)
    static
    - - - -
    ArgumentTypeDefault
    fileNameTQString
    mimetypeTQStringTQString .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
    fileNameTQCString
    -

  • -
  • setSkipHeaders () -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only

  • -
  • size () -
    -
    returns (TQIODevice.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/python/pykde/doc/classref/kio/KFolderType.html b/python/pykde/doc/classref/kio/KFolderType.html deleted file mode 100644 index 2d1ad244..00000000 --- a/python/pykde/doc/classref/kio/KFolderType.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - 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
    _strTQDataStream
    offsetint
    -

  • -
  • comment (_url, _is_local) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    _urlTQString
    _is_localbool
    -

  • -
  • comment (_url, _is_local) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    _urlKURL
    _is_localbool
    -

  • -
  • icon (_url, _is_local) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    _urlTQString
    _is_localbool
    -

  • -
  • icon (_url, _is_local) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    _urlKURL
    _is_localbool
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.AuthInfo.html b/python/pykde/doc/classref/kio/KIO.AuthInfo.html deleted file mode 100644 index 2a4c0662..00000000 --- a/python/pykde/doc/classref/kio/KIO.AuthInfo.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - 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
    captionTQString
    commentTQString
    commentLabelTQString
    digestInfoTQString
    keepPasswordbool
    passwordTQString
    promptTQString
    readOnlybool
    realmValueTQString
    urlKURL
    usernameTQString
    verifyPathbool
- - - diff --git a/python/pykde/doc/classref/kio/KIO.ChmodJob.html b/python/pykde/doc/classref/kio/KIO.ChmodJob.html deleted file mode 100644 index bfb8c067..00000000 --- a/python/pykde/doc/classref/kio/KIO.ChmodJob.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kio/KIO.Connection.html b/python/pykde/doc/classref/kio/KIO.Connection.html deleted file mode 100644 index 11488dcd..00000000 --- a/python/pykde/doc/classref/kio/KIO.Connection.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - class KIO.Connection - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KIO.Connection


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKIO.Connection
InheritsTQObject
-

methods

    -
  • Connection () -
    -
    returns a Connection instance

  • -
  • close () -
    -
    returns nothing

  • -
  • connect (receiver = 0, member = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    receiverTQObject0
    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 = TQByteArray ()) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    cmdint
    arrTQByteArrayTQByteArray ()
    -

  • -
  • sendnow (_cmd, data) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    _cmdint
    dataTQByteArray
    -

  • -
  • suspend () -
    -
    returns nothing

  • -
  • suspended () -
    -
    returns (bool)

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.CopyInfo.html b/python/pykde/doc/classref/kio/KIO.CopyInfo.html deleted file mode 100644 index 986cbe54..00000000 --- a/python/pykde/doc/classref/kio/KIO.CopyInfo.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - 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
    linkDestTQString
    mtimetime_t
    permissionsmode_t
    sizeoff_t
    uDestKURL
    uSourceKURL
- - - diff --git a/python/pykde/doc/classref/kio/KIO.CopyJob.html b/python/pykde/doc/classref/kio/KIO.CopyJob.html deleted file mode 100644 index f2835156..00000000 --- a/python/pykde/doc/classref/kio/KIO.CopyJob.html +++ /dev/null @@ -1,276 +0,0 @@ - - - - - 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
    filesTQValueList
    -

  • -
  • 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
    targetTQString
    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
    targetTQString
    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/python/pykde/doc/classref/kio/KIO.DavJob.html b/python/pykde/doc/classref/kio/KIO.DavJob.html deleted file mode 100644 index 5a6ce6dc..00000000 --- a/python/pykde/doc/classref/kio/KIO.DavJob.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - 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
    requestTQString
    showProgressInfobool
    -

  • -
  • response () -
    - -
    returns (TQDomDocument)
    In versions KDE 3.1.0 and above only

  • -
  • slotData (data) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    dataTQByteArray
    -

  • -
  • slotFinished () -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.DefaultProgress.html b/python/pykde/doc/classref/kio/KIO.DefaultProgress.html deleted file mode 100644 index 8904388a..00000000 --- a/python/pykde/doc/classref/kio/KIO.DefaultProgress.html +++ /dev/null @@ -1,223 +0,0 @@ - - - - - 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
    parentTQWidget
    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 (TQString)
    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
    msgTQString
    -

  • -
  • slotMounting (a0, dev, point) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    a0KIO.Job
    devTQString
    pointTQString
    -

  • -
  • 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
    pointTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.DeleteJob.html b/python/pykde/doc/classref/kio/KIO.DeleteJob.html deleted file mode 100644 index 6682f91c..00000000 --- a/python/pykde/doc/classref/kio/KIO.DeleteJob.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kio/KIO.DirectCopyJob.html b/python/pykde/doc/classref/kio/KIO.DirectCopyJob.html deleted file mode 100644 index b102081c..00000000 --- a/python/pykde/doc/classref/kio/KIO.DirectCopyJob.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - 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
    packedArgsTQByteArray
    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/python/pykde/doc/classref/kio/KIO.FileCopyJob.html b/python/pykde/doc/classref/kio/KIO.FileCopyJob.html deleted file mode 100644 index 3b7614b3..00000000 --- a/python/pykde/doc/classref/kio/KIO.FileCopyJob.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - 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
    dataTQByteArray
    -

  • -
  • slotDataReq (a0, data) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KIO.Job
    dataTQByteArray
    -

  • -
  • 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/python/pykde/doc/classref/kio/KIO.ForwardingSlaveBase.html b/python/pykde/doc/classref/kio/KIO.ForwardingSlaveBase.html deleted file mode 100644 index f142eadd..00000000 --- a/python/pykde/doc/classref/kio/KIO.ForwardingSlaveBase.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - - class KIO.ForwardingSlaveBase - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KIO.ForwardingSlaveBase


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKIO.ForwardingSlaveBase (abstract)
InheritsTQObject, KIO.SlaveBase
-

methods

    -
  • ForwardingSlaveBase (protocol, poolSocket, appSocket) -
    - -
    returns a ForwardingSlaveBase instance
    In versions KDE 3.4.0 and above only
    - - - -
    ArgumentTypeDefault
    protocolTQCString
    poolSocketTQCString
    appSocketTQCString
    -

  • -
  • 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
    targetTQString
    destKURL
    overwritebool
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.Job.html b/python/pykde/doc/classref/kio/KIO.Job.html deleted file mode 100644 index c67dbfde..00000000 --- a/python/pykde/doc/classref/kio/KIO.Job.html +++ /dev/null @@ -1,307 +0,0 @@ - - - - - class KIO.Job - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KIO.Job


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKIO.Job
InheritsTQObject
-

methods

    -
  • Job (showProgressInfo) -
    -
    returns a Job instance
    - -
    ArgumentTypeDefault
    showProgressInfobool
    -

  • -
  • addMetaData (key, value) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    keyTQString
    valueTQString
    -

  • -
  • addMetaData (values) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    valuesTQMap
    -

  • -
  • 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 (TQStringList)
    - - -
    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 (TQString)

  • -
  • errorText () -
    -
    returns (TQString)

  • -
  • 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
    msgTQString
    -

  • -
  • 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
    valuesTQMap
    -

  • -
  • 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 (TQString)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • 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
    parentWidgetTQWidget0
    -

  • -
  • 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
    windowTQWidget
    -

  • -
  • showErrorDialog (parent = 0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    parentTQWidget0
    -

  • -
  • slotInfoMessage (job, msg) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    jobKIO.Job
    msgTQString
    -

  • -
  • 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
    msgTQString
    -

  • -
  • window () -
    -
    returns (TQWidget)

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.ListJob.html b/python/pykde/doc/classref/kio/KIO.ListJob.html deleted file mode 100644 index 34e43475..00000000 --- a/python/pykde/doc/classref/kio/KIO.ListJob.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - 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 = TQString .null, includeHidden = 1) -
    -
    returns a ListJob instance
    - - - - - -
    ArgumentTypeDefault
    urlKURL
    showProgressInfobool
    recursivebool0
    prefixTQStringTQString .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/python/pykde/doc/classref/kio/KIO.MetaInfoJob.html b/python/pykde/doc/classref/kio/KIO.MetaInfoJob.html deleted file mode 100644 index 23610358..00000000 --- a/python/pykde/doc/classref/kio/KIO.MetaInfoJob.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - 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 (TQStringList)
    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 (TQStringList)
    In versions KDE 3.1.0 and above only
    static

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.MimetypeJob.html b/python/pykde/doc/classref/kio/KIO.MimetypeJob.html deleted file mode 100644 index fcf6eddf..00000000 --- a/python/pykde/doc/classref/kio/KIO.MimetypeJob.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - 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
    packedArgsTQByteArray
    showProgressInfobool
    -

  • -
  • mimetype () -
    -
    returns (TQString)

  • -
  • slotFinished () -
    -
    returns nothing

  • -
  • start (slave) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    slaveKIO.Slave
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.MkdirJob.html b/python/pykde/doc/classref/kio/KIO.MkdirJob.html deleted file mode 100644 index 3f9efc47..00000000 --- a/python/pykde/doc/classref/kio/KIO.MkdirJob.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - 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
    packedArgsTQByteArray
    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/python/pykde/doc/classref/kio/KIO.MultiGetJob.html b/python/pykde/doc/classref/kio/KIO.MultiGetJob.html deleted file mode 100644 index 3c2b9c85..00000000 --- a/python/pykde/doc/classref/kio/KIO.MultiGetJob.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - 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
    dataTQByteArray
    -

  • -
  • get (id, url, metaData) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    idlong
    urlKURL
    metaDataKIO.MetaData
    -

  • -
  • mimetype (id, type) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    idlong
    typeTQString
    -

  • -
  • result (id) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    idlong
    -

  • -
  • slotData (data) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    dataTQByteArray
    -

  • -
  • slotFinished () -
    -
    returns nothing

  • -
  • slotMimetype (mimetype) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    mimetypeTQString
    -

  • -
  • slotRedirection (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • start (slave) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    slaveKIO.Slave
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.NetAccess.html b/python/pykde/doc/classref/kio/KIO.NetAccess.html deleted file mode 100644 index 20490bbc..00000000 --- a/python/pykde/doc/classref/kio/KIO.NetAccess.html +++ /dev/null @@ -1,323 +0,0 @@ - - - - - class KIO.NetAccess - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KIO.NetAccess


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKIO.NetAccess
InheritsTQObject
-

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
    windowTQWidget
    -

  • -
  • 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
    windowTQWidget
    -

  • -
  • 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
    windowTQWidget
    -

  • -
  • 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
    windowTQWidget0
    -

  • -
  • download (src, target, window) -
    - - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    srcKURL
    targetTQString
    windowTQWidget
    -

  • -
  • download (src, target) -
    - -
    returns (bool)
    static
    - - -
    ArgumentTypeDefault
    srcKURL
    targetTQString
    -

  • -
  • exists (url, source, window) -
    - - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    urlKURL
    sourcebool
    windowTQWidget
    -

  • -
  • exists (url, window) -
    - - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    - - -
    ArgumentTypeDefault
    urlKURL
    windowTQWidget
    -

  • -
  • 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
    windowTQWidget0
    -

  • -
  • 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
    windowTQWidget0
    -

  • -
  • fish_execute (url, command, window) -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    urlKURL
    commandTQString
    windowTQWidget
    -

  • -
  • lastError () -
    - - -
    returns (int)
    In versions KDE 3.3.0 and above only
    static

  • -
  • lastErrorString () -
    - -
    returns (TQString)
    static

  • -
  • mimetype (url, window) -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    static
    - - -
    ArgumentTypeDefault
    urlKURL
    windowTQWidget
    -

  • -
  • mimetype (url) -
    Not Implemented
    -

  • -
  • mkdir (url, window, permissions = -1) -
    - - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    urlKURL
    windowTQWidget
    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
    windowTQWidget
    -

  • -
  • move (src, target, window = 0) -
    - - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    srcKURL
    targetKURL
    windowTQWidget0
    -

  • -
  • move (src, target, window = 0) -
    - - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    srcKURL.List
    targetKURL
    windowTQWidget0
    -

  • -
  • removeTempFile (name) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • stat (url, entry, window) -
    - - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    urlKURL
    entryKIO.UDSEntry
    windowTQWidget
    -

  • -
  • 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
    windowTQWidget
    dataTQByteArray0
    finalURLKURL0
    metaDataTQMap0
    -

  • -
  • upload (src, target, window) -
    - - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    srcTQString
    targetKURL
    windowTQWidget
    -

  • -
  • upload (src, target) -
    - -
    returns (bool)
    static
    - - -
    ArgumentTypeDefault
    srcTQString
    targetKURL
    -

  • -
  • ~NetAccess () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.NetRC.AutoLogin.html b/python/pykde/doc/classref/kio/KIO.NetRC.AutoLogin.html deleted file mode 100644 index 05ec72d6..00000000 --- a/python/pykde/doc/classref/kio/KIO.NetRC.AutoLogin.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - 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
    loginTQString
    macdefKStringListMap
    machineTQString
    passwordTQString
    typeTQString
- - - diff --git a/python/pykde/doc/classref/kio/KIO.NetRC.html b/python/pykde/doc/classref/kio/KIO.NetRC.html deleted file mode 100644 index 9ebae369..00000000 --- a/python/pykde/doc/classref/kio/KIO.NetRC.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - 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 = TQString .null, mode = 6) -
    -
    returns (bool)
    - - - - - -
    ArgumentTypeDefault
    urlKURL
    loginKIO.NetRC.AutoLogin
    userealnetrcbool0
    typeTQStringTQString .null
    modeint6
    -

  • -
  • openf (a0) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • 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/python/pykde/doc/classref/kio/KIO.PasswordDialog.html b/python/pykde/doc/classref/kio/KIO.PasswordDialog.html deleted file mode 100644 index 6160b2e9..00000000 --- a/python/pykde/doc/classref/kio/KIO.PasswordDialog.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - 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
    promptTQString
    userTQString
    enableKeepbool0
    modalbool1
    parentTQWidget0
    namechar0
    -

  • -
  • addCommentLine (label, comment) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    labelTQString
    commentTQString
    -

  • -
  • getNameAndPassword (keep, prompt = TQString .null, readOnly = 0, caption = TQString .null, comment = TQString .null, label = TQString .null) -
    - -
    returns (int) user (TQString) pass (TQString) keep (bool)
    static
    - - - - - - -
    ArgumentTypeDefault
    keepbool
    promptTQStringTQString .null
    readOnlybool0
    captionTQStringTQString .null
    commentTQStringTQString .null
    labelTQStringTQString .null
    -

  • -
  • keepPassword () -
    -
    returns (bool)

  • -
  • password () -
    -
    returns (TQString)

  • -
  • 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
    knownLoginsTQMap
    -

  • -
  • setPassword (password) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    passwordTQString
    -

  • -
  • setPrompt (prompt) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    promptTQString
    -

  • -
  • setUserReadOnly (readOnly) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    readOnlybool
    -

  • -
  • username () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.PreviewJob.html b/python/pykde/doc/classref/kio/KIO.PreviewJob.html deleted file mode 100644 index d1dc2440..00000000 --- a/python/pykde/doc/classref/kio/KIO.PreviewJob.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - 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
    enabledPluginsTQStringList
    deleteItemsbool0
    -

  • -
  • availablePlugins () -
    - -
    returns (TQStringList)
    static

  • -
  • createThumbnail (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • failed (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemKFileItem
    -

  • -
  • getOrCreateThumbnail () -
    -
    returns nothing

  • -
  • gotPreview (item, preview) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    itemKFileItem
    previewTQPixmap
    -

  • -
  • 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 (TQStringList)
    static

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.ProgressBase.html b/python/pykde/doc/classref/kio/KIO.ProgressBase.html deleted file mode 100644 index f3b615e6..00000000 --- a/python/pykde/doc/classref/kio/KIO.ProgressBase.html +++ /dev/null @@ -1,201 +0,0 @@ - - - - - class KIO.ProgressBase - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KIO.ProgressBase


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKIO.ProgressBase
InheritsTQWidget
-

methods

    -
  • ProgressBase (parent) -
    -
    returns a ProgressBase instance
    - -
    ArgumentTypeDefault
    parentTQWidget
    -

  • -
  • closeEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQCloseEvent
    -

  • -
  • 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/python/pykde/doc/classref/kio/KIO.Scheduler.html b/python/pykde/doc/classref/kio/KIO.Scheduler.html deleted file mode 100644 index 3e0f53c3..00000000 --- a/python/pykde/doc/classref/kio/KIO.Scheduler.html +++ /dev/null @@ -1,267 +0,0 @@ - - - - - class KIO.Scheduler - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KIO.Scheduler


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKIO.Scheduler
InheritsTQObject, 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
    receiverTQObject
    memberchar
    -

  • -
  • connect (sender, signal, receiver, member) -
    - -
    returns (bool)
    static
    - - - - -
    ArgumentTypeDefault
    senderTQObject
    signalchar
    receiverTQObject
    memberchar
    -

  • -
  • connect (sender, signal, member) -
    -
    returns (bool)
    - - - -
    ArgumentTypeDefault
    senderTQObject
    signalchar
    memberchar
    -

  • -
  • debug_info () -
    -
    returns nothing

  • -
  • disconnect (sender, signal, receiver, member) -
    - -
    returns (bool)
    static
    - - - - -
    ArgumentTypeDefault
    senderTQObject
    signalchar
    receiverTQObject
    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
    funTQCString
    dataTQByteArray
    replyTypeTQCString
    replyDataTQByteArray
    -

  • -
  • 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
    widTQWidget
    -

  • -
  • 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
    protocolTQString
    proxyTQString
    newSlavebool
    configKIO.MetaData0
    -

  • -
  • slaveConnected (slave) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    slaveKIO.Slave
    -

  • -
  • slaveError (slave, error, errorMsg) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    slaveKIO.Slave
    errorint
    errorMsgTQString
    -

  • -
  • slotCleanIdleSlaves () -
    -
    returns nothing

  • -
  • slotScheduleCoSlave () -
    -
    returns nothing

  • -
  • slotSlaveConnected () -
    -
    returns nothing

  • -
  • slotSlaveDied (slave) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    slaveKIO.Slave
    -

  • -
  • slotSlaveError (error, errorMsg) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    errorint
    errorMsgTQString
    -

  • -
  • slotSlaveStatus (pid, protocol, host, connected) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    pidpid_t
    protocolTQCString
    hostTQString
    connectedbool
    -

  • -
  • slotUnregisterWindow (a0) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    a0TQObject
    -

  • -
  • 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
    widTQObject
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.SessionData.html b/python/pykde/doc/classref/kio/KIO.SessionData.html deleted file mode 100644 index f86738fe..00000000 --- a/python/pykde/doc/classref/kio/KIO.SessionData.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - class KIO.SessionData - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KIO.SessionData


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKIO.SessionData
InheritsTQObject
-

methods

    -
  • SessionData () -
    -
    returns a SessionData instance

  • -
  • configDataFor (configData, proto, host) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    configDataKIO.MetaData
    protoTQString
    hostTQString
    -

  • -
  • reset () -
    -
    returns nothing

  • -
  • slotAuthData (a0, a1, a2) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    a0TQCString
    a1TQCString
    a2bool
    -

  • -
  • slotDelAuthData (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQCString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.SimpleJob.html b/python/pykde/doc/classref/kio/KIO.SimpleJob.html deleted file mode 100644 index 372517a7..00000000 --- a/python/pykde/doc/classref/kio/KIO.SimpleJob.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - 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
    packedArgsTQByteArray
    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
    a1TQString
    -

  • -
  • slotFinished () -
    -
    returns nothing

  • -
  • slotInfoMessage (s) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sTQString
    -

  • -
  • 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
    a0TQString
    -

  • -
  • 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/python/pykde/doc/classref/kio/KIO.Slave.html b/python/pykde/doc/classref/kio/KIO.Slave.html deleted file mode 100644 index 3d76a9d8..00000000 --- a/python/pykde/doc/classref/kio/KIO.Slave.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - - 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
    protocolTQString
    socketnameTQString
    -

  • -
  • Slave (unixdomain, protocol, socketname) -
    -
    returns a Slave instance
    - - - -
    ArgumentTypeDefault
    unixdomainKServerSocket
    protocolTQString
    socketnameTQString
    -

  • -
  • accept (socket) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    socketKSocket
    -

  • -
  • connection () -
    -
    returns (KIO.Connection)

  • -
  • createSlave (protocol, url) -
    - -
    returns (KIO.Slave) error (int) error_text (TQString)
    static
    - - -
    ArgumentTypeDefault
    protocolTQString
    urlKURL
    -

  • -
  • deref () -
    -
    returns nothing

  • -
  • gotInput () -
    -
    returns nothing

  • -
  • hold (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • holdSlave (protocol, url) -
    - -
    returns (KIO.Slave)
    static
    - - -
    ArgumentTypeDefault
    protocolTQString
    urlKURL
    -

  • -
  • host () -
    -
    returns (TQString)

  • -
  • idleTime () -
    -
    returns (time_t)

  • -
  • isAlive () -
    -
    returns (bool)

  • -
  • isConnected () -
    -
    returns (bool)

  • -
  • kill () -
    -
    returns nothing

  • -
  • passwd () -
    -
    returns (TQString)

  • -
  • port () -
    -
    returns (int)

  • -
  • protocol () -
    -
    returns (TQString)

  • -
  • ref () -
    -
    returns nothing

  • -
  • resetHost () -
    -
    returns nothing

  • -
  • resume () -
    -
    returns nothing

  • -
  • send (cmd, data = TQByteArray ()) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    cmdint
    dataTQByteArrayTQByteArray ()
    -

  • -
  • setConfig (config) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    configKIO.MetaData
    -

  • -
  • setConnected (c) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    cbool
    -

  • -
  • setHost (host, port, user, passwd) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    hostTQString
    portint
    userTQString
    passwdTQString
    -

  • -
  • setIdle () -
    -
    returns nothing

  • -
  • setPID (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0pid_t
    -

  • -
  • setProtocol (protocol) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • slaveDied (slave) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    slaveKIO.Slave
    -

  • -
  • slaveProtocol () -
    -
    returns (TQString)

  • -
  • slave_pid () -
    -
    returns (int)

  • -
  • suspend () -
    -
    returns nothing

  • -
  • suspended () -
    -
    returns (bool)

  • -
  • timeout () -
    -
    returns nothing

  • -
  • unlinkSocket () -
    -
    returns nothing

  • -
  • user () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.SlaveBase.html b/python/pykde/doc/classref/kio/KIO.SlaveBase.html deleted file mode 100644 index 518cecbb..00000000 --- a/python/pykde/doc/classref/kio/KIO.SlaveBase.html +++ /dev/null @@ -1,631 +0,0 @@ - - - - - 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
    protocolTQCString
    pool_socketTQCString
    app_socketTQCString
    -

  • -
  • 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
    pathTQString
    -

  • -
  • connectSlave (a0) -
    - -
    returns nothing
    In versions less than KDE 3.1.0 only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • 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 (TQString)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • createAuthCacheKey (a0) -
    - -
    returns (TQString)
    In versions less than KDE 3.1.0 only
    - -
    ArgumentTypeDefault
    a0KURL
    -

  • -
  • data (data) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    dataTQByteArray
    -

  • -
  • 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
    keyTQString
    -

  • -
  • delCachedAuthentication (a0) -
    - -
    returns nothing
    In versions less than KDE 3.1.0 only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • 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
    dataTQByteArray
    -

  • -
  • dispatchLoop () -
    -
    returns nothing

  • -
  • dropNetwork (host = TQString .null) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    hostTQStringTQString .null
    -

  • -
  • dropNetwork (a0 = TQString .null) -
    - -
    returns nothing
    In versions less than KDE 3.1.0 only
    - -
    ArgumentTypeDefault
    a0TQStringTQString .null
    -

  • -
  • error (_errid, _text) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    _erridint
    _textTQString
    -

  • -
  • 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
    keyTQString
    -

  • -
  • infoMessage (msg) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    msgTQString
    -

  • -
  • 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 = TQString .null, buttonYes = TQString .null, buttonNo = TQString .null) -
    -
    returns (int)
    - - - - - -
    ArgumentTypeDefault
    typeKIO.SlaveBase.MessageBoxType
    textTQString
    captionTQStringTQString .null
    buttonYesTQStringTQString .null
    buttonNoTQStringTQString .null
    -

  • -
  • messageBox (text, type, caption = TQString .null, buttonYes = TQString .null, buttonNo = TQString .null, dontAskAgainName = TQString .null) -
    - -
    returns (int)
    In versions KDE 3.3.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    textTQString
    typeKIO.SlaveBase.MessageBoxType
    captionTQStringTQString .null
    buttonYesTQStringTQString .null
    buttonNoTQStringTQString .null
    dontAskAgainNameTQStringTQString .null
    -

  • -
  • metaData (key) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • mimeType (_type) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _typeTQString
    -

  • -
  • mimetype (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • mkdir (url, permissions) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    urlKURL
    permissionsint
    -

  • -
  • multiGet (data) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    dataTQByteArray
    -

  • -
  • 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
    errorMsgTQString
    -

  • -
  • 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
    bufferTQByteArray
    -

  • -
  • 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 = TQString .null) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    hostTQStringTQString .null
    -

  • -
  • requestNetwork (a0 = TQString .null) -
    - -
    returns (bool)
    In versions less than KDE 3.1.0 only
    - -
    ArgumentTypeDefault
    a0TQStringTQString .null
    -

  • -
  • responseTimeout () -
    -
    returns (int)

  • -
  • sendAuthenticationKey (gKey, key, keep) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - - -
    ArgumentTypeDefault
    gKeyTQCString
    keyTQCString
    keepbool
    -

  • -
  • sendAuthenticationKey (a0, a1, a2) -
    - -
    returns nothing
    In versions less than KDE 3.1.0 only
    - - - -
    ArgumentTypeDefault
    a0TQCString
    a1TQCString
    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
    hostTQString
    portint
    userTQString
    passTQString
    -

  • -
  • setKillFlag () -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only

  • -
  • setMetaData (key, value) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    keyTQString
    valueTQString
    -

  • -
  • 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 = TQByteArray ()) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - -
    ArgumentTypeDefault
    timeoutint
    dataTQByteArrayTQByteArray ()
    -

  • -
  • sigpipe_handler (a0) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • sigsegv_handler (a0) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • slaveStatus (host, connected) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    hostTQString
    connectedbool
    -

  • -
  • slave_status () -
    -
    returns nothing

  • -
  • special (data) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    dataTQByteArray
    -

  • -
  • 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
    targetTQString
    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
    dataTQByteArray
    -

  • -
  • waitForAnswer (a0, a1, a2) -
    - -
    returns (int) a3 (int)
    In versions less than KDE 3.1.0 only
    - - - -
    ArgumentTypeDefault
    a0int
    a1int
    a2TQByteArray
    -

  • -
  • warning (msg) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    msgTQString
    -

  • -
  • wasKilled () -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only

  • -
-

variables

  • -variables - - - - -
    VariableType
    mIncomingMetaDataKIO::MetaData
    mOutgoingMetaDataKIO::MetaData
    mProtocolTQCString
    m_pConnectionKIO::Connection*
- - - diff --git a/python/pykde/doc/classref/kio/KIO.SlaveConfig.html b/python/pykde/doc/classref/kio/KIO.SlaveConfig.html deleted file mode 100644 index 16a59e82..00000000 --- a/python/pykde/doc/classref/kio/KIO.SlaveConfig.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - class KIO.SlaveConfig - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KIO.SlaveConfig


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKIO.SlaveConfig
InheritsTQObject
-

methods

    -
  • SlaveConfig () -
    -
    returns a SlaveConfig instance

  • -
  • configData (protocol, host) -
    -
    returns (KIO.MetaData)
    - - -
    ArgumentTypeDefault
    protocolTQString
    hostTQString
    -

  • -
  • configData (protocol, host, key) -
    -
    returns (TQString)
    - - - -
    ArgumentTypeDefault
    protocolTQString
    hostTQString
    keyTQString
    -

  • -
  • configNeeded (protocol, host) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    protocolTQString
    hostTQString
    -

  • -
  • reset () -
    -
    returns nothing

  • -
  • self () -
    - -
    returns (KIO.SlaveConfig)
    static

  • -
  • setConfigData (protocol, host, key, value) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    protocolTQString
    hostTQString
    keyTQString
    valueTQString
    -

  • -
  • setConfigData (protocol, host, config) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    protocolTQString
    hostTQString
    configKIO.MetaData
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.SlaveInterface.html b/python/pykde/doc/classref/kio/KIO.SlaveInterface.html deleted file mode 100644 index e962fe7f..00000000 --- a/python/pykde/doc/classref/kio/KIO.SlaveInterface.html +++ /dev/null @@ -1,284 +0,0 @@ - - - - - class KIO.SlaveInterface - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KIO.SlaveInterface


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKIO.SlaveInterface
InheritsTQObject
-

methods

    -
  • SlaveInterface (connection) -
    -
    returns a SlaveInterface instance
    - -
    ArgumentTypeDefault
    connectionKIO.Connection
    -

  • -
  • authorizationKey (a0, a1, a2) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    a0TQCString
    a1TQCString
    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
    a0TQByteArray
    -

  • -
  • dataReq () -
    -
    returns nothing

  • -
  • delAuthorization (grpkey) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    grpkeyTQCString
    -

  • -
  • dispatch () -
    -
    returns (bool)

  • -
  • dispatch (_cmd, data) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    _cmdint
    dataTQByteArray
    -

  • -
  • dropNetwork (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    -

  • -
  • error (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0int
    a1TQString
    -

  • -
  • errorPage () -
    -
    returns nothing

  • -
  • finished () -
    -
    returns nothing

  • -
  • infoMessage (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • listEntries (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KIO.UDSEntryList
    -

  • -
  • messageBox (type, text, caption, buttonYes, buttonNo) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    typeint
    textTQString
    captionTQString
    buttonYesTQString
    buttonNoTQString
    -

  • -
  • messageBox (type, text, caption, buttonYes, buttonNo, dontAskAgainName) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    typeint
    textTQString
    captionTQString
    buttonYesTQString
    buttonNoTQString
    dontAskAgainNameTQString
    -

  • -
  • metaData (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KIO.MetaData
    -

  • -
  • mimeType (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • 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
    promptTQString
    userTQString
    captionTQString
    commentTQString
    labelTQString
    readOnlybool
    -

  • -
  • openPassDlg (prompt, user, readOnly) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    promptTQString
    userTQString
    readOnlybool
    -

  • -
  • processedSize (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KIO.filesize_t
    -

  • -
  • progressId () -
    -
    returns (int)

  • -
  • redirection (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KURL
    -

  • -
  • requestNetwork (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0TQString
    a1TQString
    -

  • -
  • 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
    a1TQCString
    a2TQString
    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
    a0TQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.StatJob.html b/python/pykde/doc/classref/kio/KIO.StatJob.html deleted file mode 100644 index ac1ef454..00000000 --- a/python/pykde/doc/classref/kio/KIO.StatJob.html +++ /dev/null @@ -1,109 +0,0 @@ - - - - - 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
    packedArgsTQByteArray
    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/python/pykde/doc/classref/kio/KIO.StatusbarProgress.html b/python/pykde/doc/classref/kio/KIO.StatusbarProgress.html deleted file mode 100644 index 011302d7..00000000 --- a/python/pykde/doc/classref/kio/KIO.StatusbarProgress.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - 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
    parentTQWidget
    buttonbool1
    -

  • -
  • eventFilter (a0, a1) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    a0TQObject
    a1TQEvent
    -

  • -
  • 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/python/pykde/doc/classref/kio/KIO.StoredTransferJob.html b/python/pykde/doc/classref/kio/KIO.StoredTransferJob.html deleted file mode 100644 index e95d2fc2..00000000 --- a/python/pykde/doc/classref/kio/KIO.StoredTransferJob.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - 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
    packedArgsTQByteArray
    _staticDataTQByteArray
    showProgressInfobool
    -

  • -
  • data () -
    - -
    returns (TQByteArray)
    In versions KDE 3.3.0 and above only

  • -
  • setData (arr) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    arrTQByteArray
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.TCPSlaveBase.html b/python/pykde/doc/classref/kio/KIO.TCPSlaveBase.html deleted file mode 100644 index f13b3111..00000000 --- a/python/pykde/doc/classref/kio/KIO.TCPSlaveBase.html +++ /dev/null @@ -1,230 +0,0 @@ - - - - - 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
    hostTQString
    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
    protocolTQCString
    poolSocketTQCString
    appSocketTQCString
    -

  • -
  • TCPSlaveBase (defaultPort, protocol, poolSocket, appSocket, useSSL) -
    -
    returns a TCPSlaveBase instance
    - - - - - -
    ArgumentTypeDefault
    defaultPortushort
    protocolTQCString
    poolSocketTQCString
    appSocketTQCString
    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
    hostTQString
    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
    realHostTQString
    -

  • -
  • 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/python/pykde/doc/classref/kio/KIO.Task.html b/python/pykde/doc/classref/kio/KIO.Task.html deleted file mode 100644 index fcb38dd7..00000000 --- a/python/pykde/doc/classref/kio/KIO.Task.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - 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
    dataTQByteArray
- - - diff --git a/python/pykde/doc/classref/kio/KIO.TransferJob.html b/python/pykde/doc/classref/kio/KIO.TransferJob.html deleted file mode 100644 index 71b1b9c1..00000000 --- a/python/pykde/doc/classref/kio/KIO.TransferJob.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - 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
    packedArgsTQByteArray
    _staticDataTQByteArray
    showProgressInfobool
    -

  • -
  • canResume (job, offset) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    jobKIO.Job
    offsetKIO.filesize_t
    -

  • -
  • data (job, data) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    jobKIO.Job
    dataTQByteArray
    -

  • -
  • dataReq (job, data) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    jobKIO.Job
    dataTQByteArray
    -

  • -
  • isErrorPage () -
    -
    returns (bool)

  • -
  • isSuspended () -
    -
    returns (bool)

  • -
  • mimetype (job, type) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    jobKIO.Job
    typeTQString
    -

  • -
  • 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
    dataTQByteArray
    -

  • -
  • 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
    dataTQByteArray
    -

  • -
  • 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
    mimetypeTQString
    -

  • -
  • 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
    a1TQByteArray
    -

  • -
  • start (slave) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    slaveKIO.Slave
    -

  • -
  • suspend () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KIO.UDSAtom.html b/python/pykde/doc/classref/kio/KIO.UDSAtom.html deleted file mode 100644 index 74497e54..00000000 --- a/python/pykde/doc/classref/kio/KIO.UDSAtom.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 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_strTQString
    m_udsuint
- - - diff --git a/python/pykde/doc/classref/kio/KIO.html b/python/pykde/doc/classref/kio/KIO.html deleted file mode 100644 index df3ae6a6..00000000 --- a/python/pykde/doc/classref/kio/KIO.html +++ /dev/null @@ -1,645 +0,0 @@ - - - - - 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 (TQString)
    - - -
    ArgumentTypeDefault
    errorCodeint
    errorTextTQString
    -

  • -
  • buildHTMLErrorString (errorCode, errorText, reqUrl = 0, method = -1) -
    Not Implemented
    -

  • -
  • calculateRemaining (totalSize, processedSize, speed) -
    -
    returns (TQTime)
    - - - -
    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 (TQString)
    In versions KDE 3.4.0 and above only
    - -
    ArgumentTypeDefault
    secondsuint
    -

  • -
  • convertSize (size) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    sizeKIO.filesize_t
    -

  • -
  • convertSizeFromKB (kbSize) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    kbSizeKIO.filesize_t
    -

  • -
  • convertSizeWithBytes (size) -
    - -
    returns (TQString)
    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
    propertiesTQDomDocument
    depthTQString
    showProgressInfobool1
    -

  • -
  • davPropPatch (url, properties, showProgressInfo = 1) -
    - -
    returns (KIO.DavJob)
    In versions KDE 3.1.0 and above only
    - - - -
    ArgumentTypeDefault
    urlKURL
    propertiesTQDomDocument
    showProgressInfobool1
    -

  • -
  • davSearch (url, nsURI, qName, query, showProgressInfo = 1) -
    - -
    returns (KIO.DavJob)
    In versions KDE 3.1.0 and above only
    - - - - - -
    ArgumentTypeDefault
    urlKURL
    nsURITQString
    qNameTQString
    queryTQString
    showProgressInfobool1
    -

  • -
  • decodeFileName (str) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    strTQString
    -

  • -
  • 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 (TQString)
    - -
    ArgumentTypeDefault
    strTQString
    -

  • -
  • 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
    enabledPluginsTQStringList0
    -

  • -
  • 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
    enabledPluginsTQStringList0
    -

  • -
  • 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 (TQString)
    - -
    ArgumentTypeDefault
    deviceTQString
    -

  • -
  • findPathMountPoint (filename) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    filenameTQString
    -

  • -
  • get (url, reload = 0, showProgressInfo = 1) -
    -
    returns (KIO.TransferJob)
    - - - -
    ArgumentTypeDefault
    urlKURL
    reloadbool0
    showProgressInfobool1
    -

  • -
  • getCacheControlString (cacheControl) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    cacheControlKIO.CacheControl
    -

  • -
  • http_post (url, postData, showProgressInfo = 1) -
    -
    returns (KIO.TransferJob)
    - - - -
    ArgumentTypeDefault
    urlKURL
    postDataTQByteArray
    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 (TQString)
    - - - - - -
    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
    filenameTQString
    -

  • -
  • 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
    devTQString
    pointTQString
    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 (TQString)
    - -
    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 = TQString .null) -
    Not Implemented
    -

  • -
  • parseCacheControl (cacheControl) -
    -
    returns (KIO.CacheControl)
    - -
    ArgumentTypeDefault
    cacheControlTQString
    -

  • -
  • pasteActionText () -
    - -
    returns (TQString)
    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
    dataTQByteArray
    -

  • -
  • pasteDataAsync (destURL, data, dialogText) -
    - -
    returns (KIO.CopyJob)
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    destURLKURL
    dataTQByteArray
    dialogTextTQString
    -

  • -
  • pasteDataAsync (destURL, data, dialogText) -
    - -
    returns (KIO.CopyJob)
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    destURLKURL
    dataTQByteArray
    dialogTextTQString
    -

  • -
  • pasteMimeSource (data, destURL, dialogText, widget, clipboard = 0) -
    - -
    returns (KIO.CopyJob)
    In versions KDE 3.5.0 and above only
    - - - - - -
    ArgumentTypeDefault
    dataTQMimeSource
    destURLKURL
    dialogTextTQString
    widgetTQWidget
    clipboardbool0
    -

  • -
  • probably_slow_mounted (filename) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    filenameTQString
    -

  • -
  • put (url, permissions, overwrite, resume, showProgressInfo = 1) -
    -
    returns (KIO.TransferJob)
    - - - - - -
    ArgumentTypeDefault
    urlKURL
    permissionsint
    overwritebool
    resumebool
    showProgressInfobool1
    -

  • -
  • rawErrorDetail (errorCode, errorText, reqUrl = 0, method = -1) -
    -
    returns (TQByteArray)
    - - - - -
    ArgumentTypeDefault
    errorCodeint
    errorTextTQString
    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
    dataTQByteArray
    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
    arrTQByteArray
    urlKURL
    permissionsint
    overwritebool
    resumebool
    showProgressInfobool1
    -

  • -
  • symlink (target, dest, overwrite, showProgressInfo = 1) -
    -
    returns (KIO.SimpleJob)
    - - - - -
    ArgumentTypeDefault
    targetTQString
    destKURL
    overwritebool
    showProgressInfobool1
    -

  • -
  • testFileSystemFlag (filename, flag) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    filenameTQString
    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
    pointTQString
    showProgressInfobool1
    -

  • -
  • unsupportedActionErrorString (protocol, cmd) -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    protocolTQString
    cmdint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KImageIO.html b/python/pykde/doc/classref/kio/KImageIO.html deleted file mode 100644 index 73101473..00000000 --- a/python/pykde/doc/classref/kio/KImageIO.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - 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
    typeTQString
    -

  • -
  • canWrite (type) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    typeTQString
    -

  • -
  • isSupported (_mimeType, _mode = Writing) -
    - -
    returns (bool)
    static
    - - -
    ArgumentTypeDefault
    _mimeTypeTQString
    _modeKImageIO.ModeWriting
    -

  • -
  • mimeType (_filename) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    _filenameTQString
    -

  • -
  • mimeTypes (mode = Writing) -
    - -
    returns (TQStringList)
    static
    - -
    ArgumentTypeDefault
    modeKImageIO.ModeWriting
    -

  • -
  • pattern (mode = Reading) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    modeKImageIO.ModeReading
    -

  • -
  • registerFormats () -
    - -
    returns nothing
    static

  • -
  • suffix (type) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    typeTQString
    -

  • -
  • type (filename) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    filenameTQString
    -

  • -
  • typeForMime (mimeType) -
    - - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    static
    - -
    ArgumentTypeDefault
    mimeTypeTQString
    -

  • -
  • types (mode = Writing) -
    - -
    returns (TQStringList)
    static
    - -
    ArgumentTypeDefault
    modeKImageIO.ModeWriting
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KMimeMagic.html b/python/pykde/doc/classref/kio/KMimeMagic.html deleted file mode 100644 index 9502443c..00000000 --- a/python/pykde/doc/classref/kio/KMimeMagic.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - 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
    configFileTQString
    -

  • -
  • findBufferFileType (a0, filename) -
    -
    returns (KMimeMagicResult)
    - - -
    ArgumentTypeDefault
    a0TQByteArray
    filenameTQString
    -

  • -
  • findBufferType (p) -
    -
    returns (KMimeMagicResult)
    - -
    ArgumentTypeDefault
    pTQByteArray
    -

  • -
  • findFileType (_filename) -
    -
    returns (KMimeMagicResult)
    - -
    ArgumentTypeDefault
    _filenameTQString
    -

  • -
  • initStatic () -
    - -
    returns nothing
    static

  • -
  • mergeBufConfig (a0) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    a0char
    -

  • -
  • mergeConfig (configFile) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    configFileTQString
    -

  • -
  • self () -
    - -
    returns (KMimeMagic)
    static

  • -
  • setFollowLinks (_enable) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _enablebool
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KMimeMagicResult.html b/python/pykde/doc/classref/kio/KMimeMagicResult.html deleted file mode 100644 index 7a86ff54..00000000 --- a/python/pykde/doc/classref/kio/KMimeMagicResult.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 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 (TQString)

  • -
  • setAccuracy (_accuracy) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _accuracyint
    -

  • -
  • setInvalid () -
    -
    returns nothing

  • -
  • setMimeType (_mime) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _mimeTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KMimeType.Format.html b/python/pykde/doc/classref/kio/KMimeType.Format.html deleted file mode 100644 index 738029d4..00000000 --- a/python/pykde/doc/classref/kio/KMimeType.Format.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kio/KMimeType.html b/python/pykde/doc/classref/kio/KMimeType.html deleted file mode 100644 index daf8b857..00000000 --- a/python/pykde/doc/classref/kio/KMimeType.html +++ /dev/null @@ -1,290 +0,0 @@ - - - - - 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
    _fullpathTQString
    _typeTQString
    _iconTQString
    _commentTQString
    _patternsTQStringList
    -

  • -
  • KMimeType (_fullpath) -
    -
    returns a KMimeType instance
    - -
    ArgumentTypeDefault
    _fullpathTQString
    -

  • -
  • KMimeType (config) -
    -
    returns a KMimeType instance
    - -
    ArgumentTypeDefault
    configKDesktopFile
    -

  • -
  • KMimeType (_str, offset) -
    -
    returns a KMimeType instance
    - - -
    ArgumentTypeDefault
    _strTQDataStream
    offsetint
    -

  • -
  • allMimeTypes () -
    - -
    returns (KMimeType.List)
    static

  • -
  • buildDefaultType () -
    - -
    returns nothing
    static

  • -
  • checkEssentialMimeTypes () -
    - -
    returns nothing
    static

  • -
  • comment () -
    -
    returns (TQString)

  • -
  • comment (a0, a1) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    a0TQString
    a1bool
    -

  • -
  • comment (a0, a1) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    a0KURL
    a1bool
    -

  • -
  • defaultMimeType () -
    - -
    returns (TQString)
    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
    fileTQString
    patternTQString
    -

  • -
  • errorMissingMimeType (_type) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    _typeTQString
    -

  • -
  • favIconForURL (url) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • findByContent (data) -
    - -
    returns (KMimeType.Ptr) accuracy (int)
    static
    - -
    ArgumentTypeDefault
    dataTQByteArray
    -

  • -
  • findByFileContent (fileName) -
    - -
    returns (KMimeType.Ptr) accuracy (int)
    static
    - -
    ArgumentTypeDefault
    fileNameTQString
    -

  • -
  • findByPath (path, mode = 0, fast_mode = 0) -
    - -
    returns (KMimeType.Ptr)
    static
    - - - -
    ArgumentTypeDefault
    pathTQString
    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 (TQString)
    - - -
    ArgumentTypeDefault
    a0TQString
    a1bool
    -

  • -
  • icon (a0, a1) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    a0KURL
    a1bool
    -

  • -
  • iconForURL (_url, _mode = 0) -
    - -
    returns (TQString)
    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
    mimeTypeNameTQString
    -

  • -
  • load (qs) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    qsTQDataStream
    -

  • -
  • loadInternal (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDataStream
    -

  • -
  • mimeType (_name) -
    - -
    returns (KMimeType.Ptr)
    static
    - -
    ArgumentTypeDefault
    _nameTQString
    -

  • -
  • parentMimeType () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • patterns () -
    -
    returns (TQStringList)

  • -
  • patternsAccuracy () -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only

  • -
  • pixmap (group, force_size = 0, state = 0, path = 0) -
    -
    returns (TQPixmap)
    - - - - -
    ArgumentTypeDefault
    groupKIcon.Group
    force_sizeint0
    stateint0
    pathTQString0
    -

  • -
  • pixmap (_url, _group, _force_size = 0, _state = 0, _path = 0) -
    -
    returns (TQPixmap)
    - - - - - -
    ArgumentTypeDefault
    _urlKURL
    _groupKIcon.Group
    _force_sizeint0
    _stateint0
    _pathTQString0
    -

  • -
  • pixmapForURL (_url, _mode = 0, _group = KIcon .Desktop, _force_size = 0, _state = 0, _path = 0) -
    - -
    returns (TQPixmap)
    static
    - - - - - - -
    ArgumentTypeDefault
    _urlKURL
    _modemode_t0
    _groupKIcon.GroupKIcon .Desktop
    _force_sizeint0
    _stateint0
    _pathTQString0
    -

  • -
  • property (_name) -
    -
    returns (TQVariant)
    - -
    ArgumentTypeDefault
    _nameTQString
    -

  • -
  • propertyNames () -
    -
    returns (TQStringList)

  • -
  • save (qs) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    qsTQDataStream
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KMimeTypeChooser.html b/python/pykde/doc/classref/kio/KMimeTypeChooser.html deleted file mode 100644 index 751d3abc..00000000 --- a/python/pykde/doc/classref/kio/KMimeTypeChooser.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - class KMimeTypeChooser - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMimeTypeChooser


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKMimeTypeChooser
InheritsTQVBox
-

enums

    -
  • Visuals = {Comments, Patterns, EditButton -}
-

methods

    -
  • KMimeTypeChooser (text = TQString .null, selectedMimeTypes = 0, defaultGroup = TQString .null, groupsToShow = TQStringList (), visuals = Comments | Patterns | EditButton, parent = 0, name = 0) -
    - -
    returns a KMimeTypeChooser instance
    In versions KDE 3.3.0 and above only
    - - - - - - - -
    ArgumentTypeDefault
    textTQStringTQString .null
    selectedMimeTypesTQStringList0
    defaultGroupTQStringTQString .null
    groupsToShowTQStringListTQStringList ()
    visualsintComments | Patterns | EditButton
    parentTQWidget0
    namechar0
    -

  • -
  • editMimeType () -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only

  • -
  • mimeTypes () -
    - -
    returns (TQStringList)
    In versions KDE 3.3.0 and above only

  • -
  • patterns () -
    - -
    returns (TQStringList)
    In versions KDE 3.3.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KMimeTypeChooserDialog.html b/python/pykde/doc/classref/kio/KMimeTypeChooserDialog.html deleted file mode 100644 index 5ce292fe..00000000 --- a/python/pykde/doc/classref/kio/KMimeTypeChooserDialog.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - class KMimeTypeChooserDialog - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMimeTypeChooserDialog


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKMimeTypeChooserDialog
InheritsKDialogBase
-

methods

    -
  • KMimeTypeChooserDialog (caption = TQString .null, text = TQString .null, selectedMimeTypes = TQStringList (), defaultGroup = TQString .null, groupsToShow = TQStringList (), 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
    captionTQStringTQString .null
    textTQStringTQString .null
    selectedMimeTypesTQStringListTQStringList ()
    defaultGroupTQStringTQString .null
    groupsToShowTQStringListTQStringList ()
    visualsintKMimeTypeChooser .Comments | KMimeTypeChooser .Patterns | KMimeTypeChooser .EditButton
    parentTQWidget0
    namechar0
    -

  • -
  • KMimeTypeChooserDialog (caption, text, selectedMimeTypes, defaultGroup, parent = 0, name = 0) -
    - -
    returns a KMimeTypeChooserDialog instance
    In versions KDE 3.3.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    captionTQString
    textTQString
    selectedMimeTypesTQStringList
    defaultGroupTQString
    parentTQWidget0
    namechar0
    -

  • -
  • chooser () -
    - -
    returns (KMimeTypeChooser)
    In versions KDE 3.3.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KNFSShare.html b/python/pykde/doc/classref/kio/KNFSShare.html deleted file mode 100644 index 14d0fa7c..00000000 --- a/python/pykde/doc/classref/kio/KNFSShare.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - class KNFSShare - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KNFSShare


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKNFSShare
InheritsTQObject
-

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 (TQString)
    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
    pathTQString
    -

  • -
  • sharedDirectories () -
    - -
    returns (TQStringList)
    In versions KDE 3.3.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KOCRDialog.html b/python/pykde/doc/classref/kio/KOCRDialog.html deleted file mode 100644 index 9cce02bb..00000000 --- a/python/pykde/doc/classref/kio/KOCRDialog.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    modalbool0
    -

  • -
  • getOCRDialog (parent = 0, name = 0, modal = 0) -
    - -
    returns (KOCRDialog)
    static
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    modalbool0
    -

  • -
  • id () -
    -
    returns (int)

  • -
  • nextId () -
    -
    returns (int)

  • -
  • textRecognized (text, id) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    textTQString
    idint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KOCRDialogFactory.html b/python/pykde/doc/classref/kio/KOCRDialogFactory.html deleted file mode 100644 index 1d97d203..00000000 --- a/python/pykde/doc/classref/kio/KOCRDialogFactory.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - 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
    parentTQObject0
    namechar0
    -

  • -
  • createDialog (parent = 0, name = 0, modal = 0) = 0 -
    - -
    returns (KOCRDialog)
    pure virtual
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    modalbool0
    -

  • -
  • createObject (parent = 0, name = 0, classname = "TQObject", args = TQStringList ()) -
    -
    returns (TQObject)
    - - - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    classnamechar"TQObject"
    argsTQStringListTQStringList ()
    -

  • -
  • instance () -
    -
    returns (KInstance)

  • -
  • setName (instanceName) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    instanceNameTQCString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KOpenWithHandler.html b/python/pykde/doc/classref/kio/KOpenWithHandler.html deleted file mode 100644 index 33db6f57..00000000 --- a/python/pykde/doc/classref/kio/KOpenWithHandler.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kio/KProcessRunner.html b/python/pykde/doc/classref/kio/KProcessRunner.html deleted file mode 100644 index 7c18d7ea..00000000 --- a/python/pykde/doc/classref/kio/KProcessRunner.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - - class KProcessRunner - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KProcessRunner


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKProcessRunner
InheritsTQObject
-

methods

    -
  • KProcessRunner (a0, binName) -
    -
    returns a KProcessRunner instance
    - - -
    ArgumentTypeDefault
    a0KProcess
    binNameTQString
    -

  • -
  • KProcessRunner (a0, binName, id) -
    - -
    returns a KProcessRunner instance
    In versions KDE 3.1.4 and above only
    - - - -
    ArgumentTypeDefault
    a0KProcess
    binNameTQString
    idKStartupInfoId
    -

  • -
  • KProcessRunner () -
    -
    returns a KProcessRunner instance

  • -
  • pid () -
    -
    returns (pid_t)

  • -
  • run (a0, binName) -
    - -
    returns (pid_t)
    static
    - - -
    ArgumentTypeDefault
    a0KProcess
    binNameTQString
    -

  • -
  • run (a0, binName, id) -
    - - -
    returns (pid_t)
    In versions KDE 3.1.4 and above only
    static
    - - - -
    ArgumentTypeDefault
    a0KProcess
    binNameTQString
    idKStartupInfoId
    -

  • -
  • slotProcessExited (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KProcess
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KProtocolInfo.ExtraField.html b/python/pykde/doc/classref/kio/KProtocolInfo.ExtraField.html deleted file mode 100644 index eba66ecf..00000000 --- a/python/pykde/doc/classref/kio/KProtocolInfo.ExtraField.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - 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
    _nameTQString
    _typeTQString
    -

  • -
-

variables

  • -variables - - -
    VariableType
    nameTQString
    typeTQString
- - - diff --git a/python/pykde/doc/classref/kio/KProtocolInfo.html b/python/pykde/doc/classref/kio/KProtocolInfo.html deleted file mode 100644 index af72d251..00000000 --- a/python/pykde/doc/classref/kio/KProtocolInfo.html +++ /dev/null @@ -1,466 +0,0 @@ - - - - - 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
    pathTQString
    -

  • -
  • KProtocolInfo (_str, offset) -
    -
    returns a KProtocolInfo instance
    - - -
    ArgumentTypeDefault
    _strTQDataStream
    offsetint
    -

  • -
  • canCopyFromFile (url) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • canCopyFromFile (protocol) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • canCopyToFile (url) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • canCopyToFile (protocol) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • 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 (TQStringList)
    In versions KDE 3.3.0 and above only
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • config (protocol) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • defaultMimetype (url) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • defaultMimetype (protocol) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • determineMimetypeFromExtension (protocol) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • docPath (protocol) -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • exec_ (protocol) -
    - - -
    returns (TQString)
    Renamed: was ' exec' in C++
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • 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 (TQString)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • inputType (url) -
    - -
    returns (KProtocolInfo.Type)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • inputType (protocol) -
    - -
    returns (Type)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • isFilterProtocol (url) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • isFilterProtocol (protocol) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • isHelperProtocol (url) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • isHelperProtocol (protocol) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • isKnownProtocol (url) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • isKnownProtocol (protocol) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • isSourceProtocol (url) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • isSourceProtocol (protocol) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • isValid () -
    -
    returns (bool)

  • -
  • listing (url) -
    - -
    returns (TQStringList)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • listing (protocol) -
    - -
    returns (TQStringList)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • load (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDataStream
    -

  • -
  • maxSlaves (protocol) -
    - -
    returns (int)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • name () -
    -
    returns (TQString)

  • -
  • outputType (url) -
    - -
    returns (KProtocolInfo.Type)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • outputType (protocol) -
    - -
    returns (Type)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • protocolClass (protocol) -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • protocols () -
    - -
    returns (TQStringList)
    static

  • -
  • proxiedBy (protocol) -
    - - -
    returns (TQString)
    In versions KDE 3.3.0 and above only
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • save (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDataStream
    -

  • -
  • showFilePreview (protocol) -
    - - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • supportsDeleting (url) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • supportsDeleting (protocol) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • supportsLinking (url) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • supportsLinking (protocol) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • supportsListing (url) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • supportsListing (protocol) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • supportsMakeDir (url) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • supportsMakeDir (protocol) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • supportsMoving (url) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • supportsMoving (protocol) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • supportsReading (url) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • supportsReading (protocol) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • supportsWriting (url) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • supportsWriting (protocol) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • uriParseMode (protocol) -
    - - -
    returns (KURL.URIMode)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KProtocolManager.html b/python/pykde/doc/classref/kio/KProtocolManager.html deleted file mode 100644 index b25fc7c9..00000000 --- a/python/pykde/doc/classref/kio/KProtocolManager.html +++ /dev/null @@ -1,189 +0,0 @@ - - - - - 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
    proxyTQString
    -

  • -
  • cacheControl () -
    - -
    returns (KIO.CacheControl)
    static

  • -
  • cacheDir () -
    - -
    returns (TQString)
    static

  • -
  • config () -
    - -
    returns (KConfig)
    static

  • -
  • connectTimeout () -
    - -
    returns (int)
    static

  • -
  • defaultConnectTimeout () -
    Not Implemented
    -

  • -
  • defaultUserAgent () -
    - -
    returns (TQString)
    static

  • -
  • defaultUserAgent (keys) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    keysTQString
    -

  • -
  • markPartial () -
    - -
    returns (bool)
    static

  • -
  • maxCacheAge () -
    - -
    returns (int)
    static

  • -
  • maxCacheSize () -
    - -
    returns (int)
    static

  • -
  • minimumKeepSize () -
    - -
    returns (int)
    static

  • -
  • noProxyFor () -
    - -
    returns (TQString)
    static

  • -
  • noProxyForRaw () -
    - - -
    returns (TQString)
    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 (TQString)
    static

  • -
  • proxyConnectTimeout () -
    - -
    returns (int)
    static

  • -
  • proxyFor (protocol) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    protocolTQString
    -

  • -
  • proxyForURL (url) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • proxyType () -
    - -
    returns (KProtocolManager.ProxyType)
    static

  • -
  • readTimeout () -
    - -
    returns (int)
    static

  • -
  • reparseConfiguration () -
    - -
    returns nothing
    static

  • -
  • responseTimeout () -
    - -
    returns (int)
    static

  • -
  • slaveProtocol (url, proxy) -
    - -
    returns (TQString)
    static
    - - -
    ArgumentTypeDefault
    urlKURL
    proxyTQString
    -

  • -
  • useCache () -
    - -
    returns (bool)
    static

  • -
  • useProxy () -
    - -
    returns (bool)
    static

  • -
  • useReverseProxy () -
    - -
    returns (bool)
    static

  • -
  • userAgentForHost (hostname) -
    - -
    returns (TQString)
    static
    - -
    ArgumentTypeDefault
    hostnameTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KRemoteEncoding.html b/python/pykde/doc/classref/kio/KRemoteEncoding.html deleted file mode 100644 index 41f55254..00000000 --- a/python/pykde/doc/classref/kio/KRemoteEncoding.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - 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 (TQString)
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    nameTQCString
    -

  • -
  • directory (url, ignore_trailing_slash = 1) -
    - -
    returns (TQCString)
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    urlKURL
    ignore_trailing_slashbool1
    -

  • -
  • encode (name) -
    - -
    returns (TQCString)
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • encode (url) -
    - -
    returns (TQCString)
    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 (TQCString)
    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/python/pykde/doc/classref/kio/KRun.html b/python/pykde/doc/classref/kio/KRun.html deleted file mode 100644 index d39b3b00..00000000 --- a/python/pykde/doc/classref/kio/KRun.html +++ /dev/null @@ -1,360 +0,0 @@ - - - - - class KRun - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KRun


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKRun
InheritsTQObject
-

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
    windowTQWidget
    modemode_t0
    isLocalFilebool0
    showProgressInfobool1
    -

  • -
  • abort () -
    -
    returns nothing

  • -
  • autoDelete () -
    -
    returns (bool)

  • -
  • binaryName (execLine, removePath) -
    - - -
    returns (TQString)
    In versions KDE 3.1.0 and above only
    static
    - - -
    ArgumentTypeDefault
    execLineTQString
    removePathbool
    -

  • -
  • checkStartupNotify (binName, service, wmclass_arg) -
    - - -
    returns (bool) silent_arg (bool)
    In versions KDE 3.4.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    binNameTQString
    serviceKService
    wmclass_argTQCString
    -

  • -
  • 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
    suggestedFileNameTQString
    -

  • -
  • error () -
    -
    returns nothing

  • -
  • finished () -
    -
    returns nothing

  • -
  • foundMimeType (_type) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _typeTQString
    -

  • -
  • hasError () -
    -
    returns (bool)

  • -
  • hasFinished () -
    -
    returns (bool)

  • -
  • init () -
    -
    returns nothing

  • -
  • isExecutable (serviceType) -
    - - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    serviceTypeTQString
    -

  • -
  • isExecutableFile (url, mimetype) -
    - - -
    returns (bool)
    In versions KDE 3.3.0 and above only
    static
    - - -
    ArgumentTypeDefault
    urlKURL
    mimetypeTQString
    -

  • -
  • killJob () -
    -
    returns nothing

  • -
  • processDesktopExec (_service, _urls, has_shell, tempFiles) -
    - - -
    returns (TQStringList)
    In versions KDE 3.1.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    _serviceKService
    _urlsKURL.List
    has_shellbool
    tempFilesbool
    -

  • -
  • processDesktopExec (_service, _urls, has_shell) -
    - -
    returns (TQStringList)
    static
    - - - -
    ArgumentTypeDefault
    _serviceKService
    _urlsKURL.List
    has_shellbool
    -

  • -
  • processDesktopExec (_service, _urls, has_shell, tempFiles, suggestedFileName) -
    - - -
    returns (TQStringList)
    In versions KDE 3.5.3 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    _serviceKService
    _urlsKURL.List
    has_shellbool
    tempFilesbool
    suggestedFileNameTQString
    -

  • -
  • run (_service, _urls, window, tempFiles = 0) -
    - - -
    returns (pid_t)
    In versions KDE 3.5.2 and above only
    static
    - - - - -
    ArgumentTypeDefault
    _serviceKService
    _urlsKURL.List
    windowTQWidget
    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
    windowTQWidget
    tempFilesbool
    suggestedFileNameTQString
    -

  • -
  • run (_exec, _urls, _name = TQString .null, _icon = TQString .null, _obsolete1 = TQString .null, _obsolete2 = TQString .null) -
    - -
    returns (pid_t)
    static
    - - - - - - -
    ArgumentTypeDefault
    _execTQString
    _urlsKURL.List
    _nameTQStringTQString .null
    _iconTQStringTQString .null
    _obsolete1TQStringTQString .null
    _obsolete2TQStringTQString .null
    -

  • -
  • runCommand (cmd) -
    - -
    returns (pid_t)
    static
    - -
    ArgumentTypeDefault
    cmdTQString
    -

  • -
  • runCommand (cmd, execName, icon) -
    - -
    returns (pid_t)
    static
    - - - -
    ArgumentTypeDefault
    cmdTQString
    execNameTQString
    iconTQString
    -

  • -
  • runURL (_url, _mimetype, tempFile, runExecutables) -
    - - -
    returns (pid_t)
    In versions KDE 3.2.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    _urlKURL
    _mimetypeTQString
    tempFilebool
    runExecutablesbool
    -

  • -
  • runURL (_url, _mimetype, tempFile) -
    - - -
    returns (pid_t)
    In versions KDE 3.1.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    _urlKURL
    _mimetypeTQString
    tempFilebool
    -

  • -
  • runURL (_url, _mimetype) -
    - -
    returns (pid_t)
    static
    - - -
    ArgumentTypeDefault
    _urlKURL
    _mimetypeTQString
    -

  • -
  • runURL (_url, _mimetype, tempFile, runExecutables, suggestedFileName) -
    - - -
    returns (pid_t)
    In versions KDE 3.5.3 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    _urlKURL
    _mimetypeTQString
    tempFilebool
    runExecutablesbool
    suggestedFileNameTQString
    -

  • -
  • 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
    desktopEntryNameTQString
    -

  • -
  • 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
    fileNameTQString
    -

  • -
  • shellQuote (_str) -
    - -
    returns nothing
    static
    - -
    ArgumentTypeDefault
    _strTQString
    -

  • -
  • slotScanFinished (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KIO.Job
    -

  • -
  • slotScanMimeType (a0, type) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KIO.Job
    typeTQString
    -

  • -
  • slotStatResult (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KIO.Job
    -

  • -
  • slotTimeout () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KSambaShare.html b/python/pykde/doc/classref/kio/KSambaShare.html deleted file mode 100644 index db550778..00000000 --- a/python/pykde/doc/classref/kio/KSambaShare.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - class KSambaShare - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KSambaShare


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKSambaShare
InheritsTQObject
-

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
    pathTQString
    -

  • -
  • sharedDirectories () -
    - -
    returns (TQStringList)
    In versions KDE 3.3.0 and above only

  • -
  • smbConfPath () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KScanDialog.html b/python/pykde/doc/classref/kio/KScanDialog.html deleted file mode 100644 index 5fa0715c..00000000 --- a/python/pykde/doc/classref/kio/KScanDialog.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    modalbool0
    -

  • -
  • finalImage (img, id) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    imgTQImage
    idint
    -

  • -
  • getScanDialog (parent = 0, name = 0, modal = 0) -
    - -
    returns (KScanDialog)
    static
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    modalbool0
    -

  • -
  • id () -
    -
    returns (int)

  • -
  • nextId () -
    -
    returns (int)

  • -
  • preview (img, id) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    imgTQImage
    idint
    -

  • -
  • setup () -
    -
    returns (bool)

  • -
  • textRecognized (text, id) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    textTQString
    idint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KScanDialogFactory.html b/python/pykde/doc/classref/kio/KScanDialogFactory.html deleted file mode 100644 index 36490167..00000000 --- a/python/pykde/doc/classref/kio/KScanDialogFactory.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - 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
    parentTQObject0
    namechar0
    -

  • -
  • createDialog (parent = 0, name = 0, modal = 0) = 0 -
    - -
    returns (KScanDialog)
    pure virtual
    - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    modalbool0
    -

  • -
  • createObject (parent = 0, name = 0, classname = "TQObject", args = TQStringList ()) -
    -
    returns (TQObject)
    - - - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    classnamechar"TQObject"
    argsTQStringListTQStringList ()
    -

  • -
  • instance () -
    -
    returns (KInstance)

  • -
  • setName (instanceName) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    instanceNameTQCString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KService.html b/python/pykde/doc/classref/kio/KService.html deleted file mode 100644 index 0dc65301..00000000 --- a/python/pykde/doc/classref/kio/KService.html +++ /dev/null @@ -1,324 +0,0 @@ - - - - - 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
    _nameTQString
    _execTQString
    _iconTQString
    -

  • -
  • KService (_fullpath) -
    -
    returns a KService instance
    - -
    ArgumentTypeDefault
    _fullpathTQString
    -

  • -
  • KService (config) -
    -
    returns a KService instance
    - -
    ArgumentTypeDefault
    configKDesktopFile
    -

  • -
  • KService (_str, offset) -
    -
    returns a KService instance
    - - -
    ArgumentTypeDefault
    _strTQDataStream
    offsetint
    -

  • -
  • KService (a0) -
    - -
    returns a KService instance
    In versions KDE 3.1.1 and above only
    - -
    ArgumentTypeDefault
    a0KService
    -

  • -
  • accessServiceTypes () -
    -
    returns (TQStringList)

  • -
  • allInitServices () -
    - -
    returns (KService.List)
    static

  • -
  • allServices () -
    - -
    returns (KService.List)
    static

  • -
  • allowAsDefault () -
    -
    returns (bool)

  • -
  • allowMultipleFiles () -
    -
    returns (bool)

  • -
  • categories () -
    - -
    returns (TQStringList)
    In versions KDE 3.1.0 and above only

  • -
  • comment () -
    -
    returns (TQString)

  • -
  • desktopEntryName () -
    -
    returns (TQString)

  • -
  • desktopEntryPath () -
    -
    returns (TQString)

  • -
  • exec_ () -
    - -
    returns (TQString)
    Renamed: was ' exec -' in C++

  • -
  • genericName () -
    -
    returns (TQString)

  • -
  • hasServiceType (_service) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    _serviceTQString
    -

  • -
  • icon () -
    -
    returns (TQString)

  • -
  • init () -
    -
    returns (TQString)

  • -
  • init (config) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    configKDesktopFile
    -

  • -
  • initialPreference () -
    -
    returns (int)

  • -
  • initialPreferenceForMimeType (mimeType) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    mimeTypeTQString
    -

  • -
  • isValid () -
    -
    returns (bool)

  • -
  • keywords () -
    -
    returns (TQStringList)

  • -
  • library () -
    -
    returns (TQString)

  • -
  • load (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDataStream
    -

  • -
  • locateLocal () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • menuId () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • name () -
    -
    returns (TQString)

  • -
  • newServicePath (showInMenu, suggestedName, menuId = 0, reservedMenuIds = 0) -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    showInMenubool
    suggestedNameTQString
    menuIdTQString0
    reservedMenuIdsTQStringList0
    -

  • -
  • noDisplay () -
    -
    returns (bool)

  • -
  • parentApp () -
    - -
    returns (TQString)
    In versions KDE 3.1.0 and above only

  • -
  • path () -
    -
    returns (TQString)

  • -
  • pixmap (_group, _force_size = 0, _state = 0, _path = 0) -
    -
    returns (TQPixmap)
    - - - - -
    ArgumentTypeDefault
    _groupKIcon.Group
    _force_sizeint0
    _stateint0
    _pathTQString0
    -

  • -
  • property (_name) -
    -
    returns (TQVariant)
    - -
    ArgumentTypeDefault
    _nameTQString
    -

  • -
  • property (_name, t) -
    - -
    returns (TQVariant)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    _nameTQString
    tTQVariant.Type
    -

  • -
  • propertyNames () -
    -
    returns (TQStringList)

  • -
  • rebuildKSycoca (parent) -
    - - -
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    parentTQWidget
    -

  • -
  • save (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDataStream
    -

  • -
  • serviceByDesktopName (_name) -
    - -
    returns (KService.Ptr)
    static
    - -
    ArgumentTypeDefault
    _nameTQString
    -

  • -
  • serviceByDesktopPath (_path) -
    - -
    returns (KService.Ptr)
    static
    - -
    ArgumentTypeDefault
    _pathTQString
    -

  • -
  • serviceByMenuId (_menuId) -
    - - -
    returns (KService.Ptr)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    _menuIdTQString
    -

  • -
  • serviceByName (_name) -
    - -
    returns (KService.Ptr)
    static
    - -
    ArgumentTypeDefault
    _nameTQString
    -

  • -
  • serviceByStorageId (_storageId) -
    - - -
    returns (KService.Ptr)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    _storageIdTQString
    -

  • -
  • serviceTypes () -
    -
    returns (TQStringList)

  • -
  • setInitialPreference (i) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    iint
    -

  • -
  • setMenuId (menuId) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    menuIdTQString
    -

  • -
  • 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
    optionsTQString
    -

  • -
  • storageId () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • substituteUid () -
    -
    returns (bool)

  • -
  • terminal () -
    -
    returns (bool)

  • -
  • terminalOptions () -
    -
    returns (TQString)

  • -
  • type () -
    -
    returns (TQString)

  • -
  • untranslatedGenericName () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • username () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KServiceGroup.html b/python/pykde/doc/classref/kio/KServiceGroup.html deleted file mode 100644 index 9a0e6606..00000000 --- a/python/pykde/doc/classref/kio/KServiceGroup.html +++ /dev/null @@ -1,240 +0,0 @@ - - - - - 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
    nameTQString
    -

  • -
  • KServiceGroup (_fullpath, _relpath) -
    -
    returns a KServiceGroup instance
    - - -
    ArgumentTypeDefault
    _fullpathTQString
    _relpathTQString
    -

  • -
  • KServiceGroup (_str, offset, deep) -
    -
    returns a KServiceGroup instance
    - - - -
    ArgumentTypeDefault
    _strTQDataStream
    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
    baseGroupNameTQString
    -

  • -
  • baseGroupName () -
    -
    returns (TQString)

  • -
  • caption () -
    -
    returns (TQString)

  • -
  • childCount () -
    -
    returns (int)

  • -
  • childGroup (parent) -
    - - -
    returns (KServiceGroup.Ptr)
    In versions KDE 3.1.0 and above only
    static
    - -
    ArgumentTypeDefault
    parentTQString
    -

  • -
  • comment () -
    -
    returns (TQString)

  • -
  • directoryEntryPath () -
    - -
    returns (TQString)
    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
    relPathTQString
    -

  • -
  • icon () -
    -
    returns (TQString)

  • -
  • 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 (TQStringList)
    In versions KDE 3.3.0 and above only

  • -
  • load (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDataStream
    -

  • -
  • name () -
    -
    returns (TQString)

  • -
  • 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
    itemTQString
    -

  • -
  • relPath () -
    -
    returns (TQString)

  • -
  • root () -
    - -
    returns (KServiceGroup.Ptr)
    static

  • -
  • save (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDataStream
    -

  • -
  • 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
    layoutTQStringList
    -

  • -
  • 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 (TQStringList)
    In versions KDE 3.2.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KServiceOffer.html b/python/pykde/doc/classref/kio/KServiceOffer.html deleted file mode 100644 index 630baa15..00000000 --- a/python/pykde/doc/classref/kio/KServiceOffer.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kio/KServiceSeparator.html b/python/pykde/doc/classref/kio/KServiceSeparator.html deleted file mode 100644 index 02d8d22e..00000000 --- a/python/pykde/doc/classref/kio/KServiceSeparator.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - 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
    a0TQDataStream
    -

  • -
  • name () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • save (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQDataStream
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KServiceType.html b/python/pykde/doc/classref/kio/KServiceType.html deleted file mode 100644 index 873e24e6..00000000 --- a/python/pykde/doc/classref/kio/KServiceType.html +++ /dev/null @@ -1,169 +0,0 @@ - - - - - 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
    _fullpathTQString
    _nameTQString
    _iconTQString
    _commentTQString
    -

  • -
  • KServiceType (_fullpath) -
    -
    returns a KServiceType instance
    - -
    ArgumentTypeDefault
    _fullpathTQString
    -

  • -
  • KServiceType (config) -
    -
    returns a KServiceType instance
    - -
    ArgumentTypeDefault
    configKDesktopFile
    -

  • -
  • KServiceType (_str, offset) -
    -
    returns a KServiceType instance
    - - -
    ArgumentTypeDefault
    _strTQDataStream
    offsetint
    -

  • -
  • addService (service) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    serviceKService.Ptr
    -

  • -
  • allServiceTypes () -
    - -
    returns (KServiceType.List)
    static

  • -
  • comment () -
    -
    returns (TQString)

  • -
  • desktopEntryPath () -
    -
    returns (TQString)

  • -
  • icon () -
    -
    returns (TQString)

  • -
  • inherits (servTypeName) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    servTypeNameTQString
    -

  • -
  • init (config) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    configKDesktopFile
    -

  • -
  • isDerived () -
    -
    returns (bool)

  • -
  • isValid () -
    -
    returns (bool)

  • -
  • load (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDataStream
    -

  • -
  • name () -
    -
    returns (TQString)

  • -
  • offers (_servicetype) -
    - -
    returns (KService.List)
    static
    - -
    ArgumentTypeDefault
    _servicetypeTQString
    -

  • -
  • parentServiceType () -
    -
    returns (TQString)

  • -
  • parentType () -
    - -
    returns (KServiceType.Ptr)
    In versions KDE 3.2.0 and above only

  • -
  • property (_name) -
    -
    returns (TQVariant)
    - -
    ArgumentTypeDefault
    _nameTQString
    -

  • -
  • propertyDef (_name) -
    -
    returns (TQVariant.Type)
    - -
    ArgumentTypeDefault
    _nameTQString
    -

  • -
  • propertyDefNames () -
    -
    returns (TQStringList)

  • -
  • propertyDefs () -
    -
    returns (TQMap)

  • -
  • propertyNames () -
    -
    returns (TQStringList)

  • -
  • save (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQDataStream
    -

  • -
  • serviceType (_name) -
    - -
    returns (KServiceType.Ptr)
    static
    - -
    ArgumentTypeDefault
    _nameTQString
    -

  • -
  • services () -
    - -
    returns (KService.List)
    In versions KDE 3.2.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KServiceTypeProfile.html b/python/pykde/doc/classref/kio/KServiceTypeProfile.html deleted file mode 100644 index 326f066a..00000000 --- a/python/pykde/doc/classref/kio/KServiceTypeProfile.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - class KServiceTypeProfile - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KServiceTypeProfile


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKServiceTypeProfile
Inherits
-

methods

    -
  • KServiceTypeProfile (serviceType, genericServiceType = TQString .null) -
    -
    returns a KServiceTypeProfile instance
    - - -
    ArgumentTypeDefault
    serviceTypeTQString
    genericServiceTypeTQStringTQString .null
    -

  • -
  • addService (_service, _preference = 1, _allow_as_default = 1) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    _serviceTQString
    _preferenceint1
    _allow_as_defaultbool1
    -

  • -
  • allowAsDefault (_service) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    _serviceTQString
    -

  • -
  • clear () -
    - -
    returns nothing
    static

  • -
  • configurationMode () -
    - -
    returns (bool)
    static

  • -
  • offers () -
    -
    returns (KServiceTypeProfile.OfferList)

  • -
  • offers (servicetype, genericServiceType) -
    - -
    returns (KServiceTypeProfile.OfferList)
    static
    - - -
    ArgumentTypeDefault
    servicetypeTQString
    genericServiceTypeTQString
    -

  • -
  • preference (_service) -
    -
    returns (int)
    - -
    ArgumentTypeDefault
    _serviceTQString
    -

  • -
  • preferredService (serviceType, genericServiceType) -
    - -
    returns (KService.Ptr)
    static
    - - -
    ArgumentTypeDefault
    serviceTypeTQString
    genericServiceTypeTQString
    -

  • -
  • serviceTypeProfile (servicetype, genericServiceType) -
    - -
    returns (KServiceTypeProfile)
    static
    - - -
    ArgumentTypeDefault
    servicetypeTQString
    genericServiceTypeTQString
    -

  • -
  • serviceTypeProfiles () -
    - -
    returns (TQPtrList)
    static

  • -
  • setConfigurationMode () -
    - -
    returns nothing
    static

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KShellCompletion.html b/python/pykde/doc/classref/kio/KShellCompletion.html deleted file mode 100644 index 7942c431..00000000 --- a/python/pykde/doc/classref/kio/KShellCompletion.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - 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 (TQString)
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • postProcessMatch (match) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    matchTQString
    -

  • -
  • postProcessMatches (matches) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    matchesTQStringList
    -

  • -
  • postProcessMatches (matches) -
    Not Implemented
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KShred.html b/python/pykde/doc/classref/kio/KShred.html deleted file mode 100644 index 89ec86f0..00000000 --- a/python/pykde/doc/classref/kio/KShred.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - class KShred - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KShred


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKShred
InheritsTQObject
-

methods

    -
  • KShred (fileName) -
    -
    returns a KShred instance
    - -
    ArgumentTypeDefault
    fileNameTQString
    -

  • -
  • 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
    messageTQString
    -

  • -
  • processedSize (bytes) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    bytesKIO.filesize_t
    -

  • -
  • shred () -
    -
    returns (bool)

  • -
  • shred (fileName) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    fileNameTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KSimpleFileFilter.html b/python/pykde/doc/classref/kio/KSimpleFileFilter.html deleted file mode 100644 index 9069fa65..00000000 --- a/python/pykde/doc/classref/kio/KSimpleFileFilter.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - 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 (TQStringList)

  • -
  • 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
    mimeFiltersTQStringList
    -

  • -
  • setModeFilter (mode) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    modemode_t
    -

  • -
  • setNameFilters (nameFilters, caseSensitive, separator = ' ') -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - - - -
    ArgumentTypeDefault
    nameFiltersTQString
    caseSensitivebool
    separatorTQChar' '
    -

  • -
  • setNameFilters (nameFilters) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    nameFiltersTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KSycoca.html b/python/pykde/doc/classref/kio/KSycoca.html deleted file mode 100644 index 3fb5806d..00000000 --- a/python/pykde/doc/classref/kio/KSycoca.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - class KSycoca - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KSycoca


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKSycoca
InheritsTQObject, DCOPObject
-

methods

    -
  • KSycoca (a0) -
    -
    returns a KSycoca instance
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • KSycoca () -
    -
    returns a KSycoca instance

  • -
  • addFactory (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KSycocaFactory
    -

  • -
  • allResourceDirs () -
    - -
    returns (TQStringList)
    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 (TQString)
    static
    - - -
    ArgumentTypeDefault
    _fullpathTQString
    _resourcechar
    -

  • -
  • disableAutoRebuild () -
    - -
    returns nothing
    In versions KDE 3.1.2 and above only

  • -
  • findEntry (offset) -
    -
    returns (TQDataStream) type (KSycocaType)
    - -
    ArgumentTypeDefault
    offsetint
    -

  • -
  • findFactory (id) -
    -
    returns (TQDataStream)
    - -
    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 (TQString)

  • -
  • language () -
    -
    returns (TQString)

  • -
  • notifyDatabaseChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQStringList
    -

  • -
  • openDatabase (openDummyIfNotFound = 1) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    openDummyIfNotFoundbool1
    -

  • -
  • process (fun, data, replyType, replyData) -
    - -
    returns (bool)
    In versions KDE 3.1.4 and above only
    - - - - -
    ArgumentTypeDefault
    funTQCString
    dataTQByteArray
    replyTypeTQCString
    replyDataTQByteArray
    -

  • -
  • 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/python/pykde/doc/classref/kio/KSycocaDict.html b/python/pykde/doc/classref/kio/KSycocaDict.html deleted file mode 100644 index a310177e..00000000 --- a/python/pykde/doc/classref/kio/KSycocaDict.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - 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
    strTQDataStream
    offsetint
    -

  • -
  • add (key, payload) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    keyTQString
    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
    keyTQString
    -

  • -
  • hashKey (a0) -
    - -
    returns (Q_UINT32)
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • remove (key) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • save (str) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    strTQDataStream
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KSycocaEntry.html b/python/pykde/doc/classref/kio/KSycocaEntry.html deleted file mode 100644 index e454cea7..00000000 --- a/python/pykde/doc/classref/kio/KSycocaEntry.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - 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
    pathTQString
    -

  • -
  • KSycocaEntry (_str, offset) -
    -
    returns a KSycocaEntry instance
    - - -
    ArgumentTypeDefault
    _strTQDataStream
    offsetint
    -

  • -
  • entryPath () -
    -
    returns (TQString)

  • -
  • isDeleted () -
    -
    returns (bool)

  • -
  • isType (t) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    tKSycocaType
    -

  • -
  • isValid () = 0 -
    - -
    returns (bool)
    pure virtual

  • -
  • load (a0) = 0 -
    - -
    returns nothing
    pure virtual
    - -
    ArgumentTypeDefault
    a0TQDataStream
    -

  • -
  • name () = 0 -
    - -
    returns (TQString)
    pure virtual

  • -
  • offset () -
    -
    returns (int)

  • -
  • read (s, str) -
    - - -
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    - - -
    ArgumentTypeDefault
    sTQDataStream
    strTQString
    -

  • -
  • read (s, list) -
    - - -
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    - - -
    ArgumentTypeDefault
    sTQDataStream
    listTQStringList
    -

  • -
  • save (s) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    sTQDataStream
    -

  • -
  • sycocaType () -
    -
    returns (KSycocaType)

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KSycocaFactory.html b/python/pykde/doc/classref/kio/KSycocaFactory.html deleted file mode 100644 index e1dc5a0c..00000000 --- a/python/pykde/doc/classref/kio/KSycocaFactory.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - 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
    fileTQString
    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
    strTQDataStream
    -

  • -
  • saveHeader (str) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    strTQDataStream
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KTar.html b/python/pykde/doc/classref/kio/KTar.html deleted file mode 100644 index 682d7c8b..00000000 --- a/python/pykde/doc/classref/kio/KTar.html +++ /dev/null @@ -1,177 +0,0 @@ - - - - - class KTar - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KTar


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKTar
InheritsKArchive
-

methods

    -
  • KTar (filename, mimetype = TQString .null) -
    -
    returns a KTar instance
    - - -
    ArgumentTypeDefault
    filenameTQString
    mimetypeTQStringTQString .null
    -

  • -
  • KTar (dev) -
    -
    returns a KTar instance
    - -
    ArgumentTypeDefault
    devTQIODevice
    -

  • -
  • closeArchive () -
    -
    returns (bool)

  • -
  • doneWriting (size) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    sizeuint
    -

  • -
  • fileName () -
    -
    returns (TQString)

  • -
  • openArchive (mode) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    modeint
    -

  • -
  • prepareWriting (name, user, group, size) -
    -
    returns (bool)
    - - - - -
    ArgumentTypeDefault
    nameTQString
    userTQString
    groupTQString
    sizeuint
    -

  • -
  • prepareWriting (name, user, group, size, perm, atime, mtime, ctime) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - - - - - - - -
    ArgumentTypeDefault
    nameTQString
    userTQString
    groupTQString
    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
    nameTQString
    userTQString
    groupTQString
    sizeuint
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    -

  • -
  • setOrigFileName (fileName) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    fileNameTQCString
    -

  • -
  • writeDir (name, user, group) -
    -
    returns (bool)
    - - - -
    ArgumentTypeDefault
    nameTQString
    userTQString
    groupTQString
    -

  • -
  • writeDir (name, user, group, perm, atime, mtime, ctime) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - - - - - - -
    ArgumentTypeDefault
    nameTQString
    userTQString
    groupTQString
    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
    nameTQString
    userTQString
    groupTQString
    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
    nameTQString
    targetTQString
    userTQString
    groupTQString
    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
    nameTQString
    targetTQString
    userTQString
    groupTQString
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KTrader.html b/python/pykde/doc/classref/kio/KTrader.html deleted file mode 100644 index e6e73571..00000000 --- a/python/pykde/doc/classref/kio/KTrader.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - class KTrader - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KTrader


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKTrader
InheritsTQObject
-

methods

    -
  • KTrader () -
    -
    returns a KTrader instance

  • -
  • query (servicetype, constraint = TQString .null, preferences = TQString .null) -
    -
    returns (KTrader.OfferList)
    - - - -
    ArgumentTypeDefault
    servicetypeTQString
    constraintTQStringTQString .null
    preferencesTQStringTQString .null
    -

  • -
  • query (servicetype, genericServiceType, constraint, preferences) -
    -
    returns (KTrader.OfferList)
    - - - - -
    ArgumentTypeDefault
    servicetypeTQString
    genericServiceTypeTQString
    constraintTQString
    preferencesTQString
    -

  • -
  • self () -
    - -
    returns (KTrader)
    static

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KURIFilter.html b/python/pykde/doc/classref/kio/KURIFilter.html deleted file mode 100644 index fbfbc180..00000000 --- a/python/pykde/doc/classref/kio/KURIFilter.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - 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 = TQStringList ()) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    dataKURIFilterData
    filtersTQStringListTQStringList ()
    -

  • -
  • filterURI (uri, filters = TQStringList ()) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    uriKURL
    filtersTQStringListTQStringList ()
    -

  • -
  • filterURI (uri, filters = TQStringList ()) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    uriTQString
    filtersTQStringListTQStringList ()
    -

  • -
  • filteredURI (uri, filters = TQStringList ()) -
    -
    returns (KURL)
    - - -
    ArgumentTypeDefault
    uriKURL
    filtersTQStringListTQStringList ()
    -

  • -
  • filteredURI (uri, filters = TQStringList ()) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    uriTQString
    filtersTQStringListTQStringList ()
    -

  • -
  • loadPlugins () -
    -
    returns nothing

  • -
  • pluginNames () -
    - -
    returns (TQStringList)
    In versions KDE 3.1.0 and above only

  • -
  • pluginsIterator () -
    Not Implemented
    -

  • -
  • self () -
    - -
    returns (KURIFilter)
    static

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KURIFilterData.html b/python/pykde/doc/classref/kio/KURIFilterData.html deleted file mode 100644 index b17ec83b..00000000 --- a/python/pykde/doc/classref/kio/KURIFilterData.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - 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
    urlTQString
    -

  • -
  • KURIFilterData (data) -
    -
    returns a KURIFilterData instance
    - -
    ArgumentTypeDefault
    dataKURIFilterData
    -

  • -
  • absolutePath () -
    -
    returns (TQString)

  • -
  • argsAndOptions () -
    -
    returns (TQString)

  • -
  • checkForExecutables () -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only

  • -
  • errorMsg () -
    -
    returns (TQString)

  • -
  • hasAbsolutePath () -
    -
    returns (bool)

  • -
  • hasArgsAndOptions () -
    -
    returns (bool)

  • -
  • hasBeenFiltered () -
    -
    returns (bool)

  • -
  • iconName () -
    -
    returns (TQString)

  • -
  • init (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • init (url = KURL(TQString.null)) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlKURLKURL(TQString.null)
    -

  • -
  • setAbsolutePath (abs_path) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    abs_pathTQString
    -

  • -
  • setCheckForExecutables (check) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    checkbool
    -

  • -
  • setData (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • setData (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • typedString () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • uri () -
    -
    returns (KURL)

  • -
  • uriType () -
    -
    returns (URITypes)

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KURIFilterPlugin.html b/python/pykde/doc/classref/kio/KURIFilterPlugin.html deleted file mode 100644 index d8516ad3..00000000 --- a/python/pykde/doc/classref/kio/KURIFilterPlugin.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - - class KURIFilterPlugin - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KURIFilterPlugin


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassKURIFilterPlugin (abstract)
InheritsTQObject
-

methods

    -
  • KURIFilterPlugin (parent = 0, name = 0, pri = 1.0) -
    -
    returns a KURIFilterPlugin instance
    - - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    pridouble1.0
    -

  • -
  • configModule (a0, a1) -
    -
    returns (KCModule)
    - - -
    ArgumentTypeDefault
    a0TQWidget
    a1char
    -

  • -
  • configName () -
    -
    returns (TQString)

  • -
  • filterURI (data) = 0 -
    - -
    returns (bool)
    pure virtual
    - -
    ArgumentTypeDefault
    dataKURIFilterData
    -

  • -
  • name () -
    -
    returns (TQString)

  • -
  • priority () -
    -
    returns (double)

  • -
  • setArguments (data, args) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    dataKURIFilterData
    argsTQString
    -

  • -
  • setErrorMsg (data, errmsg) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    dataKURIFilterData
    errmsgTQString
    -

  • -
  • setFilteredURI (data, uri) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    dataKURIFilterData
    uriKURL
    -

  • -
  • setURIType (data, type) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    dataKURIFilterData
    typeKURIFilterData.URITypes
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KURLCompletion.html b/python/pykde/doc/classref/kio/KURLCompletion.html deleted file mode 100644 index 948d33af..00000000 --- a/python/pykde/doc/classref/kio/KURLCompletion.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - 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
    eTQCustomEvent
    -

  • -
  • dir () -
    -
    returns (TQString)

  • -
  • isRunning () -
    -
    returns (bool)

  • -
  • makeCompletion (text) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • mode () -
    -
    returns (Mode)

  • -
  • postProcessMatch (match) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    matchTQString
    -

  • -
  • postProcessMatches (matches) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    matchesTQStringList
    -

  • -
  • postProcessMatches (matches) -
    Not Implemented
    -

  • -
  • replaceEnv () -
    -
    returns (bool)

  • -
  • replaceHome () -
    -
    returns (bool)

  • -
  • replacedPath (text) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • replacedPath (text, replaceHome, replaceEnv = 1) -
    - - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    textTQString
    replaceHomebool
    replaceEnvbool1
    -

  • -
  • setDir (dir) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    dirTQString
    -

  • -
  • 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/python/pykde/doc/classref/kio/KURLPixmapProvider.html b/python/pykde/doc/classref/kio/KURLPixmapProvider.html deleted file mode 100644 index 85443910..00000000 --- a/python/pykde/doc/classref/kio/KURLPixmapProvider.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - 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 (TQPixmap)
    - - -
    ArgumentTypeDefault
    urlTQString
    sizeint0
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KZip.html b/python/pykde/doc/classref/kio/KZip.html deleted file mode 100644 index 5105abbf..00000000 --- a/python/pykde/doc/classref/kio/KZip.html +++ /dev/null @@ -1,228 +0,0 @@ - - - - - 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
    filenameTQString
    -

  • -
  • KZip (dev) -
    - -
    returns a KZip instance
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    devTQIODevice
    -

  • -
  • 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 (TQString)
    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
    nameTQString
    userTQString
    groupTQString
    sizeuint
    -

  • -
  • prepareWriting (name, user, group, size, perm, atime, mtime, ctime) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - - - - - - - -
    ArgumentTypeDefault
    nameTQString
    userTQString
    groupTQString
    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
    nameTQString
    userTQString
    groupTQString
    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
    nameTQString
    userTQString
    groupTQString
    -

  • -
  • writeFile (name, user, group, size, data) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - - - - - -
    ArgumentTypeDefault
    nameTQString
    userTQString
    groupTQString
    sizeuint
    datachar
    -

  • -
  • writeFile (name, user, group, size, perm, atime, mtime, ctime, data) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - - - - - - - - -
    ArgumentTypeDefault
    nameTQString
    userTQString
    groupTQString
    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
    nameTQString
    targetTQString
    userTQString
    groupTQString
    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
    nameTQString
    targetTQString
    userTQString
    groupTQString
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/KZipFileEntry.html b/python/pykde/doc/classref/kio/KZipFileEntry.html deleted file mode 100644 index 642e9c2f..00000000 --- a/python/pykde/doc/classref/kio/KZipFileEntry.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - - 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
    nameTQString
    accessint
    dateint
    userTQString
    groupTQString
    symlinkTQString
    pathTQString
    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 (TQByteArray)
    In versions KDE 3.1.0 and above only

  • -
  • device () -
    - -
    returns (TQIODevice)
    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 (TQString)
    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/python/pykde/doc/classref/kio/Observer.html b/python/pykde/doc/classref/kio/Observer.html deleted file mode 100644 index 534aa137..00000000 --- a/python/pykde/doc/classref/kio/Observer.html +++ /dev/null @@ -1,289 +0,0 @@ - - - - - class Observer - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class Observer


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassObserver
InheritsTQObject, 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
    textTQString
    captionTQString
    buttonYesTQString
    buttonNoTQString
    -

  • -
  • messageBox (progressId, type, text, caption, buttonYes, buttonNo, dontAskAgainName) -
    - - -
    returns (int)
    In versions KDE 3.3.0 and above only
    static
    - - - - - - - -
    ArgumentTypeDefault
    progressIdint
    typeint
    textTQString
    captionTQString
    buttonYesTQString
    buttonNoTQString
    dontAskAgainNameTQString
    -

  • -
  • metadata (progressId) -
    -
    returns (KIO.MetaData)
    - -
    ArgumentTypeDefault
    progressIdint
    -

  • -
  • mounting (a0, dev, point) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    a0KIO.Job
    devTQString
    pointTQString
    -

  • -
  • newJob (job, showProgress) -
    -
    returns (int)
    - - -
    ArgumentTypeDefault
    jobKIO.Job
    showProgressbool
    -

  • -
  • openPassDlg (prompt, user, pass, readOnly) -
    -
    returns (bool)
    - - - - -
    ArgumentTypeDefault
    promptTQString
    userTQString
    passTQString
    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
    captionTQString
    srcTQString
    destTQString
    modeKIO.RenameDlg_Mode
    newDestTQString
    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_textTQString
    -

  • -
  • process (fun, data, replyType, replyData) -
    - -
    returns (bool)
    In versions KDE 3.1.4 and above only
    - - - - -
    ArgumentTypeDefault
    funTQCString
    dataTQByteArray
    replyTypeTQCString
    replyDataTQByteArray
    -

  • -
  • 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
    msgTQString
    -

  • -
  • 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
    pointTQString
    -

  • -
  • ~Observer () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kio/RenameDlgPlugin.html b/python/pykde/doc/classref/kio/RenameDlgPlugin.html deleted file mode 100644 index 53857d9b..00000000 --- a/python/pykde/doc/classref/kio/RenameDlgPlugin.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - class RenameDlgPlugin - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class RenameDlgPlugin


-
- - - - - -
Table of contents
Modules
kio Classes
All Classes
-
- - - - - - - - - - -
Modulekio
ClassRenameDlgPlugin
InheritsTQWidget
-

methods

    -
  • RenameDlgPlugin (dialog, name, a0 = TQStringList ()) -
    -
    returns a RenameDlgPlugin instance
    - - - -
    ArgumentTypeDefault
    dialogTQDialog
    namechar
    a0TQStringListTQStringList ()
    -

  • -
  • initialize (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) -
    -
    returns (bool)
    - - - - - - - - - - - -
    ArgumentTypeDefault
    a0KIO.RenameDlg_Mode
    a1TQString
    a2TQString
    a3TQString
    a4TQString
    a5KIO.filesize_t
    a6KIO.filesize_t
    a7time_t
    a8time_t
    a9time_t
    a10time_t
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kio/ThumbCreator.html b/python/pykde/doc/classref/kio/ThumbCreator.html deleted file mode 100644 index 21481c51..00000000 --- a/python/pykde/doc/classref/kio/ThumbCreator.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - 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
    pathTQString
    widthint
    heightint
    imgTQImage
    -

  • -
  • flags () -
    -
    returns (ThumbCreator.Flags)

  • -
- - - diff --git a/python/pykde/doc/classref/kio/index.html b/python/pykde/doc/classref/kio/index.html deleted file mode 100644 index e573f530..00000000 --- a/python/pykde/doc/classref/kio/index.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kio/kio-globals.html b/python/pykde/doc/classref/kio/kio-globals.html deleted file mode 100644 index 3c245a51..00000000 --- a/python/pykde/doc/classref/kio/kio-globals.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kmdi/KMdi.html b/python/pykde/doc/classref/kmdi/KMdi.html deleted file mode 100644 index 45f32a12..00000000 --- a/python/pykde/doc/classref/kmdi/KMdi.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kmdi/KMdiChildArea.html b/python/pykde/doc/classref/kmdi/KMdiChildArea.html deleted file mode 100644 index 793a911f..00000000 --- a/python/pykde/doc/classref/kmdi/KMdiChildArea.html +++ /dev/null @@ -1,214 +0,0 @@ - - - - - class KMdiChildArea - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMdiChildArea


-
- - - - - -
Table of contents
Modules
kmdi Classes
All Classes
-
- - - - - - - - - - -
Modulekmdi
ClassKMdiChildArea
InheritsTQFrame
-

methods

    -
  • KMdiChildArea (parent) -
    -
    returns a KMdiChildArea instance
    - -
    ArgumentTypeDefault
    parentTQWidget
    -

  • -
  • 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
    palTQPalette
    activeBGTQColor
    activeFGTQColor
    inactiveBGTQColor
    inactiveFGTQColor
    -

  • -
  • getCascadePoint (indexOfWindow = -1) -
    -
    returns (TQPoint)
    - -
    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
    eTQMouseEvent
    -

  • -
  • noMaximizedChildFrmLeft (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KMdiChildFrm
    -

  • -
  • nowMaximized (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • popupWindowMenu (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQPoint
    -

  • -
  • resizeEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • setMdiCaptionActiveBackColor (clr) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    clrTQColor
    -

  • -
  • setMdiCaptionActiveForeColor (clr) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    clrTQColor
    -

  • -
  • setMdiCaptionFont (fnt) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    fntTQFont
    -

  • -
  • setMdiCaptionInactiveBackColor (clr) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    clrTQColor
    -

  • -
  • setMdiCaptionInactiveForeColor (clr) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    clrTQColor
    -

  • -
  • 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_defaultChildFrmSizeTQSize
    m_pZTQPtrList*
- - - diff --git a/python/pykde/doc/classref/kmdi/KMdiChildFrm.html b/python/pykde/doc/classref/kmdi/KMdiChildFrm.html deleted file mode 100644 index bbfb7d57..00000000 --- a/python/pykde/doc/classref/kmdi/KMdiChildFrm.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - class KMdiChildFrm - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMdiChildFrm


-
- - - - - -
Table of contents
Modules
kmdi Classes
All Classes
-
- - - - - - - - - - -
Modulekmdi
ClassKMdiChildFrm
InheritsTQFrame
-

enums

    -
  • MdiWindowState = {Normal, Maximized, Minimized -}
-

methods

    -
  • KMdiChildFrm (parent) -
    -
    returns a KMdiChildFrm instance
    - -
    ArgumentTypeDefault
    parentKMdiChildArea
    -

  • -
  • caption () -
    -
    returns (TQString)

  • -
  • 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
    a0TQObject
    a1TQEvent
    -

  • -
  • getResizeCorner (ax, ay) -
    -
    returns (int)
    - - -
    ArgumentTypeDefault
    axint
    ayint
    -

  • -
  • icon () -
    -
    returns (TQPixmap)

  • -
  • isInDrag () -
    -
    returns (bool)

  • -
  • isInResize () -
    -
    returns (bool)

  • -
  • leaveEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQEvent
    -

  • -
  • linkChildren (pFocPolDict) -
    Not Implemented
    -

  • -
  • linkChildren (a0) -
    - -
    returns nothing
    In versions less than KDE 3.2.2 only
    - -
    ArgumentTypeDefault
    a0TQDict
    -

  • -
  • maximizePressed () -
    -
    returns nothing

  • -
  • mdiAreaContentsRect () -
    -
    returns (TQRect)

  • -
  • minimizePressed () -
    -
    returns nothing

  • -
  • mouseMoveEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • mousePressEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • mouseReleaseEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • moveEvent (me) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    meTQMoveEvent
    -

  • -
  • raiseAndActivate () -
    -
    returns nothing

  • -
  • redecorateButtons () -
    -
    returns nothing

  • -
  • resizeEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • resizeWindow (resizeCorner, x, y) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    resizeCornerint
    xint
    yint
    -

  • -
  • restoreGeometry () -
    -
    returns (TQRect)

  • -
  • restorePressed () -
    -
    returns nothing

  • -
  • setCaption (text) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • setClient (w, bAutomaticResize = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    wKMdiChildView
    bAutomaticResizebool0
    -

  • -
  • setIcon (pxm) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pxmTQPixmap
    -

  • -
  • setMinimumSize (minw, minh) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    minwint
    minhint
    -

  • -
  • setResizeCursor (resizeCorner) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    resizeCornerint
    -

  • -
  • setRestoreGeometry (newRestGeo) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    newRestGeoTQRect
    -

  • -
  • 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 (TQPopupMenu)

  • -
  • undockPressed () -
    -
    returns nothing

  • -
  • unlinkChildren () -
    -
    returns (TQDict)

  • -
  • unsetClient (positionOffset = TQPoint (0 ,0 )) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    positionOffsetTQPointTQPoint (0 ,0 )
    -

  • -
  • unsetResizeCursor () -
    -
    returns nothing

  • -
  • updateRects () -
    -
    returns nothing

  • -
-

variables

  • -variables - -
    VariableType
    m_pClientKMdiChildView*
- - - diff --git a/python/pykde/doc/classref/kmdi/KMdiChildFrmCaption.html b/python/pykde/doc/classref/kmdi/KMdiChildFrmCaption.html deleted file mode 100644 index 84a055e6..00000000 --- a/python/pykde/doc/classref/kmdi/KMdiChildFrmCaption.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - class KMdiChildFrmCaption - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMdiChildFrmCaption


-
- - - - - -
Table of contents
Modules
kmdi Classes
All Classes
-
- - - - - - - - - - -
Modulekmdi
ClassKMdiChildFrmCaption
InheritsTQWidget
-

methods

    -
  • KMdiChildFrmCaption (parent) -
    -
    returns a KMdiChildFrmCaption instance
    - -
    ArgumentTypeDefault
    parentKMdiChildFrm
    -

  • -
  • abbreviateText (origStr, maxWidth) -
    -
    returns (TQString)
    - - -
    ArgumentTypeDefault
    origStrTQString
    maxWidthint
    -

  • -
  • heightHint () -
    -
    returns (int)

  • -
  • mouseDoubleClickEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • mouseMoveEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
  • mousePressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • mouseReleaseEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • paintEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQPaintEvent
    -

  • -
  • setActive (bActive) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    bActivebool
    -

  • -
  • setCaption (text) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • slot_moveViaSystemMenu () -
    -
    returns nothing

  • -
-

variables

  • -variables - -
    VariableType
    m_szCaptionTQString
- - - diff --git a/python/pykde/doc/classref/kmdi/KMdiChildFrmDragBeginEvent.html b/python/pykde/doc/classref/kmdi/KMdiChildFrmDragBeginEvent.html deleted file mode 100644 index c70524b0..00000000 --- a/python/pykde/doc/classref/kmdi/KMdiChildFrmDragBeginEvent.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - class KMdiChildFrmDragBeginEvent - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMdiChildFrmDragBeginEvent


-
- - - - - -
Table of contents
Modules
kmdi Classes
All Classes
-
- - - - - - - - - - -
Modulekmdi
ClassKMdiChildFrmDragBeginEvent
InheritsTQCustomEvent
-

methods

    -
  • KMdiChildFrmDragBeginEvent (e) -
    -
    returns a KMdiChildFrmDragBeginEvent instance
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kmdi/KMdiChildFrmDragEndEvent.html b/python/pykde/doc/classref/kmdi/KMdiChildFrmDragEndEvent.html deleted file mode 100644 index d3129952..00000000 --- a/python/pykde/doc/classref/kmdi/KMdiChildFrmDragEndEvent.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - class KMdiChildFrmDragEndEvent - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMdiChildFrmDragEndEvent


-
- - - - - -
Table of contents
Modules
kmdi Classes
All Classes
-
- - - - - - - - - - -
Modulekmdi
ClassKMdiChildFrmDragEndEvent
InheritsTQCustomEvent
-

methods

    -
  • KMdiChildFrmDragEndEvent (e) -
    -
    returns a KMdiChildFrmDragEndEvent instance
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kmdi/KMdiChildFrmMoveEvent.html b/python/pykde/doc/classref/kmdi/KMdiChildFrmMoveEvent.html deleted file mode 100644 index b3ef9327..00000000 --- a/python/pykde/doc/classref/kmdi/KMdiChildFrmMoveEvent.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - class KMdiChildFrmMoveEvent - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMdiChildFrmMoveEvent


-
- - - - - -
Table of contents
Modules
kmdi Classes
All Classes
-
- - - - - - - - - - -
Modulekmdi
ClassKMdiChildFrmMoveEvent
InheritsTQCustomEvent
-

methods

    -
  • KMdiChildFrmMoveEvent (e) -
    -
    returns a KMdiChildFrmMoveEvent instance
    - -
    ArgumentTypeDefault
    eTQMoveEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kmdi/KMdiChildFrmResizeBeginEvent.html b/python/pykde/doc/classref/kmdi/KMdiChildFrmResizeBeginEvent.html deleted file mode 100644 index f2bcc381..00000000 --- a/python/pykde/doc/classref/kmdi/KMdiChildFrmResizeBeginEvent.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - class KMdiChildFrmResizeBeginEvent - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMdiChildFrmResizeBeginEvent


-
- - - - - -
Table of contents
Modules
kmdi Classes
All Classes
-
- - - - - - - - - - -
Modulekmdi
ClassKMdiChildFrmResizeBeginEvent
InheritsTQCustomEvent
-

methods

    -
  • KMdiChildFrmResizeBeginEvent (e) -
    -
    returns a KMdiChildFrmResizeBeginEvent instance
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kmdi/KMdiChildFrmResizeEndEvent.html b/python/pykde/doc/classref/kmdi/KMdiChildFrmResizeEndEvent.html deleted file mode 100644 index 78e2e030..00000000 --- a/python/pykde/doc/classref/kmdi/KMdiChildFrmResizeEndEvent.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - class KMdiChildFrmResizeEndEvent - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMdiChildFrmResizeEndEvent


-
- - - - - -
Table of contents
Modules
kmdi Classes
All Classes
-
- - - - - - - - - - -
Modulekmdi
ClassKMdiChildFrmResizeEndEvent
InheritsTQCustomEvent
-

methods

    -
  • KMdiChildFrmResizeEndEvent (e) -
    -
    returns a KMdiChildFrmResizeEndEvent instance
    - -
    ArgumentTypeDefault
    eTQMouseEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kmdi/KMdiChildView.html b/python/pykde/doc/classref/kmdi/KMdiChildView.html deleted file mode 100644 index 8671787d..00000000 --- a/python/pykde/doc/classref/kmdi/KMdiChildView.html +++ /dev/null @@ -1,385 +0,0 @@ - - - - - class KMdiChildView - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMdiChildView


-
- - - - - -
Table of contents
Modules
kmdi Classes
All Classes
-
- - - - - - - - - - -
Modulekmdi
ClassKMdiChildView
InheritsTQWidget
-

methods

    -
  • KMdiChildView (caption, parentWidget = 0, name = 0, f = 0) -
    -
    returns a KMdiChildView instance
    - - - - -
    ArgumentTypeDefault
    captionTQString
    parentWidgetTQWidget0
    namechar0
    fWFlags0
    -

  • -
  • KMdiChildView (parentWidget = 0, name = 0, f = 0) -
    -
    returns a KMdiChildView instance
    - - - -
    ArgumentTypeDefault
    parentWidgetTQWidget0
    namechar0
    fWFlags0
    -

  • -
  • activate () -
    -
    returns nothing

  • -
  • activated (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KMdiChildView
    -

  • -
  • attach () -
    -
    returns nothing

  • -
  • attachWindow (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KMdiChildView
    a1bool
    -

  • -
  • caption () -
    -
    returns (TQString)

  • -
  • captionUpdated (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0TQWidget
    a1TQString
    -

  • -
  • childWindowCloseRequest (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KMdiChildView
    -

  • -
  • clickedInDockMenu (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • clickedInWindowMenu (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • closeEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQCloseEvent
    -

  • -
  • deactivated (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KMdiChildView
    -

  • -
  • detach () -
    -
    returns nothing

  • -
  • detachWindow (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0KMdiChildView
    a1bool
    -

  • -
  • eventFilter (obj, e) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    objTQObject
    eTQEvent
    -

  • -
  • externalGeometry () -
    -
    returns (TQRect)

  • -
  • focusInEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQFocusEvent
    -

  • -
  • focusInEventOccurs (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KMdiChildView
    -

  • -
  • focusOutEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQFocusEvent
    -

  • -
  • focusedChildWidget () -
    -
    returns (TQWidget)

  • -
  • getTimeStamp () -
    -
    returns (TQDateTime)

  • -
  • gotFocus (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KMdiChildView
    -

  • -
  • hide () -
    -
    returns nothing

  • -
  • iconUpdated (a0, a1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0TQWidget
    a1TQPixmap
    -

  • -
  • internalGeometry () -
    -
    returns (TQRect)

  • -
  • 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 (TQPixmap)

  • -
  • raise_ () -
    - -
    returns nothing
    Renamed: was ' raise -' in C++

  • -
  • removeEventFilterForAllChildren () -
    -
    returns nothing

  • -
  • resizeEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQResizeEvent
    -

  • -
  • restore () -
    -
    returns nothing

  • -
  • restoreGeometry () -
    -
    returns (TQRect)

  • -
  • setCaption (szCaption) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    szCaptionTQString
    -

  • -
  • setExternalGeometry (newGeomety) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    newGeometyTQRect
    -

  • -
  • setFirstFocusableChildWidget (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQWidget
    -

  • -
  • setInternalGeometry (newGeomety) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    newGeometyTQRect
    -

  • -
  • setLastFocusableChildWidget (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQWidget
    -

  • -
  • setMDICaption (caption) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    captionTQString
    -

  • -
  • setMaximumSize (maxw, maxh) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    maxwint
    maxhint
    -

  • -
  • setMinimumSize (minw, minh) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    minwint
    minhint
    -

  • -
  • setRestoreGeometry (newRestGeo) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    newRestGeoTQRect
    -

  • -
  • setTabCaption (caption) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    captionTQString
    -

  • -
  • 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 (TQString)

  • -
  • tabCaptionChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • trackIconAndCaptionChanges (view) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    viewTQWidget
    -

  • -
  • updateTimeStamp () -
    -
    returns nothing

  • -
  • windowCaptionChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • youAreAttached (lpC) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    lpCKMdiChildFrm
    -

  • -
  • youAreDetached () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kmdi/KMdiMainFrm.html b/python/pykde/doc/classref/kmdi/KMdiMainFrm.html deleted file mode 100644 index cf2b3f25..00000000 --- a/python/pykde/doc/classref/kmdi/KMdiMainFrm.html +++ /dev/null @@ -1,580 +0,0 @@ - - - - - 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
    parentWidgetTQWidget
    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
    pWndTQWidget
    posKDockWidget.DockPositionKDockWidget .DockNone
    pTargetWndTQWidget0
    percentint50
    tabToolTipTQString0
    tabCaptionTQString0
    -

  • -
  • 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
    posTQPoint
    flagsintKMdi .StandardAdd
    -

  • -
  • addWindow (pWnd, rectNormal, flags = KMdi .StandardAdd) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    pWndKMdiChildView
    rectNormalTQRect
    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
    a0TQWidget
    -

  • -
  • 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
    viewTQWidget
    nameTQString
    shortNameTQString
    -

  • -
  • defaultChildFrmSize () -
    -
    returns (TQSize)

  • -
  • deleteIterator (pIt) -
    Not Implemented
    -

  • -
  • deleteToolWindow (pWnd) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pWndTQWidget
    -

  • -
  • 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
    widgetsToReparentTQPtrList
    containerKDockWidget
    -

  • -
  • dragEndTimeOut () -
    -
    returns nothing

  • -
  • event (e) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    eTQEvent
    -

  • -
  • eventFilter (obj, e) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    objTQObject
    eTQEvent
    -

  • -
  • expandHorizontal () -
    -
    returns nothing

  • -
  • expandVertical () -
    -
    returns nothing

  • -
  • fakeSDIApplication () -
    -
    returns nothing

  • -
  • fillWindowMenu () -
    -
    returns nothing

  • -
  • findRootDockWidgets (pRootDockWidgetList, pPositionList) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    pRootDockWidgetListTQPtrList
    pPositionListTQValueList
    -

  • -
  • findToolViewsDockedToMain (list, dprtmw) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    listTQPtrList
    dprtmwKDockWidget.DockPosition
    -

  • -
  • findWindow (caption) -
    -
    returns (KMdiChildView)
    - -
    ArgumentTypeDefault
    captionTQString
    -

  • -
  • 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
    widgetNamesTQStringList
    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
    pTQPoint
    -

  • -
  • prepareIdealToTabs (container) -
    -
    returns (TQStringList)
    - -
    ArgumentTypeDefault
    containerKDockWidget
    -

  • -
  • prevToolViewInDock () -
    -
    returns nothing

  • -
  • removeWindowFromMdi (pWnd) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pWndKMdiChildView
    -

  • -
  • resizeEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQResizeEvent
    -

  • -
  • setBackgroundColor (c) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    cTQColor
    -

  • -
  • setBackgroundPixmap (pm) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    pmTQPixmap
    -

  • -
  • setDefaultChildFrmSize (sz) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    szTQSize
    -

  • -
  • 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
    offsetTQPoint
    -

  • -
  • 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 (TQPopupMenu)
    - - -
    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 (TQPopupMenu)

  • -
  • windowMenuItemActivated (id) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    idint
    -

  • -
  • windowPopup (pWnd, bIncludeTaskbarPopup = 1) -
    -
    returns (TQPopupMenu)
    - - -
    ArgumentTypeDefault
    pWndKMdiChildView
    bIncludeTaskbarPopupbool1
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kmdi/KMdiTaskBar.html b/python/pykde/doc/classref/kmdi/KMdiTaskBar.html deleted file mode 100644 index 72681200..00000000 --- a/python/pykde/doc/classref/kmdi/KMdiTaskBar.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - 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
    a0TQResizeEvent
    -

  • -
  • setActiveButton (win_ptr) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    win_ptrKMdiChildView
    -

  • -
  • switchOn (bOn) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    bOnbool
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kmdi/KMdiTaskBarButton.html b/python/pykde/doc/classref/kmdi/KMdiTaskBarButton.html deleted file mode 100644 index ccf5d8d3..00000000 --- a/python/pykde/doc/classref/kmdi/KMdiTaskBarButton.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - class KMdiTaskBarButton - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMdiTaskBarButton


-
- - - - - -
Table of contents
Modules
kmdi Classes
All Classes
-
- - - - - - - - - - -
Modulekmdi
ClassKMdiTaskBarButton
InheritsTQPushButton
-

methods

    -
  • KMdiTaskBarButton (pTaskBar, win_ptr) -
    -
    returns a KMdiTaskBarButton instance
    - - -
    ArgumentTypeDefault
    pTaskBarKMdiTaskBar
    win_ptrKMdiChildView
    -

  • -
  • actualText () -
    -
    returns (TQString)

  • -
  • buttonTextChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0int
    -

  • -
  • clicked (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KMdiChildView
    -

  • -
  • fitText (a0, newWidth) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    a0TQString
    newWidthint
    -

  • -
  • leftMouseButtonClicked (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KMdiChildView
    -

  • -
  • mousePressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • rightMouseButtonClicked (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KMdiChildView
    -

  • -
  • setNewText (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • setText (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
-

variables

  • -variables - -
    VariableType
    m_pWindowKMdiChildView*
- - - diff --git a/python/pykde/doc/classref/kmdi/KMdiToolViewAccessor.html b/python/pykde/doc/classref/kmdi/KMdiToolViewAccessor.html deleted file mode 100644 index e65d7361..00000000 --- a/python/pykde/doc/classref/kmdi/KMdiToolViewAccessor.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - - class KMdiToolViewAccessor - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMdiToolViewAccessor


-
- - - - - -
Table of contents
Modules
kmdi Classes
All Classes
-
- - - - - - - - - - -
Modulekmdi
ClassKMdiToolViewAccessor
InheritsTQObject
-

methods

    -
  • KMdiToolViewAccessor (parent, widgetToWrap, tabToolTip = 0, tabCaption = 0) -
    -
    returns a KMdiToolViewAccessor instance
    - - - - -
    ArgumentTypeDefault
    parentKMdiMainFrm
    widgetToWrapTQWidget
    tabToolTipTQString0
    tabCaptionTQString0
    -

  • -
  • KMdiToolViewAccessor (parent) -
    -
    returns a KMdiToolViewAccessor instance
    - -
    ArgumentTypeDefault
    parentKMdiMainFrm
    -

  • -
  • eventFilter (o, e) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    oTQObject
    eTQEvent
    -

  • -
  • hide () -
    -
    returns nothing

  • -
  • place (pos = KDockWidget .DockNone, pTargetWnd = 0, percent = 50) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    posKDockWidget.DockPositionKDockWidget .DockNone
    pTargetWndTQWidget0
    percentint50
    -

  • -
  • placeAndShow (pos = KDockWidget .DockNone, pTargetWnd = 0, percent = 50) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    posKDockWidget.DockPositionKDockWidget .DockNone
    pTargetWndTQWidget0
    percentint50
    -

  • -
  • setWidgetToWrap (widgetToWrap, tabToolTip = 0, tabCaption = 0) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    widgetToWrapTQWidget
    tabToolTipTQString0
    tabCaptionTQString0
    -

  • -
  • show () -
    -
    returns nothing

  • -
  • wrappedWidget () -
    -
    returns (TQWidget)

  • -
  • wrapperWidget () -
    -
    returns (TQWidget)

  • -
- - - diff --git a/python/pykde/doc/classref/kmdi/KMdiViewCloseEvent.html b/python/pykde/doc/classref/kmdi/KMdiViewCloseEvent.html deleted file mode 100644 index 2b8e6c31..00000000 --- a/python/pykde/doc/classref/kmdi/KMdiViewCloseEvent.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - class KMdiViewCloseEvent - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMdiViewCloseEvent


-
- - - - - -
Table of contents
Modules
kmdi Classes
All Classes
-
- - - - - - - - - - -
Modulekmdi
ClassKMdiViewCloseEvent
InheritsTQCustomEvent
-

methods

    -
  • KMdiViewCloseEvent (pWnd) -
    -
    returns a KMdiViewCloseEvent instance
    - -
    ArgumentTypeDefault
    pWndKMdiChildView
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kmdi/KMdiWin32IconButton.html b/python/pykde/doc/classref/kmdi/KMdiWin32IconButton.html deleted file mode 100644 index 1882941a..00000000 --- a/python/pykde/doc/classref/kmdi/KMdiWin32IconButton.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - class KMdiWin32IconButton - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMdiWin32IconButton


-
- - - - - -
Table of contents
Modules
kmdi Classes
All Classes
-
- - - - - - - - - - -
Modulekmdi
ClassKMdiWin32IconButton
InheritsTQLabel
-

methods

    -
  • KMdiWin32IconButton (parent, name = 0) -
    -
    returns a KMdiWin32IconButton instance
    - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar0
    -

  • -
  • mousePressEvent (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQMouseEvent
    -

  • -
  • pressed () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kmdi/index.html b/python/pykde/doc/classref/kmdi/index.html deleted file mode 100644 index 6e69f64b..00000000 --- a/python/pykde/doc/classref/kmdi/index.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kmdi/kmdi-globals.html b/python/pykde/doc/classref/kmdi/kmdi-globals.html deleted file mode 100644 index 111b4e76..00000000 --- a/python/pykde/doc/classref/kmdi/kmdi-globals.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - kmdi globals - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

kmdi Globals


-
- - - - - -
Table of contents
Modules
kmdi Classes
All Classes
-
- - - diff --git a/python/pykde/doc/classref/kparts/ExtTerminalInterface.html b/python/pykde/doc/classref/kparts/ExtTerminalInterface.html deleted file mode 100644 index 769cb809..00000000 --- a/python/pykde/doc/classref/kparts/ExtTerminalInterface.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - 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
    a0TQString
    -

  • -
  • 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
    a0TQString
    -

  • -
  • startProgram (a0, a1) = 0 -
    - - -
    returns nothing
    In versions KDE 3.5.0 and above only
    pure virtual
    - - -
    ArgumentTypeDefault
    a0TQString
    a1TQStrList
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.BrowserExtension.html b/python/pykde/doc/classref/kparts/KParts.BrowserExtension.html deleted file mode 100644 index 9dfbdc21..00000000 --- a/python/pykde/doc/classref/kparts/KParts.BrowserExtension.html +++ /dev/null @@ -1,322 +0,0 @@ - - - - - class KParts.BrowserExtension - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KParts.BrowserExtension


-
- - - - - -
Table of contents
Modules
kparts Classes
All Classes
-
- - - - - - - - - - -
Modulekparts
ClassKParts.BrowserExtension
InheritsTQObject
-

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 (TQString)
    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
    nameTQString
    -

  • -
  • browserInterface () -
    -
    returns (KParts.BrowserInterface)

  • -
  • childObject (obj) -
    - -
    returns (KParts.BrowserExtension)
    static
    - -
    ArgumentTypeDefault
    objTQObject
    -

  • -
  • 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
    a0TQString
    -

  • -
  • 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
    globalTQPoint
    itemsKFileItemList
    -

  • -
  • popupMenu (client, global, items) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    clientKXMLGUIClient
    globalTQPoint
    itemsKFileItemList
    -

  • -
  • popupMenu (client, global, items, args, i) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - - - -
    ArgumentTypeDefault
    clientKXMLGUIClient
    globalTQPoint
    itemsKFileItemList
    argsKParts.URLArgs
    iKParts.BrowserExtension.PopupFlags
    -

  • -
  • popupMenu (global, url, mimeType, mode = -1) -
    -
    returns nothing
    - - - - -
    ArgumentTypeDefault
    globalTQPoint
    urlKURL
    mimeTypeTQString
    modemode_t-1
    -

  • -
  • popupMenu (client, global, url, mimeType, mode = -1) -
    -
    returns nothing
    - - - - - -
    ArgumentTypeDefault
    clientKXMLGUIClient
    globalTQPoint
    urlKURL
    mimeTypeTQString
    modemode_t-1
    -

  • -
  • popupMenu (client, global, url, args, i, mode = -1) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    clientKXMLGUIClient
    globalTQPoint
    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
    streamTQDataStream
    -

  • -
  • saveState (stream) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    streamTQDataStream
    -

  • -
  • selectionInfo (items) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemsKFileItemList
    -

  • -
  • selectionInfo (text) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • selectionInfo (urls) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlsKURL.List
    -

  • -
  • setActionText (name, text) -
    - -
    returns nothing
    In versions KDE 3.5.0 and above only
    - - -
    ArgumentTypeDefault
    namechar
    textTQString
    -

  • -
  • setBrowserInterface (impl) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    implKParts.BrowserInterface
    -

  • -
  • setIconURL (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlKURL
    -

  • -
  • setLocationBarURL (url) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    urlTQString
    -

  • -
  • 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/python/pykde/doc/classref/kparts/KParts.BrowserHostExtension.html b/python/pykde/doc/classref/kparts/KParts.BrowserHostExtension.html deleted file mode 100644 index 9f8c3370..00000000 --- a/python/pykde/doc/classref/kparts/KParts.BrowserHostExtension.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - class KParts.BrowserHostExtension - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KParts.BrowserHostExtension


-
- - - - - -
Table of contents
Modules
kparts Classes
All Classes
-
- - - - - - - - - - -
Modulekparts
ClassKParts.BrowserHostExtension
InheritsTQObject
-

methods

    -
  • BrowserHostExtension (parent, name = 0) -
    -
    returns a BrowserHostExtension instance
    - - -
    ArgumentTypeDefault
    parentKParts.ReadOnlyPart
    namechar0
    -

  • -
  • childObject (obj) -
    - -
    returns (KParts.BrowserHostExtension)
    static
    - -
    ArgumentTypeDefault
    objTQObject
    -

  • -
  • findFrameParent (callingPart, frame) -
    - -
    returns (KParts.BrowserHostExtension)
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    callingPartKParts.ReadOnlyPart
    frameTQString
    -

  • -
  • frameNames () -
    -
    returns (TQStringList)

  • -
  • frames () -
    -
    returns (TQPtrList)

  • -
  • openURLInFrame (url, urlArgs) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    urlKURL
    urlArgsKParts.URLArgs
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.BrowserInterface.html b/python/pykde/doc/classref/kparts/KParts.BrowserInterface.html deleted file mode 100644 index ca285d6a..00000000 --- a/python/pykde/doc/classref/kparts/KParts.BrowserInterface.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - class KParts.BrowserInterface - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KParts.BrowserInterface


-
- - - - - -
Table of contents
Modules
kparts Classes
All Classes
-
- - - - - - - - - - -
Modulekparts
ClassKParts.BrowserInterface
InheritsTQObject
-

methods

    -
  • BrowserInterface (parent, name = 0) -
    -
    returns a BrowserInterface instance
    - - -
    ArgumentTypeDefault
    parentTQObject
    namechar0
    -

  • -
  • callMethod (name, argument) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    namechar
    argumentTQVariant
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.BrowserRun.html b/python/pykde/doc/classref/kparts/KParts.BrowserRun.html deleted file mode 100644 index 9cde0c80..00000000 --- a/python/pykde/doc/classref/kparts/KParts.BrowserRun.html +++ /dev/null @@ -1,197 +0,0 @@ - - - - - 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
    windowTQWidget
    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
    windowTQWidget
    removeReferrerbool
    trustedSourcebool
    hideErrorDialogbool
    -

  • -
  • allowExecution (serviceType, url) -
    - -
    returns (bool)
    static
    - - -
    ArgumentTypeDefault
    serviceTypeTQString
    urlKURL
    -

  • -
  • askEmbedOrSave (url, mimeType, suggestedFilename = TQString .null, flags = 0) -
    - - -
    returns (KParts.BrowserRun.AskSaveResult)
    In versions KDE 3.2.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    urlKURL
    mimeTypeTQString
    suggestedFilenameTQStringTQString .null
    flagsint0
    -

  • -
  • askSave (url, offer, mimeType, suggestedFilename = TQString .null) -
    - -
    returns (KParts.BrowserRun.AskSaveResult)
    static
    - - - - -
    ArgumentTypeDefault
    urlKURL
    offerKService.Ptr
    mimeTypeTQString
    suggestedFilenameTQStringTQString .null
    -

  • -
  • contentDisposition () -
    - -
    returns (TQString)
    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
    serviceTypeTQString
    -

  • -
  • isTextExecutable (serviceType) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    serviceTypeTQString
    -

  • -
  • save (url, suggestedFilename) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    urlKURL
    suggestedFilenameTQString
    -

  • -
  • 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
    suggestedFilenameTQString
    windowTQWidget
    -

  • -
  • simpleSave (url, suggestedFilename) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    urlKURL
    suggestedFilenameTQString
    -

  • -
  • slotBrowserMimetype (job, type) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    jobKIO.Job
    typeTQString
    -

  • -
  • slotBrowserScanFinished (job) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    jobKIO.Job
    -

  • -
  • slotCopyToTempFileResult (job) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    jobKIO.Job
    -

  • -
  • slotStatResult (job) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    jobKIO.Job
    -

  • -
  • suggestedFilename () -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only

  • -
  • url () -
    -
    returns (KURL)

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.DockMainWindow.html b/python/pykde/doc/classref/kparts/KParts.DockMainWindow.html deleted file mode 100644 index 7976d613..00000000 --- a/python/pykde/doc/classref/kparts/KParts.DockMainWindow.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - 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
    parentTQWidget0
    namechar0
    fWFlagsWDestructiveClose
    -

  • -
  • createGUI (part) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    partKParts.Part
    -

  • -
  • createShellGUI (create = 1) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    createbool1
    -

  • -
  • slotSetStatusBarText (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.Event.html b/python/pykde/doc/classref/kparts/KParts.Event.html deleted file mode 100644 index 1f1aa3bd..00000000 --- a/python/pykde/doc/classref/kparts/KParts.Event.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - class KParts.Event - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KParts.Event


-
- - - - - -
Table of contents
Modules
kparts Classes
All Classes
-
- - - - - - - - - - -
Modulekparts
ClassKParts.Event
InheritsTQCustomEvent
-

methods

    -
  • Event (eventName) -
    -
    returns a Event instance
    - -
    ArgumentTypeDefault
    eventNamechar
    -

  • -
  • eventName () -
    -
    returns (char)

  • -
  • test (event) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    eventTQEvent
    -

  • -
  • test (event, name) -
    - -
    returns (bool)
    static
    - - -
    ArgumentTypeDefault
    eventTQEvent
    namechar
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.Factory.html b/python/pykde/doc/classref/kparts/KParts.Factory.html deleted file mode 100644 index 43c9974a..00000000 --- a/python/pykde/doc/classref/kparts/KParts.Factory.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - 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
    parentTQObject0
    namechar0
    -

  • -
  • createObject (parent = 0, name = 0, classname = "TQObject", args = TQStringList ()) -
    -
    returns (TQObject)
    - - - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    classnamechar"TQObject"
    argsTQStringListTQStringList ()
    -

  • -
  • createPart (parentWidget = 0, widgetName = 0, parent = 0, name = 0, classname = "KParts.Part", args = TQStringList ()) -
    -
    returns (KParts.Part)
    - - - - - - -
    ArgumentTypeDefault
    parentWidgetTQWidget0
    widgetNamechar0
    parentTQObject0
    namechar0
    classnamechar"KParts.Part"
    argsTQStringListTQStringList ()
    -

  • -
  • createPartObject (parentWidget = 0, widgetName = 0, parent = 0, name = 0, classname = "KParts.Part", args = TQStringList ()) -
    -
    returns (KParts.Part)
    - - - - - - -
    ArgumentTypeDefault
    parentWidgetTQWidget0
    widgetNamechar0
    parentTQObject0
    namechar0
    classnamechar"KParts.Part"
    argsTQStringListTQStringList ()
    -

  • -
  • 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
    libraryNameTQCString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.GUIActivateEvent.html b/python/pykde/doc/classref/kparts/KParts.GUIActivateEvent.html deleted file mode 100644 index 23165e68..00000000 --- a/python/pykde/doc/classref/kparts/KParts.GUIActivateEvent.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - 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
    eventTQEvent
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.HistoryProvider.html b/python/pykde/doc/classref/kparts/KParts.HistoryProvider.html deleted file mode 100644 index 9361b847..00000000 --- a/python/pykde/doc/classref/kparts/KParts.HistoryProvider.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - class KParts.HistoryProvider - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KParts.HistoryProvider


-
- - - - - -
Table of contents
Modules
kparts Classes
All Classes
-
- - - - - - - - - - -
Modulekparts
ClassKParts.HistoryProvider
InheritsTQObject
-

methods

    -
  • HistoryProvider (parent = 0, name = 0) -
    -
    returns a HistoryProvider instance
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • clear () -
    -
    returns nothing

  • -
  • cleared () -
    -
    returns nothing

  • -
  • contains (item) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    itemTQString
    -

  • -
  • insert (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemTQString
    -

  • -
  • remove (item) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemTQString
    -

  • -
  • self () -
    - -
    returns (KParts.HistoryProvider)
    static

  • -
  • updated (items) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    itemsTQStringList
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.LiveConnectExtension.html b/python/pykde/doc/classref/kparts/KParts.LiveConnectExtension.html deleted file mode 100644 index 32877682..00000000 --- a/python/pykde/doc/classref/kparts/KParts.LiveConnectExtension.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - class KParts.LiveConnectExtension - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KParts.LiveConnectExtension


-
- - - - - -
Table of contents
Modules
kparts Classes
All Classes
-
- - - - - - - - - - -
Modulekparts
ClassKParts.LiveConnectExtension
InheritsTQObject
-

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
    funcTQString
    argsTQStringList
    valueTQString
    -

  • -
  • childObject (obj) -
    - - -
    returns (KParts.LiveConnectExtension)
    In versions KDE 3.1.0 and above only
    static
    - -
    ArgumentTypeDefault
    objTQObject
    -

  • -
  • get (objid, field, value) -
    - -
    returns (bool) type (KParts.LiveConnectExtension.Type) retobjid (ulong)
    In versions KDE 3.1.0 and above only
    - - - -
    ArgumentTypeDefault
    objidulong
    fieldTQString
    valueTQString
    -

  • -
  • partEvent (objid, event, args) -
    Not Implemented
    -

  • -
  • put (objid, field, value) -
    - -
    returns (bool)
    In versions KDE 3.1.0 and above only
    - - - -
    ArgumentTypeDefault
    objidulong
    fieldTQString
    valueTQString
    -

  • -
  • unregister (objid) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    objidulong
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.MainWindow.html b/python/pykde/doc/classref/kparts/KParts.MainWindow.html deleted file mode 100644 index 7015ed5d..00000000 --- a/python/pykde/doc/classref/kparts/KParts.MainWindow.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - 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
    parentTQWidget
    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
    parentTQWidget
    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
    a0TQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.OpenURLEvent.html b/python/pykde/doc/classref/kparts/KParts.OpenURLEvent.html deleted file mode 100644 index be65ab44..00000000 --- a/python/pykde/doc/classref/kparts/KParts.OpenURLEvent.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - 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
    eventTQEvent
    -

  • -
  • url () -
    -
    returns (KURL)

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.Part.html b/python/pykde/doc/classref/kparts/KParts.Part.html deleted file mode 100644 index 0f8223d9..00000000 --- a/python/pykde/doc/classref/kparts/KParts.Part.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - class KParts.Part - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KParts.Part


-
- - - - - -
Table of contents
Modules
kparts Classes
All Classes
-
- - - - - - - - - - -
Modulekparts
ClassKParts.Part
InheritsTQObject, KParts.PartBase
-

methods

    -
  • Part (parent = 0, name = 0) -
    -
    returns a Part instance
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • customEvent (event) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eventTQCustomEvent
    -

  • -
  • embed (parentWidget) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    parentWidgetTQWidget
    -

  • -
  • guiActivateEvent (event) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eventKParts.GUIActivateEvent
    -

  • -
  • hitTest (widget, globalPos) -
    -
    returns (KParts.Part)
    - - -
    ArgumentTypeDefault
    widgetTQWidget
    globalPosTQPoint
    -

  • -
  • hostContainer (containerName) -
    -
    returns (TQWidget)
    - -
    ArgumentTypeDefault
    containerNameTQString
    -

  • -
  • 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
    textTQString
    -

  • -
  • setWidget (widget) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    widgetTQWidget
    -

  • -
  • setWindowCaption (caption) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    captionTQString
    -

  • -
  • widget () -
    -
    returns (TQWidget)

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.PartActivateEvent.html b/python/pykde/doc/classref/kparts/KParts.PartActivateEvent.html deleted file mode 100644 index e2a9b5e4..00000000 --- a/python/pykde/doc/classref/kparts/KParts.PartActivateEvent.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - 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
    widgetTQWidget
    -

  • -
  • activated () -
    -
    returns (bool)

  • -
  • part () -
    -
    returns (KParts.Part)

  • -
  • test (event) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    eventTQEvent
    -

  • -
  • widget () -
    -
    returns (TQWidget)

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.PartBase.html b/python/pykde/doc/classref/kparts/KParts.PartBase.html deleted file mode 100644 index 89c60984..00000000 --- a/python/pykde/doc/classref/kparts/KParts.PartBase.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - 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
    parentTQObject
    parentGUIClientKXMLGUIClient
    instanceKInstance
    -

  • -
  • partObject () -
    -
    returns (TQObject)

  • -
  • setInstance (instance) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    instanceKInstance
    -

  • -
  • setInstance (instance, loadPlugins) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    instanceKInstance
    loadPluginsbool
    -

  • -
  • setPartObject (object) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    objectTQObject
    -

  • -
  • setPluginLoadingMode (loadingMode) -
    Not Implemented
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.PartManager.html b/python/pykde/doc/classref/kparts/KParts.PartManager.html deleted file mode 100644 index d86fe04f..00000000 --- a/python/pykde/doc/classref/kparts/KParts.PartManager.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - class KParts.PartManager - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KParts.PartManager


-
- - - - - -
Table of contents
Modules
kparts Classes
All Classes
-
- - - - - - - - - - -
Modulekparts
ClassKParts.PartManager
InheritsTQObject
-

enums

    -
  • Reason = {ReasonLeftClick, ReasonMidClick, ReasonRightClick, NoReason -}
  • SelectionPolicy = {Direct, TriState -}
-

methods

    -
  • PartManager (parent, name = 0) -
    -
    returns a PartManager instance
    - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar0
    -

  • -
  • PartManager (topLevel, parent, name = 0) -
    -
    returns a PartManager instance
    - - - -
    ArgumentTypeDefault
    topLevelTQWidget
    parentTQObject
    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 (TQWidget)

  • -
  • addManagedTopLevelWidget (topLevel) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    topLevelTQWidget
    -

  • -
  • addPart (part, setActive = 1) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    partKParts.Part
    setActivebool1
    -

  • -
  • allowNestedParts () -
    -
    returns (bool)

  • -
  • eventFilter (obj, ev) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    objTQObject
    evTQEvent
    -

  • -
  • ignoreScrollBars () -
    -
    returns (bool)

  • -
  • partAdded (part) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    partKParts.Part
    -

  • -
  • partRemoved (part) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    partKParts.Part
    -

  • -
  • parts () -
    -
    returns (TQPtrList)

  • -
  • reason () -
    - -
    returns (int)
    In versions KDE 3.3.0 and above only

  • -
  • removeManagedTopLevelWidget (topLevel) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    topLevelTQWidget
    -

  • -
  • 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 (TQWidget)

  • -
  • 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
    widgetTQWidget0
    -

  • -
  • setAllowNestedParts (allow) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    allowbool
    -

  • -
  • setIgnoreScrollBars (ignore) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    ignorebool
    -

  • -
  • setSelectedPart (part, widget = 0) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    partKParts.Part
    widgetTQWidget0
    -

  • -
  • setSelectionPolicy (policy) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    policyKParts.PartManager.SelectionPolicy
    -

  • -
  • slotManagedTopLevelWidgetDestroyed () -
    -
    returns nothing

  • -
  • slotObjectDestroyed () -
    -
    returns nothing

  • -
  • slotWidgetDestroyed () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.PartSelectEvent.html b/python/pykde/doc/classref/kparts/KParts.PartSelectEvent.html deleted file mode 100644 index 607c9090..00000000 --- a/python/pykde/doc/classref/kparts/KParts.PartSelectEvent.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - 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
    widgetTQWidget
    -

  • -
  • part () -
    -
    returns (KParts.Part)

  • -
  • selected () -
    -
    returns (bool)

  • -
  • test (event) -
    - -
    returns (bool)
    static
    - -
    ArgumentTypeDefault
    eventTQEvent
    -

  • -
  • widget () -
    -
    returns (TQWidget)

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.Plugin.PluginInfo.html b/python/pykde/doc/classref/kparts/KParts.Plugin.PluginInfo.html deleted file mode 100644 index 9070e4e0..00000000 --- a/python/pykde/doc/classref/kparts/KParts.Plugin.PluginInfo.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 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_absXMLFileNameTQString
    m_documentTQDomDocument
    m_relXMLFileNameTQString
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.Plugin.html b/python/pykde/doc/classref/kparts/KParts.Plugin.html deleted file mode 100644 index 4a19ec62..00000000 --- a/python/pykde/doc/classref/kparts/KParts.Plugin.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - class KParts.Plugin - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KParts.Plugin


-
- - - - - -
Table of contents
Modules
kparts Classes
All Classes
-
- - - - - - - - - - -
Modulekparts
ClassKParts.Plugin
InheritsTQObject, KXMLGUIClient
-

methods

    -
  • Plugin (parent = 0, name = 0) -
    -
    returns a Plugin instance
    - - -
    ArgumentTypeDefault
    parentTQObject0
    namechar0
    -

  • -
  • loadPlugin (parent, libname) -
    - -
    returns (KParts.Plugin)
    static
    - - -
    ArgumentTypeDefault
    parentTQObject
    libnamechar
    -

  • -
  • loadPlugins (parent, instance) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    parentTQObject
    instanceKInstance
    -

  • -
  • loadPlugins (parent, pluginInfos) -
    - -
    returns nothing
    static
    - - -
    ArgumentTypeDefault
    parentTQObject
    pluginInfosTQValueList
    -

  • -
  • loadPlugins (parent, pluginInfos, instance) -
    - -
    returns nothing
    static
    - - - -
    ArgumentTypeDefault
    parentTQObject
    pluginInfosTQValueList
    instanceKInstance
    -

  • -
  • loadPlugins (parent, parentGUIClient, instance, enableNewPluginsByDefault = 1) -
    - - -
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    parentTQObject
    parentGUIClientKXMLGUIClient
    instanceKInstance
    enableNewPluginsByDefaultbool1
    -

  • -
  • localXMLFile () -
    -
    returns (TQString)

  • -
  • pluginInfos (instance) -
    - -
    returns (TQValueList)
    static
    - -
    ArgumentTypeDefault
    instanceKInstance
    -

  • -
  • pluginObjects (parent) -
    - -
    returns (TQPtrList)
    static
    - -
    ArgumentTypeDefault
    parentTQObject
    -

  • -
  • setInstance (instance) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    instanceKInstance
    -

  • -
  • xmlFile () -
    -
    returns (TQString)

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.ReadOnlyPart.html b/python/pykde/doc/classref/kparts/KParts.ReadOnlyPart.html deleted file mode 100644 index f25d6f0d..00000000 --- a/python/pykde/doc/classref/kparts/KParts.ReadOnlyPart.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - 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
    parentTQObject0
    namechar0
    -

  • -
  • abortLoad () -
    -
    returns nothing

  • -
  • canceled (errMsg) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    errMsgTQString
    -

  • -
  • 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
    mimeTypeTQString
    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
    dataTQByteArray
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.ReadWritePart.html b/python/pykde/doc/classref/kparts/KParts.ReadWritePart.html deleted file mode 100644 index 9d3c30e4..00000000 --- a/python/pykde/doc/classref/kparts/KParts.ReadWritePart.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - - 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
    parentTQObject0
    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/python/pykde/doc/classref/kparts/KParts.StatusBarExtension.html b/python/pykde/doc/classref/kparts/KParts.StatusBarExtension.html deleted file mode 100644 index fecc505e..00000000 --- a/python/pykde/doc/classref/kparts/KParts.StatusBarExtension.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - class KParts.StatusBarExtension - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KParts.StatusBarExtension


-
- - - - - -
Table of contents
Modules
kparts Classes
All Classes
-
- - - - - - - - - - -
Modulekparts
ClassKParts.StatusBarExtension
InheritsTQObject
-

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
    widgetTQWidget
    stretchint
    permanentbool
    -

  • -
  • childObject (obj) -
    - - -
    returns (KParts.StatusBarExtension)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    objTQObject
    -

  • -
  • eventFilter (watched, ev) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    watchedTQObject
    evTQEvent
    -

  • -
  • removeStatusBarItem (widget) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    widgetTQWidget
    -

  • -
  • 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/python/pykde/doc/classref/kparts/KParts.URLArgs.html b/python/pykde/doc/classref/kparts/KParts.URLArgs.html deleted file mode 100644 index 63e91a1b..00000000 --- a/python/pykde/doc/classref/kparts/KParts.URLArgs.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - 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 = TQString .null) -
    -
    returns a URLArgs instance
    - - - - -
    ArgumentTypeDefault
    reloadbool
    xOffsetint
    yOffsetint
    serviceTypeTQStringTQString .null
    -

  • -
  • contentType () -
    -
    returns (TQString)

  • -
  • doPost () -
    -
    returns (bool)

  • -
  • forcesNewWindow () -
    - -
    returns (bool)
    In versions KDE 3.4.0 and above only

  • -
  • lockHistory () -
    -
    returns (bool)

  • -
  • metaData () -
    -
    returns (TQMap)

  • -
  • 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
    contentTypeTQString
    -

  • -
  • 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*
    docStateTQStringList
    frameNameTQString
    postDataTQByteArray
    reloadbool
    serviceTypeTQString
    trustedSourcebool
    xOffsetint
    yOffsetint
- - - diff --git a/python/pykde/doc/classref/kparts/KParts.WindowArgs.html b/python/pykde/doc/classref/kparts/KParts.WindowArgs.html deleted file mode 100644 index d3ef46e5..00000000 --- a/python/pykde/doc/classref/kparts/KParts.WindowArgs.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - 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
    _geometryTQRect
    _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/python/pykde/doc/classref/kparts/KParts.html b/python/pykde/doc/classref/kparts/KParts.html deleted file mode 100644 index 4256d83b..00000000 --- a/python/pykde/doc/classref/kparts/KParts.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - class KParts - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KParts


-
- - - - - -
Table of contents
Modules
kparts Classes
All Classes
-
- - - - - - - - - - -
Modulekparts
ClassKParts
Inherits
-

classes

- - - diff --git a/python/pykde/doc/classref/kparts/TerminalInterface.html b/python/pykde/doc/classref/kparts/TerminalInterface.html deleted file mode 100644 index 51b0a7bb..00000000 --- a/python/pykde/doc/classref/kparts/TerminalInterface.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - 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
    a0TQString
    -

  • -
  • showShellInDir (a0) = 0 -
    - -
    returns nothing
    pure virtual
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • startProgram (a0, a1) = 0 -
    - -
    returns nothing
    pure virtual
    - - -
    ArgumentTypeDefault
    a0TQString
    a1TQStrList
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/index.html b/python/pykde/doc/classref/kparts/index.html deleted file mode 100644 index 2ad94c29..00000000 --- a/python/pykde/doc/classref/kparts/index.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kparts/konsoleBrowserExtension.html b/python/pykde/doc/classref/kparts/konsoleBrowserExtension.html deleted file mode 100644 index 41229e38..00000000 --- a/python/pykde/doc/classref/kparts/konsoleBrowserExtension.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kparts/konsoleFactory.html b/python/pykde/doc/classref/kparts/konsoleFactory.html deleted file mode 100644 index 97e8ccc7..00000000 --- a/python/pykde/doc/classref/kparts/konsoleFactory.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - 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 = TQStringList ()) -
    -
    returns (KParts.Part)
    - - - - - - -
    ArgumentTypeDefault
    parentWidgetTQWidget0
    widgetNamechar0
    parentTQObject0
    namechar0
    classnamechar"KParts.Part"
    argsTQStringListTQStringList ()
    -

  • -
  • instance () -
    - -
    returns (KInstance)
    static

  • -
  • konsoleFactory () -
    -
    returns a konsoleFactory instance

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/konsolePart.html b/python/pykde/doc/classref/kparts/konsolePart.html deleted file mode 100644 index e5c99f73..00000000 --- a/python/pykde/doc/classref/kparts/konsolePart.html +++ /dev/null @@ -1,237 +0,0 @@ - - - - - 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
    parentWidgetTQWidget
    widgetNamechar
    parentTQObject
    namechar
    classnamechar0
    -

  • -
  • konsolePart (a0, a1, a2, a3, a4 = 0) -
    - -
    returns a konsolePart instance
    In versions less than KDE 3.5.0 only
    - - - - - -
    ArgumentTypeDefault
    a0TQWidget
    a1char
    a2TQObject
    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
    sTQString
    -

  • -
  • receivedData (a0) -
    - -
    returns nothing
    In versions less than KDE 3.5.0 only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • sendInput (text) -
    - -
    returns nothing
    In versions KDE 3.5.0 and above only
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • sendInput (a0) -
    - -
    returns nothing
    In versions less than KDE 3.5.0 only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • 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
    dirTQString
    -

  • -
  • showShellInDir (a0) -
    - -
    returns nothing
    In versions less than KDE 3.5.0 only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • 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
    a0TQString
    -

  • -
  • startProgram (program, args) -
    - -
    returns nothing
    In versions KDE 3.5.0 and above only
    - - -
    ArgumentTypeDefault
    programTQString
    argsTQStrList
    -

  • -
  • startProgram (a0, a1) -
    - -
    returns nothing
    In versions less than KDE 3.5.0 only
    - - -
    ArgumentTypeDefault
    a0TQString
    a1TQStrList
    -

  • -
  • updateTitle () -
    - -
    returns nothing
    In versions less than KDE 3.5.0 only

  • -
- - - diff --git a/python/pykde/doc/classref/kparts/kparts-globals.html b/python/pykde/doc/classref/kparts/kparts-globals.html deleted file mode 100644 index 54f5f7ee..00000000 --- a/python/pykde/doc/classref/kparts/kparts-globals.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - - kparts globals - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

kparts Globals


-
- - - - - -
Table of contents
Modules
kparts Classes
All Classes
-
-

global methods

    -
  • createReadOnlyPart (a0, a1 = 0, a2 = TQString .null, a3 = "KParts.ReadOnlyPart", a4 = TQStringList ()) -
    -
    returns (KParts.ReadOnlyPart)
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQObject0
    a2TQStringTQString .null
    a3char"KParts.ReadOnlyPart"
    a4TQStringListTQStringList ()
    -
    -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 TQString& lib, TQObject *parent,
    -                                          const TQString& name, const char *className,
    -                                          const TQStringList &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 = TQString .null, a3 = "KParts.ReadWritePart", a4 = TQStringList ()) -
    -
    returns (KParts.ReadWritePart)
    - - - - - -
    ArgumentTypeDefault
    a0TQString
    a1TQObject0
    a2TQStringTQString .null
    a3char"KParts.ReadWritePart"
    a4TQStringListTQStringList ()
    -
    -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 TQString& lib, TQObject *parent,
    -                                          const TQString& name, const char *className,
    -                                          const TQStringList &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 (TQMap),
    - -
    ArgumentTypeDefault
    dictTQMap
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kresources/KRES.ConfigDialog.html b/python/pykde/doc/classref/kresources/KRES.ConfigDialog.html deleted file mode 100644 index eaa806d0..00000000 --- a/python/pykde/doc/classref/kresources/KRES.ConfigDialog.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - 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
    parentTQWidget
    resourceFamilyTQString
    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
    textTQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kresources/KRES.ConfigWidget.html b/python/pykde/doc/classref/kresources/KRES.ConfigWidget.html deleted file mode 100644 index 0ee8a934..00000000 --- a/python/pykde/doc/classref/kresources/KRES.ConfigWidget.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - - class KRES.ConfigWidget - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KRES.ConfigWidget


-
- - - - - -
Table of contents
Modules
kresources Classes
All Classes
-
- - - - - - - - - - -
Modulekresources
ClassKRES.ConfigWidget (abstract)
InheritsTQWidget
-

methods

    -
  • ConfigWidget (parent = 0, name = 0) -
    - -
    returns a ConfigWidget instance
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQWidget0
    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/python/pykde/doc/classref/kresources/KRES.Factory.html b/python/pykde/doc/classref/kresources/KRES.Factory.html deleted file mode 100644 index 97d33ba0..00000000 --- a/python/pykde/doc/classref/kresources/KRES.Factory.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - 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
    resourceFamilyTQString
    -

  • -
  • configWidget (type, parent = 0) -
    - -
    returns (KRES.ConfigWidget)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    typeTQString
    parentTQWidget0
    -

  • -
  • resource (type, config) -
    - -
    returns (KRES.Resource)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    typeTQString
    configKConfig
    -

  • -
  • self (resourceFamily) -
    - - -
    returns (KRES.Factory)
    In versions KDE 3.2.0 and above only
    static
    - -
    ArgumentTypeDefault
    resourceFamilyTQString
    -

  • -
  • typeDescription (type) -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    typeTQString
    -

  • -
  • typeName (type) -
    - -
    returns (TQString)
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    typeTQString
    -

  • -
  • typeNames () -
    - -
    returns (TQStringList)
    In versions KDE 3.2.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kresources/KRES.PluginFactoryBase.html b/python/pykde/doc/classref/kresources/KRES.PluginFactoryBase.html deleted file mode 100644 index f8997d05..00000000 --- a/python/pykde/doc/classref/kresources/KRES.PluginFactoryBase.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - 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
    parentTQWidget
    -

  • -
  • createObject (a0, a1, a2, a3) -
    - -
    returns (TQObject)
    In versions KDE 3.2.0 and above only
    - - - - -
    ArgumentTypeDefault
    a0TQObject
    a1char
    a2char
    a3TQStringList
    -

  • -
  • resource (config) = 0 -
    - - -
    returns (KRES.Resource)
    In versions KDE 3.2.0 and above only
    pure virtual
    - -
    ArgumentTypeDefault
    configKConfig
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kresources/KRES.Resource.html b/python/pykde/doc/classref/kresources/KRES.Resource.html deleted file mode 100644 index fbe3f4cd..00000000 --- a/python/pykde/doc/classref/kresources/KRES.Resource.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - class KRES.Resource - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KRES.Resource


-
- - - - - -
Table of contents
Modules
kresources Classes
All Classes
-
- - - - - - - - - - -
Modulekresources
ClassKRES.Resource
InheritsTQObject
-

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 (TQString)
    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 (TQString)
    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
    identifierTQString
    -

  • -
  • 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
    nameTQString
    -

  • -
  • setType (type) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    typeTQString
    -

  • -
  • type () -
    - -
    returns (TQString)
    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/python/pykde/doc/classref/kresources/KRES.ResourcePageInfo.html b/python/pykde/doc/classref/kresources/KRES.ResourcePageInfo.html deleted file mode 100644 index f7578e21..00000000 --- a/python/pykde/doc/classref/kresources/KRES.ResourcePageInfo.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kresources/KRES.SelectDialog.html b/python/pykde/doc/classref/kresources/KRES.SelectDialog.html deleted file mode 100644 index 62dbb7d4..00000000 --- a/python/pykde/doc/classref/kresources/KRES.SelectDialog.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - 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
    listTQPtrList
    parentTQWidget0
    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
    listTQPtrList
    parentTQWidget0
    -

  • -
  • resource () -
    - -
    returns (KRES.Resource)
    In versions KDE 3.2.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kresources/KRES.html b/python/pykde/doc/classref/kresources/KRES.html deleted file mode 100644 index ade3154f..00000000 --- a/python/pykde/doc/classref/kresources/KRES.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - class KRES - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KRES


-
- - - - - -
Table of contents
Modules
kresources Classes
All Classes
-
- - - - - - - - - - -
Modulekresources
ClassKRES
Inherits
-

classes

- - - diff --git a/python/pykde/doc/classref/kresources/index.html b/python/pykde/doc/classref/kresources/index.html deleted file mode 100644 index 9896b148..00000000 --- a/python/pykde/doc/classref/kresources/index.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kspell/KDictSpellingHighlighter.html b/python/pykde/doc/classref/kspell/KDictSpellingHighlighter.html deleted file mode 100644 index e00047fe..00000000 --- a/python/pykde/doc/classref/kspell/KDictSpellingHighlighter.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - class KDictSpellingHighlighter - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDictSpellingHighlighter


-
- - - - - -
Table of contents
Modules
kspell Classes
All Classes
-
- - - - - - - - - - -
Modulekspell
ClassKDictSpellingHighlighter
InheritsTQObject, KSpellingHighlighter
-

methods

    -
  • KDictSpellingHighlighter (textEdit, spellCheckingActive = 1, autoEnable = 1, spellColor = Qt .red, colorQuoting = 0, QuoteColor0 = Qt .black, QuoteColor1 = TQColor (0x00 ,0x80 ,0x00 ), QuoteColor2 = TQColor (0x00 ,0x70 ,0x00 ), QuoteColor3 = TQColor (0x00 ,0x60 ,0x00 ), spellConfig = 0) -
    - -
    returns a KDictSpellingHighlighter instance
    In versions KDE 3.2.0 and above only
    - - - - - - - - - - -
    ArgumentTypeDefault
    textEditTQTextEdit
    spellCheckingActivebool1
    autoEnablebool1
    spellColorTQColorQt .red
    colorQuotingbool0
    QuoteColor0TQColorQt .black
    QuoteColor1TQColorTQColor (0x00 ,0x80 ,0x00 )
    QuoteColor2TQColorTQColor (0x00 ,0x70 ,0x00 )
    QuoteColor3TQColorTQColor (0x00 ,0x60 ,0x00 )
    spellConfigKSpellConfig0
    -

  • -
  • activeChanged (a0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
  • 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
    oTQObject
    eTQEvent
    -

  • -
  • 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
    wordTQString
    -

  • -
  • newSuggestions (originalword, suggestions, pos) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    originalwordTQString
    suggestionsTQStringList
    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
    originalWordTQString
    a0TQString
    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
    originalWordTQString
    suggestionsTQStringList
    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 (TQString)
    In versions KDE 3.2.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kspell/KSpell.html b/python/pykde/doc/classref/kspell/KSpell.html deleted file mode 100644 index 7c7c361e..00000000 --- a/python/pykde/doc/classref/kspell/KSpell.html +++ /dev/null @@ -1,408 +0,0 @@ - - - - - class KSpell - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KSpell


-
- - - - - -
Table of contents
Modules
kspell Classes
All Classes
-
- - - - - - - - - - -
Modulekspell
ClassKSpell
InheritsTQObject
-

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
    parentTQWidget
    captionTQString
    receiverTQObject
    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
    parentTQWidget
    captionTQString
    receiverTQObject
    slotchar
    kcsKSpellConfig
    progressbarbool
    modalbool
    typeKSpell.SpellerType
    -

  • -
  • KSpell2 (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KProcIO
    -

  • -
  • addPersonal (word) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    wordTQString
    -

  • -
  • addword (originalword) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    originalwordTQString
    -

  • -
  • check (_buffer, usedialog = 1) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    _bufferTQString
    usedialogbool1
    -

  • -
  • check2 (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KProcIO
    -

  • -
  • check3 () -
    -
    returns nothing

  • -
  • checkList (_wordlist, usedialog = 1) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    _wordlistTQStringList
    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
    _bufferTQString
    usedialogbool0
    -

  • -
  • checkWord (buffer, _usedialog, suggest) -
    - -
    returns (bool)
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    bufferTQString
    _usedialogbool
    suggestbool
    -

  • -
  • checkWord2 (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0KProcIO
    -

  • -
  • checkWord3 () -
    -
    returns nothing

  • -
  • cleanFputs (s, appendCR = 1) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    sTQString
    appendCRbool1
    -

  • -
  • cleanFputsWord (s, appendCR = 1) -
    -
    returns (bool)
    - - -
    ArgumentTypeDefault
    sTQString
    appendCRbool1
    -

  • -
  • cleanUp () -
    -
    returns nothing

  • -
  • corrected (originalword, newword, pos) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    originalwordTQString
    newwordTQString
    posuint
    -

  • -
  • death () -
    -
    returns nothing

  • -
  • dialog (word, sugg, _slot) -
    -
    returns nothing
    - - - -
    ArgumentTypeDefault
    wordTQString
    suggTQStringList
    _slotchar
    -

  • -
  • dialog2 (dlgresult) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    dlgresultint
    -

  • -
  • dialog3 () -
    -
    returns nothing

  • -
  • dlgResult () -
    -
    returns (int)

  • -
  • done (buffer) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    bufferTQString
    -

  • -
  • done (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • emitDeath () -
    -
    returns nothing

  • -
  • emitProgress () -
    -
    returns nothing

  • -
  • funnyWord (word) -
    -
    returns (TQString)
    - -
    ArgumentTypeDefault
    wordTQString
    -

  • -
  • heightDlg () -
    -
    returns (int)

  • -
  • hide () -
    -
    returns nothing

  • -
  • ignore (word) -
    -
    returns (bool)
    - -
    ArgumentTypeDefault
    wordTQString
    -

  • -
  • ignoreall (originalword) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    originalwordTQString
    -

  • -
  • ignoreword (originalword) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    originalwordTQString
    -

  • -
  • initialize (_parent, _caption, slot, _ksc, _progressbar, _modal, type) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - - - - - -
    ArgumentTypeDefault
    _parentTQWidget
    _captionTQString
    slotSLOT (Python callable)
    _kscKSpellConfig
    _progressbarbool
    _modalbool
    typeKSpell.SpellerType
    -

  • -
  • intermediateBuffer () -
    -
    returns (TQString)

  • -
  • 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
    originalwordTQString
    suggestionsTQStringList
    posuint
    -

  • -
  • modalCheck (text) -
    - -
    returns (int)
    static
    - -
    ArgumentTypeDefault
    textTQString
    -

  • -
  • modalCheck (text, kcs) -
    - -
    returns (int)
    static
    - - -
    ArgumentTypeDefault
    textTQString
    kcsKSpellConfig
    -

  • -
  • moveDlg (x, y) -
    -
    returns nothing
    - - -
    ArgumentTypeDefault
    xint
    yint
    -

  • -
  • parseOneResponse (_buffer, word, sugg) -
    -
    returns (int)
    - - - -
    ArgumentTypeDefault
    _bufferTQString
    wordTQString
    suggTQStringList
    -

  • -
  • 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
    origwordTQString
    replacementTQString
    -

  • -
  • replacement () -
    -
    returns (TQString)

  • -
  • 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 (TQStringList)

  • -
  • widthDlg () -
    -
    returns (int)

  • -
  • writePersonalDictionary () -
    -
    returns (bool)

  • -
- - - diff --git a/python/pykde/doc/classref/kspell/KSpellConfig.html b/python/pykde/doc/classref/kspell/KSpellConfig.html deleted file mode 100644 index 7684d73a..00000000 --- a/python/pykde/doc/classref/kspell/KSpellConfig.html +++ /dev/null @@ -1,211 +0,0 @@ - - - - - class KSpellConfig - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KSpellConfig


-
- - - - - -
Table of contents
Modules
kspell Classes
All Classes
-
- - - - - - - - - - -
Modulekspell
ClassKSpellConfig
InheritsTQWidget
-

methods

    -
  • KSpellConfig (parent = 0, name = 0, spellConfig = 0, addHelpButton = 1) -
    -
    returns a KSpellConfig instance
    - - - - -
    ArgumentTypeDefault
    parentTQWidget0
    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 (TQString)

  • -
  • encoding () -
    -
    returns (int)

  • -
  • fillDicts (box, dictionaries = 0) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    boxTQComboBox
    dictionariesTQStringList0
    -

  • -
  • fillInDialog () -
    -
    returns nothing

  • -
  • ignoreList () -
    -
    returns (TQStringList)

  • -
  • interpret (fname, lname, hname) -
    -
    returns (bool)
    - - - -
    ArgumentTypeDefault
    fnameTQString
    lnameTQString
    hnameTQString
    -

  • -
  • 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 (TQStringList)
    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
    qsTQString
    -

  • -
  • setEncoding (enctype) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    enctypeint
    -

  • -
  • setIgnoreList (_ignorelist) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    _ignorelistTQStringList
    -

  • -
  • setNoRootAffix (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • setReplaceAllList (_replaceAllList) -
    - -
    returns nothing
    In versions KDE 3.1.0 and above only
    - -
    ArgumentTypeDefault
    _replaceAllListTQStringList
    -

  • -
  • setRunTogether (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • writeGlobalSettings () -
    -
    returns (bool)

  • -
- - - diff --git a/python/pykde/doc/classref/kspell/KSpellDlg.html b/python/pykde/doc/classref/kspell/KSpellDlg.html deleted file mode 100644 index 507e16a8..00000000 --- a/python/pykde/doc/classref/kspell/KSpellDlg.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - 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
    parentTQWidget
    namechar
    _progressbarbool0
    _modalbool0
    -

  • -
  • add () -
    -
    returns nothing

  • -
  • cancel () -
    -
    returns nothing

  • -
  • closeEvent (e) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    eTQCloseEvent
    -

  • -
  • 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
    _wordTQString
    _suggTQStringList
    -

  • -
  • init (_word, _sugg, context) -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only
    - - - -
    ArgumentTypeDefault
    _wordTQString
    _suggTQStringList
    contextTQString
    -

  • -
  • ready (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0bool
    -

  • -
  • replace () -
    -
    returns nothing

  • -
  • replaceAll () -
    -
    returns nothing

  • -
  • replacement () -
    -
    returns (TQString)

  • -
  • 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
    itemTQListViewItem
    -

  • -
  • standby () -
    -
    returns nothing

  • -
  • stop () -
    -
    returns nothing

  • -
  • suggest () -
    - -
    returns nothing
    In versions KDE 3.2.0 and above only

  • -
  • textChanged (a0) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    a0TQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kspell/KSpellingHighlighter.html b/python/pykde/doc/classref/kspell/KSpellingHighlighter.html deleted file mode 100644 index 90946f13..00000000 --- a/python/pykde/doc/classref/kspell/KSpellingHighlighter.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - 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 = TQColor (0x00 ,0x80 ,0x00 ), QuoteColor2 = TQColor (0x00 ,0x80 ,0x00 ), QuoteColor3 = TQColor (0x00 ,0x80 ,0x00 )) -
    - -
    returns a KSpellingHighlighter instance
    In versions KDE 3.2.0 and above only
    - - - - - - - -
    ArgumentTypeDefault
    textEditTQTextEdit
    spellColorTQColorQt .red
    colorQuotingbool0
    QuoteColor0TQColorQt .black
    QuoteColor1TQColorTQColor (0x00 ,0x80 ,0x00 )
    QuoteColor2TQColorTQColor (0x00 ,0x80 ,0x00 )
    QuoteColor3TQColorTQColor (0x00 ,0x80 ,0x00 )
    -

  • -
  • highlightParagraph (text, endStateOfLastPara) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    textTQString
    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
    wordTQString
    -

  • -
  • personalWords () -
    - - -
    returns (TQStringList)
    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/python/pykde/doc/classref/kspell/KSyntaxHighlighter.html b/python/pykde/doc/classref/kspell/KSyntaxHighlighter.html deleted file mode 100644 index 9c4483f4..00000000 --- a/python/pykde/doc/classref/kspell/KSyntaxHighlighter.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - class KSyntaxHighlighter - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KSyntaxHighlighter


-
- - - - - -
Table of contents
Modules
kspell Classes
All Classes
-
- - - - - - - - - - -
Modulekspell
ClassKSyntaxHighlighter
InheritsTQSyntaxHighlighter
-

enums

    -
  • SyntaxMode = {PlainTextMode, RichTextMode -}
-

methods

    -
  • KSyntaxHighlighter (textEdit, colorQuoting = 0, QuoteColor0 = Qt .black, QuoteColor1 = TQColor (0x00 ,0x80 ,0x00 ), QuoteColor2 = TQColor (0x00 ,0x80 ,0x00 ), QuoteColor3 = TQColor (0x00 ,0x80 ,0x00 ), mode = PlainTextMode) -
    - -
    returns a KSyntaxHighlighter instance
    In versions KDE 3.2.0 and above only
    - - - - - - - -
    ArgumentTypeDefault
    textEditTQTextEdit
    colorQuotingbool0
    QuoteColor0TQColorQt .black
    QuoteColor1TQColorTQColor (0x00 ,0x80 ,0x00 )
    QuoteColor2TQColorTQColor (0x00 ,0x80 ,0x00 )
    QuoteColor3TQColorTQColor (0x00 ,0x80 ,0x00 )
    modeKSyntaxHighlighter.SyntaxModePlainTextMode
    -

  • -
  • highlightParagraph (text, endStateOfLastPara) -
    - -
    returns (int)
    In versions KDE 3.2.0 and above only
    - - -
    ArgumentTypeDefault
    textTQString
    endStateOfLastParaint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kspell/index.html b/python/pykde/doc/classref/kspell/index.html deleted file mode 100644 index e9487c54..00000000 --- a/python/pykde/doc/classref/kspell/index.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kspell/kspell-globals.html b/python/pykde/doc/classref/kspell/kspell-globals.html deleted file mode 100644 index 906321ca..00000000 --- a/python/pykde/doc/classref/kspell/kspell-globals.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - 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/python/pykde/doc/classref/kutils/KCModuleContainer.html b/python/pykde/doc/classref/kutils/KCModuleContainer.html deleted file mode 100644 index ac552704..00000000 --- a/python/pykde/doc/classref/kutils/KCModuleContainer.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - 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
    parentTQWidget
    namechar
    modsTQStringList
    -

  • -
  • KCModuleContainer (parent, name, mods = TQString ()) -
    -
    returns a KCModuleContainer instance
    - - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar
    modsTQStringTQString ()
    -

  • -
  • addModule (module) -
    -
    returns nothing
    - -
    ArgumentTypeDefault
    moduleTQString
    -

  • -
  • defaults () -
    -
    returns nothing

  • -
  • finalize () -
    -
    returns nothing

  • -
  • load () -
    -
    returns nothing

  • -
  • save () -
    -
    returns nothing

  • -
- - - diff --git a/python/pykde/doc/classref/kutils/KCModuleInfo.html b/python/pykde/doc/classref/kutils/KCModuleInfo.html deleted file mode 100644 index dd418f23..00000000 --- a/python/pykde/doc/classref/kutils/KCModuleInfo.html +++ /dev/null @@ -1,219 +0,0 @@ - - - - - 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
    desktopFileTQString
    -

  • -
  • 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 (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • docPath () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • factoryName () -
    - -
    returns (TQString)
    In versions KDE 3.4.0 and above only

  • -
  • fileName () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • handle () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • icon () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • isHiddenByDefault () -
    - -
    returns (bool)
    In versions KDE 3.3.0 and above only

  • -
  • keywords () -
    - -
    returns (TQStringList)
    In versions KDE 3.3.0 and above only

  • -
  • library () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • loadAll () -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only

  • -
  • moduleName () -
    - -
    returns (TQString)
    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
    commentTQString
    -

  • -
  • setDocPath (p) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    pTQString
    -

  • -
  • setHandle (handle) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    handleTQString
    -

  • -
  • setIcon (icon) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    iconTQString
    -

  • -
  • 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
    keywordTQStringList
    -

  • -
  • setLibrary (lib) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    libTQString
    -

  • -
  • setName (name) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    nameTQString
    -

  • -
  • 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/python/pykde/doc/classref/kutils/KCModuleLoader.html b/python/pykde/doc/classref/kutils/KCModuleLoader.html deleted file mode 100644 index 718800a3..00000000 --- a/python/pykde/doc/classref/kutils/KCModuleLoader.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - 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 = TQStringList ()) -
    - - -
    returns (KCModule)
    In versions KDE 3.3.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    moduleKCModuleInfo
    withFallbackbool1
    parentTQWidget0
    namechar0
    argsTQStringListTQStringList ()
    -

  • -
  • loadModule (module, parent = 0, name = 0, args = TQStringList ()) -
    - - -
    returns (KCModule)
    In versions KDE 3.3.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    moduleTQString
    parentTQWidget0
    namechar0
    argsTQStringListTQStringList ()
    -

  • -
  • loadModule (module, report, withFallback = 1, parent = 0, name = 0, args = TQStringList ()) -
    - - -
    returns (KCModule)
    In versions KDE 3.4.0 and above only
    static
    - - - - - - -
    ArgumentTypeDefault
    moduleKCModuleInfo
    reportKCModuleLoader.ErrorReporting
    withFallbackbool1
    parentTQWidget0
    namechar0
    argsTQStringListTQStringList ()
    -

  • -
  • loadModule (module, report, parent = 0, name = 0, args = TQStringList ()) -
    - - -
    returns (KCModule)
    In versions KDE 3.4.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    moduleTQString
    reportKCModuleLoader.ErrorReporting
    parentTQWidget0
    namechar0
    argsTQStringListTQStringList ()
    -

  • -
  • reportError (report, text, details, parent) -
    - - -
    returns (KCModule)
    In versions KDE 3.4.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    reportKCModuleLoader.ErrorReporting
    textTQString
    detailsTQString
    parentTQWidget
    -

  • -
  • showLastLoaderError (parent) -
    - - -
    returns nothing
    In versions KDE 3.3.0 and above only
    static
    - -
    ArgumentTypeDefault
    parentTQWidget
    -

  • -
  • testModule (module) -
    - - -
    returns (bool)
    In versions KDE 3.4.0 and above only
    static
    - -
    ArgumentTypeDefault
    moduleTQString
    -

  • -
  • 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/python/pykde/doc/classref/kutils/KCModuleProxy.html b/python/pykde/doc/classref/kutils/KCModuleProxy.html deleted file mode 100644 index ad17109a..00000000 --- a/python/pykde/doc/classref/kutils/KCModuleProxy.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - - class KCModuleProxy - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KCModuleProxy


-
- - - - - -
Table of contents
Modules
kutils Classes
All Classes
-
- - - - - - - - - - -
Modulekutils
ClassKCModuleProxy
InheritsTQWidget
-

methods

    -
  • KCModuleProxy (info, withFallback = 0, parent = 0, name = 0, args = TQStringList ()) -
    - -
    returns a KCModuleProxy instance
    In versions KDE 3.3.0 and above only
    - - - - - -
    ArgumentTypeDefault
    infoKCModuleInfo
    withFallbackbool0
    parentTQWidget0
    namechar0
    argsTQStringListTQStringList ()
    -

  • -
  • KCModuleProxy (serviceName, withFallback = 1, parent = 0, name = 0, args = TQStringList ()) -
    - -
    returns a KCModuleProxy instance
    In versions KDE 3.4.0 and above only
    - - - - - -
    ArgumentTypeDefault
    serviceNameTQString
    withFallbackbool1
    parentTQWidget0
    namechar0
    argsTQStringListTQStringList ()
    -

  • -
  • KCModuleProxy (service, withFallback = 1, parent = 0, name = 0, args = TQStringList ()) -
    - -
    returns a KCModuleProxy instance
    In versions KDE 3.4.0 and above only
    - - - - - -
    ArgumentTypeDefault
    serviceKService.Ptr
    withFallbackbool1
    parentTQWidget0
    namechar0
    argsTQStringListTQStringList ()
    -

  • -
  • 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 (TQCString)
    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 (TQString)
    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 (TQString)
    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
    a0TQShowEvent
    -

  • -
  • useRootOnlyMsg () -
    - -
    returns (bool)
    In versions KDE 3.3.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kutils/KCMultiDialog.html b/python/pykde/doc/classref/kutils/KCMultiDialog.html deleted file mode 100644 index 1b94e860..00000000 --- a/python/pykde/doc/classref/kutils/KCMultiDialog.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - 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
    parentTQWidget0
    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
    captionTQString
    parentTQWidget0
    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
    captionTQStringi18n ("Configure" )
    parentTQWidget0
    namechar0
    modalbool0
    -

  • -
  • addModule (module, withfallback = 1) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    moduleTQString
    withfallbackbool1
    -

  • -
  • addModule (moduleinfo, parentmodulenames = TQStringList (), withfallback = 0) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    moduleinfoKCModuleInfo
    parentmodulenamesTQStringListTQStringList ()
    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
    instanceNameTQCString
    -

  • -
  • 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/python/pykde/doc/classref/kutils/KFind.html b/python/pykde/doc/classref/kutils/KFind.html deleted file mode 100644 index bea730ae..00000000 --- a/python/pykde/doc/classref/kutils/KFind.html +++ /dev/null @@ -1,222 +0,0 @@ - - - - - class KFind - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KFind


-
- - - - - -
Table of contents
Modules
kutils Classes
All Classes
-
- - - - - - - - - - -
Modulekutils
ClassKFind
InheritsTQObject
-

enums

    -
  • Result = {NoMatch, Match -}
-

methods

    -
  • KFind (pattern, options, parent) -
    - -
    returns a KFind instance
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    patternTQString
    optionslong
    parentTQWidget
    -

  • -
  • KFind (pattern, options, parent, findDialog) -
    - -
    returns a KFind instance
    In versions KDE 3.3.0 and above only
    - - - - -
    ArgumentTypeDefault
    patternTQString
    optionslong
    parentTQWidget
    findDialogTQWidget
    -

  • -
  • 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 (TQWidget)
    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
    textTQString
    patternTQString
    indexint
    optionslong
    -

  • -
  • find (text, pattern, index, options) -
    - - -
    returns (int) matchedlength (int)
    In versions KDE 3.3.0 and above only
    static
    - - - - -
    ArgumentTypeDefault
    textTQString
    patternTQRegExp
    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
    textTQString
    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 (TQWidget)
    In versions KDE 3.3.0 and above only

  • -
  • pattern () -
    - -
    returns (TQString)
    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
    dataTQString
    startPosint-1
    -

  • -
  • setData (id, data, startPos = -1) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    idint
    dataTQString
    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
    patternTQString
    -

  • -
  • 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
    textTQString
    indexint
    matchedlengthint
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kutils/KFindDialog.html b/python/pykde/doc/classref/kutils/KFindDialog.html deleted file mode 100644 index 2eb6170c..00000000 --- a/python/pykde/doc/classref/kutils/KFindDialog.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - 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 = TQStringList (), hasSelection = 0) -
    - -
    returns a KFindDialog instance
    In versions KDE 3.3.0 and above only
    - - - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    optionslong0
    findStringsTQStringListTQStringList ()
    hasSelectionbool0
    -

  • -
  • KFindDialog (modal, parent = 0, name = 0, options = 0, findStrings = TQStringList (), hasSelection = 0) -
    - -
    returns a KFindDialog instance
    In versions KDE 3.3.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    modalbool
    parentTQWidget0
    namechar0
    optionslong0
    findStringsTQStringListTQStringList ()
    hasSelectionbool0
    -

  • -
  • KFindDialog (parent, name, forReplace) -
    - -
    returns a KFindDialog instance
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar
    forReplacebool
    -

  • -
  • findExtension () -
    - -
    returns (TQWidget)
    In versions KDE 3.3.0 and above only

  • -
  • findHistory () -
    - -
    returns (TQStringList)
    In versions KDE 3.3.0 and above only

  • -
  • options () -
    - -
    returns (long)
    In versions KDE 3.3.0 and above only

  • -
  • pattern () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • setFindHistory (history) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    historyTQStringList
    -

  • -
  • 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
    patternTQString
    -

  • -
  • 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
    a0TQShowEvent
    -

  • -
  • 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
    a0TQString
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kutils/KMultiTabBar.html b/python/pykde/doc/classref/kutils/KMultiTabBar.html deleted file mode 100644 index 7d9091cc..00000000 --- a/python/pykde/doc/classref/kutils/KMultiTabBar.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - class KMultiTabBar - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMultiTabBar


-
- - - - - -
Table of contents
Modules
kutils Classes
All Classes
-
- - - - - - - - - - -
Modulekutils
ClassKMultiTabBar
InheritsTQWidget
-

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
    parentTQWidget0
    namechar0
    -

  • -
  • appendButton (pic, id = -1, popup = 0, not_used_yet = TQString .null) -
    - -
    returns (int)
    In versions KDE 3.3.0 and above only
    - - - - -
    ArgumentTypeDefault
    picTQPixmap
    idint-1
    popupTQPopupMenu0
    not_used_yetTQStringTQString .null
    -

  • -
  • appendTab (pic, id = -1, text = TQString .null) -
    - -
    returns (int)
    In versions KDE 3.3.0 and above only
    - - - -
    ArgumentTypeDefault
    picTQPixmap
    idint-1
    textTQStringTQString .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
    a0TQFont
    -

  • -
  • 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/python/pykde/doc/classref/kutils/KMultiTabBarButton.html b/python/pykde/doc/classref/kutils/KMultiTabBarButton.html deleted file mode 100644 index 18003b31..00000000 --- a/python/pykde/doc/classref/kutils/KMultiTabBarButton.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - class KMultiTabBarButton - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KMultiTabBarButton


-
- - - - - -
Table of contents
Modules
kutils Classes
All Classes
-
- - - - - - - - - - -
Modulekutils
ClassKMultiTabBarButton
InheritsTQPushButton
-

methods

    -
  • KMultiTabBarButton (pic, a0, popup, id, parent, pos, style) -
    - -
    returns a KMultiTabBarButton instance
    In versions KDE 3.3.0 and above only
    - - - - - - - -
    ArgumentTypeDefault
    picTQPixmap
    a0TQString
    popupTQPopupMenu
    idint
    parentTQWidget
    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
    a0TQString
    popupTQPopupMenu
    idint
    parentTQWidget
    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
    a0TQHideEvent
    -

  • -
  • 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
    a0TQString
    -

  • -
  • showEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    a0TQShowEvent
    -

  • -
  • sizeHint () -
    - -
    returns (TQSize)
    In versions KDE 3.3.0 and above only

  • -
  • slotClicked () -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kutils/KMultiTabBarTab.html b/python/pykde/doc/classref/kutils/KMultiTabBarTab.html deleted file mode 100644 index a76c4a6d..00000000 --- a/python/pykde/doc/classref/kutils/KMultiTabBarTab.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - 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
    picTQPixmap
    a0TQString
    idint
    parentTQWidget
    posKMultiTabBar.KMultiTabBarPosition
    styleKMultiTabBar.KMultiTabBarStyle
    -

  • -
  • drawButton (a0) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    a0TQPainter
    -

  • -
  • drawButtonClassic (a0) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    a0TQPainter
    -

  • -
  • drawButtonLabel (a0) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    a0TQPainter
    -

  • -
  • drawButtonStyled (a0) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    a0TQPainter
    -

  • -
  • 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
    a0TQString
    -

  • -
  • setIcon (a0) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    a0TQPixmap
    -

  • -
  • 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/python/pykde/doc/classref/kutils/KPluginInfo.html b/python/pykde/doc/classref/kutils/KPluginInfo.html deleted file mode 100644 index 6bf733eb..00000000 --- a/python/pykde/doc/classref/kutils/KPluginInfo.html +++ /dev/null @@ -1,213 +0,0 @@ - - - - - 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
    filenameTQString
    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 (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • category () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • comment () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • config () -
    - -
    returns (KConfig)
    In versions KDE 3.3.0 and above only

  • -
  • configgroup () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • defaults () -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only

  • -
  • dependencies () -
    - -
    returns (TQStringList)
    In versions KDE 3.3.0 and above only

  • -
  • email () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • fromFiles (files, config = 0, group = TQString .null) -
    - - -
    returns (KPluginInfo.List)
    In versions KDE 3.3.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    filesTQStringList
    configKConfig0
    groupTQStringTQString .null
    -

  • -
  • fromKPartsInstanceName (a0, config = 0, group = TQString .null) -
    - - -
    returns (KPluginInfo.List)
    In versions KDE 3.3.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    a0TQString
    configKConfig0
    groupTQStringTQString .null
    -

  • -
  • fromServices (services, config = 0, group = TQString .null) -
    - - -
    returns (KPluginInfo.List)
    In versions KDE 3.3.0 and above only
    static
    - - - -
    ArgumentTypeDefault
    servicesKService.List
    configKConfig0
    groupTQStringTQString .null
    -

  • -
  • icon () -
    - -
    returns (TQString)
    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 (TQString)
    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 (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • pluginName () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • property (key) -
    - -
    returns (TQVariant)
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    keyTQString
    -

  • -
  • 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
    groupTQString
    -

  • -
  • setPluginEnabled (enabled) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    enabledbool
    -

  • -
  • specfile () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • version () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • website () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
-

operators

    -
  • operator [] (a0) -
    Not Implemented
    -

  • -
- - - diff --git a/python/pykde/doc/classref/kutils/KPluginSelector.html b/python/pykde/doc/classref/kutils/KPluginSelector.html deleted file mode 100644 index 9bf0dc35..00000000 --- a/python/pykde/doc/classref/kutils/KPluginSelector.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - class KPluginSelector - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KPluginSelector


-
- - - - - -
Table of contents
Modules
kutils Classes
All Classes
-
- - - - - - - - - - -
Modulekutils
ClassKPluginSelector
InheritsTQWidget
-

methods

    -
  • KPluginSelector (parent, name = 0) -
    - -
    returns a KPluginSelector instance
    In versions KDE 3.3.0 and above only
    - - -
    ArgumentTypeDefault
    parentTQWidget
    namechar0
    -

  • -
  • addPlugins (instanceName, catname = TQString .null, category = TQString .null, config = 0) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - - - -
    ArgumentTypeDefault
    instanceNameTQString
    catnameTQStringTQString .null
    categoryTQStringTQString .null
    configKConfig0
    -

  • -
  • addPlugins (instance, catname = TQString .null, category = TQString .null, config = 0) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - - - -
    ArgumentTypeDefault
    instanceKInstance
    catnameTQStringTQString .null
    categoryTQStringTQString .null
    configKConfig0
    -

  • -
  • addPlugins (plugininfos, catname = TQString .null, category = TQString .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
    instanceNameTQCString
    -

  • -
  • 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/python/pykde/doc/classref/kutils/KReplace.html b/python/pykde/doc/classref/kutils/KReplace.html deleted file mode 100644 index c34b69cf..00000000 --- a/python/pykde/doc/classref/kutils/KReplace.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - 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
    patternTQString
    replacementTQString
    optionslong
    parentTQWidget0
    -

  • -
  • KReplace (pattern, replacement, options, parent, replaceDialog) -
    - -
    returns a KReplace instance
    In versions KDE 3.3.0 and above only
    - - - - - -
    ArgumentTypeDefault
    patternTQString
    replacementTQString
    optionslong
    parentTQWidget
    replaceDialogTQWidget
    -

  • -
  • 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
    textTQString
    patternTQString
    replacementTQString
    indexint
    optionslong
    -

  • -
  • replace (text, pattern, replacement, index, options) -
    - - -
    returns (int) replacedLength (int)
    In versions KDE 3.3.0 and above only
    static
    - - - - - -
    ArgumentTypeDefault
    textTQString
    patternTQRegExp
    replacementTQString
    indexint
    optionslong
    -

  • -
  • replace (text, replacementIndex, replacedLength, matchedLength) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - - - - -
    ArgumentTypeDefault
    textTQString
    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/python/pykde/doc/classref/kutils/KReplaceDialog.html b/python/pykde/doc/classref/kutils/KReplaceDialog.html deleted file mode 100644 index 66abb85b..00000000 --- a/python/pykde/doc/classref/kutils/KReplaceDialog.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - - 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 = TQStringList (), replaceStrings = TQStringList (), hasSelection = 1) -
    - -
    returns a KReplaceDialog instance
    In versions KDE 3.3.0 and above only
    - - - - - - -
    ArgumentTypeDefault
    parentTQWidget0
    namechar0
    optionslong0
    findStringsTQStringListTQStringList ()
    replaceStringsTQStringListTQStringList ()
    hasSelectionbool1
    -

  • -
  • options () -
    - -
    returns (long)
    In versions KDE 3.3.0 and above only

  • -
  • replaceExtension () -
    - -
    returns (TQWidget)
    In versions KDE 3.3.0 and above only

  • -
  • replacement () -
    - -
    returns (TQString)
    In versions KDE 3.3.0 and above only

  • -
  • replacementHistory () -
    - -
    returns (TQStringList)
    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
    historyTQStringList
    -

  • -
  • showEvent (a0) -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only
    - -
    ArgumentTypeDefault
    a0TQShowEvent
    -

  • -
  • slotOk () -
    - -
    returns nothing
    In versions KDE 3.3.0 and above only

  • -
- - - diff --git a/python/pykde/doc/classref/kutils/index.html b/python/pykde/doc/classref/kutils/index.html deleted file mode 100644 index 020f293d..00000000 --- a/python/pykde/doc/classref/kutils/index.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - 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/python/pykde/doc/dcopext.html b/python/pykde/doc/dcopext.html deleted file mode 100644 index 2045a2eb..00000000 --- a/python/pykde/doc/dcopext.html +++ /dev/null @@ -1,378 +0,0 @@ - -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
doubleTQStringTQStringList
TQCStringKURLKURL::List
TQSizeTQRectTQRegion
TQFontTQCursorTQPixmap
TQColorTQColorGroupTQPalette
TQBrushTQWidget::FocusPolicyDCOPRef
TQVariantTQDateTQTime
TQDateTimeTQImageTQKeySequence
TQPenTQPictureTQPointArray
TQValueList<DCOPRef>TQValueList<TQCString>TQMap<TQCString,DCOPRef>
TQMap<TQCString,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 TQString or TQCString (return types will -always be the Qt object type). The TQValueList types take or return a Python list of the -indicated object. The TQMap 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, TQPoint or TQStringList). -

-

-It's possible to add support for more types in the future. To be added, a type requires -a pair of overloaded TQDataStream 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 TQDataStream to operate -on a TQByteArray. The TQByteArray 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 TQByteArray, TQDataStream, IO_ReadOnly, IO_WriteOnly, TQString,\
-    TQCString, TQValueList<TQCString>
-from dcopext import numericTypes, stringTypes    
-    
-b = TQByteArray ()
-s = TQDataStream (b, IO_WriteOnly)
-
-i = 6
-d = 3.14
-t = TQString ("Hello, World")
-x = TQCString ("One")
-y = TQCString ("Two")
-z = TQCString ("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, "TQValueList<TQCString>")
-
-
-

-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 TQValueList (and TQMap - not shown) type needs a qualifier - a Python list -type doesn't know (or care) what the type of its elements is. -

-

-Other types (TQString, TQCString) 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 ("TQMap") or atype.startswith ("TQValueList"):
-	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 TQString or TQCString types; the -third if clause handles TQValueList and TQMap based types; the else clause handles -everything else. -

-

-Unpacking a TQByteArray is simpler - dcop_next always takes a TQDataStream instance and -a type name string. The code below assumes the same set of imports as above: -

- -
-
-# b is a TQByteArray to be unpacked
-s = TQDataStream (b, IO_ReadOnly)
-
-i1 = dcop_next (s, "long")
-d1 = dcop_next (s, "double")
-t1 = dcop_next (s, "TQString")
-x1 = dcop_next (s, "TQCString")
-l1 = dcop_next (s, "TQValueList<TQCString>")
-
-
-

-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/python/pykde/doc/examples.html b/python/pykde/doc/examples.html deleted file mode 100644 index 33d3b3cf..00000000 --- a/python/pykde/doc/examples.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - 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/python/pykde/doc/images/kdcop1.png b/python/pykde/doc/images/kdcop1.png deleted file mode 100644 index b0e6e5e5..00000000 Binary files a/python/pykde/doc/images/kdcop1.png and /dev/null differ diff --git a/python/pykde/doc/images/kdcop2.png b/python/pykde/doc/images/kdcop2.png deleted file mode 100644 index 2920f385..00000000 Binary files a/python/pykde/doc/images/kdcop2.png and /dev/null differ diff --git a/python/pykde/doc/images/khtmlpart.png b/python/pykde/doc/images/khtmlpart.png deleted file mode 100644 index a1bb08bc..00000000 Binary files a/python/pykde/doc/images/khtmlpart.png and /dev/null differ diff --git a/python/pykde/doc/images/mimetype.png b/python/pykde/doc/images/mimetype.png deleted file mode 100644 index b0b88d39..00000000 Binary files a/python/pykde/doc/images/mimetype.png and /dev/null differ diff --git a/python/pykde/doc/images/uisampler.png b/python/pykde/doc/images/uisampler.png deleted file mode 100644 index 5eec69c6..00000000 Binary files a/python/pykde/doc/images/uisampler.png and /dev/null differ diff --git a/python/pykde/doc/index.html b/python/pykde/doc/index.html deleted file mode 100644 index 113aaee4..00000000 --- a/python/pykde/doc/index.html +++ /dev/null @@ -1,139 +0,0 @@ -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/python/pykde/doc/index1.html b/python/pykde/doc/index1.html deleted file mode 100644 index f960ac58..00000000 --- a/python/pykde/doc/index1.html +++ /dev/null @@ -1,82 +0,0 @@ - - -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/python/pykde/doc/install.html b/python/pykde/doc/install.html deleted file mode 100644 index d75bbbe7..00000000 --- a/python/pykde/doc/install.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - 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/python/pykde/doc/kde.css b/python/pykde/doc/kde.css deleted file mode 100644 index 6206aac7..00000000 --- a/python/pykde/doc/kde.css +++ /dev/null @@ -1,8 +0,0 @@ -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/python/pykde/doc/libpythonize.html b/python/pykde/doc/libpythonize.html deleted file mode 100644 index 58a3d124..00000000 --- a/python/pykde/doc/libpythonize.html +++ /dev/null @@ -1,224 +0,0 @@ - - - -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/python/pykde/doc/limits.html b/python/pykde/doc/limits.html deleted file mode 100644 index d94cabcb..00000000 --- a/python/pykde/doc/limits.html +++ /dev/null @@ -1,427 +0,0 @@ -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 TQString class. It is -important to understand that TQStrings, 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 TQString 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 -TQStrings by using the TQString constructor -as demonstrated in the following code fragment.

qs1 = TQString('Converted Python string object')
-qs2 = TQString(u'Converted Python Unicode object')

In order to convert a TQString to a Python string object use -the Python str() function. Applying -str() to a null TQString and an empty -TQString both result in an empty Python string object.

In order to convert a TQString to a Python Unicode object use -the Python unicode() function. Applying -unicode() to a null TQString and an empty -TQString 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 = TQColor();
-c = TQColor();

In the corresponding Python fragment, the first colour is destroyed when -the second is assigned to c:

c = TQColor()
-c = TQColor()

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 = TQColor()
-self.c2 = TQColor()

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 TQObject (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 TQLabel is -not destroyed when the second is assigned to l because the -parent TQWidget still has a reference to it.

p = TQWidget()
-l = TQLabel('First label',p)
-l = TQLabel('Second label',p)

C++ Variables

Access to C++ variables is supported. They are accessed as Python instance -variables. For example:

tab = TQTab()
-tab.label = "First Tab"
-tab.r = TQRect(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 TQObject inherits two methods -(tr (const char *) and tr (const char *, const char *) from TQObject 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 TQObject or the moc generated methods) for any KDE based QObject -descendant. The tr() methods are static, so TQObject::tr () methods are available -via PyQt, as are tr() methods for any PyQt TQObject 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/python/pykde/doc/signal.html b/python/pykde/doc/signal.html deleted file mode 100644 index b95ed7f6..00000000 --- a/python/pykde/doc/signal.html +++ /dev/null @@ -1,290 +0,0 @@ -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 -TQT_SIGNAL()) or a Python signal (specified using -PYQT_SIGNAL()).

A slot can be either a Python callable object, a Qt signal (specified using -TQT_SIGNAL()), a Python signal (specified using -PYQT_SIGNAL()), or a Qt slot (specified using -TQT_SLOT()).

You connect signals to slots (and other signals) as you would from C++. For -example:

TQObject.connect(a,TQT_SIGNAL("QtSig()"),pyFunction)
-TQObject.connect(a,TQT_SIGNAL("QtSig()"),pyClass.pyMethod)
-TQObject.connect(a,TQT_SIGNAL("QtSig()"),PYQT_SIGNAL("PySig"))
-TQObject.connect(a,TQT_SIGNAL("QtSig()"),TQT_SLOT("QtSlot()"))
-TQObject.connect(a,PYQT_SIGNAL("PySig"),pyFunction)
-TQObject.connect(a,PYQT_SIGNAL("PySig"),pyClass.pyMethod)
-TQObject.connect(a,PYQT_SIGNAL("PySig"),TQT_SIGNAL("QtSig()"))
-TQObject.connect(a,PYQT_SIGNAL("PySig"),TQT_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 = TQScrollBar()
-lcd = TQLCDNumber()
-
-TQObject.connect(sbar,TQT_SIGNAL("valueChanged(int)"),lcd.display)
-TQObject.connect(sbar,TQT_SIGNAL("valueChanged(int)"),lcd,TQT_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 TQObject -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(TQT_SIGNAL("clicked()"),())
-a.emit(PYQT_SIGNAL("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 TQMenuData::insertItem (const TQString & text,
-     const TQObject * receiver, const char * member,
-     int accel = 0, int id = -1, int index = -1 )
-
-KAction ( const TQString& text, int accel,
-     const TQObject* receiver, const char* slot,
-     TQObject* parent, const char* name = 0 )

Notice the "const TQObject* 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/python/pykde/doc/static.html b/python/pykde/doc/static.html deleted file mode 100644 index 0ee4ef76..00000000 --- a/python/pykde/doc/static.html +++ /dev/null @@ -1,183 +0,0 @@ - - -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 -TQObject::connect() -is called from Python as -TQObject.connect() or -self.connect() -if called from a sub-class of -TQObject. -

-

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
-TQWidget.TabFocus
-TQFrame.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/python/pykde/doc/switches.html b/python/pykde/doc/switches.html deleted file mode 100644 index c589c7d9..00000000 --- a/python/pykde/doc/switches.html +++ /dev/null @@ -1,253 +0,0 @@ - - - - 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/python/pykde/doc/trouble.html b/python/pykde/doc/trouble.html deleted file mode 100644 index e93592f7..00000000 --- a/python/pykde/doc/trouble.html +++ /dev/null @@ -1,337 +0,0 @@ - - - - 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/python/pykde/examples/README b/python/pykde/examples/README deleted file mode 100644 index 24a7ac3f..00000000 --- a/python/pykde/examples/README +++ /dev/null @@ -1,17 +0,0 @@ -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/python/pykde/examples/aboutkde.png b/python/pykde/examples/aboutkde.png deleted file mode 100644 index 2b4681c7..00000000 Binary files a/python/pykde/examples/aboutkde.png and /dev/null differ diff --git a/python/pykde/examples/astron.png b/python/pykde/examples/astron.png deleted file mode 100644 index d2797ec3..00000000 Binary files a/python/pykde/examples/astron.png and /dev/null differ diff --git a/python/pykde/examples/example_dcopexport.py b/python/pykde/examples/example_dcopexport.py deleted file mode 100644 index 66aff6a0..00000000 --- a/python/pykde/examples/example_dcopexport.py +++ /dev/null @@ -1,136 +0,0 @@ -#!/usr/bin/env python - -""" -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 an example of a DCOP enabled application written in Python, using -# PyKDE and the dcopexport module. Taken from server.py example in kde-bindings -# which was written by Torben Weis and Julian Rockey - -import sys -from kdecore import KApplication, KCmdLineArgs, KAboutData -from dcopexport import DCOPExObj -from qt import QString, QStringList - -""" -DCOPExObj provides all of the necessary machinery to DCOP-enable -an application: the 'process' method, marshalling/demarshalling, -and the 'features' method - -To DCOP-enable an app, - - 1. Add a class which subclasses DCOPExObj (ParrotObject in - this case). Call the DCOPExObj.__init__ method with 'id'. - If 'id' isn't specified, DCOP will assing a numerical id. - 'id' is the name of the object (eg, how it will be listed - in kdcop, or returned with a dcopClient.remoteObjects call) - - 2. Identify the methods/functions that will be exposed via - DCOP - they don't have to be methods of the DCOPExObj - class, as long as the DCOPExObj class can call them. Make - sure they take/return types that DCOPExObj supports. - - 3. For each method, call self.addMethod with the complete - method signature (return type, name, list of argument - types, but no argument names) as a string and the - Python method/function that corresponds. - - 4. That's it. -""" - -# the class which will expose methods to DCOP - the methods do NOT -# need to be a member of this class. -class DeadParrotObject (DCOPExObj): - def __init__ (self, id = 'dead parrot'): - DCOPExObj.__init__ (self, id) - - # the methods available from this app via DCOP - # addMethod (, ) - 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/python/pykde/examples/example_dcopext.py b/python/pykde/examples/example_dcopext.py deleted file mode 100644 index 8f3801a8..00000000 --- a/python/pykde/examples/example_dcopext.py +++ /dev/null @@ -1,135 +0,0 @@ -""" -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/python/pykde/examples/kdeform1.ui b/python/pykde/examples/kdeform1.ui deleted file mode 100644 index 3d7a36e3..00000000 --- a/python/pykde/examples/kdeform1.ui +++ /dev/null @@ -1,335 +0,0 @@ - -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/python/pykde/examples/kdeform1.ui.h b/python/pykde/examples/kdeform1.ui.h deleted file mode 100644 index 96bc3266..00000000 --- a/python/pykde/examples/kdeform1.ui.h +++ /dev/null @@ -1,13 +0,0 @@ -/**************************************************************************** -** 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/python/pykde/examples/kpartgui.dtd b/python/pykde/examples/kpartgui.dtd deleted file mode 100644 index b3389641..00000000 --- a/python/pykde/examples/kpartgui.dtd +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/python/pykde/examples/kurldemo.py b/python/pykde/examples/kurldemo.py deleted file mode 100644 index d224b344..00000000 --- a/python/pykde/examples/kurldemo.py +++ /dev/null @@ -1,98 +0,0 @@ -""" -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/python/pykde/examples/menudemo.py b/python/pykde/examples/menudemo.py deleted file mode 100644 index 61a591a8..00000000 --- a/python/pykde/examples/menudemo.py +++ /dev/null @@ -1,291 +0,0 @@ -""" -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/python/pykde/examples/mimetype.py b/python/pykde/examples/mimetype.py deleted file mode 100644 index d1926b0b..00000000 --- a/python/pykde/examples/mimetype.py +++ /dev/null @@ -1,269 +0,0 @@ -""" -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/python/pykde/examples/pyKHTMLPart.py b/python/pykde/examples/pyKHTMLPart.py deleted file mode 100644 index 7629c115..00000000 --- a/python/pykde/examples/pyKHTMLPart.py +++ /dev/null @@ -1,214 +0,0 @@ -# -# 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/python/pykde/examples/pykde-sampler/HOWTO.samples b/python/pykde/examples/pykde-sampler/HOWTO.samples deleted file mode 100644 index 74180541..00000000 --- a/python/pykde/examples/pykde-sampler/HOWTO.samples +++ /dev/null @@ -1,60 +0,0 @@ -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/python/pykde/examples/pykde-sampler/TODO b/python/pykde/examples/pykde-sampler/TODO deleted file mode 100644 index 730cc02c..00000000 --- a/python/pykde/examples/pykde-sampler/TODO +++ /dev/null @@ -1,12 +0,0 @@ -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/python/pykde/examples/pykde-sampler/__init__.py b/python/pykde/examples/pykde-sampler/__init__.py deleted file mode 100644 index 4265cc3e..00000000 --- a/python/pykde/examples/pykde-sampler/__init__.py +++ /dev/null @@ -1 +0,0 @@ -#!/usr/bin/env python diff --git a/python/pykde/examples/pykde-sampler/about.py b/python/pykde/examples/pykde-sampler/about.py deleted file mode 100644 index 61fdd8a3..00000000 --- a/python/pykde/examples/pykde-sampler/about.py +++ /dev/null @@ -1,57 +0,0 @@ -#!/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/python/pykde/examples/pykde-sampler/basic_widgets/__init__.py b/python/pykde/examples/pykde-sampler/basic_widgets/__init__.py deleted file mode 100644 index 2442375d..00000000 --- a/python/pykde/examples/pykde-sampler/basic_widgets/__init__.py +++ /dev/null @@ -1,17 +0,0 @@ -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/python/pykde/examples/pykde-sampler/basic_widgets/datepicker.py b/python/pykde/examples/pykde-sampler/basic_widgets/datepicker.py deleted file mode 100644 index aa36de52..00000000 --- a/python/pykde/examples/pykde-sampler/basic_widgets/datepicker.py +++ /dev/null @@ -1,42 +0,0 @@ -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/python/pykde/examples/pykde-sampler/basic_widgets/historycombo.py b/python/pykde/examples/pykde-sampler/basic_widgets/historycombo.py deleted file mode 100644 index aa35b53f..00000000 --- a/python/pykde/examples/pykde-sampler/basic_widgets/historycombo.py +++ /dev/null @@ -1,53 +0,0 @@ -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/python/pykde/examples/pykde-sampler/contributors.txt b/python/pykde/examples/pykde-sampler/contributors.txt deleted file mode 100644 index 18b9a81f..00000000 --- a/python/pykde/examples/pykde-sampler/contributors.txt +++ /dev/null @@ -1,4 +0,0 @@ -# author, contributions, email -Phil Thompson, For PyQt and SIP, phil@riverbankcomputing.co.uk -Jim Bublitz, For PyKDE, jbublitz@nwinternet.com - diff --git a/python/pykde/examples/pykde-sampler/dialogs/__init__.py b/python/pykde/examples/pykde-sampler/dialogs/__init__.py deleted file mode 100644 index c6f70f9c..00000000 --- a/python/pykde/examples/pykde-sampler/dialogs/__init__.py +++ /dev/null @@ -1,18 +0,0 @@ -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/python/pykde/examples/pykde-sampler/dialogs/about/__init__.py b/python/pykde/examples/pykde-sampler/dialogs/about/__init__.py deleted file mode 100644 index 4c40da7b..00000000 --- a/python/pykde/examples/pykde-sampler/dialogs/about/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -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/python/pykde/examples/pykde-sampler/dialogs/about/aboutapp.py b/python/pykde/examples/pykde-sampler/dialogs/about/aboutapp.py deleted file mode 100644 index afdd71a9..00000000 --- a/python/pykde/examples/pykde-sampler/dialogs/about/aboutapp.py +++ /dev/null @@ -1,29 +0,0 @@ -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/python/pykde/examples/pykde-sampler/dialogs/about/aboutkde.py b/python/pykde/examples/pykde-sampler/dialogs/about/aboutkde.py deleted file mode 100644 index 9c73f9d4..00000000 --- a/python/pykde/examples/pykde-sampler/dialogs/about/aboutkde.py +++ /dev/null @@ -1,28 +0,0 @@ -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/python/pykde/examples/pykde-sampler/dialogs/bugreport.py b/python/pykde/examples/pykde-sampler/dialogs/bugreport.py deleted file mode 100644 index 6c411650..00000000 --- a/python/pykde/examples/pykde-sampler/dialogs/bugreport.py +++ /dev/null @@ -1,34 +0,0 @@ -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/python/pykde/examples/pykde-sampler/dialogs/color.py b/python/pykde/examples/pykde-sampler/dialogs/color.py deleted file mode 100644 index b749cce4..00000000 --- a/python/pykde/examples/pykde-sampler/dialogs/color.py +++ /dev/null @@ -1,42 +0,0 @@ -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/python/pykde/examples/pykde-sampler/dialogs/config.py b/python/pykde/examples/pykde-sampler/dialogs/config.py deleted file mode 100644 index 74454ab0..00000000 --- a/python/pykde/examples/pykde-sampler/dialogs/config.py +++ /dev/null @@ -1,59 +0,0 @@ - -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/python/pykde/examples/pykde-sampler/dialogs/edfind.py b/python/pykde/examples/pykde-sampler/dialogs/edfind.py deleted file mode 100644 index 685902e0..00000000 --- a/python/pykde/examples/pykde-sampler/dialogs/edfind.py +++ /dev/null @@ -1,52 +0,0 @@ - -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/python/pykde/examples/pykde-sampler/dialogs/edreplace.py b/python/pykde/examples/pykde-sampler/dialogs/edreplace.py deleted file mode 100644 index df956141..00000000 --- a/python/pykde/examples/pykde-sampler/dialogs/edreplace.py +++ /dev/null @@ -1,52 +0,0 @@ -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/python/pykde/examples/pykde-sampler/dialogs/font.py b/python/pykde/examples/pykde-sampler/dialogs/font.py deleted file mode 100644 index ae2189e5..00000000 --- a/python/pykde/examples/pykde-sampler/dialogs/font.py +++ /dev/null @@ -1,53 +0,0 @@ - -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/python/pykde/examples/pykde-sampler/dialogs/input.py b/python/pykde/examples/pykde-sampler/dialogs/input.py deleted file mode 100644 index 30edc6fb..00000000 --- a/python/pykde/examples/pykde-sampler/dialogs/input.py +++ /dev/null @@ -1,87 +0,0 @@ -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/python/pykde/examples/pykde-sampler/dialogs/key.py b/python/pykde/examples/pykde-sampler/dialogs/key.py deleted file mode 100644 index 4c437da2..00000000 --- a/python/pykde/examples/pykde-sampler/dialogs/key.py +++ /dev/null @@ -1,29 +0,0 @@ -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/python/pykde/examples/pykde-sampler/dialogs/msgbox.py b/python/pykde/examples/pykde-sampler/dialogs/msgbox.py deleted file mode 100644 index a0b3c9a3..00000000 --- a/python/pykde/examples/pykde-sampler/dialogs/msgbox.py +++ /dev/null @@ -1,141 +0,0 @@ -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/python/pykde/examples/pykde-sampler/dialogs/passwd.py b/python/pykde/examples/pykde-sampler/dialogs/passwd.py deleted file mode 100644 index 554093b9..00000000 --- a/python/pykde/examples/pykde-sampler/dialogs/passwd.py +++ /dev/null @@ -1,34 +0,0 @@ -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/python/pykde/examples/pykde-sampler/dialogs/progress.py b/python/pykde/examples/pykde-sampler/dialogs/progress.py deleted file mode 100644 index ba85b8eb..00000000 --- a/python/pykde/examples/pykde-sampler/dialogs/progress.py +++ /dev/null @@ -1,39 +0,0 @@ -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/python/pykde/examples/pykde-sampler/dialogs/tip.py b/python/pykde/examples/pykde-sampler/dialogs/tip.py deleted file mode 100644 index 29ac66b7..00000000 --- a/python/pykde/examples/pykde-sampler/dialogs/tip.py +++ /dev/null @@ -1,31 +0,0 @@ -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/python/pykde/examples/pykde-sampler/dialogs/tips b/python/pykde/examples/pykde-sampler/dialogs/tips deleted file mode 100644 index 9f24457a..00000000 --- a/python/pykde/examples/pykde-sampler/dialogs/tips +++ /dev/null @@ -1,24 +0,0 @@ - - - -

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/python/pykde/examples/pykde-sampler/gen_todo.py b/python/pykde/examples/pykde-sampler/gen_todo.py deleted file mode 100644 index 02d73dec..00000000 --- a/python/pykde/examples/pykde-sampler/gen_todo.py +++ /dev/null @@ -1,19 +0,0 @@ -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/python/pykde/examples/pykde-sampler/icon_handling/__init__.py b/python/pykde/examples/pykde-sampler/icon_handling/__init__.py deleted file mode 100644 index f25a8f09..00000000 --- a/python/pykde/examples/pykde-sampler/icon_handling/__init__.py +++ /dev/null @@ -1,18 +0,0 @@ -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/python/pykde/examples/pykde-sampler/icon_handling/misc.py b/python/pykde/examples/pykde-sampler/icon_handling/misc.py deleted file mode 100644 index 4c7f4259..00000000 --- a/python/pykde/examples/pykde-sampler/icon_handling/misc.py +++ /dev/null @@ -1,31 +0,0 @@ - -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/python/pykde/examples/pykde-sampler/icon_handling/sizes.py b/python/pykde/examples/pykde-sampler/icon_handling/sizes.py deleted file mode 100644 index b3f5e1c2..00000000 --- a/python/pykde/examples/pykde-sampler/icon_handling/sizes.py +++ /dev/null @@ -1,30 +0,0 @@ - -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/python/pykde/examples/pykde-sampler/lib.py b/python/pykde/examples/pykde-sampler/lib.py deleted file mode 100644 index 875ae1ab..00000000 --- a/python/pykde/examples/pykde-sampler/lib.py +++ /dev/null @@ -1,105 +0,0 @@ -#!/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/python/pykde/examples/pykde-sampler/misc/__init__.py b/python/pykde/examples/pykde-sampler/misc/__init__.py deleted file mode 100644 index b0c92086..00000000 --- a/python/pykde/examples/pykde-sampler/misc/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -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/python/pykde/examples/pykde-sampler/misc/gradientselect.py b/python/pykde/examples/pykde-sampler/misc/gradientselect.py deleted file mode 100644 index 724dd52f..00000000 --- a/python/pykde/examples/pykde-sampler/misc/gradientselect.py +++ /dev/null @@ -1,51 +0,0 @@ -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/python/pykde/examples/pykde-sampler/misc/passivepop.py b/python/pykde/examples/pykde-sampler/misc/passivepop.py deleted file mode 100644 index 81d383af..00000000 --- a/python/pykde/examples/pykde-sampler/misc/passivepop.py +++ /dev/null @@ -1,43 +0,0 @@ -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/python/pykde/examples/pykde-sampler/misc/window_info.py b/python/pykde/examples/pykde-sampler/misc/window_info.py deleted file mode 100644 index 08bff224..00000000 --- a/python/pykde/examples/pykde-sampler/misc/window_info.py +++ /dev/null @@ -1,35 +0,0 @@ - - - -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/python/pykde/examples/pykde-sampler/qt_widgets/CONTRIB b/python/pykde/examples/pykde-sampler/qt_widgets/CONTRIB deleted file mode 100644 index e814d1ec..00000000 --- a/python/pykde/examples/pykde-sampler/qt_widgets/CONTRIB +++ /dev/null @@ -1,537 +0,0 @@ -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/python/pykde/examples/pykde-sampler/qt_widgets/__init__.py b/python/pykde/examples/pykde-sampler/qt_widgets/__init__.py deleted file mode 100644 index ffe7bed6..00000000 --- a/python/pykde/examples/pykde-sampler/qt_widgets/__init__.py +++ /dev/null @@ -1,17 +0,0 @@ -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/python/pykde/examples/pykde-sampler/qt_widgets/table.py b/python/pykde/examples/pykde-sampler/qt_widgets/table.py deleted file mode 100644 index d6b6e3ed..00000000 --- a/python/pykde/examples/pykde-sampler/qt_widgets/table.py +++ /dev/null @@ -1,42 +0,0 @@ -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/python/pykde/examples/pykde-sampler/runner.py b/python/pykde/examples/pykde-sampler/runner.py deleted file mode 100644 index 8b1ad2c5..00000000 --- a/python/pykde/examples/pykde-sampler/runner.py +++ /dev/null @@ -1,58 +0,0 @@ -#!/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/python/pykde/examples/pykde-sampler/sampler.py b/python/pykde/examples/pykde-sampler/sampler.py deleted file mode 100644 index bacf6346..00000000 --- a/python/pykde/examples/pykde-sampler/sampler.py +++ /dev/null @@ -1,423 +0,0 @@ -#!/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/python/pykde/examples/pykde-sampler/sampler.rc b/python/pykde/examples/pykde-sampler/sampler.rc deleted file mode 100644 index fc068caf..00000000 --- a/python/pykde/examples/pykde-sampler/sampler.rc +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/python/pykde/examples/pykde-sampler/wizards/__init__.py b/python/pykde/examples/pykde-sampler/wizards/__init__.py deleted file mode 100644 index 63472b4e..00000000 --- a/python/pykde/examples/pykde-sampler/wizards/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -iconName = 'wizard' -labelText = 'Wizards' diff --git a/python/pykde/examples/pykde-sampler/wizards/wiz.py b/python/pykde/examples/pykde-sampler/wizards/wiz.py deleted file mode 100644 index 1cb5544e..00000000 --- a/python/pykde/examples/pykde-sampler/wizards/wiz.py +++ /dev/null @@ -1,2 +0,0 @@ -iconName = 'wizard' -labelText = 'Wizard' diff --git a/python/pykde/examples/pykde-sampler/xwin/__init__.py b/python/pykde/examples/pykde-sampler/xwin/__init__.py deleted file mode 100644 index f9ff0b10..00000000 --- a/python/pykde/examples/pykde-sampler/xwin/__init__.py +++ /dev/null @@ -1,18 +0,0 @@ -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/python/pykde/examples/pytestimage.png b/python/pykde/examples/pytestimage.png deleted file mode 100644 index 3bb4e688..00000000 Binary files a/python/pykde/examples/pytestimage.png and /dev/null differ diff --git a/python/pykde/examples/qxembed_example.png b/python/pykde/examples/qxembed_example.png deleted file mode 100644 index 55eb7295..00000000 Binary files a/python/pykde/examples/qxembed_example.png and /dev/null differ diff --git a/python/pykde/examples/qxembedexample.py b/python/pykde/examples/qxembedexample.py deleted file mode 100644 index 0e216315..00000000 --- a/python/pykde/examples/qxembedexample.py +++ /dev/null @@ -1,79 +0,0 @@ -# -*- 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/python/pykde/examples/qxembedexample.ui b/python/pykde/examples/qxembedexample.ui deleted file mode 100644 index d3465162..00000000 --- a/python/pykde/examples/qxembedexample.ui +++ /dev/null @@ -1,150 +0,0 @@ - -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/python/pykde/examples/systray.py b/python/pykde/examples/systray.py deleted file mode 100644 index 7391c9ba..00000000 --- a/python/pykde/examples/systray.py +++ /dev/null @@ -1,54 +0,0 @@ -""" -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/python/pykde/examples/uikmdi.py b/python/pykde/examples/uikmdi.py deleted file mode 100644 index 3a213bc8..00000000 --- a/python/pykde/examples/uikmdi.py +++ /dev/null @@ -1,203 +0,0 @@ -#!/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/python/pykde/examples/uikmdi.rc b/python/pykde/examples/uikmdi.rc deleted file mode 100644 index a7e21969..00000000 --- a/python/pykde/examples/uikmdi.rc +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - diff --git a/python/pykde/examples/uimodules/uidialogs.py b/python/pykde/examples/uimodules/uidialogs.py deleted file mode 100644 index 0f860728..00000000 --- a/python/pykde/examples/uimodules/uidialogs.py +++ /dev/null @@ -1,232 +0,0 @@ -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/python/pykde/examples/uimodules/uimenus.py b/python/pykde/examples/uimodules/uimenus.py deleted file mode 100644 index 19173b3c..00000000 --- a/python/pykde/examples/uimodules/uimenus.py +++ /dev/null @@ -1,108 +0,0 @@ -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/python/pykde/examples/uimodules/uimisc.py b/python/pykde/examples/uimodules/uimisc.py deleted file mode 100644 index 31f7c181..00000000 --- a/python/pykde/examples/uimodules/uimisc.py +++ /dev/null @@ -1,239 +0,0 @@ -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/python/pykde/examples/uimodules/uiwidgets.py b/python/pykde/examples/uimodules/uiwidgets.py deleted file mode 100644 index b12df103..00000000 --- a/python/pykde/examples/uimodules/uiwidgets.py +++ /dev/null @@ -1,754 +0,0 @@ -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/python/pykde/examples/uimodules/uixml.py b/python/pykde/examples/uimodules/uixml.py deleted file mode 100644 index baa6c866..00000000 --- a/python/pykde/examples/uimodules/uixml.py +++ /dev/null @@ -1,45 +0,0 @@ -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/python/pykde/examples/uiqxembed.py b/python/pykde/examples/uiqxembed.py deleted file mode 100644 index 4f223b70..00000000 --- a/python/pykde/examples/uiqxembed.py +++ /dev/null @@ -1,119 +0,0 @@ -#!/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/python/pykde/examples/uisampler.py b/python/pykde/examples/uisampler.py deleted file mode 100644 index 00dd006e..00000000 --- a/python/pykde/examples/uisampler.py +++ /dev/null @@ -1,227 +0,0 @@ -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/python/pykde/examples/xmlmenudemo.py b/python/pykde/examples/xmlmenudemo.py deleted file mode 100644 index ab91dd56..00000000 --- a/python/pykde/examples/xmlmenudemo.py +++ /dev/null @@ -1,291 +0,0 @@ -""" -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/python/pykde/examples/xmlmenudemoui.rc b/python/pykde/examples/xmlmenudemoui.rc deleted file mode 100644 index 58f07cf6..00000000 --- a/python/pykde/examples/xmlmenudemoui.rc +++ /dev/null @@ -1,49 +0,0 @@ - - - &File - - - - - - - - - &Edit - - - - - - - - - - - &Demo - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/python/pykde/extensions/dcopexport.py b/python/pykde/extensions/dcopexport.py deleted file mode 100644 index d724adef..00000000 --- a/python/pykde/extensions/dcopexport.py +++ /dev/null @@ -1,196 +0,0 @@ -""" -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: - 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/python/pykde/extensions/dcopext.py b/python/pykde/extensions/dcopext.py deleted file mode 100644 index 539c4d6c..00000000 --- a/python/pykde/extensions/dcopext.py +++ /dev/null @@ -1,721 +0,0 @@ -#!/usr/bin/env python -# -*- 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 - self.methods = [str(meth) for meth in dcopObj.objmethods] - 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 str(dcop_next(s, type_)) - else: - return dcop_next(s, type_) diff --git a/python/pykde/extra/kde300/kaccelaction.h b/python/pykde/extra/kde300/kaccelaction.h deleted file mode 100644 index c1e53f5a..00000000 --- a/python/pykde/extra/kde300/kaccelaction.h +++ /dev/null @@ -1,202 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable, bool bEnabled ); - ~KAccelAction(); - - void clear(); - bool init( const TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable, bool bEnabled ); - - KAccelAction& operator=( const KAccelAction& ); - - const TQString& name() const { return m_sName; } - const TQString& label() const { return m_sLabel; } - const TQString& 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 TQObject* 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 TQString& ); - void setLabel( const TQString& ); - void setWhatsThis( const TQString& ); - bool setShortcut( const KShortcut& rgCuts ); - void setSlot( const TQObject* 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& ); - - TQString toString() const; - TQString toStringInternal() const; - - static bool useFourModifierKeys(); - static void useFourModifierKeys( bool ); - - protected: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& sGroup ); - - void updateShortcuts( KAccelActions& ); - - int actionIndex( const TQString& sAction ) const; - KAccelAction* actionPtr( uint ); - const KAccelAction* actionPtr( uint ) const; - KAccelAction* actionPtr( const TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( KKeySequence cut ); - KAccelAction& operator []( uint ); - const KAccelAction& operator []( uint ) const; - - KAccelAction* insert( const TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot = 0, const char* psMethodSlot = 0, - bool bConfigurable = true, bool bEnabled = true ); - KAccelAction* insert( const TQString& sName, const TQString& sLabel ); - bool remove( const TQString& sAction ); - - bool readActions( const TQString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); - bool writeActions( const TQString& 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/python/pykde/extra/kde300/kaccelbase.h b/python/pykde/extra/kde300/kaccelbase.h deleted file mode 100644 index cd764bc3..00000000 --- a/python/pykde/extra/kde300/kaccelbase.h +++ /dev/null @@ -1,233 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -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, TQT_SLOT( scrollUp() ) );
- * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
- *	// is done automatially with the
- *	// connect below!
- * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString 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/python/pykde/extra/kde300/kicontheme.h b/python/pykde/extra/kde300/kicontheme.h deleted file mode 100644 index 29666371..00000000 --- a/python/pykde/extra/kde300/kicontheme.h +++ /dev/null @@ -1,217 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - */ - TQString description() const { return mDesc; } - - /** - * Return the name of the "example" icon. - */ - TQString example() const; - - /** - * Return the name of the screenshot. - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - */ - TQString lockOverlay() const; - - /** - * Returns the toplevel theme directory. - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - */ - TQStringList 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. - */ - TQValueList querySizes(KIcon::Group group) const; - - /** - * Query available icons for a size and context. - */ - TQStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; - - /** - * Query available icons for a context and preferred size. - */ - TQStringList 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 TQString& name, int size, KIcon::MatchType match) const; - - /** - * List all icon themes installed on the system, global and local. - */ - static TQStringList list(); - - /** - * Returns the current icon theme. - */ - static TQString current(); - - static void reconfigure(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde300/kkeyserver_x11.h b/python/pykde/extra/kde300/kkeyserver_x11.h deleted file mode 100644 index 279dbd7d..00000000 --- a/python/pykde/extra/kde300/kkeyserver_x11.h +++ /dev/null @@ -1,131 +0,0 @@ -#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 TQString& s ) - { init( s ); } - - bool initQt( int keyQt ); - bool init( const TQString& ); - - int qt() const; - TQString toStringInternal() const; - TQString toString() const; - - uint getModsRequired() const; - uint getSymVariation() const; - - operator uint() const { return m_sym; } - Sym& operator =( uint sym ) { m_sym = sym; return *this; } - - private: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - 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 ); - - TQString modToStringInternal( uint mod ); - TQString modToStringUser( uint mod ); - - bool stringToSymMod( const TQString&, uint& sym, uint& mod ); - - void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); -}; - -#endif // !_KKEYSERVER_X11_H diff --git a/python/pykde/extra/kde300/konsole_part.h b/python/pykde/extra/kde300/konsole_part.h deleted file mode 100644 index 6aba7064..00000000 --- a/python/pykde/extra/kde300/konsole_part.h +++ /dev/null @@ -1,223 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde300/krecentdirs.h b/python/pykde/extra/kde300/krecentdirs.h deleted file mode 100644 index 61a50706..00000000 --- a/python/pykde/extra/kde300/krecentdirs.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde300/ksycocafactory.h b/python/pykde/extra/kde300/ksycocafactory.h deleted file mode 100644 index ff1d43cb..00000000 --- a/python/pykde/extra/kde300/ksycocafactory.h +++ /dev/null @@ -1,135 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde300/ktoolbarbutton.h b/python/pykde/extra/kde300/ktoolbarbutton.h deleted file mode 100644 index 9b35b179..00000000 --- a/python/pykde/extra/kde300/ktoolbarbutton.h +++ /dev/null @@ -1,306 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde300/kurifilter.h b/python/pykde/extra/kde300/kurifilter.h deleted file mode 100644 index 24e09985..00000000 --- a/python/pykde/extra/kde300/kurifilter.h +++ /dev/null @@ -1,593 +0,0 @@ -/* - * 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 TQStringList; -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 -*
-*   TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& /* abs_path */ ); - - /** - * Returns the absolute path if one has already been set. - */ - TQString 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 TQString::null - */ - TQString 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 - */ - TQString 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 TQString& url ) { init( url ); return *this; } - -protected: - - /** - * Initializes the KURIFilterData on construction. - */ - void init( const KURL& url = TQString::null ); - -private: - bool m_bFiltered; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, 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 TQString 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 TQString& 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 TQString& args ) const; - - TQString m_strName; - double m_dblPriority; - -protected: - virtual void virtual_hook( int id, void* data ); -private: - class KURIFilterPluginPrivate *d; -}; - - -class KURIFilterPluginList : public TQPtrList -{ -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: - *
- * TQString 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: - *
- * TQString text = "kde.org";
- * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
- *
- * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator 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/python/pykde/extra/kde301/kaccelaction.h b/python/pykde/extra/kde301/kaccelaction.h deleted file mode 100644 index c1e53f5a..00000000 --- a/python/pykde/extra/kde301/kaccelaction.h +++ /dev/null @@ -1,202 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable, bool bEnabled ); - ~KAccelAction(); - - void clear(); - bool init( const TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable, bool bEnabled ); - - KAccelAction& operator=( const KAccelAction& ); - - const TQString& name() const { return m_sName; } - const TQString& label() const { return m_sLabel; } - const TQString& 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 TQObject* 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 TQString& ); - void setLabel( const TQString& ); - void setWhatsThis( const TQString& ); - bool setShortcut( const KShortcut& rgCuts ); - void setSlot( const TQObject* 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& ); - - TQString toString() const; - TQString toStringInternal() const; - - static bool useFourModifierKeys(); - static void useFourModifierKeys( bool ); - - protected: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& sGroup ); - - void updateShortcuts( KAccelActions& ); - - int actionIndex( const TQString& sAction ) const; - KAccelAction* actionPtr( uint ); - const KAccelAction* actionPtr( uint ) const; - KAccelAction* actionPtr( const TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( KKeySequence cut ); - KAccelAction& operator []( uint ); - const KAccelAction& operator []( uint ) const; - - KAccelAction* insert( const TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot = 0, const char* psMethodSlot = 0, - bool bConfigurable = true, bool bEnabled = true ); - KAccelAction* insert( const TQString& sName, const TQString& sLabel ); - bool remove( const TQString& sAction ); - - bool readActions( const TQString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); - bool writeActions( const TQString& 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/python/pykde/extra/kde301/kaccelbase.h b/python/pykde/extra/kde301/kaccelbase.h deleted file mode 100644 index cd764bc3..00000000 --- a/python/pykde/extra/kde301/kaccelbase.h +++ /dev/null @@ -1,233 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -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, TQT_SLOT( scrollUp() ) );
- * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
- *	// is done automatially with the
- *	// connect below!
- * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString 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/python/pykde/extra/kde301/kicontheme.h b/python/pykde/extra/kde301/kicontheme.h deleted file mode 100644 index 29666371..00000000 --- a/python/pykde/extra/kde301/kicontheme.h +++ /dev/null @@ -1,217 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - */ - TQString description() const { return mDesc; } - - /** - * Return the name of the "example" icon. - */ - TQString example() const; - - /** - * Return the name of the screenshot. - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - */ - TQString lockOverlay() const; - - /** - * Returns the toplevel theme directory. - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - */ - TQStringList 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. - */ - TQValueList querySizes(KIcon::Group group) const; - - /** - * Query available icons for a size and context. - */ - TQStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; - - /** - * Query available icons for a context and preferred size. - */ - TQStringList 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 TQString& name, int size, KIcon::MatchType match) const; - - /** - * List all icon themes installed on the system, global and local. - */ - static TQStringList list(); - - /** - * Returns the current icon theme. - */ - static TQString current(); - - static void reconfigure(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde301/kkeyserver_x11.h b/python/pykde/extra/kde301/kkeyserver_x11.h deleted file mode 100644 index 279dbd7d..00000000 --- a/python/pykde/extra/kde301/kkeyserver_x11.h +++ /dev/null @@ -1,131 +0,0 @@ -#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 TQString& s ) - { init( s ); } - - bool initQt( int keyQt ); - bool init( const TQString& ); - - int qt() const; - TQString toStringInternal() const; - TQString toString() const; - - uint getModsRequired() const; - uint getSymVariation() const; - - operator uint() const { return m_sym; } - Sym& operator =( uint sym ) { m_sym = sym; return *this; } - - private: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - 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 ); - - TQString modToStringInternal( uint mod ); - TQString modToStringUser( uint mod ); - - bool stringToSymMod( const TQString&, uint& sym, uint& mod ); - - void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); -}; - -#endif // !_KKEYSERVER_X11_H diff --git a/python/pykde/extra/kde301/konsole_part.h b/python/pykde/extra/kde301/konsole_part.h deleted file mode 100644 index 6aba7064..00000000 --- a/python/pykde/extra/kde301/konsole_part.h +++ /dev/null @@ -1,223 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde301/krecentdirs.h b/python/pykde/extra/kde301/krecentdirs.h deleted file mode 100644 index 61a50706..00000000 --- a/python/pykde/extra/kde301/krecentdirs.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde301/ksycocafactory.h b/python/pykde/extra/kde301/ksycocafactory.h deleted file mode 100644 index ff1d43cb..00000000 --- a/python/pykde/extra/kde301/ksycocafactory.h +++ /dev/null @@ -1,135 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde301/ktoolbarbutton.h b/python/pykde/extra/kde301/ktoolbarbutton.h deleted file mode 100644 index 112be544..00000000 --- a/python/pykde/extra/kde301/ktoolbarbutton.h +++ /dev/null @@ -1,313 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - virtual void setIcon( const TQPixmap &pixmap ) - { return TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde301/kurifilter.h b/python/pykde/extra/kde301/kurifilter.h deleted file mode 100644 index 24e09985..00000000 --- a/python/pykde/extra/kde301/kurifilter.h +++ /dev/null @@ -1,593 +0,0 @@ -/* - * 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 TQStringList; -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 -*
-*   TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& /* abs_path */ ); - - /** - * Returns the absolute path if one has already been set. - */ - TQString 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 TQString::null - */ - TQString 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 - */ - TQString 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 TQString& url ) { init( url ); return *this; } - -protected: - - /** - * Initializes the KURIFilterData on construction. - */ - void init( const KURL& url = TQString::null ); - -private: - bool m_bFiltered; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, 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 TQString 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 TQString& 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 TQString& args ) const; - - TQString m_strName; - double m_dblPriority; - -protected: - virtual void virtual_hook( int id, void* data ); -private: - class KURIFilterPluginPrivate *d; -}; - - -class KURIFilterPluginList : public TQPtrList -{ -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: - *
- * TQString 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: - *
- * TQString text = "kde.org";
- * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
- *
- * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator 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/python/pykde/extra/kde303/kaccelaction.h b/python/pykde/extra/kde303/kaccelaction.h deleted file mode 100644 index c1e53f5a..00000000 --- a/python/pykde/extra/kde303/kaccelaction.h +++ /dev/null @@ -1,202 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable, bool bEnabled ); - ~KAccelAction(); - - void clear(); - bool init( const TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable, bool bEnabled ); - - KAccelAction& operator=( const KAccelAction& ); - - const TQString& name() const { return m_sName; } - const TQString& label() const { return m_sLabel; } - const TQString& 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 TQObject* 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 TQString& ); - void setLabel( const TQString& ); - void setWhatsThis( const TQString& ); - bool setShortcut( const KShortcut& rgCuts ); - void setSlot( const TQObject* 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& ); - - TQString toString() const; - TQString toStringInternal() const; - - static bool useFourModifierKeys(); - static void useFourModifierKeys( bool ); - - protected: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& sGroup ); - - void updateShortcuts( KAccelActions& ); - - int actionIndex( const TQString& sAction ) const; - KAccelAction* actionPtr( uint ); - const KAccelAction* actionPtr( uint ) const; - KAccelAction* actionPtr( const TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( KKeySequence cut ); - KAccelAction& operator []( uint ); - const KAccelAction& operator []( uint ) const; - - KAccelAction* insert( const TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot = 0, const char* psMethodSlot = 0, - bool bConfigurable = true, bool bEnabled = true ); - KAccelAction* insert( const TQString& sName, const TQString& sLabel ); - bool remove( const TQString& sAction ); - - bool readActions( const TQString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); - bool writeActions( const TQString& 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/python/pykde/extra/kde303/kaccelbase.h b/python/pykde/extra/kde303/kaccelbase.h deleted file mode 100644 index cd764bc3..00000000 --- a/python/pykde/extra/kde303/kaccelbase.h +++ /dev/null @@ -1,233 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -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, TQT_SLOT( scrollUp() ) );
- * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
- *	// is done automatially with the
- *	// connect below!
- * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString 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/python/pykde/extra/kde303/kicontheme.h b/python/pykde/extra/kde303/kicontheme.h deleted file mode 100644 index 29666371..00000000 --- a/python/pykde/extra/kde303/kicontheme.h +++ /dev/null @@ -1,217 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - */ - TQString description() const { return mDesc; } - - /** - * Return the name of the "example" icon. - */ - TQString example() const; - - /** - * Return the name of the screenshot. - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - */ - TQString lockOverlay() const; - - /** - * Returns the toplevel theme directory. - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - */ - TQStringList 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. - */ - TQValueList querySizes(KIcon::Group group) const; - - /** - * Query available icons for a size and context. - */ - TQStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; - - /** - * Query available icons for a context and preferred size. - */ - TQStringList 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 TQString& name, int size, KIcon::MatchType match) const; - - /** - * List all icon themes installed on the system, global and local. - */ - static TQStringList list(); - - /** - * Returns the current icon theme. - */ - static TQString current(); - - static void reconfigure(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde303/kkeyserver_x11.h b/python/pykde/extra/kde303/kkeyserver_x11.h deleted file mode 100644 index 279dbd7d..00000000 --- a/python/pykde/extra/kde303/kkeyserver_x11.h +++ /dev/null @@ -1,131 +0,0 @@ -#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 TQString& s ) - { init( s ); } - - bool initQt( int keyQt ); - bool init( const TQString& ); - - int qt() const; - TQString toStringInternal() const; - TQString toString() const; - - uint getModsRequired() const; - uint getSymVariation() const; - - operator uint() const { return m_sym; } - Sym& operator =( uint sym ) { m_sym = sym; return *this; } - - private: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - 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 ); - - TQString modToStringInternal( uint mod ); - TQString modToStringUser( uint mod ); - - bool stringToSymMod( const TQString&, uint& sym, uint& mod ); - - void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); -}; - -#endif // !_KKEYSERVER_X11_H diff --git a/python/pykde/extra/kde303/konsole_part.h b/python/pykde/extra/kde303/konsole_part.h deleted file mode 100644 index 6aba7064..00000000 --- a/python/pykde/extra/kde303/konsole_part.h +++ /dev/null @@ -1,223 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde303/krecentdirs.h b/python/pykde/extra/kde303/krecentdirs.h deleted file mode 100644 index 61a50706..00000000 --- a/python/pykde/extra/kde303/krecentdirs.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde303/ksycocafactory.h b/python/pykde/extra/kde303/ksycocafactory.h deleted file mode 100644 index ff1d43cb..00000000 --- a/python/pykde/extra/kde303/ksycocafactory.h +++ /dev/null @@ -1,135 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde303/ktoolbarbutton.h b/python/pykde/extra/kde303/ktoolbarbutton.h deleted file mode 100644 index c551a4a0..00000000 --- a/python/pykde/extra/kde303/ktoolbarbutton.h +++ /dev/null @@ -1,313 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde303/kurifilter.h b/python/pykde/extra/kde303/kurifilter.h deleted file mode 100644 index 24e09985..00000000 --- a/python/pykde/extra/kde303/kurifilter.h +++ /dev/null @@ -1,593 +0,0 @@ -/* - * 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 TQStringList; -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 -*
-*   TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& /* abs_path */ ); - - /** - * Returns the absolute path if one has already been set. - */ - TQString 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 TQString::null - */ - TQString 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 - */ - TQString 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 TQString& url ) { init( url ); return *this; } - -protected: - - /** - * Initializes the KURIFilterData on construction. - */ - void init( const KURL& url = TQString::null ); - -private: - bool m_bFiltered; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, 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 TQString 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 TQString& 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 TQString& args ) const; - - TQString m_strName; - double m_dblPriority; - -protected: - virtual void virtual_hook( int id, void* data ); -private: - class KURIFilterPluginPrivate *d; -}; - - -class KURIFilterPluginList : public TQPtrList -{ -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: - *
- * TQString 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: - *
- * TQString text = "kde.org";
- * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
- *
- * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator 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/python/pykde/extra/kde310/kaccelaction.h b/python/pykde/extra/kde310/kaccelaction.h deleted file mode 100644 index 8e422505..00000000 --- a/python/pykde/extra/kde310/kaccelaction.h +++ /dev/null @@ -1,564 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde310/kaccelbase.h b/python/pykde/extra/kde310/kaccelbase.h deleted file mode 100644 index 03fa9c87..00000000 --- a/python/pykde/extra/kde310/kaccelbase.h +++ /dev/null @@ -1,229 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) );
- * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
- *	// is done automatially with the
- *	// connect below!
- * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde310/kicontheme.h b/python/pykde/extra/kde310/kicontheme.h deleted file mode 100644 index bfee160b..00000000 --- a/python/pykde/extra/kde310/kicontheme.h +++ /dev/null @@ -1,331 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde310/kkeyserver_x11.h b/python/pykde/extra/kde310/kkeyserver_x11.h deleted file mode 100644 index 568de854..00000000 --- a/python/pykde/extra/kde310/kkeyserver_x11.h +++ /dev/null @@ -1,435 +0,0 @@ -#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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 - */ - TQString 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 - */ - TQString modToStringUser( uint mod ); - - /** - * @internal - * Unimplemented? - */ - bool stringToSymMod( const TQString&, uint& sym, uint& mod ); - - /** - * @internal - * Unimplemented? - */ - void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); -}; - -#endif // !_KKEYSERVER_X11_H diff --git a/python/pykde/extra/kde310/konsole_part.h b/python/pykde/extra/kde310/konsole_part.h deleted file mode 100644 index 6aba7064..00000000 --- a/python/pykde/extra/kde310/konsole_part.h +++ /dev/null @@ -1,223 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde310/kpanelmenu.h b/python/pykde/extra/kde310/kpanelmenu.h deleted file mode 100644 index 734c5051..00000000 --- a/python/pykde/extra/kde310/kpanelmenu.h +++ /dev/null @@ -1,181 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde310/krecentdirs.h b/python/pykde/extra/kde310/krecentdirs.h deleted file mode 100644 index 61a50706..00000000 --- a/python/pykde/extra/kde310/krecentdirs.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde310/ksycocafactory.h b/python/pykde/extra/kde310/ksycocafactory.h deleted file mode 100644 index 1959edda..00000000 --- a/python/pykde/extra/kde310/ksycocafactory.h +++ /dev/null @@ -1,137 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde310/ktoolbarbutton.h b/python/pykde/extra/kde310/ktoolbarbutton.h deleted file mode 100644 index 6fafb1ed..00000000 --- a/python/pykde/extra/kde310/ktoolbarbutton.h +++ /dev/null @@ -1,317 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde310/kurifilter.h b/python/pykde/extra/kde310/kurifilter.h deleted file mode 100644 index 6daf7769..00000000 --- a/python/pykde/extra/kde310/kurifilter.h +++ /dev/null @@ -1,602 +0,0 @@ -/* - * 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 TQStringList; -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 -*
-*   TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& /* abs_path */ ); - - /** - * Returns the absolute path if one has already been set. - */ - TQString 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 TQString::null - */ - TQString 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 - */ - TQString 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 TQString& url ) { init( url ); return *this; } - -protected: - - /** - * Initializes the KURIFilterData on construction. - */ - void init( const KURL& url = TQString::null ); - -private: - bool m_bFiltered; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, 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 TQString 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 TQString& 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 TQString& args ) const; - - TQString m_strName; - double m_dblPriority; - -protected: - virtual void virtual_hook( int id, void* data ); -private: - class KURIFilterPluginPrivate *d; -}; - - -class KURIFilterPluginList : public TQPtrList -{ -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: - *
- * TQString 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: - *
- * TQString text = "kde.org";
- * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
- *
- * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins - * - * @since 3.1 - * - * @return a TQStringList of plugin names - */ - TQStringList 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/python/pykde/extra/kde311/kaccelaction.h b/python/pykde/extra/kde311/kaccelaction.h deleted file mode 100644 index 8e422505..00000000 --- a/python/pykde/extra/kde311/kaccelaction.h +++ /dev/null @@ -1,564 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde311/kaccelbase.h b/python/pykde/extra/kde311/kaccelbase.h deleted file mode 100644 index 03fa9c87..00000000 --- a/python/pykde/extra/kde311/kaccelbase.h +++ /dev/null @@ -1,229 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) );
- * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
- *	// is done automatially with the
- *	// connect below!
- * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde311/kicontheme.h b/python/pykde/extra/kde311/kicontheme.h deleted file mode 100644 index bfee160b..00000000 --- a/python/pykde/extra/kde311/kicontheme.h +++ /dev/null @@ -1,331 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde311/kkeyserver_x11.h b/python/pykde/extra/kde311/kkeyserver_x11.h deleted file mode 100644 index 568de854..00000000 --- a/python/pykde/extra/kde311/kkeyserver_x11.h +++ /dev/null @@ -1,435 +0,0 @@ -#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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 - */ - TQString 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 - */ - TQString modToStringUser( uint mod ); - - /** - * @internal - * Unimplemented? - */ - bool stringToSymMod( const TQString&, uint& sym, uint& mod ); - - /** - * @internal - * Unimplemented? - */ - void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); -}; - -#endif // !_KKEYSERVER_X11_H diff --git a/python/pykde/extra/kde311/konsole_part.h b/python/pykde/extra/kde311/konsole_part.h deleted file mode 100644 index 6aba7064..00000000 --- a/python/pykde/extra/kde311/konsole_part.h +++ /dev/null @@ -1,223 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde311/kpanelmenu.h b/python/pykde/extra/kde311/kpanelmenu.h deleted file mode 100644 index c4ac76e4..00000000 --- a/python/pykde/extra/kde311/kpanelmenu.h +++ /dev/null @@ -1,177 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::null); - -protected: - virtual void virtual_hook( int id, void* data ); -private: - void internalInitialize(); - KPanelMenuPrivate *d; -}; - - -#endif diff --git a/python/pykde/extra/kde311/krecentdirs.h b/python/pykde/extra/kde311/krecentdirs.h deleted file mode 100644 index 61a50706..00000000 --- a/python/pykde/extra/kde311/krecentdirs.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde311/ksycocafactory.h b/python/pykde/extra/kde311/ksycocafactory.h deleted file mode 100644 index 1959edda..00000000 --- a/python/pykde/extra/kde311/ksycocafactory.h +++ /dev/null @@ -1,137 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde311/ktoolbarbutton.h b/python/pykde/extra/kde311/ktoolbarbutton.h deleted file mode 100644 index 6fafb1ed..00000000 --- a/python/pykde/extra/kde311/ktoolbarbutton.h +++ /dev/null @@ -1,317 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde311/kurifilter.h b/python/pykde/extra/kde311/kurifilter.h deleted file mode 100644 index 6daf7769..00000000 --- a/python/pykde/extra/kde311/kurifilter.h +++ /dev/null @@ -1,602 +0,0 @@ -/* - * 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 TQStringList; -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 -*
-*   TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& /* abs_path */ ); - - /** - * Returns the absolute path if one has already been set. - */ - TQString 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 TQString::null - */ - TQString 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 - */ - TQString 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 TQString& url ) { init( url ); return *this; } - -protected: - - /** - * Initializes the KURIFilterData on construction. - */ - void init( const KURL& url = TQString::null ); - -private: - bool m_bFiltered; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, 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 TQString 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 TQString& 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 TQString& args ) const; - - TQString m_strName; - double m_dblPriority; - -protected: - virtual void virtual_hook( int id, void* data ); -private: - class KURIFilterPluginPrivate *d; -}; - - -class KURIFilterPluginList : public TQPtrList -{ -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: - *
- * TQString 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: - *
- * TQString text = "kde.org";
- * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
- *
- * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins - * - * @since 3.1 - * - * @return a TQStringList of plugin names - */ - TQStringList 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/python/pykde/extra/kde312/kaccelaction.h b/python/pykde/extra/kde312/kaccelaction.h deleted file mode 100644 index 8e422505..00000000 --- a/python/pykde/extra/kde312/kaccelaction.h +++ /dev/null @@ -1,564 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde312/kaccelbase.h b/python/pykde/extra/kde312/kaccelbase.h deleted file mode 100644 index 03fa9c87..00000000 --- a/python/pykde/extra/kde312/kaccelbase.h +++ /dev/null @@ -1,229 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) );
- * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
- *	// is done automatially with the
- *	// connect below!
- * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde312/kicontheme.h b/python/pykde/extra/kde312/kicontheme.h deleted file mode 100644 index bfee160b..00000000 --- a/python/pykde/extra/kde312/kicontheme.h +++ /dev/null @@ -1,331 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde312/kkeyserver_x11.h b/python/pykde/extra/kde312/kkeyserver_x11.h deleted file mode 100644 index 568de854..00000000 --- a/python/pykde/extra/kde312/kkeyserver_x11.h +++ /dev/null @@ -1,435 +0,0 @@ -#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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 - */ - TQString 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 - */ - TQString modToStringUser( uint mod ); - - /** - * @internal - * Unimplemented? - */ - bool stringToSymMod( const TQString&, uint& sym, uint& mod ); - - /** - * @internal - * Unimplemented? - */ - void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); -}; - -#endif // !_KKEYSERVER_X11_H diff --git a/python/pykde/extra/kde312/konsole_part.h b/python/pykde/extra/kde312/konsole_part.h deleted file mode 100644 index 6aba7064..00000000 --- a/python/pykde/extra/kde312/konsole_part.h +++ /dev/null @@ -1,223 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde312/kpanelmenu.h b/python/pykde/extra/kde312/kpanelmenu.h deleted file mode 100644 index 734c5051..00000000 --- a/python/pykde/extra/kde312/kpanelmenu.h +++ /dev/null @@ -1,181 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde312/krecentdirs.h b/python/pykde/extra/kde312/krecentdirs.h deleted file mode 100644 index 61a50706..00000000 --- a/python/pykde/extra/kde312/krecentdirs.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde312/ksycocafactory.h b/python/pykde/extra/kde312/ksycocafactory.h deleted file mode 100644 index 1959edda..00000000 --- a/python/pykde/extra/kde312/ksycocafactory.h +++ /dev/null @@ -1,137 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde312/ktoolbarbutton.h b/python/pykde/extra/kde312/ktoolbarbutton.h deleted file mode 100644 index 6fafb1ed..00000000 --- a/python/pykde/extra/kde312/ktoolbarbutton.h +++ /dev/null @@ -1,317 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde312/kurifilter.h b/python/pykde/extra/kde312/kurifilter.h deleted file mode 100644 index 6daf7769..00000000 --- a/python/pykde/extra/kde312/kurifilter.h +++ /dev/null @@ -1,602 +0,0 @@ -/* - * 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 TQStringList; -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 -*
-*   TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& /* abs_path */ ); - - /** - * Returns the absolute path if one has already been set. - */ - TQString 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 TQString::null - */ - TQString 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 - */ - TQString 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 TQString& url ) { init( url ); return *this; } - -protected: - - /** - * Initializes the KURIFilterData on construction. - */ - void init( const KURL& url = TQString::null ); - -private: - bool m_bFiltered; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, 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 TQString 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 TQString& 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 TQString& args ) const; - - TQString m_strName; - double m_dblPriority; - -protected: - virtual void virtual_hook( int id, void* data ); -private: - class KURIFilterPluginPrivate *d; -}; - - -class KURIFilterPluginList : public TQPtrList -{ -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: - *
- * TQString 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: - *
- * TQString text = "kde.org";
- * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
- *
- * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins - * - * @since 3.1 - * - * @return a TQStringList of plugin names - */ - TQStringList 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/python/pykde/extra/kde313/kaccelaction.h b/python/pykde/extra/kde313/kaccelaction.h deleted file mode 100644 index 8e422505..00000000 --- a/python/pykde/extra/kde313/kaccelaction.h +++ /dev/null @@ -1,564 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde313/kaccelbase.h b/python/pykde/extra/kde313/kaccelbase.h deleted file mode 100644 index 03fa9c87..00000000 --- a/python/pykde/extra/kde313/kaccelbase.h +++ /dev/null @@ -1,229 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) );
- * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
- *	// is done automatially with the
- *	// connect below!
- * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde313/kicontheme.h b/python/pykde/extra/kde313/kicontheme.h deleted file mode 100644 index bfee160b..00000000 --- a/python/pykde/extra/kde313/kicontheme.h +++ /dev/null @@ -1,331 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde313/kkeyserver_x11.h b/python/pykde/extra/kde313/kkeyserver_x11.h deleted file mode 100644 index 568de854..00000000 --- a/python/pykde/extra/kde313/kkeyserver_x11.h +++ /dev/null @@ -1,435 +0,0 @@ -#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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 - */ - TQString 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 - */ - TQString modToStringUser( uint mod ); - - /** - * @internal - * Unimplemented? - */ - bool stringToSymMod( const TQString&, uint& sym, uint& mod ); - - /** - * @internal - * Unimplemented? - */ - void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); -}; - -#endif // !_KKEYSERVER_X11_H diff --git a/python/pykde/extra/kde313/konsole_part.h b/python/pykde/extra/kde313/konsole_part.h deleted file mode 100644 index 6aba7064..00000000 --- a/python/pykde/extra/kde313/konsole_part.h +++ /dev/null @@ -1,223 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde313/kpanelmenu.h b/python/pykde/extra/kde313/kpanelmenu.h deleted file mode 100644 index 734c5051..00000000 --- a/python/pykde/extra/kde313/kpanelmenu.h +++ /dev/null @@ -1,181 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde313/krecentdirs.h b/python/pykde/extra/kde313/krecentdirs.h deleted file mode 100644 index 61a50706..00000000 --- a/python/pykde/extra/kde313/krecentdirs.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde313/ksycocafactory.h b/python/pykde/extra/kde313/ksycocafactory.h deleted file mode 100644 index 1959edda..00000000 --- a/python/pykde/extra/kde313/ksycocafactory.h +++ /dev/null @@ -1,137 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde313/ktoolbarbutton.h b/python/pykde/extra/kde313/ktoolbarbutton.h deleted file mode 100644 index 6fafb1ed..00000000 --- a/python/pykde/extra/kde313/ktoolbarbutton.h +++ /dev/null @@ -1,317 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde313/kurifilter.h b/python/pykde/extra/kde313/kurifilter.h deleted file mode 100644 index 6daf7769..00000000 --- a/python/pykde/extra/kde313/kurifilter.h +++ /dev/null @@ -1,602 +0,0 @@ -/* - * 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 TQStringList; -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 -*
-*   TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& /* abs_path */ ); - - /** - * Returns the absolute path if one has already been set. - */ - TQString 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 TQString::null - */ - TQString 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 - */ - TQString 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 TQString& url ) { init( url ); return *this; } - -protected: - - /** - * Initializes the KURIFilterData on construction. - */ - void init( const KURL& url = TQString::null ); - -private: - bool m_bFiltered; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, 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 TQString 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 TQString& 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 TQString& args ) const; - - TQString m_strName; - double m_dblPriority; - -protected: - virtual void virtual_hook( int id, void* data ); -private: - class KURIFilterPluginPrivate *d; -}; - - -class KURIFilterPluginList : public TQPtrList -{ -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: - *
- * TQString 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: - *
- * TQString text = "kde.org";
- * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
- *
- * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins - * - * @since 3.1 - * - * @return a TQStringList of plugin names - */ - TQStringList 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/python/pykde/extra/kde314/kaccelaction.h b/python/pykde/extra/kde314/kaccelaction.h deleted file mode 100644 index 8e422505..00000000 --- a/python/pykde/extra/kde314/kaccelaction.h +++ /dev/null @@ -1,564 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde314/kaccelbase.h b/python/pykde/extra/kde314/kaccelbase.h deleted file mode 100644 index 03fa9c87..00000000 --- a/python/pykde/extra/kde314/kaccelbase.h +++ /dev/null @@ -1,229 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) );
- * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
- *	// is done automatially with the
- *	// connect below!
- * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde314/kicontheme.h b/python/pykde/extra/kde314/kicontheme.h deleted file mode 100644 index bfee160b..00000000 --- a/python/pykde/extra/kde314/kicontheme.h +++ /dev/null @@ -1,331 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde314/kkeyserver_x11.h b/python/pykde/extra/kde314/kkeyserver_x11.h deleted file mode 100644 index 48d6c334..00000000 --- a/python/pykde/extra/kde314/kkeyserver_x11.h +++ /dev/null @@ -1,435 +0,0 @@ -#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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 - */ - TQString 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 - */ - TQString modToStringUser( uint mod ); - - /** - * @internal - * Unimplemented? - */ - bool stringToSymMod( const TQString&, uint& sym, uint& mod ); - - /** - * @internal - * Unimplemented? - */ - void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); -} - -#endif // !_KKEYSERVER_X11_H diff --git a/python/pykde/extra/kde314/konsole_part.h b/python/pykde/extra/kde314/konsole_part.h deleted file mode 100644 index 6aba7064..00000000 --- a/python/pykde/extra/kde314/konsole_part.h +++ /dev/null @@ -1,223 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde314/kpanelmenu.h b/python/pykde/extra/kde314/kpanelmenu.h deleted file mode 100644 index 032350ad..00000000 --- a/python/pykde/extra/kde314/kpanelmenu.h +++ /dev/null @@ -1,181 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde314/krecentdirs.h b/python/pykde/extra/kde314/krecentdirs.h deleted file mode 100644 index 61a50706..00000000 --- a/python/pykde/extra/kde314/krecentdirs.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde314/ksycocafactory.h b/python/pykde/extra/kde314/ksycocafactory.h deleted file mode 100644 index 1959edda..00000000 --- a/python/pykde/extra/kde314/ksycocafactory.h +++ /dev/null @@ -1,137 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde314/ktoolbarbutton.h b/python/pykde/extra/kde314/ktoolbarbutton.h deleted file mode 100644 index 6fafb1ed..00000000 --- a/python/pykde/extra/kde314/ktoolbarbutton.h +++ /dev/null @@ -1,317 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde314/kurifilter.h b/python/pykde/extra/kde314/kurifilter.h deleted file mode 100644 index 4e7ad792..00000000 --- a/python/pykde/extra/kde314/kurifilter.h +++ /dev/null @@ -1,602 +0,0 @@ -/* - * 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 TQStringList; -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 -*
-*   TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& /* abs_path */ ); - - /** - * Returns the absolute path if one has already been set. - */ - TQString 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 TQString::null - */ - TQString 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 - */ - TQString 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 TQString& url ) { init( url ); return *this; } - -protected: - - /** - * Initializes the KURIFilterData on construction. - */ - void init( const KURL& url = TQString::null ); - -private: - bool m_bFiltered; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, 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 TQString 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 TQString& 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 TQString& args ) const; - - TQString m_strName; - double m_dblPriority; - -protected: - virtual void virtual_hook( int id, void* data ); -private: - class KURIFilterPluginPrivate *d; -}; - - -class KURIFilterPluginList : public TQPtrList -{ -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: - *
- * TQString 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: - *
- * TQString text = "kde.org";
- * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
- *
- * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins - * - * @since 3.1 - * - * @return a TQStringList of plugin names - */ - TQStringList 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/python/pykde/extra/kde315/kaccelaction.h b/python/pykde/extra/kde315/kaccelaction.h deleted file mode 100644 index 8e422505..00000000 --- a/python/pykde/extra/kde315/kaccelaction.h +++ /dev/null @@ -1,564 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde315/kaccelbase.h b/python/pykde/extra/kde315/kaccelbase.h deleted file mode 100644 index 03fa9c87..00000000 --- a/python/pykde/extra/kde315/kaccelbase.h +++ /dev/null @@ -1,229 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) );
- * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
- *	// is done automatially with the
- *	// connect below!
- * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde315/kicontheme.h b/python/pykde/extra/kde315/kicontheme.h deleted file mode 100644 index 97cd9eac..00000000 --- a/python/pykde/extra/kde315/kicontheme.h +++ /dev/null @@ -1,331 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde315/kkeyserver_x11.h b/python/pykde/extra/kde315/kkeyserver_x11.h deleted file mode 100644 index 48d6c334..00000000 --- a/python/pykde/extra/kde315/kkeyserver_x11.h +++ /dev/null @@ -1,435 +0,0 @@ -#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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 - */ - TQString 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 - */ - TQString modToStringUser( uint mod ); - - /** - * @internal - * Unimplemented? - */ - bool stringToSymMod( const TQString&, uint& sym, uint& mod ); - - /** - * @internal - * Unimplemented? - */ - void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); -} - -#endif // !_KKEYSERVER_X11_H diff --git a/python/pykde/extra/kde315/konsole_part.h b/python/pykde/extra/kde315/konsole_part.h deleted file mode 100644 index 6aba7064..00000000 --- a/python/pykde/extra/kde315/konsole_part.h +++ /dev/null @@ -1,223 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde315/kpanelmenu.h b/python/pykde/extra/kde315/kpanelmenu.h deleted file mode 100644 index 032350ad..00000000 --- a/python/pykde/extra/kde315/kpanelmenu.h +++ /dev/null @@ -1,181 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde315/krecentdirs.h b/python/pykde/extra/kde315/krecentdirs.h deleted file mode 100644 index 61a50706..00000000 --- a/python/pykde/extra/kde315/krecentdirs.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde315/ksycocafactory.h b/python/pykde/extra/kde315/ksycocafactory.h deleted file mode 100644 index 1959edda..00000000 --- a/python/pykde/extra/kde315/ksycocafactory.h +++ /dev/null @@ -1,137 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde315/ktoolbarbutton.h b/python/pykde/extra/kde315/ktoolbarbutton.h deleted file mode 100644 index 6fafb1ed..00000000 --- a/python/pykde/extra/kde315/ktoolbarbutton.h +++ /dev/null @@ -1,317 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde315/kurifilter.h b/python/pykde/extra/kde315/kurifilter.h deleted file mode 100644 index 4e7ad792..00000000 --- a/python/pykde/extra/kde315/kurifilter.h +++ /dev/null @@ -1,602 +0,0 @@ -/* - * 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 TQStringList; -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 -*
-*   TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& /* abs_path */ ); - - /** - * Returns the absolute path if one has already been set. - */ - TQString 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 TQString::null - */ - TQString 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 - */ - TQString 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 TQString& url ) { init( url ); return *this; } - -protected: - - /** - * Initializes the KURIFilterData on construction. - */ - void init( const KURL& url = TQString::null ); - -private: - bool m_bFiltered; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, 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 TQString 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 TQString& 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 TQString& args ) const; - - TQString m_strName; - double m_dblPriority; - -protected: - virtual void virtual_hook( int id, void* data ); -private: - class KURIFilterPluginPrivate *d; -}; - - -class KURIFilterPluginList : public TQPtrList -{ -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: - *
- * TQString 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: - *
- * TQString text = "kde.org";
- * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
- *
- * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins - * - * @since 3.1 - * - * @return a TQStringList of plugin names - */ - TQStringList 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/python/pykde/extra/kde320/configwidget.h b/python/pykde/extra/kde320/configwidget.h deleted file mode 100644 index e289743a..00000000 --- a/python/pykde/extra/kde320/configwidget.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - 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( TQWidget *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/python/pykde/extra/kde320/kaccelaction.h b/python/pykde/extra/kde320/kaccelaction.h deleted file mode 100644 index 0418297c..00000000 --- a/python/pykde/extra/kde320/kaccelaction.h +++ /dev/null @@ -1,564 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde320/kaccelbase.h b/python/pykde/extra/kde320/kaccelbase.h deleted file mode 100644 index e2ec66e9..00000000 --- a/python/pykde/extra/kde320/kaccelbase.h +++ /dev/null @@ -1,230 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) ); - * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it - * // is done automatially with the - * // connect below! - * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - struct X; - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde320/kicontheme.h b/python/pykde/extra/kde320/kicontheme.h deleted file mode 100644 index 4c15c2d9..00000000 --- a/python/pykde/extra/kde320/kicontheme.h +++ /dev/null @@ -1,334 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde320/kkeyserver_x11.h b/python/pykde/extra/kde320/kkeyserver_x11.h deleted file mode 100644 index 1271f506..00000000 --- a/python/pykde/extra/kde320/kkeyserver_x11.h +++ /dev/null @@ -1,433 +0,0 @@ -#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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 - */ - TQString 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 - */ - TQString modToStringUser( uint mod ); - - /** - * @internal - * Unimplemented? - */ - bool stringToSymMod( const TQString&, uint& sym, uint& mod ); - - /** - * @internal - * Unimplemented? - */ - void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); -} - -#endif // !_KKEYSERVER_X11_H diff --git a/python/pykde/extra/kde320/konsole_part.h b/python/pykde/extra/kde320/konsole_part.h deleted file mode 100644 index 6aba7064..00000000 --- a/python/pykde/extra/kde320/konsole_part.h +++ /dev/null @@ -1,223 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde320/kpanelmenu.h b/python/pykde/extra/kde320/kpanelmenu.h deleted file mode 100644 index 1803e808..00000000 --- a/python/pykde/extra/kde320/kpanelmenu.h +++ /dev/null @@ -1,181 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde320/krecentdirs.h b/python/pykde/extra/kde320/krecentdirs.h deleted file mode 100644 index 61a50706..00000000 --- a/python/pykde/extra/kde320/krecentdirs.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde320/ksharedptr.h b/python/pykde/extra/kde320/ksharedptr.h deleted file mode 100644 index 8189276a..00000000 --- a/python/pykde/extra/kde320/ksharedptr.h +++ /dev/null @@ -1,171 +0,0 @@ -/* 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/python/pykde/extra/kde320/ksycocafactory.h b/python/pykde/extra/kde320/ksycocafactory.h deleted file mode 100644 index 2a114ee0..00000000 --- a/python/pykde/extra/kde320/ksycocafactory.h +++ /dev/null @@ -1,143 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde320/ktoolbarbutton.h b/python/pykde/extra/kde320/ktoolbarbutton.h deleted file mode 100644 index 5b7a85f9..00000000 --- a/python/pykde/extra/kde320/ktoolbarbutton.h +++ /dev/null @@ -1,315 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde320/kurifilter.h b/python/pykde/extra/kde320/kurifilter.h deleted file mode 100644 index 834bff8a..00000000 --- a/python/pykde/extra/kde320/kurifilter.h +++ /dev/null @@ -1,644 +0,0 @@ -/* - * 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 -* TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& abs_path ); - - /** - * Returns the absolute path if one has already been set. - * @return the absolute path, or TQString::null - * @see hasAbsolutePath() - */ - TQString 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 TQString::null - */ - TQString 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 TQString::null if not found - */ - TQString 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 - */ - TQString 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 TQString& 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 TQString& url = TQString::null ); - -private: - bool m_bCheckForExecutables; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, const char* ) const { return 0; } - - /** - * Returns the name of the configuration module for the filter. - * - * @return the name of a configuration module or TQString::null if none. - */ - virtual TQString 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 TQString& 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 TQString& args ) const; - - TQString 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 TQPtrList -{ -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 - * TQString 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 TQStringList 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 - * TQString text = "kde.org"; - * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); - * \endcode - * - * \code - * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins. - * - * @return a TQStringList of plugin names - * @since 3.1 - */ - TQStringList 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/python/pykde/extra/kde320/selectdialog.h b/python/pykde/extra/kde320/selectdialog.h deleted file mode 100644 index 680d48ef..00000000 --- a/python/pykde/extra/kde320/selectdialog.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - 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 - * - * TQPtrList 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( TQPtrList list, TQWidget *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( TQPtrList list, TQWidget *parent = 0 ); - - private: - KListBox *mResourceId; - - TQMap mResourceMap; -}; - -} - -#endif diff --git a/python/pykde/extra/kde321/configwidget.h b/python/pykde/extra/kde321/configwidget.h deleted file mode 100644 index e289743a..00000000 --- a/python/pykde/extra/kde321/configwidget.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - 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( TQWidget *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/python/pykde/extra/kde321/kaccelaction.h b/python/pykde/extra/kde321/kaccelaction.h deleted file mode 100644 index 0418297c..00000000 --- a/python/pykde/extra/kde321/kaccelaction.h +++ /dev/null @@ -1,564 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde321/kaccelbase.h b/python/pykde/extra/kde321/kaccelbase.h deleted file mode 100644 index e2ec66e9..00000000 --- a/python/pykde/extra/kde321/kaccelbase.h +++ /dev/null @@ -1,230 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) ); - * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it - * // is done automatially with the - * // connect below! - * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - struct X; - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde321/kicontheme.h b/python/pykde/extra/kde321/kicontheme.h deleted file mode 100644 index 4c15c2d9..00000000 --- a/python/pykde/extra/kde321/kicontheme.h +++ /dev/null @@ -1,334 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde321/kkeyserver_x11.h b/python/pykde/extra/kde321/kkeyserver_x11.h deleted file mode 100644 index 1271f506..00000000 --- a/python/pykde/extra/kde321/kkeyserver_x11.h +++ /dev/null @@ -1,433 +0,0 @@ -#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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 - */ - TQString 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 - */ - TQString modToStringUser( uint mod ); - - /** - * @internal - * Unimplemented? - */ - bool stringToSymMod( const TQString&, uint& sym, uint& mod ); - - /** - * @internal - * Unimplemented? - */ - void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); -} - -#endif // !_KKEYSERVER_X11_H diff --git a/python/pykde/extra/kde321/konsole_part.h b/python/pykde/extra/kde321/konsole_part.h deleted file mode 100644 index 6aba7064..00000000 --- a/python/pykde/extra/kde321/konsole_part.h +++ /dev/null @@ -1,223 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde321/kpanelmenu.h b/python/pykde/extra/kde321/kpanelmenu.h deleted file mode 100644 index 1803e808..00000000 --- a/python/pykde/extra/kde321/kpanelmenu.h +++ /dev/null @@ -1,181 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde321/krecentdirs.h b/python/pykde/extra/kde321/krecentdirs.h deleted file mode 100644 index 61a50706..00000000 --- a/python/pykde/extra/kde321/krecentdirs.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde321/ksharedptr.h b/python/pykde/extra/kde321/ksharedptr.h deleted file mode 100644 index e8dc8774..00000000 --- a/python/pykde/extra/kde321/ksharedptr.h +++ /dev/null @@ -1,171 +0,0 @@ -/* 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/python/pykde/extra/kde321/ksycocafactory.h b/python/pykde/extra/kde321/ksycocafactory.h deleted file mode 100644 index 2a114ee0..00000000 --- a/python/pykde/extra/kde321/ksycocafactory.h +++ /dev/null @@ -1,143 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde321/ktoolbarbutton.h b/python/pykde/extra/kde321/ktoolbarbutton.h deleted file mode 100644 index 5b7a85f9..00000000 --- a/python/pykde/extra/kde321/ktoolbarbutton.h +++ /dev/null @@ -1,315 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde321/kurifilter.h b/python/pykde/extra/kde321/kurifilter.h deleted file mode 100644 index 834bff8a..00000000 --- a/python/pykde/extra/kde321/kurifilter.h +++ /dev/null @@ -1,644 +0,0 @@ -/* - * 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 -* TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& abs_path ); - - /** - * Returns the absolute path if one has already been set. - * @return the absolute path, or TQString::null - * @see hasAbsolutePath() - */ - TQString 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 TQString::null - */ - TQString 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 TQString::null if not found - */ - TQString 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 - */ - TQString 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 TQString& 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 TQString& url = TQString::null ); - -private: - bool m_bCheckForExecutables; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, const char* ) const { return 0; } - - /** - * Returns the name of the configuration module for the filter. - * - * @return the name of a configuration module or TQString::null if none. - */ - virtual TQString 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 TQString& 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 TQString& args ) const; - - TQString 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 TQPtrList -{ -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 - * TQString 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 TQStringList 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 - * TQString text = "kde.org"; - * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); - * \endcode - * - * \code - * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins. - * - * @return a TQStringList of plugin names - * @since 3.1 - */ - TQStringList 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/python/pykde/extra/kde321/selectdialog.h b/python/pykde/extra/kde321/selectdialog.h deleted file mode 100644 index 680d48ef..00000000 --- a/python/pykde/extra/kde321/selectdialog.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - 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 - * - * TQPtrList 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( TQPtrList list, TQWidget *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( TQPtrList list, TQWidget *parent = 0 ); - - private: - KListBox *mResourceId; - - TQMap mResourceMap; -}; - -} - -#endif diff --git a/python/pykde/extra/kde322/configwidget.h b/python/pykde/extra/kde322/configwidget.h deleted file mode 100644 index e289743a..00000000 --- a/python/pykde/extra/kde322/configwidget.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - 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( TQWidget *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/python/pykde/extra/kde322/kaccelaction.h b/python/pykde/extra/kde322/kaccelaction.h deleted file mode 100644 index 0418297c..00000000 --- a/python/pykde/extra/kde322/kaccelaction.h +++ /dev/null @@ -1,564 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde322/kaccelbase.h b/python/pykde/extra/kde322/kaccelbase.h deleted file mode 100644 index e2ec66e9..00000000 --- a/python/pykde/extra/kde322/kaccelbase.h +++ /dev/null @@ -1,230 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) ); - * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it - * // is done automatially with the - * // connect below! - * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - struct X; - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde322/kicontheme.h b/python/pykde/extra/kde322/kicontheme.h deleted file mode 100644 index 4c15c2d9..00000000 --- a/python/pykde/extra/kde322/kicontheme.h +++ /dev/null @@ -1,334 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde322/kkeyserver_x11.h b/python/pykde/extra/kde322/kkeyserver_x11.h deleted file mode 100644 index 1271f506..00000000 --- a/python/pykde/extra/kde322/kkeyserver_x11.h +++ /dev/null @@ -1,433 +0,0 @@ -#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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 - */ - TQString 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 - */ - TQString modToStringUser( uint mod ); - - /** - * @internal - * Unimplemented? - */ - bool stringToSymMod( const TQString&, uint& sym, uint& mod ); - - /** - * @internal - * Unimplemented? - */ - void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); -} - -#endif // !_KKEYSERVER_X11_H diff --git a/python/pykde/extra/kde322/konsole_part.h b/python/pykde/extra/kde322/konsole_part.h deleted file mode 100644 index 6aba7064..00000000 --- a/python/pykde/extra/kde322/konsole_part.h +++ /dev/null @@ -1,223 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde322/kpanelmenu.h b/python/pykde/extra/kde322/kpanelmenu.h deleted file mode 100644 index 1803e808..00000000 --- a/python/pykde/extra/kde322/kpanelmenu.h +++ /dev/null @@ -1,181 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde322/krecentdirs.h b/python/pykde/extra/kde322/krecentdirs.h deleted file mode 100644 index 61a50706..00000000 --- a/python/pykde/extra/kde322/krecentdirs.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde322/ksharedptr.h b/python/pykde/extra/kde322/ksharedptr.h deleted file mode 100644 index e8dc8774..00000000 --- a/python/pykde/extra/kde322/ksharedptr.h +++ /dev/null @@ -1,171 +0,0 @@ -/* 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/python/pykde/extra/kde322/ksycocafactory.h b/python/pykde/extra/kde322/ksycocafactory.h deleted file mode 100644 index 2a114ee0..00000000 --- a/python/pykde/extra/kde322/ksycocafactory.h +++ /dev/null @@ -1,143 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde322/ktoolbarbutton.h b/python/pykde/extra/kde322/ktoolbarbutton.h deleted file mode 100644 index 5b7a85f9..00000000 --- a/python/pykde/extra/kde322/ktoolbarbutton.h +++ /dev/null @@ -1,315 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde322/kurifilter.h b/python/pykde/extra/kde322/kurifilter.h deleted file mode 100644 index 834bff8a..00000000 --- a/python/pykde/extra/kde322/kurifilter.h +++ /dev/null @@ -1,644 +0,0 @@ -/* - * 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 -* TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& abs_path ); - - /** - * Returns the absolute path if one has already been set. - * @return the absolute path, or TQString::null - * @see hasAbsolutePath() - */ - TQString 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 TQString::null - */ - TQString 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 TQString::null if not found - */ - TQString 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 - */ - TQString 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 TQString& 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 TQString& url = TQString::null ); - -private: - bool m_bCheckForExecutables; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, const char* ) const { return 0; } - - /** - * Returns the name of the configuration module for the filter. - * - * @return the name of a configuration module or TQString::null if none. - */ - virtual TQString 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 TQString& 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 TQString& args ) const; - - TQString 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 TQPtrList -{ -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 - * TQString 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 TQStringList 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 - * TQString text = "kde.org"; - * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); - * \endcode - * - * \code - * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins. - * - * @return a TQStringList of plugin names - * @since 3.1 - */ - TQStringList 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/python/pykde/extra/kde322/selectdialog.h b/python/pykde/extra/kde322/selectdialog.h deleted file mode 100644 index 680d48ef..00000000 --- a/python/pykde/extra/kde322/selectdialog.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - 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 - * - * TQPtrList 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( TQPtrList list, TQWidget *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( TQPtrList list, TQWidget *parent = 0 ); - - private: - KListBox *mResourceId; - - TQMap mResourceMap; -}; - -} - -#endif diff --git a/python/pykde/extra/kde323/configwidget.h b/python/pykde/extra/kde323/configwidget.h deleted file mode 100644 index e289743a..00000000 --- a/python/pykde/extra/kde323/configwidget.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - 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( TQWidget *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/python/pykde/extra/kde323/kaccelaction.h b/python/pykde/extra/kde323/kaccelaction.h deleted file mode 100644 index 0418297c..00000000 --- a/python/pykde/extra/kde323/kaccelaction.h +++ /dev/null @@ -1,564 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde323/kaccelbase.h b/python/pykde/extra/kde323/kaccelbase.h deleted file mode 100644 index e2ec66e9..00000000 --- a/python/pykde/extra/kde323/kaccelbase.h +++ /dev/null @@ -1,230 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) ); - * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it - * // is done automatially with the - * // connect below! - * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - struct X; - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde323/kicontheme.h b/python/pykde/extra/kde323/kicontheme.h deleted file mode 100644 index 4c15c2d9..00000000 --- a/python/pykde/extra/kde323/kicontheme.h +++ /dev/null @@ -1,334 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde323/kkeyserver_x11.h b/python/pykde/extra/kde323/kkeyserver_x11.h deleted file mode 100644 index 1271f506..00000000 --- a/python/pykde/extra/kde323/kkeyserver_x11.h +++ /dev/null @@ -1,433 +0,0 @@ -#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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 - */ - TQString 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 - */ - TQString modToStringUser( uint mod ); - - /** - * @internal - * Unimplemented? - */ - bool stringToSymMod( const TQString&, uint& sym, uint& mod ); - - /** - * @internal - * Unimplemented? - */ - void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); -} - -#endif // !_KKEYSERVER_X11_H diff --git a/python/pykde/extra/kde323/konsole_part.h b/python/pykde/extra/kde323/konsole_part.h deleted file mode 100644 index 6aba7064..00000000 --- a/python/pykde/extra/kde323/konsole_part.h +++ /dev/null @@ -1,223 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde323/kpanelmenu.h b/python/pykde/extra/kde323/kpanelmenu.h deleted file mode 100644 index 1803e808..00000000 --- a/python/pykde/extra/kde323/kpanelmenu.h +++ /dev/null @@ -1,181 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde323/krecentdirs.h b/python/pykde/extra/kde323/krecentdirs.h deleted file mode 100644 index 61a50706..00000000 --- a/python/pykde/extra/kde323/krecentdirs.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde323/ksharedptr.h b/python/pykde/extra/kde323/ksharedptr.h deleted file mode 100644 index e8dc8774..00000000 --- a/python/pykde/extra/kde323/ksharedptr.h +++ /dev/null @@ -1,171 +0,0 @@ -/* 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/python/pykde/extra/kde323/ksycocafactory.h b/python/pykde/extra/kde323/ksycocafactory.h deleted file mode 100644 index 2a114ee0..00000000 --- a/python/pykde/extra/kde323/ksycocafactory.h +++ /dev/null @@ -1,143 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde323/ktoolbarbutton.h b/python/pykde/extra/kde323/ktoolbarbutton.h deleted file mode 100644 index 5b7a85f9..00000000 --- a/python/pykde/extra/kde323/ktoolbarbutton.h +++ /dev/null @@ -1,315 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde323/kurifilter.h b/python/pykde/extra/kde323/kurifilter.h deleted file mode 100644 index 834bff8a..00000000 --- a/python/pykde/extra/kde323/kurifilter.h +++ /dev/null @@ -1,644 +0,0 @@ -/* - * 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 -* TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& abs_path ); - - /** - * Returns the absolute path if one has already been set. - * @return the absolute path, or TQString::null - * @see hasAbsolutePath() - */ - TQString 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 TQString::null - */ - TQString 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 TQString::null if not found - */ - TQString 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 - */ - TQString 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 TQString& 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 TQString& url = TQString::null ); - -private: - bool m_bCheckForExecutables; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, const char* ) const { return 0; } - - /** - * Returns the name of the configuration module for the filter. - * - * @return the name of a configuration module or TQString::null if none. - */ - virtual TQString 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 TQString& 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 TQString& args ) const; - - TQString 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 TQPtrList -{ -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 - * TQString 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 TQStringList 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 - * TQString text = "kde.org"; - * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); - * \endcode - * - * \code - * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins. - * - * @return a TQStringList of plugin names - * @since 3.1 - */ - TQStringList 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/python/pykde/extra/kde323/selectdialog.h b/python/pykde/extra/kde323/selectdialog.h deleted file mode 100644 index 680d48ef..00000000 --- a/python/pykde/extra/kde323/selectdialog.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - 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 - * - * TQPtrList 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( TQPtrList list, TQWidget *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( TQPtrList list, TQWidget *parent = 0 ); - - private: - KListBox *mResourceId; - - TQMap mResourceMap; -}; - -} - -#endif diff --git a/python/pykde/extra/kde330/configwidget.h b/python/pykde/extra/kde330/configwidget.h deleted file mode 100644 index e289743a..00000000 --- a/python/pykde/extra/kde330/configwidget.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - 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( TQWidget *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/python/pykde/extra/kde330/kaccelaction.h b/python/pykde/extra/kde330/kaccelaction.h deleted file mode 100644 index 0418297c..00000000 --- a/python/pykde/extra/kde330/kaccelaction.h +++ /dev/null @@ -1,564 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde330/kaccelbase.h b/python/pykde/extra/kde330/kaccelbase.h deleted file mode 100644 index e2ec66e9..00000000 --- a/python/pykde/extra/kde330/kaccelbase.h +++ /dev/null @@ -1,230 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) ); - * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it - * // is done automatially with the - * // connect below! - * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - struct X; - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde330/kicontheme.h b/python/pykde/extra/kde330/kicontheme.h deleted file mode 100644 index 82cd82bc..00000000 --- a/python/pykde/extra/kde330/kicontheme.h +++ /dev/null @@ -1,336 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde330/kkeyserver_x11.h b/python/pykde/extra/kde330/kkeyserver_x11.h deleted file mode 100644 index 1271f506..00000000 --- a/python/pykde/extra/kde330/kkeyserver_x11.h +++ /dev/null @@ -1,433 +0,0 @@ -#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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 - */ - TQString 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 - */ - TQString modToStringUser( uint mod ); - - /** - * @internal - * Unimplemented? - */ - bool stringToSymMod( const TQString&, uint& sym, uint& mod ); - - /** - * @internal - * Unimplemented? - */ - void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); -} - -#endif // !_KKEYSERVER_X11_H diff --git a/python/pykde/extra/kde330/konsole_part.h b/python/pykde/extra/kde330/konsole_part.h deleted file mode 100644 index e264732c..00000000 --- a/python/pykde/extra/kde330/konsole_part.h +++ /dev/null @@ -1,229 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde330/kpanelmenu.h b/python/pykde/extra/kde330/kpanelmenu.h deleted file mode 100644 index 4186156b..00000000 --- a/python/pykde/extra/kde330/kpanelmenu.h +++ /dev/null @@ -1,181 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde330/krecentdirs.h b/python/pykde/extra/kde330/krecentdirs.h deleted file mode 100644 index 61a50706..00000000 --- a/python/pykde/extra/kde330/krecentdirs.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde330/ksharedptr.h b/python/pykde/extra/kde330/ksharedptr.h deleted file mode 100644 index da710a32..00000000 --- a/python/pykde/extra/kde330/ksharedptr.h +++ /dev/null @@ -1,175 +0,0 @@ -/* 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/python/pykde/extra/kde330/ksycocafactory.h b/python/pykde/extra/kde330/ksycocafactory.h deleted file mode 100644 index 2a114ee0..00000000 --- a/python/pykde/extra/kde330/ksycocafactory.h +++ /dev/null @@ -1,143 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde330/ktoolbarbutton.h b/python/pykde/extra/kde330/ktoolbarbutton.h deleted file mode 100644 index f6b899fb..00000000 --- a/python/pykde/extra/kde330/ktoolbarbutton.h +++ /dev/null @@ -1,315 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde330/kurifilter.h b/python/pykde/extra/kde330/kurifilter.h deleted file mode 100644 index 834bff8a..00000000 --- a/python/pykde/extra/kde330/kurifilter.h +++ /dev/null @@ -1,644 +0,0 @@ -/* - * 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 -* TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& abs_path ); - - /** - * Returns the absolute path if one has already been set. - * @return the absolute path, or TQString::null - * @see hasAbsolutePath() - */ - TQString 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 TQString::null - */ - TQString 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 TQString::null if not found - */ - TQString 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 - */ - TQString 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 TQString& 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 TQString& url = TQString::null ); - -private: - bool m_bCheckForExecutables; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, const char* ) const { return 0; } - - /** - * Returns the name of the configuration module for the filter. - * - * @return the name of a configuration module or TQString::null if none. - */ - virtual TQString 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 TQString& 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 TQString& args ) const; - - TQString 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 TQPtrList -{ -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 - * TQString 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 TQStringList 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 - * TQString text = "kde.org"; - * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); - * \endcode - * - * \code - * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins. - * - * @return a TQStringList of plugin names - * @since 3.1 - */ - TQStringList 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/python/pykde/extra/kde330/selectdialog.h b/python/pykde/extra/kde330/selectdialog.h deleted file mode 100644 index 680d48ef..00000000 --- a/python/pykde/extra/kde330/selectdialog.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - 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 - * - * TQPtrList 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( TQPtrList list, TQWidget *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( TQPtrList list, TQWidget *parent = 0 ); - - private: - KListBox *mResourceId; - - TQMap mResourceMap; -}; - -} - -#endif diff --git a/python/pykde/extra/kde331/configwidget.h b/python/pykde/extra/kde331/configwidget.h deleted file mode 100644 index e289743a..00000000 --- a/python/pykde/extra/kde331/configwidget.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - 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( TQWidget *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/python/pykde/extra/kde331/kaccelaction.h b/python/pykde/extra/kde331/kaccelaction.h deleted file mode 100644 index 0418297c..00000000 --- a/python/pykde/extra/kde331/kaccelaction.h +++ /dev/null @@ -1,564 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde331/kaccelbase.h b/python/pykde/extra/kde331/kaccelbase.h deleted file mode 100644 index e2ec66e9..00000000 --- a/python/pykde/extra/kde331/kaccelbase.h +++ /dev/null @@ -1,230 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) ); - * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it - * // is done automatially with the - * // connect below! - * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - struct X; - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde331/kicontheme.h b/python/pykde/extra/kde331/kicontheme.h deleted file mode 100644 index 591a5e5e..00000000 --- a/python/pykde/extra/kde331/kicontheme.h +++ /dev/null @@ -1,338 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde331/kkeyserver_x11.h b/python/pykde/extra/kde331/kkeyserver_x11.h deleted file mode 100644 index 1271f506..00000000 --- a/python/pykde/extra/kde331/kkeyserver_x11.h +++ /dev/null @@ -1,433 +0,0 @@ -#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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 - */ - TQString 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 - */ - TQString modToStringUser( uint mod ); - - /** - * @internal - * Unimplemented? - */ - bool stringToSymMod( const TQString&, uint& sym, uint& mod ); - - /** - * @internal - * Unimplemented? - */ - void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); -} - -#endif // !_KKEYSERVER_X11_H diff --git a/python/pykde/extra/kde331/konsole_part.h b/python/pykde/extra/kde331/konsole_part.h deleted file mode 100644 index e264732c..00000000 --- a/python/pykde/extra/kde331/konsole_part.h +++ /dev/null @@ -1,229 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde331/kpanelmenu.h b/python/pykde/extra/kde331/kpanelmenu.h deleted file mode 100644 index 4186156b..00000000 --- a/python/pykde/extra/kde331/kpanelmenu.h +++ /dev/null @@ -1,181 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde331/krecentdirs.h b/python/pykde/extra/kde331/krecentdirs.h deleted file mode 100644 index 61a50706..00000000 --- a/python/pykde/extra/kde331/krecentdirs.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde331/ksharedptr.h b/python/pykde/extra/kde331/ksharedptr.h deleted file mode 100644 index da710a32..00000000 --- a/python/pykde/extra/kde331/ksharedptr.h +++ /dev/null @@ -1,175 +0,0 @@ -/* 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/python/pykde/extra/kde331/ksycocafactory.h b/python/pykde/extra/kde331/ksycocafactory.h deleted file mode 100644 index 2a114ee0..00000000 --- a/python/pykde/extra/kde331/ksycocafactory.h +++ /dev/null @@ -1,143 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde331/ktoolbarbutton.h b/python/pykde/extra/kde331/ktoolbarbutton.h deleted file mode 100644 index f6b899fb..00000000 --- a/python/pykde/extra/kde331/ktoolbarbutton.h +++ /dev/null @@ -1,315 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde331/kurifilter.h b/python/pykde/extra/kde331/kurifilter.h deleted file mode 100644 index 834bff8a..00000000 --- a/python/pykde/extra/kde331/kurifilter.h +++ /dev/null @@ -1,644 +0,0 @@ -/* - * 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 -* TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& abs_path ); - - /** - * Returns the absolute path if one has already been set. - * @return the absolute path, or TQString::null - * @see hasAbsolutePath() - */ - TQString 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 TQString::null - */ - TQString 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 TQString::null if not found - */ - TQString 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 - */ - TQString 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 TQString& 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 TQString& url = TQString::null ); - -private: - bool m_bCheckForExecutables; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, const char* ) const { return 0; } - - /** - * Returns the name of the configuration module for the filter. - * - * @return the name of a configuration module or TQString::null if none. - */ - virtual TQString 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 TQString& 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 TQString& args ) const; - - TQString 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 TQPtrList -{ -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 - * TQString 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 TQStringList 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 - * TQString text = "kde.org"; - * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); - * \endcode - * - * \code - * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins. - * - * @return a TQStringList of plugin names - * @since 3.1 - */ - TQStringList 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/python/pykde/extra/kde331/selectdialog.h b/python/pykde/extra/kde331/selectdialog.h deleted file mode 100644 index 680d48ef..00000000 --- a/python/pykde/extra/kde331/selectdialog.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - 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 - * - * TQPtrList 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( TQPtrList list, TQWidget *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( TQPtrList list, TQWidget *parent = 0 ); - - private: - KListBox *mResourceId; - - TQMap mResourceMap; -}; - -} - -#endif diff --git a/python/pykde/extra/kde332/configwidget.h b/python/pykde/extra/kde332/configwidget.h deleted file mode 100644 index e289743a..00000000 --- a/python/pykde/extra/kde332/configwidget.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - 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( TQWidget *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/python/pykde/extra/kde332/kaccelaction.h b/python/pykde/extra/kde332/kaccelaction.h deleted file mode 100644 index 0418297c..00000000 --- a/python/pykde/extra/kde332/kaccelaction.h +++ /dev/null @@ -1,564 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde332/kaccelbase.h b/python/pykde/extra/kde332/kaccelbase.h deleted file mode 100644 index e2ec66e9..00000000 --- a/python/pykde/extra/kde332/kaccelbase.h +++ /dev/null @@ -1,230 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) ); - * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it - * // is done automatially with the - * // connect below! - * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - struct X; - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde332/kicontheme.h b/python/pykde/extra/kde332/kicontheme.h deleted file mode 100644 index 73167a0f..00000000 --- a/python/pykde/extra/kde332/kicontheme.h +++ /dev/null @@ -1,338 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; -// KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde332/kkeyserver_x11.h b/python/pykde/extra/kde332/kkeyserver_x11.h deleted file mode 100644 index 1271f506..00000000 --- a/python/pykde/extra/kde332/kkeyserver_x11.h +++ /dev/null @@ -1,433 +0,0 @@ -#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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 - */ - TQString 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 - */ - TQString modToStringUser( uint mod ); - - /** - * @internal - * Unimplemented? - */ - bool stringToSymMod( const TQString&, uint& sym, uint& mod ); - - /** - * @internal - * Unimplemented? - */ - void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); -} - -#endif // !_KKEYSERVER_X11_H diff --git a/python/pykde/extra/kde332/konsole_part.h b/python/pykde/extra/kde332/konsole_part.h deleted file mode 100644 index e264732c..00000000 --- a/python/pykde/extra/kde332/konsole_part.h +++ /dev/null @@ -1,229 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde332/kpanelmenu.h b/python/pykde/extra/kde332/kpanelmenu.h deleted file mode 100644 index 4186156b..00000000 --- a/python/pykde/extra/kde332/kpanelmenu.h +++ /dev/null @@ -1,181 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde332/krecentdirs.h b/python/pykde/extra/kde332/krecentdirs.h deleted file mode 100644 index 61a50706..00000000 --- a/python/pykde/extra/kde332/krecentdirs.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde332/ksharedptr.h b/python/pykde/extra/kde332/ksharedptr.h deleted file mode 100644 index da710a32..00000000 --- a/python/pykde/extra/kde332/ksharedptr.h +++ /dev/null @@ -1,175 +0,0 @@ -/* 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/python/pykde/extra/kde332/ksycocafactory.h b/python/pykde/extra/kde332/ksycocafactory.h deleted file mode 100644 index 2a114ee0..00000000 --- a/python/pykde/extra/kde332/ksycocafactory.h +++ /dev/null @@ -1,143 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde332/ktoolbarbutton.h b/python/pykde/extra/kde332/ktoolbarbutton.h deleted file mode 100644 index f6b899fb..00000000 --- a/python/pykde/extra/kde332/ktoolbarbutton.h +++ /dev/null @@ -1,315 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde332/kurifilter.h b/python/pykde/extra/kde332/kurifilter.h deleted file mode 100644 index 834bff8a..00000000 --- a/python/pykde/extra/kde332/kurifilter.h +++ /dev/null @@ -1,644 +0,0 @@ -/* - * 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 -* TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& abs_path ); - - /** - * Returns the absolute path if one has already been set. - * @return the absolute path, or TQString::null - * @see hasAbsolutePath() - */ - TQString 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 TQString::null - */ - TQString 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 TQString::null if not found - */ - TQString 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 - */ - TQString 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 TQString& 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 TQString& url = TQString::null ); - -private: - bool m_bCheckForExecutables; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, const char* ) const { return 0; } - - /** - * Returns the name of the configuration module for the filter. - * - * @return the name of a configuration module or TQString::null if none. - */ - virtual TQString 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 TQString& 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 TQString& args ) const; - - TQString 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 TQPtrList -{ -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 - * TQString 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 TQStringList 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 - * TQString text = "kde.org"; - * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); - * \endcode - * - * \code - * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins. - * - * @return a TQStringList of plugin names - * @since 3.1 - */ - TQStringList 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/python/pykde/extra/kde332/selectdialog.h b/python/pykde/extra/kde332/selectdialog.h deleted file mode 100644 index 680d48ef..00000000 --- a/python/pykde/extra/kde332/selectdialog.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - 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 - * - * TQPtrList 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( TQPtrList list, TQWidget *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( TQPtrList list, TQWidget *parent = 0 ); - - private: - KListBox *mResourceId; - - TQMap mResourceMap; -}; - -} - -#endif diff --git a/python/pykde/extra/kde340/configwidget.h b/python/pykde/extra/kde340/configwidget.h deleted file mode 100644 index 47917edd..00000000 --- a/python/pykde/extra/kde340/configwidget.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - 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( TQWidget *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/python/pykde/extra/kde340/kaccelaction.h b/python/pykde/extra/kde340/kaccelaction.h deleted file mode 100644 index b868ee6f..00000000 --- a/python/pykde/extra/kde340/kaccelaction.h +++ /dev/null @@ -1,564 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde340/kaccelbase.h b/python/pykde/extra/kde340/kaccelbase.h deleted file mode 100644 index 0238c63a..00000000 --- a/python/pykde/extra/kde340/kaccelbase.h +++ /dev/null @@ -1,229 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) ); - * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it - * // is done automatially with the - * // connect below! - * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - struct X; - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde340/kicontheme.h b/python/pykde/extra/kde340/kicontheme.h deleted file mode 100644 index a22019f7..00000000 --- a/python/pykde/extra/kde340/kicontheme.h +++ /dev/null @@ -1,355 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; -// KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde340/kkeyserver.h b/python/pykde/extra/kde340/kkeyserver.h deleted file mode 100644 index ef673ea9..00000000 --- a/python/pykde/extra/kde340/kkeyserver.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - 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/python/pykde/extra/kde340/kkeyserver_x11.h b/python/pykde/extra/kde340/kkeyserver_x11.h deleted file mode 100644 index 47d3bbaa..00000000 --- a/python/pykde/extra/kde340/kkeyserver_x11.h +++ /dev/null @@ -1,461 +0,0 @@ -/* - 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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 TQString 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 TQString modToStringUser( uint mod ); - - /** - * @internal - * Unimplemented? - */ - KDECORE_EXPORT bool stringToSymMod( const TQString&, 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/python/pykde/extra/kde340/konsole_part.h b/python/pykde/extra/kde340/konsole_part.h deleted file mode 100644 index 51c49f5e..00000000 --- a/python/pykde/extra/kde340/konsole_part.h +++ /dev/null @@ -1,228 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde340/kpanelmenu.h b/python/pykde/extra/kde340/kpanelmenu.h deleted file mode 100644 index de0b065e..00000000 --- a/python/pykde/extra/kde340/kpanelmenu.h +++ /dev/null @@ -1,182 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde340/krecentdirs.h b/python/pykde/extra/kde340/krecentdirs.h deleted file mode 100644 index 439fb6fe..00000000 --- a/python/pykde/extra/kde340/krecentdirs.h +++ /dev/null @@ -1,70 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde340/ksharedptr.h b/python/pykde/extra/kde340/ksharedptr.h deleted file mode 100644 index ada08413..00000000 --- a/python/pykde/extra/kde340/ksharedptr.h +++ /dev/null @@ -1,175 +0,0 @@ -/* 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/python/pykde/extra/kde340/ksycocafactory.h b/python/pykde/extra/kde340/ksycocafactory.h deleted file mode 100644 index 536da286..00000000 --- a/python/pykde/extra/kde340/ksycocafactory.h +++ /dev/null @@ -1,143 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde340/ktoolbarbutton.h b/python/pykde/extra/kde340/ktoolbarbutton.h deleted file mode 100644 index 297c296b..00000000 --- a/python/pykde/extra/kde340/ktoolbarbutton.h +++ /dev/null @@ -1,329 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - /// @since 3.4 - void mousePressEvent( TQMouseEvent * ); - /// @since 3.4 - void mouseReleaseEvent( TQMouseEvent * ); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde340/kurifilter.h b/python/pykde/extra/kde340/kurifilter.h deleted file mode 100644 index 61c8aca6..00000000 --- a/python/pykde/extra/kde340/kurifilter.h +++ /dev/null @@ -1,647 +0,0 @@ -/* - * 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 -* TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& abs_path ); - - /** - * Returns the absolute path if one has already been set. - * @return the absolute path, or TQString::null - * @see hasAbsolutePath() - */ - TQString 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 TQString::null - */ - TQString 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 TQString::null if not found - */ - TQString 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 - */ - TQString 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 TQString& 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 TQString& url = TQString::null ); - -private: - bool m_bCheckForExecutables; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, const char* ) const { return 0; } - - /** - * Returns the name of the configuration module for the filter. - * - * @return the name of a configuration module or TQString::null if none. - */ - virtual TQString 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 TQString& 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 TQString& args ) const; - - TQString 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 TQPtrList -{ -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 - * TQString 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 TQStringList 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 - * TQString text = "kde.org"; - * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); - * \endcode - * - * \code - * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins. - * - * @return a TQStringList of plugin names - * @since 3.1 - */ - TQStringList 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/python/pykde/extra/kde340/selectdialog.h b/python/pykde/extra/kde340/selectdialog.h deleted file mode 100644 index 987dcb68..00000000 --- a/python/pykde/extra/kde340/selectdialog.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - 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 - * - * TQPtrList 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( TQPtrList list, TQWidget *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( TQPtrList list, TQWidget *parent = 0 ); - - private: - KListBox *mResourceId; - - TQMap mResourceMap; -}; - -} - -#endif diff --git a/python/pykde/extra/kde341/configwidget.h b/python/pykde/extra/kde341/configwidget.h deleted file mode 100644 index 47917edd..00000000 --- a/python/pykde/extra/kde341/configwidget.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - 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( TQWidget *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/python/pykde/extra/kde341/kaccelaction.h b/python/pykde/extra/kde341/kaccelaction.h deleted file mode 100644 index b868ee6f..00000000 --- a/python/pykde/extra/kde341/kaccelaction.h +++ /dev/null @@ -1,564 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde341/kaccelbase.h b/python/pykde/extra/kde341/kaccelbase.h deleted file mode 100644 index 0238c63a..00000000 --- a/python/pykde/extra/kde341/kaccelbase.h +++ /dev/null @@ -1,229 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) ); - * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it - * // is done automatially with the - * // connect below! - * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - struct X; - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde341/kicontheme.h b/python/pykde/extra/kde341/kicontheme.h deleted file mode 100644 index a22019f7..00000000 --- a/python/pykde/extra/kde341/kicontheme.h +++ /dev/null @@ -1,355 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; -// KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde341/kkeyserver.h b/python/pykde/extra/kde341/kkeyserver.h deleted file mode 100644 index ef673ea9..00000000 --- a/python/pykde/extra/kde341/kkeyserver.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - 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/python/pykde/extra/kde341/kkeyserver_x11.h b/python/pykde/extra/kde341/kkeyserver_x11.h deleted file mode 100644 index 47d3bbaa..00000000 --- a/python/pykde/extra/kde341/kkeyserver_x11.h +++ /dev/null @@ -1,461 +0,0 @@ -/* - 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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 TQString 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 TQString modToStringUser( uint mod ); - - /** - * @internal - * Unimplemented? - */ - KDECORE_EXPORT bool stringToSymMod( const TQString&, 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/python/pykde/extra/kde341/konsole_part.h b/python/pykde/extra/kde341/konsole_part.h deleted file mode 100644 index 51c49f5e..00000000 --- a/python/pykde/extra/kde341/konsole_part.h +++ /dev/null @@ -1,228 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde341/kpanelmenu.h b/python/pykde/extra/kde341/kpanelmenu.h deleted file mode 100644 index de0b065e..00000000 --- a/python/pykde/extra/kde341/kpanelmenu.h +++ /dev/null @@ -1,182 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde341/krecentdirs.h b/python/pykde/extra/kde341/krecentdirs.h deleted file mode 100644 index 439fb6fe..00000000 --- a/python/pykde/extra/kde341/krecentdirs.h +++ /dev/null @@ -1,70 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde341/ksharedptr.h b/python/pykde/extra/kde341/ksharedptr.h deleted file mode 100644 index ada08413..00000000 --- a/python/pykde/extra/kde341/ksharedptr.h +++ /dev/null @@ -1,175 +0,0 @@ -/* 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/python/pykde/extra/kde341/ksycocafactory.h b/python/pykde/extra/kde341/ksycocafactory.h deleted file mode 100644 index 536da286..00000000 --- a/python/pykde/extra/kde341/ksycocafactory.h +++ /dev/null @@ -1,143 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde341/ktoolbarbutton.h b/python/pykde/extra/kde341/ktoolbarbutton.h deleted file mode 100644 index 297c296b..00000000 --- a/python/pykde/extra/kde341/ktoolbarbutton.h +++ /dev/null @@ -1,329 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - /// @since 3.4 - void mousePressEvent( TQMouseEvent * ); - /// @since 3.4 - void mouseReleaseEvent( TQMouseEvent * ); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde341/kurifilter.h b/python/pykde/extra/kde341/kurifilter.h deleted file mode 100644 index 61c8aca6..00000000 --- a/python/pykde/extra/kde341/kurifilter.h +++ /dev/null @@ -1,647 +0,0 @@ -/* - * 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 -* TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& abs_path ); - - /** - * Returns the absolute path if one has already been set. - * @return the absolute path, or TQString::null - * @see hasAbsolutePath() - */ - TQString 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 TQString::null - */ - TQString 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 TQString::null if not found - */ - TQString 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 - */ - TQString 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 TQString& 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 TQString& url = TQString::null ); - -private: - bool m_bCheckForExecutables; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, const char* ) const { return 0; } - - /** - * Returns the name of the configuration module for the filter. - * - * @return the name of a configuration module or TQString::null if none. - */ - virtual TQString 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 TQString& 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 TQString& args ) const; - - TQString 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 TQPtrList -{ -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 - * TQString 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 TQStringList 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 - * TQString text = "kde.org"; - * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); - * \endcode - * - * \code - * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins. - * - * @return a TQStringList of plugin names - * @since 3.1 - */ - TQStringList 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/python/pykde/extra/kde341/selectdialog.h b/python/pykde/extra/kde341/selectdialog.h deleted file mode 100644 index 987dcb68..00000000 --- a/python/pykde/extra/kde341/selectdialog.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - 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 - * - * TQPtrList 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( TQPtrList list, TQWidget *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( TQPtrList list, TQWidget *parent = 0 ); - - private: - KListBox *mResourceId; - - TQMap mResourceMap; -}; - -} - -#endif diff --git a/python/pykde/extra/kde342/configwidget.h b/python/pykde/extra/kde342/configwidget.h deleted file mode 100644 index 47917edd..00000000 --- a/python/pykde/extra/kde342/configwidget.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - 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( TQWidget *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/python/pykde/extra/kde342/kaccelaction.h b/python/pykde/extra/kde342/kaccelaction.h deleted file mode 100644 index b868ee6f..00000000 --- a/python/pykde/extra/kde342/kaccelaction.h +++ /dev/null @@ -1,564 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde342/kaccelbase.h b/python/pykde/extra/kde342/kaccelbase.h deleted file mode 100644 index 0238c63a..00000000 --- a/python/pykde/extra/kde342/kaccelbase.h +++ /dev/null @@ -1,229 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) ); - * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it - * // is done automatially with the - * // connect below! - * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - struct X; - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde342/kicontheme.h b/python/pykde/extra/kde342/kicontheme.h deleted file mode 100644 index fe0d9d6a..00000000 --- a/python/pykde/extra/kde342/kicontheme.h +++ /dev/null @@ -1,355 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; -// KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde342/kkeyserver.h b/python/pykde/extra/kde342/kkeyserver.h deleted file mode 100644 index ef673ea9..00000000 --- a/python/pykde/extra/kde342/kkeyserver.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - 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/python/pykde/extra/kde342/kkeyserver_x11.h b/python/pykde/extra/kde342/kkeyserver_x11.h deleted file mode 100644 index 23ee47dc..00000000 --- a/python/pykde/extra/kde342/kkeyserver_x11.h +++ /dev/null @@ -1,469 +0,0 @@ -/* - 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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 TQString 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 TQString modToStringUser( uint mod ); - - /** - * @internal - * Unimplemented? - */ - KDECORE_EXPORT bool stringToSymMod( const TQString&, 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/python/pykde/extra/kde342/konsole_part.h b/python/pykde/extra/kde342/konsole_part.h deleted file mode 100644 index 51c49f5e..00000000 --- a/python/pykde/extra/kde342/konsole_part.h +++ /dev/null @@ -1,228 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde342/kpanelmenu.h b/python/pykde/extra/kde342/kpanelmenu.h deleted file mode 100644 index de0b065e..00000000 --- a/python/pykde/extra/kde342/kpanelmenu.h +++ /dev/null @@ -1,182 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde342/krecentdirs.h b/python/pykde/extra/kde342/krecentdirs.h deleted file mode 100644 index 439fb6fe..00000000 --- a/python/pykde/extra/kde342/krecentdirs.h +++ /dev/null @@ -1,70 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde342/ksharedptr.h b/python/pykde/extra/kde342/ksharedptr.h deleted file mode 100644 index ada08413..00000000 --- a/python/pykde/extra/kde342/ksharedptr.h +++ /dev/null @@ -1,175 +0,0 @@ -/* 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/python/pykde/extra/kde342/ksycocafactory.h b/python/pykde/extra/kde342/ksycocafactory.h deleted file mode 100644 index 536da286..00000000 --- a/python/pykde/extra/kde342/ksycocafactory.h +++ /dev/null @@ -1,143 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde342/ktoolbarbutton.h b/python/pykde/extra/kde342/ktoolbarbutton.h deleted file mode 100644 index 743c8bc8..00000000 --- a/python/pykde/extra/kde342/ktoolbarbutton.h +++ /dev/null @@ -1,329 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - /// @since 3.4 - void mousePressEvent( TQMouseEvent * ); - /// @since 3.4 - void mouseReleaseEvent( TQMouseEvent * ); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde342/kurifilter.h b/python/pykde/extra/kde342/kurifilter.h deleted file mode 100644 index 61c8aca6..00000000 --- a/python/pykde/extra/kde342/kurifilter.h +++ /dev/null @@ -1,647 +0,0 @@ -/* - * 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 -* TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& abs_path ); - - /** - * Returns the absolute path if one has already been set. - * @return the absolute path, or TQString::null - * @see hasAbsolutePath() - */ - TQString 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 TQString::null - */ - TQString 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 TQString::null if not found - */ - TQString 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 - */ - TQString 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 TQString& 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 TQString& url = TQString::null ); - -private: - bool m_bCheckForExecutables; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, const char* ) const { return 0; } - - /** - * Returns the name of the configuration module for the filter. - * - * @return the name of a configuration module or TQString::null if none. - */ - virtual TQString 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 TQString& 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 TQString& args ) const; - - TQString 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 TQPtrList -{ -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 - * TQString 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 TQStringList 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 - * TQString text = "kde.org"; - * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); - * \endcode - * - * \code - * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins. - * - * @return a TQStringList of plugin names - * @since 3.1 - */ - TQStringList 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/python/pykde/extra/kde342/selectdialog.h b/python/pykde/extra/kde342/selectdialog.h deleted file mode 100644 index 987dcb68..00000000 --- a/python/pykde/extra/kde342/selectdialog.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - 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 - * - * TQPtrList 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( TQPtrList list, TQWidget *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( TQPtrList list, TQWidget *parent = 0 ); - - private: - KListBox *mResourceId; - - TQMap mResourceMap; -}; - -} - -#endif diff --git a/python/pykde/extra/kde343/configwidget.h b/python/pykde/extra/kde343/configwidget.h deleted file mode 100644 index 47917edd..00000000 --- a/python/pykde/extra/kde343/configwidget.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - 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( TQWidget *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/python/pykde/extra/kde343/kaccelaction.h b/python/pykde/extra/kde343/kaccelaction.h deleted file mode 100644 index b868ee6f..00000000 --- a/python/pykde/extra/kde343/kaccelaction.h +++ /dev/null @@ -1,564 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString m_sName, - m_sLabel, - m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde343/kaccelbase.h b/python/pykde/extra/kde343/kaccelbase.h deleted file mode 100644 index 0238c63a..00000000 --- a/python/pykde/extra/kde343/kaccelbase.h +++ /dev/null @@ -1,229 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) ); - * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it - * // is done automatially with the - * // connect below! - * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); - - const TQString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - struct X; - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde343/kicontheme.h b/python/pykde/extra/kde343/kicontheme.h deleted file mode 100644 index fe0d9d6a..00000000 --- a/python/pykde/extra/kde343/kicontheme.h +++ /dev/null @@ -1,355 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; -// KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde343/kkeyserver.h b/python/pykde/extra/kde343/kkeyserver.h deleted file mode 100644 index ef673ea9..00000000 --- a/python/pykde/extra/kde343/kkeyserver.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - 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/python/pykde/extra/kde343/kkeyserver_x11.h b/python/pykde/extra/kde343/kkeyserver_x11.h deleted file mode 100644 index 23ee47dc..00000000 --- a/python/pykde/extra/kde343/kkeyserver_x11.h +++ /dev/null @@ -1,469 +0,0 @@ -/* - 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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 TQString 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 TQString modToStringUser( uint mod ); - - /** - * @internal - * Unimplemented? - */ - KDECORE_EXPORT bool stringToSymMod( const TQString&, 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/python/pykde/extra/kde343/konsole_part.h b/python/pykde/extra/kde343/konsole_part.h deleted file mode 100644 index 51c49f5e..00000000 --- a/python/pykde/extra/kde343/konsole_part.h +++ /dev/null @@ -1,228 +0,0 @@ -/* - 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - static KInstance *instance(); - - private: - static KInstance *s_instance; - static KAboutData *s_aboutData; -}; - -////////////////////////////////////////////////////////////////////// - -class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface -{ - Q_OBJECT - public: - konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited(); - void receivedData( const TQString& 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 TQString& s ); - -// void doneSession(TESession*); - void sessionDestroyed(); -// void configureRequest(TEWidget*,int,int x,int y); - void updateTitle(); - void enableMasterModeConnections(); - - private slots: - void emitOpenURLRequest(const TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString s_word_seps; // characters that are considered part of a word - TQString 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 TQString& program, - const TQStrList& args ); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde343/kpanelmenu.h b/python/pykde/extra/kde343/kpanelmenu.h deleted file mode 100644 index de0b065e..00000000 --- a/python/pykde/extra/kde343/kpanelmenu.h +++ /dev/null @@ -1,182 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde343/krecentdirs.h b/python/pykde/extra/kde343/krecentdirs.h deleted file mode 100644 index 439fb6fe..00000000 --- a/python/pykde/extra/kde343/krecentdirs.h +++ /dev/null @@ -1,70 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde343/ksharedptr.h b/python/pykde/extra/kde343/ksharedptr.h deleted file mode 100644 index ada08413..00000000 --- a/python/pykde/extra/kde343/ksharedptr.h +++ /dev/null @@ -1,175 +0,0 @@ -/* 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/python/pykde/extra/kde343/ksycocafactory.h b/python/pykde/extra/kde343/ksycocafactory.h deleted file mode 100644 index 536da286..00000000 --- a/python/pykde/extra/kde343/ksycocafactory.h +++ /dev/null @@ -1,143 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde343/ktoolbarbutton.h b/python/pykde/extra/kde343/ktoolbarbutton.h deleted file mode 100644 index 743c8bc8..00000000 --- a/python/pykde/extra/kde343/ktoolbarbutton.h +++ /dev/null @@ -1,329 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - /// @since 3.4 - void mousePressEvent( TQMouseEvent * ); - /// @since 3.4 - void mouseReleaseEvent( TQMouseEvent * ); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde343/kurifilter.h b/python/pykde/extra/kde343/kurifilter.h deleted file mode 100644 index 61c8aca6..00000000 --- a/python/pykde/extra/kde343/kurifilter.h +++ /dev/null @@ -1,647 +0,0 @@ -/* - * 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 -* TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& abs_path ); - - /** - * Returns the absolute path if one has already been set. - * @return the absolute path, or TQString::null - * @see hasAbsolutePath() - */ - TQString 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 TQString::null - */ - TQString 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 TQString::null if not found - */ - TQString 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 - */ - TQString 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 TQString& 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 TQString& url = TQString::null ); - -private: - bool m_bCheckForExecutables; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, const char* ) const { return 0; } - - /** - * Returns the name of the configuration module for the filter. - * - * @return the name of a configuration module or TQString::null if none. - */ - virtual TQString 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 TQString& 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 TQString& args ) const; - - TQString 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 TQPtrList -{ -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 - * TQString 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 TQStringList 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 - * TQString text = "kde.org"; - * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); - * \endcode - * - * \code - * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins. - * - * @return a TQStringList of plugin names - * @since 3.1 - */ - TQStringList 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/python/pykde/extra/kde343/selectdialog.h b/python/pykde/extra/kde343/selectdialog.h deleted file mode 100644 index 987dcb68..00000000 --- a/python/pykde/extra/kde343/selectdialog.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - 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 - * - * TQPtrList 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( TQPtrList list, TQWidget *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( TQPtrList list, TQWidget *parent = 0 ); - - private: - KListBox *mResourceId; - - TQMap mResourceMap; -}; - -} - -#endif diff --git a/python/pykde/extra/kde350/configwidget.h b/python/pykde/extra/kde350/configwidget.h deleted file mode 100644 index 47917edd..00000000 --- a/python/pykde/extra/kde350/configwidget.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - 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( TQWidget *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/python/pykde/extra/kde350/kaccelaction.h b/python/pykde/extra/kde350/kaccelaction.h deleted file mode 100644 index d55e4517..00000000 --- a/python/pykde/extra/kde350/kaccelaction.h +++ /dev/null @@ -1,576 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString 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 TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde350/kaccelbase.h b/python/pykde/extra/kde350/kaccelbase.h deleted file mode 100644 index babf304b..00000000 --- a/python/pykde/extra/kde350/kaccelbase.h +++ /dev/null @@ -1,260 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) ); - * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it - * // is done automatially with the - * // connect below! - * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - /** Const version of the above. */ - const KAccelAction* actionPtr( const TQString& 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 TQString& configGroup() const { return m_sConfigGroup; } - /** Set the group (in the configuration file) for storing - * accelerators. - */ - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - struct X; - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde350/kicontheme.h b/python/pykde/extra/kde350/kicontheme.h deleted file mode 100644 index 9c08f9c6..00000000 --- a/python/pykde/extra/kde350/kicontheme.h +++ /dev/null @@ -1,355 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde350/kkeyserver.h b/python/pykde/extra/kde350/kkeyserver.h deleted file mode 100644 index ef673ea9..00000000 --- a/python/pykde/extra/kde350/kkeyserver.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - 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/python/pykde/extra/kde350/kkeyserver_x11.h b/python/pykde/extra/kde350/kkeyserver_x11.h deleted file mode 100644 index dbca533e..00000000 --- a/python/pykde/extra/kde350/kkeyserver_x11.h +++ /dev/null @@ -1,477 +0,0 @@ -/* - 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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 TQString 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 TQString 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 TQString& mod ); - - /** - * @internal - * Unimplemented? - */ - KDECORE_EXPORT bool stringToSymMod( const TQString&, 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/python/pykde/extra/kde350/konsole_part.h b/python/pykde/extra/kde350/konsole_part.h deleted file mode 100644 index d526c1a6..00000000 --- a/python/pykde/extra/kde350/konsole_part.h +++ /dev/null @@ -1,241 +0,0 @@ -/* -*- 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class KActionMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - 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(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited( KProcess * ); - void receivedData( const TQString& 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 TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString 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 TQString& program, - const TQStrList& args ); - void newSession(); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); - void setAutoDestroy( bool ); - void setAutoStartShell( bool ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde350/kpanelmenu.h b/python/pykde/extra/kde350/kpanelmenu.h deleted file mode 100644 index de0b065e..00000000 --- a/python/pykde/extra/kde350/kpanelmenu.h +++ /dev/null @@ -1,182 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde350/krecentdirs.h b/python/pykde/extra/kde350/krecentdirs.h deleted file mode 100644 index 439fb6fe..00000000 --- a/python/pykde/extra/kde350/krecentdirs.h +++ /dev/null @@ -1,70 +0,0 @@ -/* -*- 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 TQStringList list(const TQString &fileClass); - - /** - * Returns the most recently used directory accociated with this file-class. - */ - static TQString dir(const TQString &fileClass); - - /** - * Associates @p directory with @p fileClass - */ - static void add(const TQString &fileClass, const TQString &directory); -}; - -#endif diff --git a/python/pykde/extra/kde350/ksharedptr.h b/python/pykde/extra/kde350/ksharedptr.h deleted file mode 100644 index ada08413..00000000 --- a/python/pykde/extra/kde350/ksharedptr.h +++ /dev/null @@ -1,175 +0,0 @@ -/* 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/python/pykde/extra/kde350/ksycocafactory.h b/python/pykde/extra/kde350/ksycocafactory.h deleted file mode 100644 index 536da286..00000000 --- a/python/pykde/extra/kde350/ksycocafactory.h +++ /dev/null @@ -1,143 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde350/ktoolbarbutton.h b/python/pykde/extra/kde350/ktoolbarbutton.h deleted file mode 100644 index eab46983..00000000 --- a/python/pykde/extra/kde350/ktoolbarbutton.h +++ /dev/null @@ -1,330 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - bool event(TQEvent *e); - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - /// @since 3.4 - void mousePressEvent( TQMouseEvent * ); - /// @since 3.4 - void mouseReleaseEvent( TQMouseEvent * ); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde350/kurifilter.h b/python/pykde/extra/kde350/kurifilter.h deleted file mode 100644 index 47332947..00000000 --- a/python/pykde/extra/kde350/kurifilter.h +++ /dev/null @@ -1,647 +0,0 @@ -/* - * 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 -* TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& abs_path ); - - /** - * Returns the absolute path if one has already been set. - * @return the absolute path, or TQString::null - * @see hasAbsolutePath() - */ - TQString 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 TQString::null - */ - TQString 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 TQString::null if not found - */ - TQString 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 - */ - TQString 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 TQString& 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 TQString& url = TQString::null ); - -private: - bool m_bCheckForExecutables; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, const char* ) const { return 0; } - - /** - * Returns the name of the configuration module for the filter. - * - * @return the name of a configuration module or TQString::null if none. - */ - virtual TQString 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 TQString& 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 TQString& args ) const; - - TQString 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 TQPtrList -{ -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 - * TQString 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 TQStringList 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 - * TQString text = "kde.org"; - * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); - * \endcode - * - * \code - * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins. - * - * @return a TQStringList of plugin names - * @since 3.1 - */ - TQStringList 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/python/pykde/extra/kde350/selectdialog.h b/python/pykde/extra/kde350/selectdialog.h deleted file mode 100644 index 987dcb68..00000000 --- a/python/pykde/extra/kde350/selectdialog.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - 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 - * - * TQPtrList 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( TQPtrList list, TQWidget *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( TQPtrList list, TQWidget *parent = 0 ); - - private: - KListBox *mResourceId; - - TQMap mResourceMap; -}; - -} - -#endif diff --git a/python/pykde/extra/kde351/kaccelaction.h b/python/pykde/extra/kde351/kaccelaction.h deleted file mode 100644 index d55e4517..00000000 --- a/python/pykde/extra/kde351/kaccelaction.h +++ /dev/null @@ -1,576 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString 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 TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde351/kaccelbase.h b/python/pykde/extra/kde351/kaccelbase.h deleted file mode 100644 index babf304b..00000000 --- a/python/pykde/extra/kde351/kaccelbase.h +++ /dev/null @@ -1,260 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) ); - * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it - * // is done automatially with the - * // connect below! - * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - /** Const version of the above. */ - const KAccelAction* actionPtr( const TQString& 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 TQString& configGroup() const { return m_sConfigGroup; } - /** Set the group (in the configuration file) for storing - * accelerators. - */ - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - struct X; - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde351/kicontheme.h b/python/pykde/extra/kde351/kicontheme.h deleted file mode 100644 index 4befb226..00000000 --- a/python/pykde/extra/kde351/kicontheme.h +++ /dev/null @@ -1,355 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde351/kkeyserver.h b/python/pykde/extra/kde351/kkeyserver.h deleted file mode 100644 index ef673ea9..00000000 --- a/python/pykde/extra/kde351/kkeyserver.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - 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/python/pykde/extra/kde351/kkeyserver_x11.h b/python/pykde/extra/kde351/kkeyserver_x11.h deleted file mode 100644 index dbca533e..00000000 --- a/python/pykde/extra/kde351/kkeyserver_x11.h +++ /dev/null @@ -1,477 +0,0 @@ -/* - 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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 TQString 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 TQString 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 TQString& mod ); - - /** - * @internal - * Unimplemented? - */ - KDECORE_EXPORT bool stringToSymMod( const TQString&, 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/python/pykde/extra/kde351/konsole_part.h b/python/pykde/extra/kde351/konsole_part.h deleted file mode 100644 index d526c1a6..00000000 --- a/python/pykde/extra/kde351/konsole_part.h +++ /dev/null @@ -1,241 +0,0 @@ -/* -*- 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class KActionMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - 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(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited( KProcess * ); - void receivedData( const TQString& 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 TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString 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 TQString& program, - const TQStrList& args ); - void newSession(); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); - void setAutoDestroy( bool ); - void setAutoStartShell( bool ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde351/kpanelmenu.h b/python/pykde/extra/kde351/kpanelmenu.h deleted file mode 100644 index de0b065e..00000000 --- a/python/pykde/extra/kde351/kpanelmenu.h +++ /dev/null @@ -1,182 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde351/ksharedptr.h b/python/pykde/extra/kde351/ksharedptr.h deleted file mode 100644 index ada08413..00000000 --- a/python/pykde/extra/kde351/ksharedptr.h +++ /dev/null @@ -1,175 +0,0 @@ -/* 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/python/pykde/extra/kde351/ksycocafactory.h b/python/pykde/extra/kde351/ksycocafactory.h deleted file mode 100644 index 536da286..00000000 --- a/python/pykde/extra/kde351/ksycocafactory.h +++ /dev/null @@ -1,143 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde351/ktoolbarbutton.h b/python/pykde/extra/kde351/ktoolbarbutton.h deleted file mode 100644 index eab46983..00000000 --- a/python/pykde/extra/kde351/ktoolbarbutton.h +++ /dev/null @@ -1,330 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - bool event(TQEvent *e); - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - /// @since 3.4 - void mousePressEvent( TQMouseEvent * ); - /// @since 3.4 - void mouseReleaseEvent( TQMouseEvent * ); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde351/kurifilter.h b/python/pykde/extra/kde351/kurifilter.h deleted file mode 100644 index 47332947..00000000 --- a/python/pykde/extra/kde351/kurifilter.h +++ /dev/null @@ -1,647 +0,0 @@ -/* - * 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 -* TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& abs_path ); - - /** - * Returns the absolute path if one has already been set. - * @return the absolute path, or TQString::null - * @see hasAbsolutePath() - */ - TQString 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 TQString::null - */ - TQString 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 TQString::null if not found - */ - TQString 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 - */ - TQString 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 TQString& 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 TQString& url = TQString::null ); - -private: - bool m_bCheckForExecutables; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, const char* ) const { return 0; } - - /** - * Returns the name of the configuration module for the filter. - * - * @return the name of a configuration module or TQString::null if none. - */ - virtual TQString 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 TQString& 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 TQString& args ) const; - - TQString 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 TQPtrList -{ -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 - * TQString 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 TQStringList 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 - * TQString text = "kde.org"; - * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); - * \endcode - * - * \code - * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins. - * - * @return a TQStringList of plugin names - * @since 3.1 - */ - TQStringList 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/python/pykde/extra/kde352/kaccelaction.h b/python/pykde/extra/kde352/kaccelaction.h deleted file mode 100644 index d55e4517..00000000 --- a/python/pykde/extra/kde352/kaccelaction.h +++ /dev/null @@ -1,576 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString 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 TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde352/kaccelbase.h b/python/pykde/extra/kde352/kaccelbase.h deleted file mode 100644 index babf304b..00000000 --- a/python/pykde/extra/kde352/kaccelbase.h +++ /dev/null @@ -1,260 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) ); - * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it - * // is done automatially with the - * // connect below! - * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - /** Const version of the above. */ - const KAccelAction* actionPtr( const TQString& 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 TQString& configGroup() const { return m_sConfigGroup; } - /** Set the group (in the configuration file) for storing - * accelerators. - */ - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - struct X; - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde352/kicontheme.h b/python/pykde/extra/kde352/kicontheme.h deleted file mode 100644 index 4befb226..00000000 --- a/python/pykde/extra/kde352/kicontheme.h +++ /dev/null @@ -1,355 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde352/kkeyserver.h b/python/pykde/extra/kde352/kkeyserver.h deleted file mode 100644 index ef673ea9..00000000 --- a/python/pykde/extra/kde352/kkeyserver.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - 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/python/pykde/extra/kde352/kkeyserver_x11.h b/python/pykde/extra/kde352/kkeyserver_x11.h deleted file mode 100644 index dbca533e..00000000 --- a/python/pykde/extra/kde352/kkeyserver_x11.h +++ /dev/null @@ -1,477 +0,0 @@ -/* - 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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 TQString 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 TQString 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 TQString& mod ); - - /** - * @internal - * Unimplemented? - */ - KDECORE_EXPORT bool stringToSymMod( const TQString&, 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/python/pykde/extra/kde352/konsole_part.h b/python/pykde/extra/kde352/konsole_part.h deleted file mode 100644 index d526c1a6..00000000 --- a/python/pykde/extra/kde352/konsole_part.h +++ /dev/null @@ -1,241 +0,0 @@ -/* -*- 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class KActionMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - 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(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited( KProcess * ); - void receivedData( const TQString& 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 TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString 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 TQString& program, - const TQStrList& args ); - void newSession(); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); - void setAutoDestroy( bool ); - void setAutoStartShell( bool ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde352/kpanelmenu.h b/python/pykde/extra/kde352/kpanelmenu.h deleted file mode 100644 index de0b065e..00000000 --- a/python/pykde/extra/kde352/kpanelmenu.h +++ /dev/null @@ -1,182 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde352/ksharedptr.h b/python/pykde/extra/kde352/ksharedptr.h deleted file mode 100644 index ada08413..00000000 --- a/python/pykde/extra/kde352/ksharedptr.h +++ /dev/null @@ -1,175 +0,0 @@ -/* 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/python/pykde/extra/kde352/ksycocafactory.h b/python/pykde/extra/kde352/ksycocafactory.h deleted file mode 100644 index 536da286..00000000 --- a/python/pykde/extra/kde352/ksycocafactory.h +++ /dev/null @@ -1,143 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde352/ktoolbarbutton.h b/python/pykde/extra/kde352/ktoolbarbutton.h deleted file mode 100644 index eab46983..00000000 --- a/python/pykde/extra/kde352/ktoolbarbutton.h +++ /dev/null @@ -1,330 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - bool event(TQEvent *e); - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - /// @since 3.4 - void mousePressEvent( TQMouseEvent * ); - /// @since 3.4 - void mouseReleaseEvent( TQMouseEvent * ); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde352/kurifilter.h b/python/pykde/extra/kde352/kurifilter.h deleted file mode 100644 index 47332947..00000000 --- a/python/pykde/extra/kde352/kurifilter.h +++ /dev/null @@ -1,647 +0,0 @@ -/* - * 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 -* TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& abs_path ); - - /** - * Returns the absolute path if one has already been set. - * @return the absolute path, or TQString::null - * @see hasAbsolutePath() - */ - TQString 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 TQString::null - */ - TQString 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 TQString::null if not found - */ - TQString 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 - */ - TQString 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 TQString& 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 TQString& url = TQString::null ); - -private: - bool m_bCheckForExecutables; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, const char* ) const { return 0; } - - /** - * Returns the name of the configuration module for the filter. - * - * @return the name of a configuration module or TQString::null if none. - */ - virtual TQString 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 TQString& 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 TQString& args ) const; - - TQString 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 TQPtrList -{ -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 - * TQString 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 TQStringList 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 - * TQString text = "kde.org"; - * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); - * \endcode - * - * \code - * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins. - * - * @return a TQStringList of plugin names - * @since 3.1 - */ - TQStringList 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/python/pykde/extra/kde353/kaccelaction.h b/python/pykde/extra/kde353/kaccelaction.h deleted file mode 100644 index d55e4517..00000000 --- a/python/pykde/extra/kde353/kaccelaction.h +++ /dev/null @@ -1,576 +0,0 @@ -/* 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 TQObject; -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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, - const TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQObject* 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 TQString& name ); - - /** - * Sets the user-readable label of the accelerator action. - * @param label the new label (i18n!) - */ - void setLabel( const TQString& label ); - - /** - * Sets the What's This text for the accelerator action. - * @param whatsThis the new What's This text (i18n!) - */ - void setWhatsThis( const TQString& 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 TQObject* 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() - */ - TQString toString() const; - - /** - * @internal - */ - TQString 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: - TQString 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 TQObject* 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 TQString& 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 TQString& 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 TQString& 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 TQString& 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 TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* 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 TQString& sName, const TQString& sLabel ); - - /** - * Removes the given action. - * @param sAction the name of the action. - * @return true if successful, false otherwise - */ - bool remove( const TQString& 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 TQString& 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 TQString& 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/python/pykde/extra/kde353/kaccelbase.h b/python/pykde/extra/kde353/kaccelbase.h deleted file mode 100644 index babf304b..00000000 --- a/python/pykde/extra/kde353/kaccelbase.h +++ /dev/null @@ -1,260 +0,0 @@ -/* 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 TQPopupMenu; -class TQWidget; - -//---------------------------------------------------- - -/** - * @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, TQT_SLOT( scrollUp() ) ); - * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it - * // is done automatially with the - * // connect below! - * a->connectItem(KStdAccel::Print, myWindow, TQT_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, TQT_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, TQT_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, TQT_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 TQString& sAction ); - /** Const version of the above. */ - const KAccelAction* actionPtr( const TQString& 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 TQString& configGroup() const { return m_sConfigGroup; } - /** Set the group (in the configuration file) for storing - * accelerators. - */ - void setConfigGroup( const TQString& 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 TQString& sName, const TQString& sDesc ); - KAccelAction* insert( - const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const TQObject* pObjSlot, const char* psMethodSlot, - bool bConfigurable = true, bool bEnabled = true ); - bool remove( const TQString& sAction ); - bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); - - bool updateConnections(); - - bool setShortcut( const TQString& sAction, const KShortcut& cut ); - -// Modify individual Action sub-items - bool setActionEnabled( const TQString& 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; - - TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); - - // Protected methods - protected: - void slotRemoveAction( KAccelAction* ); - - struct X; - void createKeyList( TQValueVector& 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 TQMap KKeyToActionMap; - - KAccelActions m_rgActions; - KKeyToActionMap m_mapKeyToAction; - TQValueList m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes - bool m_bEnabled; - bool m_bConfigIsGlobal; - TQString m_sConfigGroup; - bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; - - private: - KAccelBase& operator =( const KAccelBase& ); - - friend class KAccelActions; -}; - -#endif // _KACCELBASE_H diff --git a/python/pykde/extra/kde353/kicontheme.h b/python/pykde/extra/kde353/kicontheme.h deleted file mode 100644 index 4befb226..00000000 --- a/python/pykde/extra/kde353/kicontheme.h +++ /dev/null @@ -1,355 +0,0 @@ -/* 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. - */ - TQString 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 TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); - - /** - * The stylized name of the icon theme. - * @return the (human-readable) name of the theme - */ - TQString name() const { return mName; } - - /** - * A description for the icon theme. - * @return a human-readable description of the theme, TQString::null - * if there is none - */ - TQString 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, TQString::null if there is none - */ - TQString example() const; - - /** - * Return the name of the screenshot. - * @return the name of the screenshot, TQString::null if there is none - */ - TQString screenshot() const; - - /** - * Returns the name of this theme's link overlay. - * @return the name of the link overlay - */ - TQString linkOverlay() const; - - /** - * Returns the name of this theme's zip overlay. - * @return the name of the zip overlay - */ - TQString zipOverlay() const; - - /** - * Returns the name of this theme's lock overlay. - * @return the name of the lock overlay - */ - TQString lockOverlay() const; - - /** - * Returns the name of this theme's share overlay. - * @return the name of the share overlay - * @since 3.1 - */ - TQString shareOverlay () const; - - /** - * Returns the toplevel theme directory. - * @return the directory of the theme - */ - TQString dir() const { return mDir; } - - /** - * The themes this icon theme falls back on. - * @return a list of icon themes that are used as fall-backs - */ - TQStringList 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 - */ - TQValueList 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 - */ - TQStringList 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 - */ - TQStringList 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 TQString& 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 TQStringList list(); - - /** - * Returns the current icon theme. - * @return the name of the current theme - */ - static TQString current(); - - /** - * Reconfigure the theme. - */ - static void reconfigure(); - - /** - * Returns the default icon theme. - * @return the name of the default theme name - * @since 3.1 - */ - static TQString defaultThemeName(); - -private: - int mDefSize[8]; - TQValueList mSizes[8]; - - int mDepth; - TQString mDir, mName, mDesc; - TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; - - static TQString *_theme; - static TQStringList *_theme_list; -}; - -#endif diff --git a/python/pykde/extra/kde353/kkeyserver.h b/python/pykde/extra/kde353/kkeyserver.h deleted file mode 100644 index ef673ea9..00000000 --- a/python/pykde/extra/kde353/kkeyserver.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - 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/python/pykde/extra/kde353/kkeyserver_x11.h b/python/pykde/extra/kde353/kkeyserver_x11.h deleted file mode 100644 index dbca533e..00000000 --- a/python/pykde/extra/kde353/kkeyserver_x11.h +++ /dev/null @@ -1,477 +0,0 @@ -/* - 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 TQString& 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 TQString &s ); - - /** - * Returns the qt key code of the symbol. - * @return the qt key code - */ - int qt() const; - - /** - * @internal - */ - TQString toStringInternal() const; - - /** - * Returns the string representation of the symbol. - * @return the string representation of the symbol - */ - TQString 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: - TQString toString( bool bUserSpace ) const; - - static void capitalizeKeyname( TQString& ); - }; - - /** - * 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 TQString 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 TQString 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 TQString& mod ); - - /** - * @internal - * Unimplemented? - */ - KDECORE_EXPORT bool stringToSymMod( const TQString&, 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/python/pykde/extra/kde353/konsole_part.h b/python/pykde/extra/kde353/konsole_part.h deleted file mode 100644 index d526c1a6..00000000 --- a/python/pykde/extra/kde353/konsole_part.h +++ /dev/null @@ -1,241 +0,0 @@ -/* -*- 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 TQPushButton; -class TQSpinBox; -class KPopupMenu; -class KActionMenu; -class TQCheckBox; -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(TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* parent = 0, const char* name = 0, - const char* classname = "KParts::Part", - const TQStringList &args = TQStringList()); - - 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(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); - virtual ~konsolePart(); - -signals: - void processExited( KProcess * ); - void receivedData( const TQString& 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 TQString &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 TQString& ); - bool doWriteStream( const TQByteArray& ); - bool doCloseStream(); - - TQWidget* 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; - - TQFont defaultFont; - - TQString pmPath; // pixmap path - TQString s_schema; - TQString s_kconfigSchema; - TQString 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 TQString& program, - const TQStrList& args ); - void newSession(); - void showShellInDir( const TQString& dir ); - void sendInput( const TQString& text ); - void setAutoDestroy( bool ); - void setAutoStartShell( bool ); -}; - -////////////////////////////////////////////////////////////////////// - -/*class HistoryTypeDialog : public KDialogBase -{ - Q_OBJECT -public: - HistoryTypeDialog(const HistoryType& histType, - unsigned int histSize, - TQWidget *parent); - -public slots: - void slotDefault(); - void slotSetUnlimited(); - void slotHistEnable(bool); - - unsigned int nbLines() const; - bool isOn() const; - -protected: - TQCheckBox* m_btnEnable; - TQSpinBox* m_size; - TQPushButton* 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/python/pykde/extra/kde353/kpanelmenu.h b/python/pykde/extra/kde353/kpanelmenu.h deleted file mode 100644 index de0b065e..00000000 --- a/python/pykde/extra/kde353/kpanelmenu.h +++ /dev/null @@ -1,182 +0,0 @@ -/***************************************************************** - -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(TQWidget *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 TQString &startDir, TQWidget *parent=0, const char *name=0); - /** - * Destructor. - */ - virtual ~KPanelMenu(); - - /** - * Get the directory path associated with this menu, or TQString::null if - * there's no such associated path. - * @return the associated directory path - * @see setPath() - */ - const TQString& path() const; - /** - * Set a directory path to be associated with this menu. - * @param p the directory path - * @see path() - */ - void setPath(const TQString &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(TQHideEvent *ev); - /** - * For internal use only. Used by constructors. - */ - void init(const TQString& path = TQString::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/python/pykde/extra/kde353/ksharedptr.h b/python/pykde/extra/kde353/ksharedptr.h deleted file mode 100644 index ada08413..00000000 --- a/python/pykde/extra/kde353/ksharedptr.h +++ /dev/null @@ -1,175 +0,0 @@ -/* 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/python/pykde/extra/kde353/ksycocafactory.h b/python/pykde/extra/kde353/ksycocafactory.h deleted file mode 100644 index 536da286..00000000 --- a/python/pykde/extra/kde353/ksycocafactory.h +++ /dev/null @@ -1,143 +0,0 @@ -/* 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 TQStringList; -class TQString; -class KSycocaDict; -class KSycocaResourceList; - -typedef TQDict 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 TQString &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(TQDataStream &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(TQDataStream &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; - TQDataStream *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 TQPtrList -{ -public: - KSycocaFactoryList() { } -}; - -#endif diff --git a/python/pykde/extra/kde353/ktoolbarbutton.h b/python/pykde/extra/kde353/ktoolbarbutton.h deleted file mode 100644 index eab46983..00000000 --- a/python/pykde/extra/kde353/ktoolbarbutton.h +++ /dev/null @@ -1,330 +0,0 @@ -/* 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 TQEvent; -class TQPopupMenu; -class TQPainter; - -/** - * 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 TQString& icon, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::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 TQPixmap& pixmap, int id, TQWidget *parent, - const char *name=0L, const TQString &txt=TQString::null); - - /** - * Construct a separator button - * - * @param parent This button's parent - * @param name This button's internal name - */ - KToolBarButton(TQWidget *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 TQButton, so #ifdef-ing it out doesn't break BC - virtual void setPixmap(const TQPixmap &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 TQPixmap& 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 TQPixmap& 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 TQString &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 TQString &icon); - - /// @since 3.1 - virtual void setIcon( const TQPixmap &pixmap ) - { TQToolButton::setIcon( pixmap ); } - - /** - * Set the pixmaps for this toolbar button from a TQIconSet. - * 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 TQIconSet &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 TQString &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 TQString& 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 TQString& 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) - */ - TQPopupMenu *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 (TQPopupMenu *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(TQPopupMenu *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 TQString&, bool tipToo); - -protected: - bool event(TQEvent *e); - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - /// @since 3.4 - void mousePressEvent( TQMouseEvent * ); - /// @since 3.4 - void mouseReleaseEvent( TQMouseEvent * ); - void showMenu(); - TQSize sizeHint() const; - TQSize minimumSizeHint() const; - TQSize 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 TQIntDict -{ -public: - KToolBarButtonList(); - ~KToolBarButtonList() {} -}; - -#endif diff --git a/python/pykde/extra/kde353/kurifilter.h b/python/pykde/extra/kde353/kurifilter.h deleted file mode 100644 index 47332947..00000000 --- a/python/pykde/extra/kde353/kurifilter.h +++ /dev/null @@ -1,647 +0,0 @@ -/* - * 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 -* TQString 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 TQString& 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 TQString::null. - * - * @return the error message or a NULL when there is none. - */ - TQString 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 TQString& 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 TQString& abs_path ); - - /** - * Returns the absolute path if one has already been set. - * @return the absolute path, or TQString::null - * @see hasAbsolutePath() - */ - TQString 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 TQString::null - */ - TQString 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 TQString::null if not found - */ - TQString 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 - */ - TQString 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 TQString& 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 TQString& url = TQString::null ); - -private: - bool m_bCheckForExecutables; - bool m_bChanged; - - TQString m_strErrMsg; - TQString 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( TQObject *parent = 0, const char *name = 0, double pri = 1.0 ); - - /** - * Returns the filter's name. - * - * @return A string naming the filter. - */ - virtual TQString 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( TQWidget*, const char* ) const { return 0; } - - /** - * Returns the name of the configuration module for the filter. - * - * @return the name of a configuration module or TQString::null if none. - */ - virtual TQString 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 TQString& 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 TQString& args ) const; - - TQString 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 TQPtrList -{ -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 - * TQString 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 TQStringList 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 - * TQString text = "kde.org"; - * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); - * \endcode - * - * \code - * TQStringList 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 TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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( TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * 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 TQStringList& filters = TQStringList() ); - - /** - * 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 - */ - TQString filteredURI( const TQString &uri, const TQStringList& filters = TQStringList() ); - - /** - * Return an iterator to iterate over all loaded - * plugins. - * - * @return a plugin iterator. - */ - TQPtrListIterator pluginsIterator() const; - - /** - * Return a list of the names of all loaded plugins. - * - * @return a TQStringList of plugin names - * @since 3.1 - */ - TQStringList 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/python/pykde/importTest.py b/python/pykde/importTest.py deleted file mode 100644 index 9f457719..00000000 --- a/python/pykde/importTest.py +++ /dev/null @@ -1,22 +0,0 @@ -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/python/pykde/postproc b/python/pykde/postproc deleted file mode 100755 index db795ca6..00000000 --- a/python/pykde/postproc +++ /dev/null @@ -1,520 +0,0 @@ -#!/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/python/pykde/pykde350.prj b/python/pykde/pykde350.prj deleted file mode 100644 index 4d6a17eb..00000000 --- a/python/pykde/pykde350.prj +++ /dev/null @@ -1,495 +0,0 @@ - -// 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/python/pykde/pykde351.prj b/python/pykde/pykde351.prj deleted file mode 100644 index e2960a8c..00000000 --- a/python/pykde/pykde351.prj +++ /dev/null @@ -1,495 +0,0 @@ - -// 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/python/pykde/pykde352.prj b/python/pykde/pykde352.prj deleted file mode 100644 index 9f5e7182..00000000 --- a/python/pykde/pykde352.prj +++ /dev/null @@ -1,495 +0,0 @@ - -// 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/python/pykde/pykdeconfig.py.in b/python/pykde/pykdeconfig.py.in deleted file mode 100644 index 18661c74..00000000 --- a/python/pykde/pykdeconfig.py.in +++ /dev/null @@ -1,207 +0,0 @@ -# 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/python/pykde/sip/dcop/dcopclient.sip b/python/pykde/sip/dcop/dcopclient.sip deleted file mode 100644 index 6c8dab32..00000000 --- a/python/pykde/sip/dcop/dcopclient.sip +++ /dev/null @@ -1,175 +0,0 @@ -// -// 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/python/pykde/sip/dcop/dcopmod.sip b/python/pykde/sip/dcop/dcopmod.sip deleted file mode 100644 index 9588ab91..00000000 --- a/python/pykde/sip/dcop/dcopmod.sip +++ /dev/null @@ -1,42 +0,0 @@ -// -// 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 - diff --git a/python/pykde/sip/dcop/dcopmod.sip.in b/python/pykde/sip/dcop/dcopmod.sip.in deleted file mode 100644 index 9f9e0fbc..00000000 --- a/python/pykde/sip/dcop/dcopmod.sip.in +++ /dev/null @@ -1,43 +0,0 @@ -// -// 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/python/pykde/sip/dcop/dcopobject.sip b/python/pykde/sip/dcop/dcopobject.sip deleted file mode 100644 index 7b7ee1c5..00000000 --- a/python/pykde/sip/dcop/dcopobject.sip +++ /dev/null @@ -1,82 +0,0 @@ -// -// 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/python/pykde/sip/dcop/dcopref.sip b/python/pykde/sip/dcop/dcopref.sip deleted file mode 100644 index ec090346..00000000 --- a/python/pykde/sip/dcop/dcopref.sip +++ /dev/null @@ -1,109 +0,0 @@ -// -// 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/python/pykde/sip/dcop/dcopstub.sip b/python/pykde/sip/dcop/dcopstub.sip deleted file mode 100644 index a6ba8296..00000000 --- a/python/pykde/sip/dcop/dcopstub.sip +++ /dev/null @@ -1,68 +0,0 @@ -// -// 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/python/pykde/sip/dcop/typedefs.sip b/python/pykde/sip/dcop/typedefs.sip deleted file mode 100644 index 1f5e83e6..00000000 --- a/python/pykde/sip/dcop/typedefs.sip +++ /dev/null @@ -1,108 +0,0 @@ -// -// 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 uint WFlags; -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/python/pykde/sip/glossary.html b/python/pykde/sip/glossary.html deleted file mode 100644 index b4cec3bc..00000000 --- a/python/pykde/sip/glossary.html +++ /dev/null @@ -1,40 +0,0 @@ -

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 TQObject '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/python/pykde/sip/kabc/address.sip b/python/pykde/sip/kabc/address.sip deleted file mode 100644 index d15d1694..00000000 --- a/python/pykde/sip/kabc/address.sip +++ /dev/null @@ -1,150 +0,0 @@ -// -// 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/python/pykde/sip/kabc/addressbook.sip b/python/pykde/sip/kabc/addressbook.sip deleted file mode 100644 index 0075bf67..00000000 --- a/python/pykde/sip/kabc/addressbook.sip +++ /dev/null @@ -1,230 +0,0 @@ -// -// 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 -#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 *)sipForceConvertTo_KABC_Resource (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kabc/addressee.sip b/python/pykde/sip/kabc/addressee.sip deleted file mode 100644 index 05f6bac1..00000000 --- a/python/pykde/sip/kabc/addressee.sip +++ /dev/null @@ -1,470 +0,0 @@ -// -// 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 -#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 = sipBuildResult (NULL, "N", new KABC::Addressee (*it), sipClass_KABC_Addressee)) == 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 *)sipForceConvertTo_KABC_Addressee (elem, &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 -#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 = sipBuildResult (NULL, "N", new KABC::Address (*it), sipClass_KABC_Address)) == 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 *)sipForceConvertTo_KABC_Address (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - diff --git a/python/pykde/sip/kabc/addresseedialog.sip b/python/pykde/sip/kabc/addresseedialog.sip deleted file mode 100644 index abfd6d27..00000000 --- a/python/pykde/sip/kabc/addresseedialog.sip +++ /dev/null @@ -1,75 +0,0 @@ -// -// 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/python/pykde/sip/kabc/addresseelist.sip b/python/pykde/sip/kabc/addresseelist.sip deleted file mode 100644 index f5264649..00000000 --- a/python/pykde/sip/kabc/addresseelist.sip +++ /dev/null @@ -1,122 +0,0 @@ -// -// 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/python/pykde/sip/kabc/addresslineedit.sip b/python/pykde/sip/kabc/addresslineedit.sip deleted file mode 100644 index 54606e91..00000000 --- a/python/pykde/sip/kabc/addresslineedit.sip +++ /dev/null @@ -1,66 +0,0 @@ -// -// 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/python/pykde/sip/kabc/agent.sip b/python/pykde/sip/kabc/agent.sip deleted file mode 100644 index 4aff028a..00000000 --- a/python/pykde/sip/kabc/agent.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// 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/python/pykde/sip/kabc/distributionlist.sip b/python/pykde/sip/kabc/distributionlist.sip deleted file mode 100644 index a21d8847..00000000 --- a/python/pykde/sip/kabc/distributionlist.sip +++ /dev/null @@ -1,177 +0,0 @@ -// -// 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 -#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 = sipBuildResult (NULL, "N", new KABC::DistributionList::Entry (*it), sipClass_KABC_DistributionList_Entry)) == 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 *)sipForceConvertTo_KABC_DistributionList_Entry (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kabc/distributionlistdialog.sip b/python/pykde/sip/kabc/distributionlistdialog.sip deleted file mode 100644 index 720afd09..00000000 --- a/python/pykde/sip/kabc/distributionlistdialog.sip +++ /dev/null @@ -1,74 +0,0 @@ -// -// 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/python/pykde/sip/kabc/distributionlisteditor.sip b/python/pykde/sip/kabc/distributionlisteditor.sip deleted file mode 100644 index e97df7f8..00000000 --- a/python/pykde/sip/kabc/distributionlisteditor.sip +++ /dev/null @@ -1,47 +0,0 @@ -// -// 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/python/pykde/sip/kabc/errorhandler.sip b/python/pykde/sip/kabc/errorhandler.sip deleted file mode 100644 index 9a24483f..00000000 --- a/python/pykde/sip/kabc/errorhandler.sip +++ /dev/null @@ -1,97 +0,0 @@ -// -// 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/python/pykde/sip/kabc/field.sip b/python/pykde/sip/kabc/field.sip deleted file mode 100644 index 6056f7d7..00000000 --- a/python/pykde/sip/kabc/field.sip +++ /dev/null @@ -1,162 +0,0 @@ -// -// 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 -#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 = sipBuildResult (NULL, "N", (KABC::Field *) (*it), sipClass_KABC_Field)) == 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 *)sipForceConvertTo_KABC_Field (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; -%End - - diff --git a/python/pykde/sip/kabc/format.sip b/python/pykde/sip/kabc/format.sip deleted file mode 100644 index 30b863ba..00000000 --- a/python/pykde/sip/kabc/format.sip +++ /dev/null @@ -1,43 +0,0 @@ -// -// 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/python/pykde/sip/kabc/formatfactory.sip b/python/pykde/sip/kabc/formatfactory.sip deleted file mode 100644 index 14ec70c4..00000000 --- a/python/pykde/sip/kabc/formatfactory.sip +++ /dev/null @@ -1,74 +0,0 @@ -// -// 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/python/pykde/sip/kabc/formatplugin.sip b/python/pykde/sip/kabc/formatplugin.sip deleted file mode 100644 index bb63e8d0..00000000 --- a/python/pykde/sip/kabc/formatplugin.sip +++ /dev/null @@ -1,50 +0,0 @@ -// -// 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/python/pykde/sip/kabc/geo.sip b/python/pykde/sip/kabc/geo.sip deleted file mode 100644 index 48124a71..00000000 --- a/python/pykde/sip/kabc/geo.sip +++ /dev/null @@ -1,61 +0,0 @@ -// -// 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/python/pykde/sip/kabc/kabc-kde310.diff b/python/pykde/sip/kabc/kabc-kde310.diff deleted file mode 100644 index 294c0cbc..00000000 --- a/python/pykde/sip/kabc/kabc-kde310.diff +++ /dev/null @@ -1,17 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde311.diff b/python/pykde/sip/kabc/kabc-kde311.diff deleted file mode 100644 index 294c0cbc..00000000 --- a/python/pykde/sip/kabc/kabc-kde311.diff +++ /dev/null @@ -1,17 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde312.diff b/python/pykde/sip/kabc/kabc-kde312.diff deleted file mode 100644 index 294c0cbc..00000000 --- a/python/pykde/sip/kabc/kabc-kde312.diff +++ /dev/null @@ -1,17 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde313.diff b/python/pykde/sip/kabc/kabc-kde313.diff deleted file mode 100644 index 294c0cbc..00000000 --- a/python/pykde/sip/kabc/kabc-kde313.diff +++ /dev/null @@ -1,17 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde314.diff b/python/pykde/sip/kabc/kabc-kde314.diff deleted file mode 100644 index 294c0cbc..00000000 --- a/python/pykde/sip/kabc/kabc-kde314.diff +++ /dev/null @@ -1,17 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde320.diff b/python/pykde/sip/kabc/kabc-kde320.diff deleted file mode 100644 index a7c2d681..00000000 --- a/python/pykde/sip/kabc/kabc-kde320.diff +++ /dev/null @@ -1,21 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde322.diff b/python/pykde/sip/kabc/kabc-kde322.diff deleted file mode 100644 index a7c2d681..00000000 --- a/python/pykde/sip/kabc/kabc-kde322.diff +++ /dev/null @@ -1,21 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde323.diff b/python/pykde/sip/kabc/kabc-kde323.diff deleted file mode 100644 index a7c2d681..00000000 --- a/python/pykde/sip/kabc/kabc-kde323.diff +++ /dev/null @@ -1,21 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde330.diff b/python/pykde/sip/kabc/kabc-kde330.diff deleted file mode 100644 index d89a0acc..00000000 --- a/python/pykde/sip/kabc/kabc-kde330.diff +++ /dev/null @@ -1,24 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde331.diff b/python/pykde/sip/kabc/kabc-kde331.diff deleted file mode 100644 index d89a0acc..00000000 --- a/python/pykde/sip/kabc/kabc-kde331.diff +++ /dev/null @@ -1,24 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde332.diff b/python/pykde/sip/kabc/kabc-kde332.diff deleted file mode 100644 index d89a0acc..00000000 --- a/python/pykde/sip/kabc/kabc-kde332.diff +++ /dev/null @@ -1,24 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde340.diff b/python/pykde/sip/kabc/kabc-kde340.diff deleted file mode 100644 index 24ca6590..00000000 --- a/python/pykde/sip/kabc/kabc-kde340.diff +++ /dev/null @@ -1,25 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde341.diff b/python/pykde/sip/kabc/kabc-kde341.diff deleted file mode 100644 index 24ca6590..00000000 --- a/python/pykde/sip/kabc/kabc-kde341.diff +++ /dev/null @@ -1,25 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde342.diff b/python/pykde/sip/kabc/kabc-kde342.diff deleted file mode 100644 index 24ca6590..00000000 --- a/python/pykde/sip/kabc/kabc-kde342.diff +++ /dev/null @@ -1,25 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde343.diff b/python/pykde/sip/kabc/kabc-kde343.diff deleted file mode 100644 index 24ca6590..00000000 --- a/python/pykde/sip/kabc/kabc-kde343.diff +++ /dev/null @@ -1,25 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde350.diff b/python/pykde/sip/kabc/kabc-kde350.diff deleted file mode 100644 index 24ca6590..00000000 --- a/python/pykde/sip/kabc/kabc-kde350.diff +++ /dev/null @@ -1,25 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde351.diff b/python/pykde/sip/kabc/kabc-kde351.diff deleted file mode 100644 index 24ca6590..00000000 --- a/python/pykde/sip/kabc/kabc-kde351.diff +++ /dev/null @@ -1,25 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde352.diff b/python/pykde/sip/kabc/kabc-kde352.diff deleted file mode 100644 index 24ca6590..00000000 --- a/python/pykde/sip/kabc/kabc-kde352.diff +++ /dev/null @@ -1,25 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabc-kde353.diff b/python/pykde/sip/kabc/kabc-kde353.diff deleted file mode 100644 index 3ea9e5f6..00000000 --- a/python/pykde/sip/kabc/kabc-kde353.diff +++ /dev/null @@ -1,25 +0,0 @@ -+ %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/python/pykde/sip/kabc/kabcmod.sip b/python/pykde/sip/kabc/kabcmod.sip deleted file mode 100644 index 109cefcc..00000000 --- a/python/pykde/sip/kabc/kabcmod.sip +++ /dev/null @@ -1,78 +0,0 @@ -// -// 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 -%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 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/python/pykde/sip/kabc/kabcmod.sip.in b/python/pykde/sip/kabc/kabcmod.sip.in deleted file mode 100644 index 0b5234a3..00000000 --- a/python/pykde/sip/kabc/kabcmod.sip.in +++ /dev/null @@ -1,55 +0,0 @@ -// -// 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/python/pykde/sip/kabc/key.sip b/python/pykde/sip/kabc/key.sip deleted file mode 100644 index 9036d113..00000000 --- a/python/pykde/sip/kabc/key.sip +++ /dev/null @@ -1,144 +0,0 @@ -// -// 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 -#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 = sipBuildResult (NULL, "N", new KABC::Key (*it), sipClass_KABC_Key)) == 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 *)sipForceConvertTo_KABC_Key (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kabc/ldapclient.sip b/python/pykde/sip/kabc/ldapclient.sip deleted file mode 100644 index 794cdb0a..00000000 --- a/python/pykde/sip/kabc/ldapclient.sip +++ /dev/null @@ -1,245 +0,0 @@ -// -// 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 -#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 = sipBuildResult (NULL, "N", new KABC::LdapResult (*it), sipClass_KABC_LdapResult)) == 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 *)sipForceConvertTo_KABC_LdapResult (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; -%End - - diff --git a/python/pykde/sip/kabc/ldapconfigwidget.sip b/python/pykde/sip/kabc/ldapconfigwidget.sip deleted file mode 100644 index ce1ddb1a..00000000 --- a/python/pykde/sip/kabc/ldapconfigwidget.sip +++ /dev/null @@ -1,105 +0,0 @@ -// -// 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/python/pykde/sip/kabc/ldapurl.sip b/python/pykde/sip/kabc/ldapurl.sip deleted file mode 100644 index d0e6406e..00000000 --- a/python/pykde/sip/kabc/ldapurl.sip +++ /dev/null @@ -1,85 +0,0 @@ -// -// 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/python/pykde/sip/kabc/ldif.sip b/python/pykde/sip/kabc/ldif.sip deleted file mode 100644 index b7deb950..00000000 --- a/python/pykde/sip/kabc/ldif.sip +++ /dev/null @@ -1,99 +0,0 @@ -// -// 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/python/pykde/sip/kabc/ldifconverter.sip b/python/pykde/sip/kabc/ldifconverter.sip deleted file mode 100644 index 8bc4b528..00000000 --- a/python/pykde/sip/kabc/ldifconverter.sip +++ /dev/null @@ -1,78 +0,0 @@ -// -// 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/python/pykde/sip/kabc/lock.sip b/python/pykde/sip/kabc/lock.sip deleted file mode 100644 index 82dbebbc..00000000 --- a/python/pykde/sip/kabc/lock.sip +++ /dev/null @@ -1,57 +0,0 @@ -// -// 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/python/pykde/sip/kabc/locknull.sip b/python/pykde/sip/kabc/locknull.sip deleted file mode 100644 index 6c24a381..00000000 --- a/python/pykde/sip/kabc/locknull.sip +++ /dev/null @@ -1,49 +0,0 @@ -// -// 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/python/pykde/sip/kabc/phonenumber.sip b/python/pykde/sip/kabc/phonenumber.sip deleted file mode 100644 index faa8b9bd..00000000 --- a/python/pykde/sip/kabc/phonenumber.sip +++ /dev/null @@ -1,191 +0,0 @@ -// -// 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 -#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 = sipBuildResult (NULL, "N", new KABC::PhoneNumber (*it), sipClass_KABC_PhoneNumber)) == 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 *)sipForceConvertTo_KABC_PhoneNumber (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kabc/picture.sip b/python/pykde/sip/kabc/picture.sip deleted file mode 100644 index 453566ef..00000000 --- a/python/pykde/sip/kabc/picture.sip +++ /dev/null @@ -1,60 +0,0 @@ -// -// 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/python/pykde/sip/kabc/plugin.sip b/python/pykde/sip/kabc/plugin.sip deleted file mode 100644 index 4df2c429..00000000 --- a/python/pykde/sip/kabc/plugin.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// 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/python/pykde/sip/kabc/resource.sip b/python/pykde/sip/kabc/resource.sip deleted file mode 100644 index 14149cbe..00000000 --- a/python/pykde/sip/kabc/resource.sip +++ /dev/null @@ -1,160 +0,0 @@ -// -// 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/python/pykde/sip/kabc/resourcefile.sip b/python/pykde/sip/kabc/resourcefile.sip deleted file mode 100644 index 75786b8d..00000000 --- a/python/pykde/sip/kabc/resourcefile.sip +++ /dev/null @@ -1,176 +0,0 @@ -// -// 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/python/pykde/sip/kabc/resourceselectdialog.sip b/python/pykde/sip/kabc/resourceselectdialog.sip deleted file mode 100644 index 9210316f..00000000 --- a/python/pykde/sip/kabc/resourceselectdialog.sip +++ /dev/null @@ -1,55 +0,0 @@ -// -// 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/python/pykde/sip/kabc/secrecy.sip b/python/pykde/sip/kabc/secrecy.sip deleted file mode 100644 index 605db1e3..00000000 --- a/python/pykde/sip/kabc/secrecy.sip +++ /dev/null @@ -1,92 +0,0 @@ -// -// 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/python/pykde/sip/kabc/sortmode.sip b/python/pykde/sip/kabc/sortmode.sip deleted file mode 100644 index 537e68fa..00000000 --- a/python/pykde/sip/kabc/sortmode.sip +++ /dev/null @@ -1,83 +0,0 @@ -// -// 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/python/pykde/sip/kabc/sound.sip b/python/pykde/sip/kabc/sound.sip deleted file mode 100644 index b4558839..00000000 --- a/python/pykde/sip/kabc/sound.sip +++ /dev/null @@ -1,63 +0,0 @@ -// -// 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/python/pykde/sip/kabc/stdaddressbook.sip b/python/pykde/sip/kabc/stdaddressbook.sip deleted file mode 100644 index e571f47a..00000000 --- a/python/pykde/sip/kabc/stdaddressbook.sip +++ /dev/null @@ -1,111 +0,0 @@ -// -// 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/python/pykde/sip/kabc/timezone.sip b/python/pykde/sip/kabc/timezone.sip deleted file mode 100644 index e095d451..00000000 --- a/python/pykde/sip/kabc/timezone.sip +++ /dev/null @@ -1,59 +0,0 @@ -// -// 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/python/pykde/sip/kabc/vcardconverter.sip b/python/pykde/sip/kabc/vcardconverter.sip deleted file mode 100644 index 5276fd0e..00000000 --- a/python/pykde/sip/kabc/vcardconverter.sip +++ /dev/null @@ -1,74 +0,0 @@ -// -// 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/python/pykde/sip/kabc/vcardformat.sip b/python/pykde/sip/kabc/vcardformat.sip deleted file mode 100644 index 91fe0902..00000000 --- a/python/pykde/sip/kabc/vcardformat.sip +++ /dev/null @@ -1,44 +0,0 @@ -// -// 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/python/pykde/sip/kabc/vcardformatplugin.sip b/python/pykde/sip/kabc/vcardformatplugin.sip deleted file mode 100644 index f6aeef26..00000000 --- a/python/pykde/sip/kabc/vcardformatplugin.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/bytearray.sip b/python/pykde/sip/kdecore/bytearray.sip deleted file mode 100644 index 74e31dcb..00000000 --- a/python/pykde/sip/kdecore/bytearray.sip +++ /dev/null @@ -1,812 +0,0 @@ -// -// 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 -#include -%End - - -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&, QWidget::FocusPolicy); -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&, SIP_PYDICT, QCString); -%MethodCode - int iserr = 0; - if (*a2 == "QMap") - { - QMap *map = (QMap *)sipForceConvertTo_QMap_0200QCString_0200DCOPRef(a1, &iserr); - - if (iserr) - { - sipIsErr = 1; - return 0; - } - *a0 << *map; - } - else if (*a2 == "QMap") - { - QMap *map = (QMap *)sipForceConvertTo_QMap_0200QString_0200DCOPRef(a1, &iserr); - - if (iserr) - { - sipIsErr = 1; - return 0; - } - *a0 << *map; - } -%End - - -void dcop_add (QDataStream&, SIP_PYLIST, QCString); -%MethodCode - int iserr = 0; - if (*a2 == "QValueList") - { - QValueList *list = (QValueList *)sipForceConvertTo_QValueList_0200QCString (a1, &iserr); - - if (iserr) - { - sipIsErr = 1; - return 0; - } - *a0 << *list; - } - else if (*a2 == "QValueList") - { - QValueList *list = (QValueList *)sipForceConvertTo_QValueList_0200DCOPRef (a1, &iserr); - - if (iserr) - { - sipIsErr = 1; - return 0; - } - *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 sipBuildResult (NULL, "N", new QString (res),sipClass_QString); - } - else if (*a1 == "QStringList") - { - QStringList res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QStringList (res),sipClass_QStringList); - } - else if (*a1 == "QCString") - { - QCString res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QCString (res),sipClass_QCString); - } - else if (*a1 == "KURL") - { - KURL res; - *a0 >> res; - return sipBuildResult (NULL, "N", new KURL (res),sipClass_KURL); - } - else if (*a1 == "KURL::List") - { - KURL::List res; - *a0 >> res; - return sipBuildResult (NULL, "N", new KURL::List (res),sipClass_KURL_List); - } - else if (*a1 == "QSize") - { - QSize res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QSize (res),sipClass_QSize); - } - else if (*a1 == "QRect") - { - QRect res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QRect (res),sipClass_QRect); - } - else if (*a1 == "QRegion") - { - QRect res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QRegion (res),sipClass_QRegion); - } - else if (*a1 == "QPoint") - { - QPoint res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QPoint (res),sipClass_QPoint); - } - else if (*a1 == "QFont") - { - QFont res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QFont (res),sipClass_QFont); - } - else if (*a1 == "QCursor") - { - QCursor res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QCursor (res),sipClass_QCursor); - } - else if (*a1 == "QPixmap") - { - QPixmap res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QPixmap (res),sipClass_QPixmap); - } - else if (*a1 == "QColor") - { - QColor res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QColor (res),sipClass_QColor); - } - else if (*a1 == "QColorGroup") - { - QColorGroup res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QColorGroup (res),sipClass_QColorGroup); - } - else if (*a1 == "QPalette") - { - QPalette res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QPalette (res),sipClass_QPalette); - } - else if (*a1 == "QBrush") - { - QBrush res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QBrush (res),sipClass_QBrush); - } - else if (*a1 == "FocusPolicy") - { - unsigned int res; - *a0 >> res; - return PyInt_FromLong ((long)res); - } - else if (*a1 == "DCOPRef") - { - DCOPRef res; - *a0 >> res; - return sipBuildResult (NULL, "N", new DCOPRef (res),sipClass_DCOPRef); - } - else if (*a1 == "QVariant") - { - QVariant res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QVariant (res),sipClass_QVariant); - } - else if (*a1 == "QDate") - { - QDate res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QDate (res),sipClass_QDate); - } - else if (*a1 == "QTime") - { - QTime res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QTime (res),sipClass_QTime); - } - else if (*a1 == "QDateTime") - { - QDateTime res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QDateTime (res),sipClass_QDateTime); - } - else if (*a1 == "QImage") - { - QImage res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QImage (res),sipClass_QImage); - } - else if (*a1 == "QKeySequence") - { - QKeySequence res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QKeySequence (res),sipClass_QKeySequence); - } - else if (*a1 == "QPen") - { - QPen res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QPen (res),sipClass_QPen); - } - else if (*a1 == "QPicture") - { - QPicture res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QPicture (res),sipClass_QPicture); - } - else if (*a1 == "QPointArray") - { - QPointArray res; - *a0 >> res; - return sipBuildResult (NULL, "N", new QPointArray (res),sipClass_QPointArray); - } - else if (*a1 == "QMap") - { - QMap res; - *a0 >> res; -// return sipConvertFrom_QMap_0200QCString_0200DCOPRef (&res); - return sipConvertFromMappedType (&res, &sipMappedTypeDef_QMap_0200QCString_0200DCOPRef, NULL); - } - else if (*a1 == "QMap") - { - QMap res; - *a0 >> res; -// return sipConvertFrom_QMap_0200QString_0200DCOPRef (&res); - return sipConvertFromMappedType (&res, &sipMappedTypeDef_QMap_0200QString_0200DCOPRef, NULL); - } - else if (*a1 == "QValueList") - { - QValueList res; - *a0 >> res; -// return sipConvertFrom_QValueList_0200QCString (&res); - return sipConvertFromMappedType (&res, (sipMappedType *) sipFindMappedType ("sipMappedTypeDef_QValueList_0200QCString"), NULL); - } - else if (*a1 == "QValueList" || *a1 == "QCStringList") - { - QValueList res; - *a0 >> res; -// return sipConvertFrom_QValueList_0200DCOPRef (&res); - return sipConvertFromMappedType (&res, &sipMappedTypeDef_QValueList_0200DCOPRef, 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; -} - -%End - - -%MappedType QMap -//converts a Python dict of QCString:DCOPRef -{ -%TypeHeaderCode -#include -#include -#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; - if (((ainst = sipBuildResult (NULL, "N", new QCString (acpp), sipClass_QCString)) == NULL) - || ((binst = sipBuildResult (NULL, "N", new DCOPRef (bcpp), sipClass_DCOPRef)) == 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; - int pos = 0; - QCString *acpp; - DCOPRef *bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0; - - if (iserr) - { - *sipIsErr = 1; - delete cppmap; - return 0; - } - acpp = (QCString *)sipForceConvertTo_QCString (aelem, &iserr); - bcpp = (DCOPRef *)sipForceConvertTo_DCOPRef (belem, &iserr); - cppmap->insert (*acpp, *bcpp); - } - - *sipCppPtr = cppmap; - - return 1; -%End -}; - -%MappedType QMap -//converts a Python dict of QString:DCOPRef -{ -%TypeHeaderCode -#include -#include -#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; - if (((ainst = sipBuildResult (NULL, "N", new QString (acpp), sipClass_QString)) == NULL) - || ((binst = sipBuildResult (NULL, "N", new DCOPRef (bcpp), sipClass_DCOPRef)) == 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; - int pos = 0; - QString *acpp; - DCOPRef *bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0; - - if (iserr) - { - *sipIsErr = 1; - delete cppmap; - return 0; - } - - acpp = (QString *)sipForceConvertTo_QString (aelem, &iserr); - bcpp = (DCOPRef *)sipForceConvertTo_DCOPRef (belem, &iserr); - - cppmap->insert (*acpp, *bcpp); - } - - *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 = sipBuildResult (NULL, "N", new DCOPRef (*it), sipClass_DCOPRef)) == 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 *)sipForceConvertTo_DCOPRef (elem, &iserr); - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - diff --git a/python/pykde/sip/kdecore/fixx11h.sip b/python/pykde/sip/kdecore/fixx11h.sip deleted file mode 100644 index 49150fb7..00000000 --- a/python/pykde/sip/kdecore/fixx11h.sip +++ /dev/null @@ -1,30 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kaboutdata.sip b/python/pykde/sip/kdecore/kaboutdata.sip deleted file mode 100644 index f80e112d..00000000 --- a/python/pykde/sip/kdecore/kaboutdata.sip +++ /dev/null @@ -1,301 +0,0 @@ -// -// 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 = sipBuildResult (NULL, "N", new KAboutPerson (*it), sipClass_KAboutPerson)) == 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 *)sipForceConvertTo_KAboutPerson (elem, &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 = sipBuildResult (NULL, "N", new KAboutTranslator (*it), sipClass_KAboutTranslator)) == 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 *)sipForceConvertTo_KAboutTranslator (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kdecore/kaccel.sip b/python/pykde/sip/kdecore/kaccel.sip deleted file mode 100644 index 2a37806b..00000000 --- a/python/pykde/sip/kdecore/kaccel.sip +++ /dev/null @@ -1,239 +0,0 @@ -// -// 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 -#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; - int pos = 0; - int iKey; - QString *sData; - - while (PyDict_Next(sipPy, &pos, &key, &value)) - { - int iserr = 0; - - iKey = PyInt_AS_LONG (key); - sData = (QString *)sipForceConvertTo_QString (value, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete map; - return 0; - } - - map->insert (iKey, *sData); - } - - *sipCppPtr = map; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kdecore/kaccelaction.sip b/python/pykde/sip/kdecore/kaccelaction.sip deleted file mode 100644 index 5ca185f3..00000000 --- a/python/pykde/sip/kdecore/kaccelaction.sip +++ /dev/null @@ -1,121 +0,0 @@ -// -// 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*); - -}; // class KAccelActions - diff --git a/python/pykde/sip/kdecore/kaccelbase.sip b/python/pykde/sip/kdecore/kaccelbase.sip deleted file mode 100644 index 74b52069..00000000 --- a/python/pykde/sip/kdecore/kaccelbase.sip +++ /dev/null @@ -1,102 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kallocator.sip b/python/pykde/sip/kdecore/kallocator.sip deleted file mode 100644 index ae72d6d9..00000000 --- a/python/pykde/sip/kdecore/kallocator.sip +++ /dev/null @@ -1,48 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kapplication.sip b/python/pykde/sip/kdecore/kapplication.sip deleted file mode 100644 index 4b340761..00000000 --- a/python/pykde/sip/kdecore/kapplication.sip +++ /dev/null @@ -1,449 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kasyncio.sip b/python/pykde/sip/kdecore/kasyncio.sip deleted file mode 100644 index c59f663e..00000000 --- a/python/pykde/sip/kdecore/kasyncio.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kaudioplayer.sip b/python/pykde/sip/kdecore/kaudioplayer.sip deleted file mode 100644 index 16ac9c5b..00000000 --- a/python/pykde/sip/kdecore/kaudioplayer.sip +++ /dev/null @@ -1,42 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kbufferedio.sip b/python/pykde/sip/kdecore/kbufferedio.sip deleted file mode 100644 index 995c8639..00000000 --- a/python/pykde/sip/kdecore/kbufferedio.sip +++ /dev/null @@ -1,73 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kcalendarsystem.sip b/python/pykde/sip/kdecore/kcalendarsystem.sip deleted file mode 100644 index 608dc6e1..00000000 --- a/python/pykde/sip/kdecore/kcalendarsystem.sip +++ /dev/null @@ -1,78 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kcalendarsystemfactory.sip b/python/pykde/sip/kdecore/kcalendarsystemfactory.sip deleted file mode 100644 index fcbf03df..00000000 --- a/python/pykde/sip/kdecore/kcalendarsystemfactory.sip +++ /dev/null @@ -1,44 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kcatalogue.sip b/python/pykde/sip/kdecore/kcatalogue.sip deleted file mode 100644 index 8ff82314..00000000 --- a/python/pykde/sip/kdecore/kcatalogue.sip +++ /dev/null @@ -1,64 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kcharsets.sip b/python/pykde/sip/kdecore/kcharsets.sip deleted file mode 100644 index 22ab4760..00000000 --- a/python/pykde/sip/kdecore/kcharsets.sip +++ /dev/null @@ -1,62 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kclipboard.sip b/python/pykde/sip/kdecore/kclipboard.sip deleted file mode 100644 index b8805ca4..00000000 --- a/python/pykde/sip/kdecore/kclipboard.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kcmdlineargs.sip b/python/pykde/sip/kdecore/kcmdlineargs.sip deleted file mode 100644 index df430cf4..00000000 --- a/python/pykde/sip/kdecore/kcmdlineargs.sip +++ /dev/null @@ -1,264 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kcompletion.sip b/python/pykde/sip/kdecore/kcompletion.sip deleted file mode 100644 index 1806f40b..00000000 --- a/python/pykde/sip/kdecore/kcompletion.sip +++ /dev/null @@ -1,228 +0,0 @@ -// -// 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 -#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; - int pos = 0; - KShortcut *cValue; - int iserr; - - while (PyDict_Next(sipPy, &pos, &key, &value)) - { - cValue = (KShortcut *)sipForceConvertTo_KShortcut (value, &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/python/pykde/sip/kdecore/kconfig.sip b/python/pykde/sip/kdecore/kconfig.sip deleted file mode 100644 index 51d04ce7..00000000 --- a/python/pykde/sip/kdecore/kconfig.sip +++ /dev/null @@ -1,234 +0,0 @@ -// -// 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; - if (((ainst = sipBuildResult (NULL, "N", new QString (acpp), sipClass_QString)) == NULL) - || ((binst = sipBuildResult (NULL, "N", new QString (bcpp), sipClass_QString)) == 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; - int pos = 0; - QString *acpp; - QString *bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0; - - acpp = (QString *)sipForceConvertTo_QString (aelem, &iserr); - bcpp = (QString *)sipForceConvertTo_QString (belem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cppmap; - return 0; - } - - cppmap->insert (*acpp, *bcpp); - } - - *sipCppPtr = cppmap; - - return 1; -%End -}; - - -%If (KDE_3_2_0 - ) -%MappedType KSharedConfig::Ptr -//converts KSharedConfig -{ -%TypeHeaderCode -#include -#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 *)sipForceConvertTo_KSharedConfig (sipPy, &iserr); - - if (iserr) - { - *sipIsErr = 1; - return 0; - } - - *sipCppPtr = new KSharedPtr (cpp); - - return 1; -%End -}; -%End - - diff --git a/python/pykde/sip/kdecore/kconfigbackend.sip b/python/pykde/sip/kdecore/kconfigbackend.sip deleted file mode 100644 index 0e1b52ed..00000000 --- a/python/pykde/sip/kdecore/kconfigbackend.sip +++ /dev/null @@ -1,93 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kconfigbase.sip b/python/pykde/sip/kdecore/kconfigbase.sip deleted file mode 100644 index 4bee20a6..00000000 --- a/python/pykde/sip/kdecore/kconfigbase.sip +++ /dev/null @@ -1,333 +0,0 @@ -// -// 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 KConfigBase : QObject -{ -%TypeHeaderCode -typedef long long longlong; -typedef unsigned long long ulonglong; -#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 -#include // typdef for longlong -#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 -#include // typdef for ulonglong -#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_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/python/pykde/sip/kdecore/kconfigdata.sip b/python/pykde/sip/kdecore/kconfigdata.sip deleted file mode 100644 index e57e835d..00000000 --- a/python/pykde/sip/kdecore/kconfigdata.sip +++ /dev/null @@ -1,176 +0,0 @@ -// -// 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 - -typedef QMap KEntryMap; -//ig typedef QMap::Iterator KEntryMapIterator; -//ig typedef QMap::ConstIterator KEntryMapConstIterator; -//force -KEntryMap testKEntryMap (SIP_PYOBJECT) [KEntryMap (KEntryMap)]; -%MethodCode -//takes dict | (KEntryMap) -//returns (QMap -#include -#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 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; - if (((ainst = sipBuildResult (NULL, "N", new KEntryKey (acpp), sipClass_KEntryKey)) == NULL) - || ((binst = sipBuildResult (NULL, "N", new KEntry (bcpp), sipClass_KEntry)) == 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; - int pos = 0; - KEntryKey *acpp; - KEntry *bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0; - - acpp = (KEntryKey *)sipForceConvertTo_KEntryKey (aelem, &iserr); - bcpp = (KEntry *)sipForceConvertTo_KEntry (belem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cppmap; - return 0; - } - - cppmap->insert (*acpp, *bcpp); - } - - *sipCppPtr = cppmap; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kdecore/kconfigdialogmanager.sip b/python/pykde/sip/kdecore/kconfigdialogmanager.sip deleted file mode 100644 index 4f924daa..00000000 --- a/python/pykde/sip/kdecore/kconfigdialogmanager.sip +++ /dev/null @@ -1,64 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kconfigskeleton.sip b/python/pykde/sip/kdecore/kconfigskeleton.sip deleted file mode 100644 index 4e1c0341..00000000 --- a/python/pykde/sip/kdecore/kconfigskeleton.sip +++ /dev/null @@ -1,1149 +0,0 @@ -// -// 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 -#include -#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 -#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 = sipBuildResult (NULL, "N", new KConfigSkeleton::ItemEnum::Choice (*it), sipClass_KConfigSkeleton_ItemEnum_Choice)) == 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 *)sipForceConvertTo_KConfigSkeleton_ItemEnum_Choice (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; -%End - - diff --git a/python/pykde/sip/kdecore/kcrash.sip b/python/pykde/sip/kdecore/kcrash.sip deleted file mode 100644 index cd8d672c..00000000 --- a/python/pykde/sip/kdecore/kcrash.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kdcoppropertyproxy.sip b/python/pykde/sip/kdecore/kdcoppropertyproxy.sip deleted file mode 100644 index 081d031d..00000000 --- a/python/pykde/sip/kdecore/kdcoppropertyproxy.sip +++ /dev/null @@ -1,44 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kdebug.sip b/python/pykde/sip/kdecore/kdebug.sip deleted file mode 100644 index 6df8bb90..00000000 --- a/python/pykde/sip/kdecore/kdebug.sip +++ /dev/null @@ -1,67 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kdecore-kde310.diff b/python/pykde/sip/kdecore/kdecore-kde310.diff deleted file mode 100644 index d87c911c..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde310.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kclipboard.sip diff --git a/python/pykde/sip/kdecore/kdecore-kde311.diff b/python/pykde/sip/kdecore/kdecore-kde311.diff deleted file mode 100644 index d87c911c..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde311.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kclipboard.sip diff --git a/python/pykde/sip/kdecore/kdecore-kde312.diff b/python/pykde/sip/kdecore/kdecore-kde312.diff deleted file mode 100644 index d87c911c..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde312.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kclipboard.sip diff --git a/python/pykde/sip/kdecore/kdecore-kde313.diff b/python/pykde/sip/kdecore/kdecore-kde313.diff deleted file mode 100644 index d87c911c..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde313.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kclipboard.sip diff --git a/python/pykde/sip/kdecore/kdecore-kde314.diff b/python/pykde/sip/kdecore/kdecore-kde314.diff deleted file mode 100644 index 13e77190..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde314.diff +++ /dev/null @@ -1,3 +0,0 @@ -+ %Include kclipboard.sip -+ %Include kdeversion.sip -+ %Include kurldrag.sip diff --git a/python/pykde/sip/kdecore/kdecore-kde315.diff b/python/pykde/sip/kdecore/kdecore-kde315.diff deleted file mode 100644 index 13e77190..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde315.diff +++ /dev/null @@ -1,3 +0,0 @@ -+ %Include kclipboard.sip -+ %Include kdeversion.sip -+ %Include kurldrag.sip diff --git a/python/pykde/sip/kdecore/kdecore-kde320.diff b/python/pykde/sip/kdecore/kdecore-kde320.diff deleted file mode 100644 index 8476e6c5..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde320.diff +++ /dev/null @@ -1,16 +0,0 @@ -+ %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/python/pykde/sip/kdecore/kdecore-kde321.diff b/python/pykde/sip/kdecore/kdecore-kde321.diff deleted file mode 100644 index 5dc526db..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde321.diff +++ /dev/null @@ -1,12 +0,0 @@ -+ %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/python/pykde/sip/kdecore/kdecore-kde322.diff b/python/pykde/sip/kdecore/kdecore-kde322.diff deleted file mode 100644 index e0d64ad2..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde322.diff +++ /dev/null @@ -1,13 +0,0 @@ -+ %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/python/pykde/sip/kdecore/kdecore-kde323.diff b/python/pykde/sip/kdecore/kdecore-kde323.diff deleted file mode 100644 index e0d64ad2..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde323.diff +++ /dev/null @@ -1,13 +0,0 @@ -+ %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/python/pykde/sip/kdecore/kdecore-kde330.diff b/python/pykde/sip/kdecore/kdecore-kde330.diff deleted file mode 100644 index d202574f..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde330.diff +++ /dev/null @@ -1,15 +0,0 @@ -+ %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/python/pykde/sip/kdecore/kdecore-kde331.diff b/python/pykde/sip/kdecore/kdecore-kde331.diff deleted file mode 100644 index d202574f..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde331.diff +++ /dev/null @@ -1,15 +0,0 @@ -+ %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/python/pykde/sip/kdecore/kdecore-kde332.diff b/python/pykde/sip/kdecore/kdecore-kde332.diff deleted file mode 100644 index d202574f..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde332.diff +++ /dev/null @@ -1,15 +0,0 @@ -+ %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/python/pykde/sip/kdecore/kdecore-kde340.diff b/python/pykde/sip/kdecore/kdecore-kde340.diff deleted file mode 100644 index d202574f..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde340.diff +++ /dev/null @@ -1,15 +0,0 @@ -+ %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/python/pykde/sip/kdecore/kdecore-kde341.diff b/python/pykde/sip/kdecore/kdecore-kde341.diff deleted file mode 100644 index d202574f..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde341.diff +++ /dev/null @@ -1,15 +0,0 @@ -+ %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/python/pykde/sip/kdecore/kdecore-kde342.diff b/python/pykde/sip/kdecore/kdecore-kde342.diff deleted file mode 100644 index d202574f..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde342.diff +++ /dev/null @@ -1,15 +0,0 @@ -+ %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/python/pykde/sip/kdecore/kdecore-kde343.diff b/python/pykde/sip/kdecore/kdecore-kde343.diff deleted file mode 100644 index d202574f..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde343.diff +++ /dev/null @@ -1,15 +0,0 @@ -+ %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/python/pykde/sip/kdecore/kdecore-kde350.diff b/python/pykde/sip/kdecore/kdecore-kde350.diff deleted file mode 100644 index b8dba4ca..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde350.diff +++ /dev/null @@ -1,16 +0,0 @@ -+ %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/python/pykde/sip/kdecore/kdecore-kde351.diff b/python/pykde/sip/kdecore/kdecore-kde351.diff deleted file mode 100644 index b8dba4ca..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde351.diff +++ /dev/null @@ -1,16 +0,0 @@ -+ %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/python/pykde/sip/kdecore/kdecore-kde352.diff b/python/pykde/sip/kdecore/kdecore-kde352.diff deleted file mode 100644 index b8dba4ca..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde352.diff +++ /dev/null @@ -1,16 +0,0 @@ -+ %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/python/pykde/sip/kdecore/kdecore-kde353.diff b/python/pykde/sip/kdecore/kdecore-kde353.diff deleted file mode 100644 index b8dba4ca..00000000 --- a/python/pykde/sip/kdecore/kdecore-kde353.diff +++ /dev/null @@ -1,16 +0,0 @@ -+ %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/python/pykde/sip/kdecore/kdecoremod.sip.in b/python/pykde/sip/kdecore/kdecoremod.sip.in deleted file mode 100644 index afe338fd..00000000 --- a/python/pykde/sip/kdecore/kdecoremod.sip.in +++ /dev/null @@ -1,99 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kdesktopfile.sip b/python/pykde/sip/kdecore/kdesktopfile.sip deleted file mode 100644 index 07d18853..00000000 --- a/python/pykde/sip/kdecore/kdesktopfile.sip +++ /dev/null @@ -1,85 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kdesktopwidget.sip b/python/pykde/sip/kdecore/kdesktopwidget.sip deleted file mode 100644 index 06fff874..00000000 --- a/python/pykde/sip/kdecore/kdesktopwidget.sip +++ /dev/null @@ -1,45 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kdestyle.sip b/python/pykde/sip/kdecore/kdestyle.sip deleted file mode 100644 index 9aa4a84b..00000000 --- a/python/pykde/sip/kdecore/kdestyle.sip +++ /dev/null @@ -1,108 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kdeversion.sip b/python/pykde/sip/kdecore/kdeversion.sip deleted file mode 100644 index 821c6b66..00000000 --- a/python/pykde/sip/kdecore/kdeversion.sip +++ /dev/null @@ -1,45 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kglobal.sip b/python/pykde/sip/kdecore/kglobal.sip deleted file mode 100644 index f964752c..00000000 --- a/python/pykde/sip/kdecore/kglobal.sip +++ /dev/null @@ -1,65 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kglobalaccel.sip b/python/pykde/sip/kdecore/kglobalaccel.sip deleted file mode 100644 index 81d2bf83..00000000 --- a/python/pykde/sip/kdecore/kglobalaccel.sip +++ /dev/null @@ -1,87 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kglobalsettings.sip b/python/pykde/sip/kdecore/kglobalsettings.sip deleted file mode 100644 index 46a2315c..00000000 --- a/python/pykde/sip/kdecore/kglobalsettings.sip +++ /dev/null @@ -1,157 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kiconeffect.sip b/python/pykde/sip/kdecore/kiconeffect.sip deleted file mode 100644 index 03e1b376..00000000 --- a/python/pykde/sip/kdecore/kiconeffect.sip +++ /dev/null @@ -1,102 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kiconloader.sip b/python/pykde/sip/kdecore/kiconloader.sip deleted file mode 100644 index fa74c74d..00000000 --- a/python/pykde/sip/kdecore/kiconloader.sip +++ /dev/null @@ -1,92 +0,0 @@ -// -// 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 - -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/python/pykde/sip/kdecore/kicontheme.sip b/python/pykde/sip/kdecore/kicontheme.sip deleted file mode 100644 index 26a8f887..00000000 --- a/python/pykde/sip/kdecore/kicontheme.sip +++ /dev/null @@ -1,249 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kidna.sip b/python/pykde/sip/kdecore/kidna.sip deleted file mode 100644 index 12eda377..00000000 --- a/python/pykde/sip/kdecore/kidna.sip +++ /dev/null @@ -1,40 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kinstance.sip b/python/pykde/sip/kdecore/kinstance.sip deleted file mode 100644 index ddbbe13f..00000000 --- a/python/pykde/sip/kdecore/kinstance.sip +++ /dev/null @@ -1,75 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kipc.sip b/python/pykde/sip/kdecore/kipc.sip deleted file mode 100644 index c8625ad4..00000000 --- a/python/pykde/sip/kdecore/kipc.sip +++ /dev/null @@ -1,98 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kkeynative.sip b/python/pykde/sip/kdecore/kkeynative.sip deleted file mode 100644 index 64aecfa8..00000000 --- a/python/pykde/sip/kdecore/kkeynative.sip +++ /dev/null @@ -1,90 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kkeyserver_x11.sip b/python/pykde/sip/kdecore/kkeyserver_x11.sip deleted file mode 100644 index 2744c5bf..00000000 --- a/python/pykde/sip/kdecore/kkeyserver_x11.sip +++ /dev/null @@ -1,187 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/klibloader.sip b/python/pykde/sip/kdecore/klibloader.sip deleted file mode 100644 index 1e9f460e..00000000 --- a/python/pykde/sip/kdecore/klibloader.sip +++ /dev/null @@ -1,103 +0,0 @@ -// -// 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 ()); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KLibFactory - diff --git a/python/pykde/sip/kdecore/klocale.sip b/python/pykde/sip/kdecore/klocale.sip deleted file mode 100644 index 355a39d5..00000000 --- a/python/pykde/sip/kdecore/klocale.sip +++ /dev/null @@ -1,238 +0,0 @@ -// -// 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 - -QString i18n (const char*); -QString i18n (const char*, const char*); -QString i18n (const char*, const char*, ulong); diff --git a/python/pykde/sip/kdecore/klockfile.sip b/python/pykde/sip/kdecore/klockfile.sip deleted file mode 100644 index fba7c47d..00000000 --- a/python/pykde/sip/kdecore/klockfile.sip +++ /dev/null @@ -1,113 +0,0 @@ -// -// 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 -#include <../kdecore/sipkdecoreKLockFile.h> -%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 *)sipForceConvertTo_KLockFile (sipPy, &iserr); - - if (iserr) - { - *sipIsErr = 1; - return 0; - } - - *sipCppPtr = new KSharedPtr (cpp); - - return 1; -%End -}; -%End - - diff --git a/python/pykde/sip/kdecore/kmacroexpander.sip b/python/pykde/sip/kdecore/kmacroexpander.sip deleted file mode 100644 index 805d5c4e..00000000 --- a/python/pykde/sip/kdecore/kmacroexpander.sip +++ /dev/null @@ -1,364 +0,0 @@ -// -// 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 = sipBuildResult (NULL, "N", new QChar (acpp), sipClass_QChar)) == 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; - int pos = 0; - QChar *cKey; - QString *sData; - - while (PyDict_Next(sipPy, &pos, &key, &value)) - { - int iserr = 0; - - cKey = (QChar *)sipForceConvertTo_QChar (key, &iserr); - sData = (QString *)sipForceConvertTo_QString (value, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete map; - return 0; - } - - map->insert (*cKey, *sData); - } - - *sipCppPtr = map; - - return 1; -%End -}; - - -%MappedType QMap -//converts a Python dict of QString:QStringList -{ -%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) - { - QStringList bcpp = it.data (); - PyObject *ainst = PyString_FromString ((char *)((QString *)&it.key ())); - PyObject *binst; - if (((binst = sipBuildResult (NULL, "N", new QStringList (bcpp), sipClass_QStringList)) == 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; - int pos = 0; - QString *sKey; - QStringList *slData; - - while (PyDict_Next(sipPy, &pos, &key, &value)) - { - int iserr = 0; - - sKey = (QString *)sipForceConvertTo_QString (value, &iserr); - slData = (QStringList *)sipForceConvertTo_QStringList (value, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete map; - return 0; - } - - map->insert (*sKey, *slData); - } - - *sipCppPtr = map; - - return 1; -%End -}; - - -%MappedType QMap -//converts a Python dict of QChar:QStringList -{ -%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 (); - QStringList bcpp = it.data (); - PyObject *binst; - PyObject *ainst; - if (((ainst = sipBuildResult (NULL, "N", new QChar (acpp), sipClass_QChar)) == NULL) - || (binst = sipBuildResult (NULL, "N", new QStringList (bcpp), sipClass_QStringList)) - || (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; - int pos = 0; - QChar *cKey; - QStringList *slData; - - while (PyDict_Next(sipPy, &pos, &key, &value)) - { - int iserr = 0; - - cKey = (QChar *)sipForceConvertTo_QChar (key, &iserr); - slData = (QStringList *)sipForceConvertTo_QStringList (value, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete map; - return 0; - } - - map->insert (*cKey, *slData); - } - - *sipCppPtr = map; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kdecore/kmanagerselection.sip b/python/pykde/sip/kdecore/kmanagerselection.sip deleted file mode 100644 index 8694f8aa..00000000 --- a/python/pykde/sip/kdecore/kmanagerselection.sip +++ /dev/null @@ -1,91 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kmdcodec.sip b/python/pykde/sip/kdecore/kmdcodec.sip deleted file mode 100644 index e9d1c80a..00000000 --- a/python/pykde/sip/kdecore/kmdcodec.sip +++ /dev/null @@ -1,156 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kmimesourcefactory.sip b/python/pykde/sip/kdecore/kmimesourcefactory.sip deleted file mode 100644 index cc321dd0..00000000 --- a/python/pykde/sip/kdecore/kmimesourcefactory.sip +++ /dev/null @@ -1,42 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kmountpoint.sip b/python/pykde/sip/kdecore/kmountpoint.sip deleted file mode 100644 index 5d7b7787..00000000 --- a/python/pykde/sip/kdecore/kmountpoint.sip +++ /dev/null @@ -1,189 +0,0 @@ -// -// 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 -#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 *)sipForceConvertTo_KMountPoint (sipPy, &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 -#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 = sipConvertFrom_KMountPoint_Ptr (&(KMountPoint::Ptr)(*it), 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 *)sipForceConvertTo_KMountPoint (elem, &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/python/pykde/sip/kdecore/kmultipledrag.sip b/python/pykde/sip/kdecore/kmultipledrag.sip deleted file mode 100644 index 45d6fe7f..00000000 --- a/python/pykde/sip/kdecore/kmultipledrag.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/knotifyclient.sip b/python/pykde/sip/kdecore/knotifyclient.sip deleted file mode 100644 index 47664b88..00000000 --- a/python/pykde/sip/kdecore/knotifyclient.sip +++ /dev/null @@ -1,139 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kpalette.sip b/python/pykde/sip/kdecore/kpalette.sip deleted file mode 100644 index 46008b16..00000000 --- a/python/pykde/sip/kdecore/kpalette.sip +++ /dev/null @@ -1,63 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kpixmapprovider.sip b/python/pykde/sip/kdecore/kpixmapprovider.sip deleted file mode 100644 index c0a798fc..00000000 --- a/python/pykde/sip/kdecore/kpixmapprovider.sip +++ /dev/null @@ -1,41 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kprocctrl.sip b/python/pykde/sip/kdecore/kprocctrl.sip deleted file mode 100644 index fbe00c3d..00000000 --- a/python/pykde/sip/kdecore/kprocctrl.sip +++ /dev/null @@ -1,95 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kprocess.sip b/python/pykde/sip/kdecore/kprocess.sip deleted file mode 100644 index eae4aa42..00000000 --- a/python/pykde/sip/kdecore/kprocess.sip +++ /dev/null @@ -1,272 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kprocio.sip b/python/pykde/sip/kdecore/kprocio.sip deleted file mode 100644 index 2a09e28a..00000000 --- a/python/pykde/sip/kdecore/kprocio.sip +++ /dev/null @@ -1,67 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kpty.sip b/python/pykde/sip/kdecore/kpty.sip deleted file mode 100644 index 50981815..00000000 --- a/python/pykde/sip/kdecore/kpty.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/krandomsequence.sip b/python/pykde/sip/kdecore/krandomsequence.sip deleted file mode 100644 index 4e550112..00000000 --- a/python/pykde/sip/kdecore/krandomsequence.sip +++ /dev/null @@ -1,45 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kregexp.sip b/python/pykde/sip/kdecore/kregexp.sip deleted file mode 100644 index 57c8d99c..00000000 --- a/python/pykde/sip/kdecore/kregexp.sip +++ /dev/null @@ -1,44 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/krfcdate.sip b/python/pykde/sip/kdecore/krfcdate.sip deleted file mode 100644 index c91546fa..00000000 --- a/python/pykde/sip/kdecore/krfcdate.sip +++ /dev/null @@ -1,42 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/krootprop.sip b/python/pykde/sip/kdecore/krootprop.sip deleted file mode 100644 index 1b6f5a8c..00000000 --- a/python/pykde/sip/kdecore/krootprop.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/ksavefile.sip b/python/pykde/sip/kdecore/ksavefile.sip deleted file mode 100644 index c2974aaa..00000000 --- a/python/pykde/sip/kdecore/ksavefile.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/ksharedptr.sip b/python/pykde/sip/kdecore/ksharedptr.sip deleted file mode 100644 index 8f5e83c5..00000000 --- a/python/pykde/sip/kdecore/ksharedptr.sip +++ /dev/null @@ -1,45 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kshell.sip b/python/pykde/sip/kdecore/kshell.sip deleted file mode 100644 index d17de1a8..00000000 --- a/python/pykde/sip/kdecore/kshell.sip +++ /dev/null @@ -1,77 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kshortcut.sip b/python/pykde/sip/kdecore/kshortcut.sip deleted file mode 100644 index 79b4b0e8..00000000 --- a/python/pykde/sip/kdecore/kshortcut.sip +++ /dev/null @@ -1,261 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kshortcutlist.sip b/python/pykde/sip/kdecore/kshortcutlist.sip deleted file mode 100644 index a65e44c1..00000000 --- a/python/pykde/sip/kdecore/kshortcutlist.sip +++ /dev/null @@ -1,133 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/ksimpleconfig.sip b/python/pykde/sip/kdecore/ksimpleconfig.sip deleted file mode 100644 index 723236e8..00000000 --- a/python/pykde/sip/kdecore/ksimpleconfig.sip +++ /dev/null @@ -1,50 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/ksock.sip b/python/pykde/sip/kdecore/ksock.sip deleted file mode 100644 index df11aaeb..00000000 --- a/python/pykde/sip/kdecore/ksock.sip +++ /dev/null @@ -1,97 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kstartupinfo.sip b/python/pykde/sip/kdecore/kstartupinfo.sip deleted file mode 100644 index 6d4d308e..00000000 --- a/python/pykde/sip/kdecore/kstartupinfo.sip +++ /dev/null @@ -1,280 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kstaticdeleter.sip b/python/pykde/sip/kdecore/kstaticdeleter.sip deleted file mode 100644 index 9870f18f..00000000 --- a/python/pykde/sip/kdecore/kstaticdeleter.sip +++ /dev/null @@ -1,38 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kstdaccel.sip b/python/pykde/sip/kdecore/kstdaccel.sip deleted file mode 100644 index 44bd9b82..00000000 --- a/python/pykde/sip/kdecore/kstdaccel.sip +++ /dev/null @@ -1,441 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kstddirs.sip b/python/pykde/sip/kdecore/kstddirs.sip deleted file mode 100644 index e0238f41..00000000 --- a/python/pykde/sip/kdecore/kstddirs.sip +++ /dev/null @@ -1,64 +0,0 @@ -// -// 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 - -QString locate (const char*, const QString&, const KInstance* = KGlobal::instance()); -QString locateLocal (const char*, const QString&, const KInstance* = KGlobal::instance()); diff --git a/python/pykde/sip/kdecore/kstringhandler.sip b/python/pykde/sip/kdecore/kstringhandler.sip deleted file mode 100644 index 9021b920..00000000 --- a/python/pykde/sip/kdecore/kstringhandler.sip +++ /dev/null @@ -1,89 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/ktempdir.sip b/python/pykde/sip/kdecore/ktempdir.sip deleted file mode 100644 index b7ea5442..00000000 --- a/python/pykde/sip/kdecore/ktempdir.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/ktempfile.sip b/python/pykde/sip/kdecore/ktempfile.sip deleted file mode 100644 index 6cd60bff..00000000 --- a/python/pykde/sip/kdecore/ktempfile.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/ktimezones.sip b/python/pykde/sip/kdecore/ktimezones.sip deleted file mode 100644 index 32d04f4a..00000000 --- a/python/pykde/sip/kdecore/ktimezones.sip +++ /dev/null @@ -1,264 +0,0 @@ -// -// 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 -#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 *)sipForceConvertTo_KTimezoneSource (sipPy, &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 -#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; - if (((ainst = sipBuildResult (NULL, "N", new QString (acpp), sipClass_QString)) == NULL) - || ((binst = sipBuildResult (NULL, "N", (KTimezone *) bcpp, sipClass_KTimezone)) == 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; - int pos = 0; - QString *acpp; - KTimezone *bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0; - - acpp = (QString *)sipForceConvertTo_QString (aelem, &iserr); - bcpp = (KTimezone *)sipForceConvertTo_KTimezone (aelem, &iserr); - - cppmap->insert (*acpp, bcpp); - } - - *sipCppPtr = cppmap; - - return 1; -%End -}; -%End - - diff --git a/python/pykde/sip/kdecore/kuniqueapplication.sip b/python/pykde/sip/kdecore/kuniqueapplication.sip deleted file mode 100644 index 9637c6e3..00000000 --- a/python/pykde/sip/kdecore/kuniqueapplication.sip +++ /dev/null @@ -1,68 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kurl.sip b/python/pykde/sip/kdecore/kurl.sip deleted file mode 100644 index c98053fd..00000000 --- a/python/pykde/sip/kdecore/kurl.sip +++ /dev/null @@ -1,405 +0,0 @@ -// -// 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, 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, 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, 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/python/pykde/sip/kdecore/kurldrag.sip b/python/pykde/sip/kdecore/kurldrag.sip deleted file mode 100644 index 12fceb4e..00000000 --- a/python/pykde/sip/kdecore/kurldrag.sip +++ /dev/null @@ -1,76 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kuser.sip b/python/pykde/sip/kdecore/kuser.sip deleted file mode 100644 index d79ea99b..00000000 --- a/python/pykde/sip/kdecore/kuser.sip +++ /dev/null @@ -1,74 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kvmallocator.sip b/python/pykde/sip/kdecore/kvmallocator.sip deleted file mode 100644 index 207b59ed..00000000 --- a/python/pykde/sip/kdecore/kvmallocator.sip +++ /dev/null @@ -1,42 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kwin.sip b/python/pykde/sip/kdecore/kwin.sip deleted file mode 100644 index 60095d70..00000000 --- a/python/pykde/sip/kdecore/kwin.sip +++ /dev/null @@ -1,188 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/kwinmodule.sip b/python/pykde/sip/kdecore/kwinmodule.sip deleted file mode 100644 index fec2c6d0..00000000 --- a/python/pykde/sip/kdecore/kwinmodule.sip +++ /dev/null @@ -1,159 +0,0 @@ -// -// 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; - PyObject *inst; - - // 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/python/pykde/sip/kdecore/kxmessages.sip b/python/pykde/sip/kdecore/kxmessages.sip deleted file mode 100644 index 4c03dc09..00000000 --- a/python/pykde/sip/kdecore/kxmessages.sip +++ /dev/null @@ -1,55 +0,0 @@ -// -// 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/python/pykde/sip/kdecore/netwm.sip b/python/pykde/sip/kdecore/netwm.sip deleted file mode 100644 index ed90f65e..00000000 --- a/python/pykde/sip/kdecore/netwm.sip +++ /dev/null @@ -1,649 +0,0 @@ -// -// 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 - - -%MappedType Display -//converts Display -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - Py_INCREF(Py_None); - return Py_None; -%End - -%ConvertToTypeCode - *sipCppPtr = qt_xdisplay (); - return 1; -%End -}; - - diff --git a/python/pykde/sip/kdecore/netwm_def.sip b/python/pykde/sip/kdecore/netwm_def.sip deleted file mode 100644 index 7c14ba7a..00000000 --- a/python/pykde/sip/kdecore/netwm_def.sip +++ /dev/null @@ -1,535 +0,0 @@ -// -// 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/python/pykde/sip/kdefx/kcpuinfo.sip b/python/pykde/sip/kdefx/kcpuinfo.sip deleted file mode 100644 index 9fafc4a3..00000000 --- a/python/pykde/sip/kdefx/kcpuinfo.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// 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/python/pykde/sip/kdefx/kdefx-kde320.diff b/python/pykde/sip/kdefx/kdefx-kde320.diff deleted file mode 100644 index 147a7f5a..00000000 --- a/python/pykde/sip/kdefx/kdefx-kde320.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/python/pykde/sip/kdefx/kdefx-kde321.diff b/python/pykde/sip/kdefx/kdefx-kde321.diff deleted file mode 100644 index 147a7f5a..00000000 --- a/python/pykde/sip/kdefx/kdefx-kde321.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/python/pykde/sip/kdefx/kdefx-kde322.diff b/python/pykde/sip/kdefx/kdefx-kde322.diff deleted file mode 100644 index 147a7f5a..00000000 --- a/python/pykde/sip/kdefx/kdefx-kde322.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/python/pykde/sip/kdefx/kdefx-kde323.diff b/python/pykde/sip/kdefx/kdefx-kde323.diff deleted file mode 100644 index 147a7f5a..00000000 --- a/python/pykde/sip/kdefx/kdefx-kde323.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/python/pykde/sip/kdefx/kdefx-kde330.diff b/python/pykde/sip/kdefx/kdefx-kde330.diff deleted file mode 100644 index 147a7f5a..00000000 --- a/python/pykde/sip/kdefx/kdefx-kde330.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/python/pykde/sip/kdefx/kdefx-kde331.diff b/python/pykde/sip/kdefx/kdefx-kde331.diff deleted file mode 100644 index 147a7f5a..00000000 --- a/python/pykde/sip/kdefx/kdefx-kde331.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/python/pykde/sip/kdefx/kdefx-kde332.diff b/python/pykde/sip/kdefx/kdefx-kde332.diff deleted file mode 100644 index 147a7f5a..00000000 --- a/python/pykde/sip/kdefx/kdefx-kde332.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/python/pykde/sip/kdefx/kdefx-kde340.diff b/python/pykde/sip/kdefx/kdefx-kde340.diff deleted file mode 100644 index 147a7f5a..00000000 --- a/python/pykde/sip/kdefx/kdefx-kde340.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/python/pykde/sip/kdefx/kdefx-kde341.diff b/python/pykde/sip/kdefx/kdefx-kde341.diff deleted file mode 100644 index 147a7f5a..00000000 --- a/python/pykde/sip/kdefx/kdefx-kde341.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/python/pykde/sip/kdefx/kdefx-kde342.diff b/python/pykde/sip/kdefx/kdefx-kde342.diff deleted file mode 100644 index 147a7f5a..00000000 --- a/python/pykde/sip/kdefx/kdefx-kde342.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/python/pykde/sip/kdefx/kdefx-kde343.diff b/python/pykde/sip/kdefx/kdefx-kde343.diff deleted file mode 100644 index 147a7f5a..00000000 --- a/python/pykde/sip/kdefx/kdefx-kde343.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/python/pykde/sip/kdefx/kdefx-kde350.diff b/python/pykde/sip/kdefx/kdefx-kde350.diff deleted file mode 100644 index 147a7f5a..00000000 --- a/python/pykde/sip/kdefx/kdefx-kde350.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/python/pykde/sip/kdefx/kdefx-kde351.diff b/python/pykde/sip/kdefx/kdefx-kde351.diff deleted file mode 100644 index 147a7f5a..00000000 --- a/python/pykde/sip/kdefx/kdefx-kde351.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/python/pykde/sip/kdefx/kdefx-kde352.diff b/python/pykde/sip/kdefx/kdefx-kde352.diff deleted file mode 100644 index 147a7f5a..00000000 --- a/python/pykde/sip/kdefx/kdefx-kde352.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/python/pykde/sip/kdefx/kdefx-kde353.diff b/python/pykde/sip/kdefx/kdefx-kde353.diff deleted file mode 100644 index 147a7f5a..00000000 --- a/python/pykde/sip/kdefx/kdefx-kde353.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/python/pykde/sip/kdefx/kdefxmod.sip b/python/pykde/sip/kdefx/kdefxmod.sip deleted file mode 100644 index b3dc3b03..00000000 --- a/python/pykde/sip/kdefx/kdefxmod.sip +++ /dev/null @@ -1,41 +0,0 @@ -// -// 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 -%Include kcpuinfo.sip diff --git a/python/pykde/sip/kdefx/kdefxmod.sip.in b/python/pykde/sip/kdefx/kdefxmod.sip.in deleted file mode 100644 index 6cbad382..00000000 --- a/python/pykde/sip/kdefx/kdefxmod.sip.in +++ /dev/null @@ -1,41 +0,0 @@ -// -// 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/python/pykde/sip/kdefx/kdrawutil.sip b/python/pykde/sip/kdefx/kdrawutil.sip deleted file mode 100644 index 7afea686..00000000 --- a/python/pykde/sip/kdefx/kdrawutil.sip +++ /dev/null @@ -1,41 +0,0 @@ -// -// 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 -#include -#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/python/pykde/sip/kdefx/kimageeffect.sip b/python/pykde/sip/kdefx/kimageeffect.sip deleted file mode 100644 index b75243e9..00000000 --- a/python/pykde/sip/kdefx/kimageeffect.sip +++ /dev/null @@ -1,205 +0,0 @@ -// -// 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/python/pykde/sip/kdefx/kpixmap.sip b/python/pykde/sip/kdefx/kpixmap.sip deleted file mode 100644 index ba19245b..00000000 --- a/python/pykde/sip/kdefx/kpixmap.sip +++ /dev/null @@ -1,65 +0,0 @@ -// -// 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/python/pykde/sip/kdefx/kpixmapeffect.sip b/python/pykde/sip/kdefx/kpixmapeffect.sip deleted file mode 100644 index f1d92794..00000000 --- a/python/pykde/sip/kdefx/kpixmapeffect.sip +++ /dev/null @@ -1,85 +0,0 @@ -// -// 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/python/pykde/sip/kdefx/kpixmapsplitter.sip b/python/pykde/sip/kdefx/kpixmapsplitter.sip deleted file mode 100644 index 638d7341..00000000 --- a/python/pykde/sip/kdefx/kpixmapsplitter.sip +++ /dev/null @@ -1,46 +0,0 @@ -// -// 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/python/pykde/sip/kdefx/kstyle.sip b/python/pykde/sip/kdefx/kstyle.sip deleted file mode 100644 index 42ee3787..00000000 --- a/python/pykde/sip/kdefx/kstyle.sip +++ /dev/null @@ -1,126 +0,0 @@ -// -// 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/python/pykde/sip/kdeprint/driver.sip b/python/pykde/sip/kdeprint/driver.sip deleted file mode 100644 index c787b230..00000000 --- a/python/pykde/sip/kdeprint/driver.sip +++ /dev/null @@ -1,338 +0,0 @@ -// -// 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/python/pykde/sip/kdeprint/kdeprint-kde310.diff b/python/pykde/sip/kdeprint/kdeprint-kde310.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde310.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde311.diff b/python/pykde/sip/kdeprint/kdeprint-kde311.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde311.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde312.diff b/python/pykde/sip/kdeprint/kdeprint-kde312.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde312.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde313.diff b/python/pykde/sip/kdeprint/kdeprint-kde313.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde313.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde314.diff b/python/pykde/sip/kdeprint/kdeprint-kde314.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde314.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde315.diff b/python/pykde/sip/kdeprint/kdeprint-kde315.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde315.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde320.diff b/python/pykde/sip/kdeprint/kdeprint-kde320.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde320.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde321.diff b/python/pykde/sip/kdeprint/kdeprint-kde321.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde321.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde322.diff b/python/pykde/sip/kdeprint/kdeprint-kde322.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde322.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde323.diff b/python/pykde/sip/kdeprint/kdeprint-kde323.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde323.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde330.diff b/python/pykde/sip/kdeprint/kdeprint-kde330.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde330.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde331.diff b/python/pykde/sip/kdeprint/kdeprint-kde331.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde331.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde332.diff b/python/pykde/sip/kdeprint/kdeprint-kde332.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde332.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde340.diff b/python/pykde/sip/kdeprint/kdeprint-kde340.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde340.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde341.diff b/python/pykde/sip/kdeprint/kdeprint-kde341.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde341.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde342.diff b/python/pykde/sip/kdeprint/kdeprint-kde342.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde342.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde343.diff b/python/pykde/sip/kdeprint/kdeprint-kde343.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde343.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde350.diff b/python/pykde/sip/kdeprint/kdeprint-kde350.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde350.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde351.diff b/python/pykde/sip/kdeprint/kdeprint-kde351.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde351.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde352.diff b/python/pykde/sip/kdeprint/kdeprint-kde352.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde352.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprint-kde353.diff b/python/pykde/sip/kdeprint/kdeprint-kde353.diff deleted file mode 100644 index 705efd49..00000000 --- a/python/pykde/sip/kdeprint/kdeprint-kde353.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/python/pykde/sip/kdeprint/kdeprintmod.sip b/python/pykde/sip/kdeprint/kdeprintmod.sip deleted file mode 100644 index 1e4f81a7..00000000 --- a/python/pykde/sip/kdeprint/kdeprintmod.sip +++ /dev/null @@ -1,48 +0,0 @@ -// -// 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 -%Include kmjob.sip -%Include kmjobmanager.sip - diff --git a/python/pykde/sip/kdeprint/kdeprintmod.sip.in b/python/pykde/sip/kdeprint/kdeprintmod.sip.in deleted file mode 100644 index adaa33d6..00000000 --- a/python/pykde/sip/kdeprint/kdeprintmod.sip.in +++ /dev/null @@ -1,47 +0,0 @@ -// -// 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/python/pykde/sip/kdeprint/kmjob.sip b/python/pykde/sip/kdeprint/kmjob.sip deleted file mode 100644 index 7736bc74..00000000 --- a/python/pykde/sip/kdeprint/kmjob.sip +++ /dev/null @@ -1,113 +0,0 @@ -// -// 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/python/pykde/sip/kdeprint/kmjobmanager.sip b/python/pykde/sip/kdeprint/kmjobmanager.sip deleted file mode 100644 index 5bc957f7..00000000 --- a/python/pykde/sip/kdeprint/kmjobmanager.sip +++ /dev/null @@ -1,198 +0,0 @@ -// -// 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 -#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 *)sipForceConvertTo_KMJob (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; -%End - - diff --git a/python/pykde/sip/kdeprint/kmmanager.sip b/python/pykde/sip/kdeprint/kmmanager.sip deleted file mode 100644 index d54c55f2..00000000 --- a/python/pykde/sip/kdeprint/kmmanager.sip +++ /dev/null @@ -1,221 +0,0 @@ -// -// 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 -#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 *)sipForceConvertTo_KMPrinter(elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete kpList; - return 0; - } - - kpList->append (p); - } - - *sipCppPtr = kpList; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kdeprint/kmobject.sip b/python/pykde/sip/kdeprint/kmobject.sip deleted file mode 100644 index d41ae0f7..00000000 --- a/python/pykde/sip/kdeprint/kmobject.sip +++ /dev/null @@ -1,42 +0,0 @@ -// -// 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/python/pykde/sip/kdeprint/kmprinter.sip b/python/pykde/sip/kdeprint/kmprinter.sip deleted file mode 100644 index 0f8c2e93..00000000 --- a/python/pykde/sip/kdeprint/kmprinter.sip +++ /dev/null @@ -1,178 +0,0 @@ -// -// 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/python/pykde/sip/kdeprint/kpreloadobject.sip b/python/pykde/sip/kdeprint/kpreloadobject.sip deleted file mode 100644 index 61c2c5f6..00000000 --- a/python/pykde/sip/kdeprint/kpreloadobject.sip +++ /dev/null @@ -1,43 +0,0 @@ -// -// 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/python/pykde/sip/kdeprint/kprintaction.sip b/python/pykde/sip/kdeprint/kprintaction.sip deleted file mode 100644 index edb0cda9..00000000 --- a/python/pykde/sip/kdeprint/kprintaction.sip +++ /dev/null @@ -1,61 +0,0 @@ -// -// 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/python/pykde/sip/kdeprint/kprintdialog.sip b/python/pykde/sip/kdeprint/kprintdialog.sip deleted file mode 100644 index 0be008f8..00000000 --- a/python/pykde/sip/kdeprint/kprintdialog.sip +++ /dev/null @@ -1,170 +0,0 @@ -// -// 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 -#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 *)sipForceConvertTo_KPrintDialogPage(elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete kpList; - return 0; - } - - kpList->append (p); - } - - *sipCppPtr = kpList; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kdeprint/kprintdialogpage.sip b/python/pykde/sip/kdeprint/kprintdialogpage.sip deleted file mode 100644 index 5e52bdaa..00000000 --- a/python/pykde/sip/kdeprint/kprintdialogpage.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// 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/python/pykde/sip/kdeprint/kprinter.sip b/python/pykde/sip/kdeprint/kprinter.sip deleted file mode 100644 index ea4d17fc..00000000 --- a/python/pykde/sip/kdeprint/kprinter.sip +++ /dev/null @@ -1,258 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kaboutapplication.sip b/python/pykde/sip/kdeui/kaboutapplication.sip deleted file mode 100644 index 4e64757f..00000000 --- a/python/pykde/sip/kdeui/kaboutapplication.sip +++ /dev/null @@ -1,205 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kaboutdialog.sip b/python/pykde/sip/kdeui/kaboutdialog.sip deleted file mode 100644 index 385ff69d..00000000 --- a/python/pykde/sip/kdeui/kaboutdialog.sip +++ /dev/null @@ -1,190 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kaboutkde.sip b/python/pykde/sip/kdeui/kaboutkde.sip deleted file mode 100644 index 76a31471..00000000 --- a/python/pykde/sip/kdeui/kaboutkde.sip +++ /dev/null @@ -1,38 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kaccelmanager.sip b/python/pykde/sip/kdeui/kaccelmanager.sip deleted file mode 100644 index 6d00d446..00000000 --- a/python/pykde/sip/kdeui/kaccelmanager.sip +++ /dev/null @@ -1,43 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kaccelmenu.sip b/python/pykde/sip/kdeui/kaccelmenu.sip deleted file mode 100644 index b015e1be..00000000 --- a/python/pykde/sip/kdeui/kaccelmenu.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kaction.sip b/python/pykde/sip/kdeui/kaction.sip deleted file mode 100644 index fe5ad26b..00000000 --- a/python/pykde/sip/kdeui/kaction.sip +++ /dev/null @@ -1,759 +0,0 @@ -// -// 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; -#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 (*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 *)sipForceConvertTo_KAction (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kdeui/kactionclasses.sip b/python/pykde/sip/kdeui/kactionclasses.sip deleted file mode 100644 index 799469d1..00000000 --- a/python/pykde/sip/kdeui/kactionclasses.sip +++ /dev/null @@ -1,529 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kactioncollection.sip b/python/pykde/sip/kdeui/kactioncollection.sip deleted file mode 100644 index 7c0c0b18..00000000 --- a/python/pykde/sip/kdeui/kactioncollection.sip +++ /dev/null @@ -1,125 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kactionselector.sip b/python/pykde/sip/kdeui/kactionselector.sip deleted file mode 100644 index 6085356a..00000000 --- a/python/pykde/sip/kdeui/kactionselector.sip +++ /dev/null @@ -1,106 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kactionshortcutlist.sip b/python/pykde/sip/kdeui/kactionshortcutlist.sip deleted file mode 100644 index 572c1048..00000000 --- a/python/pykde/sip/kdeui/kactionshortcutlist.sip +++ /dev/null @@ -1,106 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kactivelabel.sip b/python/pykde/sip/kdeui/kactivelabel.sip deleted file mode 100644 index 2a2ac992..00000000 --- a/python/pykde/sip/kdeui/kactivelabel.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kalphapainter.sip b/python/pykde/sip/kdeui/kalphapainter.sip deleted file mode 100644 index 8c9c5e6c..00000000 --- a/python/pykde/sip/kdeui/kalphapainter.sip +++ /dev/null @@ -1,41 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kanimwidget.sip b/python/pykde/sip/kdeui/kanimwidget.sip deleted file mode 100644 index 9948bc1d..00000000 --- a/python/pykde/sip/kdeui/kanimwidget.sip +++ /dev/null @@ -1,92 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/karrowbutton.sip b/python/pykde/sip/kdeui/karrowbutton.sip deleted file mode 100644 index 4a04f786..00000000 --- a/python/pykde/sip/kdeui/karrowbutton.sip +++ /dev/null @@ -1,55 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kauthicon.sip b/python/pykde/sip/kdeui/kauthicon.sip deleted file mode 100644 index ab9ccc65..00000000 --- a/python/pykde/sip/kdeui/kauthicon.sip +++ /dev/null @@ -1,101 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kbugreport.sip b/python/pykde/sip/kdeui/kbugreport.sip deleted file mode 100644 index 72239ce1..00000000 --- a/python/pykde/sip/kdeui/kbugreport.sip +++ /dev/null @@ -1,54 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kbuttonbox.sip b/python/pykde/sip/kdeui/kbuttonbox.sip deleted file mode 100644 index dfd9d2d8..00000000 --- a/python/pykde/sip/kdeui/kbuttonbox.sip +++ /dev/null @@ -1,59 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kcharselect.sip b/python/pykde/sip/kdeui/kcharselect.sip deleted file mode 100644 index 91b7bfde..00000000 --- a/python/pykde/sip/kdeui/kcharselect.sip +++ /dev/null @@ -1,130 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kcmenumngr.sip b/python/pykde/sip/kdeui/kcmenumngr.sip deleted file mode 100644 index cf4711d0..00000000 --- a/python/pykde/sip/kdeui/kcmenumngr.sip +++ /dev/null @@ -1,43 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kcmodule.sip b/python/pykde/sip/kdeui/kcmodule.sip deleted file mode 100644 index 0fa4fd30..00000000 --- a/python/pykde/sip/kdeui/kcmodule.sip +++ /dev/null @@ -1,183 +0,0 @@ -// -// 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 *)sipForceConvertTo_KConfigDialogManager (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; -%End - - diff --git a/python/pykde/sip/kdeui/kcolorbtn.sip b/python/pykde/sip/kdeui/kcolorbtn.sip deleted file mode 100644 index 53bd2d63..00000000 --- a/python/pykde/sip/kdeui/kcolorbtn.sip +++ /dev/null @@ -1,54 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kcolorcombo.sip b/python/pykde/sip/kdeui/kcolorcombo.sip deleted file mode 100644 index 72727fc9..00000000 --- a/python/pykde/sip/kdeui/kcolorcombo.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kcolordialog.sip b/python/pykde/sip/kdeui/kcolordialog.sip deleted file mode 100644 index 8880d108..00000000 --- a/python/pykde/sip/kdeui/kcolordialog.sip +++ /dev/null @@ -1,237 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kcolordrag.sip b/python/pykde/sip/kdeui/kcolordrag.sip deleted file mode 100644 index cad21daa..00000000 --- a/python/pykde/sip/kdeui/kcolordrag.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kcombobox.sip b/python/pykde/sip/kdeui/kcombobox.sip deleted file mode 100644 index b48f8bd6..00000000 --- a/python/pykde/sip/kdeui/kcombobox.sip +++ /dev/null @@ -1,130 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kcommand.sip b/python/pykde/sip/kdeui/kcommand.sip deleted file mode 100644 index 1491d0a5..00000000 --- a/python/pykde/sip/kdeui/kcommand.sip +++ /dev/null @@ -1,131 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kcompletionbox.sip b/python/pykde/sip/kdeui/kcompletionbox.sip deleted file mode 100644 index 4fcd010c..00000000 --- a/python/pykde/sip/kdeui/kcompletionbox.sip +++ /dev/null @@ -1,86 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kconfigdialog.sip b/python/pykde/sip/kdeui/kconfigdialog.sip deleted file mode 100644 index 6e1415ea..00000000 --- a/python/pykde/sip/kdeui/kconfigdialog.sip +++ /dev/null @@ -1,69 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kcontainer.sip b/python/pykde/sip/kdeui/kcontainer.sip deleted file mode 100644 index f1e8ffdb..00000000 --- a/python/pykde/sip/kdeui/kcontainer.sip +++ /dev/null @@ -1,75 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kcursor.sip b/python/pykde/sip/kdeui/kcursor.sip deleted file mode 100644 index 0e8c51de..00000000 --- a/python/pykde/sip/kdeui/kcursor.sip +++ /dev/null @@ -1,57 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kdatepicker.sip b/python/pykde/sip/kdeui/kdatepicker.sip deleted file mode 100644 index a5a3884f..00000000 --- a/python/pykde/sip/kdeui/kdatepicker.sip +++ /dev/null @@ -1,108 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kdatepik.sip b/python/pykde/sip/kdeui/kdatepik.sip deleted file mode 100644 index 0a747f63..00000000 --- a/python/pykde/sip/kdeui/kdatepik.sip +++ /dev/null @@ -1,64 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kdatetbl.sip b/python/pykde/sip/kdeui/kdatetbl.sip deleted file mode 100644 index 60457a22..00000000 --- a/python/pykde/sip/kdeui/kdatetbl.sip +++ /dev/null @@ -1,303 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kdatetimewidget.sip b/python/pykde/sip/kdeui/kdatetimewidget.sip deleted file mode 100644 index 642a070b..00000000 --- a/python/pykde/sip/kdeui/kdatetimewidget.sip +++ /dev/null @@ -1,50 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kdatewidget.sip b/python/pykde/sip/kdeui/kdatewidget.sip deleted file mode 100644 index d82af51d..00000000 --- a/python/pykde/sip/kdeui/kdatewidget.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kdbtn.sip b/python/pykde/sip/kdeui/kdbtn.sip deleted file mode 100644 index 15a8d15f..00000000 --- a/python/pykde/sip/kdeui/kdbtn.sip +++ /dev/null @@ -1,61 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kdcopactionproxy.sip b/python/pykde/sip/kdeui/kdcopactionproxy.sip deleted file mode 100644 index 10edf101..00000000 --- a/python/pykde/sip/kdeui/kdcopactionproxy.sip +++ /dev/null @@ -1,48 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kdeui-kde310.diff b/python/pykde/sip/kdeui/kdeui-kde310.diff deleted file mode 100644 index bde4a8e9..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde310.diff +++ /dev/null @@ -1,4 +0,0 @@ -+ %Include kaccelmanager.sip -+ %Include kpassivepopup.sip -+ %Include ktextedit.sip -+ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde311.diff b/python/pykde/sip/kdeui/kdeui-kde311.diff deleted file mode 100644 index bde4a8e9..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde311.diff +++ /dev/null @@ -1,4 +0,0 @@ -+ %Include kaccelmanager.sip -+ %Include kpassivepopup.sip -+ %Include ktextedit.sip -+ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde312.diff b/python/pykde/sip/kdeui/kdeui-kde312.diff deleted file mode 100644 index bde4a8e9..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde312.diff +++ /dev/null @@ -1,4 +0,0 @@ -+ %Include kaccelmanager.sip -+ %Include kpassivepopup.sip -+ %Include ktextedit.sip -+ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde313.diff b/python/pykde/sip/kdeui/kdeui-kde313.diff deleted file mode 100644 index bde4a8e9..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde313.diff +++ /dev/null @@ -1,4 +0,0 @@ -+ %Include kaccelmanager.sip -+ %Include kpassivepopup.sip -+ %Include ktextedit.sip -+ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde314.diff b/python/pykde/sip/kdeui/kdeui-kde314.diff deleted file mode 100644 index bde4a8e9..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde314.diff +++ /dev/null @@ -1,4 +0,0 @@ -+ %Include kaccelmanager.sip -+ %Include kpassivepopup.sip -+ %Include ktextedit.sip -+ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde315.diff b/python/pykde/sip/kdeui/kdeui-kde315.diff deleted file mode 100644 index bde4a8e9..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde315.diff +++ /dev/null @@ -1,4 +0,0 @@ -+ %Include kaccelmanager.sip -+ %Include kpassivepopup.sip -+ %Include ktextedit.sip -+ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde320.diff b/python/pykde/sip/kdeui/kdeui-kde320.diff deleted file mode 100644 index 00669748..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde320.diff +++ /dev/null @@ -1,13 +0,0 @@ -+ %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/python/pykde/sip/kdeui/kdeui-kde321.diff b/python/pykde/sip/kdeui/kdeui-kde321.diff deleted file mode 100644 index 00669748..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde321.diff +++ /dev/null @@ -1,13 +0,0 @@ -+ %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/python/pykde/sip/kdeui/kdeui-kde322.diff b/python/pykde/sip/kdeui/kdeui-kde322.diff deleted file mode 100644 index 00669748..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde322.diff +++ /dev/null @@ -1,13 +0,0 @@ -+ %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/python/pykde/sip/kdeui/kdeui-kde323.diff b/python/pykde/sip/kdeui/kdeui-kde323.diff deleted file mode 100644 index 2aab9482..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde323.diff +++ /dev/null @@ -1,14 +0,0 @@ -+ %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/python/pykde/sip/kdeui/kdeui-kde330.diff b/python/pykde/sip/kdeui/kdeui-kde330.diff deleted file mode 100644 index 6be7d896..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde330.diff +++ /dev/null @@ -1,16 +0,0 @@ -+ %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/python/pykde/sip/kdeui/kdeui-kde331.diff b/python/pykde/sip/kdeui/kdeui-kde331.diff deleted file mode 100644 index 6be7d896..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde331.diff +++ /dev/null @@ -1,16 +0,0 @@ -+ %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/python/pykde/sip/kdeui/kdeui-kde332.diff b/python/pykde/sip/kdeui/kdeui-kde332.diff deleted file mode 100644 index 6be7d896..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde332.diff +++ /dev/null @@ -1,16 +0,0 @@ -+ %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/python/pykde/sip/kdeui/kdeui-kde340.diff b/python/pykde/sip/kdeui/kdeui-kde340.diff deleted file mode 100644 index cdefe26b..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde340.diff +++ /dev/null @@ -1,21 +0,0 @@ -+ %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/python/pykde/sip/kdeui/kdeui-kde341.diff b/python/pykde/sip/kdeui/kdeui-kde341.diff deleted file mode 100644 index cdefe26b..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde341.diff +++ /dev/null @@ -1,21 +0,0 @@ -+ %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/python/pykde/sip/kdeui/kdeui-kde342.diff b/python/pykde/sip/kdeui/kdeui-kde342.diff deleted file mode 100644 index cdefe26b..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde342.diff +++ /dev/null @@ -1,21 +0,0 @@ -+ %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/python/pykde/sip/kdeui/kdeui-kde343.diff b/python/pykde/sip/kdeui/kdeui-kde343.diff deleted file mode 100644 index cdefe26b..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde343.diff +++ /dev/null @@ -1,21 +0,0 @@ -+ %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/python/pykde/sip/kdeui/kdeui-kde350.diff b/python/pykde/sip/kdeui/kdeui-kde350.diff deleted file mode 100644 index 965e2c3c..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde350.diff +++ /dev/null @@ -1,23 +0,0 @@ -+ %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/python/pykde/sip/kdeui/kdeui-kde351.diff b/python/pykde/sip/kdeui/kdeui-kde351.diff deleted file mode 100644 index 965e2c3c..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde351.diff +++ /dev/null @@ -1,23 +0,0 @@ -+ %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/python/pykde/sip/kdeui/kdeui-kde352.diff b/python/pykde/sip/kdeui/kdeui-kde352.diff deleted file mode 100644 index 965e2c3c..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde352.diff +++ /dev/null @@ -1,23 +0,0 @@ -+ %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/python/pykde/sip/kdeui/kdeui-kde353.diff b/python/pykde/sip/kdeui/kdeui-kde353.diff deleted file mode 100644 index 965e2c3c..00000000 --- a/python/pykde/sip/kdeui/kdeui-kde353.diff +++ /dev/null @@ -1,23 +0,0 @@ -+ %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/python/pykde/sip/kdeui/kdeuimod.sip.in b/python/pykde/sip/kdeui/kdeuimod.sip.in deleted file mode 100644 index ad844944..00000000 --- a/python/pykde/sip/kdeui/kdeuimod.sip.in +++ /dev/null @@ -1,123 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kdialog.sip b/python/pykde/sip/kdeui/kdialog.sip deleted file mode 100644 index 929411ea..00000000 --- a/python/pykde/sip/kdeui/kdialog.sip +++ /dev/null @@ -1,90 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kdialogbase.sip b/python/pykde/sip/kdeui/kdialogbase.sip deleted file mode 100644 index 513c8695..00000000 --- a/python/pykde/sip/kdeui/kdialogbase.sip +++ /dev/null @@ -1,283 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kdocktabctl.sip b/python/pykde/sip/kdeui/kdocktabctl.sip deleted file mode 100644 index 5954906b..00000000 --- a/python/pykde/sip/kdeui/kdocktabctl.sip +++ /dev/null @@ -1,186 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kdockwidget.sip b/python/pykde/sip/kdeui/kdockwidget.sip deleted file mode 100644 index 62f02c86..00000000 --- a/python/pykde/sip/kdeui/kdockwidget.sip +++ /dev/null @@ -1,469 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kdockwindow.sip b/python/pykde/sip/kdeui/kdockwindow.sip deleted file mode 100644 index 4c04e0eb..00000000 --- a/python/pykde/sip/kdeui/kdockwindow.sip +++ /dev/null @@ -1,38 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kdualcolorbtn.sip b/python/pykde/sip/kdeui/kdualcolorbtn.sip deleted file mode 100644 index 16d363da..00000000 --- a/python/pykde/sip/kdeui/kdualcolorbtn.sip +++ /dev/null @@ -1,73 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kdualcolorbutton.sip b/python/pykde/sip/kdeui/kdualcolorbutton.sip deleted file mode 100644 index a3903018..00000000 --- a/python/pykde/sip/kdeui/kdualcolorbutton.sip +++ /dev/null @@ -1,74 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/keditcl.sip b/python/pykde/sip/kdeui/keditcl.sip deleted file mode 100644 index 463acbb6..00000000 --- a/python/pykde/sip/kdeui/keditcl.sip +++ /dev/null @@ -1,224 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/keditlistbox.sip b/python/pykde/sip/kdeui/keditlistbox.sip deleted file mode 100644 index 54faab7d..00000000 --- a/python/pykde/sip/kdeui/keditlistbox.sip +++ /dev/null @@ -1,206 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kedittoolbar.sip b/python/pykde/sip/kdeui/kedittoolbar.sip deleted file mode 100644 index 1af9d7af..00000000 --- a/python/pykde/sip/kdeui/kedittoolbar.sip +++ /dev/null @@ -1,156 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kfontcombo.sip b/python/pykde/sip/kdeui/kfontcombo.sip deleted file mode 100644 index 24878972..00000000 --- a/python/pykde/sip/kdeui/kfontcombo.sip +++ /dev/null @@ -1,67 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kfontdialog.sip b/python/pykde/sip/kdeui/kfontdialog.sip deleted file mode 100644 index 47fd4f76..00000000 --- a/python/pykde/sip/kdeui/kfontdialog.sip +++ /dev/null @@ -1,184 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kfontrequester.sip b/python/pykde/sip/kdeui/kfontrequester.sip deleted file mode 100644 index 27916fca..00000000 --- a/python/pykde/sip/kdeui/kfontrequester.sip +++ /dev/null @@ -1,63 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kguiitem.sip b/python/pykde/sip/kdeui/kguiitem.sip deleted file mode 100644 index 91d25685..00000000 --- a/python/pykde/sip/kdeui/kguiitem.sip +++ /dev/null @@ -1,57 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/khelpmenu.sip b/python/pykde/sip/kdeui/khelpmenu.sip deleted file mode 100644 index c8e047b6..00000000 --- a/python/pykde/sip/kdeui/khelpmenu.sip +++ /dev/null @@ -1,63 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kiconview.sip b/python/pykde/sip/kdeui/kiconview.sip deleted file mode 100644 index eb4fa524..00000000 --- a/python/pykde/sip/kdeui/kiconview.sip +++ /dev/null @@ -1,147 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kiconviewsearchline.sip b/python/pykde/sip/kdeui/kiconviewsearchline.sip deleted file mode 100644 index e0753341..00000000 --- a/python/pykde/sip/kdeui/kiconviewsearchline.sip +++ /dev/null @@ -1,61 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kinputdialog.sip b/python/pykde/sip/kdeui/kinputdialog.sip deleted file mode 100644 index 5eafca61..00000000 --- a/python/pykde/sip/kdeui/kinputdialog.sip +++ /dev/null @@ -1,66 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kjanuswidget.sip b/python/pykde/sip/kdeui/kjanuswidget.sip deleted file mode 100644 index 1759583c..00000000 --- a/python/pykde/sip/kdeui/kjanuswidget.sip +++ /dev/null @@ -1,110 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kkeybutton.sip b/python/pykde/sip/kdeui/kkeybutton.sip deleted file mode 100644 index 21deda91..00000000 --- a/python/pykde/sip/kdeui/kkeybutton.sip +++ /dev/null @@ -1,59 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kkeydialog.sip b/python/pykde/sip/kdeui/kkeydialog.sip deleted file mode 100644 index 4b14cb78..00000000 --- a/python/pykde/sip/kdeui/kkeydialog.sip +++ /dev/null @@ -1,262 +0,0 @@ -// -// 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 -#include -#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; - int pos = 0; - QString *a0; - int a1; - - while (PyDict_Next(sipPy, &pos, &key, &value)) - { - int iserr = 0; - - a0 = (QString *) sipForceConvertTo_QString (key, &iserr); - - if ((iserr) || (!PyInt_Check (value))) - { - *sipIsErr = 1; - delete qdict; - return 0; - } - - a1 = (int) PyInt_AS_LONG (value); - - qdict->insert (*a0, &a1); - } - - *sipCppPtr = qdict; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kdeui/klanguagebutton.sip b/python/pykde/sip/kdeui/klanguagebutton.sip deleted file mode 100644 index 5c546700..00000000 --- a/python/pykde/sip/kdeui/klanguagebutton.sip +++ /dev/null @@ -1,60 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kled.sip b/python/pykde/sip/kdeui/kled.sip deleted file mode 100644 index ce74c814..00000000 --- a/python/pykde/sip/kdeui/kled.sip +++ /dev/null @@ -1,97 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/klineedit.sip b/python/pykde/sip/kdeui/klineedit.sip deleted file mode 100644 index aaab74f8..00000000 --- a/python/pykde/sip/kdeui/klineedit.sip +++ /dev/null @@ -1,146 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/klineeditdlg.sip b/python/pykde/sip/kdeui/klineeditdlg.sip deleted file mode 100644 index f07b7315..00000000 --- a/python/pykde/sip/kdeui/klineeditdlg.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/klistbox.sip b/python/pykde/sip/kdeui/klistbox.sip deleted file mode 100644 index e8ea4a1b..00000000 --- a/python/pykde/sip/kdeui/klistbox.sip +++ /dev/null @@ -1,60 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/klistview.sip b/python/pykde/sip/kdeui/klistview.sip deleted file mode 100644 index f2df583e..00000000 --- a/python/pykde/sip/kdeui/klistview.sip +++ /dev/null @@ -1,337 +0,0 @@ -// -// 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 -#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 *)sipForceConvertTo_QListViewItem (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kdeui/klistviewlineedit.sip b/python/pykde/sip/kdeui/klistviewlineedit.sip deleted file mode 100644 index 6ac62ad6..00000000 --- a/python/pykde/sip/kdeui/klistviewlineedit.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/klistviewsearchline.sip b/python/pykde/sip/kdeui/klistviewsearchline.sip deleted file mode 100644 index 9f5da7dd..00000000 --- a/python/pykde/sip/kdeui/klistviewsearchline.sip +++ /dev/null @@ -1,84 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kmainwindow.sip b/python/pykde/sip/kdeui/kmainwindow.sip deleted file mode 100644 index f457fe76..00000000 --- a/python/pykde/sip/kdeui/kmainwindow.sip +++ /dev/null @@ -1,274 +0,0 @@ -// -// 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 -#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 *)sipForceConvertTo_KMainWindow (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kdeui/kmainwindowiface.sip b/python/pykde/sip/kdeui/kmainwindowiface.sip deleted file mode 100644 index fd9326b8..00000000 --- a/python/pykde/sip/kdeui/kmainwindowiface.sip +++ /dev/null @@ -1,71 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kmenubar.sip b/python/pykde/sip/kdeui/kmenubar.sip deleted file mode 100644 index b455a748..00000000 --- a/python/pykde/sip/kdeui/kmenubar.sip +++ /dev/null @@ -1,91 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kmessagebox.sip b/python/pykde/sip/kdeui/kmessagebox.sip deleted file mode 100644 index 597137bf..00000000 --- a/python/pykde/sip/kdeui/kmessagebox.sip +++ /dev/null @@ -1,260 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/knuminput.sip b/python/pykde/sip/kdeui/knuminput.sip deleted file mode 100644 index cdcf8a79..00000000 --- a/python/pykde/sip/kdeui/knuminput.sip +++ /dev/null @@ -1,261 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/knumvalidator.sip b/python/pykde/sip/kdeui/knumvalidator.sip deleted file mode 100644 index f72f338f..00000000 --- a/python/pykde/sip/kdeui/knumvalidator.sip +++ /dev/null @@ -1,89 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kpanelapplet.sip b/python/pykde/sip/kdeui/kpanelapplet.sip deleted file mode 100644 index c689b77f..00000000 --- a/python/pykde/sip/kdeui/kpanelapplet.sip +++ /dev/null @@ -1,140 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kpanelappmenu.sip b/python/pykde/sip/kdeui/kpanelappmenu.sip deleted file mode 100644 index 82fea92d..00000000 --- a/python/pykde/sip/kdeui/kpanelappmenu.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kpanelextension.sip b/python/pykde/sip/kdeui/kpanelextension.sip deleted file mode 100644 index c996fdab..00000000 --- a/python/pykde/sip/kdeui/kpanelextension.sip +++ /dev/null @@ -1,159 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kpanelmenu.sip b/python/pykde/sip/kdeui/kpanelmenu.sip deleted file mode 100644 index 41e9199f..00000000 --- a/python/pykde/sip/kdeui/kpanelmenu.sip +++ /dev/null @@ -1,65 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kpassdlg.sip b/python/pykde/sip/kdeui/kpassdlg.sip deleted file mode 100644 index e1532f52..00000000 --- a/python/pykde/sip/kdeui/kpassdlg.sip +++ /dev/null @@ -1,138 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kpassivepopup.sip b/python/pykde/sip/kdeui/kpassivepopup.sip deleted file mode 100644 index d7af4c28..00000000 --- a/python/pykde/sip/kdeui/kpassivepopup.sip +++ /dev/null @@ -1,112 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kpixmapio.sip b/python/pykde/sip/kdeui/kpixmapio.sip deleted file mode 100644 index 281978a4..00000000 --- a/python/pykde/sip/kdeui/kpixmapio.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kpixmapregionselectordialog.sip b/python/pykde/sip/kdeui/kpixmapregionselectordialog.sip deleted file mode 100644 index b591a36a..00000000 --- a/python/pykde/sip/kdeui/kpixmapregionselectordialog.sip +++ /dev/null @@ -1,49 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kpixmapregionselectorwidget.sip b/python/pykde/sip/kdeui/kpixmapregionselectorwidget.sip deleted file mode 100644 index efa50843..00000000 --- a/python/pykde/sip/kdeui/kpixmapregionselectorwidget.sip +++ /dev/null @@ -1,60 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kpopupmenu.sip b/python/pykde/sip/kdeui/kpopupmenu.sip deleted file mode 100644 index 2f5fe09a..00000000 --- a/python/pykde/sip/kdeui/kpopupmenu.sip +++ /dev/null @@ -1,149 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kprogress.sip b/python/pykde/sip/kdeui/kprogress.sip deleted file mode 100644 index 523a9aec..00000000 --- a/python/pykde/sip/kdeui/kprogress.sip +++ /dev/null @@ -1,102 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kpushbutton.sip b/python/pykde/sip/kdeui/kpushbutton.sip deleted file mode 100644 index f8a9ab12..00000000 --- a/python/pykde/sip/kdeui/kpushbutton.sip +++ /dev/null @@ -1,67 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/krestrictedline.sip b/python/pykde/sip/kdeui/krestrictedline.sip deleted file mode 100644 index 8bb6f964..00000000 --- a/python/pykde/sip/kdeui/krestrictedline.sip +++ /dev/null @@ -1,49 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/krootpixmap.sip b/python/pykde/sip/kdeui/krootpixmap.sip deleted file mode 100644 index 91d26c21..00000000 --- a/python/pykde/sip/kdeui/krootpixmap.sip +++ /dev/null @@ -1,71 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kruler.sip b/python/pykde/sip/kdeui/kruler.sip deleted file mode 100644 index a62b7e9d..00000000 --- a/python/pykde/sip/kdeui/kruler.sip +++ /dev/null @@ -1,108 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kscrollview.sip b/python/pykde/sip/kdeui/kscrollview.sip deleted file mode 100644 index a4a475c2..00000000 --- a/python/pykde/sip/kdeui/kscrollview.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kselect.sip b/python/pykde/sip/kdeui/kselect.sip deleted file mode 100644 index 681c91bb..00000000 --- a/python/pykde/sip/kdeui/kselect.sip +++ /dev/null @@ -1,142 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kseparator.sip b/python/pykde/sip/kdeui/kseparator.sip deleted file mode 100644 index e1bc22e4..00000000 --- a/python/pykde/sip/kdeui/kseparator.sip +++ /dev/null @@ -1,48 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/ksharedpixmap.sip b/python/pykde/sip/kdeui/ksharedpixmap.sip deleted file mode 100644 index 7cec3f9b..00000000 --- a/python/pykde/sip/kdeui/ksharedpixmap.sip +++ /dev/null @@ -1,62 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kshortcutdialog.sip b/python/pykde/sip/kdeui/kshortcutdialog.sip deleted file mode 100644 index 771a09c2..00000000 --- a/python/pykde/sip/kdeui/kshortcutdialog.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/ksplashscreen.sip b/python/pykde/sip/kdeui/ksplashscreen.sip deleted file mode 100644 index 1598ad42..00000000 --- a/python/pykde/sip/kdeui/ksplashscreen.sip +++ /dev/null @@ -1,42 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/ksqueezedtextlabel.sip b/python/pykde/sip/kdeui/ksqueezedtextlabel.sip deleted file mode 100644 index 15a9a571..00000000 --- a/python/pykde/sip/kdeui/ksqueezedtextlabel.sip +++ /dev/null @@ -1,60 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kstatusbar.sip b/python/pykde/sip/kdeui/kstatusbar.sip deleted file mode 100644 index d4aaf974..00000000 --- a/python/pykde/sip/kdeui/kstatusbar.sip +++ /dev/null @@ -1,82 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kstdaction.sip b/python/pykde/sip/kdeui/kstdaction.sip deleted file mode 100644 index 75bb867d..00000000 --- a/python/pykde/sip/kdeui/kstdaction.sip +++ /dev/null @@ -1,327 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kstdguiitem.sip b/python/pykde/sip/kdeui/kstdguiitem.sip deleted file mode 100644 index 3d9a3fba..00000000 --- a/python/pykde/sip/kdeui/kstdguiitem.sip +++ /dev/null @@ -1,352 +0,0 @@ -// -// 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 -#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 = sipBuildResult (NULL, "N", new KGuiItem (g1), sipClass_KGuiItem); - PyObject *pyg2 = sipBuildResult (NULL, "N", new KGuiItem (g2), sipClass_KGuiItem); - 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 *)sipForceConvertTo_KGuiItem (pyg1, &iserr); - g2 = *(KGuiItem *)sipForceConvertTo_KGuiItem (pyg2, &iserr); - - if (iserr) - { - *sipIsErr = 1; - return 0; - } - - - *sipCppPtr = new QPair (g1, g2); - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kdeui/kstringvalidator.sip b/python/pykde/sip/kdeui/kstringvalidator.sip deleted file mode 100644 index a0a66a4a..00000000 --- a/python/pykde/sip/kdeui/kstringvalidator.sip +++ /dev/null @@ -1,63 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/ksystemtray.sip b/python/pykde/sip/kdeui/ksystemtray.sip deleted file mode 100644 index 853f8bc2..00000000 --- a/python/pykde/sip/kdeui/ksystemtray.sip +++ /dev/null @@ -1,84 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/ktabbar.sip b/python/pykde/sip/kdeui/ktabbar.sip deleted file mode 100644 index 6b540bb1..00000000 --- a/python/pykde/sip/kdeui/ktabbar.sip +++ /dev/null @@ -1,98 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/ktabctl.sip b/python/pykde/sip/kdeui/ktabctl.sip deleted file mode 100644 index f1325afb..00000000 --- a/python/pykde/sip/kdeui/ktabctl.sip +++ /dev/null @@ -1,64 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/ktabwidget.sip b/python/pykde/sip/kdeui/ktabwidget.sip deleted file mode 100644 index 3a66cbf0..00000000 --- a/python/pykde/sip/kdeui/ktabwidget.sip +++ /dev/null @@ -1,144 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/ktextbrowser.sip b/python/pykde/sip/kdeui/ktextbrowser.sip deleted file mode 100644 index b6d981ef..00000000 --- a/python/pykde/sip/kdeui/ktextbrowser.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/ktextedit.sip b/python/pykde/sip/kdeui/ktextedit.sip deleted file mode 100644 index fac0335e..00000000 --- a/python/pykde/sip/kdeui/ktextedit.sip +++ /dev/null @@ -1,83 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kthemebase.sip b/python/pykde/sip/kdeui/kthemebase.sip deleted file mode 100644 index 039319ed..00000000 --- a/python/pykde/sip/kdeui/kthemebase.sip +++ /dev/null @@ -1,258 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kthemestyle.sip b/python/pykde/sip/kdeui/kthemestyle.sip deleted file mode 100644 index d1136cf4..00000000 --- a/python/pykde/sip/kdeui/kthemestyle.sip +++ /dev/null @@ -1,89 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/ktimewidget.sip b/python/pykde/sip/kdeui/ktimewidget.sip deleted file mode 100644 index 6c94968a..00000000 --- a/python/pykde/sip/kdeui/ktimewidget.sip +++ /dev/null @@ -1,50 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/ktimezonewidget.sip b/python/pykde/sip/kdeui/ktimezonewidget.sip deleted file mode 100644 index 76727389..00000000 --- a/python/pykde/sip/kdeui/ktimezonewidget.sip +++ /dev/null @@ -1,45 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/ktip.sip b/python/pykde/sip/kdeui/ktip.sip deleted file mode 100644 index 124c82b1..00000000 --- a/python/pykde/sip/kdeui/ktip.sip +++ /dev/null @@ -1,82 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/ktmainwindow.sip b/python/pykde/sip/kdeui/ktmainwindow.sip deleted file mode 100644 index 01787f4d..00000000 --- a/python/pykde/sip/kdeui/ktmainwindow.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/ktoolbar.sip b/python/pykde/sip/kdeui/ktoolbar.sip deleted file mode 100644 index 3097c388..00000000 --- a/python/pykde/sip/kdeui/ktoolbar.sip +++ /dev/null @@ -1,263 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/ktoolbarbutton.sip b/python/pykde/sip/kdeui/ktoolbarbutton.sip deleted file mode 100644 index 28585281..00000000 --- a/python/pykde/sip/kdeui/ktoolbarbutton.sip +++ /dev/null @@ -1,123 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/ktoolbarlabelaction.sip b/python/pykde/sip/kdeui/ktoolbarlabelaction.sip deleted file mode 100644 index 27383cee..00000000 --- a/python/pykde/sip/kdeui/ktoolbarlabelaction.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/ktoolbarradiogroup.sip b/python/pykde/sip/kdeui/ktoolbarradiogroup.sip deleted file mode 100644 index 65da45fb..00000000 --- a/python/pykde/sip/kdeui/ktoolbarradiogroup.sip +++ /dev/null @@ -1,43 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kurllabel.sip b/python/pykde/sip/kdeui/kurllabel.sip deleted file mode 100644 index 25245eb5..00000000 --- a/python/pykde/sip/kdeui/kurllabel.sip +++ /dev/null @@ -1,108 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kwindowinfo.sip b/python/pykde/sip/kdeui/kwindowinfo.sip deleted file mode 100644 index e9908eb7..00000000 --- a/python/pykde/sip/kdeui/kwindowinfo.sip +++ /dev/null @@ -1,61 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kwindowlistmenu.sip b/python/pykde/sip/kdeui/kwindowlistmenu.sip deleted file mode 100644 index a21a3690..00000000 --- a/python/pykde/sip/kdeui/kwindowlistmenu.sip +++ /dev/null @@ -1,54 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kwizard.sip b/python/pykde/sip/kdeui/kwizard.sip deleted file mode 100644 index 7dab5a96..00000000 --- a/python/pykde/sip/kdeui/kwizard.sip +++ /dev/null @@ -1,38 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kwordwrap.sip b/python/pykde/sip/kdeui/kwordwrap.sip deleted file mode 100644 index b5a35907..00000000 --- a/python/pykde/sip/kdeui/kwordwrap.sip +++ /dev/null @@ -1,82 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kxmlgui.sip b/python/pykde/sip/kdeui/kxmlgui.sip deleted file mode 100644 index fd589987..00000000 --- a/python/pykde/sip/kdeui/kxmlgui.sip +++ /dev/null @@ -1,26 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kxmlguibuilder.sip b/python/pykde/sip/kdeui/kxmlguibuilder.sip deleted file mode 100644 index 247a6f5c..00000000 --- a/python/pykde/sip/kdeui/kxmlguibuilder.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kxmlguiclient.sip b/python/pykde/sip/kdeui/kxmlguiclient.sip deleted file mode 100644 index 73f0a498..00000000 --- a/python/pykde/sip/kdeui/kxmlguiclient.sip +++ /dev/null @@ -1,101 +0,0 @@ -// -// 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/python/pykde/sip/kdeui/kxmlguifactory.sip b/python/pykde/sip/kdeui/kxmlguifactory.sip deleted file mode 100644 index 67957d23..00000000 --- a/python/pykde/sip/kdeui/kxmlguifactory.sip +++ /dev/null @@ -1,300 +0,0 @@ -// -// 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 -#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 *)sipForceConvertTo_KAction (elem, &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 -#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 = sipBuildResult (NULL, "N", new KXMLGUIClient (*cpp), sipClass_KXMLGUIClient)) == 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 *)sipForceConvertTo_KXMLGUIClient (elem, &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 -#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 *)sipForceConvertTo_QWidget (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kdeui/qxembed.sip b/python/pykde/sip/kdeui/qxembed.sip deleted file mode 100644 index ab46875b..00000000 --- a/python/pykde/sip/kdeui/qxembed.sip +++ /dev/null @@ -1,113 +0,0 @@ -// -// 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/python/pykde/sip/kfile/booktoken.sip b/python/pykde/sip/kfile/booktoken.sip deleted file mode 100644 index cf5870ae..00000000 --- a/python/pykde/sip/kfile/booktoken.sip +++ /dev/null @@ -1,66 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kcombiview.sip b/python/pykde/sip/kfile/kcombiview.sip deleted file mode 100644 index 43867f6b..00000000 --- a/python/pykde/sip/kfile/kcombiview.sip +++ /dev/null @@ -1,90 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kcustommenueditor.sip b/python/pykde/sip/kfile/kcustommenueditor.sip deleted file mode 100644 index 1ade8642..00000000 --- a/python/pykde/sip/kfile/kcustommenueditor.sip +++ /dev/null @@ -1,57 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kdiroperator.sip b/python/pykde/sip/kfile/kdiroperator.sip deleted file mode 100644 index a0073e63..00000000 --- a/python/pykde/sip/kfile/kdiroperator.sip +++ /dev/null @@ -1,205 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kdirselectdialog.sip b/python/pykde/sip/kfile/kdirselectdialog.sip deleted file mode 100644 index da842863..00000000 --- a/python/pykde/sip/kfile/kdirselectdialog.sip +++ /dev/null @@ -1,71 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kdirsize.sip b/python/pykde/sip/kfile/kdirsize.sip deleted file mode 100644 index d49f5d2e..00000000 --- a/python/pykde/sip/kfile/kdirsize.sip +++ /dev/null @@ -1,86 +0,0 @@ -// -// 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 -#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/python/pykde/sip/kfile/kdiskfreesp.sip b/python/pykde/sip/kfile/kdiskfreesp.sip deleted file mode 100644 index c28a55f9..00000000 --- a/python/pykde/sip/kfile/kdiskfreesp.sip +++ /dev/null @@ -1,49 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kencodingfiledialog.sip b/python/pykde/sip/kfile/kencodingfiledialog.sip deleted file mode 100644 index 711404ac..00000000 --- a/python/pykde/sip/kfile/kencodingfiledialog.sip +++ /dev/null @@ -1,65 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kfile-kde310.diff b/python/pykde/sip/kfile/kfile-kde310.diff deleted file mode 100644 index ddad6d63..00000000 --- a/python/pykde/sip/kfile/kfile-kde310.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip -+ %Include knotifywidgetbase.sip diff --git a/python/pykde/sip/kfile/kfile-kde311.diff b/python/pykde/sip/kfile/kfile-kde311.diff deleted file mode 100644 index ddad6d63..00000000 --- a/python/pykde/sip/kfile/kfile-kde311.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip -+ %Include knotifywidgetbase.sip diff --git a/python/pykde/sip/kfile/kfile-kde312.diff b/python/pykde/sip/kfile/kfile-kde312.diff deleted file mode 100644 index ddad6d63..00000000 --- a/python/pykde/sip/kfile/kfile-kde312.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip -+ %Include knotifywidgetbase.sip diff --git a/python/pykde/sip/kfile/kfile-kde313.diff b/python/pykde/sip/kfile/kfile-kde313.diff deleted file mode 100644 index ddad6d63..00000000 --- a/python/pykde/sip/kfile/kfile-kde313.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip -+ %Include knotifywidgetbase.sip diff --git a/python/pykde/sip/kfile/kfile-kde314.diff b/python/pykde/sip/kfile/kfile-kde314.diff deleted file mode 100644 index ddad6d63..00000000 --- a/python/pykde/sip/kfile/kfile-kde314.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip -+ %Include knotifywidgetbase.sip diff --git a/python/pykde/sip/kfile/kfile-kde315.diff b/python/pykde/sip/kfile/kfile-kde315.diff deleted file mode 100644 index ddad6d63..00000000 --- a/python/pykde/sip/kfile/kfile-kde315.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip -+ %Include knotifywidgetbase.sip diff --git a/python/pykde/sip/kfile/kfile-kde320.diff b/python/pykde/sip/kfile/kfile-kde320.diff deleted file mode 100644 index f5ab9bd7..00000000 --- a/python/pykde/sip/kfile/kfile-kde320.diff +++ /dev/null @@ -1,6 +0,0 @@ -+ %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/python/pykde/sip/kfile/kfile-kde321.diff b/python/pykde/sip/kfile/kfile-kde321.diff deleted file mode 100644 index 2545aae5..00000000 --- a/python/pykde/sip/kfile/kfile-kde321.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde322.diff b/python/pykde/sip/kfile/kfile-kde322.diff deleted file mode 100644 index 2545aae5..00000000 --- a/python/pykde/sip/kfile/kfile-kde322.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde323.diff b/python/pykde/sip/kfile/kfile-kde323.diff deleted file mode 100644 index 2545aae5..00000000 --- a/python/pykde/sip/kfile/kfile-kde323.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde330.diff b/python/pykde/sip/kfile/kfile-kde330.diff deleted file mode 100644 index 2545aae5..00000000 --- a/python/pykde/sip/kfile/kfile-kde330.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde331.diff b/python/pykde/sip/kfile/kfile-kde331.diff deleted file mode 100644 index 2545aae5..00000000 --- a/python/pykde/sip/kfile/kfile-kde331.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde332.diff b/python/pykde/sip/kfile/kfile-kde332.diff deleted file mode 100644 index 2545aae5..00000000 --- a/python/pykde/sip/kfile/kfile-kde332.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde340.diff b/python/pykde/sip/kfile/kfile-kde340.diff deleted file mode 100644 index 2545aae5..00000000 --- a/python/pykde/sip/kfile/kfile-kde340.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde341.diff b/python/pykde/sip/kfile/kfile-kde341.diff deleted file mode 100644 index 2545aae5..00000000 --- a/python/pykde/sip/kfile/kfile-kde341.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde342.diff b/python/pykde/sip/kfile/kfile-kde342.diff deleted file mode 100644 index 2545aae5..00000000 --- a/python/pykde/sip/kfile/kfile-kde342.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde343.diff b/python/pykde/sip/kfile/kfile-kde343.diff deleted file mode 100644 index 2545aae5..00000000 --- a/python/pykde/sip/kfile/kfile-kde343.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde350.diff b/python/pykde/sip/kfile/kfile-kde350.diff deleted file mode 100644 index 2545aae5..00000000 --- a/python/pykde/sip/kfile/kfile-kde350.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde351.diff b/python/pykde/sip/kfile/kfile-kde351.diff deleted file mode 100644 index 2545aae5..00000000 --- a/python/pykde/sip/kfile/kfile-kde351.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde352.diff b/python/pykde/sip/kfile/kfile-kde352.diff deleted file mode 100644 index 81a06032..00000000 --- a/python/pykde/sip/kfile/kfile-kde352.diff +++ /dev/null @@ -1,6 +0,0 @@ -- %Include krecentdirs.sip -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde353.diff b/python/pykde/sip/kfile/kfile-kde353.diff deleted file mode 100644 index 2545aae5..00000000 --- a/python/pykde/sip/kfile/kfile-kde353.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile.sip b/python/pykde/sip/kfile/kfile.sip deleted file mode 100644 index e383ff8c..00000000 --- a/python/pykde/sip/kfile/kfile.sip +++ /dev/null @@ -1,115 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kfilebookmark.sip b/python/pykde/sip/kfile/kfilebookmark.sip deleted file mode 100644 index 9ab287bd..00000000 --- a/python/pykde/sip/kfile/kfilebookmark.sip +++ /dev/null @@ -1,157 +0,0 @@ -// -// 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); - #if SIPVERSION >= 0x040400 - cpp = (KFileBookmark *)sipForceConvertToTransfer_KFileBookmark (elem, &iserr, sipTransferObj); - #else - cpp = (KFileBookmark *)sipForceConvertTo_KFileBookmark (elem, &iserr); - #endif - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kfile/kfiledetailview.sip b/python/pykde/sip/kfile/kfiledetailview.sip deleted file mode 100644 index 0528e3d4..00000000 --- a/python/pykde/sip/kfile/kfiledetailview.sip +++ /dev/null @@ -1,207 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kfiledialog.sip b/python/pykde/sip/kfile/kfiledialog.sip deleted file mode 100644 index 61820f67..00000000 --- a/python/pykde/sip/kfile/kfiledialog.sip +++ /dev/null @@ -1,207 +0,0 @@ -// -// 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); - 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/python/pykde/sip/kfile/kfilefiltercombo.sip b/python/pykde/sip/kfile/kfilefiltercombo.sip deleted file mode 100644 index 73ffa997..00000000 --- a/python/pykde/sip/kfile/kfilefiltercombo.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kfileiconview.sip b/python/pykde/sip/kfile/kfileiconview.sip deleted file mode 100644 index 1b33a171..00000000 --- a/python/pykde/sip/kfile/kfileiconview.sip +++ /dev/null @@ -1,141 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kfilemod.sip b/python/pykde/sip/kfile/kfilemod.sip deleted file mode 100644 index 69abc66f..00000000 --- a/python/pykde/sip/kfile/kfilemod.sip +++ /dev/null @@ -1,67 +0,0 @@ -// -// 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 -%Include kcustommenueditor.sip -%Include kdiskfreesp.sip -%Include kencodingfiledialog.sip -%Include kfilesharedlg.sip -%Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfilemod.sip.in b/python/pykde/sip/kfile/kfilemod.sip.in deleted file mode 100644 index c3893e88..00000000 --- a/python/pykde/sip/kfile/kfilemod.sip.in +++ /dev/null @@ -1,63 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kfilepreview.sip b/python/pykde/sip/kfile/kfilepreview.sip deleted file mode 100644 index 7757f983..00000000 --- a/python/pykde/sip/kfile/kfilepreview.sip +++ /dev/null @@ -1,80 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kfilereader.sip b/python/pykde/sip/kfile/kfilereader.sip deleted file mode 100644 index 5313cd84..00000000 --- a/python/pykde/sip/kfile/kfilereader.sip +++ /dev/null @@ -1,47 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kfilesharedlg.sip b/python/pykde/sip/kfile/kfilesharedlg.sip deleted file mode 100644 index 42f825b6..00000000 --- a/python/pykde/sip/kfile/kfilesharedlg.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kfiletreebranch.sip b/python/pykde/sip/kfile/kfiletreebranch.sip deleted file mode 100644 index f6550361..00000000 --- a/python/pykde/sip/kfile/kfiletreebranch.sip +++ /dev/null @@ -1,235 +0,0 @@ -// -// 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; -#include -%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 *)sipForceConvertTo_KFileTreeViewItem (elem, &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 -#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 *)sipForceConvertTo_KFileTreeBranch (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cList; - return 0; - } - - cList->append (ftb); - } - - *sipCppPtr = cList; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kfile/kfiletreeview.sip b/python/pykde/sip/kfile/kfiletreeview.sip deleted file mode 100644 index 4043e1cc..00000000 --- a/python/pykde/sip/kfile/kfiletreeview.sip +++ /dev/null @@ -1,109 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kfiletreeviewitem.sip b/python/pykde/sip/kfile/kfiletreeviewitem.sip deleted file mode 100644 index 57d99e7d..00000000 --- a/python/pykde/sip/kfile/kfiletreeviewitem.sip +++ /dev/null @@ -1,48 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kfileview.sip b/python/pykde/sip/kfile/kfileview.sip deleted file mode 100644 index 90781369..00000000 --- a/python/pykde/sip/kfile/kfileview.sip +++ /dev/null @@ -1,153 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kfileviewitem.sip b/python/pykde/sip/kfile/kfileviewitem.sip deleted file mode 100644 index 717b22bf..00000000 --- a/python/pykde/sip/kfile/kfileviewitem.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kicondialog.sip b/python/pykde/sip/kfile/kicondialog.sip deleted file mode 100644 index dda1a0c6..00000000 --- a/python/pykde/sip/kfile/kicondialog.sip +++ /dev/null @@ -1,131 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kimagefilepreview.sip b/python/pykde/sip/kfile/kimagefilepreview.sip deleted file mode 100644 index 792eddbb..00000000 --- a/python/pykde/sip/kfile/kimagefilepreview.sip +++ /dev/null @@ -1,57 +0,0 @@ -// -// 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/python/pykde/sip/kfile/knotifydialog.sip b/python/pykde/sip/kfile/knotifydialog.sip deleted file mode 100644 index 11ebd077..00000000 --- a/python/pykde/sip/kfile/knotifydialog.sip +++ /dev/null @@ -1,315 +0,0 @@ -// -// 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 -#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 *)sipForceConvertTo_KNotify_Event (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; -%End - - diff --git a/python/pykde/sip/kfile/knotifywidgetbase.sip b/python/pykde/sip/kfile/knotifywidgetbase.sip deleted file mode 100644 index 98f8238f..00000000 --- a/python/pykde/sip/kfile/knotifywidgetbase.sip +++ /dev/null @@ -1,64 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kopenwith.sip b/python/pykde/sip/kfile/kopenwith.sip deleted file mode 100644 index 2a8f2f93..00000000 --- a/python/pykde/sip/kfile/kopenwith.sip +++ /dev/null @@ -1,146 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kpreviewwidgetbase.sip b/python/pykde/sip/kfile/kpreviewwidgetbase.sip deleted file mode 100644 index 7c967bfc..00000000 --- a/python/pykde/sip/kfile/kpreviewwidgetbase.sip +++ /dev/null @@ -1,57 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kpropertiesdialog.sip b/python/pykde/sip/kfile/kpropertiesdialog.sip deleted file mode 100644 index 09246a6c..00000000 --- a/python/pykde/sip/kfile/kpropertiesdialog.sip +++ /dev/null @@ -1,304 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kpropsdlg.sip b/python/pykde/sip/kfile/kpropsdlg.sip deleted file mode 100644 index d435f147..00000000 --- a/python/pykde/sip/kfile/kpropsdlg.sip +++ /dev/null @@ -1,208 +0,0 @@ -// -// 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/python/pykde/sip/kfile/krecentdirs.sip b/python/pykde/sip/kfile/krecentdirs.sip deleted file mode 100644 index 2cc0b16f..00000000 --- a/python/pykde/sip/kfile/krecentdirs.sip +++ /dev/null @@ -1,40 +0,0 @@ -// -// 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/python/pykde/sip/kfile/krecentdocument.sip b/python/pykde/sip/kfile/krecentdocument.sip deleted file mode 100644 index af6ab70a..00000000 --- a/python/pykde/sip/kfile/krecentdocument.sip +++ /dev/null @@ -1,44 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kurlbar.sip b/python/pykde/sip/kfile/kurlbar.sip deleted file mode 100644 index c826de30..00000000 --- a/python/pykde/sip/kfile/kurlbar.sip +++ /dev/null @@ -1,213 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kurlcombobox.sip b/python/pykde/sip/kfile/kurlcombobox.sip deleted file mode 100644 index f696ef84..00000000 --- a/python/pykde/sip/kfile/kurlcombobox.sip +++ /dev/null @@ -1,80 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kurlrequester.sip b/python/pykde/sip/kfile/kurlrequester.sip deleted file mode 100644 index c6103b63..00000000 --- a/python/pykde/sip/kfile/kurlrequester.sip +++ /dev/null @@ -1,112 +0,0 @@ -// -// 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/python/pykde/sip/kfile/kurlrequesterdlg.sip b/python/pykde/sip/kfile/kurlrequesterdlg.sip deleted file mode 100644 index a61408d3..00000000 --- a/python/pykde/sip/kfile/kurlrequesterdlg.sip +++ /dev/null @@ -1,43 +0,0 @@ -// -// 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/python/pykde/sip/khtml/css_rule.sip b/python/pykde/sip/khtml/css_rule.sip deleted file mode 100644 index 74ceb1b2..00000000 --- a/python/pykde/sip/khtml/css_rule.sip +++ /dev/null @@ -1,259 +0,0 @@ -// -// 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/python/pykde/sip/khtml/css_stylesheet.sip b/python/pykde/sip/khtml/css_stylesheet.sip deleted file mode 100644 index 3e43c364..00000000 --- a/python/pykde/sip/khtml/css_stylesheet.sip +++ /dev/null @@ -1,197 +0,0 @@ -// -// 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/python/pykde/sip/khtml/css_value.sip b/python/pykde/sip/khtml/css_value.sip deleted file mode 100644 index 5d8194db..00000000 --- a/python/pykde/sip/khtml/css_value.sip +++ /dev/null @@ -1,320 +0,0 @@ -// -// 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/python/pykde/sip/khtml/dom2_events.sip b/python/pykde/sip/khtml/dom2_events.sip deleted file mode 100644 index 386756fa..00000000 --- a/python/pykde/sip/khtml/dom2_events.sip +++ /dev/null @@ -1,251 +0,0 @@ -// -// 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; - 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 - - -public: -//force - typedef longlong DOMTimeStamp; -//end - -}; // class Event - - -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/python/pykde/sip/khtml/dom2_range.sip b/python/pykde/sip/khtml/dom2_range.sip deleted file mode 100644 index a39378d8..00000000 --- a/python/pykde/sip/khtml/dom2_range.sip +++ /dev/null @@ -1,115 +0,0 @@ -// -// 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/python/pykde/sip/khtml/dom2_traversal.sip b/python/pykde/sip/khtml/dom2_traversal.sip deleted file mode 100644 index 54d7acb1..00000000 --- a/python/pykde/sip/khtml/dom2_traversal.sip +++ /dev/null @@ -1,176 +0,0 @@ -// -// 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/python/pykde/sip/khtml/dom2_views.sip b/python/pykde/sip/khtml/dom2_views.sip deleted file mode 100644 index 664a2c97..00000000 --- a/python/pykde/sip/khtml/dom2_views.sip +++ /dev/null @@ -1,50 +0,0 @@ -// -// 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/python/pykde/sip/khtml/dom_doc.sip b/python/pykde/sip/khtml/dom_doc.sip deleted file mode 100644 index 1a132d81..00000000 --- a/python/pykde/sip/khtml/dom_doc.sip +++ /dev/null @@ -1,185 +0,0 @@ -// -// 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/python/pykde/sip/khtml/dom_element.sip b/python/pykde/sip/khtml/dom_element.sip deleted file mode 100644 index 090e9d36..00000000 --- a/python/pykde/sip/khtml/dom_element.sip +++ /dev/null @@ -1,111 +0,0 @@ -// -// 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/python/pykde/sip/khtml/dom_exception.sip b/python/pykde/sip/khtml/dom_exception.sip deleted file mode 100644 index 6a446a81..00000000 --- a/python/pykde/sip/khtml/dom_exception.sip +++ /dev/null @@ -1,64 +0,0 @@ -// -// 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/python/pykde/sip/khtml/dom_misc.sip b/python/pykde/sip/khtml/dom_misc.sip deleted file mode 100644 index 30c090f5..00000000 --- a/python/pykde/sip/khtml/dom_misc.sip +++ /dev/null @@ -1,49 +0,0 @@ -// -// 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/python/pykde/sip/khtml/dom_node.sip b/python/pykde/sip/khtml/dom_node.sip deleted file mode 100644 index e7d4b8ec..00000000 --- a/python/pykde/sip/khtml/dom_node.sip +++ /dev/null @@ -1,150 +0,0 @@ -// -// 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/python/pykde/sip/khtml/dom_string.sip b/python/pykde/sip/khtml/dom_string.sip deleted file mode 100644 index f4d8b4be..00000000 --- a/python/pykde/sip/khtml/dom_string.sip +++ /dev/null @@ -1,79 +0,0 @@ -// -// 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; -%MethodCode -//returns (QChar) -//takes index | uint - sipRes = &((*sipCpp)[a0]); -%End - - 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/python/pykde/sip/khtml/dom_text.sip b/python/pykde/sip/khtml/dom_text.sip deleted file mode 100644 index bc06c168..00000000 --- a/python/pykde/sip/khtml/dom_text.sip +++ /dev/null @@ -1,92 +0,0 @@ -// -// 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/python/pykde/sip/khtml/dom_xml.sip b/python/pykde/sip/khtml/dom_xml.sip deleted file mode 100644 index c1d306e3..00000000 --- a/python/pykde/sip/khtml/dom_xml.sip +++ /dev/null @@ -1,128 +0,0 @@ -// -// 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/python/pykde/sip/khtml/html_base.sip b/python/pykde/sip/khtml/html_base.sip deleted file mode 100644 index bc0cadcd..00000000 --- a/python/pykde/sip/khtml/html_base.sip +++ /dev/null @@ -1,207 +0,0 @@ -// -// 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/python/pykde/sip/khtml/html_block.sip b/python/pykde/sip/khtml/html_block.sip deleted file mode 100644 index df70827c..00000000 --- a/python/pykde/sip/khtml/html_block.sip +++ /dev/null @@ -1,233 +0,0 @@ -// -// 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/python/pykde/sip/khtml/html_document.sip b/python/pykde/sip/khtml/html_document.sip deleted file mode 100644 index 82205ef5..00000000 --- a/python/pykde/sip/khtml/html_document.sip +++ /dev/null @@ -1,77 +0,0 @@ -// -// 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/python/pykde/sip/khtml/html_element.sip b/python/pykde/sip/khtml/html_element.sip deleted file mode 100644 index dcc8c5b5..00000000 --- a/python/pykde/sip/khtml/html_element.sip +++ /dev/null @@ -1,78 +0,0 @@ -// -// 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/python/pykde/sip/khtml/html_form.sip b/python/pykde/sip/khtml/html_form.sip deleted file mode 100644 index 05683cba..00000000 --- a/python/pykde/sip/khtml/html_form.sip +++ /dev/null @@ -1,436 +0,0 @@ -// -// 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/python/pykde/sip/khtml/html_head.sip b/python/pykde/sip/khtml/html_head.sip deleted file mode 100644 index 46badd3f..00000000 --- a/python/pykde/sip/khtml/html_head.sip +++ /dev/null @@ -1,203 +0,0 @@ -// -// 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/python/pykde/sip/khtml/html_image.sip b/python/pykde/sip/khtml/html_image.sip deleted file mode 100644 index 5db67b1a..00000000 --- a/python/pykde/sip/khtml/html_image.sip +++ /dev/null @@ -1,144 +0,0 @@ -// -// 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/python/pykde/sip/khtml/html_inline.sip b/python/pykde/sip/khtml/html_inline.sip deleted file mode 100644 index bd3b1b09..00000000 --- a/python/pykde/sip/khtml/html_inline.sip +++ /dev/null @@ -1,169 +0,0 @@ -// -// 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/python/pykde/sip/khtml/html_list.sip b/python/pykde/sip/khtml/html_list.sip deleted file mode 100644 index fa6cd0e5..00000000 --- a/python/pykde/sip/khtml/html_list.sip +++ /dev/null @@ -1,169 +0,0 @@ -// -// 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/python/pykde/sip/khtml/html_misc.sip b/python/pykde/sip/khtml/html_misc.sip deleted file mode 100644 index 291a4916..00000000 --- a/python/pykde/sip/khtml/html_misc.sip +++ /dev/null @@ -1,97 +0,0 @@ -// -// 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/python/pykde/sip/khtml/html_object.sip b/python/pykde/sip/khtml/html_object.sip deleted file mode 100644 index 94b027da..00000000 --- a/python/pykde/sip/khtml/html_object.sip +++ /dev/null @@ -1,179 +0,0 @@ -// -// 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/python/pykde/sip/khtml/html_table.sip b/python/pykde/sip/khtml/html_table.sip deleted file mode 100644 index 3ae6ed49..00000000 --- a/python/pykde/sip/khtml/html_table.sip +++ /dev/null @@ -1,256 +0,0 @@ -// -// 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/python/pykde/sip/khtml/khtml_part.sip b/python/pykde/sip/khtml/khtml_part.sip deleted file mode 100644 index be242169..00000000 --- a/python/pykde/sip/khtml/khtml_part.sip +++ /dev/null @@ -1,282 +0,0 @@ -// -// 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/python/pykde/sip/khtml/khtml_part.sip.323 b/python/pykde/sip/khtml/khtml_part.sip.323 deleted file mode 100644 index 1173eefd..00000000 --- a/python/pykde/sip/khtml/khtml_part.sip.323 +++ /dev/null @@ -1,272 +0,0 @@ -// -// 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/python/pykde/sip/khtml/khtml_part.sip.330 b/python/pykde/sip/khtml/khtml_part.sip.330 deleted file mode 100644 index be242169..00000000 --- a/python/pykde/sip/khtml/khtml_part.sip.330 +++ /dev/null @@ -1,282 +0,0 @@ -// -// 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/python/pykde/sip/khtml/khtml_settings.sip b/python/pykde/sip/khtml/khtml_settings.sip deleted file mode 100644 index b018c6e7..00000000 --- a/python/pykde/sip/khtml/khtml_settings.sip +++ /dev/null @@ -1,293 +0,0 @@ -// -// 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 -#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; - PyObject *inst; - - // Get it. - QValueList::Iterator it; - for( it = cpplist->begin(); it != cpplist->end(); ++it ) - { - QString s = (*it).first; - QChar c = (*it).second; - PyObject *pys = sipBuildResult (NULL, "N", new QString (s), sipClass_QString); - PyObject *pyc = sipBuildResult (NULL, "N", new QChar (c), sipClass_QChar); - 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++) - { - PyObject *elem = PyList_GET_ITEM (sipPy, i); - PyObject *pyp1 = PyTuple_GET_ITEM (elem, 0); - PyObject *pyp2 = PyTuple_GET_ITEM (elem, 1); - p1 = *(QString *)sipForceConvertTo_QString (pyp1, &iserr); - p2 = *(QChar *)sipForceConvertTo_QChar (pyp2, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (AssignPair (p1, p2)); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; -%End - - diff --git a/python/pykde/sip/khtml/khtmlmod.sip.in b/python/pykde/sip/khtml/khtmlmod.sip.in deleted file mode 100644 index e7e3183b..00000000 --- a/python/pykde/sip/khtml/khtmlmod.sip.in +++ /dev/null @@ -1,71 +0,0 @@ -// -// 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/python/pykde/sip/khtml/khtmlview.sip b/python/pykde/sip/khtml/khtmlview.sip deleted file mode 100644 index 779416c3..00000000 --- a/python/pykde/sip/khtml/khtmlview.sip +++ /dev/null @@ -1,144 +0,0 @@ -// -// 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/python/pykde/sip/kio/authinfo.sip b/python/pykde/sip/kio/authinfo.sip deleted file mode 100644 index 454e1ff8..00000000 --- a/python/pykde/sip/kio/authinfo.sip +++ /dev/null @@ -1,206 +0,0 @@ -// -// 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 -#include -#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; - int pos = 0; - QString *sKey; - QStringList *sData; - - while (PyDict_Next(sipPy, &pos, &key, &value)) - { - int iserr = 0; - - sKey = (QString *)sipForceConvertTo_QString (key, &iserr); - sData = (QStringList *)sipForceConvertTo_QStringList (value, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete map; - return 0; - } - - map->insert (*sKey, *sData); - } - - *sipCppPtr = map; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/chmodjob.sip b/python/pykde/sip/kio/chmodjob.sip deleted file mode 100644 index 51b29397..00000000 --- a/python/pykde/sip/kio/chmodjob.sip +++ /dev/null @@ -1,64 +0,0 @@ -// -// 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 -namespace KIO -{ -class ChmodInfo -{ -public: - KURL url; - int permissions; -}; -}; -#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/python/pykde/sip/kio/connection.sip b/python/pykde/sip/kio/connection.sip deleted file mode 100644 index 67e535fb..00000000 --- a/python/pykde/sip/kio/connection.sip +++ /dev/null @@ -1,72 +0,0 @@ -// -// 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/python/pykde/sip/kio/davjob.sip b/python/pykde/sip/kio/davjob.sip deleted file mode 100644 index ff140b0a..00000000 --- a/python/pykde/sip/kio/davjob.sip +++ /dev/null @@ -1,56 +0,0 @@ -// -// 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/python/pykde/sip/kio/defaultprogress.sip b/python/pykde/sip/kio/defaultprogress.sip deleted file mode 100644 index 36460866..00000000 --- a/python/pykde/sip/kio/defaultprogress.sip +++ /dev/null @@ -1,103 +0,0 @@ -// -// 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/python/pykde/sip/kio/forwardingslavebase.sip b/python/pykde/sip/kio/forwardingslavebase.sip deleted file mode 100644 index 23f39036..00000000 --- a/python/pykde/sip/kio/forwardingslavebase.sip +++ /dev/null @@ -1,63 +0,0 @@ -// -// 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/python/pykde/sip/kio/global.sip b/python/pykde/sip/kio/global.sip deleted file mode 100644 index 10933eee..00000000 --- a/python/pykde/sip/kio/global.sip +++ /dev/null @@ -1,732 +0,0 @@ -// -// 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 -#include -#include -%End - -namespace KIO -{ -typedef longlong fileoffset_t; -typedef ulonglong 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 - -%ModuleHeaderCode -#include -%End - -KIO::UDSEntryList testKIOUDSEntryList (KIO::UDSEntryList); -%MethodCode -//takes list | (KIO.UDSEntryList) -//returns (KIO.UDSEntryList) - sipRes = a0; -%End - -%ModuleHeaderCode -#include -#include -%End - -KIO::MetaData testKIOMetaData (KIO::MetaData); -%MethodCode -//takes dict | (KIO.MetaData) -//returns (KIO.MetaData) - - - PyObject *dict; - if (sipParseArgs(&sipArgsParsed,sipArgs,"T", &PyDict_Type, &dict)) - { - int isErr = 0; - KIO::MetaData *map = (KIO::MetaData *)sipForceConvertTo_KIO_MetaData (dict, &isErr); - if (isErr) - { - Py_INCREF (Py_None); - return Py_None; - } - return sipConvertFrom_KIO_MetaData ((KIO::MetaData *)map, NULL); - } -%End - -//end - - -%MappedType KIO::UDSEntry -//converts a Python list of KIO.UDSAtom -{ -%TypeHeaderCode -#include -#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 = sipBuildResult (NULL, "N", new KIO::UDSAtom (*it), sipClass_KIO_UDSAtom)) == 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 *)sipForceConvertTo_KIO_UDSAtom (elem, &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 -#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 = sipConvertFrom_KIO_UDSEntry (&cpp, 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 *)sipForceConvertTo_KIO_UDSEntry (elem, &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 -#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 = sipBuildResult (NULL, "N", new QString (acpp), sipClass_QString)) == NULL) - || ((binst = sipBuildResult (NULL, "N", new QString (bcpp), sipClass_QString)) == 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; - int pos = 0; - QString *acpp; - QString *bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0; - - acpp = (QString *)sipForceConvertTo_QString (aelem, &iserr); - bcpp = (QString *)sipForceConvertTo_QString (belem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cppmap; - return 0; - } - - cppmap->insert (*acpp, *bcpp); - } - - *sipCppPtr = (KIO::MetaData *)cppmap; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/job.sip b/python/pykde/sip/kio/job.sip deleted file mode 100644 index 2f6339ee..00000000 --- a/python/pykde/sip/kio/job.sip +++ /dev/null @@ -1,73 +0,0 @@ -// -// 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/python/pykde/sip/kio/jobclasses.sip b/python/pykde/sip/kio/jobclasses.sip deleted file mode 100644 index 9fc230ff..00000000 --- a/python/pykde/sip/kio/jobclasses.sip +++ /dev/null @@ -1,748 +0,0 @@ -// -// 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 = sipBuildResult (NULL, "N", new KIO::CopyInfo (*it), sipClass_KIO_CopyInfo)) == 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 *)sipForceConvertTo_KIO_CopyInfo (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/kacl.sip b/python/pykde/sip/kio/kacl.sip deleted file mode 100644 index e4cd6328..00000000 --- a/python/pykde/sip/kio/kacl.sip +++ /dev/null @@ -1,166 +0,0 @@ -// -// 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 -#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 = sipBuildResult (NULL, "N", new QString (s), sipClass_QString); - 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++) - { - PyObject *elem = PyList_GET_ITEM (sipPy, i); - PyObject *pyp1 = PyTuple_GET_ITEM (elem, 0); - p1 = *(QString *)sipForceConvertTo_QString (pyp1, &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)); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/kar.sip b/python/pykde/sip/kio/kar.sip deleted file mode 100644 index 08560f21..00000000 --- a/python/pykde/sip/kio/kar.sip +++ /dev/null @@ -1,54 +0,0 @@ -// -// 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/python/pykde/sip/kio/karchive.sip b/python/pykde/sip/kio/karchive.sip deleted file mode 100644 index 45c634b5..00000000 --- a/python/pykde/sip/kio/karchive.sip +++ /dev/null @@ -1,189 +0,0 @@ -// -// 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/python/pykde/sip/kio/kautomount.sip b/python/pykde/sip/kio/kautomount.sip deleted file mode 100644 index 5a417409..00000000 --- a/python/pykde/sip/kio/kautomount.sip +++ /dev/null @@ -1,77 +0,0 @@ -// -// 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/python/pykde/sip/kio/kdatatool.sip b/python/pykde/sip/kio/kdatatool.sip deleted file mode 100644 index 62221aef..00000000 --- a/python/pykde/sip/kio/kdatatool.sip +++ /dev/null @@ -1,173 +0,0 @@ -// -// 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 -#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 = sipBuildResult (NULL, "N", new KDataToolInfo (*it), sipClass_KDataToolInfo)) == 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 *)sipForceConvertTo_KDataToolInfo (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete dList; - return 0; - } - - dList->append (*d); - } - - *sipCppPtr = dList; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/kdcopservicestarter.sip b/python/pykde/sip/kio/kdcopservicestarter.sip deleted file mode 100644 index fd1684c3..00000000 --- a/python/pykde/sip/kio/kdcopservicestarter.sip +++ /dev/null @@ -1,48 +0,0 @@ -// -// 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/python/pykde/sip/kio/kdirlister.sip b/python/pykde/sip/kio/kdirlister.sip deleted file mode 100644 index f6f56308..00000000 --- a/python/pykde/sip/kio/kdirlister.sip +++ /dev/null @@ -1,268 +0,0 @@ -// -// 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 *)sipForceConvertTo_KFileItem (elem, &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 -#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 *)sipForceConvertTo_QRegExp (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/kdirnotify.sip b/python/pykde/sip/kio/kdirnotify.sip deleted file mode 100644 index 1f3fbb99..00000000 --- a/python/pykde/sip/kio/kdirnotify.sip +++ /dev/null @@ -1,57 +0,0 @@ -// -// 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/python/pykde/sip/kio/kdirwatch.sip b/python/pykde/sip/kio/kdirwatch.sip deleted file mode 100644 index 41867dd3..00000000 --- a/python/pykde/sip/kio/kdirwatch.sip +++ /dev/null @@ -1,96 +0,0 @@ -// -// 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/python/pykde/sip/kio/kemailsettings.sip b/python/pykde/sip/kio/kemailsettings.sip deleted file mode 100644 index 8041d0b8..00000000 --- a/python/pykde/sip/kio/kemailsettings.sip +++ /dev/null @@ -1,84 +0,0 @@ -// -// 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/python/pykde/sip/kio/kfilefilter.sip b/python/pykde/sip/kio/kfilefilter.sip deleted file mode 100644 index cbe65618..00000000 --- a/python/pykde/sip/kio/kfilefilter.sip +++ /dev/null @@ -1,81 +0,0 @@ -// -// 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/python/pykde/sip/kio/kfileitem.sip b/python/pykde/sip/kio/kfileitem.sip deleted file mode 100644 index 3bba31c3..00000000 --- a/python/pykde/sip/kio/kfileitem.sip +++ /dev/null @@ -1,171 +0,0 @@ -// -// 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/python/pykde/sip/kio/kfilemetainfo.sip b/python/pykde/sip/kio/kfilemetainfo.sip deleted file mode 100644 index 77b58718..00000000 --- a/python/pykde/sip/kio/kfilemetainfo.sip +++ /dev/null @@ -1,458 +0,0 @@ -// -// 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/python/pykde/sip/kio/kfileshare.sip b/python/pykde/sip/kio/kfileshare.sip deleted file mode 100644 index 69c52361..00000000 --- a/python/pykde/sip/kio/kfileshare.sip +++ /dev/null @@ -1,87 +0,0 @@ -// -// 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/python/pykde/sip/kio/kfilterbase.sip b/python/pykde/sip/kio/kfilterbase.sip deleted file mode 100644 index bf931bc8..00000000 --- a/python/pykde/sip/kio/kfilterbase.sip +++ /dev/null @@ -1,74 +0,0 @@ -// -// 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/python/pykde/sip/kio/kfilterdev.sip b/python/pykde/sip/kio/kfilterdev.sip deleted file mode 100644 index 37bd1dc4..00000000 --- a/python/pykde/sip/kio/kfilterdev.sip +++ /dev/null @@ -1,73 +0,0 @@ -// -// 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/python/pykde/sip/kio/kimageio.sip b/python/pykde/sip/kio/kimageio.sip deleted file mode 100644 index 879506f8..00000000 --- a/python/pykde/sip/kio/kimageio.sip +++ /dev/null @@ -1,59 +0,0 @@ -// -// 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/python/pykde/sip/kio/kio-kde310.diff b/python/pykde/sip/kio/kio-kde310.diff deleted file mode 100644 index 89a40fb8..00000000 --- a/python/pykde/sip/kio/kio-kde310.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde311.diff b/python/pykde/sip/kio/kio-kde311.diff deleted file mode 100644 index de04c4f2..00000000 --- a/python/pykde/sip/kio/kio-kde311.diff +++ /dev/null @@ -1,4 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde312.diff b/python/pykde/sip/kio/kio-kde312.diff deleted file mode 100644 index 89a40fb8..00000000 --- a/python/pykde/sip/kio/kio-kde312.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde313.diff b/python/pykde/sip/kio/kio-kde313.diff deleted file mode 100644 index 89a40fb8..00000000 --- a/python/pykde/sip/kio/kio-kde313.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde314.diff b/python/pykde/sip/kio/kio-kde314.diff deleted file mode 100644 index 89a40fb8..00000000 --- a/python/pykde/sip/kio/kio-kde314.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde315.diff b/python/pykde/sip/kio/kio-kde315.diff deleted file mode 100644 index 89a40fb8..00000000 --- a/python/pykde/sip/kio/kio-kde315.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde320.diff b/python/pykde/sip/kio/kio-kde320.diff deleted file mode 100644 index 51249444..00000000 --- a/python/pykde/sip/kio/kio-kde320.diff +++ /dev/null @@ -1,6 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde321.diff b/python/pykde/sip/kio/kio-kde321.diff deleted file mode 100644 index 51249444..00000000 --- a/python/pykde/sip/kio/kio-kde321.diff +++ /dev/null @@ -1,6 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde322.diff b/python/pykde/sip/kio/kio-kde322.diff deleted file mode 100644 index 51249444..00000000 --- a/python/pykde/sip/kio/kio-kde322.diff +++ /dev/null @@ -1,6 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde323.diff b/python/pykde/sip/kio/kio-kde323.diff deleted file mode 100644 index 51249444..00000000 --- a/python/pykde/sip/kio/kio-kde323.diff +++ /dev/null @@ -1,6 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde330.diff b/python/pykde/sip/kio/kio-kde330.diff deleted file mode 100644 index 901fbebe..00000000 --- a/python/pykde/sip/kio/kio-kde330.diff +++ /dev/null @@ -1,10 +0,0 @@ -+ %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/python/pykde/sip/kio/kio-kde331.diff b/python/pykde/sip/kio/kio-kde331.diff deleted file mode 100644 index 901fbebe..00000000 --- a/python/pykde/sip/kio/kio-kde331.diff +++ /dev/null @@ -1,10 +0,0 @@ -+ %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/python/pykde/sip/kio/kio-kde332.diff b/python/pykde/sip/kio/kio-kde332.diff deleted file mode 100644 index 901fbebe..00000000 --- a/python/pykde/sip/kio/kio-kde332.diff +++ /dev/null @@ -1,10 +0,0 @@ -+ %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/python/pykde/sip/kio/kio-kde340.diff b/python/pykde/sip/kio/kio-kde340.diff deleted file mode 100644 index 324b1d49..00000000 --- a/python/pykde/sip/kio/kio-kde340.diff +++ /dev/null @@ -1,11 +0,0 @@ -+ %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/python/pykde/sip/kio/kio-kde341.diff b/python/pykde/sip/kio/kio-kde341.diff deleted file mode 100644 index 324b1d49..00000000 --- a/python/pykde/sip/kio/kio-kde341.diff +++ /dev/null @@ -1,11 +0,0 @@ -+ %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/python/pykde/sip/kio/kio-kde342.diff b/python/pykde/sip/kio/kio-kde342.diff deleted file mode 100644 index 324b1d49..00000000 --- a/python/pykde/sip/kio/kio-kde342.diff +++ /dev/null @@ -1,11 +0,0 @@ -+ %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/python/pykde/sip/kio/kio-kde343.diff b/python/pykde/sip/kio/kio-kde343.diff deleted file mode 100644 index 324b1d49..00000000 --- a/python/pykde/sip/kio/kio-kde343.diff +++ /dev/null @@ -1,11 +0,0 @@ -+ %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/python/pykde/sip/kio/kio-kde350.diff b/python/pykde/sip/kio/kio-kde350.diff deleted file mode 100644 index 3d0cb015..00000000 --- a/python/pykde/sip/kio/kio-kde350.diff +++ /dev/null @@ -1,12 +0,0 @@ -+ %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/python/pykde/sip/kio/kio-kde351.diff b/python/pykde/sip/kio/kio-kde351.diff deleted file mode 100644 index 3d0cb015..00000000 --- a/python/pykde/sip/kio/kio-kde351.diff +++ /dev/null @@ -1,12 +0,0 @@ -+ %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/python/pykde/sip/kio/kio-kde352.diff b/python/pykde/sip/kio/kio-kde352.diff deleted file mode 100644 index 3d0cb015..00000000 --- a/python/pykde/sip/kio/kio-kde352.diff +++ /dev/null @@ -1,12 +0,0 @@ -+ %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/python/pykde/sip/kio/kio-kde353.diff b/python/pykde/sip/kio/kio-kde353.diff deleted file mode 100644 index 3d0cb015..00000000 --- a/python/pykde/sip/kio/kio-kde353.diff +++ /dev/null @@ -1,12 +0,0 @@ -+ %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/python/pykde/sip/kio/kiomod.sip b/python/pykde/sip/kio/kiomod.sip deleted file mode 100644 index 369a45dd..00000000 --- a/python/pykde/sip/kio/kiomod.sip +++ /dev/null @@ -1,107 +0,0 @@ -// -// 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 -%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/python/pykde/sip/kio/kiomod.sip.in b/python/pykde/sip/kio/kiomod.sip.in deleted file mode 100644 index 84984ed5..00000000 --- a/python/pykde/sip/kio/kiomod.sip.in +++ /dev/null @@ -1,97 +0,0 @@ -// -// 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/python/pykde/sip/kio/kmimemagic.sip b/python/pykde/sip/kio/kmimemagic.sip deleted file mode 100644 index 0dc31c61..00000000 --- a/python/pykde/sip/kio/kmimemagic.sip +++ /dev/null @@ -1,74 +0,0 @@ -// -// 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/python/pykde/sip/kio/kmimetype.sip b/python/pykde/sip/kio/kmimetype.sip deleted file mode 100644 index 99b13d2f..00000000 --- a/python/pykde/sip/kio/kmimetype.sip +++ /dev/null @@ -1,432 +0,0 @@ -// -// 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; - 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 -#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 PyInstance_Check(sipPy); - - int iserr = 0; - KMimeType *cpp = (KMimeType *)sipForceConvertTo_KMimeType (sipPy, &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 -#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 = sipBuildResult (NULL, "N", new KDEDesktopMimeType::Service (*it), sipClass_KDEDesktopMimeType_Service)) == 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 *)sipForceConvertTo_KDEDesktopMimeType_Service (elem, &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 -#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 = sipBuildResult (NULL, "N", svc, sipClass_KMimeType); - 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 *)sipForceConvertTo_KMimeType (elem, &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/python/pykde/sip/kio/kmimetypechooser.sip b/python/pykde/sip/kio/kmimetypechooser.sip deleted file mode 100644 index b0a89870..00000000 --- a/python/pykde/sip/kio/kmimetypechooser.sip +++ /dev/null @@ -1,74 +0,0 @@ -// -// 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/python/pykde/sip/kio/knfsshare.sip b/python/pykde/sip/kio/knfsshare.sip deleted file mode 100644 index 6f36f021..00000000 --- a/python/pykde/sip/kio/knfsshare.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// 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/python/pykde/sip/kio/kpac.sip b/python/pykde/sip/kio/kpac.sip deleted file mode 100644 index 75605146..00000000 --- a/python/pykde/sip/kio/kpac.sip +++ /dev/null @@ -1,44 +0,0 @@ -// -// 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/python/pykde/sip/kio/kprotocolinfo.sip b/python/pykde/sip/kio/kprotocolinfo.sip deleted file mode 100644 index 738cb862..00000000 --- a/python/pykde/sip/kio/kprotocolinfo.sip +++ /dev/null @@ -1,288 +0,0 @@ -// -// 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 -#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 PyInstance_Check(sipPy); - - int iserr = 0; - KProtocolInfo *cpp = (KProtocolInfo *)sipForceConvertTo_KProtocolInfo (sipPy, &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 = sipBuildResult (NULL, "N", new KProtocolInfo::ExtraField (*it), sipClass_KProtocolInfo_ExtraField)) == 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 *)sipForceConvertTo_KProtocolInfo_ExtraField (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; -%End - - diff --git a/python/pykde/sip/kio/kprotocolmanager.sip b/python/pykde/sip/kio/kprotocolmanager.sip deleted file mode 100644 index ba1da677..00000000 --- a/python/pykde/sip/kio/kprotocolmanager.sip +++ /dev/null @@ -1,99 +0,0 @@ -// -// 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/python/pykde/sip/kio/kremoteencoding.sip b/python/pykde/sip/kio/kremoteencoding.sip deleted file mode 100644 index 92a7f9c3..00000000 --- a/python/pykde/sip/kio/kremoteencoding.sip +++ /dev/null @@ -1,60 +0,0 @@ -// -// 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/python/pykde/sip/kio/krun.sip b/python/pykde/sip/kio/krun.sip deleted file mode 100644 index ba4791ab..00000000 --- a/python/pykde/sip/kio/krun.sip +++ /dev/null @@ -1,206 +0,0 @@ -// -// 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/python/pykde/sip/kio/ksambashare.sip b/python/pykde/sip/kio/ksambashare.sip deleted file mode 100644 index 3e57eea4..00000000 --- a/python/pykde/sip/kio/ksambashare.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// 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/python/pykde/sip/kio/kscan.sip b/python/pykde/sip/kio/kscan.sip deleted file mode 100644 index e6159e23..00000000 --- a/python/pykde/sip/kio/kscan.sip +++ /dev/null @@ -1,120 +0,0 @@ -// -// 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/python/pykde/sip/kio/kservice.sip b/python/pykde/sip/kio/kservice.sip deleted file mode 100644 index ddbc60ca..00000000 --- a/python/pykde/sip/kio/kservice.sip +++ /dev/null @@ -1,289 +0,0 @@ -// -// 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 -#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 PyInstance_Check(sipPy); - - int iserr = 0; - KService *cpp = (KService *)sipForceConvertTo_KService (sipPy, &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 -#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 = sipConvertFrom_KService_Ptr (svc, 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 *)sipForceConvertTo_KService (elem, &iserr); - - KService::Ptr *ptr = new KService::Ptr (service); - - if (iserr) - { - *sipIsErr = 1; - delete cList; - return 0; - } - - cList->append (*ptr); - } - - *sipCppPtr = cList; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/kservicegroup.sip b/python/pykde/sip/kio/kservicegroup.sip deleted file mode 100644 index 0206580a..00000000 --- a/python/pykde/sip/kio/kservicegroup.sip +++ /dev/null @@ -1,291 +0,0 @@ -// -// 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 -#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 PyInstance_Check(sipPy); - - int iserr = 0; - KServiceGroup *cpp = (KServiceGroup *)sipForceConvertTo_KServiceGroup (sipPy, &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 -#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. - - 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 = sipConvertFrom_KSycocaEntry_Ptr (svcGroupType, 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 *)sipForceConvertTo_KSycocaEntry (elem, &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/python/pykde/sip/kio/kservicetype.sip b/python/pykde/sip/kio/kservicetype.sip deleted file mode 100644 index d3b4b32f..00000000 --- a/python/pykde/sip/kio/kservicetype.sip +++ /dev/null @@ -1,292 +0,0 @@ -// -// 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 KSharedPtr Ptr; - 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 -#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 PyInstance_Check(sipPy); - - int iserr = 0; - KServiceType *cpp = (KServiceType *)sipForceConvertTo_KServiceType (sipPy, &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 -#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 = sipBuildResult (NULL, "N", new QString (acpp), sipClass_QString)) == 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; - int pos = 0; - QString *acpp; - QVariant::Type bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0; - - if (!PyInt_Check (belem) || iserr) - { - *sipIsErr = 1; - delete cppmap; - return 0; - } - - acpp = (QString *)sipForceConvertTo_QString (aelem, &iserr); - bcpp = (QVariant::Type) PyInt_AS_LONG(belem); - - cppmap->insert (*acpp, bcpp); - } - - *sipCppPtr = cppmap; - - return 1; -%End -}; - - -%MappedType QValueList -//converts a Python list of KServiceType -{ -%TypeHeaderCode -#include -#include -#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 = sipConvertFrom_KServiceType_Ptr (svc, 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 *)sipForceConvertTo_KServiceType (elem, &iserr); - - KServiceType::Ptr *ptr = new KServiceType::Ptr (service); - - if (iserr) - { - *sipIsErr = 1; - delete cList; - return 0; - } - - cList->append (*ptr); - } - - *sipCppPtr = cList; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/kshellcompletion.sip b/python/pykde/sip/kio/kshellcompletion.sip deleted file mode 100644 index 2ada63c1..00000000 --- a/python/pykde/sip/kio/kshellcompletion.sip +++ /dev/null @@ -1,47 +0,0 @@ -// -// 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/python/pykde/sip/kio/kshred.sip b/python/pykde/sip/kio/kshred.sip deleted file mode 100644 index e5277de8..00000000 --- a/python/pykde/sip/kio/kshred.sip +++ /dev/null @@ -1,49 +0,0 @@ -// -// 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/python/pykde/sip/kio/ksycoca.sip b/python/pykde/sip/kio/ksycoca.sip deleted file mode 100644 index 32c960dd..00000000 --- a/python/pykde/sip/kio/ksycoca.sip +++ /dev/null @@ -1,171 +0,0 @@ -// -// 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/python/pykde/sip/kio/ksycocadict.sip b/python/pykde/sip/kio/ksycocadict.sip deleted file mode 100644 index 83497d2b..00000000 --- a/python/pykde/sip/kio/ksycocadict.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// 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/python/pykde/sip/kio/ksycocaentry.sip b/python/pykde/sip/kio/ksycocaentry.sip deleted file mode 100644 index 40d5bd38..00000000 --- a/python/pykde/sip/kio/ksycocaentry.sip +++ /dev/null @@ -1,213 +0,0 @@ -// -// 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 -#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 PyInstance_Check(sipPy); - - int iserr = 0; - KSycocaEntry *cpp = (KSycocaEntry *)sipForceConvertTo_KSycocaEntry (sipPy, &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 -#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 = sipConvertFrom_KService_Ptr (svcType, sipTransferObj); - } - else if (svc->data ()->sycocaType () == KST_KServiceGroup) - { - svcGroupType = (KSharedPtr *) svc; - inst = sipConvertFrom_KServiceGroup_Ptr (svcGroupType, 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 *)sipForceConvertTo_KSycocaEntry (elem, &iserr); - - KSycocaEntry::Ptr *ptr = new KSycocaEntry::Ptr (service); - - if (iserr) - { - *sipIsErr = 1; - delete cList; - return 0; - } - - cList->append (*ptr); - } - - *sipCppPtr = cList; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/ksycocafactory.sip b/python/pykde/sip/kio/ksycocafactory.sip deleted file mode 100644 index 1e8d1628..00000000 --- a/python/pykde/sip/kio/ksycocafactory.sip +++ /dev/null @@ -1,63 +0,0 @@ -// -// 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/python/pykde/sip/kio/ksycocatype.sip b/python/pykde/sip/kio/ksycocatype.sip deleted file mode 100644 index 4babc21d..00000000 --- a/python/pykde/sip/kio/ksycocatype.sip +++ /dev/null @@ -1,76 +0,0 @@ -// -// 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/python/pykde/sip/kio/ktar.sip b/python/pykde/sip/kio/ktar.sip deleted file mode 100644 index f67b4d1b..00000000 --- a/python/pykde/sip/kio/ktar.sip +++ /dev/null @@ -1,73 +0,0 @@ -// -// 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/python/pykde/sip/kio/ktrader.sip b/python/pykde/sip/kio/ktrader.sip deleted file mode 100644 index 9159dc55..00000000 --- a/python/pykde/sip/kio/ktrader.sip +++ /dev/null @@ -1,125 +0,0 @@ -// -// 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 -#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 = sipConvertFrom_KService_Ptr (&cpp, NULL); - - 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 *)sipForceConvertTo_KService_Ptr (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/kurifilter.sip b/python/pykde/sip/kio/kurifilter.sip deleted file mode 100644 index e9f8f21e..00000000 --- a/python/pykde/sip/kio/kurifilter.sip +++ /dev/null @@ -1,147 +0,0 @@ -// -// 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/python/pykde/sip/kio/kurlcompletion.sip b/python/pykde/sip/kio/kurlcompletion.sip deleted file mode 100644 index dc927df1..00000000 --- a/python/pykde/sip/kio/kurlcompletion.sip +++ /dev/null @@ -1,81 +0,0 @@ -// -// 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/python/pykde/sip/kio/kurlpixmapprovider.sip b/python/pykde/sip/kio/kurlpixmapprovider.sip deleted file mode 100644 index 3f2f336f..00000000 --- a/python/pykde/sip/kio/kurlpixmapprovider.sip +++ /dev/null @@ -1,41 +0,0 @@ -// -// 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/python/pykde/sip/kio/kuserprofile.sip b/python/pykde/sip/kio/kuserprofile.sip deleted file mode 100644 index 02586541..00000000 --- a/python/pykde/sip/kio/kuserprofile.sip +++ /dev/null @@ -1,224 +0,0 @@ -// -// 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 -#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 = sipBuildResult (NULL, "N", new KServiceOffer (*it), sipClass_KServiceOffer)) == 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 *)sipForceConvertTo_KServiceOffer (elem, &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 -#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 *)sipForceConvertTo_KServiceTypeProfile (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cList; - return 0; - } - - cList->append (service); - } - - *sipCppPtr = cList; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/kzip.sip b/python/pykde/sip/kio/kzip.sip deleted file mode 100644 index 184e64c9..00000000 --- a/python/pykde/sip/kio/kzip.sip +++ /dev/null @@ -1,120 +0,0 @@ -// -// 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/python/pykde/sip/kio/metainfojob.sip b/python/pykde/sip/kio/metainfojob.sip deleted file mode 100644 index 691cb186..00000000 --- a/python/pykde/sip/kio/metainfojob.sip +++ /dev/null @@ -1,63 +0,0 @@ -// -// 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/python/pykde/sip/kio/netaccess.sip b/python/pykde/sip/kio/netaccess.sip deleted file mode 100644 index c4acb6eb..00000000 --- a/python/pykde/sip/kio/netaccess.sip +++ /dev/null @@ -1,128 +0,0 @@ -// -// 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/python/pykde/sip/kio/observer.sip b/python/pykde/sip/kio/observer.sip deleted file mode 100644 index 0b6fb603..00000000 --- a/python/pykde/sip/kio/observer.sip +++ /dev/null @@ -1,96 +0,0 @@ -// -// 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/python/pykde/sip/kio/passdlg.sip b/python/pykde/sip/kio/passdlg.sip deleted file mode 100644 index 434f40b6..00000000 --- a/python/pykde/sip/kio/passdlg.sip +++ /dev/null @@ -1,68 +0,0 @@ -// -// 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/python/pykde/sip/kio/paste.sip b/python/pykde/sip/kio/paste.sip deleted file mode 100644 index 2757894e..00000000 --- a/python/pykde/sip/kio/paste.sip +++ /dev/null @@ -1,56 +0,0 @@ -// -// 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/python/pykde/sip/kio/previewjob.sip b/python/pykde/sip/kio/previewjob.sip deleted file mode 100644 index 8096b6f6..00000000 --- a/python/pykde/sip/kio/previewjob.sip +++ /dev/null @@ -1,72 +0,0 @@ -// -// 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/python/pykde/sip/kio/progressbase.sip b/python/pykde/sip/kio/progressbase.sip deleted file mode 100644 index 0c6330ee..00000000 --- a/python/pykde/sip/kio/progressbase.sip +++ /dev/null @@ -1,95 +0,0 @@ -// -// 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/python/pykde/sip/kio/renamedlg.sip b/python/pykde/sip/kio/renamedlg.sip deleted file mode 100644 index 79c9bc1c..00000000 --- a/python/pykde/sip/kio/renamedlg.sip +++ /dev/null @@ -1,67 +0,0 @@ -// -// 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/python/pykde/sip/kio/renamedlgplugin.sip b/python/pykde/sip/kio/renamedlgplugin.sip deleted file mode 100644 index 784dabf2..00000000 --- a/python/pykde/sip/kio/renamedlgplugin.sip +++ /dev/null @@ -1,39 +0,0 @@ -// -// 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/python/pykde/sip/kio/scheduler.sip b/python/pykde/sip/kio/scheduler.sip deleted file mode 100644 index 31d3913b..00000000 --- a/python/pykde/sip/kio/scheduler.sip +++ /dev/null @@ -1,106 +0,0 @@ -// -// 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/python/pykde/sip/kio/sessiondata.sip b/python/pykde/sip/kio/sessiondata.sip deleted file mode 100644 index 2ba25829..00000000 --- a/python/pykde/sip/kio/sessiondata.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// 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/python/pykde/sip/kio/skipdlg.sip b/python/pykde/sip/kio/skipdlg.sip deleted file mode 100644 index 29bb91fe..00000000 --- a/python/pykde/sip/kio/skipdlg.sip +++ /dev/null @@ -1,45 +0,0 @@ -// -// 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/python/pykde/sip/kio/slave.sip b/python/pykde/sip/kio/slave.sip deleted file mode 100644 index 5db1ad17..00000000 --- a/python/pykde/sip/kio/slave.sip +++ /dev/null @@ -1,95 +0,0 @@ -// -// 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/python/pykde/sip/kio/slavebase.sip b/python/pykde/sip/kio/slavebase.sip deleted file mode 100644 index e5caa6c0..00000000 --- a/python/pykde/sip/kio/slavebase.sip +++ /dev/null @@ -1,187 +0,0 @@ -// -// 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/python/pykde/sip/kio/slaveconfig.sip b/python/pykde/sip/kio/slaveconfig.sip deleted file mode 100644 index 7ed17c9d..00000000 --- a/python/pykde/sip/kio/slaveconfig.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// 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/python/pykde/sip/kio/slaveinterface.sip b/python/pykde/sip/kio/slaveinterface.sip deleted file mode 100644 index 764b78f4..00000000 --- a/python/pykde/sip/kio/slaveinterface.sip +++ /dev/null @@ -1,188 +0,0 @@ -// -// 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/python/pykde/sip/kio/statusbarprogress.sip b/python/pykde/sip/kio/statusbarprogress.sip deleted file mode 100644 index 5c165bd5..00000000 --- a/python/pykde/sip/kio/statusbarprogress.sip +++ /dev/null @@ -1,56 +0,0 @@ -// -// 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/python/pykde/sip/kio/tcpslavebase.sip b/python/pykde/sip/kio/tcpslavebase.sip deleted file mode 100644 index 407b0fce..00000000 --- a/python/pykde/sip/kio/tcpslavebase.sip +++ /dev/null @@ -1,91 +0,0 @@ -// -// 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/python/pykde/sip/kio/thumbcreator.sip b/python/pykde/sip/kio/thumbcreator.sip deleted file mode 100644 index e8aff184..00000000 --- a/python/pykde/sip/kio/thumbcreator.sip +++ /dev/null @@ -1,47 +0,0 @@ -// -// 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/python/pykde/sip/kmdi/kmdichildarea.sip b/python/pykde/sip/kmdi/kmdichildarea.sip deleted file mode 100644 index 3df86c01..00000000 --- a/python/pykde/sip/kmdi/kmdichildarea.sip +++ /dev/null @@ -1,102 +0,0 @@ -// -// 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/python/pykde/sip/kmdi/kmdichildfrm.sip b/python/pykde/sip/kmdi/kmdichildfrm.sip deleted file mode 100644 index c0c6be24..00000000 --- a/python/pykde/sip/kmdi/kmdichildfrm.sip +++ /dev/null @@ -1,276 +0,0 @@ -// -// 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 -#include -#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; - int pos = 0; - QString *a0; - QWidget::FocusPolicy a1; - - while (PyDict_Next(sipPy, &pos, &key, &value)) - { - int iserr = 0; - - a0 = (QString *)sipForceConvertTo_QString (key, &iserr); - - if ((iserr) || (!PyInt_Check (value))) - { - *sipIsErr = 1; - delete qdict; - return 0; - } - - a1 = (QWidget::FocusPolicy) PyInt_AS_LONG (value); - - qdict->insert (*a0, &a1); - } - - *sipCppPtr = qdict; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kmdi/kmdichildfrmcaption.sip b/python/pykde/sip/kmdi/kmdichildfrmcaption.sip deleted file mode 100644 index 6004cf16..00000000 --- a/python/pykde/sip/kmdi/kmdichildfrmcaption.sip +++ /dev/null @@ -1,57 +0,0 @@ -// -// 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/python/pykde/sip/kmdi/kmdichildview.sip b/python/pykde/sip/kmdi/kmdichildview.sip deleted file mode 100644 index 874c1708..00000000 --- a/python/pykde/sip/kmdi/kmdichildview.sip +++ /dev/null @@ -1,120 +0,0 @@ -// -// 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/python/pykde/sip/kmdi/kmdidefines.sip b/python/pykde/sip/kmdi/kmdidefines.sip deleted file mode 100644 index 99fa0083..00000000 --- a/python/pykde/sip/kmdi/kmdidefines.sip +++ /dev/null @@ -1,115 +0,0 @@ -// -// 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/python/pykde/sip/kmdi/kmdimainfrm.sip b/python/pykde/sip/kmdi/kmdimainfrm.sip deleted file mode 100644 index c1ec1b04..00000000 --- a/python/pykde/sip/kmdi/kmdimainfrm.sip +++ /dev/null @@ -1,339 +0,0 @@ -// -// 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 *)sipForceConvertTo_KDockWidget (elem, &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 = sipBuildResult (NULL, "N", new QRect (*it), sipClass_QRect)) == 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 *)sipForceConvertTo_QRect (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kmdi/kmdimod.sip b/python/pykde/sip/kmdi/kmdimod.sip deleted file mode 100644 index 890a4494..00000000 --- a/python/pykde/sip/kmdi/kmdimod.sip +++ /dev/null @@ -1,47 +0,0 @@ -// -// 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 diff --git a/python/pykde/sip/kmdi/kmdimod.sip.in b/python/pykde/sip/kmdi/kmdimod.sip.in deleted file mode 100644 index 69af83af..00000000 --- a/python/pykde/sip/kmdi/kmdimod.sip.in +++ /dev/null @@ -1,48 +0,0 @@ -// -// 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/python/pykde/sip/kmdi/kmditaskbar.sip b/python/pykde/sip/kmdi/kmditaskbar.sip deleted file mode 100644 index 023a6e33..00000000 --- a/python/pykde/sip/kmdi/kmditaskbar.sip +++ /dev/null @@ -1,88 +0,0 @@ -// -// 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/python/pykde/sip/kmdi/kmditoolviewaccessor.sip b/python/pykde/sip/kmdi/kmditoolviewaccessor.sip deleted file mode 100644 index c2ea2d71..00000000 --- a/python/pykde/sip/kmdi/kmditoolviewaccessor.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// 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/python/pykde/sip/kparts/browserextension.sip b/python/pykde/sip/kparts/browserextension.sip deleted file mode 100644 index 494b8662..00000000 --- a/python/pykde/sip/kparts/browserextension.sip +++ /dev/null @@ -1,603 +0,0 @@ -// -// 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 -#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; - if (((ainst = sipBuildResult (NULL, "N", new QCString (acpp), sipClass_QCString)) == NULL) - || ((binst = sipBuildResult (NULL, "N", new QCString (bcpp), sipClass_QCString)) == 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; - int pos = 0; - QCString *acpp; - QCString *bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0; - - acpp = (QCString *)sipForceConvertTo_QCString (aelem, &iserr); - bcpp = (QCString *)sipForceConvertTo_QCString (belem, &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; - if (((ainst = sipBuildResult (NULL, "N", new QCString (acpp), sipClass_QCString)) == 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; - int pos = 0; - QCString *acpp; - int bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0; - - if (iserr || !PyInt_Check (belem)) - { - *sipIsErr = 1; - delete cppmap; - return 0; - } - - acpp = (QCString *)sipForceConvertTo_QCString (aelem, &iserr); - 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 *)sipForceConvertTo_KParts_ReadOnlyPart (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kparts/browserinterface.sip b/python/pykde/sip/kparts/browserinterface.sip deleted file mode 100644 index 06785f66..00000000 --- a/python/pykde/sip/kparts/browserinterface.sip +++ /dev/null @@ -1,43 +0,0 @@ -// -// 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/python/pykde/sip/kparts/browserrun.sip b/python/pykde/sip/kparts/browserrun.sip deleted file mode 100644 index 8002ce78..00000000 --- a/python/pykde/sip/kparts/browserrun.sip +++ /dev/null @@ -1,117 +0,0 @@ -// -// 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/python/pykde/sip/kparts/dockmainwindow.sip b/python/pykde/sip/kparts/dockmainwindow.sip deleted file mode 100644 index 4d6d6935..00000000 --- a/python/pykde/sip/kparts/dockmainwindow.sip +++ /dev/null @@ -1,49 +0,0 @@ -// -// 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/python/pykde/sip/kparts/event.sip b/python/pykde/sip/kparts/event.sip deleted file mode 100644 index c1014ff9..00000000 --- a/python/pykde/sip/kparts/event.sip +++ /dev/null @@ -1,94 +0,0 @@ -// -// 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/python/pykde/sip/kparts/factory.sip b/python/pykde/sip/kparts/factory.sip deleted file mode 100644 index f97cebf0..00000000 --- a/python/pykde/sip/kparts/factory.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// 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/python/pykde/sip/kparts/genericfactory.sip b/python/pykde/sip/kparts/genericfactory.sip deleted file mode 100644 index b76a5746..00000000 --- a/python/pykde/sip/kparts/genericfactory.sip +++ /dev/null @@ -1,25 +0,0 @@ -// -// 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/python/pykde/sip/kparts/historyprovider.sip b/python/pykde/sip/kparts/historyprovider.sip deleted file mode 100644 index ec0bafbb..00000000 --- a/python/pykde/sip/kparts/historyprovider.sip +++ /dev/null @@ -1,54 +0,0 @@ -// -// 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/python/pykde/sip/kparts/konsole_part.sip b/python/pykde/sip/kparts/konsole_part.sip deleted file mode 100644 index bbc4ea0d..00000000 --- a/python/pykde/sip/kparts/konsole_part.sip +++ /dev/null @@ -1,177 +0,0 @@ -// -// 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. - - -class konsoleFactory : KParts::Factory -{ -%TypeHeaderCode -#include -#include -%End - - -public: - konsoleFactory (); - virtual KParts::Part* createPartObject (QWidget* = 0, const char* = 0, QObject* /Transfer/ = 0, const char* = 0, const char* = "KParts::Part", const QStringList& = QStringList ()); - static KInstance* instance (); - -}; // class konsoleFactory - - -%If ( KDE_3_5_0 - ) - -class konsolePart : KParts::ReadOnlyPart, TerminalInterface, ExtTerminalInterface -{ -%TypeHeaderCode -#include -#include -%End - - -public: - konsolePart (QWidget*, const char*, QObject* /TransferThis/, const char*, const char* = 0); - -signals: - void processExited (KProcess*); - void receivedData (const QString&); - void forkedChild (); - -protected: - virtual bool openURL (const KURL&); - virtual bool openFile (); - virtual bool closeURL (); - virtual void guiActivateEvent (KParts::GUIActivateEvent*); - -protected slots: - void showShell (); - void sessionDestroyed (); - void enableMasterModeConnections (); - -public: - void startProgram (const QString&, const QStrList&); - void newSession (); - void showShellInDir (const QString&); - void sendInput (const QString&); - void setAutoDestroy (bool); - void setAutoStartShell (bool); - -}; // class konsolePart - -%End - - -class konsoleBrowserExtension : KParts::BrowserExtension -{ -%TypeHeaderCode -#include -#include -%End - - -public: - konsoleBrowserExtension (konsolePart*); - void emitOpenURLRequest (const KURL&); - -}; // class konsoleBrowserExtension - - -%If ( - KDE_3_5_0 ) - -class konsolePart : KParts::ReadOnlyPart, TerminalInterface -{ -%TypeHeaderCode -#include -#include -%End - - -public: - konsolePart (QWidget*, const char*, QObject* /TransferThis/, const char*, const char* = 0); - -signals: - void processExited (); - void receivedData (const QString&); - -protected: - virtual bool openURL (const KURL&); - virtual bool openFile (); - virtual bool closeURL (); - virtual void guiActivateEvent (KParts::GUIActivateEvent*); - -protected slots: - void showShell (); - void slotProcessExited (); - void slotReceivedData (const QString&); - void sessionDestroyed (); - void updateTitle (); - void enableMasterModeConnections (); - -public: - void startProgram (const QString&, const QStrList&); - void showShellInDir (const QString&); - void sendInput (const QString&); - -}; // class konsolePart - -%End - -//force - -class TerminalInterface -{ -%TypeHeaderCode -#include -%End - - -public: - virtual void startProgram (const QString&, const QStrList&) = 0; - virtual void showShellInDir (const QString&) = 0; - virtual void sendInput (const QString&) = 0; - -}; // class TerminalInterface - - -%If ( KDE_3_5_0 - ) - -class ExtTerminalInterface -{ -%TypeHeaderCode -#include -%End - - -public: - virtual void startProgram (const QString&, const QStrList&) = 0; - virtual void showShellInDir (const QString&) = 0; - virtual void sendInput (const QString&) = 0; - virtual void setAutoStartShell (bool) = 0; - virtual void setAutoDestroy (bool) = 0; - -}; // class ExtTerminalInterface - -%End - -//end diff --git a/python/pykde/sip/kparts/kparts-kde320.diff b/python/pykde/sip/kparts/kparts-kde320.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde320.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde321.diff b/python/pykde/sip/kparts/kparts-kde321.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde321.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde322.diff b/python/pykde/sip/kparts/kparts-kde322.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde322.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde323.diff b/python/pykde/sip/kparts/kparts-kde323.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde323.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde330.diff b/python/pykde/sip/kparts/kparts-kde330.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde330.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde331.diff b/python/pykde/sip/kparts/kparts-kde331.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde331.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde332.diff b/python/pykde/sip/kparts/kparts-kde332.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde332.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde340.diff b/python/pykde/sip/kparts/kparts-kde340.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde340.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde341.diff b/python/pykde/sip/kparts/kparts-kde341.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde341.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde342.diff b/python/pykde/sip/kparts/kparts-kde342.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde342.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde343.diff b/python/pykde/sip/kparts/kparts-kde343.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde343.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde350.diff b/python/pykde/sip/kparts/kparts-kde350.diff deleted file mode 100644 index 8920fa04..00000000 --- a/python/pykde/sip/kparts/kparts-kde350.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include konsole_part.sip -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde351.diff b/python/pykde/sip/kparts/kparts-kde351.diff deleted file mode 100644 index 8920fa04..00000000 --- a/python/pykde/sip/kparts/kparts-kde351.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include konsole_part.sip -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde352.diff b/python/pykde/sip/kparts/kparts-kde352.diff deleted file mode 100644 index 8920fa04..00000000 --- a/python/pykde/sip/kparts/kparts-kde352.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include konsole_part.sip -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde353.diff b/python/pykde/sip/kparts/kparts-kde353.diff deleted file mode 100644 index 8920fa04..00000000 --- a/python/pykde/sip/kparts/kparts-kde353.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include konsole_part.sip -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kpartsmod.sip b/python/pykde/sip/kparts/kpartsmod.sip deleted file mode 100644 index 7e2c2904..00000000 --- a/python/pykde/sip/kparts/kpartsmod.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// 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 -%Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kpartsmod.sip.in b/python/pykde/sip/kparts/kpartsmod.sip.in deleted file mode 100644 index 38061144..00000000 --- a/python/pykde/sip/kparts/kpartsmod.sip.in +++ /dev/null @@ -1,51 +0,0 @@ -// -// 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/python/pykde/sip/kparts/mainwindow.sip b/python/pykde/sip/kparts/mainwindow.sip deleted file mode 100644 index 3fa7d3e1..00000000 --- a/python/pykde/sip/kparts/mainwindow.sip +++ /dev/null @@ -1,60 +0,0 @@ -// -// 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/python/pykde/sip/kparts/part.sip b/python/pykde/sip/kparts/part.sip deleted file mode 100644 index c4ec29d7..00000000 --- a/python/pykde/sip/kparts/part.sip +++ /dev/null @@ -1,312 +0,0 @@ -// -// 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}, -// {sipName_konsolePart, &sipClass_konsolePart}, -// {sipName_konsoleBrowserExtension, &sipClass_konsoleBrowserExtension}, - }; - - 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 -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/python/pykde/sip/kparts/partmanager.sip b/python/pykde/sip/kparts/partmanager.sip deleted file mode 100644 index 9e380b81..00000000 --- a/python/pykde/sip/kparts/partmanager.sip +++ /dev/null @@ -1,181 +0,0 @@ -// -// 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 *)sipForceConvertTo_KParts_Part (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kparts/plugin.sip b/python/pykde/sip/kparts/plugin.sip deleted file mode 100644 index 815e1b78..00000000 --- a/python/pykde/sip/kparts/plugin.sip +++ /dev/null @@ -1,210 +0,0 @@ -// -// 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 = sipBuildResult (NULL, "N", new KParts::Plugin::PluginInfo (*it), sipClass_KParts_Plugin_PluginInfo)) == 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 *)sipForceConvertTo_KParts_Plugin_PluginInfo (elem, &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 *)sipForceConvertTo_KParts_Plugin (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kparts/statusbarextension.sip b/python/pykde/sip/kparts/statusbarextension.sip deleted file mode 100644 index 99e5129a..00000000 --- a/python/pykde/sip/kparts/statusbarextension.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// 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/python/pykde/sip/kresources/configdialog.sip b/python/pykde/sip/kresources/configdialog.sip deleted file mode 100644 index 744e14b9..00000000 --- a/python/pykde/sip/kresources/configdialog.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// 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/python/pykde/sip/kresources/configpage.sip b/python/pykde/sip/kresources/configpage.sip deleted file mode 100644 index e1dbf525..00000000 --- a/python/pykde/sip/kresources/configpage.sip +++ /dev/null @@ -1,48 +0,0 @@ -// -// 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/python/pykde/sip/kresources/configwidget.sip b/python/pykde/sip/kresources/configwidget.sip deleted file mode 100644 index 822fe5a7..00000000 --- a/python/pykde/sip/kresources/configwidget.sip +++ /dev/null @@ -1,56 +0,0 @@ -// -// 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/python/pykde/sip/kresources/factory.sip b/python/pykde/sip/kresources/factory.sip deleted file mode 100644 index 8a35b791..00000000 --- a/python/pykde/sip/kresources/factory.sip +++ /dev/null @@ -1,54 +0,0 @@ -// -// 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/python/pykde/sip/kresources/kresourcesmod.sip b/python/pykde/sip/kresources/kresourcesmod.sip deleted file mode 100644 index 6e9dd29d..00000000 --- a/python/pykde/sip/kresources/kresourcesmod.sip +++ /dev/null @@ -1,44 +0,0 @@ -// -// 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 diff --git a/python/pykde/sip/kresources/kresourcesmod.sip.in b/python/pykde/sip/kresources/kresourcesmod.sip.in deleted file mode 100644 index 9e6cfd57..00000000 --- a/python/pykde/sip/kresources/kresourcesmod.sip.in +++ /dev/null @@ -1,45 +0,0 @@ -// -// 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/python/pykde/sip/kresources/resource.sip b/python/pykde/sip/kresources/resource.sip deleted file mode 100644 index 3c044b74..00000000 --- a/python/pykde/sip/kresources/resource.sip +++ /dev/null @@ -1,84 +0,0 @@ -// -// 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/python/pykde/sip/kresources/selectdialog.sip b/python/pykde/sip/kresources/selectdialog.sip deleted file mode 100644 index 867f588f..00000000 --- a/python/pykde/sip/kresources/selectdialog.sip +++ /dev/null @@ -1,133 +0,0 @@ -// -// 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 -#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 *)sipForceConvertTo_KRES_Resource (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; -%End - - diff --git a/python/pykde/sip/kspell/ksconfig.sip b/python/pykde/sip/kspell/ksconfig.sip deleted file mode 100644 index b660ea74..00000000 --- a/python/pykde/sip/kspell/ksconfig.sip +++ /dev/null @@ -1,210 +0,0 @@ -// -// 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 - - -%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/python/pykde/sip/kspell/kspell-kde320.diff b/python/pykde/sip/kspell/kspell-kde320.diff deleted file mode 100644 index 303f31f5..00000000 --- a/python/pykde/sip/kspell/kspell-kde320.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include ksyntaxhighlighter.sip diff --git a/python/pykde/sip/kspell/kspell-kde321.diff b/python/pykde/sip/kspell/kspell-kde321.diff deleted file mode 100644 index 303f31f5..00000000 --- a/python/pykde/sip/kspell/kspell-kde321.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include ksyntaxhighlighter.sip diff --git a/python/pykde/sip/kspell/kspell-kde322.diff b/python/pykde/sip/kspell/kspell-kde322.diff deleted file mode 100644 index 303f31f5..00000000 --- a/python/pykde/sip/kspell/kspell-kde322.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include ksyntaxhighlighter.sip diff --git a/python/pykde/sip/kspell/kspell-kde323.diff b/python/pykde/sip/kspell/kspell-kde323.diff deleted file mode 100644 index 5fa0372a..00000000 --- a/python/pykde/sip/kspell/kspell-kde323.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include ksyntaxhighlighter.sip diff --git a/python/pykde/sip/kspell/kspell-kde330.diff b/python/pykde/sip/kspell/kspell-kde330.diff deleted file mode 100644 index 5fa0372a..00000000 --- a/python/pykde/sip/kspell/kspell-kde330.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include ksyntaxhighlighter.sip diff --git a/python/pykde/sip/kspell/kspell-kde331.diff b/python/pykde/sip/kspell/kspell-kde331.diff deleted file mode 100644 index 5fa0372a..00000000 --- a/python/pykde/sip/kspell/kspell-kde331.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include ksyntaxhighlighter.sip diff --git a/python/pykde/sip/kspell/kspell-kde332.diff b/python/pykde/sip/kspell/kspell-kde332.diff deleted file mode 100644 index 5fa0372a..00000000 --- a/python/pykde/sip/kspell/kspell-kde332.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include ksyntaxhighlighter.sip diff --git a/python/pykde/sip/kspell/kspell-kde340.diff b/python/pykde/sip/kspell/kspell-kde340.diff deleted file mode 100644 index 5fa0372a..00000000 --- a/python/pykde/sip/kspell/kspell-kde340.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include ksyntaxhighlighter.sip diff --git a/python/pykde/sip/kspell/kspell-kde341.diff b/python/pykde/sip/kspell/kspell-kde341.diff deleted file mode 100644 index 5fa0372a..00000000 --- a/python/pykde/sip/kspell/kspell-kde341.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include ksyntaxhighlighter.sip diff --git a/python/pykde/sip/kspell/kspell-kde342.diff b/python/pykde/sip/kspell/kspell-kde342.diff deleted file mode 100644 index 5fa0372a..00000000 --- a/python/pykde/sip/kspell/kspell-kde342.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include ksyntaxhighlighter.sip diff --git a/python/pykde/sip/kspell/kspell-kde343.diff b/python/pykde/sip/kspell/kspell-kde343.diff deleted file mode 100644 index 5fa0372a..00000000 --- a/python/pykde/sip/kspell/kspell-kde343.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include ksyntaxhighlighter.sip diff --git a/python/pykde/sip/kspell/kspell-kde350.diff b/python/pykde/sip/kspell/kspell-kde350.diff deleted file mode 100644 index 5fa0372a..00000000 --- a/python/pykde/sip/kspell/kspell-kde350.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include ksyntaxhighlighter.sip diff --git a/python/pykde/sip/kspell/kspell-kde351.diff b/python/pykde/sip/kspell/kspell-kde351.diff deleted file mode 100644 index 1aa2b6c5..00000000 --- a/python/pykde/sip/kspell/kspell-kde351.diff +++ /dev/null @@ -1,3 +0,0 @@ -- %Include ksconfig.sip -- %Include kspell.sip -- %Include kspelldlg.sip diff --git a/python/pykde/sip/kspell/kspell-kde352.diff b/python/pykde/sip/kspell/kspell-kde352.diff deleted file mode 100644 index 5fa0372a..00000000 --- a/python/pykde/sip/kspell/kspell-kde352.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include ksyntaxhighlighter.sip diff --git a/python/pykde/sip/kspell/kspell-kde353.diff b/python/pykde/sip/kspell/kspell-kde353.diff deleted file mode 100644 index 5fa0372a..00000000 --- a/python/pykde/sip/kspell/kspell-kde353.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include ksyntaxhighlighter.sip diff --git a/python/pykde/sip/kspell/kspell.sip b/python/pykde/sip/kspell/kspell.sip deleted file mode 100644 index 8ecf4eab..00000000 --- a/python/pykde/sip/kspell/kspell.sip +++ /dev/null @@ -1,190 +0,0 @@ -// -// 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/python/pykde/sip/kspell/kspelldlg.sip b/python/pykde/sip/kspell/kspelldlg.sip deleted file mode 100644 index 6cc3530a..00000000 --- a/python/pykde/sip/kspell/kspelldlg.sip +++ /dev/null @@ -1,123 +0,0 @@ -// -// 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 - - -%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/python/pykde/sip/kspell/kspellmod.sip.in b/python/pykde/sip/kspell/kspellmod.sip.in deleted file mode 100644 index added3d7..00000000 --- a/python/pykde/sip/kspell/kspellmod.sip.in +++ /dev/null @@ -1,42 +0,0 @@ -// -// 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/python/pykde/sip/kspell/ksyntaxhighlighter.sip b/python/pykde/sip/kspell/ksyntaxhighlighter.sip deleted file mode 100644 index 55d5b8e2..00000000 --- a/python/pykde/sip/kspell/ksyntaxhighlighter.sip +++ /dev/null @@ -1,114 +0,0 @@ -// -// 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/python/pykde/sip/kspell2/backgroundchecker.sip b/python/pykde/sip/kspell2/backgroundchecker.sip deleted file mode 100644 index 8efd997c..00000000 --- a/python/pykde/sip/kspell2/backgroundchecker.sip +++ /dev/null @@ -1,68 +0,0 @@ -// -// 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/python/pykde/sip/kspell2/broker.sip b/python/pykde/sip/kspell2/broker.sip deleted file mode 100644 index 4f880e14..00000000 --- a/python/pykde/sip/kspell2/broker.sip +++ /dev/null @@ -1,62 +0,0 @@ -// -// 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/python/pykde/sip/kspell2/configdialog.sip b/python/pykde/sip/kspell2/configdialog.sip deleted file mode 100644 index 19ed07e5..00000000 --- a/python/pykde/sip/kspell2/configdialog.sip +++ /dev/null @@ -1,49 +0,0 @@ -// -// 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/python/pykde/sip/kspell2/configwidget.sip b/python/pykde/sip/kspell2/configwidget.sip deleted file mode 100644 index 402f63bf..00000000 --- a/python/pykde/sip/kspell2/configwidget.sip +++ /dev/null @@ -1,54 +0,0 @@ -// -// 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/python/pykde/sip/kspell2/defaultdictionary.sip b/python/pykde/sip/kspell2/defaultdictionary.sip deleted file mode 100644 index 4d70d8b8..00000000 --- a/python/pykde/sip/kspell2/defaultdictionary.sip +++ /dev/null @@ -1,60 +0,0 @@ -// -// 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/python/pykde/sip/kspell2/dialog.sip b/python/pykde/sip/kspell2/dialog.sip deleted file mode 100644 index 4444f811..00000000 --- a/python/pykde/sip/kspell2/dialog.sip +++ /dev/null @@ -1,61 +0,0 @@ -// -// 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/python/pykde/sip/kspell2/dictionary.sip b/python/pykde/sip/kspell2/dictionary.sip deleted file mode 100644 index 0f33b56f..00000000 --- a/python/pykde/sip/kspell2/dictionary.sip +++ /dev/null @@ -1,57 +0,0 @@ -// -// 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/python/pykde/sip/kspell2/filter.sip b/python/pykde/sip/kspell2/filter.sip deleted file mode 100644 index 863d3556..00000000 --- a/python/pykde/sip/kspell2/filter.sip +++ /dev/null @@ -1,87 +0,0 @@ -// -// 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/python/pykde/sip/kspell2/highlighter.sip b/python/pykde/sip/kspell2/highlighter.sip deleted file mode 100644 index 0e7ea2d0..00000000 --- a/python/pykde/sip/kspell2/highlighter.sip +++ /dev/null @@ -1,54 +0,0 @@ -// -// 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/python/pykde/sip/kspell2/kspell2mod.sip.in b/python/pykde/sip/kspell2/kspell2mod.sip.in deleted file mode 100644 index 4517fe73..00000000 --- a/python/pykde/sip/kspell2/kspell2mod.sip.in +++ /dev/null @@ -1,48 +0,0 @@ -// -// 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/python/pykde/sip/kspell2/settings.sip b/python/pykde/sip/kspell2/settings.sip deleted file mode 100644 index 6b4f0305..00000000 --- a/python/pykde/sip/kspell2/settings.sip +++ /dev/null @@ -1,63 +0,0 @@ -// -// 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/python/pykde/sip/kutils/kcmoduleinfo.sip b/python/pykde/sip/kutils/kcmoduleinfo.sip deleted file mode 100644 index 96f9f78f..00000000 --- a/python/pykde/sip/kutils/kcmoduleinfo.sip +++ /dev/null @@ -1,91 +0,0 @@ -// -// 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/python/pykde/sip/kutils/kcmoduleloader.sip b/python/pykde/sip/kutils/kcmoduleloader.sip deleted file mode 100644 index 4a9a247d..00000000 --- a/python/pykde/sip/kutils/kcmoduleloader.sip +++ /dev/null @@ -1,67 +0,0 @@ -// -// 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/python/pykde/sip/kutils/kcmoduleproxy.sip b/python/pykde/sip/kutils/kcmoduleproxy.sip deleted file mode 100644 index 7f6e5f26..00000000 --- a/python/pykde/sip/kutils/kcmoduleproxy.sip +++ /dev/null @@ -1,104 +0,0 @@ -// -// 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/python/pykde/sip/kutils/kcmultidialog.sip b/python/pykde/sip/kutils/kcmultidialog.sip deleted file mode 100644 index 2fa6e200..00000000 --- a/python/pykde/sip/kutils/kcmultidialog.sip +++ /dev/null @@ -1,86 +0,0 @@ -// -// 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/python/pykde/sip/kutils/kfind.sip b/python/pykde/sip/kutils/kfind.sip deleted file mode 100644 index 5e96d1f7..00000000 --- a/python/pykde/sip/kutils/kfind.sip +++ /dev/null @@ -1,83 +0,0 @@ -// -// 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/python/pykde/sip/kutils/kfinddialog.sip b/python/pykde/sip/kutils/kfinddialog.sip deleted file mode 100644 index fb3939fd..00000000 --- a/python/pykde/sip/kutils/kfinddialog.sip +++ /dev/null @@ -1,86 +0,0 @@ -// -// 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/python/pykde/sip/kutils/kmultitabbar.sip b/python/pykde/sip/kutils/kmultitabbar.sip deleted file mode 100644 index 08da4d89..00000000 --- a/python/pykde/sip/kutils/kmultitabbar.sip +++ /dev/null @@ -1,167 +0,0 @@ -// -// 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/python/pykde/sip/kutils/kplugininfo.sip b/python/pykde/sip/kutils/kplugininfo.sip deleted file mode 100644 index 0ac57a2d..00000000 --- a/python/pykde/sip/kutils/kplugininfo.sip +++ /dev/null @@ -1,149 +0,0 @@ -// -// 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 -#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 *)sipForceConvertTo_KPluginInfo (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; -%End - - diff --git a/python/pykde/sip/kutils/kpluginselector.sip b/python/pykde/sip/kutils/kpluginselector.sip deleted file mode 100644 index 72661369..00000000 --- a/python/pykde/sip/kutils/kpluginselector.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// 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/python/pykde/sip/kutils/kreplace.sip b/python/pykde/sip/kutils/kreplace.sip deleted file mode 100644 index c7976305..00000000 --- a/python/pykde/sip/kutils/kreplace.sip +++ /dev/null @@ -1,60 +0,0 @@ -// -// 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/python/pykde/sip/kutils/kreplacedialog.sip b/python/pykde/sip/kutils/kreplacedialog.sip deleted file mode 100644 index 84938a64..00000000 --- a/python/pykde/sip/kutils/kreplacedialog.sip +++ /dev/null @@ -1,59 +0,0 @@ -// -// 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/python/pykde/sip/kutils/kutils-kde340.diff b/python/pykde/sip/kutils/kutils-kde340.diff deleted file mode 100644 index d37bf3db..00000000 --- a/python/pykde/sip/kutils/kutils-kde340.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcmodulecontainer.sip diff --git a/python/pykde/sip/kutils/kutils-kde341.diff b/python/pykde/sip/kutils/kutils-kde341.diff deleted file mode 100644 index d37bf3db..00000000 --- a/python/pykde/sip/kutils/kutils-kde341.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcmodulecontainer.sip diff --git a/python/pykde/sip/kutils/kutilsmod.sip b/python/pykde/sip/kutils/kutilsmod.sip deleted file mode 100644 index 65b13648..00000000 --- a/python/pykde/sip/kutils/kutilsmod.sip +++ /dev/null @@ -1,49 +0,0 @@ -// -// 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 diff --git a/python/pykde/sip/kutils/kutilsmod.sip.in b/python/pykde/sip/kutils/kutilsmod.sip.in deleted file mode 100644 index 2f9f7100..00000000 --- a/python/pykde/sip/kutils/kutilsmod.sip.in +++ /dev/null @@ -1,50 +0,0 @@ -// -// 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/python/pykde/svnmerge.py b/python/pykde/svnmerge.py deleted file mode 100644 index 7b90652b..00000000 --- a/python/pykde/svnmerge.py +++ /dev/null @@ -1,47 +0,0 @@ -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/python/pykde/svnmergedocs.py b/python/pykde/svnmergedocs.py deleted file mode 100644 index e77a908d..00000000 --- a/python/pykde/svnmergedocs.py +++ /dev/null @@ -1,30 +0,0 @@ -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/python/pykde/templates/annotated/basicapp.py b/python/pykde/templates/annotated/basicapp.py deleted file mode 100644 index 04300b48..00000000 --- a/python/pykde/templates/annotated/basicapp.py +++ /dev/null @@ -1,113 +0,0 @@ -""" -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/python/pykde/templates/annotated/menuapp1.py b/python/pykde/templates/annotated/menuapp1.py deleted file mode 100644 index 8a634bf1..00000000 --- a/python/pykde/templates/annotated/menuapp1.py +++ /dev/null @@ -1,270 +0,0 @@ -""" -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/python/pykde/templates/annotated/menuapp2.py b/python/pykde/templates/annotated/menuapp2.py deleted file mode 100644 index 07523b86..00000000 --- a/python/pykde/templates/annotated/menuapp2.py +++ /dev/null @@ -1,244 +0,0 @@ -""" -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/python/pykde/templates/annotated/menuapp3.py b/python/pykde/templates/annotated/menuapp3.py deleted file mode 100644 index 1935ce59..00000000 --- a/python/pykde/templates/annotated/menuapp3.py +++ /dev/null @@ -1,209 +0,0 @@ -""" -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/python/pykde/templates/annotated/menuapp3ui.rc b/python/pykde/templates/annotated/menuapp3ui.rc deleted file mode 100644 index 60120e21..00000000 --- a/python/pykde/templates/annotated/menuapp3ui.rc +++ /dev/null @@ -1,24 +0,0 @@ - - - - &File - - - - - - - - &Edit - - - - - - - - - - - - \ No newline at end of file diff --git a/python/pykde/templates/annotated/minimal.py b/python/pykde/templates/annotated/minimal.py deleted file mode 100644 index a3e87c8a..00000000 --- a/python/pykde/templates/annotated/minimal.py +++ /dev/null @@ -1,75 +0,0 @@ -""" -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/python/pykde/templates/annotated/panelapplet.py b/python/pykde/templates/annotated/panelapplet.py deleted file mode 100644 index 009ee56b..00000000 --- a/python/pykde/templates/annotated/panelapplet.py +++ /dev/null @@ -1,64 +0,0 @@ -""" -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/python/pykde/templates/annotated/systray.py b/python/pykde/templates/annotated/systray.py deleted file mode 100644 index 41dc62a2..00000000 --- a/python/pykde/templates/annotated/systray.py +++ /dev/null @@ -1,82 +0,0 @@ -""" -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/python/pykde/templates/annotated/systray1.py b/python/pykde/templates/annotated/systray1.py deleted file mode 100644 index 99b7f03a..00000000 --- a/python/pykde/templates/annotated/systray1.py +++ /dev/null @@ -1,87 +0,0 @@ -""" -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/python/pykde/templates/basic/basicapp.py b/python/pykde/templates/basic/basicapp.py deleted file mode 100644 index 2146f637..00000000 --- a/python/pykde/templates/basic/basicapp.py +++ /dev/null @@ -1,58 +0,0 @@ -""" -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/python/pykde/templates/basic/menuapp1.py b/python/pykde/templates/basic/menuapp1.py deleted file mode 100644 index a482c2a2..00000000 --- a/python/pykde/templates/basic/menuapp1.py +++ /dev/null @@ -1,194 +0,0 @@ -""" -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/python/pykde/templates/basic/menuapp2.py b/python/pykde/templates/basic/menuapp2.py deleted file mode 100644 index 394eca80..00000000 --- a/python/pykde/templates/basic/menuapp2.py +++ /dev/null @@ -1,200 +0,0 @@ -""" -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/python/pykde/templates/basic/menuapp3.py b/python/pykde/templates/basic/menuapp3.py deleted file mode 100644 index e729d6d1..00000000 --- a/python/pykde/templates/basic/menuapp3.py +++ /dev/null @@ -1,162 +0,0 @@ -""" -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/python/pykde/templates/basic/menuapp3ui.rc b/python/pykde/templates/basic/menuapp3ui.rc deleted file mode 100644 index 60120e21..00000000 --- a/python/pykde/templates/basic/menuapp3ui.rc +++ /dev/null @@ -1,24 +0,0 @@ - - - - &File - - - - - - - - &Edit - - - - - - - - - - - - \ No newline at end of file diff --git a/python/pykde/templates/basic/minimal.py b/python/pykde/templates/basic/minimal.py deleted file mode 100644 index 72ff3bea..00000000 --- a/python/pykde/templates/basic/minimal.py +++ /dev/null @@ -1,48 +0,0 @@ -""" -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/python/pykde/templates/basic/panelapplet.py b/python/pykde/templates/basic/panelapplet.py deleted file mode 100644 index 4ac8016f..00000000 --- a/python/pykde/templates/basic/panelapplet.py +++ /dev/null @@ -1,49 +0,0 @@ -""" -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/python/pykde/templates/basic/systray.py b/python/pykde/templates/basic/systray.py deleted file mode 100644 index 1363dac7..00000000 --- a/python/pykde/templates/basic/systray.py +++ /dev/null @@ -1,61 +0,0 @@ -""" -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/python/pykde/templates/basic/systray1.py b/python/pykde/templates/basic/systray1.py deleted file mode 100644 index bd5da9d4..00000000 --- a/python/pykde/templates/basic/systray1.py +++ /dev/null @@ -1,67 +0,0 @@ -""" -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() - - diff --git a/python/pyqt/ChangeLog b/python/pyqt/ChangeLog deleted file mode 100644 index e9933799..00000000 --- a/python/pyqt/ChangeLog +++ /dev/null @@ -1,3223 +0,0 @@ -2007/04/25 12:25:19 phil -Released as v3.17.2. - - -2007/04/21 14:13:36 phil -Backed out the recent change to remove the /ReleaseGIL/ from -QApplication.postEvent() as it turns out it avoids a potential deadlock. - - -2007/04/10 16:13:51 phil -Released as v3.17.1. - - -2007/04/02 15:27:03 phil -Updated the NEWS file. -SIP v4.6 is now required. -The QLayoutItem sub-class code no longer handles QLayout and leaves it to the -QObject sub-class code to deal with. - - -2007/02/20 10:58:40 phil -Removed the unneeded /ReleaseGIL/ from QApplication::postEvent(). -Removed the GIL manipulation in QCustomEvent (in particular in the traverse -code). - - -2007/01/27 16:02:18 phil -Removed knowledge of the optional parts of the Qt support API so that it is no -longer necessary to update PyQt when new optional parts are added. - - -2007/01/27 15:37:47 phil -Updated the Qt support API for the latest SIP. - - -2007/01/21 16:29:15 phil -Implemented sipQtFindConnection() so that lambda slots can be handled by the -cyclic garbage collector. - - -2007/01/17 16:58:32 phil -Updated the copyright notices. - - -2006/11/30 20:58:48 phil -Fixed bug in QApplication ctor handwritten code that caused a crash if a -QApplication was created a second time with no arguments. - - -2006/11/04 22:08:33 phil -Released as v3.17. - - -2006/10/27 17:13:44 phil -Updated the news file. - - -2006/10/21 14:10:23 phil -Switched the internal build system to Qt v3.3.7. - - -2006/10/06 17:44:27 phil -Synched with the latest QScintilla1 API. - - -2006/09/09 17:59:52 phil -Added QextScintilla.setFont(). -The internal build system now uses -j2. - - -2006/09/02 13:35:03 phil -Removed the use of -c in the internal build systems invocation of configure.py -as it causes problems for GCC v4. - - -2006/08/17 9:36:39 phil -Added the missing QListView.setSelectionAnchor(). - - -2006/07/30 17:16:35 phil -Updated for the latest QScintilla v1 snapshot. - - -2006/07/19 23:30:28 phil -Some tweaks for Windows64 support based on patches from Gerard. - - -2006/07/16 12:38:36 phil -Adapted the handwritten code for Python v2.5. - - -2006/07/08 19:25:44 phil -Added QextScintilla.isCallTipActive(). - - -2006/07/03 19:40:22 phil -Added pyqt_config_args to pyqtconfig.py. -Fixed QTextEdit.setAutoFormatting(). - - -2006/07/02 14:28:05 phil -Added setWrapVisualFlags(), WrapMode::WrapCharacter, WrapVisualFlag to -QextScintilla. - - -2006/07/01 18:57:30 phil -Added cancelList(), firstVisibleLine(), isListActive(), showUserList(), -textHeight() and userListActivated() to QextScintilla. - - -2006/06/28 22:12:57 phil -QextScintilla.foldAll() can now optionally fold all child fold points. -Added autoCompleteFromAll() and setAutoCompletionStartCharacters() to -QextScintilla. -Added AcsAll as an auto-completion source. - - -2006/06/25 21:52:03 phil -Added defaultColor() and setDefaultColor() to QextScintillaLexer. -Added color() and setColor() to QextScintilla. -Renamed eraseColor() and setEraseColor() to paper() and setPaper() in -QextScintilla. - - -2006/06/25 16:21:32 phil -Added defaultPaper() and setDefaultPaper() to QextScintillaLexer. -Added eraseColor() and setEraseColor() to QextScintilla. - - -2006/06/22 19:29:38 phil -The mkfeatures helper is now always built without debugging. -configure.py now states that the -u flag on Windows needs a debug version of -Python. - - -2006/06/20 15:57:55 phil -Latest QScintilla updates. - - -2006/06/19 21:00:47 phil -Synced with the latest QScintilla snapshot - including the significantly -changed Ruby lexer. - - -2006/06/19 15:55:42 phil -Solaris warnings fixes from Ulli. - - -2006/06/18 23:51:34 phil -Sync with the latest QScintilla changes: highlighted identifiers and decorators -in the Python lexer. - - -2006/06/18 16:40:31 phil -Updated for the latest QScintilla snapshot. - - -2006/05/17 8:39:39 phil -Removed some inaccessable methods from QCString. - - -2006/05/11 19:04:27 phil -Another fix for Qt v3.1 in qnamespace.sip. - - -2006/04/28 20:47:46 phil -Replaced long long with PY_LONG_LONG for MSVC 6. - - -2006/04/07 23:29:54 phil -Tidy ups to the internal build system. - - -2006/04/06 12:26:09 phil -Fixed Qt::MacintoshVersion for Qt v3.0.x and v3.1.x. - - -2006/04/05 12:11:43 phil -Removed all functions that were hidden by overloads with the same Python -signature (ie. both of them). - - -2006/03/30 8:09:58 phil -Added QStringList::operator+=(const QString &). - - -2006/03/29 11:38:21 phil -Added the missing QImage.bitBlt() function. - - -2006/03/24 23:54:13 phil -Released as v3.16. - - -2006/03/23 21:34:09 phil -Added a missing /Transfer/ from QGLWidget(). - - -2006/03/20 21:00:58 phil -Removed the "Filter" functions from the documentation. - - -2006/03/20 20:59:23 phil -Removed the "Filter" versions of the QFileDialog static methods as they aren't -necessary after all (just not obvious how to use them properly). - - -2006/03/14 22:45:09 phil -pyuic now specifies the Latin1 encoding when the -embed flag is used. - - -2006/03/13 11:55:09 phil -Build system changes so that PyQt builds on MacOS properly. - - -2006/03/11 19:16:56 phil -Removed some leftovers from when PyQt3 and 4 shared a single config.py. PyQt3 -no longer searches PATH for the Qt bin directory. - - -2006/03/11 15:15:15 phil -Fixed build problem with Qt v1.x. - - -2006/03/10 22:37:30 phil -Updates for Qt v3.3.6. - - -2006/03/04 16:06:40 phil -Documentation updates. -Applied the same transfer rule to QPopupMenu.exec() as is applied to -QDialog.exec(). -Added getOpenFileNameFilter(), getSaveFileNameFilter() and -getOpenFileNamesFilter() to QFileDialog that return a tuple of the selected -files and the current filter. - - -2006/02/26 13:56:28 phil -Added support for signed char to the Qt API. - - -2006/02/21 15:22:08 phil -Changed the signal/slot handling so that unsigned int and unsigned short are -implemented as long objects rather than integer objects. - - -2006/02/19 16:43:48 phil -Updates to the internal Qt API. - - -2006/02/18 21:05:56 phil -Added new stubs in the Qt support API (not used by PyQt3). - - -2006/02/14 19:16:05 phil -The destroyed() signal can now be received by a Python slot. - - -2006/02/13 20:02:22 phil -Fixed a typo in configure.py. - - -2006/02/13 0:24:55 phil -Updated the handwritten code to use the current SIP API. - - -2006/02/12 1:14:11 phil -Removed all calls sipForceConvertTo*(). -Removed all uses of newly deprecated calls. - - -2006/01/26 16:40:38 phil -Changed the signal/slot support required by the latest SIP changes. - - -2006/01/16 18:58:26 phil -Removed PYQT_BUILD. - - -2006/01/10 19:13:07 phil -Fixed a typo in the last change. - - -2006/01/10 18:20:02 phil -Fixed the sipForceConvertToTransfer_*() calls. - - -2005/12/30 14:30:08 phil -More changes to handwritten code that should be handling sipSelfWasArg. - - -2005/12/28 19:35:10 phil -Updated all handwritten convertor code for the latest SIP changes. - - -2005/12/24 17:02:31 phil -Changes required by the introduction of sipSelfWasArg in the SIP snapshot. - - -2005/12/22 16:22:48 phil -Really fixed the QApplication argc bug this time. - - -2005/12/19 17:43:42 phil -Changes to the build system for the latest SIP snapshot. - - -2005/12/18 11:00:06 phil -Stripped the Qt4 specific stuff from configure.py. - - -2005/12/18 10:06:25 phil -Updated the internal build system not to include the .svn directory in -packages. - - -2005/12/17 19:43:36 phil -Changes to the internal build system for the CVS to SVN transfer. - - -2005/12/07 00:54:04 phil -Added a missing #include from qstring.sip in PyQt3. - - -2005/12/04 18:41:31 phil -Fixed the handling of horizontal and vertical stretch in QSizePolicy. - - -2005/11/29 13:06:37 phil -Fixed a long standing bug with QApplication ctors that only showed itself with -Qt4. - - -2005/11/24 17:45:09 phil -Added the missing /ReleaseGIL/ to QThread.exit(). - - -2005/11/24 17:22:31 phil -Changes required for the modified mapped type template syntax. - - -2005/11/20 18:41:02 phil -The HTML documentation is now maintained manually rather than being -auto-generated. - - -2005/11/17 18:24:48 phil -Fixed bug in pyuic related to QKeySequence. - - -2005/11/12 10:29:13 phil -Added the missing ctor to QApplication. - - -2005/11/10 21:10:46 phil -Removed the /TransferThis/ annotations from the QTableItem (and sub-classes) -ctors. The Qt documentation is wrong. - - -2005/11/09 18:00:47 phil -Fixed the GIL bug in qInstallMsgHandler(). - - -2005/11/01 22:08:32 phil -Implemented the PyQt3 changes for the new Qt support API. - - -2005/10/26 14:34:57 phil -Modified the QString buffer interface to be reentrant and to try and use the -default Python codec. - - -2005/10/23 16:02:47 phil -QObject.sender() now supports Python signals. - - -2005/10/22 22:38:54 phil -Implemented the buffer interface for QString. - - -2005/10/19 13:38:24 phil -Improved the fix to QClipboard.setData(). - - -2005/10/16 16:09:29 phil -Used mapped type templates in PyQt3 where possible. - - -2005/10/13 18:52:02 phil -Fixed the handling of QClipboard.setMimeType() and a related memory leak. - - -2005/10/12 21:11:15 phil -Fixed bug in configure.py when the Qt bin directory isn't on the path. -Fixed compilation problem with QAxBase handwritten code and MinGW. -Added the * and *= operators to QString. -Removed some QString methods that were passing or returning arrays. - - -2005/10/11 21:13:48 phil -Added /Numeric/ to the QString + operator. The improved behaviour (being able -to write s = "foo" + QString("bar")) should now work in both PyQt3 and 4. - - -2005/10/07 18:15:37 phil -Changed the PyQt3 QString behaviour with long and ulong to match PyQt4. - - -2005/09/22 20:18:39 phil -Updated the build system now that all Qt specific configuration data has been -removed from sipconfig. - - -2005/09/10 21:33:59 phil -Fixed bug in configure.py when reporting an incorrect SIP version. - - -2005/09/08 20:16:33 phil -Updated the universal slot support to fit with the latest SIP snapshot. -Changed the way universal slots are implemented so they get destroyed when the -corresponding transmitter gets destroyed. - - -2005/09/07 20:53:52 phil -Removed support for SIP v3 in configure.py. -Minor pyuic fix taken from uic v3.3.5. -Added the missing MacintoshVersion enum. -Added the -f flag to configure to use any existing features file (by default it -is recreated). - - -2005/09/06 20:33:43 phil -Removed support for SIP v3 from configure.py. -Added the new Qt support code taken out of SIP. - - -2005/08/30 17:31:05 phil -Released as v3.15. - - -2005/08/17 22:30:17 phil -Replaced all the (now deprecated) sipTransfer() calls in handwritten code. - - -2005/08/10 22:10:29 phil -Synced with the latest QScintilla. -Updated the documentation. - - -2005/07/26 11:08:23 phil -Synced with the current QScintilla. - - -2005/07/25 18:24:29 phil -Added the sipTransfer() to QDialog.exec_loop(). - - -2005/07/24 20:16:51 phil -Synced with the latest QScintilla. -Added the registerWeakActiveObject() and revokeActiveObject() utility -functions to QAxBase. - - -2005/07/10 09:46:49 phil -Added %ConvertSubClassCode to QLayoutItem. - - -2005/07/09 17:55:30 phil -Sync'ed with the latest QScintilla changes. - - -2005/07/06 18:20:26 phil -Fixed the bug in QObject's type conversion graph. -Added the QextScintillaLexerPOV class. -Fixed configure.py so that it properly enables support for the latest -QScintilla. - - -2005/07/05 21:04:26 phil -Added the extra flag to QextScintilla.findFirst(). - - -2005/07/04 19:17:38 phil -Synced with the latest version of QScintilla. - - -2005/07/03 16:58:21 phil -Added support for QAxBase now that SIP has better support for abstract -classes. - - -2005/06/30 15:38:41 phil -Reimplemented all the %ConvertToSubClassCode for QObjects so that it returns -the most specific type that it can, even if it doesn't recognise the exact -type. - - -2005/06/19 13:49:51 phil -Hopefully fixed QImage() for colours with unsigned 32 bit values. - - -2005/06/10 16:45:00 phil -Fixed the return value of QMenuData.insertSeparator(). - - -2005/05/20 17:25:45 phil -Fixed a problem where the readBlock() and readLine() methods of QIODevice were -wrongly expecting a tuple result from a Python reimplementation. - - -2005/05/04 18:41:49 phil -Fixed pyuic bug where a required QIconSet ctor wasn't being generated. - - -2005/04/17 09:04:01 phil -Documented the limitations with super. -Fixed the qdir.py example bugs tiggered by SIP doing some more rigourous -checks. - - -2005/04/15 13:31:55 phil -Added missing Py_DECREF() from QObject.queryList() %MethodCode. - - -2005/04/14 18:17:58 phil -Implemented the QString '+' operator. - - -2005/04/09 15:35:48 phil -When None is passed as a QString (or QByteArray or QCString) then it is now -converted to NULL rather than a null QString. - - -2005/04/04 15:59:27 phil -Fixed a problem with the internal build system caused by the new SIP garbage -collector directives. - - -2005/04/02 23:10:46 phil -Fixed the QCustomEvent %GCClear code. - - -2005/04/02 22:28:50 phil -Added the new %GCTraverseCode and %GCClearCode to QCustomEvent. -Now requires SIP v4.3. - - -2005/04/02 09:53:27 phil -Replaced the new /NoConvertor/ annotation with /Constrained/. - - -2005/03/25 20:18:32 phil -Accel and AccelOverride should now result in QKeyEvent instances rather than -QEvent instances. -Added missing private dtors. - - -2005/03/25 14:24:45 phil -Fixed bug in configure.py when reporting incorrect SIP versions. - - -2005/03/11 19:18:46 phil -Fixed qInstallMsgHandler() for SIP v3. - - -2005/03/10 18:55:52 phil -Fixed QPixmapCache.insert(). - - -2005/03/06 10:09:06 phil -Released as v3.14.1. - - -2005/02/26 11:22:18 phil -Fixed problem with relative path arguments to configure.py. - - -2005/02/25 17:46:51 phil -Added the missing /ReleaseGIL/ annotations from the static QFileDialog methods. -Fixed QObject.queryList() (for SIP v4 only). - - -2005/02/19 15:23:42 phil -Added the QextScintillaLexerLua class. -Released as 3.14. - - -2005/02/18 19:01:46 phil -Fixed the dirview.py example so that it drags local filenames properly and the -folderSelected() signal works the same way as the C++ version. -Added the qdir.py example from Hans-Peter Jansen. -Updated the QAxObject and QAxWidget documentation. -Added qInstallMsgHandler(). -Added the missing classes from the qtext subclass convertor code. - - -2005/02/13 10:47:50 phil -Updated the documentation on QFilePreview. -Fixed a bug in pyuic related to QDataBrowser.del(). - - -2005/02/11 22:54:02 phil -Updated the NEWS file and the documentation. - - -2005/02/11 17:19:19 phil -Fixed broken QObject.inherits() and QObject.isA() (for SIP v4 only). -Changes in version numbers for Qt v2.3.10. -Removed the "Extracting ..." message from pyuic as it isn't always true. - - -2005/02/06 14:39:57 phil -Release the GIL on calling QApplication.enter_loop(). - - -2005/01/29 10:15:48 phil -Synced pyuic with Qt v3.3.4. - - -2005/01/22 18:13:35 phil -PyQt now requires SIP v4.2 or later. - - -2005/01/22 11:54:13 phil -Fixed bug in pyuic where it wasn't importing QDataView when it should. - - -2005/01/21 17:29:52 phil -Added a missing /Transfer/ from QScrollView.setCornerWidget(). -Synced with the current QScintilla snapshot. - - -2005/01/17 13:04:46 phil -Fixed a bug in the internal build system. - - -2005/01/16 13:06:16 phil -Fixed bugs related to most implementations of readBlock() and readLine(). - - -2005/01/14 23:30:27 phil -Removed the out of date README.Linux file. - - -2005/01/14 17:36:52 phil -Backed out the changes to QListBox now that SIP (again) has strict enum -checking. -Fixed enum related bugs in the widgets.py example. -Updated the copyright notices. -Added support for Ulli's VendorID package. -Updated the documentation on application deployment. -Added support for debug builds to the internal build system. - - -2005/01/09 14:02:11 phil -Fixed QListBox so that setRowMode() and setColumnMode() work properly with the -newly relaxed enum type checking in SIP 4. - - -2004/12/29 18:54:44 phil -Added missing const to QDataTable.setDateFormat(). - - -2004/12/26 12:32:59 phil -Added support for the QextScintillaLexerRuby class. - - -2004/12/24 17:54:25 phil -Removed the -g flag from the configure.py help as the corresponding sip flag is -now deprecated. -Hopefully fixed conversions from Python unicode objects to QStrings where -Python uses longs to represent a character. -Allow for spaces in the path to the SIP binary. - - -2004/12/23 22:44:18 phil -Updated the documentation regarding application deployment. - - -2004/12/19 19:29:04 phil -Added the option to build static modules to the internal build system. - - -2004/12/10 19:03:18 phil -Fixed a pyuic bug triggered by the new enum handling in SIP v4.2. - - -2004/12/10 18:07:52 phil -Fixed debug builds on Windows. - - -2004/12/05 14:53:42 phil -Fixed pyuic bug (introduced in 3.13) that broke support for QAxWidget based -instances. - - -2004/12/03 19:00:06 phil -Added a missing /TransferThis/ to QSyntaxHighlighter. - - -2004/10/31 16:33:07 phil -Sync'd to the current QScintilla snapshot. - - -2004/10/17 19:27:08 phil -Minor change to the documentation. - - -2004/10/02 11:51:27 phil -A couple of bug fixes for the webbrowser.py example. - - -2004/10/01 23:09:30 phil -Changed the SIP tag of the educational version. -Added the webbrowser example to the distribution. -Minor fix for the webbrowser example. - - -2004/09/21 14:17:09 phil -Fixed a bug in pyuic2. -Released as v3.13. - - -2004/09/21 11:14:48 phil -Updated the NEWS file. - - -2004/09/15 12:40:09 phil -Added the QMetaObject and QMetaProperty classes. -Added the QObject.metaObject() method. - - -2004/09/12 11:41:49 phil -Added support for the QextScintillaLexerBash class. - - -2004/09/10 22:38:09 phil -Removed redundant implementations of QSqlRecord.field(). -Replaced whrandom with random in all examples. - - -2004/08/25 15:29:20 phil -Added explicit support for QScintilla to pyuic. - - -2004/08/22 15:51:05 phil -Added support for what will become QScintilla v1.4. - - -2004/08/20 11:07:56 phil -Brought the documentation up to date. -Added support for QUuid. - - -2004/08/19 10:32:31 phil -Pushed out support of QAxObject to SIP v4.2. -Added /ReleaseGIL/ to any QApplication and QThread method that might cause -events to be dispatched. - - -2004/08/15 23:34:28 phil -Updated pyuic from Qt 3.3.3. -pyuic now never uses the SLOT() macro in case the connection is to a method of -a Python custom widget. - - -2004/08/04 18:05:25 phil -Added the comparison operators between QChar and QChar and char. - - -2004/08/04 14:06:41 phil -Implemented all the QDataStream << and >> operators for classes. - - -2004/08/03 22:19:59 phil -Build system fix for when QWindowsXPStyle is a plugin. - - -2004/07/19 18:41:53 phil -Fixed a bug in the fontdisplayer.py example. - - -2004/07/08 08:40:54 phil -Minor internal changes. - - -2004/06/27 08:43:19 phil -Added a missing /TransferThis/ from one of the QPushButton ctors. - - -2004/05/26 22:15:40 phil -Added another missing /ReleaseGIL/ to QApplication. - - -2004/05/25 17:05:27 phil -Fixed bug in QArray for old versions of Qt. -Fixed QAssistantClient bug in configure.py for old versions of Qt. -Fixed QSocket bug for old versions of Qt. -Released as v3.12. - - -2004/05/25 13:55:07 phil -Added missing /ReleaseGIL/ to QThread. - - -2004/05/25 11:26:37 phil -Internal build system changes. - - -2004/05/18 18:33:03 phil -Added the webbrowser.py example (which will have to wait until SIP v4.1 before -it works). -Added missing /ReleaseGIL/ to QWaitCondition, QMutex and QMutexLocker. - - -2004/05/15 14:18:24 phil -Fixed bug that accidentally disabled the qtsql module for the free edition. -Disabled the qtaxcontainer module until SIP v4.1. - - -2004/05/09 11:19:26 phil -Minor pyuic3 changes to support QAxWidget. -Marked the qtaxcontainer classes as experimental. - - -2004/05/04 16:01:57 phil -qwindowdefs.sip for all platforms is now included in the commercial package. -Changed the SIP3 dependency to v3.10.2. -QValueList is now dependent on the Qt_ICONVIEW feature. -pyuic and pylupdate will now build on the Enterprise Edition even if the qtxml -module has been disabled. -Compiler error messages during configuration are suppressed if possible, but -can be seen with the new -w flag. -configure.py now explicitly checks QAssistantClient rather than assume it is -present in the Enterprise Edition. -The qtaxcontainer module now builds on Windows. - - -2004/05/02 00:38:16 phil -Sync with the latest QScintilla snapshot. - - -2004/05/01 17:10:57 phil -Fixed more minor build problems. -The commercial version now has identical code on all platforms. - - -2004/04/30 21:50:33 phil -Fixed an internal build problem. -Implemented QValueList as a mapped type. (Done in the previous -commit but I forgot to mention it.) - - -2004/04/25 22:09:09 phil -Added the qtaxcontainer module - doesn't work yet, but shouldn't break -anything. - - -2004/04/24 08:43:22 phil -Update the documentation to say that Qt v3.3.2 is supported. - - -2004/04/18 15:45:12 phil -Changed the build system to deal with the evaluation version of PyQt. - - -2004/04/13 18:24:04 phil -QAssistantClient is disabled for the Professional Edition because it requires -code from the Enterprise Edition (only seems to affect Windows though). - - -2004/04/12 14:49:33 phil -Added the QextScintillaLexerPerl class to the qtext module. - - -2004/04/04 17:01:11 phil -Minor fixes to the dirview.py example. -Sync'ed with the current QScintilla snapshot. - - -2004/03/30 18:22:25 phil -Fixed a bug where the destruction of QTab instances wasn't noticed. - - -2004/03/28 15:16:50 phil -Updated to the latest QScintilla snapshot. - - -2004/03/27 18:26:02 phil -Updated for the latest changes to QScintilla. - - -2004/03/21 21:09:25 phil -Changed the configure.py message when testing for plugins to be the right -"sense". -Updated the QScintilla support for v1.3. - - -2004/03/11 19:05:38 phil -Changed the SIP v3 dependency to v3.10.1. -Released as v3.11. - - -2004/03/11 01:22:12 phil -Minor changes to the internal build system. - - -2004/03/10 18:29:30 phil -Brought the documentation up to date. -Minor internal build system changes. -The build system now disables style classes built as plugins. -Changed the handwritten code to use the SIP generated feature #defines rather -than the unreliable (in the case of plugins) Qt ones. - - -2004/02/26 18:56:39 phil -Updated the documentation to say that PyQt has been tested against Qt v3.3.1. -Updated the internal build system to exploit distcc. -Fixed bug in the conversion from Python lists to QMemArrays. - - -2004/02/15 22:34:39 phil -Fixed the canvas.py example's handling of multiple views. - - -2004/02/11 19:24:10 phil -Fixed the old build system for Qt v3.3.0. - - -2004/02/07 17:38:52 phil -Fixed a couple of bugs in pyuic3 and added the spacer.ui form to verify it. - - -2004/02/02 22:27:48 phil -Updated pyuic from Qt v3.3.0. - - -2004/02/01 14:38:18 phil -Added the QLocale class from Qt v3.3.0. -Updated all existing classes for Qt v3.3.0. -Added the missing += operators for QString. -Added the missing QSocketDevice class. - - -2004/01/31 23:09:45 phil -Added the missing /Transfer/ from QMimeSourceFactory.setData() and -QMimeSourceFactory.setDefaultFactory(). -Added the missing /TransferBack/ from QMimeSourceFactory.takeDefaultFactory(). -Added the missing /Factory/ from createEditor() in QTableItem and sub-classes. -Added the missing /Factory/ in QTextCodec.makeDecoder(), -QTextCodec.makeEncoder() and QTextEdit.createPopupMenu(). -Added Qt v3.3.0 support to the build system. -PyQt now builds against Qt v3.3.0. - - -2004/01/29 19:19:36 phil -Minor change to the internal build system. -Added README.AIX from Ulli Berning. - - -2004/01/27 08:34:21 phil -Reverted the accidental change to QTextEdit.find(). -Fixed a couple of markup problems in the documentation. -Added the missing QHttp, QFtp and QLocalFs to the appropriate -%ConvertToSubClassCode. - - -2004/01/21 18:34:02 phil -Added some fixes for Qtopia v1.6 from Mickey Lauer. - - -2004/01/16 20:53:09 phil -Released as v3.10. - - -2004/01/15 20:04:11 phil -Changed configure.py to check that SIP was built with Qt support enabled as -early as possible. - - -2004/01/15 19:27:58 phil -Added a check for the SIP version number in configure.py. -Fixed pyuic3 not to use iostream and avoid warning messages with MSVC. - - -2004/01/04 18:52:29 phil -Minor updates to the build system. - - -2004/01/03 23:57:31 phil -Updated the copyright notices. -Changed pyuic3 to only #include zlib.h for Qt versions before 3.1.0. -Documented pyqtconfig. - - -2004/01/02 18:41:01 phil -Minor changes to the build system. -Repaired the completely broken pyqtconfig module. - - -2003/12/26 23:34:47 phil -Changes to the build system based on patches from Ulrich Berning. - - -2003/12/26 19:32:31 phil -Added the missing QFtp class. - - -2003/12/26 19:31:23 phil -Added the missing QHttp, QHttpHeader, QHttpRequestHeader, QHttpResponseHeader, -QLocalFs classes. - - -2003/12/21 17:28:16 phil -Documented sip.voidptr.asstring(). - - -2003/12/21 16:07:00 phil -Fixed a bug when automatically converting to a QKeySequence. - - -2003/12/06 20:21:54 phil -Fixed a bug in the old build system for Windows. -Brought the documentation up to date. -Released as v3.9. - - -2003/12/04 19:35:28 phil -Updated the README for the new build system. - - -2003/12/02 00:00:35 phil -Slight change to handwritten code forced by the change to sipParseResult(). - - -2003/11/23 17:04:10 phil -Removed qInstallPathSysconf() on Windows. - - -2003/11/22 20:54:01 phil -Windows related changes to the new build system. - - -2003/11/22 00:50:23 phil -Portability fixes for Qt v2 and Qtopia. - - -2003/11/21 23:06:14 phil -More changes to the new build system. Tested with SIP v4 and Qt Professional -on Linux and SIP v3 and Python v1.5.2 on Linux. - - -2003/11/21 07:32:01 phil -SCons is now completely removed from the new build system. PyQt will now build -with SIP v3 and SIP v4 on Linux. - - -2003/11/15 11:20:17 phil -More changes to the new build system. - - -2003/11/13 19:41:35 phil -More changes to the new build system. PyQt now builds against the Professional -Edition. - - -2003/11/13 13:12:47 phil -New build system changes. PyQt now builds correctly on Linux for SIP v3 and SIP -v4. - - -2003/11/12 22:22:50 phil -Added more of the new build system. -Fixed a bug in pyuic3 handling of encoded strings (thanks to Joerg Kaercher). -Added the QImageIO class. - - -2003/11/05 20:33:43 phil -Added QListViewItemIterator. -Added the QDockArea << and >> operators. -Started on the new build system. - - -2003/10/27 23:23:07 phil -Removed more handwritten code now that SIP fully supports pointers and -references to base types. -Fixed a GIL problem with the QCanvasItem sub-class conversion code. - - -2003/10/26 22:53:03 phil -Added the missing QSettings.readBoolEntry(). -Removed lots of non-virtual %MethodCode now that SIP automatically handles -returning multiple arguments. - - -2003/10/24 08:34:44 phil -Added /ReleaseGIL/ wherever looked sensible. - - -2003/10/23 18:27:30 phil -Used %Build rather than the deprecated %Makefile. -Used %ModuleHeaderCode and %TypeHeaderCode rather than the deprecated -%HeaderCode. -Used %ModuleCode and %TypeCode rather than the deprecated %C++Code. - - -2003/10/22 18:40:32 phil -Added %ConvertToSubClassCode for QTableItem and QCanvasItem. -Added the missing qtui module documentation. -Refactored the internal and external build systems so that the .sip files are -arranged in a hierarchy and are installed. -Added the -v flag to build.py to specify where the .sip are installed to. - - -2003/10/21 16:40:12 phil -Fix to build.py for the Mac. - - -2003/10/21 13:39:18 phil -Fixed Windows warning message from qmemarray.sip handwritten code. -Fixed internal build.py to generate Mac packages properly. - - -2003/10/20 18:50:07 phil -More MacOS/X related changes. -Compiler warnings are now enabled when building with SIP v4. -PyQt builds with no warnings with SIP v4. - - -2003/10/19 19:47:35 phil -Documentation updates. -Removed the tests for missing functions in early versions of Qt for MacOS/X. -Updates to the build system for MacOS/X. - - -2003/10/16 15:50:38 phil -Replaced the use of __cmp__ in QString because it doesn't work with SIP v4 if -the argument isn't of the same type - it's just the way new-style classes work. -Removed the QString.__cmp__() unit test as the implementation no longer uses -handwritten code. - - -2003/10/15 18:19:07 phil -Added the "-r" flag to build.py to build with tracing enabled. -Rewrote all the unit tests to work with PyQt generated with SIP v4. - - -2003/10/11 21:57:20 phil -Brought the documentation up to date. -Changed handwritten code for the changes to sipCallMethod(), sipParseResult() -and sipBadCatcherResult(). - - -2003/10/08 15:04:46 phil -Fixed the internal build system (again). - - -2003/10/07 19:33:13 phil -Fixed QIODevice handwritten code which looked very broken. -Checked all virtual abstract functions that need handwritten code. -Added /TransferBack/ for function return values where needed. -Added the missing qInstallPath(), qInstallPathDocs(), qInstallPathHeaders(), -qInstallPathLibs(), qInstallPathBins(), qInstallPathPlugins(), -qInstallPathData(), qInstallPathTranslations(), qInstallPathSysconf(). -Made sure all handwritten code uses functions that are part of the SIP v4 API. - - -2003/10/04 16:14:45 phil -Changed how sipClassName() is used now that it returns a new reference. - - -2003/10/04 11:16:21 phil -Migrated the remaining %MemberCode to %MethodCode. -Changed the QApplication dtor code slightly to keep the public SIP API simple. -(It means that disowning a top level widget now adds the extra reference, but -this shouldn't make a difference.) - - -2003/10/02 22:54:43 phil -Documented QLayoutIterator.next(). -Fixed problem with build system that was preventing snapshots being generated -after the addition of %MethodCode. -Fixed QSpinBox.mapTextToValue() to take zero parameters. -Converted most of %MemberCode to %MethodCode (ie. the easy ones). - - -2003/10/01 14:00:15 phil -Converted all ctor %MemberCode to %MethodCode. - - -2003/09/23 19:33:07 phil -Converted all Python special methods and operators from %MemberCode to -%MethodCode. -Fixed bug in build system that disabled thread support. - - -2003/09/19 15:30:09 phil -Changes to the build system for SIP v4's new build system. - - -2003/09/19 00:28:39 phil -Fixed converting Python wide Unicode strings to QString for Qt v2. (Actually -done with an earlier change but I forgot to mention it.) -Updated the documentation on application deployment to reflect the changes to -the build system. -The documentation is now a single HTML file with a TOC. -More changes to the build system. Tested with tmake and Windows. - - -2003/09/18 13:47:07 phil -More changes to the build system after initial testing. - - -2003/09/17 18:28:40 phil -Re-factored build.py to use the sipconfig module. Only tested on Linux with -Qt v3.2.1 Enterprise and Python v2.3. - - -2003/09/06 13:35:02 phil -QWMatrix fixes from Torsten Marek. -Added the undocumented "*" operators to QWMatrix. -Updated the educational version to v3.2.0. -Released as v3.8.1. - - -2003/08/24 18:43:40 phil -Updated the tutorials so that they have a consistent coding style and don't use -"import *". -Updated the documentation to say that Qt v3.2.1 is supported. - - -2003/08/17 12:25:57 phil -Fixed QPrinter.winPageSize() for Qt versions before v3. -Released as v3.8. - - -2003/08/17 10:02:11 phil -Fixed problem with QRect | and & operators. - - -2003/08/16 21:14:09 phil -Fixed the code generated by pyuic3 when the -x and -subimpl flags are both -given. -Brought the documentation up to date. - - -2003/08/13 17:50:14 phil -The == and != operators have been implemented for QBrush, QColor, QDomNode, -QFont, QImage, QKeySequence, QPalette, QPen and QRegExp. -The +, +=, -, -=, *, *=, /, /=, ==, != and __nonzero__() operators have been -implemented for QSize. -The ==, != and QString() operators have been implemented for QUrl. -The &, &=, |, |=, ==, !=, __contains__() and __nonzero__() operators have been -implemented for QRect. -The |, |=, +, +=, &, &=, -, -=, ^, ^=, ==, !=, __contains__() and __nonzero__() -operators have been implemented for QRegion. -The ==, != and *= operators have been added to QWMatrix. -The __len__(), __contains__(), == and != operators have been implemented for -QDir. -The comparison operators and __nonzero__() have been implemented for QDate, -QDateTime and QTime. -Added some consts to the QString operators. -Added the QDate, QDateTime, QDir, QRect, QRegion, QSize and QTime unit tests. -Added the runtests.py master unit test runner. - - -2003/08/12 20:34:29 phil -Fixed memory leak in QStringList * operator. -Added the QPoint operators (thanks to Torsten Marek). -Added the QPoint unit test. - - -2003/08/12 15:31:24 phil -Fixed deprecated use of iostream.h in pyuic3. -Updated the QScintilla support. - - -2003/08/11 18:52:45 phil -Fixed version problem with QToolBox. - - -2003/08/01 09:42:10 phil -Added the missing Qt.ButtonState.MetaButton. -Added support for the [], in, len and comparison operators to QString (thanks -to Torsten Marek). -Added the test_QString.py test script. - - -2003/07/25 23:38:36 phil -Refined the pyuic3 changes - because KWrite is crap. - - -2003/07/25 23:36:11 phil -Added the menus.ui test form. -Some pyuic3 format changes from Detlev. - - -2003/07/25 12:13:44 phil -Updated pyuic for Qt v3.2.0. - - -2003/07/24 17:20:59 phil -Added QSplashScreen, QSqlSelectCursor and QToolBox for Qt v3.2.0. -Fix to build.py error message. - - -2003/07/24 10:52:38 phil -Minor license handling changes. -Fixed memory leak in QStringList[] when using slices. -Added the -k flag to build.py to create static modules. -Updated README.MacOSX from Willard Myers. -Updated all existing classes for Qt v3.2.0. - - -2003/07/05 10:31:55 phil -Fixed problem with include directories when using tmake. -Released as v3.7. - - -2003/07/05 09:59:37 phil -Provisional release of v3.7. - - -2003/07/03 16:17:55 phil -pyuic3 now says what it is extracting on stderr rather than stdout. - - -2003/07/01 14:18:37 phil -Brought the documentation up to date. -Added README.MacOSX (thanks to Bill Myers). -Added lots of new examples from Jorge Arroyo. - - -2003/06/30 09:23:25 phil -Changed all handwritten code to use the new 'L' format character where -appropriate. -Implemented __setitem__(), __delitem__(), __add__(), __iadd__(), __mul__(), -__imul__(), __eq__() and __ne__() for QStringList. -Added the internal QStringList unit tests. - - -2003/06/22 11:26:32 phil -%DtorCode has been renamed %VirtualCode. - - -2003/06/21 11:37:58 phil -Fixed the internal build process to deal with the new %DtorCode. - - -2003/06/19 23:53:49 phil -More changes to QCustomEvent which shouldn't now leak memory under any -circumstances. - - -2003/06/19 16:31:57 phil -QEvent.data() now returns a Python object without increasing it's reference -count. -The QEvent dtor is now virtual so that the Python wrapper object gets garbage -collected when Qt deletes the event when it's passed to -QApplication.postEvent(). - - -2003/06/10 14:51:23 phil -(Hopefully) fixed pyuic3 compile bug under Windows. -Added the progressbar.py example from Jorge Arroyo. - - -2003/06/08 12:25:08 phil -Lots of build tidy ups from Hans-Peter Jansen. - - -2003/06/06 12:59:26 phil -pylupdate now recognises the __tr() and __trUtf8() methods generated by pyuic. -Added some missing /Transfer/ flags from QMenuData. -Updated the menu.py example so that it matches the latest Qt version. - - -2003/05/31 12:19:22 phil -Changed the build system to generate .in files which are then patched so that -the patched files stay around to aid debugging. -Removed unneeded directories from INCLUDEPATH in .pro files. - - -2003/05/30 17:52:06 phil -Don't generate the internal __tr() and __trUtf8() methods if the user passes -their own function name. - - -2003/05/30 17:47:57 phil -Added the listbox.py and listboxcombo.py examples from Jorge Arroyo. -build.py improvement in detecting executable programs. -Changed pyuic3 to generate calls to qApp.translate() rather than self.tr(). -Documented the issues related to translations. - - -2003/05/23 22:03:05 phil -Fixed some bugs and inefficiencies in the canvas.py example so that it no -longer segfaults on exit when a sprite has been created. -Added bits(), scanLine(), jumpTable() and colorTable() to QImage. - - -2003/05/22 21:50:05 phil -Added the QWindowsXPStyle class. (Thanks to Ulrich Berning.) - - -2003/05/20 10:36:10 phil -Added QextScintilla.modificationAttempted(). - - -2003/05/18 20:59:53 phil -Added QextScintillaBase.SCN_MODIFYATTEMPTRO. -Fixed pyuic3's broken handling of the -x flag. -Fixed pyuic3's broken generation of embedded images. -Fixed QImage ctor to use an internal colour table instead of an external one -that was garbage collected too soon. - - -2003/05/13 09:50:54 phil -Added the QSignalMapper class (thanks to Gordon Tyler). - - -2003/05/12 10:00:59 phil -Added toShort(), toUShort(), toInt(), toUInt(), toLong(), toULong(), toFloat() -and toDouble() to QCString and QString. - - -2003/05/11 10:26:44 phil -Added the QextScintillaLexerHTML class. - - -2003/05/07 21:07:04 phil -Changed the handling of version numbers so that we assume the latest SIP tags -if we find a QScintilla snapshot. - - -2003/05/07 16:53:05 phil -Updated the documentation to explicitly mention the problems of using lambda -expressions as slots. -Added the QextScintillaLexerSQL class. -Changed build.py to support QScintilla version control. - - -2003/05/04 09:57:19 phil -Fixed silly typo in build.py. - - -2003/05/03 14:50:03 phil -Removed some dead code from build.py. -The qt module was ignoring the release/debug option and the debug version of -the Python library wasn't being searched for. -Added the unittest tests for pyuic. -Fixed the last pyuic3 bugs related to embedded images. -Added the -test flag to pyuic3 to support fully automated unittest tests. - - -2003/04/26 15:24:45 phil -Released as v3.6. - - -2003/04/26 14:36:12 phil -Fixed tmake related breakages introduced with SIP v4 support in .pro files. - - -2003/04/26 13:58:00 phil -Fixed bug in concatanating source files. - - -2003/04/23 14:53:00 phil -Changed to the C++ style operators where possible. - - -2003/04/22 16:05:10 phil -Adjusted handwritten code for Python slots so that it will be compatible with -SIP v3 and v4. -QStringList.__getitem__ will now handle extended slices. - - -2003/04/18 22:17:26 phil -Tracked the latest QScintilla changes. - - -2003/04/16 11:42:45 phil -Fixed build.py for when SIP v4 is used. -Python v2.3 is now required if SIP v4 is being used. -Changed QCustomEvent.data() to deal with the changed support of SIP_PYOBJECT. - - -2003/04/13 15:42:08 phil -Temporarily made some handrwritten code dependent on SIP v3 while debugging -SIP v4. -Fix to pylupdate from Detlev. -Fix to pyuic3 related to pixmaps. - - -2003/04/07 11:52:33 phil -QCommonStyle is now always included (to fit with Qt v3), but it should still be -configured properly for the Zaurus. - - -2003/04/04 14:24:00 phil -Fixed typo in qpixmap.sip where some Qt v3 methods had been added to the Qt v2 -definition. -Fixed some pyuic3 problems with embedded and external images. - - -2003/04/04 10:32:45 phil -SIP v4 related fixes to %VirtualCode. -Fixed some sipParseArgs() format bugs in qtxml handwritten code. -Added missing /TransferThis/ from QTableItem (and derived classes) ctors. -Added other missing transfer flags from some QTable methods. - - -2003/04/01 20:44:55 phil -Added support for the educational version. -Don't delete the .lib and .exp files as part of the installation on Windows. -Added the -j, -r and -t flags to build.py based on patches from Hans-Peter -Jansen. -Changed all sipNames to the new style. - - -2003/03/31 23:39:02 phil -Made sure Python.h is included before stdio.h for LFS support under Solaris. -Removed all uses of %ExportedHeaderCode for compatibility with SIP v4. -Implemented the %VirtualCode that is to be used with SIP v4. -Fixed some bugs in existing %VirtualCode. -Removed QTextEdit.getFormat() and QTextEdit.getParagraphFormat() as they are -undocumented and marked as "don't use". - - -2003/03/26 22:21:58 phil -Slightly changed the implementation of QObject.sender() to maintain -compatibility with SIP v4. -The build process no longer checks for sipQt.h as it isn't in SIP v4. -Added a missing #include in qnetwork.sip that only showed up with SIP v4. - - -2003/03/25 17:52:22 phil -Work around the problem that qmake doesn't like targets called "qt". (For -SIP v4.) - - -2003/03/21 00:20:19 phil -Reverted the "fix" for libqassistantclient on HP-UX, and wait to see if anybody -complains. -pyuic now includes the PyQt version number in the generated output. -Fixed QPixmap handling bug in pyuic. - - -2003/03/16 16:24:24 phil -Tracked latest QScintilla changes. -Fixed an internal build problem with the documentation. - - -2003/03/15 23:42:55 phil -Tracked the latest QScintilla changes. -Brought the documentation up to date. - - -2003/03/14 19:49:44 phil -Added the missing %ConvertToSubClass code for the qtext module. - - -2003/03/13 12:59:44 phil -Tracked the latest QScintilla changes. - - -2003/03/09 18:37:13 phil -Tracked the latest QScintilla changes. - - -2003/03/06 10:35:32 phil -Tracked latest QScintilla changes. -Fixes for the mdi.py example from Ken Godee. -Further improvements to the build system's parsing of the Python version -number. -Fixes to the Qt class and pyuic to deal with the use of the internal -WState_Polished. - - -2003/03/03 18:03:41 phil -Tracked the latest QScintilla changes. - - -2003/02/27 16:21:33 phil -Updates for Qt v3.2.1. -Build system changes for alpha and beta versions of Python. - - -2003/02/26 23:40:22 phil -Tracked latest QScintilla changes. - - -2003/02/26 19:31:26 phil -Tracked latest QScintilla changes. -Fixed QListBox.eventFilter(). -Added the qtui module. -Added /Factory/ to everywhere it seems to be needed. -Fixed Python 1.5.2 problems in the build system. -Updated the menu.py example for Qt3 (thanks to Selim Tuvi). -Fixed a bug in pyuic3 related to pixmaps in QListViewItems. -Fixed a bug in the canvas.py example. -PYQT_VERSION is now the version encoded as a hexadecimal value. -Added PYQT_VERSION_STR as the ASCII version (unless it is a snapshot). - - -2003/01/25 15:39:58 phil -Fixed bug in QPointArray.putPoints(). -The sub-class convertors are now declared as static as SIP now puts them in the -main module code. -Changed the way that the QAssistantClient library is linked in to work around -problems linking static and shared libraries under HP-UX. -Fixed QSpinBox.eventFilter(). - - -2003/01/20 10:24:19 phil -Applied Lars Heete's patch for QString for when Python is built with wide -Unicode support. -Tracked the latest QScintilla changes. - - -2003/01/14 09:55:52 phil -Added the version number to the %Module directives for SIP v4. - - -2003/01/11 15:15:49 phil -pyuic3 will look in the directory containing the .ui file for any .ui.h file. - - -2003/01/06 09:35:29 phil -pyuic3 now properly extracts embedded slot code that takes arguments. -Improved the layout of the pyuic3 generated code slightly. - - -2003/01/04 19:45:03 phil -Updated the copyright notices for 2003. -SLOT(), SIGNAL(), PYSIGNAL(), QT_TR_NOOP() and QT_TRANSLATE_NOOP() are now -implemented as wrapped functions. -PYQT_BUILD is now a string. - - -2003/01/02 16:00:47 phil -Fixed a bug in the build process for sip v3. - - -2002/12/28 17:34:17 phil -Changed the build system to cope with the changes that will be needed for -SIP v4. - - -2002/12/25 10:48:22 phil -Added the checklists.py and drawlines.py examples from Oleksandr Yakovlyev. -Added support for PEP 263 in the code generated by pyuic3. -Tracked latest QScintilla changes. -Implemented the QTextStream << QMainWindow and QTextStream >> QMainWindow -operators. - - -2002/12/20 18:51:37 phil -Added the biff.py example from Oleksandr Yakovlyev. - - -2002/12/20 18:46:10 phil -QString.startsWith() was introduced in Qt v2.2.0 and not Qt v3.0.0. -Added the updated buttongroups.py example from Oleksandr Yakovlyev. - - -2002/12/17 15:33:12 phil -pyuic3 will now extract Python code (tagged with "Python:") from the comments -in a .ui file and copy it to the generated output. - - -2002/12/17 13:20:37 phil -Tracked the latest QScintilla changes, including the new QextScintillaPrinter -class. - - -2002/12/13 18:27:26 phil -Change the build system to ensure that SIP .h files in the location specified -by the -s flag are used in preference to any others in the standard Python -location. -Added the Qtopia QCopEnvelope class. - - -2002/12/11 13:50:58 phil -Ensure that generated Makefiles have a later timestamp than the project file. -Released as v3.5. - - -2002/12/10 23:12:00 phil -Build change where FORCE wasn't being handled properly now that it is version -dependent. -Brought the NEWS file up to date. - - -2002/12/10 14:21:09 phil -Changes related to Qt v3.1.1. -Made Qtopia v1.5.0 the baseline version. -Added the AppLnk, AppLnkSet, Config, DateFormat, DocLnk, DocLnkSet, -FileManager, FileSelector, FileSelectorItem, FontDatabase, Global, MenuButton, -QDawg, QList, QList and Resource Qtopia classes. -Added QArray for Qt 1.x and Qt 2.x. - - -2002/12/09 10:40:54 phil -Minor changes for building under Qt/E. - - -2002/12/08 17:56:27 phil -Worked around the Qt Windows bug in QSemaphore += and -= so that the -semaphore.py example now works properly with affected versions of Qt. - - -2002/12/05 17:28:24 phil -Added the script to create the test database for the SQL examples for -PostgreSQL (thanks to Kenneth Godee). -pyuic3 and pylupdate3 changes so that they compile against the Qt Professional -Edition. -Brought the documentation up to date. -Build system change for Qt v3.0.x and FORCE in Makefiles. - - -2002/11/29 10:59:32 phil -Fixed bugs in pyuic3 related to menus and embedded images. -Implemented QMenuItem.setText(), even though it is an internal class, because -it is used in code generated by pyuic3. - - -2002/11/26 12:50:45 phil -eric is now no longer part of the distribution. -Tracked the latest QScintilla changes. -Removed the automatic test for -fno-exceptions and added the -f flag to the -build system so that it can be explicitly set. -Fixed a pyuic3 indentation bug. - - -2002/11/22 22:43:29 phil -Tracked the latest QScintilla changes. - - -2002/11/22 10:15:46 phil -Fixed a couple of bugs in pyuic3's handling of embedded images. - - -2002/11/21 18:57:34 phil -Tracked the latest QScintilla changes. - - -2002/11/18 19:36:53 phil -The missing Windows QEventLoop methods should be added to Qt v3.1.1. -Fixed generation of QString::null in pyuic3. -Tracked latest QScintilla changes. - - -2002/11/14 22:44:42 phil -Fixed problems compiling against Qt v3.0.x introduced with the support for Qt -v3.1.0. - - -2002/11/14 22:32:14 phil -Minor build changes for Windows. -Removed the QEventLoop methods that seem to be missing under Windows. -QGLColormap was actually introduced in Qt v3.0 rather than Qt v3.1. - - -2002/11/13 20:23:43 phil -Tracked the latest QScintilla changes. - - -2002/11/11 11:59:24 phil -Added the missing QDockWindow.drawFrame() and QGLWidget.reparent() methods. -The build system will now recognise Qt v3.1.0. -Added the QAssistantClient, QEventLoop, QGLColormap, QIconFactory, -QIMComposeEvent, QMutexLocker and QSyntaxHighlighter Qt 3.1.0 classes. -QListView.sort() is now virtual for Qt3. -Fixed a bug in the widgets.py example for both Qt2 and Qt3. -Updated pyuic from Qt 3.1.0. -Added the qCompress and qUncompress Qt 3.1.0 functions. - - -2002/11/06 23:56:57 phil -Fixed QWidgetStack.addWidget(). - - -2002/11/05 15:08:21 phil -Addition of new licenses to the internal build system. - - -2002/11/03 20:15:36 phil -Tracked the latest version of QScintilla, including updating to Scintilla -v1.49. - - -2002/10/25 19:00:47 phil -Updated the canvas.py example. -Tracked the latest QScintilla changes. - - -2002/10/24 08:55:46 phil -Tracked the latest QScintilla changes. - - -2002/10/22 21:28:20 phil -Tracked the latest QScintilla changes. - - -2002/10/21 21:25:52 phil -Tracked the latest QScintilla changes. - - -2002/10/20 22:28:46 phil -Tracked the latest changes to QScintilla. -Added the missing QMainWindow.lineUpDockWindows(). - - -2002/10/19 18:43:13 phil -Tracked the latest changes to QScintilla. - - -2002/10/18 17:30:24 phil -More build system changes to fix directory names containing spaces. -Added the QextScintillaLexerCPP, QextScintillaLexerCSharp, -QextScintillaLexerIDL, QextScintillaLexerJava and QextScintillaLexerJavaScript -classes. -Added support for Qt v3.0.6. - - -2002/10/12 23:45:52 phil -Tracked the latest QScintilla changes. -QStringList.__getitem__() now handles slices and negative indices properly. - - -2002/10/11 14:11:53 phil -Fixed the build system where the Python directory path contains spaces. -Another go at fixing the internal build system so that it generates .sip files -for the GPL version that support both X11 and Qt/E. -Updated the QScintilla bindings. - - -2002/10/06 21:21:05 phil -Fixed a silly internal build system bug preventing the qwindowdefs_qws.sip from -being included in the GPL version. - - -2002/10/06 16:04:31 phil -Tracked the latest changes to QextScintilla including the addition of -QextScintillaLexer and QextScintillaLexerPython. - - -2002/10/05 15:03:01 phil -Fixed the internal build system to make sure Qt/Embedded support isn't stripped -out of the GPL version. - - -2002/10/05 13:36:58 phil -Changed the internal build system so that internal development versions are -marked as such. -The user build system now handles conflicting licenses. -pyuic and pylupdate should now build using the professional edition of Qt3. -Added support for margins and markers to QextScintilla. - - -2002/10/03 10:42:28 phil -Synchronised to the latest QScintilla snapshot. - - -2002/10/01 17:38:18 phil -Fixed the i18n example script. -Changed the qtext module build for QScintilla under Windows. - - -2002/09/30 15:32:53 phil -Added the QextScintillaBase.SendScintilla() overload. - - -2002/09/28 08:57:26 phil -Further separated out the Windows .sip files. -Added QextScintillaBase.Colourise(). -Fixed the problem with QTextEdit.find(). - - -2002/09/22 00:39:05 phil -Added eric's missing ViewManager.py file to CVS. - - -2002/09/22 00:37:14 phil -Fixed the internal build system to copy eric's pixmaps directory properly. - - -2002/09/21 17:58:08 phil -Updated eric to v2.1.4 (plus a later patch). -The internal build system now strips down the .sip files for the non-commercial -version. - - -2002/09/18 08:36:18 phil -Added the qtext module containing support for QScintilla. - - -2002/09/13 07:20:57 phil -Fixed QFontDatabase.families() for Qt3. - - -2002/09/10 12:55:34 phil -Minor documentation changes. -Released as v3.4. - - -2002/09/08 21:38:49 phil -Added the missing lib/LICENSE.nc.short. - - -2002/09/08 21:37:30 phil -Added the wtypes.h file to the definitions of MSG and POINT. - - -2002/09/08 12:20:10 phil -The user now has to explicitly accept any non-GPL license. - - -2002/09/07 20:50:13 phil -Added QApplication.winEventFilter(), QWidget.winEvent(), MSG and POINT under -Windows. - - -2002/09/06 17:48:11 phil -Added the new licenses and changed the internal build process to support them. -Updated the NEWS file. - - -2002/09/02 12:05:21 phil -Added a comment to the Signal/Slot documentation about slot reference counts. -Added the mdi.py example from Sadi Kose. -Added the progress.py example from Hans-Peter Jansen. -More license related hooks. - - -2002/08/27 19:09:22 phil -Added the canvas example from Sadi Kose. -Split qwindowdefs.sip into generic and platform specific variants. -Changed the internal build system to support different platforms. -Added a delay to the build system before running make to avoid potential -timestamp problems. - - -2002/08/17 00:48:22 phil -Added Detlev's i18n example. -Added the latest version of eric from Detlev. -Added Fredrik Juhlin's patch to the build system to support debug builds. - - -2002/08/12 14:06:56 phil -Added helpviewer as a standalone application. - - -2002/08/11 20:41:33 phil -Added QT_TR_NOOP() and QT_TRANSLATE_NOOP(). -Added the pylupdate program from Detlev. - - -2002/08/10 20:01:47 phil -Fixed problems with QObject.tr() and QObject.trUtf8(). -Brought the NEWS file up to date. - - -2002/08/06 19:45:26 phil -Build system fixes for Python 1.5.2. - - -2002/08/05 18:02:08 phil -More eric changes from Detelev. - - -2002/07/29 20:54:56 phil -Another eric update from Detlev, including the help browser. - - -2002/07/29 14:16:11 phil -Added QTextEdit.WrapPolicy.AtWhiteSpace as it isn't clear if this is deprecated -or not. (The header file says one thing, the documentation says the opposite.) - - -2002/07/26 13:54:48 phil -Fix a problem with the build system if OpenGL wasn't installed. - - -2002/07/22 21:40:15 phil -Added @BL_INCLUDEPATH@ to the project files for pyuic2 and pyuic3. -Eric's .py files are now compiled by the build system. - - -2002/07/21 23:14:03 phil -Added Detlev's latest patches for eric, including the new qtunittest. Updated -the documentation and build system accordingly. - - -2002/07/20 18:30:07 phil -Added "opengl" to the qtgl project file template. -Changed the build system so that it uses "opengl" when necessary. - - -2002/07/12 13:04:44 phil -Fixed a problem detecting the Qt version in the build system. -Released as 3.3.2. - - -2002/07/12 10:20:20 phil -More internal build system changes. - - -2002/07/11 23:09:40 phil -Internal build system changes. - - -2002/07/11 12:07:40 phil -Added missing /TransferThis/ to all relevant QListBoxText and QListBoxPixmap -ctors. - - -2002/07/09 22:07:10 phil -Added support for Qt 3.0.5. -Released as 3.3.1. - - -2002/07/07 19:20:54 phil -More eric patches from Detlev. -Windows fixes for the build system. -Released as 3.3. - - -2002/07/06 13:35:41 phil -More eric patches from Detlev. -Updated SQL examples from Hans-Peter. -Fixed a bug in pyuic3 when extracting Python slot code when the slot had an -argument. - - -2002/07/05 21:56:20 phil -Backed out the change in the order of attempts to convert Python objects to -QStrings so it is now Unicode objects before string objects. - - -2002/07/05 17:59:16 phil -Fixed a few indentation issues with the dirview examples. -Fixed the same bug in every mapped type based on the QValueList template. - - -2002/07/05 08:54:46 phil -More eric patches from Detlev. -QSqlRecordInfo is now implemented as a Python list of QSqlFieldInfo instances. -The build system now ignores qmake if present when building for Qt 1.x and 2.x. - - -2002/07/04 10:08:24 phil -Still another attempt at a portable features generator. - - -2002/07/04 10:02:04 phil -Another attempt to make the C++ program that generates the feature flags more -portable. - - -2002/07/03 17:43:43 phil -Build system changes for Windows. -Released as 3.3rc3. - - -2002/07/02 22:13:50 phil -Fix a Python warning in build.py. - - -2002/07/02 18:34:32 phil -Changes to the build system for the qtpe module. - - -2002/07/02 14:55:45 phil -More eric patches from Detlev. -Added the missing QString.compare() and QString.localeAwareCompare() overloads. -Changed the build system in line with the way SIP now handles features. - - -2002/06/30 16:24:16 phil -Minor changes to build system messages. -Removed support for the -r flag in the build system as tmake handles -fno-rtti. -Added the -e flag to the build system to explicitly specify the location of the -SIP header files (usually used when cross compiling). -More eric patches from Detlev. -Fixed QDataBrowser.setSqlCursor(). - - -2002/06/29 18:57:01 phil -The build system now determines the Qt version by parsing qglobal.h rather than -running a program (which is no good when cross compiling). -The sipQtFeatures.h file is only generated by the build system is it doesn't -already exist (again to help cross compiling). -Updated the SQL examples. -Fixed an SQL related bug in pyuic3. -Added %MemberCode to QDataTable.setSqlCursor() to transfer ownership of the -cursor if the autoDelete flag is set. - - -2002/06/29 13:09:51 phil -The build system now installs eric for Qt3. -More eric patches from Detlev. - - -2002/06/28 22:45:22 phil -More build.py fixes. -Changed the build system so that project files are restored to their original -contents. -Added the -c flag to the build system to concatenate a module's C++ files prior -to compilation. Compiling PyQt on my 750MHz PIII now takes 10 minutes. (Thanks -to Jim Bublitz and Ricardo Cardenes.) - - -2002/06/28 12:45:25 phil -Added the missing qtpemod.sip. -Added the missing /TransferThis/ to the obsolete QToolBar ctor. -Added the missing %MemberCode for QStyle.getButtonShift(), -QStyle.scrollBarMetrics() and Qstyle.tabbarMetrics(). -More eric patches from Detlev Offenbach. -Added Hans-Peter Jansen's SQL examples. -Fixed a bug in the build system where the path to tmake was explicitly -specified. -Added the -r flag to the build system to explicitly enable -fno-rtti. -Released as 3.3rc2. - - -2002/06/23 19:44:58 phil -Added support for the evaluation version of Qt to the build system. -Applied more eric patches from Detlev Offenbach. -SQL related fixes for pyuic for Qt3. - - -2002/06/22 14:29:05 phil -Applied a couple of eric patches from Detlev Offenbach. -Released as 3.3rc1. - - -2002/06/22 00:53:57 phil -The documentation is now up to date. -Added notes about the limitations on custom editor widgets to the -QSqlPropertyMap documentation. -The default installation directory for pyuic under UNIX/Linux is now -/usr/local/bin rather than where the Python executable is installed. -Fixed a bug with the build system under Windows. -Fixed a problem with QVariant where a numeric value would be recognised as a -QKeySequence. -Added the -i flag to build.py to allow the directory containing the Qt header -files to be explicitly specified. - - -2002/06/20 21:33:34 phil -Fixed bug in QDataTable that stopped in working properly. - - -2002/06/20 18:52:31 phil -Added the qmag.py example script from Hans-Peter Jansen. -Added Christian Bird's notes about his pyuic patch. -Changes to the build system to support Qt/Embedded. -Changes to the build system to handle the lack of site-packages under Windows -before Python v2.2. - - -2002/06/19 17:43:26 phil -Minor changes to eric so that it seems to work under Qt3. - - -2002/06/19 17:29:06 phil -Applied Christian Bird's patch to pyuic for Qt3 to extract slot code written in -Python. - - -2002/06/19 17:14:00 phil -Added the missing qtsqlmod.sip. - - -2002/06/19 07:56:07 phil -Added the missing /Transfer/ from QCanvasPixmapArray.setImage(), -QDataTable.installEditorFactory(), QDataTable.installPropertyMap() and -QSqlForm.installPropertyMap(). -Added Hans-Peter Jansen's bigtable.py, lineedits.py, smalltable.py and -tablestatistics.py example scripts. -Added the missing qxmlmod.sip. - - -2002/06/16 23:15:17 phil -Minor build system changes as a result of moving SIP to its new build system. - - -2002/06/16 15:17:01 phil -Changes to the new build system so that it works under Windows. -Removed all vestiges of the old build system. - - -2002/06/14 16:35:41 phil -The new build process now works with Python v1.5.x. - - -2002/06/14 08:46:36 phil -Changes needed to the build system to support tmake. -The compiled Python scripts will now be installed properly if qmake is used. - - -2002/06/13 18:05:24 phil -More minor build changes related to process for generating automatic snapshots. - - -2002/06/13 17:48:28 phil -Minor build changes. - - -2002/06/13 16:16:19 phil -Added the missing QFontMetrics.boundingRect() variant and QFontMetrics.size(). -Removed the incorrect /TransferBack/ from QTabBar.removeTab(). -The new build system has been tested on Python v2.2/qmake/Linux. - - -2002/06/04 23:33:33 phil -Remove the last of the BlackAdder related files. -Fixed the .spec file. -More updates related to the new build system. - - -2002/06/04 23:26:00 phil -Lots of tidying up of redundant files for the new build system. -Set the release number to v3.2.4 to align with the last official release. - - -2002/06/04 23:04:40 phil -Initial import of PyQt to the Riverbank Computing repository. - - -2002/06/01 11:08:36 phil -Correction to signature of QDir.rename(). -Added README.SunOS. -QValueList is now fully implemented as a mapping to a Python list of -QPixmap instances. -Added the missing QDoubleValidator.setBottom(), QDoubleValidator.setDecimals(), -QDoubleValidator.setTop, QIntValidator.setBottom() and QIntValidator.setTop(). - - -2002/05/21 14:40:56 phil -Added the missing /Transfer/ to QClipboard.setData(). -Fixed a pyuic3 bug that generates an extra ')' when using the -subimpl flag. - - -2002/05/17 19:04:33 phil -Minor documentation changes. -Released as v3.2.4. - - -2002/05/16 15:28:17 phil -Removed MacOS X support from the build process - until SIP v4. - - -2002/05/15 17:11:34 phil -Modules are now created as simple .so files, ie. without any release number. -The obsolete QMainWindow.setToolBarsMovable() was replaced with -QMainWindow.setDockWindowsMovable(). - - -2002/05/15 11:31:23 phil -Fixed a bug in QInputDialog.getText() for Qt3. - - -2002/05/11 17:38:20 phil -Documentation changes for the latest release. -Released as v3.2.2. - - -2002/05/09 00:19:11 phil -Fixed QPrinter ctor for Qt3. - - -2002/05/07 21:17:32 phil -Added information about "--without-x" to the MacOS installation notes. -Put the -module flag back in for MacOS. -Fixed a bug in pyuic3 where QPixmaps needed to be explicitly converted to -QIconSets. - - -2002/05/05 13:42:46 phil -Added a version that supports the MacOS evaluation version to the list of -"common" source packages. -Released as v3.2.1. - - -2002/05/03 22:35:24 phil -Added INSTALL.MacX. -Removed -module from LDFLAGS as it seemed to make things worse on MacOS. -Released as v3.2. - - -2002/05/01 22:49:37 phil -Updated the documentation regarding support for void *. - - -2002/04/30 07:52:35 phil -configure will now search fro Qt v3.0.4. -Changes required for Qt v3.0.4. -Another minor bug fix related to X11 support and Qt/E. - - -2002/04/29 18:10:04 phil -Added README.Linux describing the broken Qt packages in Mandrake and Debian. - - -2002/04/29 10:17:47 phil -configure doesn't search for X11 for Qt/E. -Added the QPEMenuBar and QPEToolBar classes. - - -2002/04/27 14:19:22 phil -Removed the bug description at the top of the semaphore.py example now that it -is fixed. -Changed %ConvertToSubClassCode for QObject to conform to the latest SIP. -Replaced calls to sipMapCppToSelf() with sipMapCppToSelfSubClass() where -appropriate. - - -2002/04/22 22:56:31 phil -Changed the Windows installation instructions to put things in site-packages. -Fixed the missing QT_THREAD_SUPPORT when building sip_helper on Windows. -Added -module to all LDFLAGS. - - -2002/04/21 19:08:25 phil -QCustomEvent now expects a PyObject * as its data. - - -2002/04/20 22:43:13 phil -Convert instances of the internal class QTableHeader to QHeader. -Fixed a bug in pyuic for Qt3 relating to the format of slot signatures. - - -2002/04/20 16:02:00 phil -Added missing /Transfer/ to QTable.setCellWidget() and QTable.setItem(). - - -2002/04/18 23:17:07 phil -Disabled QFont.dirty(), QClipboard.ownsClipboard(), QClipboard.ownsSelection() -and qAppName() for MacOS. - - -2002/04/18 12:10:42 phil -Updated the NEWS file regarding MacOS X support. -qt.py now defines PYQT_VERSION as the PyQt release as a string. -configure no longer fails if X11 couldn't be found (for MacOS X). - - -2002/04/17 19:10:15 phil -Added support for MacOS X (untested). - - -2002/04/17 09:00:35 phil -Added the missing /TransferThis/ options from all QCanvasItem ctors. -Fixed QCanvasItem.setCanvas() to handle acquiring and losing a parent canvas. - - -2002/04/16 14:17:44 phil -Removed all the /ReleaseLock/ options. -Added Py_BEGIN_ALLOW_THREADS, Py_END_ALLOW_THREADS, SIP_BLOCK_THREADS and -SIP_UNBLOCK_THREADS to all handwritten code. -Thread support is only enabled if it is also enabled in Python. -Added /CreatesThread/ and /NewThread/ to QThread. - - -2002/04/14 18:07:56 phil -Reinstated PyQtDisownTopLevelWidgets() because it solves the problem where we -can't guarantee that the order in which qApp and the top level widgets will be -destroyed. -Changed -MT to -MD for Windows (thanks to Paul Felix). - - -2002/04/06 17:38:53 phil -Added the %ConvertToSubClassCode for QObject and all its sub-classes. -Added the missing QToolTip.setEnabled() and QToolTip.enabled() methods. -Fixed the build process so that the naming of the Qtopia package is more -consistent with other packages. - - -2002/03/30 00:50:10 phil -Make sure the ChangeLog is distributed and that autom4te.cache isn't. -Merged the different versions of QEvent.Type. -Fixed a bug in QStringList.__getitem__(). - - -2002/03/22 10:52:29 phil -Released as v3.1. -Slight change to the build process so make sure that Windows Makefiles always -use the very latest Qt library. - - -2002/03/22 10:40:21 phil -configure will now use qt-mt in preference to qt if it finds both. -Removed build.py from the distribution until it is finished. -Added /Transfer/ to QThread.postEvent(). -Added /ReleaseLock/ to QThread.postEvent(), which might not be required but -shouldn't do any harm. - - -2002/03/20 15:58:33 phil -configure now handles Qt v3.0.3. -Integration of uic changes in Qt v3.0.3. -Applied Rene Hogendoorn's latest patch for slot signatures for pyuic3. - - -2002/03/19 00:19:32 phil -Removed the rebuild-src and rebuild-doc targets as they are no longer -maintained. -Documentation changes prior to the release of v3.1. - - -2002/03/17 17:37:38 phil -Removed the import of GLUT from the gears.py example. - - -2002/03/12 19:31:13 phil -Added the missing build instructions for the qtgl module in INSTALL.win32. -Upgraded to autoconf-2.53 and automake-1.6. -Fixed a couple of pyuic3 bugs related to SQL forms (thanks to Rene Hogendoom). - - -2002/03/09 18:15:48 phil -Various build changes for Windows. -Fixed a bug in QDomDocument.setContent(). -Fixed the qtxml module so that it doesn't get a DLL load failure on Windows. - - -2002/03/04 17:18:31 phil -A couple of changes to eric to reflect the new module structure. -Fixed QThread for Qt v2. -Fixed QTable.setNumRows() in pyuic for Qt v3. - - -2002/02/25 16:26:19 phil -Some enum definitions have been rationalised now that SIP supports individual -values having different versions. - - -2002/02/24 14:59:43 phil -Went through everything adding /ReleaseLock/ to methods that might block. - - -2002/02/24 01:36:06 phil -configure now searches for Qt v3.0.2. -Added QLineEdit.setPasswordChar() and QLineEdit.passwordChar() for Qt v3.0.2 -but left them commented out at they are marked as incompatible add ons. -Updated pyuic3 from the changes in Qt v3.0.2. -Added thread support, ie. QApplication.lock(), QApplication.unlock(), -QApplication.locked(), QApplication.tryLock() and the QMutex, QSemaphore, -QThread and QWaitCondition classes. -Re-did all of the special methods following the SIP changes. - - -2002/02/15 14:45:33 phil -Added the missing QPixmap.grabWidget(). - - -2002/02/14 14:18:35 phil -Fixed bug in pyuic fro Qt v3 related to "black" and "white". - - -2002/02/08 15:51:02 phil -Updated the documentation for the 3.1 pre-releases. -The tr() methods now honour QT_NO_TRANSLATION. - - -2002/02/08 11:54:11 phil -More work on the new build system. -Fixed a bug in eric for PyQt v3. -Fixed a couple of QTable related bugs in pyuic for Qt v3. -Fixed a QToolBar related bug in pyuic for Qt v3. -Fixed bugs with QSqlCursor. - - -2002/01/28 13:42:24 phil -Fixed bug relating to escaping double quotes in pyuic for Qt v2.x. - - -2002/01/28 11:09:08 phil -Removed the Zaurus README. -Changes to configure now that the sip library is a Python module. -Added the start of an alternative build system driven by Python and using qmake -or tmake. - - -2002/01/09 11:47:32 phil -Put version control into the qtpe module and changed the build system so that -it uses a version compatible with both Qtopia and the Zaurus v1.02 ROMs. -Updated README.Zaurus. -Removed the qtpe module from the documentation until SIP is changed to be -tolerant of missing version information. - - -2002/01/08 20:17:11 phil -Removed PyQtDisownTopLevelWidgets() from the QApplication and QPEApplication -dtors because the Qt widget mapper doesn't delete the widgets in the map. - - -2002/01/05 13:16:45 phil -Added the warning about using flash devices as swap on the Zaurus. -Added the missing QActionGroup.add() and QActionGroup.addSeparator() methods. -Implemented enough additional features for the Large configuration of Qt/E. - - -2002/01/04 23:32:42 phil -Added the dragdrop example from Issac Trotts. - - -2002/01/04 15:41:11 phil -Added the Zaurus information. -Minor updates to READMEs etc. - - -2002/01/03 00:41:26 phil -The build script now copes when tmake and/or sgmltools is missing. -Added support to the build system for QPE. -Added the qtpe module. -Added the QPEApplication class (not yet working). -Changed the build system so that there is only one instance of the helper code -and it is more a part of the build system rather than being so closely tied in -which SIP. -configure now allows the directory where the Python modules are to be installed -to be specified. - - -2001/12/27 12:28:07 phil -Fixed all Qt3 writeBlock() methods. -Changes required by the latest SIP. -Support for Qt/Embedded on the Sharp Zaurus. -Removed the QDragResponseEvent internal class. -Added the missing QImageTextKeyLang class. -Added the missing QImage.dotsPerMeterX(), QImage.dotsPerMeterY(), -QImage.setDotsPerMeterX(), QImage.setDotsPerMeterY(), QImage.offset(), -QImage.setOffset(), QImage.textList(), QImage.textLanguages(), -QImage.textKeys(), QImage.text() and QImage.setText() methods. -Added the QValueList mapped type. - - -2001/12/09 11:38:47 phil -configure now looks for Qt v3.0.1. -The build system now handles Qt v3.0.1. -.sip file changes needed by Qt v3.0.1. -Updated pyuic3 from Qt v3.0.1. - - -2001/12/06 11:03:29 phil -Fixed more pyuic3 bugs. -Fixed the ownership bug in all QCheckListItem ctors. - - -2001/12/04 10:40:56 phil -Fixed bugs in QSocket.readLine() and QSocket.readBlock(). - - -2001/12/01 18:37:31 phil -Fixed QWidget.reparent(). -Removed the QDateTimeEditBase internal class. -Bug fixes for pyuic3. -configure now allows the location of zlib to be specified. -Used AC_HELP_STRING throughout acinclude.m4. - - -2001/11/25 18:27:27 phil -Minor fixes for pyuic3. - - -2001/11/17 14:48:19 phil -Added the missing qInitNetworkProtocols() function to the qtnetwork module. -Added the missing QRect.contains() variant. -Changed QByteArray, QCString and QString %ConvertToTypeCode to convert None -objects to empty instances. -Changed QFileInfoList, QKeySequence, QList, QMemArray, -QObjectList, QPair, QPtrList, -QPtrList, QStrList, QValueList, QValueList and -QWidgetList %ConvertToTypeCode to handle None objects. -Fixes to the .spec file. -Fixed ownership issues with QWidget.reparent(). - - -2001/11/11 19:01:27 phil -configure will search for Qt v2.3.2. -Fixed bugs in pyuic for Qt3 (thanks to Andreas Gerstlauer). -Fixed bug in Windows detection (thanks to Andreas Gerstlauer). -Fixed the Qt3 QSizePolicy ctor. - - -2001/10/28 10:33:03 phil -Generated with the latest SIP. - - -2001/10/26 23:33:45 phil -Fixed the ChangeLog. - - -2001/10/26 23:32:23 phil -Changed the way Python special methods are defined to conform to the latest -SIP. -Added __unicode__ to QString for Python v2.2. -Fixed a couple of bugs in pyuic for Qt3. -Changed QString.__str__() to do the "right thing". - - -2001/10/21 13:51:26 phil -Fixed the new QImage ctor. -Fixed the long standing problem converting a QString to Python using unicode(). -Fixed bugs with QFile.readBlock() and QFile.readLine(). - - -2001/10/19 23:34:04 phil -Applied Alan Eldridge's patch for the .spec file. -Made the second parameter to QObject.tr() and QObject.trUtf8() optional. -Added the missing QImage ctor. -Fixed pyuic for Qt3. - - -2001/10/13 11:20:53 phil -Fixed problem with QMenuData.insertItem() when the QKeySequence argument was -omitted. -Ported the remaining examples. - - -2001/10/12 22:46:59 phil -Minor fixes to get the SQL module to build. -Created a separate examples directory for Qt3. -Changes required for the final release of Qt v3.0.0. - - -2001/10/12 10:19:27 phil -Added the qtsql module. -Added the QDataBrowser, QDataTable, QDataView, QEditorFactory, QGridView, -QLibrary, QObjectCleanupHandler, QProcess, QSql, QSqlCursor, QSqlDatabase, -QSqlDriver, QSqlEditorFactory, QSqlError, QSqlField, QSqlFieldInfo, QSqlForm, -QSqlIndex, QSqlPropertyMap, QSqlQuery, QSqlRecord, QSqlRecordInfo, QSqlResult, -QStyleFactory and QWindowsMime Qt3 classes. -Implemented QPtrList. -Renamed QLineEdit.del() to QLineEdit.delChar(). -Renamed QMultiLineEdit.deleteChar() to QMultiLineEdit.delChar(). -Fixed QLineEdit super class for Qt3. - - -2001/10/07 18:47:03 phil -Updated the .spec file with the new modules. -Fixed a bug in the build process. - - -2001/10/06 18:20:00 phil -Fixed QLayoutIterator.next(). -configure now handles multi-threaded Qt. -Moved Canvas module classes to the new qtcanvas module. -Moved Network module classes to the new qtnetwork module. -Moved Table module classes to the new qttable module. -Moved XML module classes to the new qtxml module. -Added the QSound class. - - -2001/10/04 21:33:48 phil -Added the Qt3 classes QDateEdit, QDateTimeEdit, QTimeEdit, QErrorMessage, -QPixmapCache and QSettings. -Added the Qt2 class QDns. -Added QCustomMenuEvent, QIMEvent and QTabletEvent to the list of new Qt3 -classes in the documentation. -Restructure the top-level SIP files so that the documentation is completely -separate. - - -2001/09/30 10:48:01 phil -Implemented QPair. -Bug fixing of revised hand-written code. -Changes to get pyuic to compile against Qt3. - - -2001/09/28 23:13:01 phil -Upgraded to Qt v3.0.0Beta6. -Changes required to handwritten code by the new sipParseArgs(). -Added the missing QObject.connect() variant. -Renamed QDate.isValidDate() to QDate.isValid(). -Renamed QTime.isValidTime() to QTime.isValid(). -Renamed QFile.fileExists() to QFile.exists(). -Renamed QFile.removeFile() to QFile.remove(). - - -2001/09/23 20:04:21 phil -Re-added QInterlaceStyle. -Changes required by Qt v3.0.0 Beta5. -Implemented QMenuItem as an opaque class. -Added the missing QSGIStyle class. -Added the missing QMenuData.findItem(), QMotifPlusStyle.drawMenuBarItem(), -QMotifPlusStyle.drawPopupMenuItem(), QMotifStyle.drawPopupMenuItem(), -QMotifStyle.extraPopupMenuItemWidth(), QMotifStyle.popupMenuItemHeight(), -QPlatinumStyle.drawPopupMenuItem(), QPlatinumStyle.extraPopupMenuItemWidth(), -QPlatinumStyle.popupMenuItemHeight(), QPopupMenu.drawItem(), -QPopupMenu.itemHeight(), QStyle.drawPopupMenuItem(), QStyle.drawMenuBarItem(), -QStyle.extraPopupMenuItemWidth(), QStyle.popupMenuItemHeight(), -QWindowsStyle.drawMenuBarItem(), QWindowsStyle.extraPopupMenuItemWidth(), -QWindowsStyle.popupMenuItemHeight(). -Added the QStyleOption Qt3 class. -Classes converted to Qt3: QGL et al, QCDEStyle, QCommonStyle, QMotifPlusStyle, -QMotifStyle, QPlatinumStyle, QStyle, QWindowsStyle. - - -2001/09/21 17:12:07 phil -The following classes were fully converted to Qt3: QFile, QFileDialog, -QFileInfo, QFontDatabase, QFontDialog, QIconView, QIconViewItem, QInputDialog, -QNetworkProtocol, QPaintDeviceMetrics, QPrintDialog, QPrinter, QProgressBar, -QProgressDialog, QRadioButton, QSemiModal, QServerSocket, QSimpleRichText, -QSizeGrip, QSocket, QSpinBox, QTabDialog, QTextBrowser, QTextStream, QUrl, -QUrlOperator, QWhatsThis, QWidgetStack, QWizard, QWorkspace. -Added the missing QFileIconProvider, QFontDialog, QTextBrowser and QWidgetStack -private copy ctors. -Added the missing QFileDialog.done(), QIconView.dropped(), -QIconViewItem.dropped(), QNetworkProtocol.newChildren(), -QPrintDialog.addButton(), QProgressDialog.forceShow(), -QUrlOperator.newChildren() and QUrlOperator.startNextCopy() methods. -Added the missing QIconDrag and QIconDragItem classes. -Implemented QList, QPtrList, -QValueList and QValueList. -Added the missing TransferThis to the QPrintDialog ctor. -Moved the QList<> and QPtrList<> templates to their own files. - - -2001/09/21 00:32:29 phil -Forgot to add the new qmemarray.sip file. - - -2001/09/21 00:31:34 phil -Fully converted the following classes to Qt3: QAction, QActionGroup, -QColorDialog, QDial, QDom et al, QMessageBox, QPopupMenu, QPushButton, -QScrollBar, QScrollView, QSplitter, QStatusBar, QTable, QTableItem, QTabWidget, -QToolButton, QToolTip, QToolTipGroup. -Added the following missing methods: QColorDialog.customColor(), -QColorDialog.customCount(), QColorDialog.getRgba(), -QColorDialog.setCustomColor(), QScrollBar.minValue(), QScrollBar.maxValue(), -QScrollBar.setMinValue(), QScrollBar.setMaxValue(), QScrollBar.lineStep(), -QScrollBar.pageStep(), QScrollBar.setLineStep(), QScrollBar.setPageStep(), -QScrollBar.value(), QScrollBar.setValue(), QToolTip.hide(), -QToolTipGroup.enabled(), QToolTipGroup.setEnabled(). -Added the missing QDir.match() variant. -Removed the handling of QValueList out of QSplitter and made it generic. -Added the following Qt3 classes: QCheckTableItem, QComboItem. -Removed QTabWidget.selected() as it is not part of the official API. - - -2001/09/16 18:12:22 phil -Removed the Transfer flag from the QWidget parameter to QLayout.add(), -QGridLayout.addWidget(), QGridLayout.addMultiCellWidget(), -QBoxLayout.addWidget() and QBoxLayout.insertWidget(). -Fixes to the build process so it works with the latest automake. - - -2001/09/14 16:40:03 phil -Added the missing QLayoutIterator.next() method. - - -2001/09/14 15:17:17 phil -Changes to QObject.tr() and QObject.trUtf8() so that they work as expected with -Qt3. -Put back the separate builds for Qt v2.3.0 and v2.3.1. -Put back QPrinter.PageSize.Custom for Qt v2.3.1. -Added the new /AutoGen/ option where needed. - - -2001/09/09 16:26:16 phil -QGrid, QLCDNumber, QListBox, QListBoxItem, QListBoxPixmap, QListBoxText, -QMenuBar, QMenuData, QRangeControl and QSlider fully converted to Qt3. -A QString or int can now be supplied whenever a QKeySequence is expected. -The missing QListBox.isRubberSelecting(), QMenuBar.activateItemAt(), -QMenuBar.focusInEvent(), QMenuBar.isDefaultUp(), QMenuBar.minimumSize(), -QMenuBar.minimumSizeHint(), QMenuBar.setDefaultUp() methods have been added. - - -2001/09/07 16:15:28 phil -Added the new QKeySequence .sip file and remove the QInterlaceStyle .sip file. - - -2001/09/07 16:13:22 phil -Added the missing QAccel ctor. -Added the missing QHeader.setUpdatesEnabled(), QHeader.showEvent() and -QLineEdit.displayText() methods. -Added the missing QColorDrag class. -Converted all the Qt3 changes to Beta4. -Added the QKeySequence Qt3 class. -Fully converted QComboBox, QDialog, QDragObject, QGridLayout, QHeader, QLayout, -QLineEdit, QUriDrag and QWidgetItem to Qt3. -Removed the QBitArray related methods from QVariant. -Removed the QInterlaceStyle class. -Remove QPrinter.PageSize.Custom so that the v2.3.1 build is the same as v2.3.0. -QObject.className() now works with Python classes. -Upgraded to libtool-1.4.1. - - -2001/09/02 17:13:50 phil -Fully converted the following classes to Qt3: QButton, QButtonGroup, QCanvas et -al, QCheckBox, QCheckListItem, QGroupBox, QLabel, QListView, QListViewItem. -pyuic now generates double quoted strings rather than single quoted strings. -Upgraded to autoconf-2.52 and automake-1.5. - - -2001/08/15 19:18:39 phil -Added the Qt3 classes QRegExpValidator and QTextEdit. -Added the missing QPainter.pos() and QTranslator.messages() methods. -Added all methods that use QDataStream now that it has been implemented. -Removed QTableHeader as it isn't part of the documented API. -Fully converted the QFrame, QHBox, QPainter, QPicture, QPointArray, QRect, -QRegExp, QSessionManager, QStyleSheet, QStyleSheetItem, QTab, QTabBar, -QTextCodec, QTextView, QTranslator, QTranslatorMessage, QVariant, QVBox and -QWMatrix classes to Qt3. - - -2001/08/14 16:10:26 phil -Added the QDesktopWidget, QDockArea and QDockWindow Qt3 widgets. -Fully converted the QApplication, QClipboard, QChar, QColorGroup, QDate, -QDateTime, QFontMetrics, QIconSet, QMainWindow, QMimeSource, -QMimeSourceFactory, QPalette, QString, QTime and QToolBar classes to Qt3. -Added the missing QChar.nbsp, QChar.isLetterOrNumber(), QChar.mirroredChar(), -QImage.inputFormatList(), QImage.outputFormatList(), -QMimeSourceFactory.filePath(), QMimeSourceFactory.addFilePath() and -QPalette.inactive() methods. -Added the missing QString.append() and QString.prepend() variants. -Renamed QTime.IsValidTime() to QTime.isValidTime(). -Made QList a mapped type now that SIP can handle mapped templates. - - -2001/08/10 18:03:56 phil -Final documentation changes for v2.5. - - -2001/08/10 14:54:29 phil -Fixed typo in the Qt3 versioning. - - -2001/08/08 23:28:38 phil -User events get converted to QCustomEvents rather than QEvents. -Finally decided to implement Display * as void *. -QEvent etc., QFont, QFontInfo, QMultiLineEdit and QTableView converted to Qt3. - - -2001/08/07 22:37:16 phil -QWidget is now converted to Qt3. -Added the missing QWidget.customEvent(). -Changed Display to be a class rather than a struct. -Fix a problem with the normal build process caused by the new Qt3 stuff. -Added the temporary qt3.sip-in file. - - -2001/08/07 19:57:06 phil -Fixed a typo in the clean target. -Added Qt3 support for QColor, QCursor, QObject, QPaintDevice, QPixmap and -QSizePolicy. -Added QColor.getHsv(). -Added the Display opaque structure. -Added qt_xdisplay(), qt_xscreen() and qt_xrootwin(). -Added QPaintDevice.x11Display(), QPaintDevice.x11AppDisplay, -QPaintDevice.x11SetAppDpiX() and QPaintDevice.x11SetAppDpiY(). -Added the missing QPixmap.save() variant. - - -2001/08/06 19:57:09 phil -Build changes for the qtgl module under Windows. -The HTML documentation is no longer put into a compressed tar file. -Fixed a minor bug in the widgets.py example. -Changed the configure test for OpenGL support. - - -2001/08/01 22:15:38 phil -More minor build changes. -Fixed QApplication.winVersion(). -Fixed Windows pyuic Makefiles. - - -2001/07/30 22:55:33 phil -Changed the build process so that the current version doesn't have to be the -latest version. -Changed AMTAR to TAR. -Generate Makefiles that support Qt-NC (untested). - - -2001/07/27 22:18:26 phil -The different types that are mapped to Python lists will now return an empty -list (rather than None) when given a NULL pointer. -Fixed a problem detecting -fno-exceptions. -Added QDataStream. -Added the QDom classes. - - -2001/07/21 15:46:35 phil -Used the new %Timeline and %ImportWithTimeline directives. -Added version control to the qtgl module. - - -2001/07/20 23:19:06 phil -Fixed the memory leaks related to sipMapCppToSelf() in hand-written code. -Changed the build system to handle different versions of PyQt for different -versions of Qt. - - -2001/07/17 07:44:09 phil -Changes needed by the latest SIP - Version and %MappedType. -Fixed QScrollView.addChild(). - - -2001/06/29 16:24:55 phil -Minor changes to the BlackAdder DistUtils setup. - - -2001/06/28 23:34:54 phil -Addedpost-hooks to complement the existing pre-hooks. -Added the Pizza example project. - - -2001/06/24 15:12:44 phil -Minor changes to pyuic for BlackAdder. -Moved the BlackAdder specific stuff to its own directory. - - -2001/06/19 15:54:23 phil -Fixed the problems with QLineEdit.event() and QMultiLineEdit.event(). - - -2001/06/18 10:35:45 phil -Re-enabled QInterlaceStype for Qt v2.3.1+. -configure now looks for Qt v2.3.1. -Added QPrinter.PageSize.Custom. -Updates to pyuic from Qt v2.3.1. - - -2001/06/02 17:02:01 phil -Fixed the QTranslatorMessage documentation. - - -2001/05/31 21:01:16 phil -Added the missing QTranslator methods. -Added the QTranslatorMessage class. - - -2001/05/30 21:22:42 phil -Fixed incorrect definition of QTextView.setText(). -Added the /Constraint/ argument everywhere it was needed. -Removed all methods that could never be called because they had different C++ -signatures, but the same Python signatures. - - -2001/05/22 19:36:24 phil -Added the missing QWidget.reparent() variant. -Added the qtgl module. - - -2001/05/14 20:14:36 phil -Removed the QInterlaceStyle class untill Trolltech fix the Windows port. - - -2001/05/13 17:16:43 phil -Added the missing variant of QInputDialog.getText(). - - -2001/05/07 16:50:14 phil -Added fix to pyuic for escaping single quotes properly. - - -2001/04/29 16:21:20 phil -Minor configuration changes. - - -2001/04/22 15:26:48 phil -Added the missing QFileDialog.getExistingDirectory() method. -Upgraded to automake v1.4d. - - -2001/04/19 22:10:42 phil -Final changes for the release of v2.4. - - -2001/04/15 00:38:40 phil -Added missing methods to QMotifStyle. -Added missing enum value to QPalette. -Updated the themes.py example. - - -2001/04/13 13:52:21 phil -Added QCustomEvent. - - -2001/04/08 13:24:53 phil -Added the missing final parameter to QMultiLineEdit.insertAt(). -Updated the documentation ready for v2.4. - - -2001/03/05 23:13:16 phil -Added the new methods and classes implemented in Qt v2.3.0-beta1. -Updated pyuic from Qt v2.3.0-beta1. - - -2001/03/04 16:22:05 phil -Fixed bugs with argument parsing in some handwritten code. Only came to light -with Python 2.1b1. - - -2001/03/01 19:51:38 phil -The generated configure now uses the Python interpreter to find where Python is -installed. - - -2001/02/16 10:53:21 phil -Added a couple of methods missing from QLineEdit. - - -2001/02/04 14:39:56 phil -Configure now checks for Qt v2.2.4 and Python v2.1. -Release as v2.3. - - -2001/01/23 19:23:06 phil -Added the BlackAdder project files. -Various packaging changes for BlackAdder. - - -2001/01/09 11:45:51 phil -Added some missing QSlider methods. -Added some documentation about multiple inheritance. - - -2000/12/24 18:25:52 phil -Fixed a couple of bugs in the examples. -Updated the documentation ready for v2.3. - - -2000/12/19 14:51:01 phil -Added the pre-hooks just before all calls to the Qt event loop. -Changed the QApplication hook to use the new sipCallHook() function. - - -2000/12/13 20:15:55 phil -Really fixed pyuic this time. -pyuic now tries to do something sensible with custom widgets - it assumes they -are in another module and tries to import them. The module name is the header -file name specified in Qt Designer with any extension removed. - - -2000/12/13 18:00:46 phil -Repaired some damage to pyuic caused when integrating the Qt v2.2.3 changes. - - -2000/12/13 10:42:19 phil -Changed the configuration to look for Qt v2.2.3. -Updated pyuic to track changes to uic in Qt v2.2.3. - - -2000/12/12 17:46:14 phil -Added QCustomMenuItem. -Added the missing QMenuData.insertItem methods. -Changed all the handwritten occurences of sipParseArgs() to use the new version -that supports better error reporting. - - -2000/12/11 12:15:48 phil -Added the addressbook.py, buttongroups.py and menu.py examples. -Removed the deprecated behaviour of repr() for QString, QCString and -QByteArray. - - -2000/12/03 17:44:41 phil -Documented that you can't sub-class QCanvasItem. -repr() of QString et al. now does the same as repr() of any other class. - - -2000/12/01 01:31:48 phil -Slight changes to some of the tutorials so that they will run with Python 1.x. -Updated the application.py example. - - -2000/11/30 15:57:54 phil -Modified the tutorial example scripts to match the C++ ones with Qt v2.x. -Removed the old Qt v1.x example scripts. - - -2000/11/29 09:37:56 phil -Added the missing QMessage.setTextFormat() and QMessage.textFormat(). - - -2000/11/24 12:04:04 phil -Added QPushButton.isFlat() and QPushButton.setFlat(). - - -2000/11/12 21:22:02 phil -pyuic fixed to handle QLabel buddies properly. - - -2000/11/11 14:31:07 phil -Added documentation to QListView and QListViewItem about how to delete child -QListViewItems. -Updated pyuic from Qt v2.2.2 uic. -Updated configure to look for Qt v2.2.2. - - -2000/11/09 10:16:24 phil -Fixed compilation problem with QString with Qt v1.x. - - -2000/11/08 12:43:56 phil -A couple of minor fixes to pyuic. -A couple of more major fixes to the debugger so that it will properly go into -other modules of the same application. - - -2000/11/05 20:59:51 phil -Implemented __str__ for QByteArray, QCString and QString. Changed __repr__ to -not raise an exception on null instances. -Added a section to the documentation covering Python and Qt strings. -Released v2.2. - - -2000/11/02 14:57:18 phil -Added missing %HeaderCode in qsizepolicy.sip. -Added %Copying. -Added __pyQtQAppHook__ -Fixed the debugger for Windows. -Added QSocket, QServerSocket and QHostAddress. - - -2000/10/20 23:30:22 phil -Added the missing QPalette.setInactive(). -Colour related fixes to pyuic (thanks to Robert Roy). - - -2000/10/18 16:24:37 phil -Minor fixes to pyuic. -Final updates for v2.1. - - -2000/10/15 20:30:19 phil -Fixed problem with the debugger code being included. -Changed the documentation for v2.1pre1. - - -2000/10/13 18:58:35 phil -Fixed pyuic bug related to QToolTip. -configure will now look for Qt v2.2.1. - - -2000/10/11 17:21:59 phil -Added the widgets.py example. -Fixed bugs with slot arguments in QMovie. - - -2000/10/11 13:32:25 phil -The QApplication dtor now makes sure that any top-pevel windows don't get -deleted twice. -Changed the Shell banner in eric to be closer to Python 2.0. - - -2000/10/08 16:31:50 phil -Added the debugger code (forgot last time). - - -2000/10/08 16:26:29 phil -Added eric the debugger. - - -2000/10/06 12:55:57 phil -Updated pyuic for Qt v2.2.1. -Fixed problems with QInputDialog.getValue() and QInputDialog.getText(). - - -2000/10/03 16:35:25 phil -Added the missing /Transfer/ to QStatusBar.addWidget(). -Added the missing /TransferBack/ to QStatusBar.removeWidget(). - - -2000/10/02 21:45:56 phil -Added the missing QCanvasPixmapArray ctor. -Added the len, [] and in operators to QStringList. - - -2000/10/01 12:37:31 phil -Backed out the changes to the examples as they are no longer needed now that -SIP allows slots to be called with more arguments than expected. This means -that the breakage described in the previous ChangeLog entry has now been -repaired. - - -2000/10/01 00:50:32 phil -Added the missing QMenuData.setItemParameter(), QMenuData.itemParameter() and -QMenuData.activateItemAt(). -QMenuData.insertItem() and QAccel.connectItem() now expect slots that will take -an argument. THIS WILL BREAK SCRIPTS - but is the correct behaviour because -PyQt doesn't support the Qt feature of a slot consuming fewer arguments than a -signal provides. - - -2000/09/28 23:09:51 phil -Added the missing /TransferThis/ in the QWorkspace ctor. - - -2000/09/28 16:31:19 phil -Added missing QWidget.isHidden(), QWidget.isMaximized() and -QMultiLineEdit.getCursorPosition(). - - -2000/09/28 10:27:39 phil -Added /Transfer/ to QApplication::postEvent(). - - -2000/09/27 17:21:27 phil -Fixed the QDir ctor for Qt v2+. - - -2000/09/25 12:02:15 phil -Fixed QBoxLayout::findWidget() so that it compiles under Qt v2.0.x. - - -2000/09/20 11:03:00 phil -Added the README about building from the CVS. -Minor changes prior to moving the CVS tree to theKompany.com. - - -2000/09/19 08:25:47 phil -Added the automatic ChangeLog. -Added the missing keyReleaseEvent() from QButton. -Added the missing QValidator::State::Intermediate. -pyuic was generating bad code for QWizards. Also improved the standalone -support code. - diff --git a/python/pyqt/LICENSE b/python/pyqt/LICENSE deleted file mode 100644 index c7aea189..00000000 --- a/python/pyqt/LICENSE +++ /dev/null @@ -1,280 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 675 Mass Ave, Cambridge, MA 02139, 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 diff --git a/python/pyqt/NEWS b/python/pyqt/NEWS deleted file mode 100644 index a18d29b3..00000000 --- a/python/pyqt/NEWS +++ /dev/null @@ -1,544 +0,0 @@ -v3.17.1 10th April 2007 - - This version requires SIP v4.6 (or later). - - Changes to ensure compatibility with future SIP releases. - -v3.17 4th November 2006 - - Added support for Python v2.5. - - Added the missing QImage.bitBlt() function. - - Added the missing QListView.setSelectionAnchor() method. - - Added the missing QStringList.__iadd__(QString) method. - - Updated the QScintilla bindings for v1.17. - -v3.16 24th March 2006 - - This version requires SIP v4.4 (or later). - - PyQt3 can be installed alongside PyQt4. - - Concatenating Python strings and QStrings is now supported. - - QString now supports the * and *= operators that behave as they do for - Python strings. - - Removed some QString methods that weren't appropriate in a Python context - and would have caused problems had they ever been used. - - QString is more interoperable with Python string and unicode objects. For - example they can be passed as arguments to open() and to most (but not all) - string methods. - - QObject.sender() now handles Python signals. - - Added the missing MacintoshVersion enum. - - The convention for converting between a C/C++ null pointer and Python's - None object has now been universally applied. In previous versions a null - pointer to, for example, a Qt list container would often be converted to an - empty list rather than None. - - PYQT_BUILD has been removed. - - QPopupMenu (and sub-classes) instances now transfer ownership of the menu - to Python in the call to exec_loop(). This means the menu's resources are - all released when the Python wrapper is garbage collected without needing - to call QObject.deleteLater(). - -v3.15.1 14th November 2005 - - Added the missing QApplication constructor. - - Added the -f flag to configure.py to use any existing features file (by - default it is recreated). - -v3.15 30th August 2005 - - This version requires SIP v4.3 (or later). - - Added registerWeakActiveObject() and revokeActiveObject() to QAxBase. - - Added the missing QString + operator. - - PyQt classes now support Python's cyclic garbage collector. - - QDialog (and sub-classes) instances now transfer ownership of the dialog to - Python in the call to exec_loop(). This means the dialog's resources are - all released when the Python wrapper is garbage collected without needing - to call QObject.deleteLater(). - - Automatic type conversion to more specific sub-classes using available - real-time type information has been improved so that, if a sub-class isn't - recognised then the most specific sub-class is used rather than the base - class. - - Automatic type conversion for QLayoutItem and sub-classes has been added. - - Added support for QScintilla v1.6. - -v3.14.1 6th March 2005 - - A minor bug fix release. - -v3.14 19th February 2005 - - This version requires SIP v4.2 (or later) or SIP v3.12 (or later). - - Added the qInstallMsgHandler() function. - - Added support for QScintilla v1.5. - - Added support for the VendorID package. - - Added the qdir.py example. - -v3.13 21st September 2004 - - Added the QUuid, QMetaObject and QMetaProperty classes. - - Added metaObject() to QObject. - - Added the comparison operators between QChar and QChar and char. - - Added all the QDataStream << and >> operators for classes. - - Added support for QScintilla v1.4. - - Added explicit support for QScintilla to pyuic. - -v3.12 25th May 2004 - - QValueList is implemented as a Python list of QVariant instances. - - Added support for QScintilla v1.3. - - Compiler error messages are suppressed during configuration but can be seen - using the new -w flag to configure.py. - -v3.11 11th March 2004 - - Added the QIconDragEvent and QLocale classes from Qt v3.3.0. - - Updated all existing classes to Qt v3.3.1. - - Added the missing QSocketDevice class. - - Added the missing QString += operators. - -v3.10 16th January 2004 - - Added the QFtp, QHttp, QHttpHeader, QHttpRequestHeader, - QHttpResponseHeader, QLocalFs classes. - -v3.9 7th December 2003 - - This version requires SIP v3.9 (or later) or SIP v4.0rc1 (or later). - - QLayoutIterator.next() is now documented. - - Added the QImageIO and QListViewItemIterator classes. - - Added the QDockArea << and >> operators. - - Added readBoolEntry() to QSettings. - - Added qInstallPath(), qInstallPathDocs(), qInstallPathHeaders(), - qInstallPathLibs(), qInstallPathBins(), qInstallPathPlugins(), - qInstallPathData(), qInstallPathTranslations(), qInstallPathSysconf(). - - A new (configure.py) build system has been added which is independent of - tmake and qmake and installs a pyqtconfig module. The old (build.py) build - system remains. - - Added the -r flag to the build systems to enable tracing. - - Added the -v flag to the build systems to specify the default location for - .sip files. - -v3.8.1 6th September 2003 - - Added the missing QWMatrix.mapRect() * operators. - - The supported educational version is now Qt v3.2.0. - -v3.8 17th August 2003 - - Added the -k flag to build.py to build the PyQt modules as static - libraries. - - Added operators to QBrush, QColor, QDate, QDateTime, QDir, QDomeNode, - QFont, QImage, QKeySequence, QPalette, QPen, QPoint, QRect, QRegExp, - QRegion, QSize, QString, QTime, QUrl and QWMatrix (thanks to Torsten - Marek). - - Added the missing Qt.MetaButton. - - Updated all classes for Qt v3.2.0. - - Added the QSplashScreen, QSqlSelectCursor and QToolBox classes for Qt - v3.2.0. - - Added support for QScintilla v1.2. - -v3.7 5th July 2003 - - Implemented __setitem__(), __delitem__(), __add__(), __iadd__(), __mul__(), - __imul__(), __eq__() and __ne__() for QStringList. - - Lots of new examples from Jorge Arroyo. - - dir() of a PyQt class now returns all attributes. - - Added bits(), scanLine(), jumpTable() and colorTable() to QImage. - - Added toShort(), toUShort(), toInt(), toUInt(), toLong(), toULong(), - toFloat() and toDouble() to QCString and QString. - - Added the QWindowsXPStyle (Windows XP only), QextScintillaLexerHTML, - QextScintillaLexerSQL and QSignalMapper classes. - - pyuic (for Qt v3) now accepts a "-test" command line argument to allow - generated code to be run to completion without needing any user - interaction. - - Added modificationAttempted() to QextScintilla. - -v3.6 26th April 2003 - - Added the QextScintillaAPIs, QextScintillaCommand, QextScintillaCommandSet, - QextScintillaMacros and QextScintillaPrinter classes to the qtext module. - - Added the QCopEnvelope class to the qtpe module. - - QString.startsWith() was missing for Qt v2 starting with Qt v2.2.0. - - Implemented the QTextStream << QMainWindow and QTextStream >> QMainWindow - operators. - - pyuic will now extract Python code from the comments section of a .ui file. - - pyuic now supports PEP 263. - - Added the biff.py, checklists.py, drawlines.py and modified buttongroups.py - examples from Oleksandr Yakovlyev. - - Added the qtui module (thanks to Hans-Peter Jansen). - - Support for Qt v3.1.2 added. - - PYQT_VERSION is now the version encoded as a hexadecimal value. - - Added PYQT_VERSION_STR. - -v3.5 11th December 2002 - - Added the qtext module containing the bindings for QScintilla. - - Added the missing QDockWindow.drawFrame(), QGLWidget.reparent() and - QMainWindow.lineUpDockWindows() methods. - - Added the missing QGLColorMap class. - - Support for Qt v3.0.6, v3.1.0 and v3.1.1 added. - - Added the Qt v3.1.x QAssistantClient, QEventLoop, QIconFactory, - - QIMComposeEvent, QMutexLocker and QSyntaxHighlighter classes, and - qCompress() and qUncompress functions. - - Removed eric from the distribution as it is now packaged separately. - - The SQL examples now support PostgreSQL as well as MySQL. - - Added the Qtopia v1.5.0 AppLnk, AppLnkSet, Config, DateFormat, DocLnk, - DocLnkSet, FileManager, FileSelector, FileSelectorItem, FontDatabase, - Global, MenuButton, QDawg, QList, QList and Resource - classes. - -v3.4 10th September 2002 - - More eric updates from Detlev Offenbach, including pylupdate. - - helpviewer is now installed as a standalone application. - - Added the progress.py example from Hans-Peter Jansen. - - Added the mdi.py and canvas.py examples from Sadi Kose. - - Added QT_TR_NOOP() and QT_TRANSLATE_NOOP(). - - Added QApplication.winEventFilter(), QWidget.winEvent(), MSG and POINT - under Windows. - - PyQt is now licensed under several licenses including the GPL and a - commercial license. - -v3.3.2 12th July 2002 - - Build system changes. - -v3.3.1 9th July 2002 - - Support for Qt v3.0.5 added. - -v3.3 7th July 2002 - - Added README.SunOS. - - QValueList is now fully implemented as a mapping to a Python list - of QPixmap instances. - - QSqlRecordInfo is now implemented as a Python list of QSqlFieldInfo - instances. - - Added the missing QDoubleValidator.setBottom(), - QDoubleValidator.setDecimals(), QDoubleValidator.setTop, - QFontMetrics.boundingRect(), QFontMetrics.size(), - QIntValidator.setBottom(), QIntValidator.setTop(), QString.compare() and - QString.localeAwareCompare(). - - Added the qmake based build system. - - Added lots of eric patches from Detlev Offenbach. (eric should now work - again and has new features.) - - Added the SQL examples from Hans-Peter Jansen. - - pyuic for Qt v3 can now extract Python code from .ui files (thanks to - Christian Bird). - -v3.2.4 18th May 2002 - - Bug fixes only from the latest SIP. (Skipped v3.2.3 to keep the version - number in line with SIP.) - -v3.2.2 11th May 2002 - - Bug fixes only. - -v3.2.1 5th May 2002 - - Bug fixes only from the latest SIP. - -v3.2 5th May 2002 - - Instances that are sub-classes of QObject and created by Qt (by factory - methods, or plugin managers for example) will now have the correct Python - class. - - Added the missing QToolTip.setEnabled() and QToolTip.enabled(). - - Added support for MacOS X. - - Added PYQT_VERSION as the PyQt release number as a string. - - Added the semaphore.py example. - - Any Python object can now be passed as the data element of a QCustomEvent. - - configure now searches for Qt v3.0.4. - -v3.1 23rd March 2002 - - Removed the internal QDateTimeEditBase and QDragResponseEvent classes. - - Added the QValueList mapped class. - - Added the missing QImageTextLangKey class. - - Added the missing QActionGroup.add(), QActionGroup.addSeparator(), - QImage.dotsPerMeterX(), QImage.dotsPerMeterY(), QImage.setDotsPerMeterX(), - QImage.setDotsPerMeterY(), QImage.offset(), QImage.setOffset(), - QImage.textList(), QImage.textLanguages(), QImage.textKeys(), QImage.text() - and QImage.setText() methods. - - Added support for Qt/Embedded on the Sharp Zaurus. - - Added the start of the qtpe (Qt Palmtop Environment) module. - - Changes required for Qt v3.0.1 and v3.0.2. - - configure now allows the location of zlib to be specified. - - configure now allows the directory to where the Python modules are - installed to be specified. - - configure now searches for Qt v3.0.1, v3.0.2 and v3.0.3. - - Changes required by the latest SIP. - - Added the dragdrop example from Issac Trotts. - - Added /ReleaseLock/ to everything that might block. - - Upgraded to autoconf-2.53 and automake-1.6. - -v3.0 17th November 2001 - - Added the missing QChar.nbsp class variable. - - Added the missing QChar.isLetterOrNumber(), QChar.mirroredChar(), - QColorDialog.customColor(), QCustomDialog.customCount(), - QColorDialog.getRgba(), QCustomDialog.setCustomColor(), QFileDialog.done(), - QHeader.setUpdatesEnabled(), QHeader.showEvent(), QIconView.dropped(), - QIconViewItem.dropped(), QImage.inputFormatList(), - QImage.outputFormatList(), QLayoutIterator.next(), QLineEdit.displayText(), - QListBox.isRubberSelecting(), QMenuBar.activateItemAt(), - QMenuBar.focusInEvent(), QMenuBar.isDefaultUp(), QMenuBar.minimumSize(), - QMenuBar.minimumSizeHint(), QMenuBar.setDefaultUp(), QMenuData.findItem(), - QMimeSourceFactory.filePath(), QMimeSourceFactory.addFilePath(), - QMotifPlusStyle.drawMenuBarItem(), QMotifPlusStyle.drawPopupMenuItem(), - QMotifStyle.drawPopupMenuItem(), QMotifStyle.extraPopupMenuItemWidth(), - QMotifStyle.popupMenuItemHeight(), QNetworkProtocol.newChildren(), - QPlatinumStyle.drawPopupMenuItem(), - QPlatinumStyle.extraPopupMenuItemWidth(), - QPlatinumStyle.popupMenuItemHeight(), QPainter.pos(), QPalette.inactive(), - QPopupMenu.drawItem(), QPopupMenu.itemHeight(), QPrintDialog.addButton(), - QProgressDialog.forceShow(), QScrollBar.lineStep(), QScrollBar.maxValue(), - QScrollBar.minValue(), QScrollBar.pageStep(), QScrollBar.setLineStep(), - QScrollBar.setMaxValue(), QScrollBar.setMinValue(), - QScrollBar.setPageStep(), QScrollBar.setValue(), QScrollBar.value(), - QStyle.drawPopupMenuItem(), QStyle.drawMenuBarItem(), - QStyle.extraPopupMenuItemWidth(), QStyle.popupMenuItemHeight(), - QToolTip.hide(), QToolTipGroup.enabled(), QToolTipGroup.setEnabled(), - QTranslator.messages(), QUrlOperator.newChildren(), - QUrlOperator.startNextCopy(), QWindowsStyle.drawPopupMenuItem(), - QWindowsStyle.extraPopupMenuItemWidth() and - QWindowsStyle.popupMenuItemHeight() methods. - - Added all missing methods that use QDataStream. - - Added the missing QDir.match(), QObject.connect(), QRect.contains(), - QString.append() and QString.prepend() variants. - - Added the missing QAccel and QImage ctors. - - Added the missing QColorDrag, QDns, QIconDrag, QIconDragItem, QMenuItem, - QSGIStyle and QSound classes. - - Renamed QDate.isValidDate() to QDate.isValid(), QFile.fileExists() to - QFile.exists(), QFile.removeFile() to QFile.remove(), QLineEdit.del() to - QLineEdit.delChar(), QMultiLineEdit.deleteChar() to - QMultiLineEdit.delChar(), and QTime.IsValidTime() to QTime.isValid(). - - Added the QCanvasSpline, QCheckTableItem, QComboTableItem, - QCustomMenuEvent, QDataBrowser, QDataTable, QDataView, QDateEdit, - QDateTimeEdit, QDesktopWidget, QDockArea, QDockWindow, QEditorFactory, - QErrorMessage, QGridView, QIMEvent, QKeySequence, QLibrary, - QObjectCleanupHandler, QPixmapCache, QProcess, QRegExpValidator, QSettings, - QSql, QSqlCursor, QSqlDatabase, QSqlDriver, QSqlEditorFactory, QSqlError, - QSqlField, QSqlFieldInfo, QSqlForm, QSqlIndex, QSqlPropertyMap, QSqlQuery, - QSqlRecord, QSqlRecordInfo, QSqlResult, QStyleFactory, QStyleOption, - QTabletEvent, QTextEdit, QTimeEdit and QWindowsMime Qt3 classes. - - Added the missing qInitNetworkProtocols() function to the qtnetwork module. - - Removed the QTableHeader class and QTabWidget.selected() as they are not - part of the documented API. - - Removed the /Transfer/ flag on the QWidget parameters of - QBoxLayout.addWidget(), QBoxLayout.insertWidget(), - QGridLayout.addMultiCellWidget(), QGridLayout.addWidget() and - QLayout.add(). - - QObject.className() now works with Python classes that sub-class from - QObject derived classes. - - pyuic now generates double quoted strings rather than single quoted strings - (to help Qt Linguist). - - Moved the Canvas module classes to the new qtcanvas module. - - Moved the Network module classes to the new qtnetwork module. - - Moved the Table module classes to the new qttable module. - - Moved the XML module classes to the new qtxml module. - - configure now handles Qt-mt. - - Upgraded to autoconf-2.52, automake-1.5 and libtool-1.4.1. - -v2.5 11th August 2001 - Minor configuration changes. Added the missing variants of - QPixmap.save(), QWidget.reparent() and QInputDialog.getText(). Added - the qtgl module and the gears.py example script (thanks to Toby J - Sargeant). QObject.sender() will now return an appropriate value. - Fixed QTextView.setText() and QScrollView.addChild(). Fixed the - problems with overloads with different C++ signatures but similar - Python signatures - QCString.setNum(), QLabel.setNum(), - QLCDNumber.checkOverflow(), QString.arg(), QString.number(), - QString.setNum(), QVariant() and QWMatrix.map(). Added the missing - QTranslator methods. Added the QTranslatorMessage class. configure - will now look for Qt v2.3.1. QInterlaceStyle is enabled only for Qt - v2.3.1+ as it is broken in 2.3.0 on Windows. Fixed problems with - QLineEdit.event() and QMultiLineEdit.event(). Added post-hooks to - complement the existing pre-hooks. Added the Pizza example from the Qt - Designer manual. Removed the Version keyword for the latest SIP. - Fixed the memory leaks related to sipMapCppToSelf() in handwritten - code. Changed the build system to handle different versions of PyQt - for different versions of Qt. NULL QCanvasItemList, QFileInfoList, - QObjectList, QStrList and QWidgetList pointers are now converted to an - empty Python list rather than None. Added QDataStream and the QDom - classes (thanks to Jim Bublitz). Added the qt_xdisplay(), qt_xscreen() - and qt_xrootwin() functions. Added the QColor.getHsv(), - QPaintDevice.x11Display(), QPaintDevice.x11AppDisplay(), - QPaintDevice.x11SetAppDpiX(), QPaintDevice.x11SetAppDpiY() and - QWidget.customEvent() methods. - -v2.4 22nd April 2001 - Added the missing QFileDialog.getExistingDirectory(), - QLineEdit.setReadOnly(), QLineEdit.readOnly(), - QMotifStyle.comboButtonFocusRect(), QMotifStyle.comboButtonRect() and - QMotifStyle.drawComboButton() methods. Added the missing - QFileDialog.DirectoryOnly and QPalette.Inactive enum values. Updated - the themes.py example. configure now uses the python executable to get - the various Python locations. Added support of Qt v2.3.0, ie. - QApplication.type(), QFontDatabase.isFixedPitch(), - QScrollView.AutoOneFit, QToolBar.styleChange() and QInterlaceStyle. - Added the missing final argument to QMultiLineEdit.insertAt(). Added - the QCustomEvent class. Upgraded to automake v1.4d and libtool v1.3d. - -v2.3 4th February 2001 - Added the missing QMessage.setTextFormat(), QMessage.textFormat(), - QPushButton.isFlat(), QPushButton.setFlat() and QMenuData.insertItem() - methods. Added the QCustomMenuItem class. pyuic assumes that custom - widgets are in another module and generates code to import them. Other - pyuic bug fixes and changes to keep track with Qt v2.2.4. eric bug - fixes. Added the addressbook.py, buttongroups.py and menu.py examples. - Updated all the tutorial scripts to match those in Qt v2.x. Removed - the Qt v1.x specific examples. Removed the deprecated behaviour of - repr() for QString, QCString and QByteArray. The Python objects that - correspond to C++ instances that are "owned" by Qt are now kept alive - without the Python program having to keep an explicit reference. - configure now looks for Python 2.1. - -v2.2 6th November 2000 - Added the %Copying directive. Added the missing %HeaderCode in - qsizepolicy.sip. Added classes QServerSocket, QSocket and - QHostAddress. Added hooks to the QApplication ctors to tell the - debugger when it is safe to create QSocketNotifiers (with UNIX you can - create QSocketNotifiers before you create the QApplication, with - Windows you can't). Other fixes to eric to get it working with - Windows. Implemented __str__ of QByteArray, QCString and QString to - return an empty string for null instances. Changed __repr__ of the - same classes to return a descriptive string for null instances. Added - the missing QPalette.setInactive(). Colour related fixes to pyuic - (thanks to Robert Roy). Added the documentation section on Python - strings, Qt strings and Unicode. - -v2.1 18th October 2000 - Added support for Qt v2.2.1. Added the widgets.py example. Added the - eric debugger. Added the missing QCanvasPixmapArray ctor. Added the - missing QMenuData.setItemParameter(), QMenuData.itemParameter(), - QMenuData.activateItemAt(), QWidget.isHidden(), QWidget.isMaximized(), - QMultiLineEdit.getCursorPosition() and QButton.keyReleaseEvent(). Add - the len, [] and in operators to QStringList. Various other bug fixes - (see ChangeLog). - -v2.0 14th September 2000 - *NOTE* The implementation of enums has changed meaning that your - scripts will be need to be changed. Also repr() of a QString will - return a unicode object (rather than a string) with versions of Python - that support Unicode. - Added /Transfer/ to QObject.insertChild(). Added /TransferBack/ to - QObject.removeChild() and QTabBar.removeTab(). Changes needed by the - latest SIP. Fixed QFontInfo.family() for Qt v2.x (thanks to Joerg - Kollmann). Added /Transfer/ etc. to several places in QScrollView, - QObject, QHeader, QListView and QListViewItem (thanks to Pete Ware). - Updated everything for Qt v2.2.0. Added pyuic. Updated the examples - to handle to new form of enums. Added full support for Windows. - Install in site-packages if it exists. Changes to handwritten code to - support Python 1.6. Integrate QString with Python's Unicode support. - -v0.12 18th May 2000 - The versions of the examples specific to Qt v1.x now get installed in - RPMs. Added QListBoxItem.selected(), QStringList.append() and - QStringList.prepend(). Added /Transfer/ to QApplication.setStyle(), - QLayout.addItem(), QBoxLayout.addItem() and QGridLayout.addItem(). - Added themes.py to the examples. Clarified the software license. - Changes needed by the latest SIP. - -v0.11.1 1st April 2000 - Fixed the documentation for QPixmap::fill(). Code now compiles with - gcc v2.95.2. - -v0.11 28th March 2000 - Added Qt v2.x classes QCDEStyle, QChar, QColorDialog, QCommonStyle, - QCString, QFontDialog, QGLayoutIterator, QGrid, QHBox, QHButtonGroup, - QHGroupBox, QLayoutItem, QLayoutIterator, QMimeSource, - QMimeSourceFactory, QMotifStyle, QPlatinumStyle, QSessionManager, - QSimpleRichText, QSizeGrip, QSizePolicy, QSpacerItem, QStringList, - QStyle, QStyleSheet, QStyleSheetItem, Qt, QTabWidget, QTextBrowser, - QTextCodec, QTextDecoder, QTextEncoder, QTextIStream, QTextOStream, - QTextStream, QTextView, QTranslator, QUriDrag, QVBox, QVButtonGroup, - QVGroupBox, QWheelEvent, QWidgetItem, QWindowsStyle and QWizard. Many - other smaller changes for Qt v2.x. Added TransferThis where needed. - -v0.10.1 21st January 2000 - Fixed a bug in the repr() functions for QString and QByteArray by - generating the code using the latest SIP. - -v0.10 19th December 1999 - The .pyc files are now created by the installation process. Added - qAppName(), QCursor.handle(), QFont.handle(), QPaintDevice.handle(), - QPainter.handle(). Added most of the typedefs. Changed - examples/application.py so as not to use the obsolete (and - unimplemented) QMessageBox.message(). Fixed bug in QPixmap ctor. - Changed the format of version qualifiers for the latest SIP. Various - small changes to port to Windows. Added ReleaseLock to QDialog.exec(). - Fixed a bug in QRect.coords(). Changed QString and QByteArray from - being mapped classes to being regular classes. Changed - examples/application.py, examples/dclock.py and examples/dirview.py to - explicitly convert from QString where needed. - -v0.9 6th September 1999 - Separated the Qt and KDE bindings. These are the Qt bindings. Various - changes needed by the latest SIP. Re-introduced SLOT(). Changed the - examples to use SLOT() where possible. Added QObject.disconnect(), - QAccel.disconnectItem(), QMenuData.disconnectItem(), - QMovie.disconnectResize(), QMovie.disconnectStatus(), - QMovie.disconnectUpdate() and QApplication.clipboard(). Added the - QClipboard and QSocketNotifier classes. QEvent is automatically - converted to the correct sub-class. The Qt event loop now cooperates - with Python threads. Tested with Qt v1.44, Python v1.5.2, egcs v1.1.2 - and glibc v2.1. - -v0.8 29th May 1999 - Hopefully fixed the SuSE configuration problems. Fixed the QPointArray - ctor and QPointArray.setPoints() that took a list of points. Removed - the section in the documentation referring to the inability to handle - C++ references. Added lots of const keywords to suppress new warning - messages from the compiler. Changed the handwritten code for mapped - classes to follow the new NULL/None conventions, and for the - introduction of sipParseArgs(). Added Drag-and-Drop support to kmyapp. - Added Matt Gerassimoff's Qt examples. Added the QCursor global - cursors. Added QPainter.boundingRect(), KApplication.addDropZone(), - KApplication.removeDropZone, KApplication.setRootDropZone(). Added - QDragEnterEvent, QDragLeaveEvent, QDragMoveEvent, QDragObject, - QDragResponseEvent, QDropEvent, QDropSite, QHideEvent, QImageDrag, - QPaintDeviceMetrics, QShowEvent, QStoredDrag, QTextDrag, QTimer, - QUrlDrag, QWindow, KDNDDropZone, KDNDIcon, KDNDWidget, KPath, KSpell, - KSpellConfig, KSpellDlg, KTreeList, KTreeListItem. Tested with Qt - v1.44, KDE v1.1.1, Python v1.5.2, egcs v1.1.2 and glibc v2.1.1. - -v0.7.1 3rd May 1999 - Fixed the detection of -fno-exceptions support. Added the necessary - Py_DECREF(sipArgs) to all handwritten code. Tested with Qt v1.44, KDE - v1.1.1, Python v1.5.2, egcs v1.1.2 and glibc v2.1. - -v0.7 16th April 1999 - Build with -fno-exceptions if supported. Converted the documentation - to SGML. Replaced QT_VERSION and KDE_VERSION with the proper Qt and - KDE version constants. Fixed a bad bug converting from QStrings to - Python strings. The "connect" convenience function has been removed. - Added the class variables for all supported classes. Removed SLOT() - from all examples. Renamed some static functions in QDate, QTime and - QFile (needed because of the new implementation of static member - functions). Added the ordinary functions related to supported classes. - Added QListView, QListViewItem, QCheckListItem, KButton, KButtonBox, - KContainerLayout, KContainerLayoutItem, KControlApplication, - KControlDialog, KConfigWidget, KDatePicker, KDateTable, KDialog, - KDirectionButton, KGradientSelector, KIntegerLine, KLed, KLedLamp, - KListSpinBox, KNewPanner, KNumericSpinBox, KPanner, KPopupMenu, - KQuickHelp, KQuickHelpWindow, KRestrictedLine, KRuler, KSelector, - KSeparator, KSlider, KSpinBox, KTabBar, KTabButton, KTabCtl, - KToolBoxManager, KWizard, KWizardPage, KXYSelector. Tested with Qt - v1.44, KDE v1.1, Python v1.5.2, egcs v1.1.2 and glibc v2.1. - -v0.6 20th February 1999 - Removed some handwritten code now that SIP automatically handles mapped - classes and slots. Changed QString to be mapped to/from Python - strings. Added the static member functions for all supported classes. - Added new member functions for KDE v1.1. Added QBoxLayout, - QButtonGroup, QChain, QCheckBox, QChildEvent, QDate, QDateTime, - QDialog, QDir, QFileDialog, QFileIconProvider, QFileInfo, - QFileInfoList, QGManager, QGroupBox, QGridLayout, QHBoxLayout, QHeader, - QIconSet, QLayout, QMainWindow, QMessageBox, QMovie, QMultiLineEdit, - QObjectList, QPrintDialog, QPrinter, QProgressBar, QProgressDialog, - QRadioButton, QScrollView, QSemiModal, QSpinBox, QSplitter, QStatusBar, - QTab, QTabBar, QTabDialog, QTime, QToolBar, QToolButton, QToolTip, - QToolTipGroup, QVBoxLayout, QWhatsThis, QWidgetList, QWidgetStack. - Added DlgLocation, KColorButton, KColorCombo, KColorDialog, - KColorGroup, KDirDialog, KDirEntry, KEdit, KFM, KFileBaseDialog, - KFileBookmark, KFileDialog, KFileInfo, KFileInfoContents, - KFileInfoList, KFontDialog, KHTMLView, KIconLoaderButton, - KIconLoaderDialog, KMsgBox, KPixmap, KProgress, KRadioGroup, - KSimpleConfig, KURL. Tested with Qt v1.42, KDE v1.1, egcs v1.1.1 and - glibc v2.1. - -v0.5 21st January 1999 - The bindings are now packaged with autoconf configure scripts. The - enum in QFrame is now unnamed as it is in Qt. All the examples changed - to use the new form of enums. Added support for qApp, the global - QColors, kapp, i18n(), Icon() and ICON(). Same test environment as - v0.4. - -v0.4 9th January 1999 - Enough Qt and KDE classes to implement the 14 Qt tutorials and KMyApp, - but still not that many that implement user interface widgets. Tested - with Qt v1.42, KDE v1.0 and gcc v2.8.1. - -v0.3 9th December 1998 - Many more Qt classes, but still not many that implement user interface - widgets. Those classes that are implemented are almost all fully - implemented. Tested with Qt v1.42. - -v0.2 5th December 1999 - Added the definitions of protected and virtual member functions. - -v0.1 1st November 1998 - First release (with a very small set of classes implemented) to give - people a flavour. Tested with Qt v1.41. diff --git a/python/pyqt/README b/python/pyqt/README deleted file mode 100644 index 1af7d9f4..00000000 --- a/python/pyqt/README +++ /dev/null @@ -1,64 +0,0 @@ - PyQt - Python Bindings for the Qt Toolkit - - -INTRODUCTION - -These are the Python bindings for Qt. You must also have the SIP Python -bindings generator installed. - -The homepage is http://www.riverbankcomputing.co.uk/pyqt/. - -The homepage of SIP is http://www.riverbankcomputing.co.uk/sip/. - - -COMMERCIAL VERSION - -If you have the Commercial version of PyQt then you should also have a -license file that you downloaded separately. The license file must be copied -to the "sip" directory before starting to build PyQt. - - -INSTALLATION - -Check for any other README files in this directory that relate to your -particular platform. Feel free to contribute a README for your platform or to -provide updates to any existing documentation. - -The first step is to configure PyQt by running the following command. - - python configure.py - -This assumes that the correct Python interpreter is on your path. Something -like the following may be appropriate on Windows. - - c:\python23\python configure.py - -If you have multiple versions of Python installed then make sure you use the -interpreter for which you wish to generate bindings for. - -The configure.py script takes many options. Use the "-h" command line option -to display a full list of the available options. - -The next step is to build PyQt using your platform's make command. - - make - -The final step is to install PyQt by running the following command. (Depending -on your system you may require root or administrator privileges.) - - make install - - -THE REST OF THE DISTRIBUTION - -The "examples2" and "examples3" directories contain some examples (for Qt v2.x -and Qt v3.x respectively) of Python scripts, including versions of the standard -Qt tutorials and examples. - -The "doc" directory contains SGML and HTML documentation for the bindings. -This documentation includes a section describing the differences visible to -the Python programmer between this and the previous version - please read it. - - -Phil Thompson -phil@riverbankcomputing.co.uk diff --git a/python/pyqt/README.AIX b/python/pyqt/README.AIX deleted file mode 100644 index d7db29b1..00000000 --- a/python/pyqt/README.AIX +++ /dev/null @@ -1,68 +0,0 @@ -This file describes some things to be aware of when building SIP (and PyQt) -under AIX. - -I had success building SIP V3/V4 (and PyQt) on AIX 4.3.3 and on AIX 5.1 with -VisualAge C++ and with gcc. - -VisualAge C++ was version 6.0 but it should also work with version 5.x. -The GNU compiler was version 3.3.2 downloaded as a binary from -http://aixpdslib.seas.ucla.edu/aixpdslib.html - -The Qt-Version was 3.2.3 but it should also work with previous versions. - -If you are using Python version 2.3.3 or higher, SIP (and PyQt) should build -out of the box without any changes. - -If you are using a Python version before 2.3.3, you have to patch Python, -because until this version, Python uses the system calls load() and -loadbind() to load and bind shared objects. These system calls cannot load -and bind C++ shared objects properly (constructors and destructors for static -classes are not called with these system calls). Since AIX version 4.2 the -system calls dlopen() and dlsym() are available and should be used in -preference. - -The following patch changes the configure script of Python to use dlopen() -and dlsym() if they are available. It also fixes a bug with the definition of -_XOPEN_SOURCE: - ----8<-------------------------------------------------------------------->8--- -diff -uNr Python-2.3.2.orig/configure Python-2.3.2/configure ---- Python-2.3.2.orig/configure 2003-09-27 10:58:55.000000000 +0200 -+++ Python-2.3.2/configure 2003-10-28 11:33:58.000000000 +0100 -@@ -1452,6 +1452,11 @@ - # but used in struct sockaddr.sa_family. Reported by Tim Rice. - SCO_SV/3.2) - define_xopen_source=no;; -+ # On AIX 4, mbstate_t is defined only when _XOPEN_SOURCE == 500 but used in -+ # wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined or -+ # has another value. By not (re)defining it, the defaults come in place. -+ AIX/4) -+ define_xopen_source=no;; - esac - - if test $define_xopen_source = yes -@@ -12965,7 +12970,12 @@ - if test -z "$DYNLOADFILE" - then - case $ac_sys_system/$ac_sys_release in -- AIX*) DYNLOADFILE="dynload_aix.o";; -+ AIX*) # Use dynload_shlib.c and dlopen() if we have it. -+ if test "$ac_cv_func_dlopen" = yes -+ then DYNLOADFILE="dynload_shlib.o" -+ else DYNLOADFILE="dynload_aix.o" -+ fi -+ ;; - BeOS*) DYNLOADFILE="dynload_beos.o";; - hp*|HP*) DYNLOADFILE="dynload_hpux.o";; - Darwin/*) DYNLOADFILE="dynload_next.o";; ----8<-------------------------------------------------------------------->8--- - -Note: I did not mix the compilers when building Qt, Python, SIP and PyQt. At -least Qt, SIP and PyQt must be built with the same compiler because of -different name mangling schemes. - -If you have any problems or questions on building SIP or PyQt on AIX, either -send an email to ulrich.berning@desys.de or use the PyKDE mailing list. - -Ulrich Berning -DESYS GmbH diff --git a/python/pyqt/README.SunOS b/python/pyqt/README.SunOS deleted file mode 100644 index 5b176c85..00000000 --- a/python/pyqt/README.SunOS +++ /dev/null @@ -1,44 +0,0 @@ - - o Compiler Error: CC -DHAVE_CONFIG_H -I. -I. -I.. - -I/users/toollib/include/python2.0 -I/users/pyqt/install/sip-3.2.1/include - -I/users/pyqt/install/qt-x11-commercial-3.0.4/include -I/usr/openwin/include - -c qtcmodule.cpp -KPIC -DPIC -o qtcmodule.o - "sipqtProxyqt.h", line 113: Error: Multiple declaration for - sipProxyqt::proxySlot(int). - "qtcmodule.cpp", line 5393: Error: sipProxyqt::proxySlot(int) already had a - body defined. - - This occurs because the Sun Workshop C++ 4.2 compiler (and the Sun Forte - C++ 6.x compiler with -compat) can not distinguish between 'bool' and 'int' - types in overloaded method signatures and issues a compiler error. - In this case bool is declared in qt/include/qglobal.h as - 'typedef int bool;'. To workaround this '#if 0' out the the declaration - and body of 'proxySlot(bool)' in PyQt/qt/sipqtProxyqt.h and - PyQt/qt/qtcmodule.cpp. This resolves the compiler error but breaks - any 'sig(bool)' type signals. To workaround this, save the - PyQt/qt/sipqtProxyqt.moc generated after fixing the compiler error and - add the following bits of code: - - ... - static const QUParameter param_slot_42[] = { - { 0, &static_QUType_bool, 0, QUParameter::In } - }; - static const QUMethod slot_42 = {"proxySlot", 1, param_slot_42 }; - static const QMetaData slot_tbl[] = { - ... - { "proxySlot(bool)", &slot_42, QMetaData::Public } - }; - metaObj = QMetaObject::new_metaobject( - "sipProxyqt", parentObject, - slot_tbl, 43, - ... - case 42: proxySlot(static_QUType_bool.get(_o+1)); break; - - You will need to comment out the line in PyQt/qt/Makefile that re-generates - PyQt/qt/sipqtProxyqt.moc with moc to avoid the above changes from being - overwritten. - - In order to test that everything has been done correctly, create a - toggle button and connect it's 'toggled(bool)' signal to a python slot, - if it works, your done! - diff --git a/python/pyqt/THANKS b/python/pyqt/THANKS deleted file mode 100644 index 7204f8af..00000000 --- a/python/pyqt/THANKS +++ /dev/null @@ -1,35 +0,0 @@ -Torsten Marek - For going through the Qt classes and adding applicable operators to - PyQt. - -Detlev Offenbach - For picking up and enhancing eric. - -Hans-Peter Jansen - For the ports of the table and SQL based example scripts and for the - qtui module. - -Dimitri Papadopoulos-Orfanos - For all the help with the MacOS X port. - -Jim Bublitz - For QDataStream and the QDom classes, and picking up PyKDE. - -Pete Ware - For lots of patches for Qt v2.1+. - -Boudewijn Rempt - For evangelising and providing so much support to other users. Oh, and - writing a book about it all. - -Toby J Sargeant - For QSocketNotifier and getting Python threads working with Qt. - -Matt Gerassimoff - For his Python versions of many of the Qt example programs. - -Matt Gerassimoff, John Filo, Boudewijn Rempt - For testing and excellent bug reports. - -Rupert Thurner - For pointing out what env is for. diff --git a/python/pyqt/build.py b/python/pyqt/build.py deleted file mode 100644 index b2c39c20..00000000 --- a/python/pyqt/build.py +++ /dev/null @@ -1,730 +0,0 @@ -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# This is the build script for PyQt. It should be run in the top level -# directory of the source distribution and by the Python interpreter for which -# it is being built. It uses either qmake or tmake to do the hard work of -# generating the platform specific Makefiles. - - -import sys -import os -import glob -import tempfile -import shutil -import py_compile -import compileall -import string - - -# Get the SIP configuration. -try: - import sipconfig -except: - print "Unable to import the sipconfig module. Please make sure you have" - print "SIP v3.9 or later installed." - sys.exit(1) - -config = sipconfig.SIPConfig("PyQt 3.17.2") - - -# Initialise the globals. -sipMajorVersion = config.sip_version >> 16 -sciIncDir = config.qt_inc_dir -sciLibDir = config.qt_lib_dir -sciLib = None -sciVersion = None -binDir = config.default_bin_dir -modDir = config.default_mod_dir -sipDir = config.default_sip_dir -buildModules = ["qt"] -tempBuildDir = None -catCppFiles = 0 -catSplit = 1 -qpeTag = None -trace = 0 -releaseGIL = 0 - - -def usage(rcode = 2): - """Display a usage message and exit. - - rcode is the return code passed back to the calling process. - """ - print "Usage:" - print " %s [-h] [-a version] [-b dir] [-c] [-d dir] [-g] [-j #] [-n dir] [-o dir] [-r] [-v dir]" % sipconfig.script() - print "where:" - print " -h display this help message" - print " -a tag explicitly enable the qtpe module" - print " -b dir where pyuic and pylupdate will be installed [default %s]" % config.default_bin_dir - print " -c concatenate each module's C++ source files" - print " -d dir where the PyQt modules will be installed [default %s]" % config.default_mod_dir - print " -g always release the GIL (SIP v3.x behaviour)" - print " -j # split the concatenated C++ source files into # pieces [default 1]" - print " -n dir the directory containing the QScintilla header files [default %s]" % config.qt_inc_dir - print " -o dir the directory containing the QScintilla library [default %s]" % config.qt_lib_dir - print " -r generate code with tracing enabled [default disabled]" - print " -v dir where the PyQt .sip files will be installed [default %s]" % config.default_sip_dir - - sys.exit(rcode) - - -def mkTempBuildDir(olddir=None): - """Create a temporary build directory for a console application called - qttest, complete with patched Makefile. The global tempBuildDir is set to - the name of the directory. The temporary directory becomes the current - directory. - - olddir is None if the directory should be created, otherwise it is deleted. - - Returns the name of the previous current directory. - """ - global tempBuildDir - - if olddir is None: - tempBuildDir = tempfile.mktemp() - - try: - os.mkdir(tempBuildDir) - except: - sipconfig.error("Unable to create temporary directory.") - - prevdir = sipconfig.push_dir(tempBuildDir) - - sipconfig.copy_to_file("qttest.pro.in", -"""TEMPLATE = app -TARGET = qttest -CONFIG += console warn_off @TEST_OPENGL@ @BLX_CONFIG_APP@ -INCLUDEPATH = @BLX_INCLUDEPATH@ @TEST_QSCINTILLA_INC@ -DEFINES = @BLX_DEFINES@ -SOURCES = qttest.cpp -LIBS += @TEST_QUI_LIB@ @TEST_QSCINTILLA_LIB@ -""") - - # Disable OpenGL, qui and QScintilla support by default. - config.patches["@TEST_OPENGL@"] = "" - config.patches["@TEST_QUI_LIB@"] = "" - config.patches["@TEST_QSCINTILLA_INC@"] = "" - config.patches["@TEST_QSCINTILLA_LIB@"] = "" - - # Create a dummy source file to suppress a qmake warning. - sipconfig.copy_to_file("qttest.cpp", "") - - config.create_makefile("qttest.pro") - else: - sipconfig.pop_dir(olddir) - prevdir = None - - shutil.rmtree(tempBuildDir, 1) - - return prevdir - - -def tryModule(maindir, mname, incfile, ctor): - """See if a PyQt module should be built and update the buildModules list - accordingly. - - maindir is the directory containing this script. - mname is the name of the PyQt module. - incfile is the C++ header file that defines the class being used for the - test. - ctor is the constructor of the class being used for the test. - """ - # Check for the existence of the module .sip file. - msip = os.path.join(maindir, "sip", mname, mname + "mod.sip") - - if not os.access(msip, os.F_OK): - return - - sipconfig.copy_to_file("qttest.cpp", -"""#include <%s> - -int main(int argc,char **argv) -{ - new %s; -} -""" % (incfile, ctor)) - - if sipconfig.run_make(None,0) == 0: - buildModules.append(mname) - sipconfig.inform("The %s module will be built." % mname) - else: - sipconfig.inform("The %s module will not be built." % mname) - - sipconfig.run_make("clean") - - -def checkQScintilla(): - """See if QScintilla can be found and what its version is. - """ - # Find the QScintilla header files. - sciglobal = os.path.join(sciIncDir, "qextscintillaglobal.h") - - if os.access(sciglobal,os.F_OK): - config.patches["@PYQT_QSCINTILLA_INC@"] = sciIncDir - - sipconfig.inform("%s contains qextscintillaglobal.h." % (sciIncDir)) - - # Get the QScintilla version number. - global sciVersion - - sciVersion, sciversstr = sipconfig.read_version(sciglobal, "QScintilla", "QSCINTILLA_VERSION", "QSCINTILLA_VERSION_STR") - - sipconfig.inform("QScintilla %s is being used." % (sciversstr)) - - # If we find a snapshot then set the version number to 0 as a special - # case. - if sciversstr[:8] == "snapshot": - sciVersion = 0 - - # Find the QScintilla library. - if sys.platform == "win32": - lpatt = "qscintilla.lib" - else: - lpatt = "libqscintilla.*" - - if len(glob.glob(os.path.join(sciLibDir, lpatt))): - sipconfig.inform("%s contains the QScintilla library." % sciLibDir) - - global sciLib - - if sys.platform == "win32": - sciLib = sipconfig.escape(os.path.join(sciLibDir, "qscintilla.lib")) - else: - sciLib = sipconfig.escape("-L" + sciLibDir) + " -lqscintilla" - - config.patches["@PYQT_QSCINTILLA_LIB@"] = sciLib - else: - sipconfig.inform("The QScintilla library could not be found in %s and so the qtext module will not be built. If QScintilla is installed then use the -o argument to explicitly specify the correct directory." % (sciLibDir)) - - sciVersion = -1 - else: - sipconfig.inform("qextscintillaglobal.h could not be found in %s and so the qtext module will not be built. If QScintilla is installed then use the -n argument to explicitly specify the correct directory." % sciIncDir) - - sciVersion = -1 - - -def moduleChecks(maindir): - """See which PyQt modules to build. - """ - sipconfig.inform("Checking which additional PyQt modules to build."); - - tryModule(maindir,"qtcanvas", "qcanvas.h", "QCanvas()") - tryModule(maindir,"qtnetwork", "qsocket.h", "QSocket()") - tryModule(maindir,"qttable", "qtable.h", "QTable()") - tryModule(maindir,"qtxml", "qdom.h", "QDomImplementation()") - - if config.qt_version >= 0x030000: - tryModule(maindir,"qtsql", "qsql.h", "QSql()") - - # We need a different Makefile for the qtgl module. - config.patches["@TEST_OPENGL@"] = "opengl" - config.create_makefile("qttest.pro") - - tryModule(maindir,"qtgl", "qgl.h", "QGLWidget()") - - # Put things back. - config.patches["@TEST_OPENGL@"] = "" - config.create_makefile("qttest.pro") - - # Check for the qui library. - if config.qt_version >= 0x030000: - if sys.platform == "win32": - quilib = r"$(QTDIR)\lib\qui.lib" - else: - quilib = "-lqui" - - config.patches["@PYQT_QUI_LIB@"] = quilib - - config.patches["@TEST_QUI_LIB@"] = quilib - config.create_makefile("qttest.pro") - - tryModule(maindir,"qtui", "qwidgetfactory.h", "QWidgetFactory()") - - # Put things back. - config.patches["@TEST_QUI_LIB@"] = "" - config.create_makefile("qttest.pro") - - # Check for the QScintilla library. - if sciVersion >= 0: - config.patches["@TEST_QSCINTILLA_INC@"] = sciIncDir - config.patches["@TEST_QSCINTILLA_LIB@"] = sciLib - config.create_makefile("qttest.pro") - - tryModule(maindir,"qtext", "qextscintillabase.h", "QextScintillaBase()") - - # Put things back. - config.patches["@TEST_QSCINTILLA_INC@"] = "" - config.patches["@TEST_QSCINTILLA_LIB@"] = "" - config.create_makefile("qttest.pro") - - -def generateFeatures(featfile): - """Generate the header file describing the Qt features that are enabled if - it doesn't already exist. (If it already exists then we are probably cross - compiling and generated the file through other means.) - - featfile is the name of the features file. - """ - if os.access(featfile,os.F_OK): - sipconfig.inform("Using existing features file.") - return - - sipconfig.inform("Generating the features file.") - - # The features that a given Qt configuration may or may not support. Note - # that STYLE_WINDOWSXP requires special handling. - flist = ["ACTION", "CLIPBOARD", "CODECS", "COLORDIALOG", "DATASTREAM", - "DIAL", "DNS", "DOM", "DRAGANDDROP", "ICONVIEW", "IMAGE_TEXT", - "INPUTDIALOG", "FILEDIALOG", "FONTDATABASE", "FONTDIALOG", - "MESSAGEBOX", "MIMECLIPBOARD", "NETWORKPROTOCOL", "PICTURE", - "PRINTDIALOG", "PRINTER", "PROGRESSDIALOG", "PROPERTIES", - "SEMIMODAL", "SIZEGRIP", "SOUND", "SPLITTER", "STYLE_CDE", - "STYLE_INTERLACE", "STYLE_MOTIF", "STYLE_MOTIFPLUS", - "STYLE_PLATINUM", "STYLE_SGI", "STYLE_WINDOWS", "TABDIALOG", - "TABLE", "TABLEVIEW", "TRANSFORMATIONS", "TRANSLATION", "WIZARD", - "WORKSPACE"] - - # Generate the program which will generate the features file. - f = open("qttest.cpp","w") - - # Escape the backslashes so that the name can be embedded in a C++ string. - ffstr = string.replace(featfile, "\\", "\\\\") - - f.write( -"""#include -#include -#include - -int main(int argc,char **argv) -{ - FILE *fp; - QApplication app(argc,argv,0); - - if ((fp = fopen("%s","w")) == NULL) - { - printf("Unable to create '%s'\\n"); - return 1; - } - -#if !defined(QT_THREAD_SUPPORT) - fprintf(fp,"-x Qt_THREAD_SUPPORT\\n"); -#endif - -#if (defined(Q_OS_WIN32) || defined(Q_OS_WIN64)) && QT_VERSION >= 0x030000 - if (qWinVersion() != Qt::WV_XP) - fprintf(fp,"-x Qt_STYLE_WINDOWSXP\\n"); -#endif -""" % (ffstr, ffstr)) - - for feat in flist: - f.write( -""" -#if defined(QT_NO_%s) - fprintf(fp,"-x Qt_%s\\n"); -#endif -""" % (feat, feat)) - - f.write( -""" - fclose(fp); - - return 0; -} -""") - - f.close() - - sipconfig.run_make() - sipconfig.run_program(os.path.join(os.getcwd(), "qttest")) - sipconfig.run_make("clean") - - sipconfig.inform("Generated the features file.") - - -def generateSource(mname, plattag, qttag, xtrtag): - """Generate the C++ source code for a particular PyQt module. - - mname is the name of the module. - plattag is the SIP tag for the platform. - qttag is the SIP tag for the Qt version. - xtrtag is an optional extra SIP tag. - """ - sipconfig.inform("Generating the C++ source for the %s module." % mname) - - try: - shutil.rmtree(mname) - except: - pass - - try: - os.mkdir(mname) - except: - sipconfig.error("Unable to create the %s directory." % mname) - - pro = mname + ".pro" - - argv = ["-t", plattag, - "-t", qttag, - "-z", "features", - "-I", "sip", - "-m", mname + "/" + pro + ".in", - "-c", mname, - "sip/" + mname + "/" + mname + "mod.sip"] - - if xtrtag: - argv.insert(0,xtrtag) - argv.insert(0,"-t") - - if trace: - argv.insert(0,"-r") - - if releaseGIL: - argv.insert(0,"-g") - - sipconfig.run_program(config.sip_bin, argv) - - # Generate the Makefile. - sipconfig.inform("Generating the Makefile for the %s module." % mname) - - olddir = sipconfig.push_dir(mname) - - if catCppFiles: - sipconfig.cat_source_files(mname, catSplit) - - config.create_makefile(pro, mname) - - icmds = [] - - if sipMajorVersion == 3: - icmds.append(("copy", mname + ".py", modDir)) - icmds.append(("copy", mname + ".pyc", modDir)) - - config.add_install_target(icmds) - - if sipMajorVersion == 3: - # Compile the Python part of the module. - pyname = mname + ".py" - - sipconfig.inform("Compiling %s." % (pyname)) - py_compile.compile(pyname) - - sipconfig.pop_dir(olddir) - - -def versionToTag(vers, tags, desc): - """Convert a version number to a tag. - - vers is the version number. - tags is the dictionary of tags keyed by version number. - desc is the descriptive name of the package. - - Returns the corresponding tag. - """ - tag = None - - vl = tags.keys() - vl.sort() - - # For a snapshot use the latest tag. - if vers == 0: - tag = tags[vl[-1]] - else: - for v in vl: - if vers < v: - tag = tags[v] - break - - if tag is None: - sipconfig.error("Invalid %s version: 0x%06x." % (desc, vers)) - - return tag - - -def main(argv): - """The main function of the script. - - argv is the list of command line arguments. - """ - import getopt - - # Parse the command line. - try: - optlist, args = getopt.getopt(argv[1:],"ha:b:cd:gj:n:o:rv:") - except getopt.GetoptError: - usage() - - for opt, arg in optlist: - if opt == "-h": - usage(0) - elif opt == "-a": - global qpeTag - qpeTag = arg - elif opt == "-b": - global binDir - binDir = arg - elif opt == "-c": - global catCppFiles - catCppFiles = 1 - elif opt == "-d": - global modDir - modDir = arg - elif opt == "-g": - global releaseGIL - releaseGIL = 1 - elif opt == "-j": - global catSplit - - try: - catSplit = int(arg) - except: - catSplit = 0 - - if catSplit < 1: - usage() - elif opt == "-n": - global sciIncDir - sciIncDir = arg - elif opt == "-o": - global sciLibDir - sciLibDir = arg - elif opt == "-r": - global trace - trace = 1 - elif opt == "-v": - global sipDir - sipDir = arg - - # Confirm the license. - sipconfig.confirm_license() - - # If there should be a license file then check it is where it should be. - if config.license_file: - if os.access(os.path.join("sip", config.license_file), os.F_OK): - sipconfig.inform("Found the license file %s.\n" % config.license_file) - else: - sipconfig.error("Please copy the license file %s to the sip directory.\n" % config.license_file) - - # Check the Qt version. - if config.qt_version == 0: - sipconfig.error("SIP has been built with Qt support disabled.\n") - - # Early versions of Qt for the Mac didn't include everything. Rather than - # maintain these in the future we just mandate a later version. - if sys.platform == "darwin" and config.qt_version < 0x030100: - sipconfig.error("PyQt for MacOS/X requires Qt v3.1.0 or later.\n") - - # Check the installation directory is valid and add it as a patch. - if not os.access(modDir,os.F_OK): - sipconfig.error("The %s PyQt destination directory does not seem to exist. Use the -d argument to set the correct directory." % (modDir)) - - config.patches["@PYQT_MODDIR@"] = sipconfig.escape(modDir) - - sipconfig.inform("%s is the PyQt installation directory." % (modDir)) - - # Enable warnings for SIP v4 generated code. - if sipMajorVersion >= 4: - warn = "warn_on" - else: - warn = "warn_off" - - config.patches["@PYQT_WARN@"] = warn - - # Create patches to allow some modules to link against others. - if sipMajorVersion >= 4: - modlink = "" - elif sys.platform == "win32": - modlink = sipconfig.escape(os.path.join(modDir, "libqtc.lib")) - else: - modlink = sipconfig.escape("-L" + modDir) + " -lqtcmodule" - - config.patches["@PYQT_QT_MODULE@"] = modlink - - if sipMajorVersion >= 4: - modlink = "" - elif sys.platform == "win32": - modlink = sipconfig.escape(os.path.join(modDir, "libqttablec.lib")) + " " + sipconfig.escape(os.path.join(modDir, "libqtc.lib")) - else: - modlink = sipconfig.escape("-L" + modDir) + " -lqttablecmodule -lqtcmodule" - - config.patches["@PYQT_QTTABLE_MODULE@"] = modlink - - # The professional edition needs special handling if XML support is needed. - if config.qt_edition == "professional": - rbprof = "rbprof" - else: - rbprof = "" - - config.patches["@PYQT_RBPROF@"] = rbprof - - # Link in the qassistantclient library for Qt v3.1+. - qaclib = "" - - if config.qt_version >= 0x030100: - if sys.platform == "win32": - qaclib = r"$(QTDIR)\lib\qassistantclient.lib" - else: - qaclib = "-lqassistantclient" - - config.patches["@PYQT_QASSISTANTCLIENT_LIB@"] = qaclib - - # Check for QScintilla. - if config.qt_version >= 0x030000: - checkQScintilla() - - # Create a build directory that we can compile test programs. - maindir = mkTempBuildDir() - - # Check what additional modules to build. - if config.qt_version >= 0x020000: - moduleChecks(maindir) - - # Work out the platform and Qt version tags to pass to SIP to generate the - # code we need. - if config.qt_lib == "qte": - plattag = "WS_QWS" - elif sys.platform == "win32": - plattag = "WS_WIN" - elif sys.platform == "darwin": - plattag = "WS_MACX" - else: - plattag = "WS_X11" - - qttags = { - 0x020000: "Qt_1_43", - 0x020100: "Qt_2_00", - 0x020200: "Qt_2_1_0", - 0x020300: "Qt_2_2_0", - 0x020301: "Qt_2_3_0", - 0x030000: "Qt_2_3_1", - 0x030001: "Qt_3_0_0", - 0x030002: "Qt_3_0_1", - 0x030004: "Qt_3_0_2", - 0x030005: "Qt_3_0_4", - 0x030006: "Qt_3_0_5", - 0x030100: "Qt_3_0_6", - 0x030101: "Qt_3_1_0", - 0x030102: "Qt_3_1_1", - 0x030200: "Qt_3_1_2", - 0x030300: "Qt_3_2_0", - 0x040000: "Qt_3_3_0" - } - - qttag = versionToTag(config.qt_version, qttags, "Qt") - - # Work out the QScintilla tag. - if sciVersion >= 0: - scitags = { - 0x010100: "QScintilla_1_0", - 0x010200: "QScintilla_1_1", - 0x020000: "QScintilla_1_2" - } - - scitag = versionToTag(sciVersion, scitags, "QScintilla") - else: - scitag = None - - # Generate the features file. - generateFeatures(os.path.join(maindir, "features")) - - # We don't need the temporary build directory anymore. - mkTempBuildDir(maindir) - - subdirs = [] - for mname in buildModules: - if mname == "qtext": - xtratag = scitag - else: - xtratag = None - - generateSource(mname, plattag, qttag, xtratag) - subdirs.append(mname) - - # We handle the qtpe module explicitly rather than auto-detect. This is - # because it does things a bit differently and I'm too lazy to deal with it - # properly at the moment. - if qpeTag: - generateSource("qtpe", plattag, qttag, qpeTag) - subdirs.append("qtpe") - - # Install the .sip files. - sipconfig.inform("Creating Makefile for .sip files.") - olddir = sipconfig.push_dir("sip") - sipconfig.copy_to_file("Makefile", "all:\n") - - icmds = [] - - for mname in buildModules: - dstdir = os.path.join(sipDir, mname) - - icmds.append(("mkdir", dstdir, None)) - - for sf in os.listdir(os.path.join(olddir, "sip", mname)): - icmds.append(("copy", os.path.join(mname, sf), os.path.join(dstdir, sf))) - - config.add_install_target(icmds) - sipconfig.pop_dir(olddir) - subdirs.append("sip") - - # See which version of pyuic to build. - config.patches["@PYQT_BINDIR@"] = sipconfig.escape(binDir) - - if config.qt_version >= 0x030000: - sipconfig.inform("Creating Makefile for pyuic3.") - subdirs.append("pyuic3") - olddir = sipconfig.push_dir("pyuic3") - elif config.qt_version >= 0x020000: - sipconfig.inform("Creating Makefile for pyuic2.") - subdirs.append("pyuic2") - olddir = sipconfig.push_dir("pyuic2") - - config.create_makefile("pyuic.pro", []) - sipconfig.pop_dir(olddir) - - # Build pylupdate if Qt v3.0 or later. - if config.qt_version >= 0x030000: - sipconfig.inform("Creating Makefile for pylupdate3.") - subdirs.append("pylupdate3") - olddir = sipconfig.push_dir("pylupdate3") - - config.create_makefile("pylupdate.pro", []) - sipconfig.pop_dir(olddir) - - # Generate the top-level Makefile. - sipconfig.inform("Creating top level Makefile.") - sipconfig.copy_to_file("PyQt.pro.in", "TEMPLATE = subdirs\nSUBDIRS = " + string.join(subdirs) + "\n") - config.create_makefile("PyQt.pro") - - # Tell the user what to do next. - msg = "The build of the PyQt source code for your system is now complete. To compile and install PyQt run \"%s\" and \"%s install\" with appropriate user privileges." % (config.make_bin, config.make_bin) - - sipconfig.inform(msg) - - -if __name__ == "__main__": - try: - main(sys.argv) - except SystemExit: - raise - except: - print \ -"""An internal error occured. Please report all the output from the program, -including the following traceback, to support@riverbankcomputing.co.uk. -""" - raise diff --git a/python/pyqt/configure.py b/python/pyqt/configure.py deleted file mode 100644 index b8b6f076..00000000 --- a/python/pyqt/configure.py +++ /dev/null @@ -1,1438 +0,0 @@ -# This script generates the PyQt configuration and generates the Makefiles. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; 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 - -import sipconfig - - -# Initialise the globals. -pyqt_version = 0x031102 -pyqt_version_str = "3.17.2" - -sip_min_version = 0x040600 - - -# Try and find a Qt installation to use as the default. -try: - qt_dir = os.environ["QTDIR"] -except KeyError: - qt_dir = "" - - -qt_version = 0 -qt_edition = "" -qt_incdir = None -qt_libdir = None -qt_threaded = 0 -qt_winconfig = "" - -pyqt = None -pyqt_modules = [] -qt_sip_flags = [] -qtext_sip_flags = [] -qtpe_sip_flags = [] -qsci_version = 0 -disabled_classes = [] - -if sys.platform == "win32": - qsci_define = "QEXTSCINTILLA_DLL" -else: - qsci_define = "" - -# Get the SIP configuration. -sipcfg = sipconfig.Configuration() - -# Command line options. -opt_qtlib = None -opt_qconfigdir = None -opt_pyqtbindir = sipcfg.default_bin_dir -opt_pyqtmoddir = sipcfg.default_mod_dir -opt_pyqtsipdir = sipcfg.default_sip_dir -opt_qtpetag = None -opt_qsciincdir = None -opt_qscilibdir = None -opt_static = 0 -opt_debug = 0 -opt_concat = 0 -opt_split = 1 -opt_tracing = 0 -opt_verbose = 0 -opt_keepfeatures = 0 - -opt_vendorcheck = 0 -opt_vendincdir = sipcfg.py_inc_dir -opt_vendlibdir = sipcfg.py_lib_dir - - -def usage(rcode = 2): - """Display a usage message and exit. - - rcode is the return code passed back to the calling process. - """ - if qt_dir: - def_qt_dir = qt_dir - else: - def_qt_dir = "none" - - print "Usage:" - print " python configure.py [-h] [-a tag] [-b dir] [-c] [-d dir] [-f] [-g dir] [-i] [-j #] [-k] [-l dir] [-m dir] [-n dir] [-o dir] [-q dir] [-r] [-s] [-u] [-v dir] [-w] [-y lib] option=value option+=value ..." - print "where:" - print " -h display this help message" - print " -a tag explicitly enable the qtpe module" - print " -b dir where pyuic and pylupdate will be installed [default %s]" % opt_pyqtbindir - print " -c concatenate each module's C/C++ source files" - print " -d dir where the PyQt modules will be installed [default %s]" % opt_pyqtmoddir - print " -f keep any existing features file (when cross-compiling) [default remove]" - print " -g dir where the Qt qconfig.h file can be found [default Qt include directory]" - print " -i enable checking of signed interpreters using the VendorID package [default disabled]" - print " -j # split the concatenated C++ source files into # pieces [default 1]" - print " -k build the PyQt modules as static libraries" - print " -l dir the directory containing the VendorID header file [default %s]" % opt_vendincdir - print " -m dir the directory containing the VendorID library [default %s]" % opt_vendlibdir - print " -n dir the directory containing the QScintilla header files [default Qt include directory]" - print " -o dir the directory containing the QScintilla library [default Qt lib directory]" - print " -q dir the root directory of the Qt installation [default %s]" % def_qt_dir - print " -r generate code with tracing enabled [default disabled]" - print " -s QScintilla is a static library and not a DLL (Windows only)" - print " -u build with debugging symbols (requires a debug build of Python on Windows" - print " -v dir where the PyQt .sip files will be installed [default %s]" % opt_pyqtsipdir - print " -w don't suppress compiler output during configuration" - print " -y lib explicitly specify the type of Qt library, either qt, qt-mt, qte, qte-mt or qtmt" - - sys.exit(rcode) - - -class ConfigureBase: - """This is the base class for all PyQt version specific configurer classes. - Anything here is common to all configurers. - """ - def check_modules(self): - """Check which modules should be built and add them to the global list. - - Returns the name of any additional library that needs to be linked with - the main module. - """ - return None - - def sip_flags(self): - """Get the configuration specific SIP flags. - - Returns a list of flags. - """ - return [] - - def qt_version_tags(self): - """Get the versions tags for the configuration. - - Returns a dictionary of versions and corresponding tags. - """ - return {} - - def code(self, extra_include_dirs, extra_lib_dir, extra_libs): - """Generate the code for a configuration. - - extra_include_dirs is a list of directories to add to those supplied by - the SIP configuration. - extra_lib_dir is an optional directory to add to those supplied by the - SIP configuration. - extra_lib_dirs is an optional list of directories to add to those - supplied by the SIP configuration. - """ - pass - - def tools(self): - """Create the Makefiles for any other sub-directories and return a list - of those directories. - - Returns a list of sub-directories with Makefile. - """ - return [] - - def module_dir(self): - """Return the configuration's module directory. - """ - return opt_pyqtmoddir - - def module_installs(self): - """Return a list of files to install in the module directory other than - the modules themselves. - """ - return ["pyqtconfig.py"] - - def sip_dir(self): - """Return the configuration's .sip files directory. - """ - return opt_pyqtsipdir - - -class ConfigurePyQt3(ConfigureBase): - """This class defines the methods to configure PyQt v3. - """ - def check_modules(self): - pyqt_modules.append("qt") - - check_module("qtcanvas", "qcanvas.h", "QCanvas()") - check_module("qtnetwork", "qsocket.h", "QSocket()") - check_module("qttable", "qtable.h", "QTable()") - check_module("qtxml", "qdom.h", "QDomImplementation()") - check_module("qtgl", "qgl.h", "QGLWidget()", opengl=1) - - if qt_version >= 0x030000: - check_module("qtui", "qwidgetfactory.h", "QWidgetFactory()", lib="qui") - - if qt_edition in ("enterprise", "free"): - check_module("qtsql", "qsql.h", "QSql()") - - if sys.platform == "win32" and sipcfg.sip_version >= 0x040200: - check_module("qtaxcontainer", "qaxobject.h", "QAxObject()", lib="qaxcontainer") - - if qsci_version: - check_module("qtext", "qextscintillabase.h", "QextScintillaBase()", define=qsci_define, include_dir=opt_qsciincdir, lib_dir=opt_qscilibdir, lib="qscintilla") - - if opt_qtpetag: - pyqt_modules.append("qtpe") - - qtmod_lib = None - - if qt_version >= 0x030100: - sipconfig.inform("Checking to see if the QAssistantClient class is available...") - - if check_class("qassistantclient.h", "QAssistantClient(\"foo\")", lib="qassistantclient"): - qtmod_lib = "qassistantclient" - else: - disabled_classes.append("QAssistantClient") - - return qtmod_lib - - def sip_flags(self): - return get_feature_flags() - - def qt_version_tags(self): - return { - 0x010403: None, - 0x020000: "Qt_1_43", - 0x020100: "Qt_2_00", - 0x020200: "Qt_2_1_0", - 0x020300: "Qt_2_2_0", - 0x020301: "Qt_2_3_0", - 0x030000: "Qt_2_3_1", - 0x030001: "Qt_3_0_0", - 0x030002: "Qt_3_0_1", - 0x030004: "Qt_3_0_2", - 0x030005: "Qt_3_0_4", - 0x030006: "Qt_3_0_5", - 0x030100: "Qt_3_0_6", - 0x030101: "Qt_3_1_0", - 0x030102: "Qt_3_1_1", - 0x030200: "Qt_3_1_2", - 0x030300: "Qt_3_2_0", - 0x030305: "Qt_3_3_0", - 0x030306: "Qt_3_3_5", - 0x040000: "Qt_3_3_6" - } - - def code(self, extra_include_dirs, extra_lib_dir, extra_libs): - generate_code("qt", extra_include_dirs=extra_include_dirs, extra_lib_dir=extra_lib_dir, extra_libs=extra_libs) - - if "qtext" in pyqt_modules: - generate_code("qtext", extra_define=qsci_define, extra_include_dirs=[opt_qsciincdir], extra_lib_dir=opt_qscilibdir, extra_libs=["qscintilla"], sip_flags=qtext_sip_flags) - - if "qtgl" in pyqt_modules: - generate_code("qtgl", opengl=1) - - if "qtpe" in pyqt_modules: - generate_code("qtpe", extra_libs=["qpe"], sip_flags=qtpe_sip_flags) - - if "qtui" in pyqt_modules: - generate_code("qtui", extra_libs=["qui"]) - - if "qtaxcontainer" in pyqt_modules: - generate_code("qtaxcontainer", extra_libs=["qaxcontainer"]) - - # The rest don't need special handling. - for m in ("qtcanvas", "qtnetwork", "qtsql", "qttable", "qtxml"): - if m in pyqt_modules: - generate_code(m) - - def tools(self): - tool_dirs = [] - - if qt_version >= 0x030000: - # The Professional Edition needs special handling. - prof = (qt_edition == "professional") - - sipconfig.inform("Creating pyuic Makefile...") - - if prof or "qtxml" not in pyqt_modules: - buildfile= "pyuic-prof.sbf" - - for xml in ("qdom.cpp", "qxml.cpp"): - shutil.copyfile(qt_dir + "/src/xml/" + xml, "pyuic3/" + xml) - else: - buildfile= "pyuic.sbf" - - makefile = sipconfig.ProgramMakefile( - configuration=sipcfg, - build_file=buildfile, - dir="pyuic3", - install_dir=opt_pyqtbindir, - console=1, - qt=1, - warnings=1 - ) - - makefile.extra_defines.append("UIC") - makefile.extra_defines.append("QT_INTERNAL_XML") - - if prof or "qtxml" not in pyqt_modules: - makefile.extra_defines.append("QT_MODULE_XML") - - if qt_version < 0x030100: - makefile.extra_include_dirs.append(qt_dir + "/src/3rdparty/zlib") - - makefile.generate() - tool_dirs.append("pyuic3") - - sipconfig.inform("Creating pylupdate Makefile...") - - if prof or "qtxml" not in pyqt_modules: - buildfile= "pylupdate-prof.sbf" - - shutil.copyfile(qt_dir + "/src/xml/qxml.cpp", "pylupdate3/qxml.cpp") - else: - buildfile= "pylupdate.sbf" - - makefile = sipconfig.ProgramMakefile( - configuration=sipcfg, - build_file=buildfile, - dir="pylupdate3", - install_dir=opt_pyqtbindir, - console=1, - qt=1, - warnings=1 - ) - - makefile.extra_defines.append("QT_INTERNAL_XML") - - if prof or "qtxml" not in pyqt_modules: - makefile.extra_defines.append("QT_MODULE_XML") - - makefile.generate() - tool_dirs.append("pylupdate3") - elif qt_version >= 0x020000: - sipconfig.inform("Creating pyuic Makefile...") - - makefile = sipconfig.ProgramMakefile( - configuration=sipcfg, - build_file="pyuic.sbf", - dir="pyuic2", - install_dir=opt_pyqtbindir, - console=1, - qt=1, - warnings=1 - ) - - makefile.extra_defines.append("UIC") - makefile.extra_include_dirs.append(qt_dir + "/src/3rdparty/zlib") - - makefile.generate() - tool_dirs.append("pyuic2") - - return tool_dirs - - -def inform_user(): - """Tell the user the option values that are going to be used. - """ - if qt_edition: - edstr = qt_edition + " edition " - else: - edstr = "" - - sipconfig.inform("Qt v%s %sis being used." % (sipconfig.version_to_string(qt_version), edstr)) - sipconfig.inform("SIP %s is being used." % sipcfg.sip_version_str) - sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules)) - - if disabled_classes: - sipconfig.inform("Support for these Qt classes has been disabled: %s." % string.join(disabled_classes)) - - sipconfig.inform("The PyQt modules will be installed in %s." % opt_pyqtmoddir) - sipconfig.inform("The PyQt .sip files will be installed in %s." % opt_pyqtsipdir) - - sipconfig.inform("The Qt header files are in %s." % qt_incdir) - sipconfig.inform("The %s Qt library is in %s." % (opt_qtlib, qt_libdir)) - - if qt_version >= 0x020000: - sipconfig.inform("pyuic will be installed in %s." % opt_pyqtbindir) - - if qt_version >= 0x030000: - sipconfig.inform("pylupdate will be installed in %s." % opt_pyqtbindir) - - if opt_vendorcheck: - sipconfig.inform("PyQt will only be usable with signed interpreters.") - - -def create_config(module, template, macros): - """Create the PyQt configuration module so that it can be imported by build - scripts. - - module is the module file name. - template is the template file name. - macros is the dictionary of platform specific build macros. - """ - sipconfig.inform("Creating %s..." % module) - - content = { - "pyqt_config_args": sys.argv[1:], - "pyqt_version": pyqt_version, - "pyqt_version_str": pyqt_version_str, - "pyqt_bin_dir": opt_pyqtbindir, - "pyqt_mod_dir": opt_pyqtmoddir, - "pyqt_sip_dir": opt_pyqtsipdir, - "pyqt_modules": pyqt_modules, - "pyqt_qt_sip_flags": qt_sip_flags, - "qt_version": qt_version, - "qt_edition": qt_edition, - "qt_winconfig": qt_winconfig, - "qt_framework": 0, - "qt_threaded": qt_threaded, - "qt_dir": qt_dir, - "qt_inc_dir": qt_incdir, - "qt_lib": opt_qtlib, - "qt_lib_dir": qt_libdir - } - - if "qtaxcontainer" in pyqt_modules: - content["pyqt_qtaxcontainer_sip_flags"] = qt_sip_flags - - if "qtcanvas" in pyqt_modules: - content["pyqt_qtcanvas_sip_flags"] = qt_sip_flags - - if "qtext" in pyqt_modules: - content["pyqt_qtext_sip_flags"] = qtext_sip_flags - - # These are internal. - content["_pyqt_qscintilla_defines"] = qsci_define - content["_pyqt_qscintilla_inc_dir"] = opt_qsciincdir - content["_pyqt_qscintilla_lib_dir"] = opt_qscilibdir - - if "qtgl" in pyqt_modules: - content["pyqt_qtgl_sip_flags"] = qt_sip_flags - - if "qtnetwork" in pyqt_modules: - content["pyqt_qtnetwork_sip_flags"] = qt_sip_flags - - if "qtpe" in pyqt_modules: - content["pyqt_qtpe_sip_flags"] = qtpe_sip_flags - - if "qtsql" in pyqt_modules: - content["pyqt_qtsql_sip_flags"] = qt_sip_flags - - if "qttable" in pyqt_modules: - content["pyqt_qttable_sip_flags"] = qt_sip_flags - - if "qtui" in pyqt_modules: - content["pyqt_qtui_sip_flags"] = qt_sip_flags - - if "qtxml" in pyqt_modules: - content["pyqt_qtxml_sip_flags"] = qt_sip_flags - - sipconfig.create_config_module(module, template, content, macros) - - -def compile_qt_program(name, define=None, include_dir=None, lib_dir=None, lib=None, opengl=0, python=0, debug=0): - """Compile a simple Qt application. - - name is the name of the single source file. - define is a name to add to the list of preprocessor defines. - include_dir is the name of a directory to add to the list of include - directories. - lib_dir is the name of a directory to add to the list of library - directories. - lib is the name of a library to add to the list of libraries. - opengl is set if the application uses OpenGL. - python is set if the application #includes Python.h. - debug is set if this is a debug build. - - Returns the name of the executable suitable for running or None if it - wasn't created. - """ - makefile = sipconfig.ProgramMakefile(sipcfg, console=1, qt=1, warnings=0, opengl=opengl, python=python, debug=debug) - - if define: - makefile.extra_defines.append(define) - - if include_dir: - makefile.extra_include_dirs.append(include_dir) - - if lib_dir: - makefile.extra_lib_dirs.append(lib_dir) - - if lib: - makefile.extra_libs.append(lib) - - exe, build = makefile.build_command(name) - - # Make sure the executable file doesn't exist. - try: - os.remove(exe) - except OSError: - pass - - if not opt_verbose and hasattr(os, "popen4"): - fin, fout = os.popen4(build) - - # Read stdout and stderr until there is no more output. - lout = fout.readline() - while lout: - lout = fout.readline() - - fin.close() - fout.close() - - try: - os.wait() - except: - pass - else: - os.system(build) - - if not os.access(exe, os.X_OK): - return None - - if sys.platform != "win32": - exe = "./" + exe - - return exe - - -def check_qscintilla(): - """See if QScintilla can be found and what its version is. - """ - # Set the defaults if they haven't been explicitly specified. - global opt_qsciincdir, opt_qscilibdir - - if opt_qsciincdir is None: - opt_qsciincdir = qt_incdir - - if opt_qscilibdir is None: - opt_qscilibdir = qt_libdir - - # Find the QScintilla header files. - sciglobal = os.path.join(opt_qsciincdir, "qextscintillaglobal.h") - - if os.access(sciglobal, os.F_OK): - # Get the QScintilla version number. - global qsci_version - - qsci_version, sciversstr = sipconfig.read_version(sciglobal, "QScintilla", "QSCINTILLA_VERSION", "QSCINTILLA_VERSION_STR") - - if glob.glob(os.path.join(opt_qscilibdir, "*qscintilla*")): - sipconfig.inform("QScintilla %s is being used." % sciversstr) - - # If we find a snapshot then set a negative version number as a - # special case. - if string.find(sciversstr, "snapshot") >= 0: - qsci_version = -1 - else: - sipconfig.inform("The QScintilla library could not be found in %s and so the qtext module will not be built. If QScintilla is installed then use the -o argument to explicitly specify the correct directory." % opt_qscilibdir) - else: - sipconfig.inform("qextscintillaglobal.h could not be found in %s and so the qtext module will not be built. If QScintilla is installed then use the -n argument to explicitly specify the correct directory." % opt_qsciincdir) - - -def check_vendorid(): - """See if the VendorID library and include file can be found. - """ - global opt_vendorcheck - - if opt_vendorcheck: - if os.access(os.path.join(opt_vendincdir, "vendorid.h"), os.F_OK): - if glob.glob(os.path.join(opt_vendlibdir, "*vendorid*")): - sipconfig.inform("The VendorID package was found.") - else: - opt_vendorcheck = 0 - sipconfig.inform("The VendorID library could not be found in %s and so signed interpreter checking will be disabled. If the VendorID library is installed then use the -m argument to explicitly specify the correct directory." % opt_vendlibdir) - else: - opt_vendorcheck = 0 - sipconfig.inform("vendorid.h could not be found in %s and so signed interpreter checking will be disabled. If the VendorID package is installed then use the -l argument to explicitly specify the correct directory." % opt_vendincdir) - - -def check_module(mname, incfile, ctor, define=None, include_dir=None, lib_dir=None, lib=None, opengl=0): - """See if a module can be built and, if so, add it to the global list of - modules. - - mname is the name of the module. - incfile is the name of the include file needed for the test. - ctor is the C++ constructor of the class being used for the test. - define is a name to add to the list of preprocessor defines. - include_dir is the name of a directory to add to the list of include - directories. - lib_dir is the name of a directory to add to the list of library - directories. - lib is the name of a library to add to the list of libraries. - opengl is set if the application uses OpenGL. - """ - # Check the module's main .sip file exists. - if os.access(os.path.join("sip", mname, mname + "mod.sip"), os.F_OK): - sipconfig.inform("Checking to see if the %s module should be built..." % mname) - - if check_class(incfile, ctor, define, include_dir, lib_dir, lib, opengl): - pyqt_modules.append(mname) - - -def check_class(incfile, ctor, define=None, include_dir=None, lib_dir=None, lib=None, opengl=0): - """Return non-zero if a class is available. - - incfile is the name of the include file needed for the test. - ctor is the C++ constructor of the class. - define is a name to add to the list of preprocessor defines. - include_dir is the name of a directory to add to the list of include - directories. - lib_dir is the name of a directory to add to the list of library - directories. - lib is the name of a library to add to the list of libraries. - opengl is set if the application uses OpenGL. - """ - cfgtest = "cfgtest.cpp" - - f = open(cfgtest, "w") - - f.write("""#include <%s> - -int main(int argc, char **argv) -{ - new %s; -} -""" % (incfile, ctor)) - - f.close() - - return compile_qt_program(cfgtest, define, include_dir, lib_dir, lib, opengl) - - -def check_plugin(cname, incfile): - """Return non-zero if a class that might be a plugin is in the main Qt - library. - - cname is the name of the class. - incfile is the name of the include file needed for the test. - """ - sipconfig.inform("Checking to see if the %s class is built in..." % cname) - - return check_class(incfile, cname + "()") - - -def create_features_file(name): - """Create the features file. - - name is the name of the features file in the current directory. - """ - # The features that a given Qt configuration may or may not support. Note - # that STYLE_WINDOWSXP and ASSISTANTCLIENT require special handling. - flist = ["ACTION", "CLIPBOARD", "CODECS", "COLORDIALOG", "DATASTREAM", - "DIAL", "DNS", "DOM", "DRAGANDDROP", "ICONVIEW", "IMAGE_TEXT", - "INPUTDIALOG", "FILEDIALOG", "FONTDATABASE", "FONTDIALOG", - "MESSAGEBOX", "MIMECLIPBOARD", - "NETWORKPROTOCOL", "NETWORKPROTOCOL_FTP", "NETWORKPROTOCOL_HTTP", - "PICTURE", "PRINTDIALOG", "PRINTER", "PROGRESSDIALOG", - "PROPERTIES", - "SEMIMODAL", "SIZEGRIP", "SOUND", "SPLITTER", "STYLE_CDE", - "STYLE_INTERLACE", "STYLE_MOTIF", "STYLE_MOTIFPLUS", - "STYLE_PLATINUM", "STYLE_SGI", "STYLE_WINDOWS", - "TABDIALOG", "TABLE", "TABLEVIEW", "TRANSFORMATIONS", - "TRANSLATION", "WIZARD", "WORKSPACE"] - - # Generate the program which will generate the features file. - f = open("mkfeatures.cpp", "w") - - f.write( -"""#include -#include -#include -#include - -int main(int argc,char **argv) -{ - FILE *fp; - QApplication app(argc,argv,0); - - if ((fp = fopen("%s","w")) == NULL) - { - printf("Unable to create '%s'\\n"); - return 1; - } - -#if !defined(WITH_THREAD) || !defined(QT_THREAD_SUPPORT) - fprintf(fp,"-x Qt_THREAD_SUPPORT\\n"); -#endif - -#if !defined(Q_WS_WIN) || QT_VERSION < 0x030000 || defined(QT_NO_STYLE_WINDOWSXP) - fprintf(fp,"-x Qt_STYLE_WINDOWSXP\\n"); -#endif - -#if defined(Q_OS_WIN64) - fprintf(fp,"-x Qt_Q_LONG_IS_long\\n"); -#endif -""" % (name, name)) - - for feat in flist: - f.write( -""" -#if defined(QT_NO_%s) - fprintf(fp,"-x Qt_%s\\n"); -#endif -""" % (feat, feat)) - - # Disable QAssistantClient for the Professional Edition. - if "QAssistantClient" in disabled_classes: - f.write( -""" - fprintf(fp,"-x Qt_ASSISTANTCLIENT\\n"); -""") - - f.write( -""" - fclose(fp); - - return 0; -} -""") - - f.close() - - # Build the program. - exe = compile_qt_program("mkfeatures.cpp", include_dir=sipcfg.py_inc_dir, python=1) - if not exe: - sipconfig.error("Unable to build mkfeatures utility.") - - os.system(exe) - - # Check the file was created. - if not os.access(name, os.F_OK): - sipconfig.error("There was an error creating the features file.") - - # Check what features have been implemented as plugins and disable them. - plugins = [("STYLE_CDE", "qcdestyle.h", "QCDEStyle"), - ("STYLE_INTERLACE", "qinterlacestyle.h", "QInterlaceStyle"), - ("STYLE_MOTIF", "qmotifstyle.h", "QMotifStyle"), - ("STYLE_MOTIFPLUS", "qmotifplusstyle.h", "QMotifPlusStyle"), - ("STYLE_PLATINUM", "qplatinumstyle.h", "QPlatinumStyle"), - ("STYLE_SGI", "qsgistyle.h", "QSGIStyle"), - ("STYLE_WINDOWSXP", "qwindowsxpstyle.h", "QWindowsXPStyle"), - ("STYLE_WINDOWS", "qwindowsstyle.h", "QWindowsStyle")] - - f = open(name, "a") - - for (feat, incfile, cname) in plugins: - if not check_plugin(cname, incfile): - f.write("-x Qt_%s\n" % feat) - disabled_classes.append(cname) - - f.close() - - -def get_feature_flags(): - """Return the list of SIP flags that exclude unsupported Qt features. - """ - featfile = "features" - - # Create the features file if it doesn't exist and we are not keeping it. - if opt_keepfeatures and os.access(featfile,os.F_OK): - sipconfig.inform("Using existing features file.") - else: - sipconfig.inform("Creating features file...") - create_features_file(featfile) - - # Parse the features file. - ff = open(featfile, "r") - - flags = [] - - line = ff.readline() - while line: - flags.extend(string.split(line)) - line = ff.readline() - - return flags - - -def set_sip_flags(): - """Set the SIP platform, version and feature flags. - """ - qt_sip_flags.extend(pyqt.sip_flags()) - - # If we don't check for signed interpreters, we exclude the 'VendorID' - # feature - if not opt_vendorcheck: - qt_sip_flags.append("-x") - qt_sip_flags.append("VendorID") - - # Handle the platform tag. - if opt_qtpetag: - plattag = "WS_QWS" - elif sys.platform == "win32": - plattag = "WS_WIN" - elif sys.platform == "darwin": - if "__DARWIN_X11__" in sipcfg.build_macros()["DEFINES"]: - plattag = "WS_X11" - else: - plattag = "WS_MACX" - else: - plattag = "WS_X11" - - qt_sip_flags.append("-t") - qt_sip_flags.append(plattag) - - # Handle the Qt version tag. - verstag = sipconfig.version_to_sip_tag(qt_version, pyqt.qt_version_tags(), "Qt") - - if verstag: - qt_sip_flags.append("-t") - qt_sip_flags.append(verstag) - - # The flags so far are common. - for f in qt_sip_flags: - qtext_sip_flags.append(f) - qtpe_sip_flags.append(f) - - # Handle the QScintilla version tag. - if qsci_version: - qscitags = { - 0x010100: None, - 0x010200: "QScintilla_1_1", - 0x010300: "QScintilla_1_2", - 0x010400: "QScintilla_1_3", - 0x010500: "QScintilla_1_4", - 0x010600: "QScintilla_1_5", - 0x010700: "QScintilla_1_6", - 0x020000: "QScintilla_1_7" - } - - verstag = sipconfig.version_to_sip_tag(qsci_version, qscitags, "QScintilla") - - if verstag: - qtext_sip_flags.append("-t") - qtext_sip_flags.append(verstag) - - # Handle the Qtopia tag. - if opt_qtpetag: - qtpe_sip_flags.append("-t") - qtpe_sip_flags.append(opt_qtpetag) - - -def generate_code(mname, extra_cflags=None, extra_cxxflags=None, extra_define=None, extra_include_dirs=None, extra_lflags=None, extra_lib_dir=None, extra_libs=None, opengl=0, sip_flags=None): - """Generate the code for a module. - - mname is the name of the module. - 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_dirs is a list of directories 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_libs is a list of the names of extra libraries 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) - - 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 + '"'] - - if sip_flags is None: - sip_flags = qt_sip_flags - - argv.extend(sip_flags) - - if opt_concat: - argv.append("-j") - argv.append(str(opt_split)) - - if opt_tracing: - argv.append("-r") - - argv.append("-c") - argv.append(mname) - - buildfile = os.path.join(mname, mname + ".sbf") - argv.append("-b") - argv.append(buildfile) - - argv.append("-I") - argv.append("sip") - - # SIP assumes POSIX style path separators. - argv.append(string.join(["sip", mname, mname + "mod.sip"], "/")) - - os.system(string.join(argv)) - - # Check the result. - if not os.access(buildfile, os.F_OK): - sipconfig.error("Unable to create the C++ code.") - - # Generate the Makefile. - sipconfig.inform("Creating the Makefile for the %s module..." % mname) - - installs = [] - sipfiles = [] - - for s in glob.glob("sip/" + mname + "/*.sip"): - sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s))) - - installs.append([sipfiles, os.path.join(pyqt.sip_dir(), mname)]) - - makefile = sipconfig.SIPModuleMakefile( - configuration=sipcfg, - build_file=mname + ".sbf", - dir=mname, - install_dir=pyqt.module_dir(), - installs=installs, - qt=1, - opengl=opengl, - warnings=1, - 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 extra_define: - makefile.extra_defines.append(extra_define) - - if extra_include_dirs: - makefile.extra_include_dirs.extend(extra_include_dirs) - - if extra_lflags: - makefile.extra_lflags.append(extra_lflags) - - if extra_lib_dir: - makefile.extra_lib_dirs.append(extra_lib_dir) - - if extra_libs: - makefile.extra_libs.extend(extra_libs) - - makefile.generate() - - -def check_license(): - """Handle the validation of the PyQt license. - """ - try: - import license - ltype = license.LicenseType - lname = license.LicenseName - - try: - lfile = license.LicenseFile - except AttributeError: - lfile = None - except ImportError: - ltype = None - - if ltype is None: - ltype = "GPL" - lname = "GNU General Public License" - lfile = None - - sipconfig.inform("This is the %s version of PyQt %s (licensed under the %s) for Python %s on %s." % (ltype, pyqt_version_str, lname, string.split(sys.version)[0], sys.platform)) - - # Common checks. - if ltype == "GPL" and sys.platform == "win32": - error("You cannot use the GPL version of PyQt under Windows.") - - try: - qted = qt_edition - except AttributeError: - qted = None - - if qted and ltype != "internal": - if (qted == "free" and ltype != "GPL") or (qted != "free" and ltype == "GPL"): - sipconfig.error("This version of PyQt and the %s edition of Qt have incompatible licenses." % qted) - - # Confirm the license. - print - print "Type 'L' to view the license." - print "Type 'yes' to accept the terms of the license." - print "Type 'no' to decline the terms of the license." - print - - while 1: - try: - resp = raw_input("Do you accept the terms of the license? ") - except: - resp = "" - - resp = string.lower(string.strip(resp)) - - if resp == "yes": - break - - if resp == "no": - sys.exit(0) - - if resp == "l": - os.system("more LICENSE") - - # If there should be a license file then check it is where it should be. - if lfile: - if os.access(os.path.join("sip", lfile), os.F_OK): - sipconfig.inform("Found the license file %s." % lfile) - else: - sipconfig.error("Please copy the license file %s to the sip directory." % lfile) - - -def get_build_macros(overrides): - """Return the dictionary of platform specific build macros from the Qt - installation. Return None if any of the overrides was invalid. - - overrides is a list of macros overrides from the user. - """ - # Get the name of the qmake configuration file to take the macros from. - if "QMAKESPEC" in os.environ.keys(): - fname = os.path.join(qt_dir, "mkspecs", os.environ["QMAKESPEC"], "qmake.conf") - else: - fname = os.path.join(qt_dir, "mkspecs", "default", "qmake.conf") - - if not os.access(fname, os.F_OK): - sipconfig.error("Unable to find the default configuration file %s. You can use the QMAKESPEC environment variable to specify the correct platform instead of \"default\"." % fname) - - # Add the Qt specific macros to the default. - names = sipcfg.build_macros().keys() - names.append("INCDIR_QT") - names.append("LIBDIR_QT") - names.append("MOC") - - # Make sure $QTDIR reflects any directory passed on the command line. - os.environ["QTDIR"] = qt_dir - - properties = { - "QT_INSTALL_BINS": os.path.join(qt_dir, "bin"), - "QT_INSTALL_HEADERS": os.path.join(qt_dir, "include"), - "QT_INSTALL_LIBS": os.path.join(qt_dir, "lib") - } - - return sipconfig.parse_build_macros(fname, names, overrides, properties) - - -def check_qt_installation(macros): - """Check the Qt installation and get the version number and edition. - - macros is the dictionary of build macros. - """ - # Get the Makefile generator. - generator = macros["MAKEFILE_GENERATOR"] - - # Set the Qt include and lib directories. - global qt_incdir, qt_libdir - - qt_incdir = macros["INCDIR_QT"] - - if not qt_incdir: - qt_incdir = os.path.join(qt_dir, "include") - macros["INCDIR_QT"] = qt_incdir - - qt_libdir = macros["LIBDIR_QT"] - - if not qt_libdir: - qt_libdir = os.path.join(qt_dir, "lib") - macros["LIBDIR_QT"] = qt_libdir - - # Check the Qt header files have been installed. Quietly check for Qt v4. - qt4_d = os.path.join(qt_incdir, "QtCore") - - qglobal = os.path.join(qt4_d, "qglobal.h") - - if not os.access(qglobal, os.F_OK): - qglobal = os.path.join(qt_incdir, "qglobal.h") - - if not os.access(qglobal, os.F_OK): - sipconfig.error("qglobal.h could not be found in %s." % qt_incdir) - - # Get the Qt version number. - global qt_version - - qt_version, ignore = sipconfig.read_version(qglobal, "Qt", "QT_VERSION") - - # Early versions of Qt for the Mac didn't include everything. Rather than - # maintain these in the future we just mandate a later version. - if sys.platform == "darwin" and qt_version < 0x030100: - sipconfig.error("PyQt for MacOS/X requires Qt v3.1.0 or later.") - - # The way SIP v4.2 and later handle connections between signals and Python - # slots only works with Qt v3 and later. Therefore Qt v2 and earlier needs - # SIP v3. - if qt_version < 0x030000: - sipconfig.error("Qt v2.x and earlier require SIP v3.x.") - - if qt_version >= 0x040000: - sipconfig.error("Qt v4.x requires PyQt v4.x.") - - # Try and work out which edition it is. - global qt_edition - - if qt_version >= 0x030000: - if opt_qconfigdir: - qconfigdir = opt_qconfigdir - else: - qconfigdir = qt_incdir - - qconfig = os.path.join(qconfigdir, "qconfig.h") - - if not os.access(qconfig,os.F_OK): - sipconfig.error("qconfig.h could not be found in %s." % qconfigdir) - - f = open(qconfig) - l = f.readline() - - while l: - wl = string.split(l) - if len(wl) == 3 and wl[0] == "#define" and wl[1] == "QT_PRODUCT_LICENSE": - qt_edition = wl[2][4:-1] - break - - l = f.readline() - - f.close() - - if not qt_edition: - sipconfig.error("The Qt edition could not be determined by parsing %s." % qconfig) - elif qt_version == 0x020300 and sys.platform == "win32": - # See if we have the Qt v2 non-commercial version. - if os.access(os.path.join(qt_libdir, "qt-mt230nc.lib"), os.F_OK): - qt_edition = "non-commercial" - - if sys.platform == "win32": - # Work out how Qt was built on Windows. - - global qt_winconfig - - try: - f = open(os.path.join(qt_dir, ".qtwinconfig"), "r") - except IOError: - f = None - - if f: - cfg = f.readline() - f.close() - - val = string.find(cfg, "=") - - if val >= 0: - qt_winconfig = string.strip(cfg[val + 1:]) - else: - # Assume it was built as a DLL. - qt_winconfig = "shared" - - # Determine the Qt library to link against and if it has thread support. - global qt_threaded - - resolve_qt3_library(generator) - - if opt_qtlib in ("qt-mt", "qt-mtedu", "qt-mteval", "qte-mt", "qtmt", "qtmtedu", "qtmteval"): - qt_threaded = 1 - - global pyqt - - pyqt = ConfigurePyQt3() - - # We haven't yet factored out sipconfig's knowledge of how to build Qt - # binaries and it is expecting to find these in the configuration when it - # generates the Makefiles. - sipcfg.qt_version = qt_version - sipcfg.qt_edition = qt_edition - sipcfg.qt_winconfig = qt_winconfig - sipcfg.qt_framework = 0 - sipcfg.qt_threaded = qt_threaded - sipcfg.qt_dir = qt_dir - sipcfg.qt_lib = opt_qtlib - sipcfg.qt_lib_dir = qt_libdir - - -def resolve_qt3_library(generator): - """See which version of the Qt v3 library can be found. (We can't trust - the configuration files.) - - generator is the name of the Makefile generator. - """ - global opt_qtlib - - if opt_qtlib: - if not is_qt_library(generator, opt_qtlib): - sipconfig.error("The %s Qt library could not be found in %s." % (opt_qtlib, qt_libdir)) - else: - stlib = is_qt_library(generator, "qt") - mtlib = is_qt_library(generator, "qt-mt") - edlib = is_qt_library(generator, "qt-mtedu") - evlib = is_qt_library(generator, "qt-mteval") - emlib = is_qt_library(generator, "qte") - etlib = is_qt_library(generator, "qte-mt") - - # Borland likes to be a little different. - bmtlib = is_qt_library(generator, "qtmt") - bedlib = is_qt_library(generator, "qtmtedu") - bevlib = is_qt_library(generator, "qtmteval") - - names = [] - - if stlib: - opt_qtlib = "qt" - names.append(opt_qtlib) - - if mtlib: - opt_qtlib = "qt-mt" - names.append(opt_qtlib) - - if edlib: - opt_qtlib = "qt-mtedu" - names.append(opt_qtlib) - - if evlib: - opt_qtlib = "qt-mteval" - names.append(opt_qtlib) - - if emlib: - opt_qtlib = "qte" - names.append(opt_qtlib) - - if etlib: - opt_qtlib = "qte-mt" - names.append(opt_qtlib) - - if bmtlib: - opt_qtlib = "qtmt" - names.append(opt_qtlib) - - if bedlib: - opt_qtlib = "qtmtedu" - names.append(opt_qtlib) - - if bevlib: - opt_qtlib = "qtmteval" - names.append(opt_qtlib) - - if not names: - sipconfig.error("No Qt libraries could be found in %s." % qt_libdir) - - if len(names) > 1: - sipconfig.error("These Qt libraries were found: %s. Use the -y argument to explicitly specify which you want to use." % string.join(names)) - - -def is_qt_library(generator, lib): - """See if a particular Qt library is installed. - - generator is the name of the Makefile generator. - lib is the name of the library. - """ - if generator in ("MSVC", "MSVC.NET", "BMAKE"): - lpatts = [lib + "[0-9]*.lib", lib + ".lib"] - else: - lpatts = ["lib" + lib + ".*"] - - for lpatt in lpatts: - lmatch = glob.glob(os.path.join(qt_libdir, lpatt)) - - if lmatch: - return lmatch - - return [] - - -def main(argv): - """Create the configuration module module. - - argv is the list of command line arguments. - """ - # Check SIP is new enough. - if sipcfg.sip_version_str[:8] != "snapshot": - if sipcfg.sip_version < sip_min_version: - sipconfig.error("This version of PyQt requires SIP v%s or later" % sipconfig.version_to_string(sip_min_version)) - - # Parse the command line. - try: - optlist, args = getopt.getopt(argv[1:], "ha:b:cd:fg:ij:kl:m:n:o:q:rsuv:wy:") - except getopt.GetoptError: - usage() - - global qt_dir, opt_qtlib, opt_qconfigdir - global opt_pyqtbindir, opt_pyqtmoddir, opt_pyqtsipdir - global opt_qtpetag, opt_static, opt_debug, opt_concat - global opt_split, opt_tracing, opt_verbose, opt_keepfeatures - global opt_qsciincdir, opt_qscilibdir, qsci_define - global opt_vendorcheck, opt_vendincdir, opt_vendlibdir - - for opt, arg in optlist: - if opt == "-h": - usage(0) - elif opt == "-a": - opt_qtpetag = arg - elif opt == "-b": - opt_pyqtbindir = os.path.abspath(arg) - elif opt == "-c": - opt_concat = 1 - elif opt == "-d": - opt_pyqtmoddir = os.path.abspath(arg) - elif opt == "-f": - opt_keepfeatures = 1 - elif opt == "-g": - opt_qconfigdir = os.path.abspath(arg) - elif opt == "-i": - opt_vendorcheck = 1 - elif opt == "-j": - try: - opt_split = int(arg) - except: - usage() - elif opt == "-k": - opt_static = 1 - elif opt == "-l": - opt_vendincdir = arg - elif opt == "-m": - opt_vendlibdir = arg - elif opt == "-n": - opt_qsciincdir = arg - elif opt == "-o": - opt_qscilibdir = arg - elif opt == "-q": - qt_dir = os.path.abspath(arg) - elif opt == "-r": - opt_tracing = 1 - elif opt == "-s": - qsci_define = "" - elif opt == "-u": - opt_debug = 1 - elif opt == "-v": - opt_pyqtsipdir = os.path.abspath(arg) - elif opt == "-w": - opt_verbose = 1 - elif opt == "-y": - if arg in ("qt", "qt-mt", "qt-mtedu", "qt-mteval", "qte", "qte-mt", "qtmt", "qtmtedu"): - opt_qtlib = arg - else: - usage() - - # Check that we know the name of the Qt root directory. - if not qt_dir: - sipconfig.error("A Qt installation could not be found. Use use the -q argument or the QTDIR environment variable to explicitly specify the correct directory.") - - # When building static libraries, signed interpreter checking makes no - # sense. - if opt_vendorcheck and opt_static: - sipconfig.error("Using the VendorID package when building static libraries makes no sense.") - - # Replace the existing build macros with the ones from the Qt installation. - macros = get_build_macros(args) - - if macros is None: - usage() - - sipcfg.set_build_macros(macros) - - # Check Qt is what we need. - check_qt_installation(macros) - - # Check the licenses are compatible. - check_license() - - # Check for QScintilla. - check_qscintilla() - - # Check which modules to build. - qtmod_lib = pyqt.check_modules() - - # Check for the VendorID package. - check_vendorid() - - # Set the SIP platform, version and feature flags. - set_sip_flags() - - # Tell the user what's been found. - inform_user() - - # Generate the code. - - extra_include_dirs = [] - extra_libs = [] - - if qtmod_lib: - extra_libs.append(qtmod_lib) - - if opt_vendorcheck: - extra_include_dirs.append(opt_vendincdir) - extra_lib_dir = opt_vendlibdir - extra_libs.append("vendorid") - else: - extra_lib_dir = None - - pyqt.code(extra_include_dirs, extra_lib_dir, extra_libs) - - # Create the additional Makefiles. - sipconfig.inform("Creating top level Makefile...") - - sipconfig.ParentMakefile( - configuration=sipcfg, - subdirs=pyqt_modules + pyqt.tools(), - installs=(pyqt.module_installs(), pyqt.module_dir()) - ).generate() - - # Install the configuration module. - create_config("pyqtconfig.py", "pyqtconfig.py.in", macros) - - -############################################################################### -# The script starts here. -############################################################################### - -if __name__ == "__main__": - try: - main(sys.argv) - except SystemExit: - raise - except: - print \ -"""An internal error occured. Please report all the output from the program, -including the following traceback, to support@riverbankcomputing.co.uk. -""" - raise diff --git a/python/pyqt/doc/PyQt.html b/python/pyqt/doc/PyQt.html deleted file mode 100644 index 78c04c2a..00000000 --- a/python/pyqt/doc/PyQt.html +++ /dev/null @@ -1,12845 +0,0 @@ - -Python Bindings for Qt (3.17.2)

Python Bindings for Qt (3.17.2)

Phil Thompson

This document describes a set of Python bindings for the Qt widget set. - Contact the author at <phil@riverbankcomputing.co.uk>. -


Introduction

PyQt is a set of Python bindings for the Qt toolkit and available for all -platforms supported by Qt, including Windows, Linux, UNIX, MacOS/X and embedded -systems such as the Sharp Zaurus and the Compaq iPAQ. They have been tested -against Qt versions 1.43 to 3.3.7, Qt Non-commercial, Qtopia 1.5.0, and Python -versions 1.5 to 2.5. Qt/Embedded v3 is not supported. Qt v4 is supported -by PyQt v4.

PyQt is available under the GPL license for use with the GPL version of Qt, a -a commercial license for use with the commercial version of Qt, a -non-commercial license for use with the non-commercial version of Qt v2, and an -educational license for use with the educational version of Qt.

PyQt is built using SIP (a tool for generating Python extension modules for -C++ class libraries). SIP v4.6 or later must be installed in order to build -and run this version of PyQt.

PyQt for MacOS/X requires Qt v3.1.0 or later and Python v2.3 or later.

The bindings are implemented as a number of Python modules

  • qt is the main module and contains the core classes and most -user interface widgets.

  • qtaxcontainer contains a sub-set of the classes implemented -in Qt's QAxContainer module, part of Qt's ActiveQt framework.

  • qtcanvas contains the classes implemented in Qt's Canvas -module.

  • qtgl contains the classes implemented in Qt's OpenGL module.

  • qtnetwork contains the classes implemented in Qt's Network -module.

  • qtpe contains the classes implemented in Qtopia (originally -called the Qt Palmtop Environment). It is only supported with Qt/Embedded.

  • qtsql contains the classes implemented in Qt's SQL module.

  • qttable contains the classes implemented in Qt's Table -module.

  • qtui contains the classes implemented in Qt's qui library. -These allow GUIs to be created directly from Qt Designer's -.ui files.

  • qtxml contains the classes implemented in Qt's XML module.

  • qtext contains useful third-party classes that are not part -of Qt. At the moment it contains bindings for QScintilla, the port to Qt of -the Scintilla programmer's editor class.

PyQt also includes the pyuic and -pylupdate utilities which correspond to the Qt -uic and lupdate utilities. -pyuic converts the GUI designs created with Qt Designer to -executable Python code. pylupdate scans Python code, -extracts all strings that are candidates for internationalisation, and creates -an XML file for use by Qt Linguist.

-
-

Other PyQt Goodies

Using Qt Designer

Qt Designer is a GPL'ed GUI design editor provided by Trolltech as part of Qt. -It generates an XML description of a GUI design. Qt includes -uic which generates C++ code from that XML.

PyQt includes pyuic which generates Python code from the -same XML. The Python code is self contained and can be executed immediately.

It is sometimes useful to be able to include some specific Python code in the -output generated by pyuic. For example, if you are using -custom widgets, pyuic has no way of knowing the name of the -Python module containing the widget and so cannot generate the required -import statement. To help get around this, -pyuic will extract any lines entered in the -Comment field of Qt Designer's -Form Settings dialog that begin with -Python: and copies them to the generated output.

Here's a simple example showing the contents of the Comment -field.

This comment will be ignored by pyuic.
-Python:
-Python:# Import our custom widget.
-Python:from foo import bar

Here's the corresponding output from pyuic.

from qt import *
-
-# Import our custom widget.
-from foo import bar

Thanks to Christian Bird, pyuic will extract Python code -entered using Qt Designer to implement slots. In Qt Designer, when you need to -edit a slot and the source editor appears, enter Python code between the curly -braces. Don't worry about the correct starting indent level, each line is -prepended with a correct indentation.

Make sure that the ui.h file is in the same directory as the -.ui file when using pyuic. The -.ui file implies the name of the .ui.h -file so there is no need to specify it on the command line.

Here's an example of a simple slot.

void DebMainWindowFrm::browsePushButtonClicked()
-{
-if self.debugging:
-    TQMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
-}

Here is the resulting code when pyuic is run.

class DebMainWindowFrm(TQMainWindow):
-    ...stuff...
-    def browsePushButtonClicked(self):
-        if self.debugging:
-            TQMessageBox.critical(self, "Event", "browse pushbutton was clicked!")

Note that indenting is as normal and that self and all other -parameters passed to the slot are available.

If you use this, you will need to turn off all of the fancy options for the C++ -editor in Designer as it tries to force C++ syntax and that's naturally -annoying when trying to code in Python.


Using Qt Linguist

Qt includes the lupdate program which parses C++ source -files converting calls to the QT_TR_NOOP() and -QT_TRANSLATE_NOOP() macros to .ts -language source files. The lrelease program is then used to -generate .qm binary language files that are distributed with -your application.

Thanks to Detlev Offenbach, PyQt includes the pylupdate -program. This generates the same .ts language source files -from your PyQt source files.


Deploying Commercial PyQt Applications

When deploying commercial PyQt applications it is necessary to discourage users -from accessing the underlying PyQt modules for themselves. A user that used -the modules shipped with your application to develop new applications would -themselves be considered a developer and would need their own commercial Qt and -PyQt licenses.

One solution to this problem is the -VendorID -package. This allows you to build Python extension modules that can only be -imported by a digitally signed custom interpreter. The package enables you to -create such an interpreter with your application embedded within it. The -result is an interpreter that can only run your application, and PyQt modules -that can only be imported by that interpreter. You can use the package to -similarly restrict access to any extension module.

In order to build PyQt with support for the VendorID package, pass the --i command line flag to configure.py.


pyqtconfig and Build System Support

The SIP build system (ie. the sipconfig module) is described -in the SIP documentation. PyQt includes the pyqtconfig -module that can be used by configuration scripts of other bindings that are -built on top of PyQt.

The pyqtconfig module contains the following classes:

Configuration(sipconfig.Configuration)

This class encapsulates additional configuration values, specific to PyQt, that -can be accessed as instance variables.

The following configuration values are provided (in addition to those provided -by the sipconfig.Configuration class):

pyqt_bin_dir

The name of the directory containing the pyuic and -pylupdate executables.

pyqt_mod_dir

The name of the directory containing the PyQt modules.

pyqt_modules

A string containing the names of the PyQt modules that were installed.

pyqt_qt_sip_flags

A string of the SIP flags used to generate the code for the -qt module and which should be added to those needed by any -module that imports the qt module.

pyqt_qtaxcontainer_sip_flags

A string of the SIP flags used to generate the code for the -qtaxcontainer module and which should be added to those -needed by any module that imports the qtaxcontainer module.

pyqt_qtcanvas_sip_flags

A string of the SIP flags used to generate the code for the -qtcanvas module and which should be added to those needed by -any module that imports the qtcanvas module.

pyqt_qtext_sip_flags

A string of the SIP flags used to generate the code for the -qtext module and which should be added to those needed by -any module that imports the qtext module.

pyqt_qtgl_sip_flags

A string of the SIP flags used to generate the code for the -qtgl module and which should be added to those needed by any -module that imports the qtgl module.

pyqt_qtnetwork_sip_flags

A string of the SIP flags used to generate the code for the -qtnetwork module and which should be added to those needed -by any module that imports the qtnetwork module.

pyqt_qtsql_sip_flags

A string of the SIP flags used to generate the code for the -qtsql module and which should be added to those needed by -any module that imports the qtsql module.

pyqt_qttable_sip_flags

A string of the SIP flags used to generate the code for the -qttable module and which should be added to those needed by -any module that imports the qttable module.

pyqt_qtui_sip_flags

A string of the SIP flags used to generate the code for the -qtui module and which should be added to those needed by any -module that imports the qtui module.

pyqt_qtxml_sip_flags

A string of the SIP flags used to generate the code for the -qtxml module and which should be added to those needed by -any module that imports the qtxml module.

pyqt_sip_dir

The name of the base directory where the .sip files for each -of the PyQt modules is installed. A sub-directory exists with the same name as -the module.

pyqt_version

The PyQt version as a 3 part hexadecimal number (eg. v3.10 is represented as -0x030a00).

pyqt_version_str

The PyQt version as a string. For development snapshots it will start with -snapshot-.

QtModuleMakefile(sipconfig.SIPModuleMakefile)

The Makefile class for modules that import the qt module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtAxContainerModuleMakefile(QtModuleMakefile)

The Makefile class for modules that import the qtaxcontainer -module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtCanvasModuleMakefile(QtModuleMakefile)

The Makefile class for modules that import the qtcanvas -module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtExtModuleMakefile(QtModuleMakefile)

The Makefile class for modules that import the qtext module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtGLModuleMakefile(QtModuleMakefile)

The Makefile class for modules that import the qtgl module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtNetworkModuleMakefile(QtModuleMakefile)

The Makefile class for modules that import the qtnetwork -module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtTableModuleMakefile(QtModuleMakefile)

The Makefile class for modules that import the qttable -module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtSQLModuleMakefile(QtTableModuleMakefile)

The Makefile class for modules that import the qtsql module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtUIModuleMakefile(QtModuleMakefile)

The Makefile class for modules that import the qtui module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtXMLModuleMakefile(QtModuleMakefile)

The Makefile class for modules that import the qtxml module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().


Things to be Aware Of

super and Wrapped Classes

Internally PyQt implements a lazy technique for attribute lookup where -attributes are only placed in type and instance dictionaries when they are -first referenced. This technique is needed to reduce the time taken to import -large modules such as PyQt.

In most circumstances this technique is transparent to an application. The -exception is when super is used with a PyQt class. The way -that super is currently implemented means that the lazy -lookup is bypassed resulting in AttributeError exceptions -unless the attribute has been previously referenced.

Note that this restriction applies to any class wrapped by SIP and not just -PyQt.


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 TQString class. It is -important to understand that TQStrings, 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 PyQt expects a TQString as a function argument, a -Python string object or a Python Unicode object can be provided instead, and -PyQt will do the necessary conversion automatically.

You may also manually convert Python string and Unicode objects to -TQStrings by using the TQString constructor -as demonstrated in the following code fragment.

qs1 = TQString('Converted Python string object')
-qs2 = TQString(u'Converted Python Unicode object')

In order to convert a TQString to a Python string object use -the Python str() function. Applying -str() to a null TQString and an empty -TQString both result in an empty Python string object.

In order to convert a TQString to a Python Unicode object use -the Python unicode() function. Applying -unicode() to a null TQString and an empty -TQString 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.


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.


Support for C++ void * Data Types

PyQt represents void * values as objects of type -sip.voidptr. Such values are often used to pass the -addresses of external objects between different Python modules. To make this -easier, a Python integer (or anything that Python can convert to an integer) -can be used whenever a sip.voidptr is expected.

A sip.voidptr may be converted to a Python integer by using -the int() builtin function.

A sip.voidptr may be converted to a Python string by using -its asstring() method. The asstring() -method takes an integer argument which is the length of the data in bytes.


Support for Threads

PyQt implements the full set of Qt's thread classes. Python, of course, also -has its own thread extension modules. If you are using SIP v4 (or later) and -Python v2.3.5 (or later) then PyQt does not impose any additional restrictions. -(Read the relevant part of the Qt documentation to understand the restrictions -imposed by the Qt API.)

If you are using earlier versions of either SIP or Python then it is possible -to use either of the APIs so long as you follow some simple rules.

  • If you use the Qt API then the very first import of one of -the PyQt modules must be done from the main thread.

  • If you use the Python API then all calls to PyQt (including any -imports) must be done from one thread only. Therefore, if -you want to make calls to PyQt from several threads then you must use the Qt -API.

  • If you want to use both APIs in the same application then all calls to PyQt -must be done from threads created using the Qt API.

The above comments actually apply to any SIP generated module, not just PyQt.


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 = new TQColor();
-c = new TQColor();

In the corresponding Python fragment, the first colour is destroyed when -the second is assigned to c:

c = TQColor()
-c = TQColor()

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 = TQColor()
-self.c2 = TQColor()

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 TQObject (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 TQLabel is -not destroyed when the second is assigned to l because the -parent TQWidget still has a reference to it.

p = TQWidget()
-l = TQLabel('First label',p)
-l = TQLabel('Second label',p)

C++ Variables

Access to C++ variables is supported. They are accessed as Python instance -variables. For example:

tab = TQTab()
-tab.label = "First Tab"
-tab.r = TQRect(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.


i18n Support

Qt implements i18n support through the Qt Linguist application, the -QTranslator class, and the -TQApplication::translate(), TQObject::tr() -and TQObject::trUtf8() methods. Usually the -tr() method is used to obtain the correct translation of a -message. The translation process uses a message context to allow the same -message to be translated differently. tr() is actually -generated by moc and uses the hardcoded class name as the -context. On the other hand, TQApplication::translate() -allows to context to be explicitly stated.

Unfortunately, because of the way Qt implents tr() (and -trUtf8()) it is not possible for PyQt to exactly reproduce -its behavour. The PyQt implementation of tr() (and -trUtf8()) uses the class name of the instance as the -context. The key difference, and the source of potential problems, is that the -context is determined dynamically in PyQt, but is hardcoded in Qt. In other -words, the context of a translation may change depending on an instance's class -hierarchy.

class A(TQObject):
-    def __init__(self):
-        TQObject.__init__(self)
-
-    def hello(self):
-        return self.tr("Hello")
-
-class B(A):
-    def __init__(self):
-        A.__init__(self)
-
-a = A()
-a.hello()
-
-b = B()
-b.hello()

In the above the message is translated by a.hello() using a -context of A, and by b.hello() using a -context of B. In the equivalent C++ version the context -would be A in both cases.

The PyQt behaviour is unsatisfactory and may be changed in the future. It is -recommended that TQApplication.translate() be used in -preference to tr() (and trUtf8()). This -is guaranteed to work with current and future versions of PyQt and makes it -much easier to share message files between Python and C++ code. Below is the -alternative implementation of A that uses -TQApplication.translate().

class A(TQObject):
-    def __init__(self):
-        TQObject.__init__(self)
-
-    def hello(self):
-        return qApp.translate("A","Hello")

Note that the code generated by pyuic uses -TQApplication.translate().


Signal and Slot Support

A signal may be either a Qt signal (specified using -TQT_SIGNAL()) or a Python signal (specified using -PYQT_SIGNAL()).

A slot can be either a Python callable object, a Qt signal (specified using -TQT_SIGNAL()), a Python signal (specified using -PYQT_SIGNAL()), or a Qt slot (specified using -TQT_SLOT()).

You connect signals to slots (and other signals) as you would from C++. For -example:

TQObject.connect(a,TQT_SIGNAL("QtSig()"),pyFunction)
-TQObject.connect(a,TQT_SIGNAL("QtSig()"),pyClass.pyMethod)
-TQObject.connect(a,TQT_SIGNAL("QtSig()"),PYQT_SIGNAL("PySig"))
-TQObject.connect(a,TQT_SIGNAL("QtSig()"),TQT_SLOT("QtSlot()"))
-TQObject.connect(a,PYQT_SIGNAL("PySig"),pyFunction)
-TQObject.connect(a,PYQT_SIGNAL("PySig"),pyClass.pyMethod)
-TQObject.connect(a,PYQT_SIGNAL("PySig"),TQT_SIGNAL("QtSig()"))
-TQObject.connect(a,PYQT_SIGNAL("PySig"),TQT_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 = TQScrollBar()
-lcd = TQLCDNumber()
-
-TQObject.connect(sbar,TQT_SIGNAL("valueChanged(int)"),lcd.display)
-TQObject.connect(sbar,TQT_SIGNAL("valueChanged(int)"),lcd,TQT_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 TQObject -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(TQT_SIGNAL("clicked()"),())
-a.emit(PYQT_SIGNAL("pySig"),("Hello","World"))

Note that when a slot is a Python callable object its reference count is not -increased. This means that a class instance can be deleted without having to -explicitly disconnect any signals connected to its methods. However, it also -means that using lambda expressions as slots will not work unless you keep a -separate reference to the expression to prevent it from being immediately -garbage collected.

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.


Static Member Functions

Static member functions are implemented as Python class functions. -For example the C++ static member function -TQObject::connect() is called from Python as -TQObject.connect() or self.connect() if -called from a sub-class of TQObject.


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
-TQWidget.TabFocus
-TQFrame.TabFocus

Module Reference Documentation

The following sections should be used in conjunction with the normal class -documentation - only the differences specific to the Python bindings are -documented here.

In these sections, Not yet implemented -implies that the feature can be easily implemented if needed. Not -implemented implies that the feature will not be implemented, either -because it cannot be or because it is not appropriate.

If a class is described as being fully implemented then -all non-private member functions and all public class variables have been -implemented.

If an operator has been implemented then it is stated explicitly.

Classes that are not mentioned have not yet been implemented.


qt Module Reference

Qt Constants

All constant values defined by Qt have equivalent constants defined to Python.


Qt (Qt v2+)

Qt is fully implemented.


TQAccel

TQAccel is fully implemented.


TQAction (Qt v2.2+)

TQAction is fully implemented.


TQActionGroup (Qt v2.2+)

TQActionGroup is fully implemented.


TQApplication

TQApplication(int &argc, char **argv);

This takes one parameter which is a list of argument strings. Arguments -used by Qt are removed from the list.

TQApplication(int &argc, char **argv, bool GUIenabled);

This takes two parameters, the first of which is a list of argument strings. -Arguments used by Qt are removed from the list.

TQApplication(int &argc, char **argv, Type type);

This takes two parameters, the first of which is a list of argument strings. -Arguments used by Qt are removed from the list. (Qt v2.2+)

int exec();

This has been renamed to exec_loop in Python.


QAssistantClient (Qt v3.1+)

QAssistantClient is fully implemented.


TQBitmap

TQBitmap is fully implemented.


TQBrush

TQBrush is fully implemented, including the Python -== and != operators.


TQButton

TQButton is fully implemented.


TQButtonGroup

TQButtonGroup is fully implemented.


TQByteArray

A Python string can be used whenever a TQByteArray can be -used. A TQByteArray can be converted to a Python string -using the Python str() function.

TQByteArray &assign(const char *data, uint size);

Not implemented.

char &at(uint i);

Not yet implemented.

int contains(const char &d);

Not yet implemented.

bool fill(const char &d, int size = -1);

Not yet implemented.

int find(const char &d, uint i = 0);

Not yet implemented.

void resetRawData(const char *data, uintsize);

Not implemented.

TQByteArray &setRawData(const char *data, uintsize);

Not implemented.


TQCDEStyle (Qt v2+)

TQCDEStyle is fully implemented.


TQCheckBox

TQCheckBox is fully implemented.


QClipboard

void *data const(const char *format);

Not yet implemented (Qt v1.x).

void setData(const char *format, void *);

Not yet implemented (Qt v1.x).


TQColor

The Python == and != operators are -supported.

void getHsv(int *h, int *s, int *v);

This takes no parameters and returns the h, -s and v values as a tuple.

void getRgb(int *r, int *g, int *b);

This takes no parameters and returns the r, -g and b values as a tuple.

void hsv(int *h, int *s, int *v);

This takes no parameters and returns the h, -s and v values as a tuple.

void rgb(int *r, int *g, int *b);

This takes no parameters and returns the r, -g and b values as a tuple.


QColorDialog (Qt v2+)

static QRgb getRgba(QRgb initial, bool *ok, TQWidget *parent = 0, const char *name = 0);

This takes the initial, parent and -name parameters and returns a tuple containing the -QRgb result and the ok value.


TQColorGroup

TQColorGroup is fully implemented.


TQComboBox

TQComboBox is fully implemented.


TQCommonStyle (Qt v2+)

virtual void getButtonShift(int &x, int &y);

This takes no parameters and returns a tuple of the x and -y values. (Qt v2)

virtual void tabbarMetrics(const TQTabBar *t, int &hframe, int &vframe, int &overlap);

This takes only the t parameter and returns a tuple of the -hframe, vframe and -overlap values. (Qt v2)


TQCString (Qt v2+)

A Python string can be used whenever a TQCString can be used. -A TQCString can be converted to a Python string using the -Python str() function.

TQCString &sprintf(const char *format, ...);

Not implemented.

short toShort(bool *ok = 0);

This returns a tuple of the short result and the -ok value.

ushort toUShort(bool *ok = 0);

This returns a tuple of the ushort result and the -ok value.

int toInt(bool *ok = 0);

This returns a tuple of the int result and the -ok value.

uint toUInt(bool *ok = 0);

This returns a tuple of the uint result and the -ok value.

long toLong(bool *ok = 0);

This returns a tuple of the long result and the -ok value.

ulong toULong(bool *ok = 0);

This returns a tuple of the ulong result and the -ok value.

float toFloat(bool *ok = 0);

This returns a tuple of the float result and the -ok value.

double toDouble(bool *ok = 0);

This returns a tuple of the double result and the -ok value.


TQCursor

TQCursor is fully implemented.


TQDataStream

TQDataStream &readBytes(const char *&s, uint &l);

This takes no parameters. The TQDataStream result and the -data read are returned as a tuple.

TQDataStream &readRawBytes(const char *s, uint l);

This takes only the l parameter. The -TQDataStream result and the data read are returned as a -tuple.

TQDataStream &writeBytes(const char *s, uint len);

len is derived from s and not passed as a -parameter.

TQDataStream &writeRawBytes(const char *s, uint len);

len is derived from s and not passed as a -parameter.


TQDate

The Python -==, !=, -<, <=, ->, >= -and __nonzero__ -operators are supported.

int weekNumber(int *yearNum = 0);

This takes no parameters and returns the week number and the year number as a -tuple. (Qt v3.1+)


TQDateTime

TQDateTime is fully implemented, including the Python -==, !=, -<, <=, ->, >= -and __nonzero__ -operators.


TQTime

TQTime is fully implemented, including the Python -==, !=, -<, <=, ->, >= -and __nonzero__ -operators.


QDateEdit (Qt v3+)

QDateEdit is fully implemented.


QTimeEdit (Qt v3+)

QTimeEdit is fully implemented.


QDateTimeEdit (Qt v3+)

QDateTimeEdit is fully implemented.


TQDesktopWidget (Qt v3+)

TQDesktopWidget is fully implemented.


TQDial (Qt v2.2+)

TQDial is fully implemented.


TQDialog

int exec();

This has been renamed to exec_loop in Python.

This method also causes ownership of the underlying C++ dialog to be -transfered to Python. This means that the C++ dialog will be deleted when the -Python wrapper is garbage collected. Although this is a little inconsistent, -it ensures that the dialog is deleted without having to explicity code it -using TQObject.deleteLater() or other techniques.


TQDir

TQDir is fully implemented, including the Python -len, [] (for reading slices and -individual elements), ==, != and -in operators


QFileInfoList

This class isn't implemented. Whenever a QFileInfoList is -the return type of a function or the type of an argument, a Python list of -TQFileInfo instances is used instead.


TQDockArea (Qt v3+)

bool hasDockWindow const(TQDockWindow *w, int *index = 0);

This takes the w parameter and returns the index of the -QDockWIndow or -1 if the TQDockArea does not contain the TQDockWindow.


TQDockWindow (Qt v3+)

TQDockWindow is fully implemented.


TQColorDrag (Qt v2.1+)

TQColorDrag is fully implemented.


TQDragObject

TQDragObject is fully implemented.


TQImageDrag

TQImageDrag is fully implemented.


TQStoredDrag

TQStoredDrag is fully implemented.


TQTextDrag

TQTextDrag is fully implemented.


TQUriDrag (Qt v2+)

TQUriDrag is fully implemented.


QUrlDrag (Qt v1.x)

QUrlDrag is fully implemented.


TQDropSite

TQDropSite is fully implemented.


TQErrorMessage (Qt v3+)

TQErrorMessage is fully implemented.


TQEvent

TQEvent is fully implemented.

Instances of TQEvents are automatically converted to the -correct sub-class.


TQChildEvent

TQChildEvent is fully implemented.


TQCloseEvent

TQCloseEvent is fully implemented.


TQIconDragEvent (Qt v3.3+)

TQIconDragEvent is fully implemented.


TQContextMenuEvent (Qt v3+)

TQContextMenuEvent is fully implemented.


TQCustomEvent

TQCustomEvent is fully implemented. Any Python object can be -passed as the event data and its reference count is increased.


TQDragEnterEvent

TQDragEnterEvent is fully implemented.


TQDragLeaveEvent

TQDragLeaveEvent is fully implemented.


TQDragMoveEvent

TQDragMoveEvent is fully implemented.


TQDropEvent

TQDropEvent is fully implemented.


TQFocusEvent

TQFocusEvent is fully implemented.


TQHideEvent

TQHideEvent is fully implemented.


TQIMComposeEvent (Qt v3.1+)

TQIMComposeEvent is fully implemented.


TQIMEvent (Qt v3+)

TQIMEvent is fully implemented.


TQKeyEvent

TQKeyEvent is fully implemented.


TQMouseEvent

TQMouseEvent is fully implemented.


TQMoveEvent

TQMoveEvent is fully implemented.


TQPaintEvent

TQPaintEvent is fully implemented.


TQResizeEvent

TQResizeEvent is fully implemented.


TQShowEvent

TQShowEvent is fully implemented.


TQTabletEvent (Qt v3+)

TQTabletEvent is fully implemented.


TQTimerEvent

TQTimerEvent is fully implemented.


TQWheelEvent (Qt v2+)

TQWheelEvent is fully implemented.


TQEventLoop (Qt v3.1+)

virtual int exec();

This has been renamed to exec_loop in Python.


TQFile

bool open(int m, FILE *f);

Not implemented.

Q_LONG readBlock(char *data, Q_ULONG len);

This takes a single len parameter. The -data is returned if there was no error, otherwise -None is returned.

Q_LONG readLine(char *data, Q_ULONG maxlen);

This takes a single maxlen parameter. The -data is returned if there was no error, otherwise -None is returned.

static void setDecodingFunction(EncoderFn f);

Not yet implemented. (Qt v2+)

static void setEncodingFunction(EncoderFn f);

Not yet implemented. (Qt v2+)

Q_LONG writeBlock(const char *data, Q_ULONG len);

len is derived from data and not passed -as a parameter.


TQFileDialog

TQFileDialog is fully implemented.


TQFileIconProvider

TQFileIconProvider is fully implemented.


TQFilePreview

TQFilePreview is fully implemented. However it cannot be -used from Python in the same way as it is used from C++ because PyQt does not -support multiple inheritance involving more than one wrapped class. A trick -that seems to work is to use composition rather than inheritance as in the -following code fragment.

class FilePreview(TQFilePreview):
-    pass
-
-class Preview(TQLabel):
-    def __init__(self, parent=None):
-        TQLabel.__init__(self, parent)
-        self.preview = FilePreview()
-        self.preview.previewUrl = self.previewUrl

Note that TQFilePreview cannot be instantiated directly because it is abstract. -Thanks to Hans-Peter Jansen for this trick.


TQFileInfo

TQFileInfo is fully implemented.


TQFont

TQFont is fully implemented, including the Python -== and != operators.


TQFontDatabase (Qt v2.1+)

TQFontDatabase is fully implemented.


QFontDialog (Qt v2+)

static TQFont getFont(bool *ok, const TQFont &def, TQWidget *parent = 0, const char *name = 0);

This takes the def, parent and -name parameters and returns a tuple containing the -TQFont result and the ok value.

static TQFont getFont(bool *ok, TQWidget *parent = 0, const char *name = 0);

This takes the parent and name parameters -and returns a tuple containing the TQFont result and the -ok value.


TQFontInfo

TQFontInfo is fully implemented.


TQFontMetrics

TQRect boundingRect(int x, int y, int w, int h, int flags, const TQString &str, int len = -1, int tabstops = 0, int *tabarray = 0);

The tabarray parameter is a Python list of integers.

TQSize size(int flags, const TQString &str, int len = -1, int tabstops = 0, int *tabarray = 0);

The tabarray parameter is a Python list of integers.


TQFrame

TQFrame is fully implemented.


QGManager (Qt v1.x)

QGManager is fully implemented.


QChain (Qt v1.x)

QChain is implemented as an opaque class.


TQGrid (Qt v2+)

TQGrid is fully implemented.


TQGridView (Qt v3+)

TQGridView is fully implemented.


TQGroupBox

TQGroupBox is fully implemented.


TQHBox (Qt v2+)

TQHBox is fully implemented.


TQHButtonGroup (Qt v2+)

TQHButtonGroup is fully implemented.


TQHeader

TQHeader is fully implemented.


TQHGroupBox (Qt v2+)

TQHGroupBox is fully implemented.


TQIconSet

TQIconSet is fully implemented.


TQIconFactory (Qt v3.1+)

TQIconFactory is fully implemented.


TQIconView (Qt v2.1+)

TQIconViewItem *makeRowLayout(TQIconViewItem *begin, int &y);

Not yet implemented.


TQIconViewItem (Qt v2.1+)

TQIconViewItem is fully implemented.


TQIconDrag (Qt v2.1+)

TQIconDrag is fully implemented.


TQIconDragItem (Qt v2.1+)

TQIconDragItem is fully implemented.


TQImage

The Python == and != operators are -supported.

TQImage(const char *xpm[]);

This takes a list of strings as its parameter.

TQImage(uchar *data, int w, int h, int depth, QRgb *colorTable, int numColors, Endian bitOrder);

The colorTable parameter is a list of QRgb instances or -None. (Qt v2.1+)

uchar *bits();

The return value is a sip.voidptr object which is only -useful if passed to another Python module.

QRgb *colorTable();

The return value is a sip.voidptr object which is only -useful if passed to another Python module.

TQImage convertDepthWithPalette(int, QRgb *p, int pc, int cf = 0);

Not implemented.

uchar **jumpTable();

The return value is a sip.voidptr object which is only -useful if passed to another Python module.

bool loadFromData(const uchar *buf, uint len, const char *format = 0, ColorMode mode = Auto);

len is derived from buf and not passed as -a parameter.

uchar *scanLine(int i);

The return value is a sip.voidptr object which is only -useful if passed to another Python module.


TQImageIO

static void defineIOHandler(const char *format, const char *header, const char *flags, image_io_handler read_image, image_io_handler write_image);

Not implemented.


TQImageTextKeyLang

TQImageTextKeyLang is fully implemented.


QInputDialog (Qt v2.1+)

static TQString getText(const TQString &caption, const TQString &label, const TQString &text = TQString::null, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);

The ok is not passed and the returned value is a tuple of -the TQString result and the ok flag. -(Qt v2.1 - v2.3.1)

static TQString getText(const TQString &caption, const TQString &label, TQLineEdit::EchoModeecho, const TQString &text = TQString::null, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);

The ok is not passed and the returned value is a tuple of -the TQString result and the ok flag. -(Qt v2.2 - v2.3.1)

static TQString getText(const TQString &caption, const TQString &label, TQLineEdit::EchoModeecho = TQLineEdit::Normal, const TQString &text = TQString::null, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);

The ok is not passed and the returned value is a tuple of -the TQString result and the ok flag. -(Qt v3+)

static int getInteger(const TQString &caption, const TQString &label, int num = 0, int from = -2147483647, int to = 2147483647, int step = 1, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);

The ok is not passed and the returned value is a tuple of -the int result and the ok flag.

static double getDouble(const TQString &caption, const TQString &label, double num = 0, double from = -2147483647, double to = 2147483647, int step = 1, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);

The ok is not passed and the returned value is a tuple of -the double result and the ok flag.

static TQString getItem(const TQString &caption, const TQString &label, const TQStringList &list, int current = 0, bool editable = TRUE, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);

The ok is not passed and the returned value is a tuple of -the TQString result and the ok flag.


QInterlaceStyle (Qt v2.3.1+)

void scrollBarMetrics(const TQTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);

This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values.


TQIODevice

TQIODevice is fully implemented.


TQKeySequence (Qt v3+)

TQKeySequence is fully implemented including the operators -==, !=, TQString() and -int(). A TQString instance or a Python -integer may be used whenever a TQKeySequence can be used.


TQLabel

TQLabel is fully implemented.


TQLayout

TQLayout is fully implemented.


TQBoxLayout

TQBoxLayout is fully implemented.


TQGLayoutIterator (Qt v2+)

TQGLayoutIterator is fully implemented.


TQGridLayout

bool findWidget(TQWidget *w, int *row, int *col);

This takes the w parameter and returns a tuple containing -the bool result, row and -col. (Qt v2+)


TQHBoxLayout

TQHBoxLayout is fully implemented.


TQLayoutItem (Qt v2+)

TQLayoutItem is fully implemented.


TQLayoutIterator (Qt v2+)

TQLayoutItem *next();

This is a wrapper around the TQLayoutIterator -++ operator.


TQSpacerItem (Qt v2+)

TQSpacerItem is fully implemented.


TQVBoxLayout

TQVBoxLayout is fully implemented.


TQWidgetItem (Qt v2+)

TQWidgetItem is fully implemented.


TQLCDNumber

TQLCDNumber is fully implemented.


TQLibrary (Qt v3+)

TQLibrary is fully implemented.


TQLineEdit

int characterAt(int xpos, TQChar *chr);

This takes only the xpos parameter and returns the int -result and the chr value as a tuple. (Qt v3+)

void del();

This has been renamed delChar in Python. (Qt v2+)

bool getSelection(int *start, int *end);

This takes no parameters and returns the bool result and the -start and end values as a tuple. -(Qt v3+)


QList<type> (Qt v2)

Types based on the QList template are automatically -converted to and from Python lists of the type.


TQListBox

bool itemYPos(int index, int *yPos);

This takes the index parameter and returns a tuple -containing the bool result and yPos. -(Qt v1.x)


TQListBoxItem

TQListBoxItem is fully implemented.


TQListBoxPixmap

TQListBoxPixmap is fully implemented.


TQListBoxText

TQListBoxText is fully implemented.


TQListView

TQListView is fully implemented.

Note that to remove a child TQListViewItem you must first -call takeItem() and then del().


TQListViewItem

TQListViewItem is fully implemented.

Note that to remove a child TQListViewItem you must first -call takeItem() and then del().


TQCheckListItem

TQCheckListItem is fully implemented.


TQListViewItemIterator (Qt v2+)

TQListViewItemIterator is fully implemented.


TQLocale (Qt v3.3+)

short toShort(bool *ok = 0);

This returns a tuple of the short result and the -ok value.

ushort toUShort(bool *ok = 0);

This returns a tuple of the ushort result and the -ok value.

int toInt(bool *ok = 0);

This returns a tuple of the int result and the -ok value.

uint toUInt(bool *ok = 0);

This returns a tuple of the uint result and the -ok value.

Q_LONG toLong(bool *ok = 0);

This returns a tuple of the long result and the -ok value.

Q_ULONG toULong(bool *ok = 0);

This returns a tuple of the ulong result and the -ok value.

float toFloat(bool *ok = 0);

This returns a tuple of the float result and the -ok value.

double toDouble(bool *ok = 0);

This returns a tuple of the double result and the -ok value.


TQMainWindow

TQTextStream &operator<<(TQTextStream &, const TQMainWindow &);

This operator is fully implemented. (Qt v3+)

TQTextStream &operator>>(TQTextStream &, TQMainWindow &);

This operator is fully implemented. (Qt v3+)

bool getLocation(TQToolBar *tb, ToolBarDock &dock, int &index, bool &nl, int &extraOffset);

This takes only the tb parameter and returns a tuple of the -result, dock, index, -nl and extraOffset values. (Qt v2.1.0+)

QList<TQToolBar> toolBars(ToolBarDock dock);

This returns a list of TQToolBar instances. (Qt v2.1.0+)


TQMemArray<type> (Qt v3+)

Types based on the TQMemArray template are automatically -converted to and from Python lists of the type.


TQMenuBar

TQMenuBar is fully implemented.


TQMenuData

TQMenuItem *findItem(int id, TQMenuData **parent);

Not implemented.


TQCustomMenuItem (Qt v2.1+)

TQCustomMenuItem is fully implemented.


TQMenuItem

TQMenuItem is an internal Qt class.


TQMessageBox

TQMessageBox is fully implemented.


TQMetaObject

int numClassInfo const(bool super = FALSE);

Not implemented.

const QClassInfo *classInfo const(bool super = FALSE);

Not implemented.


TQMetaProperty

TQMetaProperty is fully implemented.


TQMimeSource (Qt v2+)

TQMimeSource is fully implemented.


TQMimeSourceFactory (Qt v2+)

TQMimeSourceFactory is fully implemented.


TQWindowsMime (Qt v3+)

TQWindowsMime is fully implemented.


TQMotifPlusStyle (Qt v2.2+)

void getButtonShift(int &x, int &y);

This takes no parameters and returns a tuple of the x and -y values. (Qt v2)

void scrollBarMetrics(const TQScrollBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);

This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2)


TQMotifStyle (Qt v2+)

void scrollBarMetrics(const TQTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);

This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2)

void tabbarMetrics(const TQTabBar *t, int &hframe, int &vframe, int &overlap);

This takes only the t parameter and returns a tuple of the -hframe, vframe and -overlap values. (Qt v2)


TQMovie

TQMovie(TQDataSource *src, int bufsize = 1024);

Not implemented.

void pushData(const uchar *data, int length);

length is derived from data and not -passed as a parameter. (Qt v2.2.0+)


TQMultiLineEdit

void cursorPosition const(int *line, int *col);

This takes no parameters and returns a tuple of the line and -col values. (Qt v1.x, Qt v2.x)

virtual void del();

This has been renamed delChar in Python. (Qt v1.x, Qt v2.x)

void getCursorPosition const(int *line, int *col);

This takes no parameters and returns a tuple of the line and -col values. (Qt v1.x, Qt v2.x)

bool getMarkedRegion(int *line1, int *col1, int *line2, int *col2);

This takes no parameters and returns a tuple of the bool result and the -line1, col1, line2 and -col2 values.


TQMutex (Qt v2.2+)

TQMutex is fully implemented.


TQMutexLocker (Qt v3.1+)

TQMutexLocker is fully implemented.


TQNetworkOperation (Qt v2.1+)

TQNetworkOperation is fully implemented.


TQNetworkProtocol (Qt v2.1+)

TQNetworkProtocol is fully implemented.


TQNetworkProtocolFactoryBase (Qt v2.1+)

TQNetworkProtocolFactoryBase is fully implemented.


TQObject

bool disconnect(const TQObject *receiver, const char *member = 0);

Not yet implemented.

bool disconnect(const char *signal = 0, const TQObject *receiver = 0, const char *member = 0);

Not yet implemented.

static bool disconnect(const TQObject *sender, const char *signal, const TQObject *receiver, const char *member);

At the moment PyQt does not support the full behaviour of the corresponding Qt -method. In particular, specifying None (ie. 0 in C++) for the -signal and receiver parameters is not yet -supported.


TQObjectCleanupHandler (Qt v3+)

TQObjectCleanupHandler is fully implemented.


TQObjectList

This class isn't implemented. Whenever a TQObjectList is the -return type of a function or the type of an argument, a Python list of -TQObject instances is used instead.


TQPaintDeviceMetrics

TQPaintDeviceMetrics is fully implemented.


TQPaintDevice

virtual bool cmd(int, TQPainter *, QPDevCmdParam *);

Not implemented.


TQPainter

TQRect boundingRect(int x, int y, int w, int h, int flags, const char *str, int len = -1, char **intern = 0);

The intern parameter is not supported.

TQRect boundingRect(const TQRect&, int flags, const char *str, int len = -1, char **intern = 0);

The intern parameter is not supported.

void drawText(int x, int y, int w, int h, int flags, const char *str, int len = -1, TQRect *br = 0, char **intern = 0);

The intern parameter is not supported.

void drawText(const TQRect&, int flags, const char *str, int len = -1, TQRect *br = 0, char **intern = 0);

The intern parameter is not supported.

void setTabArray(int *ta);

This takes a single parameter which is a list of tab stops.

int *tabArray();

This returns a list of tab stops.


TQPalette

TQPalette is fully implemented, including the Python -== and != operators.


TQPixmap

TQPixmap(const char *xpm[]);

This takes a list of strings as its parameter.

bool loadFromData(const uchar *buf, uint len, const char *format = 0, ColorMode mode = Auto);

len is derived from buf and not passed as -a parameter.

bool loadFromData(const uchar *buf, uint len, const char *format, int conversion_flags);

Not implemented.


TQPixmapCache (Qt v3+)

TQPixmapCache is fully implemented.


QPair<type,type> (Qt v3+)

Types based on the QPair template are automatically -converted to and from Python tuples of two elements.


TQPen

TQPen is fully implemented, including the Python -== and != operators.


TQPicture

const char *data();

Not implemented.

void setData(const char *data, uint size);

size is derived from data and not passed -as a parameter.


TQPlatinumStyle (Qt v2+)

void scrollBarMetrics(const TQTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);

This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2)


TQPoint

The Python -+, +=, --, -=, unary -, -*, *=, -/, /=, -==, != and __nonzero__ -operators are supported.

QCOORD &rx();

Not implemented.

QCOORD &ry();

Not implemented.


TQPointArray

TQPointArray(int nPoints, const QCOORD *points);

This takes a single parameter which is a list of points.

void point(uint i, int *x, int *y);

This takes the single parameter i and returns the -x and y values as a tuple.

bool putPoints(int index, int nPoints, const QCOORD *points);

This takes two parameters, index and a list of points.

bool putPoints(int index, int nPoints, int firstx, int firsty, ...);

Not implemented.

bool setPoints(int nPoints, const QCOORD *points);

This takes a single parameter which is a list of points.

bool setPoints(int nPoints, int firstx, int firsty, ...);

Not implemented.


TQPopupMenu

int exec();

This has been renamed exec_loop in Python.

int exec(const TQPoint &pos, int indexAtPoint = 0);

This has been renamed exec_loop in Python.


TQPrintDialog (X11)

TQPrintDialog is fully implemented.


TQPrinter

TQPrinter is fully implemented.


TQProcess (Qt v3+)

TQProcess is fully implemented.


TQProgressBar

TQProgressBar is fully implemented.


TQProgressDialog

TQProgressDialog is fully implemented. -value.


TQPtrList<type> (Qt v3+)

Types based on the TQPtrList template are automatically -converted to and from Python lists of the type.


TQPushButton

TQPushButton is fully implemented.


TQRadioButton

TQRadioButton is fully implemented.


TQRangeControl

TQRangeControl is fully implemented.


TQRect

The Python -&, &=, -|, |=, -==, !=, in and -__nonzero__ operators are supported.

void coords(int *x1, int *y1, int *x2, int *y2);

This takes no parameters and returns a tuple containing the four values.

void rect(int *x, int *y, int *w, int *h);

This takes no parameters and returns a tuple containing the four values.

QCOORD &rBottom();

Not implemented. (Qt v2+)

QCOORD &rLeft();

Not implemented. (Qt v2+)

QCOORD &rRight();

Not implemented. (Qt v2+)

QCOORD &rTop();

Not implemented. (Qt v2+)


TQRegExp

The Python == and != operators are -supported.

int match(const char *str, int index = 0, int *len = 0);

This takes str and index parameters and -returns a tuple of the int result and the -len value. (Qt v1.x)

int match(const TQString &str, int index = 0, int *len = 0);

This takes str and index parameters and -returns a tuple of the int result and the -len value. (Qt v2+)


TQRegion

The Python -|, |=, -+, +=, -&, &=, --, -=, -^, ^=, -==, !=, in and -__nonzero__ operators are supported.

QArray<TQRect> rects();

Not implemented.

void setRects(TQRect *rects, int num);

Not yet implemented. (Qt v2.2+)


TQScrollBar

TQScrollBar is fully implemented.


TQScrollView

void contentsToViewport(int x, int y, int &vx, int &vy);

This takes the x and y parameters and -returns a tuple containing the vx and vy -values. (Qt v2+)

void viewportToContents(int vx, int vy, int &x, int &y);

This takes the vx and vy parameters and -returns a tuple containing the x and y -values. (Qt v2+)


TQSemaphore (Qt v2.2+)

TQSemaphore is fully implemented. The += -and -= operators have also been implemented, but require -Python v2.0 or later.


TQSemiModal (Qt v1, v2)

TQSemiModal is fully implemented.


QSessionManager (Qt v2+)

QSessionManager is fully implemented.


TQSettings (Qt v3+)

bool readBoolEntry(const TQString &key, bool def = 0, bool *ok = 0);

The ok is not passed and the returned value is a tuple of -the bool result and the ok flag.

double readDoubleEntry(const TQString &key, double def = 0, bool *ok = 0);

The ok is not passed and the returned value is a tuple of -the double result and the ok flag.

TQString readEntry(const TQString &key, const TQString &def = TQString::null, bool *ok = 0);

The ok is not passed and the returned value is a tuple of -the TQString result and the ok flag.

TQStringList readListEntry(const TQString &key, bool *ok = 0);

The ok is not passed and the returned value is a tuple of -the TQStringList result and the ok flag.

TQStringList readListEntry(const TQString &key, const TQChar &separator, bool *ok = 0);

The ok is not passed and the returned value is a tuple of -the TQStringList result and the ok flag.

int readNumEntry(const TQString &key, int def = 0, bool *ok = 0);

The ok is not passed and the returned value is a tuple of -the int result and the ok flag.

bool writeEntry(const TQString &key, bool value);

Not implemented.


TQSGIStyle (Qt v2.2+)

void scrollBarMetrics(const TQScrollBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);

This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2)


TQSignalMapper

TQSignalMapper is fully implemented.


TQSimpleRichText (Qt v2+)

TQSimpleRichText is fully implemented.


TQSize

The Python -+, +=, --, -=, -*, *=, -/, /=, -==, != and __nonzero__ -operators are supported.

QCOORD &rheight();

Not implemented.

QCOORD &rwidth();

Not implemented.


TQSizeGrip (Qt v2+)

TQSizeGrip is fully implemented.


TQSizePolicy (Qt v2+)

TQSizePolicy is fully implemented.


TQSlider

TQSlider is fully implemented.


TQSocketNotifier

TQSocketNotifier is fully implemented.


TQSound (Qt v2.2+)

TQSound is fully implemented.


TQSpinBox

virtual int mapTextToValue(bool *ok);

This returns a tuple of the int result and the modified -ok value.


TQSplashScreen (Qt v3.2.0+)

TQSplashScreen is fully implemented.


TQSplitter

void getRange(int id, int *min, int *max);

This takes the id parameter and returns the -min and max values as a tuple. (Qt v2+)


TQStatusBar

TQStatusBar is fully implemented.


TQChar (Qt v2+)

uchar &cell const();

Not implemented.

uchar &row const();

Not implemented.


TQString

A Python string object (or Unicode object) can be used whenever a -TQString can be used. A TQString can be -converted to a Python string object using the Python str() -function, and to a Python Unicode object using the Python -unicode() function.

The Python +=, len, [] -(for reading slices and individual characters), in and -comparison operators are supported.

TQCharRef at(uint i);

Not yet implemented. (Qt v2+)

TQChar constref const(uint i);

Not yet implemented. (Qt v2+)

TQChar &ref(uint i);

Not yet implemented. (Qt v2+)

TQString &setUnicodeCodes(const ushort *unicode_as_shorts, uint len);

Not yet implemented. (Qt v2.1+)

TQString &sprintf(const char *format, ...);

Not implemented.

short toShort(bool *ok = 0);

This returns a tuple of the short result and the -ok value.

ushort toUShort(bool *ok = 0);

This returns a tuple of the ushort result and the -ok value.

int toInt(bool *ok = 0);

This returns a tuple of the int result and the -ok value.

uint toUInt(bool *ok = 0);

This returns a tuple of the uint result and the -ok value.

long toLong(bool *ok = 0);

This returns a tuple of the long result and the -ok value.

ulong toULong(bool *ok = 0);

This returns a tuple of the ulong result and the -ok value.

float toFloat(bool *ok = 0);

This returns a tuple of the float result and the -ok value.

double toDouble(bool *ok = 0);

This returns a tuple of the double result and the -ok value.


TQStringList (Qt v2+)

The Python len, [] (for both reading and -writing slices and individual elements), del (for deleting -slices and individual elements), +, +=, -*, *=, ==, -!= and in operators are supported.

Iterator append(const TQString &x);

This does not return a value.

Iterator prepend(const TQString &x);

This does not return a value.


TQStrList

This class isn't implemented. Whenever a TQStrList is the -return type of a function or the type of an argument, a Python list of strings -is used instead.


TQStyle (Qt v2+)

virtual void getButtonShift(int &x, int &y);

This takes no parameters and returns a tuple of the x and -y values. (Qt v2)

virtual void scrollBarMetrics(const TQScrollBar *b, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);

Thus takes only the b parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2)

virtual void tabbarMetrics(const TQTabBar *t, int &hframe, int &vframe, int &overlap);

This takes only the t parameter and returns a tuple of the -hframe, vframe and -overlap values. (Qt v2)


TQStyleOption (Qt v3+)

TQStyleOption is fully implemented.


TQStyleSheet (Qt v2+)

TQStyleSheet is fully implemented.


TQStyleSheetItem (Qt v2+)

TQStyleSheetItem is fully implemented.


TQSyntaxHighlighter (Qt v3.1+)

TQSyntaxHighlighter is fully implemented.


TQTab

TQTab is fully implemented.


TQTabBar

QList<TQTab> tabList();

This returns a list of TQTab instances.


TQTabDialog

TQTabDialog is fully implemented.


QTableView (Qt 1.x, Qt 2.x)

bool colXPos(int col, int *xPos);

This takes the col parameter and returns a tuple containing -the bool result and xPos.

bool rowYPos(int row, int *yPos);

This takes the row parameter and returns a tuple containing -the bool result and yPos.


TQTabWidget (Qt v2+)

TQTabWidget is fully implemented.


TQTextBrowser (Qt v2+)

TQTextBrowser is fully implemented.


TQTextCodec (Qt v2+)

virtual TQCString fromUnicode(const TQString &uc, int &lenInOut);

The returned value is a tuple of the TQCString result and the -updated lenInOut.


TQTextDecoder (Qt v2+)

TQTextDecoder is fully implemented.


TQTextEncoder (Qt v2+)

virtual TQCString fromUnicode = 0(const TQString &uc, int &lenInOut);

The returned value is a tuple of the TQCString result and the -updated lenInOut.


TQTextEdit (Qt v3+)

int charAt(const TQPoint &pos, int *para = 0);

This takes only the pos parameter and returns a tuple of the -value returned via the para pointer and the int result.

void del();

This has been renamed delChar in Python.

virtual bool find(const TQString &expr, bool cs, bool wo, bool forward = TRUE, int *para = 0, int *index = 0);

If the para and index parameters are -omitted then the bool result is returned. If both are supplied (as integers) -then a tuple of the bool result and the modified values of -para and index is returned.

void getCursorPosition(int *para, int *index);

This takes no parameters and returns a tuple of the values returned via the -para and index pointers.

void getSelection(int *paraFrom, int *indexFrom, int *paraTo, int *indexTo, int selNum = 0);

This takes only the selNum parameter and returns a tuple of -the paraFrom, indexFrom, -paraTo and indexTo values.


TQTextStream

TQTextStream(FILE *fp, int mode);

Not implemented.

TQTextStream &readRawBytes(char *buf, uint len);

Not yet implemented.

TQTextStream &writeRawBytes(const char *buf, uint len);

Not yet implemented.


TQTextIStream (Qt v2+)

TQTextIStream(FILE *fp, int mode);

Not implemented.


TQTextOStream (Qt v2+)

TQTextOStream(FILE *fp, int mode);

Not implemented.


TQTextView (Qt v2+)

TQTextView is fully implemented.


TQThread (Qt v2.2+)

TQThread is fully implemented.


TQTimer

TQTimer is fully implemented.


TQToolBar

TQToolBar is fully implemented.


TQToolBox (Qt v3.2.0+)

TQToolBox is fully implemented.


TQToolButton

TQToolButton is fully implemented.


TQToolTip

TQToolTip is fully implemented.


TQToolTipGroup

TQToolTipGroup is fully implemented.


QTranslator (Qt v2+)

QTranslator is fully implemented.


QTranslatorMessage (Qt v2.2+)

QTranslatorMessage is fully implemented.


TQUrl (Qt v2.1+)

TQUrl is fully implemented, including the -TQString(), == and != -operators.


TQUrlInfo (Qt v2.1+)

TQUrlInfo is fully implemented.


TQUrlOperator (Qt v2.1+)

virtual bool isDir(bool *ok);

This returns a tuple of the bool result and the -ok value.


QUuid (Qt v3.0+)

QUuid is fully implemented.


TQValidator

virtual State validate(TQString& input, int& pos);

The returned value is a tuple of the State result and the -updated pos.


TQDoubleValidator

State validate(TQString& input, int& pos);

The returned value is a tuple of the State result and the -updated pos.


TQIntValidator

State validate(TQString& input, int& pos);

The returned value is a tuple of the State result and the -updated pos.


TQRegExpValidator (Qt v3+)

virtual State validate(TQString& input, int& pos);

The returned value is a tuple of the State result and the -updated pos.


TQValueList<type> (Qt v2+)

Types based on the TQValueList template are automatically -converted to and from Python lists of the type.


TQVariant (Qt v2.1+)

TQVariant(const char *val);

Not implemented.

TQVariant(const TQBitArray &val);

Not yet implemented. (Qt v3+)

TQVariant(const TQValueList<TQVariant> &val);

Not yet implemented.

TQVariant(const TQMap<TQString,TQVariant> &val);

Not yet implemented.

TQBitArray &asBitArray();

Not yet implemented. (Qt v3+)

bool &asBool();

Not implemented.

double &asDouble();

Not implemented.

int &asInt();

Not implemented.

TQValueList<TQVariant> &asList();

Not implemented.

TQMap<TQString,TQVariant> &asMap();

Not implemented.

uint &asUInt();

Not implemented.

TQValueListConstIterator<TQVariant>listBegin const();

Not implemented.

TQValueListConstIterator<TQVariant>listEnd const();

Not implemented.

TQMapConstIterator<TQString,TQVariant>mapBegin const();

Not implemented.

TQMapConstIterator<TQString,TQVariant>mapEnd const();

Not implemented.

TQMapConstIterator<TQString,TQVariant>mapFind const(const TQString &key);

Not implemented.

TQValueListConstIterator<TQString>stringListBegin const();

Not implemented.

TQValueListConstIterator<TQString>stringListEnd const();

Not implemented.

const TQBitArray toBitArray const();

Not yet implemented. (Qt v3+)

const TQValueList<TQVariant>toList const();

Not yet implemented.

const TQMap<TQString,TQVariant>toMap const();

Not yet implemented.


TQVBox (Qt v2+)

TQVBox is fully implemented.


TQVButtonGroup (Qt v2+)

TQVButtonGroup is fully implemented.


TQVGroupBox (Qt v2+)

TQVGroupBox is fully implemented.


TQWaitCondition (Qt v2.2+)

TQWaitCondition is fully implemented.


TQWhatsThis

TQWhatsThis is fully implemented.


TQWidget

QWExtra *extraData();

Not implemented.

TQFocusData *focusData();

Not implemented.

void lower();

This has been renamed to lowerW in Python.

void raise();

This has been renamed to raiseW in Python.


TQWidgetList

This class isn't implemented. Whenever a TQWidgetList is the -return type of a function or the type of an argument, a Python list of -instances is used instead.


TQWidgetStack

TQWidgetStack is fully implemented.


QWindow

QWindow is fully implemented (Qt v1.x).


TQWindowsStyle (Qt v2+)

void getButtonShift(int &x, int &y);

This takes no parameters and returns a tuple of the x and -y values. (Qt v2)

void scrollBarMetrics(const TQTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);

This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2)

void tabbarMetrics(const TQTabBar *t, int &hframe, int &vframe, int &overlap);

This takes only the t parameter and returns a tuple of the -hframe, vframe and -overlap values. (Qt v2)


QWindowsXPStyle (Qt v3.0.1+, Windows)

QWindowsXPStyle is fully implemented.


TQWizard (Qt v2+)

TQWizard is fully implemented.


TQWMatrix

The Python ==, != and -*= operators are supported.

TQWMatrix invert const(bool *invertible = 0);

This takes no parameters and returns a tuple of the TQWMatrix -result and the invertible value.

void map const(int x, int y, int *tx, int *ty);

This takes the x and y parameters and -returns a tuple containing the tx and ty -values.

void map const(float x, float y, float *tx, float *ty);

This takes the x and y parameters and -returns a tuple containing the tx and ty -values. (Qt v1.x)

void map const(double x, double y, double *tx, double *ty);

This takes the x and y parameters and -returns a tuple containing the tx and ty -values. (Qt v2+)


TQWorkspace (Qt v2.1+)

TQWorkspace is fully implemented.


qtaxcontainer Module Reference

QAxBase (Windows, Qt v3+)

QAxObject(IUnknown *iface = 0);

Not implemented.

long queryInterface(const QUuid &uuid, void **iface);

Not implemented.

PropertyBag propertyBag const();

Not implemented.

void setPropertyBag(const PropertyBag &bag);

Not implemented.

unsigned long registerWeakActiveObject(const TQString &guid);

This is a utility method provided by PyQt to make it easier to use -Mark Hammond's win32com module to manipulate objects -created by the qtaxcontainer module.

The RegisterActiveObject() COM function is called to -register the QAxBase instance as a weak object with the -guid GUID. The revoke handle is returned.

static void revokeActiveObject(unsigned long rhandle);

This is a wrapper around the RevokeActiveObject() COM -function and is called to revoke the object registered using -registerWeakActiveObject(). rhandle is -the revoke handle returned by registerWeakActiveObject().


QAxObject (Windows, Qt v3+)

QAxObject(IUnknown *iface, TQObject *parent = 0, const char *name = 0);

Not implemented.


QAxWidget (Windows, Qt v3+)

QAxWidget(IUnknown *iface, TQWidget *parent = 0, const char *name = 0);

Not implemented.


qtcanvas Module Reference

TQCanvas (Qt v2.2+)

TQCanvas is fully implemented.


TQCanvasEllipse (Qt v2.2+)

TQCanvasEllipse is fully implemented.


TQCanvasItem (Qt v2.2+)

TQCanvasItem is fully implemented.


TQCanvasItemList (Qt v2.2+)

This class isn't implemented. Whenever a TQCanvasItemList is -the return type of a function or the type of an argument, a Python list of -TQCanvasItem instances is used instead.


TQCanvasLine (Qt v2.2+)

TQCanvasLine is fully implemented.


TQCanvasPixmap (Qt v2.2+)

TQCanvasPixmap is fully implemented.


TQCanvasPixmapArray (Qt v2.2+)

QPixmapArray(QList<TQPixmap> pixmaps, QList<TQPoint> hotspots);

The pixmaps argument is a Python list of TQPixmap instances, -and the hotspots argument is a Python list of QPoint -instances. (Qt v2.2.0 - Qt v2.3.1)

QPixmapArray(TQValueList<TQPixmap> pixmaps, TQPointArray hotspots = TQPointArray());

The pixmaps argument is a Python list of TQPixmap instances. -(Qt v3+)


TQCanvasPolygon (Qt v2.2+)

TQCanvasPolygon is fully implemented.


TQCanvasPolygonalItem (Qt v2.2+)

TQCanvasPolygonalItem is fully implemented.


TQCanvasRectangle (Qt v2.2+)

TQCanvasRectangle is fully implemented.


TQCanvasSpline (Qt v3.0+)

TQCanvasSpline is fully implemented.


TQCanvasSprite (Qt v2.2+)

TQCanvasSprite is fully implemented.


TQCanvasText (Qt v2.2+)

TQCanvasText is fully implemented.


TQCanvasView (Qt v2.2+)

TQCanvasView is fully implemented.


qtext Module Reference

QextScintilla

void getCursorPosition(int *line, int *index);

This takes no parameters and returns a tuple of the values returned by the -line and index pointers.

void getSelection(int *lineFrom, int *indexFrom, int *lineTo, int *indexTo);

This takes no parameters and returns a tuple of the values returned by the -lineFrom, indexFrom, -lineTo and indexTo pointers.


QextScintillaAPIs

QextScintillaAPIs is fully implemented.


QextScintillaBase

QextScintillaBase is fully implemented.


QextScintillaCommand

QextScintillaCommand is fully implemented.


QextScintillaCommandSet

QextScintillaCommandSet is fully implemented.


QextScintillaDocument

QextScintillaDocument is fully implemented.


QextScintillaLexer

QextScintillaLexer is fully implemented.


QextScintillaLexerBash (QScintilla v1.4+)

QextScintillaLexerBash is fully implemented.


QextScintillaLexerBatch (QScintilla v1.6+)

QextScintillaLexerBatch is fully implemented.


QextScintillaLexerCPP

QextScintillaLexerCPP is fully implemented.


QextScintillaLexerCSharp

QextScintillaLexerCSharp is fully implemented.


QextScintillaLexerCSS (QScintilla v1.6+)

QextScintillaLexerCSS is fully implemented.


QextScintillaLexerDiff (QScintilla v1.6+)

QextScintillaLexerDiff is fully implemented.


QextScintillaLexerHTML (QScintilla v1.1+)

QextScintillaLexerHTML is fully implemented.


QextScintillaLexerIDL

QextScintillaLexerIDL is fully implemented.


QextScintillaLexerJava

QextScintillaLexerJava is fully implemented.


QextScintillaLexerJavaScript

QextScintillaLexerJavaScript is fully implemented.


QextScintillaLexerLua (QScintilla v1.5+)

QextScintillaLexerLua is fully implemented.


QextScintillaLexerMakefile (QScintilla v1.6+)

QextScintillaLexerMakefile is fully implemented.


QextScintillaLexerPerl

QextScintillaLexerPerl is fully implemented.


QextScintillaLexerPOV (QScintilla v1.6+)

QextScintillaLexerPOV is fully implemented.


QextScintillaLexerProperties (QScintilla v1.6+)

QextScintillaLexerProperties is fully implemented.


QextScintillaLexerPython

QextScintillaLexerPython is fully implemented.


QextScintillaLexerRuby (QScintilla v1.5+)

QextScintillaLexerRuby is fully implemented.


QextScintillaLexerSQL (QScintilla v1.1+)

QextScintillaLexerSQL is fully implemented.


QextScintillaLexerTeX (QScintilla v1.6+)

QextScintillaLexerTeX is fully implemented.


QextScintillaMacro

QextScintillaMacro is fully implemented.


QextScintillaPrinter

QextScintillaPrinter is fully implemented.


qtgl Module Reference

TQGL

TQGL is fully implemented.


TQGLContext

TQGLContext is fully implemented.


TQGLFormat

TQGLFormat is fully implemented.


TQGLWidget

TQGLWidget is fully implemented.


TQGLColormap (Qt v3.0+)

void setEntries(int count, const QRgb *colors, int base = 0);

Not yet implemented.


qtnetwork Module Reference

TQDns (Qt v2.2+)

TQDns is fully implemented.


TQFtp (Qt v2.2+)

Q_LONG readBlock(char *data, Q_ULONG maxlen);

This takes a single maxlen parameter. The -data is returned if there was no error, otherwise -None is returned.


TQHostAddress (Qt v2.2+)

TQHostAddress(Q_UINT8 *ip6Addr);

Not yet implemented.

TQHostAddress(const Q_IPV6ADDR &ip6Addr);

Not yet implemented.

void setAddress(Q_UINT8 *ip6Addr);

Not yet implemented.

Q_IPV6ADDR toIPv6Address const();

Not yet implemented.


TQHttp (Qt v3+)

Q_LONG readBlock(char *data, Q_ULONG maxlen);

This takes a single maxlen parameter. The -data is returned if there was no error, otherwise -None is returned.


TQHttpHeader (Qt v3.1+)

TQHttpHeader is fully implemented.


TQHttpRequestHeader (Qt v3.1+)

TQHttpRequestHeader is fully implemented.


TQHttpResponseHeader (Qt v3.1+)

TQHttpResponseHeader is fully implemented.


TQLocalFs (Qt v2.1+)

TQLocalFs is fully implemented.


TQServerSocket (Qt v2.2+)

TQServerSocket is fully implemented.


TQSocket (Qt v2.2+)

Q_LONG readBlock(char *data, Q_ULONG len);

This takes a single len parameter. The -data is returned if there was no error, otherwise -Py_None is returned.

Q_LONG readLine(char *data, Q_ULONG maxlen);

This takes a single maxlen parameter. The -data is returned if there was no error, otherwise -Py_None is returned.

Q_LONG writeBlock(const char *data, Q_ULONG len);

len is derived from data and not passed -as a parameter.


TQSocketDevice (Qt v2.2+)

Q_LONG readBlock(char *data, Q_ULONG len);

This takes a single len parameter. The -data is returned if there was no error, otherwise -None is returned.

Q_LONG writeBlock(const char *data, Q_ULONG len);

len is derived from data and not passed -as a parameter.


qtpe Module Reference

QPEApplication

TQApplication(int& argc, char **argv, Type type);

This takes two parameters, the first of which is a list of argument strings. -Arguments used by Qt are removed from the list.

int exec();

This has been renamed to exec_loop in Python.


AppLnk

virtual TQString exec const();

This has been renamed to exec_property in Python.


AppLnkSet

AppLnkSet is fully implemented.


Config

Config is fully implemented.


DateFormat

DateFormat is fully implemented.


DocLnk

TQString exec const();

This has been renamed to exec_property in Python.


DocLnkSet

DocLnkSet is fully implemented.


FileManager

FileManager is fully implemented.


FileSelector

FileSelector is fully implemented.


FileSelectorItem

FileSelectorItem is fully implemented.


FontDatabase

FontDatabase is fully implemented.


Global

static void setBuiltinCommands(Command *);

Not implemented.


MenuButton

MenuButton is fully implemented.


QCopEnvelope

QCopEnvelope is fully implemented.


QDawg

QDawg is fully implemented.


QPEMenuBar

QPEMenuBar is fully implemented.


QPEToolBar

QPEToolBar is fully implemented.


Resource

Resource is fully implemented.


qtsql Module Reference

TQDataBrowser (Qt v3+)

virtual void del();

This has been renamed delOnCursor in Python.


TQDataTable (Qt v3+)

TQDataTable is fully implemented.


TQDataView (Qt v3+)

TQDataView is fully implemented.


TQEditorFactory (Qt v3+)

TQEditorFactory is fully implemented.


TQSql (Qt v3+)

TQSql is fully implemented.


TQSqlCursor (Qt v3+)

virtual int del(bool invalidate = TRUE);

This has been renamed delRecords in Python.

virtual int del(const TQString &filter, bool invalidate = TRUE);

This has been renamed delRecords in Python.

bool exec(const TQString &query);

This has been renamed execQuery in Python.


TQSqlDatabase (Qt v3+)

TQSqlQuery exec(const TQString &query = TQString::null);

This has been renamed execStatement in Python.


TQSqlDriver (Qt v3+)

TQSqlDriver is fully implemented.


TQSqlEditorFactory (Qt v3+)

TQSqlEditorFactory is fully implemented.


TQSqlError (Qt v3+)

TQSqlError is fully implemented.


TQSqlField (Qt v3+)

TQSqlField is fully implemented.


TQSqlFieldInfo (Qt v3+)

TQSqlFieldInfo is fully implemented.


TQSqlForm (Qt v3+)

TQSqlForm is fully implemented.


TQSqlIndex (Qt v3+)

TQSqlIndex is fully implemented.


TQSqlPropertyMap (Qt v3+)

TQSqlPropertyMap is fully implemented. However, because PyQt -does not allow new properties to be defined, it is not possible to implement -custom editor widgets in Python and add them to a property map. This will -simple be ignored.

This problem may be addressed in a future release of PyQt.


TQSqlQuery (Qt v3+)

TQMap<TQString,TQVariant> boundValues const();

Not yet implemented. (Qt v3.2.0+)

virtual bool exec(const TQString &query);

This has been renamed execQuery in Python.

bool exec();

This has been renamed execQuery in Python. (Qt v3.1+)


TQSqlRecord (Qt v3+)

TQSqlRecord is fully implemented.


TQSqlRecordInfo (Qt v3+)

TQSqlRecordInfo is implemented as a Python list of -TQSqlFieldInfo instances.


TQSqlResult (Qt v3+)

TQSqlResult is fully implemented.


TQSqlSelectCursor (Qt v3.2.0+)

int del(bool invalidate = TRUE);

This has been renamed delRecords in Python.

bool exec(const TQString &query);

This has been renamed execQuery in Python.


qttable Module Reference

TQTable (Qt v2.2+)

TQTable is fully implemented.


TQTableItem (Qt v2.2+)

TQTableItem is fully implemented.


TQCheckTableItem (Qt v3+)

TQCheckTableItem is fully implemented.


TQComboTableItem (Qt v3+)

TQComboTableItem is fully implemented.


TQTableSelection (Qt v2.2+)

TQTableSelection is fully implemented.


qtui Module Reference

TQWidgetFactory (Qt v3+)

TQWidgetFactory is fully implemented.


qtxml Module Reference

TQDomImplementation (Qt v2.2+)

TQDomImplementation is fully implemented.


TQDomNode (Qt v2.2+)

TQDomNode is fully implemented, including the Python -== and != operators.


TQDomNodeList (Qt v2.2+)

TQDomNodeList is fully implemented.


TQDomDocument (Qt v2.2+)

bool setContent(const TQCString &buffer, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

This takes the buffer and -namespaceProcessing parameters and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+)

bool setContent(const TQByteArray &buffer, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

This takes the buffer and -namespaceProcessing parameters and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+)

bool setContent(const TQString &text, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

This takes the text and -namespaceProcessing parameters and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+)

bool setContent(const TQIODevice *dev, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

This takes the dev and -namespaceProcessing parameters and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+)

bool setContent(const TQCString &buffer, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

This takes the buffer parameter only and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+)

bool setContent(const TQByteArray &buffer, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

This takes the buffer parameter only and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+)

bool setContent(const TQString &text, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

This takes the text parameter only and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+)

bool setContent(const TQIODevice *dev, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

This takes the dev parameter only and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+)

bool setContent(TQXmlInputSource *source, TQXmlReader *reader, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

Not yet implemented. (Qt v3.2.0+)


TQDomDocumentFragment (Qt v2.2+)

TQDomDocumentFragment is fully implemented.


TQDomDocumentType (Qt v2.2+)

TQDomDocumentType is fully implemented.


TQDomNamedNodeMap (Qt v2.2+)

TQDomNamedNodeMap is fully implemented.


TQDomCharacterData (Qt v2.2+)

TQDomCharacterData is fully implemented.


TQDomAttr (Qt v2.2+)

TQDomAttr is fully implemented.


TQDomElement (Qt v2.2+)

TQDomElement is fully implemented.


TQDomText (Qt v2.2+)

TQDomText is fully implemented.


TQDomComment (Qt v2.2+)

TQDomComment is fully implemented.


TQDomCDATASection (Qt v2.2+)

TQDomCDATASection is fully implemented.


TQDomNotation (Qt v2.2+)

TQDomNotation is fully implemented.


TQDomEntity (Qt v2.2+)

TQDomEntity is fully implemented.


TQDomEntityReference (Qt v2.2+)

TQDomEntityReference is fully implemented.


TQDomProcessingInstruction (Qt v2.2+)

TQDomProcessingInstruction is fully implemented.

diff --git a/python/pyqt/doc/PyQt.sgml b/python/pyqt/doc/PyQt.sgml deleted file mode 100644 index 62916248..00000000 --- a/python/pyqt/doc/PyQt.sgml +++ /dev/null @@ -1,5807 +0,0 @@ - -
- - Python Bindings for Qt (3.17.2) - - Phil - Thompson - - - - This document describes a set of Python bindings for the Qt widget set. - Contact the author at phil@riverbankcomputing.co.uk. - - - - - -Introduction - -PyQt is a set of Python bindings for the Qt toolkit and available for all -platforms supported by Qt, including Windows, Linux, UNIX, MacOS/X and embedded -systems such as the Sharp Zaurus and the Compaq iPAQ. They have been tested -against Qt versions 1.43 to 3.3.6, Qt Non-commercial, Qtopia 1.5.0, and Python -versions 1.5 to 2.4.2. Qt/Embedded v3 is not supported. Qt v4 is supported -by PyQt v4. - - - -PyQt is available under the GPL license for use with the GPL version of Qt, a -a commercial license for use with the commercial version of Qt, a -non-commercial license for use with the non-commercial version of Qt v2, and an -educational license for use with the educational version of Qt. - - - -There is also an evaluation version of PyQt for Windows. This must be used -with the corresponding evaluation version of Qt. - - - -PyQt is built using SIP (a tool for generating Python extension modules for -C++ class libraries). SIP v4.6 or later must be installed in order to build -and run this version of PyQt. - - - -PyQt for MacOS/X requires Qt v3.1.0 or later and Python v2.3 or later. - - - -The bindings are implemented as a number of Python modules - - - - - -qt is the main module and contains the core classes and most -user interface widgets. - - - - - -qtaxcontainer contains a sub-set of the classes implemented -in Qt's QAxContainer module, part of Qt's ActiveQt framework. - - - - - -qtcanvas contains the classes implemented in Qt's Canvas -module. - - - - - -qtgl contains the classes implemented in Qt's OpenGL module. - - - - - -qtnetwork contains the classes implemented in Qt's Network -module. - - - - - -qtpe contains the classes implemented in Qtopia (originally -called the Qt Palmtop Environment). It is only supported with Qt/Embedded. - - - - - -qtsql contains the classes implemented in Qt's SQL module. - - - - - -qttable contains the classes implemented in Qt's Table -module. - - - - - -qtui contains the classes implemented in Qt's qui library. -These allow GUIs to be created directly from Qt Designer's -.ui files. - - - - - -qtxml contains the classes implemented in Qt's XML module. - - - - - -qtext contains useful third-party classes that are not part -of Qt. At the moment it contains bindings for QScintilla, the port to Qt of -the Scintilla programmer's editor class. - - - - - -PyQt also includes the pyuic and -pylupdate utilities which correspond to the Qt -uic and lupdate utilities. -pyuic converts the GUI designs created with Qt Designer to -executable Python code. pylupdate scans Python code, -extracts all strings that are candidates for internationalisation, and creates -an XML file for use by Qt Linguist. - - -Changes - -The changes visible to the Python programmer in this release are as follows. - - - - - -This version requires SIP v4.4 (or later). - - - - - -Concatenating Python strings and QStrings is now supported. - - - - - -QString now supports the * and -*= operators that behave as they do for Python strings. - - - - - -QString is more interoperable with Python string and unicode -objects. For example they can be passed as arguments to -open() and to most (but not all) string methods. - - - - - -QPopupMenu (and sub-classes) instances now transfer -ownership of the menu to Python in the call to exec_loop(). -This means the menu's resources are all released when the Python wrapper is -garbage collected without needing to call -QObject.deleteLater(). - - - - - -QObject.sender() now handles Python signals. - - - - - -The missing MacintoshVersion enum has been added. - - - - - -PYQT_BUILD has been removed. - - - - - -The convention for converting between a C/C++ null pointer and Python's -None object has now been universally applied. In previous -versions a null pointer to, for example, a Qt list container would often be -converted to an empty list rather than None. - - - - - - - - -Other PyQt Goodies -Using Qt Designer - -Qt Designer is a GPL'ed GUI design editor provided by Trolltech as part of Qt. -It generates an XML description of a GUI design. Qt includes -uic which generates C++ code from that XML. - - - -PyQt includes pyuic which generates Python code from the -same XML. The Python code is self contained and can be executed immediately. - - - -It is sometimes useful to be able to include some specific Python code in the -output generated by pyuic. For example, if you are using -custom widgets, pyuic has no way of knowing the name of the -Python module containing the widget and so cannot generate the required -import statement. To help get around this, -pyuic will extract any lines entered in the -Comment field of Qt Designer's -Form Settings dialog that begin with -Python: and copies them to the generated output. - - - -Here's a simple example showing the contents of the Comment -field. - - - -This comment will be ignored by pyuic. -Python: -Python:# Import our custom widget. -Python:from foo import bar - - - -Here's the corresponding output from pyuic. - - - -from qt import * - -# Import our custom widget. -from foo import bar - - - -Thanks to Christian Bird, pyuic will extract Python code -entered using Qt Designer to implement slots. In Qt Designer, when you need to -edit a slot and the source editor appears, enter Python code between the curly -braces. Don't worry about the correct starting indent level, each line is -prepended with a correct indentation. - - - -Make sure that the ui.h file is in the same directory as the -.ui file when using pyuic. The -.ui file implies the name of the .ui.h -file so there is no need to specify it on the command line. - - - -Here's an example of a simple slot. - - - -void DebMainWindowFrm::browsePushButtonClicked() -{ -if self.debugging: - QMessageBox.critical(self, "Event", "browse pushbutton was clicked!") -} - - - -Here is the resulting code when pyuic is run. - - - -class DebMainWindowFrm(QMainWindow): - ...stuff... - def browsePushButtonClicked(self): - if self.debugging: - QMessageBox.critical(self, "Event", "browse pushbutton was clicked!") - - - -Note that indenting is as normal and that self and all other -parameters passed to the slot are available. - - - -If you use this, you will need to turn off all of the fancy options for the C++ -editor in Designer as it tries to force C++ syntax and that's naturally -annoying when trying to code in Python. - - - -Using Qt Linguist - -Qt includes the lupdate program which parses C++ source -files converting calls to the QT_TR_NOOP() and -QT_TRANSLATE_NOOP() macros to .ts -language source files. The lrelease program is then used to -generate .qm binary language files that are distributed with -your application. - - - -Thanks to Detlev Offenbach, PyQt includes the pylupdate -program. This generates the same .ts language source files -from your PyQt source files. - - - - - -Deploying Commercial PyQt Applications - -When deploying commercial PyQt applications it is necessary to discourage users -from accessing the underlying PyQt modules for themselves. A user that used -the modules shipped with your application to develop new applications would -themselves be considered a developer and would need their own commercial Qt and -PyQt licenses. - - - -One solution to this problem is the -VendorID -package. This allows you to build Python extension modules that can only be -imported by a digitally signed custom interpreter. The package enables you to -create such an interpreter with your application embedded within it. The -result is an interpreter that can only run your application, and PyQt modules -that can only be imported by that interpreter. You can use the package to -similarly restrict access to any extension module. - - - -In order to build PyQt with support for the VendorID package, pass the --i command line flag to configure.py. - - - -<Literal>pyqtconfig</Literal> and Build System Support - -The SIP build system (ie. the sipconfig module) is described -in the SIP documentation. PyQt includes the pyqtconfig -module that can be used by configuration scripts of other bindings that are -built on top of PyQt. - - - -The pyqtconfig module contains the following classes: - - - - -Configuration(sipconfig.Configuration) - - -This class encapsulates additional configuration values, specific to PyQt, that -can be accessed as instance variables. - - - -The following configuration values are provided (in addition to those provided -by the sipconfig.Configuration class): - - - - -pyqt_bin_dir - - -The name of the directory containing the pyuic and -pylupdate executables. - - - - - - -pyqt_config_args - - -The command line passed to configure.py when PyQt was -configured. - - - - - - -pyqt_mod_dir - - -The name of the directory containing the PyQt modules. - - - - - - -pyqt_modules - - -A string containing the names of the PyQt modules that were installed. - - - - - - -pyqt_qt_sip_flags - - -A string of the SIP flags used to generate the code for the -qt module and which should be added to those needed by any -module that imports the qt module. - - - - - - -pyqt_qtaxcontainer_sip_flags - - -A string of the SIP flags used to generate the code for the -qtaxcontainer module and which should be added to those -needed by any module that imports the qtaxcontainer module. - - - - - - -pyqt_qtcanvas_sip_flags - - -A string of the SIP flags used to generate the code for the -qtcanvas module and which should be added to those needed by -any module that imports the qtcanvas module. - - - - - - -pyqt_qtext_sip_flags - - -A string of the SIP flags used to generate the code for the -qtext module and which should be added to those needed by -any module that imports the qtext module. - - - - - - -pyqt_qtgl_sip_flags - - -A string of the SIP flags used to generate the code for the -qtgl module and which should be added to those needed by any -module that imports the qtgl module. - - - - - - -pyqt_qtnetwork_sip_flags - - -A string of the SIP flags used to generate the code for the -qtnetwork module and which should be added to those needed -by any module that imports the qtnetwork module. - - - - - - -pyqt_qtsql_sip_flags - - -A string of the SIP flags used to generate the code for the -qtsql module and which should be added to those needed by -any module that imports the qtsql module. - - - - - - -pyqt_qttable_sip_flags - - -A string of the SIP flags used to generate the code for the -qttable module and which should be added to those needed by -any module that imports the qttable module. - - - - - - -pyqt_qtui_sip_flags - - -A string of the SIP flags used to generate the code for the -qtui module and which should be added to those needed by any -module that imports the qtui module. - - - - - - -pyqt_qtxml_sip_flags - - -A string of the SIP flags used to generate the code for the -qtxml module and which should be added to those needed by -any module that imports the qtxml module. - - - - - - -pyqt_sip_dir - - -The name of the base directory where the .sip files for each -of the PyQt modules is installed. A sub-directory exists with the same name as -the module. - - - - - - -pyqt_version - - -The PyQt version as a 3 part hexadecimal number (eg. v3.10 is represented as -0x030a00). - - - - - - -pyqt_version_str - - -The PyQt version as a string. For development snapshots it will start with -snapshot-. - - - - - - - - - - -QtModuleMakefile(sipconfig.SIPModuleMakefile) - - -The Makefile class for modules that import the qt module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtAxContainerModuleMakefile(QtModuleMakefile) - - -The Makefile class for modules that import the qtaxcontainer -module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtCanvasModuleMakefile(QtModuleMakefile) - - -The Makefile class for modules that import the qtcanvas -module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtExtModuleMakefile(QtModuleMakefile) - - -The Makefile class for modules that import the qtext module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtGLModuleMakefile(QtModuleMakefile) - - -The Makefile class for modules that import the qtgl module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtNetworkModuleMakefile(QtModuleMakefile) - - -The Makefile class for modules that import the qtnetwork -module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtTableModuleMakefile(QtModuleMakefile) - - -The Makefile class for modules that import the qttable -module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtSQLModuleMakefile(QtTableModuleMakefile) - - -The Makefile class for modules that import the qtsql module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtUIModuleMakefile(QtModuleMakefile) - - -The Makefile class for modules that import the qtui module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtXMLModuleMakefile(QtModuleMakefile) - - -The Makefile class for modules that import the qtxml module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - - -Things to be Aware Of -super and Wrapped Classes - -Internally PyQt implements a lazy technique for attribute lookup where -attributes are only placed in type and instance dictionaries when they are -first referenced. This technique is needed to reduce the time taken to import -large modules such as PyQt. - - - -In most circumstances this technique is transparent to an application. The -exception is when super is used with a PyQt class. The way -that super is currently implemented means that the lazy -lookup is bypassed resulting in AttributeError exceptions -unless the attribute has been previously referenced. - - - -Note that this restriction applies to any class wrapped by SIP and not just -PyQt. - - - - -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 almost all cases and easy to achieve manually when needed. - - - -Whenever PyQt expects a QString as a function argument, a -Python string object or a Python Unicode object can be provided instead, and -PyQt 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. - - - -<Literal>None</Literal> and <Literal>NULL</Literal> - -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. - - - - -Support for C++ <Literal>void *</Literal> Data Types - -PyQt represents void * values as objects of type -sip.voidptr. Such values are often used to pass the -addresses of external objects between different Python modules. To make this -easier, a Python integer (or anything that Python can convert to an integer) -can be used whenever a sip.voidptr is expected. - - -A sip.voidptr may be converted to a Python integer by using -the int() builtin function. - - -A sip.voidptr may be converted to a Python string by using -its asstring() method. The asstring() -method takes an integer argument which is the length of the data in bytes. - - - - -Support for Threads - -PyQt implements the full set of Qt's thread classes. Python, of course, also -has its own thread extension modules. If you are using SIP v4 (or later) and -Python v2.3.5 (or later) then PyQt does not impose any additional restrictions. -(Read the relevant part of the Qt documentation to understand the restrictions -imposed by the Qt API.) - - -If you are using earlier versions of either SIP or Python then it is possible -to use either of the APIs so long as you follow some simple rules. - - - - -If you use the Qt API then the very first import of one of -the PyQt modules must be done from the main thread. - - - - -If you use the Python API then all calls to PyQt (including any -imports) must be done from one thread only. Therefore, if -you want to make calls to PyQt from several threads then you must use the Qt -API. - - - - -If you want to use both APIs in the same application then all calls to PyQt -must be done from threads created using the Qt API. - - - - -The above comments actually apply to any SIP generated module, not just PyQt. - - - -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 = new QColor(); -c = new 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. - - - -i18n Support - -Qt implements i18n support through the Qt Linguist application, the -QTranslator class, and the -QApplication::translate(), QObject::tr() -and QObject::trUtf8() methods. Usually the -tr() method is used to obtain the correct translation of a -message. The translation process uses a message context to allow the same -message to be translated differently. tr() is actually -generated by moc and uses the hardcoded class name as the -context. On the other hand, QApplication::translate() -allows to context to be explicitly stated. - - - -Unfortunately, because of the way Qt implents tr() (and -trUtf8()) it is not possible for PyQt to exactly reproduce -its behavour. The PyQt implementation of tr() (and -trUtf8()) uses the class name of the instance as the -context. The key difference, and the source of potential problems, is that the -context is determined dynamically in PyQt, but is hardcoded in Qt. In other -words, the context of a translation may change depending on an instance's class -hierarchy. - - - -class A(QObject): - def __init__(self): - QObject.__init__(self) - - def hello(self): - return self.tr("Hello") - -class B(A): - def __init__(self): - A.__init__(self) - -a = A() -a.hello() - -b = B() -b.hello() - - - -In the above the message is translated by a.hello() using a -context of A, and by b.hello() using a -context of B. In the equivalent C++ version the context -would be A in both cases. - - - -The PyQt behaviour is unsatisfactory and may be changed in the future. It is -recommended that QApplication.translate() be used in -preference to tr() (and trUtf8()). This -is guaranteed to work with current and future versions of PyQt and makes it -much easier to share message files between Python and C++ code. Below is the -alternative implementation of A that uses -QApplication.translate(). - - - -class A(QObject): - def __init__(self): - QObject.__init__(self) - - def hello(self): - return qApp.translate("A","Hello") - - - -Note that the code generated by pyuic uses -QApplication.translate(). - - - - - -Signal and Slot Support - -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")) - - - -Note that when a slot is a Python callable object its reference count is not -increased. This means that a class instance can be deleted without having to -explicitly disconnect any signals connected to its methods. However, it also -means that using lambda expressions as slots will not work unless you keep a -separate reference to the expression to prevent it from being immediately -garbage collected. - - - -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. - - - - -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. - - - - -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 - - - - -Module Reference Documentation - -The following sections should be used in conjunction with the normal class -documentation - only the differences specific to the Python bindings are -documented here. - - - -In these sections, Not yet implemented -implies that the feature can be easily implemented if needed. Not -implemented implies that the feature will not be implemented, either -because it cannot be or because it is not appropriate. - - - -If a class is described as being fully implemented then -all non-private member functions and all public class variables have been -implemented. - - - -If an operator has been implemented then it is stated explicitly. - - - -Classes that are not mentioned have not yet been implemented. - - - - -<Literal>qt</Literal> Module Reference -Qt Constants - -All constant values defined by Qt have equivalent constants defined to Python. - - -Qt (Qt v2+) - -Qt is fully implemented. - - -QAccel - -QAccel is fully implemented. - - -QAction (Qt v2.2+) - -QAction is fully implemented. - - - -QActionGroup (Qt v2.2+) - -QActionGroup is fully implemented. - - -QApplication - - QApplication - int &argc - char **argv - - -This takes one parameter which is a list of argument strings. Arguments -used by Qt are removed from the list. - - - - QApplication - int &argc - char **argv - bool GUIenabled - - -This takes two parameters, the first of which is a list of argument strings. -Arguments used by Qt are removed from the list. - - - - QApplication - int &argc - char **argv - Type type - - -This takes two parameters, the first of which is a list of argument strings. -Arguments used by Qt are removed from the list. (Qt v2.2+) - - - - int exec - - - -This has been renamed to exec_loop in Python. - - -QAssistantClient (Qt v3.1+) - -QAssistantClient is fully implemented. - - -QBitmap - -QBitmap is fully implemented. - - -QBrush - -QBrush is fully implemented, including the Python -== and != operators. - - -QButton - -QButton is fully implemented. - - -QButtonGroup - -QButtonGroup is fully implemented. - - -QByteArray - -A Python string can be used whenever a QByteArray can be -used. A QByteArray can be converted to a Python string -using the Python str() function. - - - - QByteArray &assign - const char *data - uint size - - -Not implemented. - - - - char &at - uint i - - -Not yet implemented. - - - - int contains - const char &d - - -Not yet implemented. - - - - bool fill - const char &d - int size = -1 - - -Not yet implemented. - - - - int find - const char &d - uint i = 0 - - -Not yet implemented. - - - - void resetRawData - const char *data - uintsize - - -Not implemented. - - - - QByteArray &setRawData - const char *data - uintsize - - -Not implemented. - - -QCDEStyle (Qt v2+) - -QCDEStyle is fully implemented. - - -QCheckBox - -QCheckBox is fully implemented. - - -QClipboard - - void *data const - const char *format - - -Not yet implemented (Qt v1.x). - - - - void setData - const char *format - void * - - -Not yet implemented (Qt v1.x). - - -QColor - -The Python == and != operators are -supported. - - - - void getHsv - int *h - int *s - int *v - - -This takes no parameters and returns the h, -s and v values as a tuple. - - - - void getRgb - int *r - int *g - int *b - - -This takes no parameters and returns the r, -g and b values as a tuple. - - - - void hsv - int *h - int *s - int *v - - -This takes no parameters and returns the h, -s and v values as a tuple. - - - - void rgb - int *r - int *g - int *b - - -This takes no parameters and returns the r, -g and b values as a tuple. - - -QColorDialog (Qt v2+) - - static QRgb getRgba - QRgb initial - bool *ok - QWidget *parent = 0 - const char *name = 0 - - -This takes the initial, parent and -name parameters and returns a tuple containing the -QRgb result and the ok value. - - -QColorGroup - -QColorGroup is fully implemented. - - -QComboBox - -QComboBox is fully implemented. - - -QCommonStyle (Qt v2+) - - virtual void getButtonShift - int &x - int &y - - -This takes no parameters and returns a tuple of the x and -y values. (Qt v2) - - - - virtual void tabbarMetrics - const QTabBar *t - int &hframe - int &vframe - int &overlap - - -This takes only the t parameter and returns a tuple of the -hframe, vframe and -overlap values. (Qt v2) - - -QCString (Qt v2+) - -A Python string can be used whenever a QCString can be used. -A QCString can be converted to a Python string using the -Python str() function. - - - - QCString &sprintf - const char *format - ... - - -Not implemented. - - - - short toShort - bool *ok = 0 - - -This returns a tuple of the short result and the -ok value. - - - - ushort toUShort - bool *ok = 0 - - -This returns a tuple of the ushort result and the -ok value. - - - - int toInt - bool *ok = 0 - - -This returns a tuple of the int result and the -ok value. - - - - uint toUInt - bool *ok = 0 - - -This returns a tuple of the uint result and the -ok value. - - - - long toLong - bool *ok = 0 - - -This returns a tuple of the long result and the -ok value. - - - - ulong toULong - bool *ok = 0 - - -This returns a tuple of the ulong result and the -ok value. - - - - float toFloat - bool *ok = 0 - - -This returns a tuple of the float result and the -ok value. - - - - double toDouble - bool *ok = 0 - - -This returns a tuple of the double result and the -ok value. - - -QCursor - -QCursor is fully implemented. - - -QDataStream - - QDataStream &readBytes - const char *&s - uint &l - - -This takes no parameters. The QDataStream result and the -data read are returned as a tuple. - - - - QDataStream &readRawBytes - const char *s - uint l - - -This takes only the l parameter. The -QDataStream result and the data read are returned as a -tuple. - - - - QDataStream &writeBytes - const char *s - uint len - - -len is derived from s and not passed as a -parameter. - - - - QDataStream &writeRawBytes - const char *s - uint len - - -len is derived from s and not passed as a -parameter. - - -QDate - -The Python -==, !=, -<, <=, ->, >= -and __nonzero__ -operators are supported. - - - - int weekNumber - int *yearNum = 0 - - -This takes no parameters and returns the week number and the year number as a -tuple. (Qt v3.1+) - - - -QDateTime - -QDateTime is fully implemented, including the Python -==, !=, -<, <=, ->, >= -and __nonzero__ -operators. - - - -QTime - -QTime is fully implemented, including the Python -==, !=, -<, <=, ->, >= -and __nonzero__ -operators. - - -QDateEdit (Qt v3+) - -QDateEdit is fully implemented. - - - -QTimeEdit (Qt v3+) - -QTimeEdit is fully implemented. - - - -QDateTimeEdit (Qt v3+) - -QDateTimeEdit is fully implemented. - - -QDesktopWidget (Qt v3+) - -QDesktopWidget is fully implemented. - - -QDial (Qt v2.2+) - -QDial is fully implemented. - - -QDialog - - int exec - - - -This has been renamed to exec_loop in Python. - - -This method also causes ownership of the underlying C++ dialog to be transfered -to Python. This means that the C++ dialog will be deleted when the Python -wrapper is garbage collected. Although this is a little inconsistent, it -ensures that the dialog is deleted without having to explicity code it using -QObject.deleteLater() or other techniques. - - -QDir - -QDir is fully implemented, including the Python -len, [] (for reading slices and -individual elements), ==, != and -in operators - - - -QFileInfoList - -This class isn't implemented. Whenever a QFileInfoList is -the return type of a function or the type of an argument, a Python list of -QFileInfo instances is used instead. - - -QDockArea (Qt v3+) - - bool hasDockWindow const - QDockWindow *w - int *index = 0 - - -This takes the w parameter and returns the index of the -QDockWIndow or -1 if the QDockArea does not contain the QDockWindow. - - -QDockWindow (Qt v3+) - -QDockWindow is fully implemented. - - -QColorDrag (Qt v2.1+) - -QColorDrag is fully implemented. - - - -QDragObject - -QDragObject is fully implemented. - - - -QImageDrag - -QImageDrag is fully implemented. - - - -QStoredDrag - -QStoredDrag is fully implemented. - - - -QTextDrag - -QTextDrag is fully implemented. - - - -QUriDrag (Qt v2+) - -QUriDrag is fully implemented. - - - -QUrlDrag (Qt v1.x) - -QUrlDrag is fully implemented. - - -QDropSite - -QDropSite is fully implemented. - - -QErrorMessage (Qt v3+) - -QErrorMessage is fully implemented. - - -QEvent - -QEvent is fully implemented. - - -Instances of QEvents are automatically converted to the -correct sub-class. - - - -QChildEvent - -QChildEvent is fully implemented. - - - -QCloseEvent - -QCloseEvent is fully implemented. - - - -QIconDragEvent (Qt v3.3+) - -QIconDragEvent is fully implemented. - - - -QContextMenuEvent (Qt v3+) - -QContextMenuEvent is fully implemented. - - - -QCustomEvent - -QCustomEvent is fully implemented. Any Python object can be -passed as the event data and its reference count is increased. - - - -QDragEnterEvent - -QDragEnterEvent is fully implemented. - - - -QDragLeaveEvent - -QDragLeaveEvent is fully implemented. - - - -QDragMoveEvent - -QDragMoveEvent is fully implemented. - - - -QDropEvent - -QDropEvent is fully implemented. - - - -QFocusEvent - -QFocusEvent is fully implemented. - - - -QHideEvent - -QHideEvent is fully implemented. - - - -QIMComposeEvent (Qt v3.1+) - -QIMComposeEvent is fully implemented. - - - -QIMEvent (Qt v3+) - -QIMEvent is fully implemented. - - - -QKeyEvent - -QKeyEvent is fully implemented. - - - -QMouseEvent - -QMouseEvent is fully implemented. - - - -QMoveEvent - -QMoveEvent is fully implemented. - - - -QPaintEvent - -QPaintEvent is fully implemented. - - - -QResizeEvent - -QResizeEvent is fully implemented. - - - -QShowEvent - -QShowEvent is fully implemented. - - - -QTabletEvent (Qt v3+) - -QTabletEvent is fully implemented. - - - -QTimerEvent - -QTimerEvent is fully implemented. - - - -QWheelEvent (Qt v2+) - -QWheelEvent is fully implemented. - - -QEventLoop (Qt v3.1+) - - virtual int exec - - - -This has been renamed to exec_loop in Python. - - -QFile - - bool open - int m - FILE *f - - -Not implemented. - - - - Q_LONG readBlock - char *data - Q_ULONG len - - -This takes a single len parameter. The -data is returned if there was no error, otherwise -None is returned. - - - - Q_LONG readLine - char *data - Q_ULONG maxlen - - -This takes a single maxlen parameter. The -data is returned if there was no error, otherwise -None is returned. - - - - static void setDecodingFunction - EncoderFn f - - -Not yet implemented. (Qt v2+) - - - - static void setEncodingFunction - EncoderFn f - - -Not yet implemented. (Qt v2+) - - - - Q_LONG writeBlock - const char *data - Q_ULONG len - - -len is derived from data and not passed -as a parameter. - - -QFileDialog - -QFileDialog is fully implemented. - - - -QFileIconProvider - -QFileIconProvider is fully implemented. - - - -QFilePreview - -QFilePreview is fully implemented. However it cannot be -used from Python in the same way as it is used from C++ because PyQt does not -support multiple inheritance involving more than one wrapped class. A trick -that seems to work is to use composition rather than inheritance as in the -following code fragment. - - -class FilePreview(QFilePreview): - pass - -class Preview(QLabel): - def __init__(self, parent=None): - QLabel.__init__(self, parent) - self.preview = FilePreview() - self.preview.previewUrl = self.previewUrl - - -Note that QFilePreview cannot be instantiated directly because it is abstract. -Thanks to Hans-Peter Jansen for this trick. - - -QFileInfo - -QFileInfo is fully implemented. - - -QFont - -QFont is fully implemented, including the Python -== and != operators. - - -QFontDatabase (Qt v2.1+) - -QFontDatabase is fully implemented. - - -QFontDialog (Qt v2+) - - static QFont getFont - bool *ok - const QFont &def - QWidget *parent = 0 - const char *name = 0 - - -This takes the def, parent and -name parameters and returns a tuple containing the -QFont result and the ok value. - - - - static QFont getFont - bool *ok - QWidget *parent = 0 - const char *name = 0 - - -This takes the parent and name parameters -and returns a tuple containing the QFont result and the -ok value. - - -QFontInfo - -QFontInfo is fully implemented. - - -QFontMetrics - - QRect boundingRect - int x - int y - int w - int h - int flags - const QString &str - int len = -1 - int tabstops = 0 - int *tabarray = 0 - - -The tabarray parameter is a Python list of integers. - - - - QSize size - int flags - const QString &str - int len = -1 - int tabstops = 0 - int *tabarray = 0 - - -The tabarray parameter is a Python list of integers. - - -QFrame - -QFrame is fully implemented. - - -QGManager (Qt v1.x) - -QGManager is fully implemented. - - - -QChain (Qt v1.x) - -QChain is implemented as an opaque class. - - -QGrid (Qt v2+) - -QGrid is fully implemented. - - -QGridView (Qt v3+) - -QGridView is fully implemented. - - -QGroupBox - -QGroupBox is fully implemented. - - -QHBox (Qt v2+) - -QHBox is fully implemented. - - -QHButtonGroup (Qt v2+) - -QHButtonGroup is fully implemented. - - -QHeader - -QHeader is fully implemented. - - -QHGroupBox (Qt v2+) - -QHGroupBox is fully implemented. - - -QIconSet - -QIconSet is fully implemented. - - - -QIconFactory (Qt v3.1+) - -QIconFactory is fully implemented. - - -QIconView (Qt v2.1+) - - QIconViewItem *makeRowLayout - QIconViewItem *begin - int &y - - -Not yet implemented. - - - -QIconViewItem (Qt v2.1+) - -QIconViewItem is fully implemented. - - - -QIconDrag (Qt v2.1+) - -QIconDrag is fully implemented. - - - -QIconDragItem (Qt v2.1+) - -QIconDragItem is fully implemented. - - -QImage - -The Python == and != operators are -supported. - - - - QImage - const char *xpm[] - - -This takes a list of strings as its parameter. - - - - QImage - uchar *data - int w - int h - int depth - QRgb *colorTable - int numColors - Endian bitOrder - - -The colorTable parameter is a list of QRgb instances or -None. (Qt v2.1+) - - - - uchar *bits - - - -The return value is a sip.voidptr object which is only -useful if passed to another Python module. - - - - QRgb *colorTable - - - -The return value is a sip.voidptr object which is only -useful if passed to another Python module. - - - - QImage convertDepthWithPalette - int - QRgb *p - int pc - int cf = 0 - - -Not implemented. - - - - uchar **jumpTable - - - -The return value is a sip.voidptr object which is only -useful if passed to another Python module. - - - - bool loadFromData - const uchar *buf - uint len - const char *format = 0 - ColorMode mode = Auto - - -len is derived from buf and not passed as -a parameter. - - - - uchar *scanLine - int i - - -The return value is a sip.voidptr object which is only -useful if passed to another Python module. - - - -QImageIO - - static void defineIOHandler - const char *format - const char *header - const char *flags - image_io_handler read_image - image_io_handler write_image - - -Not implemented. - - - -QImageTextKeyLang - -QImageTextKeyLang is fully implemented. - - -QInputDialog (Qt v2.1+) - - static QString getText - const QString &caption - const QString &label - const QString &text = QString::null - bool *ok = 0 - QWidget *parent = 0 - const char *name = 0 - - -The ok is not passed and the returned value is a tuple of -the QString result and the ok flag. -(Qt v2.1 - v2.3.1) - - - - static QString getText - const QString &caption - const QString &label - QLineEdit::EchoModeecho - const QString &text = QString::null - bool *ok = 0 - QWidget *parent = 0 - const char *name = 0 - - -The ok is not passed and the returned value is a tuple of -the QString result and the ok flag. -(Qt v2.2 - v2.3.1) - - - - static QString getText - const QString &caption - const QString &label - QLineEdit::EchoModeecho = QLineEdit::Normal - const QString &text = QString::null - bool *ok = 0 - QWidget *parent = 0 - const char *name = 0 - - -The ok is not passed and the returned value is a tuple of -the QString result and the ok flag. -(Qt v3+) - - - - static int getInteger - const QString &caption - const QString &label - int num = 0 - int from = -2147483647 - int to = 2147483647 - int step = 1 - bool *ok = 0 - QWidget *parent = 0 - const char *name = 0 - - -The ok is not passed and the returned value is a tuple of -the int result and the ok flag. - - - - static double getDouble - const QString &caption - const QString &label - double num = 0 - double from = -2147483647 - double to = 2147483647 - int step = 1 - bool *ok = 0 - QWidget *parent = 0 - const char *name = 0 - - -The ok is not passed and the returned value is a tuple of -the double result and the ok flag. - - - - static QString getItem - const QString &caption - const QString &label - const QStringList &list - int current = 0 - bool editable = TRUE - bool *ok = 0 - QWidget *parent = 0 - const char *name = 0 - - -The ok is not passed and the returned value is a tuple of -the QString result and the ok flag. - - -QInterlaceStyle (Qt v2.3.1+) - - void scrollBarMetrics - const QTabBar *sb - int &sliderMin - int &sliderMax - int &sliderLength - int &buttonDim - - -This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. - - -QIODevice - -QIODevice is fully implemented. - - -QKeySequence (Qt v3+) - -QKeySequence is fully implemented including the operators -==, !=, QString() and -int(). A QString instance or a Python -integer may be used whenever a QKeySequence can be used. - - -QLabel - -QLabel is fully implemented. - - -QLayout - -QLayout is fully implemented. - - - -QBoxLayout - -QBoxLayout is fully implemented. - - - -QGLayoutIterator (Qt v2+) - -QGLayoutIterator is fully implemented. - - - -QGridLayout - - bool findWidget - QWidget *w - int *row - int *col - - -This takes the w parameter and returns a tuple containing -the bool result, row and -col. (Qt v2+) - - - -QHBoxLayout - -QHBoxLayout is fully implemented. - - - -QLayoutItem (Qt v2+) - -QLayoutItem is fully implemented. - - - -QLayoutIterator (Qt v2+) - - QLayoutItem *next - - - -This is a wrapper around the QLayoutIterator -++ operator. - - - -QSpacerItem (Qt v2+) - -QSpacerItem is fully implemented. - - - -QVBoxLayout - -QVBoxLayout is fully implemented. - - - -QWidgetItem (Qt v2+) - -QWidgetItem is fully implemented. - - -QLCDNumber - -QLCDNumber is fully implemented. - - -QLibrary (Qt v3+) - -QLibrary is fully implemented. - - -QLineEdit - - int characterAt - int xpos - QChar *chr - - -This takes only the xpos parameter and returns the int -result and the chr value as a tuple. (Qt v3+) - - - - void del - - - -This has been renamed delChar in Python. (Qt v2+) - - - - bool getSelection - int *start - int *end - - -This takes no parameters and returns the bool result and the -start and end values as a tuple. -(Qt v3+) - - -QList<type> (Qt v2) - -Types based on the QList template are automatically -converted to and from Python lists of the type. - - -QListBox - - bool itemYPos - int index - int *yPos - - -This takes the index parameter and returns a tuple -containing the bool result and yPos. -(Qt v1.x) - - - -QListBoxItem - -QListBoxItem is fully implemented. - - - -QListBoxPixmap - -QListBoxPixmap is fully implemented. - - - -QListBoxText - -QListBoxText is fully implemented. - - -QListView - -QListView is fully implemented. - - -Note that to remove a child QListViewItem you must first -call takeItem() and then del(). - - - -QListViewItem - -QListViewItem is fully implemented. - - -Note that to remove a child QListViewItem you must first -call takeItem() and then del(). - - - -QCheckListItem - -QCheckListItem is fully implemented. - - - -QListViewItemIterator (Qt v2+) - -QListViewItemIterator is fully implemented. - - -QLocale (Qt v3.3+) - - short toShort - bool *ok = 0 - - -This returns a tuple of the short result and the -ok value. - - - - ushort toUShort - bool *ok = 0 - - -This returns a tuple of the ushort result and the -ok value. - - - - int toInt - bool *ok = 0 - - -This returns a tuple of the int result and the -ok value. - - - - uint toUInt - bool *ok = 0 - - -This returns a tuple of the uint result and the -ok value. - - - - Q_LONG toLong - bool *ok = 0 - - -This returns a tuple of the long result and the -ok value. - - - - Q_ULONG toULong - bool *ok = 0 - - -This returns a tuple of the ulong result and the -ok value. - - - - float toFloat - bool *ok = 0 - - -This returns a tuple of the float result and the -ok value. - - - - double toDouble - bool *ok = 0 - - -This returns a tuple of the double result and the -ok value. - - -QMainWindow - - QTextStream &operator<< - QTextStream & - const QMainWindow & - - -This operator is fully implemented. (Qt v3+) - - - - QTextStream &operator>> - QTextStream & - QMainWindow & - - -This operator is fully implemented. (Qt v3+) - - - - bool getLocation - QToolBar *tb - ToolBarDock &dock - int &index - bool &nl - int &extraOffset - - -This takes only the tb parameter and returns a tuple of the -result, dock, index, -nl and extraOffset values. (Qt v2.1.0+) - - - - QList<QToolBar> toolBars - ToolBarDock dock - - -This returns a list of QToolBar instances. (Qt v2.1.0+) - - -QMemArray<type> (Qt v3+) - -Types based on the QMemArray template are automatically -converted to and from Python lists of the type. - - -QMenuBar - -QMenuBar is fully implemented. - - -QMenuData - - QMenuItem *findItem - int id - QMenuData **parent - - -Not implemented. - - - -QCustomMenuItem (Qt v2.1+) - -QCustomMenuItem is fully implemented. - - - -QMenuItem - -QMenuItem is an internal Qt class. - - -QMessageBox - -QMessageBox is fully implemented. - - -QMetaObject - - int numClassInfo const - bool super = FALSE - - -Not implemented. - - - - const QClassInfo *classInfo const - bool super = FALSE - - -Not implemented. - - - -QMetaProperty - -QMetaProperty is fully implemented. - - -QMimeSource (Qt v2+) - -QMimeSource is fully implemented. - - - -QMimeSourceFactory (Qt v2+) - -QMimeSourceFactory is fully implemented. - - - -QWindowsMime (Qt v3+) - -QWindowsMime is fully implemented. - - -QMotifPlusStyle (Qt v2.2+) - - void getButtonShift - int &x - int &y - - -This takes no parameters and returns a tuple of the x and -y values. (Qt v2) - - - - void scrollBarMetrics - const QScrollBar *sb - int &sliderMin - int &sliderMax - int &sliderLength - int &buttonDim - - -This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2) - - -QMotifStyle (Qt v2+) - - void scrollBarMetrics - const QTabBar *sb - int &sliderMin - int &sliderMax - int &sliderLength - int &buttonDim - - -This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2) - - - - void tabbarMetrics - const QTabBar *t - int &hframe - int &vframe - int &overlap - - -This takes only the t parameter and returns a tuple of the -hframe, vframe and -overlap values. (Qt v2) - - -QMovie - - QMovie - QDataSource *src - int bufsize = 1024 - - -Not implemented. - - - - void pushData - const uchar *data - int length - - -length is derived from data and not -passed as a parameter. (Qt v2.2.0+) - - -QMultiLineEdit - - void cursorPosition const - int *line - int *col - - -This takes no parameters and returns a tuple of the line and -col values. (Qt v1.x, Qt v2.x) - - - - virtual void del - - - -This has been renamed delChar in Python. (Qt v1.x, Qt v2.x) - - - - void getCursorPosition const - int *line - int *col - - -This takes no parameters and returns a tuple of the line and -col values. (Qt v1.x, Qt v2.x) - - - - bool getMarkedRegion - int *line1 - int *col1 - int *line2 - int *col2 - - -This takes no parameters and returns a tuple of the bool result and the -line1, col1, line2 and -col2 values. - - -QMutex (Qt v2.2+) - -QMutex is fully implemented. - - - -QMutexLocker (Qt v3.1+) - -QMutexLocker is fully implemented. - - -QNetworkOperation (Qt v2.1+) - -QNetworkOperation is fully implemented. - - - -QNetworkProtocol (Qt v2.1+) - -QNetworkProtocol is fully implemented. - - - -QNetworkProtocolFactoryBase (Qt v2.1+) - -QNetworkProtocolFactoryBase is fully implemented. - - -QObject - - bool disconnect - const QObject *receiver - const char *member = 0 - - -Not yet implemented. - - - - bool disconnect - const char *signal = 0 - const QObject *receiver = 0 - const char *member = 0 - - -Not yet implemented. - - - - static bool disconnect - const QObject *sender - const char *signal - const QObject *receiver - const char *member - - -At the moment PyQt does not support the full behaviour of the corresponding Qt -method. In particular, specifying None (ie. 0 in C++) for the -signal and receiver parameters is not yet -supported. - - -QObjectCleanupHandler (Qt v3+) - -QObjectCleanupHandler is fully implemented. - - -QObjectList - -This class isn't implemented. Whenever a QObjectList is the -return type of a function or the type of an argument, a Python list of -QObject instances is used instead. - - -QPaintDeviceMetrics - -QPaintDeviceMetrics is fully implemented. - - -QPaintDevice - - virtual bool cmd - int - QPainter * - QPDevCmdParam * - - -Not implemented. - - -QPainter - - QRect boundingRect - int x - int y - int w - int h - int flags - const char *str - int len = -1 - char **intern = 0 - - -The intern parameter is not supported. - - - - QRect boundingRect - const QRect& - int flags - const char *str - int len = -1 - char **intern = 0 - - -The intern parameter is not supported. - - - - void drawText - int x - int y - int w - int h - int flags - const char *str - int len = -1 - QRect *br = 0 - char **intern = 0 - - -The intern parameter is not supported. - - - - void drawText - const QRect& - int flags - const char *str - int len = -1 - QRect *br = 0 - char **intern = 0 - - -The intern parameter is not supported. - - - - void setTabArray - int *ta - - -This takes a single parameter which is a list of tab stops. - - - - int *tabArray - - - -This returns a list of tab stops. - - -QPalette - -QPalette is fully implemented, including the Python -== and != operators. - - -QPixmap - - QPixmap - const char *xpm[] - - -This takes a list of strings as its parameter. - - - - bool loadFromData - const uchar *buf - uint len - const char *format = 0 - ColorMode mode = Auto - - -len is derived from buf and not passed as -a parameter. - - - - bool loadFromData - const uchar *buf - uint len - const char *format - int conversion_flags - - -Not implemented. - - -QPixmapCache (Qt v3+) - -QPixmapCache is fully implemented. - - -QPair<type,type> (Qt v3+) - -Types based on the QPair template are automatically -converted to and from Python tuples of two elements. - - -QPen - -QPen is fully implemented, including the Python -== and != operators. - - -QPicture - - const char *data - - - -Not implemented. - - - - void setData - const char *data - uint size - - -size is derived from data and not passed -as a parameter. - - -QPlatinumStyle (Qt v2+) - - void scrollBarMetrics - const QTabBar *sb - int &sliderMin - int &sliderMax - int &sliderLength - int &buttonDim - - -This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2) - - -QPoint - -The Python -+, +=, --, -=, unary -, -*, *=, -/, /=, -==, != and __nonzero__ -operators are supported. - - - - QCOORD &rx - - - -Not implemented. - - - - QCOORD &ry - - - -Not implemented. - - -QPointArray - - QPointArray - int nPoints - const QCOORD *points - - -This takes a single parameter which is a list of points. - - - - void point - uint i - int *x - int *y - - -This takes the single parameter i and returns the -x and y values as a tuple. - - - - bool putPoints - int index - int nPoints - const QCOORD *points - - -This takes two parameters, index and a list of points. - - - - bool putPoints - int index - int nPoints - int firstx - int firsty - ... - - -Not implemented. - - - - bool setPoints - int nPoints - const QCOORD *points - - -This takes a single parameter which is a list of points. - - - - bool setPoints - int nPoints - int firstx - int firsty - ... - - -Not implemented. - - -QPopupMenu - - int exec - - - -This has been renamed exec_loop in Python. - - -This method also causes ownership of the underlying C++ menu to be transfered -to Python. This means that the C++ menu will be deleted when the Python -wrapper is garbage collected. Although this is a little inconsistent, it -ensures that the menu is deleted without having to explicity code it using -QObject.deleteLater() or other techniques. - - - - int exec - const QPoint &pos - int indexAtPoint = 0 - - -This has been renamed exec_loop in Python. - - -This method also causes ownership of the underlying C++ menu to be transfered -to Python. This means that the C++ menu will be deleted when the Python -wrapper is garbage collected. Although this is a little inconsistent, it -ensures that the menu is deleted without having to explicity code it using -QObject.deleteLater() or other techniques. - - -QPrintDialog (X11) - -QPrintDialog is fully implemented. - - -QPrinter - -QPrinter is fully implemented. - - -QProcess (Qt v3+) - -QProcess is fully implemented. - - -QProgressBar - -QProgressBar is fully implemented. - - -QProgressDialog - -QProgressDialog is fully implemented. -value. - - -QPtrList<type> (Qt v2+) - -Types based on the QPtrList template are automatically -converted to and from Python lists of the type. - - -QPushButton - -QPushButton is fully implemented. - - -QRadioButton - -QRadioButton is fully implemented. - - -QRangeControl - -QRangeControl is fully implemented. - - -QRect - -The Python -&, &=, -|, |=, -==, !=, in and -__nonzero__ operators are supported. - - - - void coords - int *x1 - int *y1 - int *x2 - int *y2 - - -This takes no parameters and returns a tuple containing the four values. - - - - void rect - int *x - int *y - int *w - int *h - - -This takes no parameters and returns a tuple containing the four values. - - - - QCOORD &rBottom - - - -Not implemented. (Qt v2+) - - - - QCOORD &rLeft - - - -Not implemented. (Qt v2+) - - - - QCOORD &rRight - - - -Not implemented. (Qt v2+) - - - - QCOORD &rTop - - - -Not implemented. (Qt v2+) - - -QRegExp - -The Python == and != operators are -supported. - - - - int match - const char *str - int index = 0 - int *len = 0 - - -This takes str and index parameters and -returns a tuple of the int result and the -len value. (Qt v1.x) - - - - int match - const QString &str - int index = 0 - int *len = 0 - - -This takes str and index parameters and -returns a tuple of the int result and the -len value. (Qt v2+) - - -QRegion - -The Python -|, |=, -+, +=, -&, &=, --, -=, -^, ^=, -==, !=, in and -__nonzero__ operators are supported. - - - - QArray<QRect> rects - - - -Not implemented. - - - - void setRects - QRect *rects - int num - - -Not yet implemented. (Qt v2.2+) - - -QScrollBar - -QScrollBar is fully implemented. - - -QScrollView - - void contentsToViewport - int x - int y - int &vx - int &vy - - -This takes the x and y parameters and -returns a tuple containing the vx and vy -values. (Qt v2+) - - - - void viewportToContents - int vx - int vy - int &x - int &y - - -This takes the vx and vy parameters and -returns a tuple containing the x and y -values. (Qt v2+) - - -QSemaphore (Qt v2.2+) - -QSemaphore is fully implemented. The += -and -= operators have also been implemented, but require -Python v2.0 or later. - - -QSemiModal (Qt v1, v2) - -QSemiModal is fully implemented. - - -QSessionManager (Qt v2+) - -QSessionManager is fully implemented. - - -QSettings (Qt v3+) - - bool readBoolEntry - const QString &key - bool def = 0 - bool *ok = 0 - - -The ok is not passed and the returned value is a tuple of -the bool result and the ok flag. - - - -double readDoubleEntry - const QString &key - double def = 0 - bool *ok = 0 - - -The ok is not passed and the returned value is a tuple of -the double result and the ok flag. - - - -QString readEntry - const QString &key - const QString &def = QString::null - bool *ok = 0 - - -The ok is not passed and the returned value is a tuple of -the QString result and the ok flag. - - - -QStringList readListEntry - const QString &key - bool *ok = 0 - - -The ok is not passed and the returned value is a tuple of -the QStringList result and the ok flag. - - - -QStringList readListEntry - const QString &key - const QChar &separator - bool *ok = 0 - - -The ok is not passed and the returned value is a tuple of -the QStringList result and the ok flag. - - - -int readNumEntry - const QString &key - int def = 0 - bool *ok = 0 - - -The ok is not passed and the returned value is a tuple of -the int result and the ok flag. - - - - bool writeEntry - const QString &key - bool value - - -Not implemented. - - -QSGIStyle (Qt v2.2+) - - void scrollBarMetrics - const QScrollBar *sb - int &sliderMin - int &sliderMax - int &sliderLength - int &buttonDim - - -This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2) - - -QSignalMapper - -QSignalMapper is fully implemented. - - -QSimpleRichText (Qt v2+) - -QSimpleRichText is fully implemented. - - -QSize - -The Python -+, +=, --, -=, -*, *=, -/, /=, -==, != and __nonzero__ -operators are supported. - - - - QCOORD &rheight - - - -Not implemented. - - - - QCOORD &rwidth - - - -Not implemented. - - -QSizeGrip (Qt v2+) - -QSizeGrip is fully implemented. - - -QSizePolicy (Qt v2+) - -QSizePolicy is fully implemented. - - -QSlider - -QSlider is fully implemented. - - -QSocketNotifier - -QSocketNotifier is fully implemented. - - -QSound (Qt v2.2+) - -QSound is fully implemented. - - -QSpinBox - - virtual int mapTextToValue - bool *ok - - -This returns a tuple of the int result and the modified -ok value. - - -QSplashScreen (Qt v3.2.0+) - -QSplashScreen is fully implemented. - - -QSplitter - - void getRange - int id - int *min - int *max - - -This takes the id parameter and returns the -min and max values as a tuple. (Qt v2+) - - -QStatusBar - -QStatusBar is fully implemented. - - -QChar (Qt v2+) - - uchar &cell const - - - -Not implemented. - - - - uchar &row const - - - -Not implemented. - - - -QString - -A Python string object (or Unicode object) can be used whenever a -QString can be used. A QString can be -converted to a Python string object using the Python str() -function, and to a Python Unicode object using the Python -unicode() function. - - - -The Python +, +=, *, -*=, len, [] -(for reading slices and individual characters), in and -comparison operators are supported. - - - - QCharRef at - uint i - - -Not yet implemented. (Qt v2+) - - - - QChar constref const - uint i - - -Not yet implemented. (Qt v2+) - - - - QChar &ref - uint i - - -Not yet implemented. (Qt v2+) - - - - QString &setUnicodeCodes - const ushort *unicode_as_shorts - uint len - - -Not yet implemented. (Qt v2.1+) - - - - QString &sprintf - const char *format - ... - - -Not implemented. - - - - short toShort - bool *ok = 0 - - -This returns a tuple of the short result and the -ok value. - - - - ushort toUShort - bool *ok = 0 - - -This returns a tuple of the ushort result and the -ok value. - - - - int toInt - bool *ok = 0 - - -This returns a tuple of the int result and the -ok value. - - - - uint toUInt - bool *ok = 0 - - -This returns a tuple of the uint result and the -ok value. - - - - long toLong - bool *ok = 0 - - -This returns a tuple of the long result and the -ok value. - - - - ulong toULong - bool *ok = 0 - - -This returns a tuple of the ulong result and the -ok value. - - - - float toFloat - bool *ok = 0 - - -This returns a tuple of the float result and the -ok value. - - - - double toDouble - bool *ok = 0 - - -This returns a tuple of the double result and the -ok value. - - -QStringList (Qt v2+) - -The Python len, [] (for both reading and -writing slices and individual elements), del (for deleting -slices and individual elements), +, +=, -*, *=, ==, -!= and in operators are supported. - - - - Iterator append - const QString &x - - -This does not return a value. - - - - Iterator prepend - const QString &x - - -This does not return a value. - - -QStrList - -This class isn't implemented. Whenever a QStrList is the -return type of a function or the type of an argument, a Python list of strings -is used instead. - - -QStyle (Qt v2+) - - virtual void getButtonShift - int &x - int &y - - -This takes no parameters and returns a tuple of the x and -y values. (Qt v2) - - - - virtual void scrollBarMetrics - const QScrollBar *b - int &sliderMin - int &sliderMax - int &sliderLength - int &buttonDim - - -Thus takes only the b parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2) - - - - virtual void tabbarMetrics - const QTabBar *t - int &hframe - int &vframe - int &overlap - - -This takes only the t parameter and returns a tuple of the -hframe, vframe and -overlap values. (Qt v2) - - - -QStyleOption (Qt v3+) - -QStyleOption is fully implemented. - - -QStyleSheet (Qt v2+) - -QStyleSheet is fully implemented. - - - -QStyleSheetItem (Qt v2+) - -QStyleSheetItem is fully implemented. - - -QSyntaxHighlighter (Qt v3.1+) - -QSyntaxHighlighter is fully implemented. - - -QTab - -QTab is fully implemented. - - - -QTabBar - - QList<QTab> tabList - - - -This returns a list of QTab instances. - - -QTabDialog - -QTabDialog is fully implemented. - - -QTableView (Qt 1.x, Qt 2.x) - - bool colXPos - int col - int *xPos - - -This takes the col parameter and returns a tuple containing -the bool result and xPos. - - - - bool rowYPos - int row - int *yPos - - -This takes the row parameter and returns a tuple containing -the bool result and yPos. - - -QTabWidget (Qt v2+) - -QTabWidget is fully implemented. - - -QTextBrowser (Qt v2+) - -QTextBrowser is fully implemented. - - -QTextCodec (Qt v2+) - - virtual QCString fromUnicode - const QString &uc - int &lenInOut - - -The returned value is a tuple of the QCString result and the -updated lenInOut. - - - -QTextDecoder (Qt v2+) - -QTextDecoder is fully implemented. - - - -QTextEncoder (Qt v2+) - - virtual QCString fromUnicode = 0 - const QString &uc - int &lenInOut - - -The returned value is a tuple of the QCString result and the -updated lenInOut. - - -QTextEdit (Qt v3+) - -int charAt - const QPoint &pos - int *para = 0 - - -This takes only the pos parameter and returns a tuple of the -value returned via the para pointer and the int result. - - - - void del - - - -This has been renamed delChar in Python. - - - -virtual bool find - const QString &expr - bool cs - bool wo - bool forward = TRUE - int *para = 0 - int *index = 0 - - -If the para and index parameters are -omitted then the bool result is returned. If both are supplied (as integers) -then a tuple of the bool result and the modified values of -para and index is returned. - - - -void getCursorPosition - int *para - int *index - - -This takes no parameters and returns a tuple of the values returned via the -para and index pointers. - - - -void getSelection - int *paraFrom - int *indexFrom - int *paraTo - int *indexTo - int selNum = 0 - - -This takes only the selNum parameter and returns a tuple of -the paraFrom, indexFrom, -paraTo and indexTo values. - - -QTextStream - - QTextStream - FILE *fp - int mode - - -Not implemented. - - - - QTextStream &readRawBytes - char *buf - uint len - - -Not yet implemented. - - - - QTextStream &writeRawBytes - const char *buf - uint len - - -Not yet implemented. - - - -QTextIStream (Qt v2+) - - QTextIStream - FILE *fp - int mode - - -Not implemented. - - - -QTextOStream (Qt v2+) - - QTextOStream - FILE *fp - int mode - - -Not implemented. - - -QTextView (Qt v2+) - -QTextView is fully implemented. - - -QThread (Qt v2.2+) - -QThread is fully implemented. - - -QTimer - -QTimer is fully implemented. - - -QToolBar - -QToolBar is fully implemented. - - -QToolBox (Qt v3.2.0+) - -QToolBox is fully implemented. - - -QToolButton - -QToolButton is fully implemented. - - -QToolTip - -QToolTip is fully implemented. - - - -QToolTipGroup - -QToolTipGroup is fully implemented. - - -QTranslator (Qt v2+) - -QTranslator is fully implemented. - - - -QTranslatorMessage (Qt v2.2+) - -QTranslatorMessage is fully implemented. - - -QUrl (Qt v2.1+) - -QUrl is fully implemented, including the -QString(), == and != -operators. - - -QUrlInfo (Qt v2.1+) - -QUrlInfo is fully implemented. - - -QUrlOperator (Qt v2.1+) - - virtual bool isDir - bool *ok - - -This returns a tuple of the bool result and the -ok value. - - -QUuid (Qt v3.0+) - -QUuid is fully implemented. - - -QValidator - - virtual State validate - QString& input - int& pos - - -The returned value is a tuple of the State result and the -updated pos. - - - -QDoubleValidator - - State validate - QString& input - int& pos - - -The returned value is a tuple of the State result and the -updated pos. - - - -QIntValidator - - State validate - QString& input - int& pos - - -The returned value is a tuple of the State result and the -updated pos. - - - -QRegExpValidator (Qt v3+) - - virtual State validate - QString& input - int& pos - - -The returned value is a tuple of the State result and the -updated pos. - - -QValueList<type> (Qt v2+) - -Types based on the QValueList template are automatically -converted to and from Python lists of the type. - - -QVariant (Qt v2.1+) - - QVariant - const char *val - - -Not implemented. - - - - QVariant - const QBitArray &val - - -Not yet implemented. (Qt v3+) - - - - QVariant - const QValueList<QVariant> &val - - -Not yet implemented. - - - - QVariant - const QMap<QString,QVariant> &val - - -Not yet implemented. - - - - QBitArray &asBitArray - - - -Not yet implemented. (Qt v3+) - - - - bool &asBool - - - -Not implemented. - - - - double &asDouble - - - -Not implemented. - - - - int &asInt - - - -Not implemented. - - - - QValueList<QVariant> &asList - - - -Not implemented. - - - - QMap<QString,QVariant> &asMap - - - -Not implemented. - - - - uint &asUInt - - - -Not implemented. - - - - QValueListConstIterator<QVariant>listBegin const - - - -Not implemented. - - - - QValueListConstIterator<QVariant>listEnd const - - - -Not implemented. - - - - QMapConstIterator<QString,QVariant>mapBegin const - - - -Not implemented. - - - - QMapConstIterator<QString,QVariant>mapEnd const - - - -Not implemented. - - - - QMapConstIterator<QString,QVariant>mapFind const - const QString &key - - -Not implemented. - - - - QValueListConstIterator<QString>stringListBegin const - - - -Not implemented. - - - - QValueListConstIterator<QString>stringListEnd const - - - -Not implemented. - - - - const QBitArray toBitArray const - - - -Not yet implemented. (Qt v3+) - - - - const QValueList<QVariant>toList const - - - -Not yet implemented. - - - - const QMap<QString,QVariant>toMap const - - - -Not yet implemented. - - -QVBox (Qt v2+) - -QVBox is fully implemented. - - -QVButtonGroup (Qt v2+) - -QVButtonGroup is fully implemented. - - -QVGroupBox (Qt v2+) - -QVGroupBox is fully implemented. - - -QWaitCondition (Qt v2.2+) - -QWaitCondition is fully implemented. - - -QWhatsThis - -QWhatsThis is fully implemented. - - -QWidget - - QWExtra *extraData - - - -Not implemented. - - - - QFocusData *focusData - - - -Not implemented. - - - - void lower - - - -This has been renamed to lowerW in Python. - - - - void raise - - - -This has been renamed to raiseW in Python. - - -QWidgetList - -This class isn't implemented. Whenever a QWidgetList is the -return type of a function or the type of an argument, a Python list of -instances is used instead. - - -QWidgetStack - -QWidgetStack is fully implemented. - - -QWindow - -QWindow is fully implemented (Qt v1.x). - - -QWindowsStyle (Qt v2+) - - void getButtonShift - int &x - int &y - - -This takes no parameters and returns a tuple of the x and -y values. (Qt v2) - - - - void scrollBarMetrics - const QTabBar *sb - int &sliderMin - int &sliderMax - int &sliderLength - int &buttonDim - - -This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2) - - - - void tabbarMetrics - const QTabBar *t - int &hframe - int &vframe - int &overlap - - -This takes only the t parameter and returns a tuple of the -hframe, vframe and -overlap values. (Qt v2) - - -QWindowsXPStyle (Qt v3.0.1+, Windows) - -QWindowsXPStyle is fully implemented. - - -QWizard (Qt v2+) - -QWizard is fully implemented. - - -QWMatrix - -The Python ==, != and -*= operators are supported. - - - - QWMatrix invert const - bool *invertible = 0 - - -This takes no parameters and returns a tuple of the QWMatrix -result and the invertible value. - - - - void map const - int x - int y - int *tx - int *ty - - -This takes the x and y parameters and -returns a tuple containing the tx and ty -values. - - - - void map const - float x - float y - float *tx - float *ty - - -This takes the x and y parameters and -returns a tuple containing the tx and ty -values. (Qt v1.x) - - - - void map const - double x - double y - double *tx - double *ty - - -This takes the x and y parameters and -returns a tuple containing the tx and ty -values. (Qt v2+) - - -QWorkspace (Qt v2.1+) - -QWorkspace is fully implemented. - - - -<Literal>qtaxcontainer</Literal> Module Reference -QAxBase (Windows, Qt v3+) - - QAxObject - IUnknown *iface = 0 - - -Not implemented. - - - - long queryInterface - const QUuid &uuid - void **iface - - -Not implemented. - - - - PropertyBag propertyBag const - - - -Not implemented. - - - - void setPropertyBag - const PropertyBag &bag - - -Not implemented. - - - - unsigned long registerWeakActiveObject - const QString &guid - - -This is a utility method provided by PyQt to make it easier to use -Mark Hammond's win32com module to manipulate objects -created by the qtaxcontainer module. - - -The RegisterActiveObject() COM function is called to -register the QAxBase instance as a weak object with the -guid GUID. The revoke handle is returned. - - - - static void revokeActiveObject - unsigned long rhandle - - -This is a wrapper around the RevokeActiveObject() COM -function and is called to revoke the object registered using -registerWeakActiveObject(). rhandle is -the revoke handle returned by registerWeakActiveObject(). - - -QAxObject (Windows, Qt v3+) - - QAxObject - IUnknown *iface - QObject *parent = 0 - const char *name = 0 - - -Not implemented. - - -QAxWidget (Windows, Qt v3+) - - QAxWidget - IUnknown *iface - QWidget *parent = 0 - const char *name = 0 - - -Not implemented. - - - -<Literal>qtcanvas</Literal> Module Reference -QCanvas (Qt v2.2+) - -QCanvas is fully implemented. - - - -QCanvasEllipse (Qt v2.2+) - -QCanvasEllipse is fully implemented. - - - -QCanvasItem (Qt v2.2+) - -QCanvasItem is fully implemented. - - - -QCanvasItemList (Qt v2.2+) - -This class isn't implemented. Whenever a QCanvasItemList is -the return type of a function or the type of an argument, a Python list of -QCanvasItem instances is used instead. - - - -QCanvasLine (Qt v2.2+) - -QCanvasLine is fully implemented. - - - -QCanvasPixmap (Qt v2.2+) - -QCanvasPixmap is fully implemented. - - - -QCanvasPixmapArray (Qt v2.2+) - - QPixmapArray - QList<QPixmap> pixmaps - QList<QPoint> hotspots - - -The pixmaps argument is a Python list of QPixmap instances, -and the hotspots argument is a Python list of QPoint -instances. (Qt v2.2.0 - Qt v2.3.1) - - - - QPixmapArray - QValueList<QPixmap> pixmaps - QPointArray hotspots = QPointArray() - - -The pixmaps argument is a Python list of QPixmap instances. -(Qt v3+) - - - -QCanvasPolygon (Qt v2.2+) - -QCanvasPolygon is fully implemented. - - - -QCanvasPolygonalItem (Qt v2.2+) - -QCanvasPolygonalItem is fully implemented. - - - -QCanvasRectangle (Qt v2.2+) - -QCanvasRectangle is fully implemented. - - - -QCanvasSpline (Qt v3.0+) - -QCanvasSpline is fully implemented. - - - -QCanvasSprite (Qt v2.2+) - -QCanvasSprite is fully implemented. - - - -QCanvasText (Qt v2.2+) - -QCanvasText is fully implemented. - - - -QCanvasView (Qt v2.2+) - -QCanvasView is fully implemented. - - - -<Literal>qtext</Literal> Module Reference - -QextScintilla - - void getCursorPosition - int *line - int *index - - -This takes no parameters and returns a tuple of the values returned by the -line and index pointers. - - - - void getSelection - int *lineFrom - int *indexFrom - int *lineTo - int *indexTo - - -This takes no parameters and returns a tuple of the values returned by the -lineFrom, indexFrom, -lineTo and indexTo pointers. - - - -QextScintillaAPIs - -QextScintillaAPIs is fully implemented. - - - -QextScintillaBase - -QextScintillaBase is fully implemented. - - - -QextScintillaCommand - -QextScintillaCommand is fully implemented. - - - -QextScintillaCommandSet - -QextScintillaCommandSet is fully implemented. - - - -QextScintillaDocument - -QextScintillaDocument is fully implemented. - - - -QextScintillaLexer - -QextScintillaLexer is fully implemented. - - - -QextScintillaLexerBash (QScintilla v1.4+) - -QextScintillaLexerBash is fully implemented. - - - -QextScintillaLexerBatch (QScintilla v1.6+) - -QextScintillaLexerBatch is fully implemented. - - - -QextScintillaLexerCPP - -QextScintillaLexerCPP is fully implemented. - - - -QextScintillaLexerCSharp - -QextScintillaLexerCSharp is fully implemented. - - - -QextScintillaLexerCSS (QScintilla v1.6+) - -QextScintillaLexerCSS is fully implemented. - - - -QextScintillaLexerDiff (QScintilla v1.6+) - -QextScintillaLexerDiff is fully implemented. - - - -QextScintillaLexerHTML (QScintilla v1.1+) - -QextScintillaLexerHTML is fully implemented. - - - -QextScintillaLexerIDL - -QextScintillaLexerIDL is fully implemented. - - - -QextScintillaLexerJava - -QextScintillaLexerJava is fully implemented. - - - -QextScintillaLexerJavaScript - -QextScintillaLexerJavaScript is fully implemented. - - - -QextScintillaLexerLua (QScintilla v1.5+) - -QextScintillaLexerLua is fully implemented. - - - -QextScintillaLexerMakefile (QScintilla v1.6+) - -QextScintillaLexerMakefile is fully implemented. - - - -QextScintillaLexerPerl - -QextScintillaLexerPerl is fully implemented. - - - -QextScintillaLexerPOV (QScintilla v1.6+) - -QextScintillaLexerPOV is fully implemented. - - - -QextScintillaLexerProperties (QScintilla v1.6+) - -QextScintillaLexerProperties is fully implemented. - - - -QextScintillaLexerPython - -QextScintillaLexerPython is fully implemented. - - - -QextScintillaLexerRuby (QScintilla v1.5+) - -QextScintillaLexerRuby is fully implemented. - - - -QextScintillaLexerSQL (QScintilla v1.1+) - -QextScintillaLexerSQL is fully implemented. - - - -QextScintillaLexerTeX (QScintilla v1.6+) - -QextScintillaLexerTeX is fully implemented. - - - -QextScintillaMacro - -QextScintillaMacro is fully implemented. - - - -QextScintillaPrinter - -QextScintillaPrinter is fully implemented. - - - -<Literal>qtgl</Literal> Module Reference -QGL - -QGL is fully implemented. - - - -QGLContext - -QGLContext is fully implemented. - - - -QGLFormat - -QGLFormat is fully implemented. - - - -QGLWidget - -QGLWidget is fully implemented. - - -QGLColormap (Qt v3.0+) - - void setEntries - int count - const QRgb *colors - int base = 0 - - -Not yet implemented. - - - -<Literal>qtnetwork</Literal> Module Reference -QDns (Qt v2.2+) - -QDns is fully implemented. - - -QFtp (Qt v2.2+) - - Q_LONG readBlock - char *data - Q_ULONG maxlen - - -This takes a single maxlen parameter. The -data is returned if there was no error, otherwise -None is returned. - - -QHostAddress (Qt v2.2+) - - QHostAddress - Q_UINT8 *ip6Addr - - -Not yet implemented. - - - - QHostAddress - const Q_IPV6ADDR &ip6Addr - - -Not yet implemented. - - - - void setAddress - Q_UINT8 *ip6Addr - - -Not yet implemented. - - - - Q_IPV6ADDR toIPv6Address const - - - -Not yet implemented. - - -QHttp (Qt v3+) - - Q_LONG readBlock - char *data - Q_ULONG maxlen - - -This takes a single maxlen parameter. The -data is returned if there was no error, otherwise -None is returned. - - - -QHttpHeader (Qt v3.1+) - -QHttpHeader is fully implemented. - - - -QHttpRequestHeader (Qt v3.1+) - -QHttpRequestHeader is fully implemented. - - - -QHttpResponseHeader (Qt v3.1+) - -QHttpResponseHeader is fully implemented. - - -QLocalFs (Qt v2.1+) - -QLocalFs is fully implemented. - - -QServerSocket (Qt v2.2+) - -QServerSocket is fully implemented. - - -QSocket (Qt v2.2+) - - Q_LONG readBlock - char *data - Q_ULONG len - - -This takes a single len parameter. The -data is returned if there was no error, otherwise -Py_None is returned. - - - - Q_LONG readLine - char *data - Q_ULONG maxlen - - -This takes a single maxlen parameter. The -data is returned if there was no error, otherwise -Py_None is returned. - - - - Q_LONG writeBlock - const char *data - Q_ULONG len - - -len is derived from data and not passed -as a parameter. - - -QSocketDevice (Qt v2.2+) - - Q_LONG readBlock - char *data - Q_ULONG len - - -This takes a single len parameter. The -data is returned if there was no error, otherwise -None is returned. - - - - Q_LONG writeBlock - const char *data - Q_ULONG len - - -len is derived from data and not passed -as a parameter. - - - -<Literal>qtpe</Literal> Module Reference - -QPEApplication - - QApplication - int& argc - char **argv - Type type - - -This takes two parameters, the first of which is a list of argument strings. -Arguments used by Qt are removed from the list. - - - - int exec - - - -This has been renamed to exec_loop in Python. - - - -AppLnk - - virtual QString exec const - - - -This has been renamed to exec_property in Python. - - - -AppLnkSet - -AppLnkSet is fully implemented. - - - -Config - -Config is fully implemented. - - - -DateFormat - -DateFormat is fully implemented. - - - -DocLnk - - QString exec const - - - -This has been renamed to exec_property in Python. - - - -DocLnkSet - -DocLnkSet is fully implemented. - - - -FileManager - -FileManager is fully implemented. - - - -FileSelector - -FileSelector is fully implemented. - - - -FileSelectorItem - -FileSelectorItem is fully implemented. - - - -FontDatabase - -FontDatabase is fully implemented. - - - -Global - - static void setBuiltinCommands - Command * - - -Not implemented. - - - -MenuButton - -MenuButton is fully implemented. - - - -QCopEnvelope - -QCopEnvelope is fully implemented. - - - -QDawg - -QDawg is fully implemented. - - - -QPEMenuBar - -QPEMenuBar is fully implemented. - - - -QPEToolBar - -QPEToolBar is fully implemented. - - - -Resource - -Resource is fully implemented. - - - - -<Literal>qtsql</Literal> Module Reference -QDataBrowser (Qt v3+) - - virtual void del - - - -This has been renamed delOnCursor in Python. - - -QDataTable (Qt v3+) - -QDataTable is fully implemented. - - -QDataView (Qt v3+) - -QDataView is fully implemented. - - -QEditorFactory (Qt v3+) - -QEditorFactory is fully implemented. - - -QSql (Qt v3+) - -QSql is fully implemented. - - -QSqlCursor (Qt v3+) - - virtual int del - bool invalidate = TRUE - - -This has been renamed delRecords in Python. - - - - virtual int del - const QString &filter - bool invalidate = TRUE - - -This has been renamed delRecords in Python. - - - - bool exec - const QString &query - - -This has been renamed execQuery in Python. - - -QSqlDatabase (Qt v3+) - - QSqlQuery exec - const QString &query = QString::null - - -This has been renamed execStatement in Python. - - -QSqlDriver (Qt v3+) - -QSqlDriver is fully implemented. - - -QSqlEditorFactory (Qt v3+) - -QSqlEditorFactory is fully implemented. - - -QSqlError (Qt v3+) - -QSqlError is fully implemented. - - -QSqlField (Qt v3+) - -QSqlField is fully implemented. - - - -QSqlFieldInfo (Qt v3+) - -QSqlFieldInfo is fully implemented. - - -QSqlForm (Qt v3+) - -QSqlForm is fully implemented. - - -QSqlIndex (Qt v3+) - -QSqlIndex is fully implemented. - - -QSqlPropertyMap (Qt v3+) - -QSqlPropertyMap is fully implemented. However, because PyQt -does not allow new properties to be defined, it is not possible to implement -custom editor widgets in Python and add them to a property map. These will -simply be ignored. - - - -This problem may be addressed in a future release of PyQt. - - -QSqlQuery (Qt v3+) - - QMap<QString,QVariant> boundValues const - - - -Not yet implemented. (Qt v3.2.0+) - - - - virtual bool exec - const QString &query - - -This has been renamed execQuery in Python. - - - - bool exec - - - -This has been renamed execQuery in Python. (Qt v3.1+) - - -QSqlRecord (Qt v3+) - -QSqlRecord is fully implemented. - - - -QSqlRecordInfo (Qt v3+) - -QSqlRecordInfo is implemented as a Python list of -QSqlFieldInfo instances. - - -QSqlResult (Qt v3+) - -QSqlResult is fully implemented. - - -QSqlSelectCursor (Qt v3.2.0+) - - int del - bool invalidate = TRUE - - -This has been renamed delRecords in Python. - - - - bool exec - const QString &query - - -This has been renamed execQuery in Python. - - - -<Literal>qttable</Literal> Module Reference -QTable (Qt v2.2+) - -QTable is fully implemented. - - - -QTableItem (Qt v2.2+) - -QTableItem is fully implemented. - - - -QCheckTableItem (Qt v3+) - -QCheckTableItem is fully implemented. - - - -QComboTableItem (Qt v3+) - -QComboTableItem is fully implemented. - - - -QTableSelection (Qt v2.2+) - -QTableSelection is fully implemented. - - - -<Literal>qtui</Literal> Module Reference -QWidgetFactory (Qt v3+) - -QWidgetFactory is fully implemented. - - - -<Literal>qtxml</Literal> Module Reference -QDomImplementation (Qt v2.2+) - -QDomImplementation is fully implemented. - - - -QDomNode (Qt v2.2+) - -QDomNode is fully implemented, including the Python -== and != operators. - - - -QDomNodeList (Qt v2.2+) - -QDomNodeList is fully implemented. - - - -QDomDocument (Qt v2.2+) - - bool setContent - const QCString &buffer - bool namespaceProcessing - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -This takes the buffer and -namespaceProcessing parameters and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+) - - - - bool setContent - const QByteArray &buffer - bool namespaceProcessing - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -This takes the buffer and -namespaceProcessing parameters and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+) - - - - bool setContent - const QString &text - bool namespaceProcessing - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -This takes the text and -namespaceProcessing parameters and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+) - - - - bool setContent - const QIODevice *dev - bool namespaceProcessing - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -This takes the dev and -namespaceProcessing parameters and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+) - - - - bool setContent - const QCString &buffer - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -This takes the buffer parameter only and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+) - - - - bool setContent - const QByteArray &buffer - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -This takes the buffer parameter only and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+) - - - - bool setContent - const QString &text - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -This takes the text parameter only and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+) - - - - bool setContent - const QIODevice *dev - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -This takes the dev parameter only and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+) - - - - bool setContent - QXmlInputSource *source - QXmlReader *reader - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -Not yet implemented. (Qt v3.2.0+) - - - -QDomDocumentFragment (Qt v2.2+) - -QDomDocumentFragment is fully implemented. - - - -QDomDocumentType (Qt v2.2+) - -QDomDocumentType is fully implemented. - - - -QDomNamedNodeMap (Qt v2.2+) - -QDomNamedNodeMap is fully implemented. - - - -QDomCharacterData (Qt v2.2+) - -QDomCharacterData is fully implemented. - - - -QDomAttr (Qt v2.2+) - -QDomAttr is fully implemented. - - - -QDomElement (Qt v2.2+) - -QDomElement is fully implemented. - - - -QDomText (Qt v2.2+) - -QDomText is fully implemented. - - - -QDomComment (Qt v2.2+) - -QDomComment is fully implemented. - - - -QDomCDATASection (Qt v2.2+) - -QDomCDATASection is fully implemented. - - - -QDomNotation (Qt v2.2+) - -QDomNotation is fully implemented. - - - -QDomEntity (Qt v2.2+) - -QDomEntity is fully implemented. - - - -QDomEntityReference (Qt v2.2+) - -QDomEntityReference is fully implemented. - - - -QDomProcessingInstruction (Qt v2.2+) - -QDomProcessingInstruction is fully implemented. - - - -
diff --git a/python/pyqt/doc/qtdocs.sip b/python/pyqt/doc/qtdocs.sip deleted file mode 100644 index 7d95ba04..00000000 --- a/python/pyqt/doc/qtdocs.sip +++ /dev/null @@ -1,1920 +0,0 @@ -// This is the SIP file for organising the PyQt documentation. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Module Dummy - - -%Include qt/versions.sip - - -%Doc - -
- - Python Bindings for Qt (3.17.2) - - Phil - Thompson - - - - This document describes a set of Python bindings for the Qt widget set. - Contact the author at phil@riverbankcomputing.co.uk. - - - - - -Introduction - -PyQt is a set of Python bindings for the Qt toolkit and available for all -platforms supported by Qt, including Windows, Linux, UNIX, MacOS/X and embedded -systems such as the Sharp Zaurus and the Compaq iPAQ. They have been tested -against Qt versions 1.43 to 3.3.6, Qt Non-commercial, Qtopia 1.5.0, and Python -versions 1.5 to 2.4.2. Qt/Embedded v3 is not supported. Qt v4 is supported -by PyQt v4. - - - -PyQt is available under the GPL license for use with the GPL version of Qt, a -a commercial license for use with the commercial version of Qt, a -non-commercial license for use with the non-commercial version of Qt v2, and an -educational license for use with the educational version of Qt. - - - -There is also an evaluation version of PyQt for Windows. This must be used -with the corresponding evaluation version of Qt. - - - -PyQt is built using SIP (a tool for generating Python extension modules for -C++ class libraries). SIP v4.6 or later must be installed in order to build -and run this version of PyQt. - - - -PyQt for MacOS/X requires Qt v3.1.0 or later and Python v2.3 or later. - - - -The bindings are implemented as a number of Python modules - - - - - -qt is the main module and contains the core classes and most -user interface widgets. - - - - - -qtaxcontainer contains a sub-set of the classes implemented -in Qt's QAxContainer module, part of Qt's ActiveQt framework. - - - - - -qtcanvas contains the classes implemented in Qt's Canvas -module. - - - - - -qtgl contains the classes implemented in Qt's OpenGL module. - - - - - -qtnetwork contains the classes implemented in Qt's Network -module. - - - - - -qtpe contains the classes implemented in Qtopia (originally -called the Qt Palmtop Environment). It is only supported with Qt/Embedded. - - - - - -qtsql contains the classes implemented in Qt's SQL module. - - - - - -qttable contains the classes implemented in Qt's Table -module. - - - - - -qtui contains the classes implemented in Qt's qui library. -These allow GUIs to be created directly from Qt Designer's -.ui files. - - - - - -qtxml contains the classes implemented in Qt's XML module. - - - - - -qtext contains useful third-party classes that are not part -of Qt. At the moment it contains bindings for QScintilla, the port to Qt of -the Scintilla programmer's editor class. - - - - - -PyQt also includes the pyuic and -pylupdate utilities which correspond to the Qt -uic and lupdate utilities. -pyuic converts the GUI designs created with Qt Designer to -executable Python code. pylupdate scans Python code, -extracts all strings that are candidates for internationalisation, and creates -an XML file for use by Qt Linguist. - - -Changes - -The changes visible to the Python programmer in this release are as follows. - - - - - -This version requires SIP v4.4 (or later). - - - - - -Concatenating Python strings and QStrings is now supported. - - - - - -QString now supports the * and -*= operators that behave as they do for Python strings. - - - - - -QString is more interoperable with Python string and unicode -objects. For example they can be passed as arguments to -open() and to most (but not all) string methods. - - - - - -QPopupMenu (and sub-classes) instances now transfer -ownership of the menu to Python in the call to exec_loop(). -This means the menu's resources are all released when the Python wrapper is -garbage collected without needing to call -QObject.deleteLater(). - - - - - -QObject.sender() now handles Python signals. - - - - - -The missing MacintoshVersion enum has been added. - - - - - -PYQT_BUILD has been removed. - - - - - -The convention for converting between a C/C++ null pointer and Python's -None object has now been universally applied. In previous -versions a null pointer to, for example, a Qt list container would often be -converted to an empty list rather than None. - - - - - - - - -Other PyQt Goodies -Using Qt Designer - -Qt Designer is a GPL'ed GUI design editor provided by Trolltech as part of Qt. -It generates an XML description of a GUI design. Qt includes -uic which generates C++ code from that XML. - - - -PyQt includes pyuic which generates Python code from the -same XML. The Python code is self contained and can be executed immediately. - - - -It is sometimes useful to be able to include some specific Python code in the -output generated by pyuic. For example, if you are using -custom widgets, pyuic has no way of knowing the name of the -Python module containing the widget and so cannot generate the required -import statement. To help get around this, -pyuic will extract any lines entered in the -Comment field of Qt Designer's -Form Settings dialog that begin with -Python: and copies them to the generated output. - - - -Here's a simple example showing the contents of the Comment -field. - - - -This comment will be ignored by pyuic. -Python: -Python:# Import our custom widget. -Python:from foo import bar - - - -Here's the corresponding output from pyuic. - - - -from qt import * - -# Import our custom widget. -from foo import bar - - - -Thanks to Christian Bird, pyuic will extract Python code -entered using Qt Designer to implement slots. In Qt Designer, when you need to -edit a slot and the source editor appears, enter Python code between the curly -braces. Don't worry about the correct starting indent level, each line is -prepended with a correct indentation. - - - -Make sure that the ui.h file is in the same directory as the -.ui file when using pyuic. The -.ui file implies the name of the .ui.h -file so there is no need to specify it on the command line. - - - -Here's an example of a simple slot. - - - -void DebMainWindowFrm::browsePushButtonClicked() -{ -if self.debugging: - QMessageBox.critical(self, "Event", "browse pushbutton was clicked!") -} - - - -Here is the resulting code when pyuic is run. - - - -class DebMainWindowFrm(QMainWindow): - ...stuff... - def browsePushButtonClicked(self): - if self.debugging: - QMessageBox.critical(self, "Event", "browse pushbutton was clicked!") - - - -Note that indenting is as normal and that self and all other -parameters passed to the slot are available. - - - -If you use this, you will need to turn off all of the fancy options for the C++ -editor in Designer as it tries to force C++ syntax and that's naturally -annoying when trying to code in Python. - - - -Using Qt Linguist - -Qt includes the lupdate program which parses C++ source -files converting calls to the QT_TR_NOOP() and -QT_TRANSLATE_NOOP() macros to .ts -language source files. The lrelease program is then used to -generate .qm binary language files that are distributed with -your application. - - - -Thanks to Detlev Offenbach, PyQt includes the pylupdate -program. This generates the same .ts language source files -from your PyQt source files. - - - - - -Deploying Commercial PyQt Applications - -When deploying commercial PyQt applications it is necessary to discourage users -from accessing the underlying PyQt modules for themselves. A user that used -the modules shipped with your application to develop new applications would -themselves be considered a developer and would need their own commercial Qt and -PyQt licenses. - - - -One solution to this problem is the -VendorID -package. This allows you to build Python extension modules that can only be -imported by a digitally signed custom interpreter. The package enables you to -create such an interpreter with your application embedded within it. The -result is an interpreter that can only run your application, and PyQt modules -that can only be imported by that interpreter. You can use the package to -similarly restrict access to any extension module. - - - -In order to build PyQt with support for the VendorID package, pass the --i command line flag to configure.py. - - - -<Literal>pyqtconfig</Literal> and Build System Support - -The SIP build system (ie. the sipconfig module) is described -in the SIP documentation. PyQt includes the pyqtconfig -module that can be used by configuration scripts of other bindings that are -built on top of PyQt. - - - -The pyqtconfig module contains the following classes: - - - - -Configuration(sipconfig.Configuration) - - -This class encapsulates additional configuration values, specific to PyQt, that -can be accessed as instance variables. - - - -The following configuration values are provided (in addition to those provided -by the sipconfig.Configuration class): - - - - -pyqt_bin_dir - - -The name of the directory containing the pyuic and -pylupdate executables. - - - - - - -pyqt_config_args - - -The command line passed to configure.py when PyQt was -configured. - - - - - - -pyqt_mod_dir - - -The name of the directory containing the PyQt modules. - - - - - - -pyqt_modules - - -A string containing the names of the PyQt modules that were installed. - - - - - - -pyqt_qt_sip_flags - - -A string of the SIP flags used to generate the code for the -qt module and which should be added to those needed by any -module that imports the qt module. - - - - - - -pyqt_qtaxcontainer_sip_flags - - -A string of the SIP flags used to generate the code for the -qtaxcontainer module and which should be added to those -needed by any module that imports the qtaxcontainer module. - - - - - - -pyqt_qtcanvas_sip_flags - - -A string of the SIP flags used to generate the code for the -qtcanvas module and which should be added to those needed by -any module that imports the qtcanvas module. - - - - - - -pyqt_qtext_sip_flags - - -A string of the SIP flags used to generate the code for the -qtext module and which should be added to those needed by -any module that imports the qtext module. - - - - - - -pyqt_qtgl_sip_flags - - -A string of the SIP flags used to generate the code for the -qtgl module and which should be added to those needed by any -module that imports the qtgl module. - - - - - - -pyqt_qtnetwork_sip_flags - - -A string of the SIP flags used to generate the code for the -qtnetwork module and which should be added to those needed -by any module that imports the qtnetwork module. - - - - - - -pyqt_qtsql_sip_flags - - -A string of the SIP flags used to generate the code for the -qtsql module and which should be added to those needed by -any module that imports the qtsql module. - - - - - - -pyqt_qttable_sip_flags - - -A string of the SIP flags used to generate the code for the -qttable module and which should be added to those needed by -any module that imports the qttable module. - - - - - - -pyqt_qtui_sip_flags - - -A string of the SIP flags used to generate the code for the -qtui module and which should be added to those needed by any -module that imports the qtui module. - - - - - - -pyqt_qtxml_sip_flags - - -A string of the SIP flags used to generate the code for the -qtxml module and which should be added to those needed by -any module that imports the qtxml module. - - - - - - -pyqt_sip_dir - - -The name of the base directory where the .sip files for each -of the PyQt modules is installed. A sub-directory exists with the same name as -the module. - - - - - - -pyqt_version - - -The PyQt version as a 3 part hexadecimal number (eg. v3.10 is represented as -0x030a00). - - - - - - -pyqt_version_str - - -The PyQt version as a string. For development snapshots it will start with -snapshot-. - - - - - - - - - - -QtModuleMakefile(sipconfig.SIPModuleMakefile) - - -The Makefile class for modules that import the qt module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtAxContainerModuleMakefile(QtModuleMakefile) - - -The Makefile class for modules that import the qtaxcontainer -module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtCanvasModuleMakefile(QtModuleMakefile) - - -The Makefile class for modules that import the qtcanvas -module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtExtModuleMakefile(QtModuleMakefile) - - -The Makefile class for modules that import the qtext module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtGLModuleMakefile(QtModuleMakefile) - - -The Makefile class for modules that import the qtgl module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtNetworkModuleMakefile(QtModuleMakefile) - - -The Makefile class for modules that import the qtnetwork -module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtTableModuleMakefile(QtModuleMakefile) - - -The Makefile class for modules that import the qttable -module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtSQLModuleMakefile(QtTableModuleMakefile) - - -The Makefile class for modules that import the qtsql module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtUIModuleMakefile(QtModuleMakefile) - - -The Makefile class for modules that import the qtui module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - -QtXMLModuleMakefile(QtModuleMakefile) - - -The Makefile class for modules that import the qtxml module. - - - -finalise(self) - - -This is a reimplementation of sipconfig.Makefile.finalise(). - - - - - - - - - - -%End - - -%ExportedDoc -Things to be Aware Of -super and Wrapped Classes - -Internally PyQt implements a lazy technique for attribute lookup where -attributes are only placed in type and instance dictionaries when they are -first referenced. This technique is needed to reduce the time taken to import -large modules such as PyQt. - - - -In most circumstances this technique is transparent to an application. The -exception is when super is used with a PyQt class. The way -that super is currently implemented means that the lazy -lookup is bypassed resulting in AttributeError exceptions -unless the attribute has been previously referenced. - - - -Note that this restriction applies to any class wrapped by SIP and not just -PyQt. - - - - -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 almost all cases and easy to achieve manually when needed. - - - -Whenever PyQt expects a QString as a function argument, a -Python string object or a Python Unicode object can be provided instead, and -PyQt 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. - - - -<Literal>None</Literal> and <Literal>NULL</Literal> - -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. - - - - -Support for C++ <Literal>void *</Literal> Data Types - -PyQt represents void * values as objects of type -sip.voidptr. Such values are often used to pass the -addresses of external objects between different Python modules. To make this -easier, a Python integer (or anything that Python can convert to an integer) -can be used whenever a sip.voidptr is expected. - - -A sip.voidptr may be converted to a Python integer by using -the int() builtin function. - - -A sip.voidptr may be converted to a Python string by using -its asstring() method. The asstring() -method takes an integer argument which is the length of the data in bytes. - - - - -Support for Threads - -PyQt implements the full set of Qt's thread classes. Python, of course, also -has its own thread extension modules. If you are using SIP v4 (or later) and -Python v2.3.5 (or later) then PyQt does not impose any additional restrictions. -(Read the relevant part of the Qt documentation to understand the restrictions -imposed by the Qt API.) - - -If you are using earlier versions of either SIP or Python then it is possible -to use either of the APIs so long as you follow some simple rules. - - - - -If you use the Qt API then the very first import of one of -the PyQt modules must be done from the main thread. - - - - -If you use the Python API then all calls to PyQt (including any -imports) must be done from one thread only. Therefore, if -you want to make calls to PyQt from several threads then you must use the Qt -API. - - - - -If you want to use both APIs in the same application then all calls to PyQt -must be done from threads created using the Qt API. - - - - -The above comments actually apply to any SIP generated module, not just PyQt. - - - -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 = new QColor(); -c = new 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. - - - -i18n Support - -Qt implements i18n support through the Qt Linguist application, the -QTranslator class, and the -QApplication::translate(), QObject::tr() -and QObject::trUtf8() methods. Usually the -tr() method is used to obtain the correct translation of a -message. The translation process uses a message context to allow the same -message to be translated differently. tr() is actually -generated by moc and uses the hardcoded class name as the -context. On the other hand, QApplication::translate() -allows to context to be explicitly stated. - - - -Unfortunately, because of the way Qt implents tr() (and -trUtf8()) it is not possible for PyQt to exactly reproduce -its behavour. The PyQt implementation of tr() (and -trUtf8()) uses the class name of the instance as the -context. The key difference, and the source of potential problems, is that the -context is determined dynamically in PyQt, but is hardcoded in Qt. In other -words, the context of a translation may change depending on an instance's class -hierarchy. - - - -class A(QObject): - def __init__(self): - QObject.__init__(self) - - def hello(self): - return self.tr("Hello") - -class B(A): - def __init__(self): - A.__init__(self) - -a = A() -a.hello() - -b = B() -b.hello() - - - -In the above the message is translated by a.hello() using a -context of A, and by b.hello() using a -context of B. In the equivalent C++ version the context -would be A in both cases. - - - -The PyQt behaviour is unsatisfactory and may be changed in the future. It is -recommended that QApplication.translate() be used in -preference to tr() (and trUtf8()). This -is guaranteed to work with current and future versions of PyQt and makes it -much easier to share message files between Python and C++ code. Below is the -alternative implementation of A that uses -QApplication.translate(). - - - -class A(QObject): - def __init__(self): - QObject.__init__(self) - - def hello(self): - return qApp.translate("A","Hello") - - - -Note that the code generated by pyuic uses -QApplication.translate(). - - - - - -Signal and Slot Support - -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")) - - - -Note that when a slot is a Python callable object its reference count is not -increased. This means that a class instance can be deleted without having to -explicitly disconnect any signals connected to its methods. However, it also -means that using lambda expressions as slots will not work unless you keep a -separate reference to the expression to prevent it from being immediately -garbage collected. - - - -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. - - - - -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. - - - - -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 - - - - -Module Reference Documentation - -The following sections should be used in conjunction with the normal class -documentation - only the differences specific to the Python bindings are -documented here. - - - -In these sections, Not yet implemented -implies that the feature can be easily implemented if needed. Not -implemented implies that the feature will not be implemented, either -because it cannot be or because it is not appropriate. - - - -If a class is described as being fully implemented then -all non-private member functions and all public class variables have been -implemented. - - - -If an operator has been implemented then it is stated explicitly. - - - -Classes that are not mentioned have not yet been implemented. - - - - -<Literal>qt</Literal> Module Reference -%End - -%Include qt/qglobal.sip -%Include qt/qwindowdefs.sip -%Include qt/qnamespace.sip - -%Include qt/qaccel.sip -%Include qt/qaction.sip -%Include qt/qapplication.sip -%Include qt/qassistantclient.sip -%Include qt/qbitmap.sip -%Include qt/qbrush.sip -%Include qt/qbutton.sip -%Include qt/qbuttongroup.sip -%Include qt/qbytearray.sip -%Include qt/qcdestyle.sip -%Include qt/qcheckbox.sip -%Include qt/qclipboard.sip -%Include qt/qcolor.sip -%Include qt/qcolordialog.sip -%Include qt/qcolorgroup.sip -%Include qt/qcombobox.sip -%Include qt/qcommonstyle.sip -%Include qt/qcstring.sip -%Include qt/qcursor.sip -%Include qt/qdatastream.sip -%Include qt/qdatetime.sip -%Include qt/qdatetimeedit.sip -%Include qt/qdesktopwidget.sip -%Include qt/qdial.sip -%Include qt/qdialog.sip -%Include qt/qdir.sip -%Include qt/qdockarea.sip -%Include qt/qdockwindow.sip -%Include qt/qdragobject.sip -%Include qt/qdrawutil.sip -%Include qt/qdropsite.sip -%Include qt/qerrormessage.sip -%Include qt/qevent.sip -%Include qt/qeventloop.sip -%Include qt/qfile.sip -%Include qt/qfiledialog.sip -%Include qt/qfileinfo.sip -%Include qt/qfont.sip -%Include qt/qfontdatabase.sip -%Include qt/qfontdialog.sip -%Include qt/qfontinfo.sip -%Include qt/qfontmetrics.sip -%Include qt/qframe.sip -%Include qt/qgmanager.sip -%Include qt/qgrid.sip -%Include qt/qgridview.sip -%Include qt/qgroupbox.sip -%Include qt/qhbox.sip -%Include qt/qhbuttongroup.sip -%Include qt/qheader.sip -%Include qt/qhgroupbox.sip -%Include qt/qiconset.sip -%Include qt/qiconview.sip -%Include qt/qimage.sip -%Include qt/qinputdialog.sip -%Include qt/qinterlacestyle.sip -%Include qt/qiodevice.sip -%Include qt/qkeycode.sip -%Include qt/qkeysequence.sip -%Include qt/qlabel.sip -%Include qt/qlayout.sip -%Include qt/qlcdnumber.sip -%Include qt/qlibrary.sip -%Include qt/qlineedit.sip -%Include qt/qlist.sip -%Include qt/qlistbox.sip -%Include qt/qlistview.sip -%Include qt/qlocale.sip -%Include qt/qmainwindow.sip -%Include qt/qmemarray.sip -%Include qt/qmenubar.sip -%Include qt/qmenudata.sip -%Include qt/qmessagebox.sip -%Include qt/qmetaobject.sip -%Include qt/qmime.sip -%Include qt/qmotifplusstyle.sip -%Include qt/qmotifstyle.sip -%Include qt/qmovie.sip -%Include qt/qmultilinedit.sip -%Include qt/qmutex.sip -%Include qt/qnetworkprotocol.sip -%Include qt/qobject.sip -%Include qt/qobjectcleanuphandler.sip -%Include qt/qobjectlist.sip -%Include qt/qpaintdevicemetrics.sip -%Include qt/qpaintdevice.sip -%Include qt/qpainter.sip -%Include qt/qpalette.sip -%Include qt/qpixmap.sip -%Include qt/qpixmapcache.sip -%Include qt/qpair.sip -%Include qt/qpen.sip -%Include qt/qpicture.sip -%Include qt/qplatinumstyle.sip -%Include qt/qpoint.sip -%Include qt/qpointarray.sip -%Include qt/qpopupmenu.sip -%Include qt/qprintdialog.sip -%Include qt/qprinter.sip -%Include qt/qprocess.sip -%Include qt/qprogressbar.sip -%Include qt/qprogressdialog.sip -%Include qt/qptrlist.sip -%Include qt/qpushbutton.sip -%Include qt/qradiobutton.sip -%Include qt/qrangecontrol.sip -%Include qt/qrect.sip -%Include qt/qregexp.sip -%Include qt/qregion.sip -%Include qt/qscrollbar.sip -%Include qt/qscrollview.sip -%Include qt/qsemaphore.sip -%Include qt/qsemimodal.sip -%Include qt/qsessionmanager.sip -%Include qt/qsettings.sip -%Include qt/qsgistyle.sip -%Include qt/qsignalmapper.sip -%Include qt/qsimplerichtext.sip -%Include qt/qsize.sip -%Include qt/qsizegrip.sip -%Include qt/qsizepolicy.sip -%Include qt/qslider.sip -%Include qt/qsocketnotifier.sip -%Include qt/qsound.sip -%Include qt/qspinbox.sip -%Include qt/qsplashscreen.sip -%Include qt/qsplitter.sip -%Include qt/qstatusbar.sip -%Include qt/qstring.sip -%Include qt/qstringlist.sip -%Include qt/qstrlist.sip -%Include qt/qstyle.sip -%Include qt/qstylesheet.sip -%Include qt/qsyntaxhighlighter.sip -%Include qt/qtabbar.sip -%Include qt/qtabdialog.sip -%Include qt/qtableview.sip -%Include qt/qtabwidget.sip -%Include qt/qtextbrowser.sip -%Include qt/qtextcodec.sip -%Include qt/qtextedit.sip -%Include qt/qtextstream.sip -%Include qt/qtextview.sip -%Include qt/qthread.sip -%Include qt/qtimer.sip -%Include qt/qtoolbar.sip -%Include qt/qtoolbox.sip -%Include qt/qtoolbutton.sip -%Include qt/qtooltip.sip -%Include qt/qtranslator.sip -%Include qt/qurl.sip -%Include qt/qurlinfo.sip -%Include qt/qurloperator.sip -%Include qt/quuid.sip -%Include qt/qvalidator.sip -%Include qt/qvaluelist.sip -%Include qt/qvariant.sip -%Include qt/qvbox.sip -%Include qt/qvbuttongroup.sip -%Include qt/qvgroupbox.sip -%Include qt/qwaitcondition.sip -%Include qt/qwhatsthis.sip -%Include qt/qwidget.sip -%Include qt/qwidgetlist.sip -%Include qt/qwidgetstack.sip -%Include qt/qwindow.sip -%Include qt/qwindowsstyle.sip -%Include qt/qwindowsxpstyle.sip -%Include qt/qwizard.sip -%Include qt/qwmatrix.sip -%Include qt/qworkspace.sip - -%ExportedDoc - -%End - - -%ExportedDoc -<Literal>qtaxcontainer</Literal> Module Reference -%End - -%Include qtaxcontainer/qaxbase.sip -%Include qtaxcontainer/qaxobject.sip -%Include qtaxcontainer/qaxwidget.sip - -%ExportedDoc - -%End - - -%ExportedDoc -<Literal>qtcanvas</Literal> Module Reference -%End - -%Include qtcanvas/qcanvas.sip - -%ExportedDoc - -%End - - -%ExportedDoc -<Literal>qtext</Literal> Module Reference - -QextScintilla - - void getCursorPosition - int *line - int *index - - -This takes no parameters and returns a tuple of the values returned by the -line and index pointers. - - - - void getSelection - int *lineFrom - int *indexFrom - int *lineTo - int *indexTo - - -This takes no parameters and returns a tuple of the values returned by the -lineFrom, indexFrom, -lineTo and indexTo pointers. - - - -QextScintillaAPIs - -QextScintillaAPIs is fully implemented. - - - -QextScintillaBase - -QextScintillaBase is fully implemented. - - - -QextScintillaCommand - -QextScintillaCommand is fully implemented. - - - -QextScintillaCommandSet - -QextScintillaCommandSet is fully implemented. - - - -QextScintillaDocument - -QextScintillaDocument is fully implemented. - - - -QextScintillaLexer - -QextScintillaLexer is fully implemented. - - - -QextScintillaLexerBash (QScintilla v1.4+) - -QextScintillaLexerBash is fully implemented. - - - -QextScintillaLexerBatch (QScintilla v1.6+) - -QextScintillaLexerBatch is fully implemented. - - - -QextScintillaLexerCPP - -QextScintillaLexerCPP is fully implemented. - - - -QextScintillaLexerCSharp - -QextScintillaLexerCSharp is fully implemented. - - - -QextScintillaLexerCSS (QScintilla v1.6+) - -QextScintillaLexerCSS is fully implemented. - - - -QextScintillaLexerDiff (QScintilla v1.6+) - -QextScintillaLexerDiff is fully implemented. - - - -QextScintillaLexerHTML (QScintilla v1.1+) - -QextScintillaLexerHTML is fully implemented. - - - -QextScintillaLexerIDL - -QextScintillaLexerIDL is fully implemented. - - - -QextScintillaLexerJava - -QextScintillaLexerJava is fully implemented. - - - -QextScintillaLexerJavaScript - -QextScintillaLexerJavaScript is fully implemented. - - - -QextScintillaLexerLua (QScintilla v1.5+) - -QextScintillaLexerLua is fully implemented. - - - -QextScintillaLexerMakefile (QScintilla v1.6+) - -QextScintillaLexerMakefile is fully implemented. - - - -QextScintillaLexerPerl - -QextScintillaLexerPerl is fully implemented. - - - -QextScintillaLexerPOV (QScintilla v1.6+) - -QextScintillaLexerPOV is fully implemented. - - - -QextScintillaLexerProperties (QScintilla v1.6+) - -QextScintillaLexerProperties is fully implemented. - - - -QextScintillaLexerPython - -QextScintillaLexerPython is fully implemented. - - - -QextScintillaLexerRuby (QScintilla v1.5+) - -QextScintillaLexerRuby is fully implemented. - - - -QextScintillaLexerSQL (QScintilla v1.1+) - -QextScintillaLexerSQL is fully implemented. - - - -QextScintillaLexerTeX (QScintilla v1.6+) - -QextScintillaLexerTeX is fully implemented. - - - -QextScintillaMacro - -QextScintillaMacro is fully implemented. - - - -QextScintillaPrinter - -QextScintillaPrinter is fully implemented. - - -%End - - -%ExportedDoc - -%End - - -%ExportedDoc -<Literal>qtgl</Literal> Module Reference -%End - -%Include qtgl/qgl.sip -%Include qtgl/qglcolormap.sip - -%ExportedDoc - -%End - - -%ExportedDoc -<Literal>qtnetwork</Literal> Module Reference -%End - -%Include qtnetwork/qdns.sip -%Include qtnetwork/qftp.sip -%Include qtnetwork/qhostaddress.sip -%Include qtnetwork/qhttp.sip -%Include qtnetwork/qlocalfs.sip -%Include qtnetwork/qnetwork.sip -%Include qtnetwork/qserversocket.sip -%Include qtnetwork/qsocket.sip -%Include qtnetwork/qsocketdevice.sip - -%ExportedDoc - -%End - - -%ExportedDoc -<Literal>qtpe</Literal> Module Reference - -QPEApplication - - QApplication - int& argc - char **argv - Type type - - -This takes two parameters, the first of which is a list of argument strings. -Arguments used by Qt are removed from the list. - - - - int exec - - - -This has been renamed to exec_loop in Python. - - - -AppLnk - - virtual QString exec const - - - -This has been renamed to exec_property in Python. - - - -AppLnkSet - -AppLnkSet is fully implemented. - - - -Config - -Config is fully implemented. - - - -DateFormat - -DateFormat is fully implemented. - - - -DocLnk - - QString exec const - - - -This has been renamed to exec_property in Python. - - - -DocLnkSet - -DocLnkSet is fully implemented. - - - -FileManager - -FileManager is fully implemented. - - - -FileSelector - -FileSelector is fully implemented. - - - -FileSelectorItem - -FileSelectorItem is fully implemented. - - - -FontDatabase - -FontDatabase is fully implemented. - - - -Global - - static void setBuiltinCommands - Command * - - -Not implemented. - - - -MenuButton - -MenuButton is fully implemented. - - - -QCopEnvelope - -QCopEnvelope is fully implemented. - - - -QDawg - -QDawg is fully implemented. - - - -QPEMenuBar - -QPEMenuBar is fully implemented. - - - -QPEToolBar - -QPEToolBar is fully implemented. - - - -Resource - -Resource is fully implemented. - - - - -%End - - -%ExportedDoc -<Literal>qtsql</Literal> Module Reference -%End - -%Include qtsql/qdatabrowser.sip -%Include qtsql/qdatatable.sip -%Include qtsql/qdataview.sip -%Include qtsql/qeditorfactory.sip -%Include qtsql/qsql.sip -%Include qtsql/qsqlcursor.sip -%Include qtsql/qsqldatabase.sip -%Include qtsql/qsqldriver.sip -%Include qtsql/qsqleditorfactory.sip -%Include qtsql/qsqlerror.sip -%Include qtsql/qsqlfield.sip -%Include qtsql/qsqlform.sip -%Include qtsql/qsqlindex.sip -%Include qtsql/qsqlpropertymap.sip -%Include qtsql/qsqlquery.sip -%Include qtsql/qsqlrecord.sip -%Include qtsql/qsqlresult.sip -%Include qtsql/qsqlselectcursor.sip - -%ExportedDoc - -%End - - -%ExportedDoc -<Literal>qttable</Literal> Module Reference -%End - -%Include qttable/qtable.sip - -%ExportedDoc - -%End - - -%ExportedDoc -<Literal>qtui</Literal> Module Reference -%End - -%Include qtui/qwidgetfactory.sip - -%ExportedDoc - -%End - - -%ExportedDoc -<Literal>qtxml</Literal> Module Reference -%End - -%Include qtxml/qdom.sip - -%ExportedDoc - -%End - - -%Doc -
-%End diff --git a/python/pyqt/examples2/README b/python/pyqt/examples2/README deleted file mode 100644 index 1c1938f1..00000000 --- a/python/pyqt/examples2/README +++ /dev/null @@ -1,11 +0,0 @@ -To run these examples, make sure you have your PYTHONPATH environment variable -set if needed and explicitly set the path to python at the top of each script -if you don't have /usr/bin/env. - -The examples are written for Qt v2.x. - -A much better source of information about using PyQt is Boudewijn Rempt's -book at http://stage.linuxports.com/projects/pyqt/. - -Phil Thompson -phil@riverbankcomputing.co.uk diff --git a/python/pyqt/examples2/aclock.py b/python/pyqt/examples2/aclock.py deleted file mode 100755 index 38ed36c9..00000000 --- a/python/pyqt/examples2/aclock.py +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env python - -import sys -from qt import * - -def QMIN(x, y): - if y > x: return y - return x -class AnalogClock(QWidget): - def __init__(self, *args): - apply(QWidget.__init__,(self,) + args) - self.time = QTime.currentTime() - internalTimer = QTimer(self) - self.connect(internalTimer, SIGNAL("timeout()"), self.timeout) - internalTimer.start(5000) - - def timeout(self): - new_time = QTime.currentTime() - if new_time.minute() != self.time.minute(): - self.update() - - def paintEvent(self, qe): - if not self.isVisible(): - return - self.time = QTime.currentTime() - - pts = QPointArray() - paint = QPainter(self) - paint.setBrush(self.foregroundColor()) - - cp = QPoint(self.rect().center()) - d = QMIN(self.width(), self.height()) - matrix = QWMatrix() - matrix.translate(cp.x(), cp.y()) - matrix.scale(d/1000.0, d/1000.0) - - h_angle = 30*(self.time.hour()%12 - 3) + self.time.minute()/2 - matrix.rotate(h_angle) - paint.setWorldMatrix(matrix) - pts.setPoints([-20,0,0,-20,300,0,0,20]) - paint.drawPolygon(pts) - matrix.rotate(-h_angle) - - m_angle = (self.time.minute()-15)*6 - matrix.rotate(m_angle) - paint.setWorldMatrix(matrix) - pts.setPoints([-10,0,0,-10,400,0,0,10]) - paint.drawPolygon(pts) - matrix.rotate(-m_angle) - - for i in range(0,12): - paint.setWorldMatrix(matrix) - paint.drawLine(450,0, 500,0) - matrix.rotate(30) - -a = QApplication(sys.argv) -clock = AnalogClock() -clock.resize(100,100) -a.setMainWidget(clock) -clock.show() -a.exec_loop() diff --git a/python/pyqt/examples2/addressbook.py b/python/pyqt/examples2/addressbook.py deleted file mode 100755 index d7316e33..00000000 --- a/python/pyqt/examples2/addressbook.py +++ /dev/null @@ -1,457 +0,0 @@ -#!/usr/bin/env python - -# A port to PyQt of the application example from Qt v2.x. - - -import sys, string -from qt import * - -TRUE = 1 -FALSE = 0 -fileopen = [ -' 16 13 5 1', -'. c #040404', -'# c #808304', -'a c None', -'b c #f3f704', -'c c #f3f7f3', -'aaaaaaaaa...aaaa', -'aaaaaaaa.aaa.a.a', -'aaaaaaaaaaaaa..a', -'a...aaaaaaaa...a', -'.bcb.......aaaaa', -'.cbcbcbcbc.aaaaa', -'.bcbcbcbcb.aaaaa', -'.cbcb...........', -'.bcb.#########.a', -'.cb.#########.aa', -'.b.#########.aaa', -'..#########.aaaa', -'...........aaaaa' -] - -filesave = [ -' 14 14 4 1', -'. c #040404', -'# c #808304', -'a c #bfc2bf', -'b c None', -'..............', -'.#.aaaaaaaa.a.', -'.#.aaaaaaaa...', -'.#.aaaaaaaa.#.', -'.#.aaaaaaaa.#.', -'.#.aaaaaaaa.#.', -'.#.aaaaaaaa.#.', -'.##........##.', -'.############.', -'.##.........#.', -'.##......aa.#.', -'.##......aa.#.', -'.##......aa.#.', -'b.............' -] - -fileprint = [ -' 16 14 6 1', -'. c #000000', -'# c #848284', -'a c #c6c3c6', -'b c #ffff00', -'c c #ffffff', -'d c None', -'ddddd.........dd', -'dddd.cccccccc.dd', -'dddd.c.....c.ddd', -'ddd.cccccccc.ddd', -'ddd.c.....c....d', -'dd.cccccccc.a.a.', -'d..........a.a..', -'.aaaaaaaaaa.a.a.', -'.............aa.', -'.aaaaaa###aa.a.d', -'.aaaaaabbbaa...d', -'.............a.d', -'d.aaaaaaaaa.a.dd', -'dd...........ddd' -] - -class ABCentralWidget( QWidget ): - def __init__( self, *args ): - apply( QWidget.__init__, (self, ) + args ) - self.mainGrid = QGridLayout( self, 2, 1, 5, 5 ) - - self.setupTabWidget() - self.setupListView() - - self.mainGrid.setRowStretch( 0, 0 ) - self.mainGrid.setRowStretch( 1, 1 ) - - def save( self, filename ): - if not self.listView.firstChild(): - return - - f = QFile( filename ) - if not f.open( IO_WriteOnly ): - return - - t = QTextStream( f ) - - #it = QListViewItemIterator( self.listView ) - - while not t.eof(): - item = QListViewItem( self.listView ) - for i in range (0, 4): - t << item.text( i ) << '\n' - #for it in it.current(): - #for i in range (0, 4): - #t << it.current().text[ i ] << "\n" - - f.close() - - - def load( self, filename ): - self.listView.clear() - - f = QFile( filename ) - if not f.open( IO_ReadOnly ): - return - - t = QTextStream( f ) - - while not t.eof(): - item = QListViewItem( self.listView ) - for i in range (0, 4): - item.setText( i, t.readLine() ) - - f.close(); - - - def setupTabWidget( self ): - self.tabWidget = QTabWidget( self ) - - self.input = QWidget( self.tabWidget ) - self.grid1 = QGridLayout( self.input, 2, 5, 5, 5 ) - - self.liFirstName = QLabel( 'First &Name', self.input ) - self.liFirstName.resize( self.liFirstName.sizeHint() ) - self.grid1.addWidget( self.liFirstName, 0, 0 ) - - self.liLastName = QLabel( '&Last Name', self.input ) - self.liLastName.resize( self.liLastName.sizeHint() ) - self.grid1.addWidget( self.liLastName, 0, 1 ) - - self.liAddress = QLabel( '&Address', self.input ) - self.liAddress.resize( self.liAddress.sizeHint() ) - self.grid1.addWidget( self.liAddress, 0, 2 ) - - self.liEMail = QLabel( '&E-Mail', self.input ) - self.liEMail.resize( self.liEMail.sizeHint() ) - self.grid1.addWidget( self.liEMail, 0, 3 ) - - self.add = QPushButton( '&Add', self.input ) - self.add.resize( self.add.sizeHint() ) - self.grid1.addWidget( self.add, 0, 4 ) - self.connect( self.add, SIGNAL( 'clicked()' ), self.addEntry ) - - self.iFirstName = QLineEdit( self.input ) - self.iFirstName.resize( self.iFirstName.sizeHint() ) - self.grid1.addWidget( self.iFirstName, 1, 0 ) - self.liFirstName.setBuddy( self.iFirstName ) - - self.iLastName = QLineEdit( self.input ) - self.iLastName.resize( self.iLastName.sizeHint() ) - self.grid1.addWidget( self.iLastName, 1, 1 ) - self.liLastName.setBuddy( self.iLastName ) - - self.iAddress = QLineEdit( self.input ) - self.iAddress.resize( self.iAddress.sizeHint() ) - self.grid1.addWidget( self.iAddress, 1, 2 ) - self.liAddress.setBuddy( self.iAddress ) - - self.iEMail = QLineEdit( self.input ) - self.iEMail.resize( self.iEMail.sizeHint() ) - self.grid1.addWidget( self.iEMail, 1, 3 ) - self.liEMail.setBuddy( self.iEMail ) - - self.change = QPushButton( '&Change', self.input ) - self.change.resize( self.change.sizeHint() ) - self.grid1.addWidget( self.change, 1, 4 ) - self.connect( self.change, SIGNAL( 'clicked()' ), self.changeEntry ) - - self.tabWidget.addTab( self.input, '&Add/Change Entry' ) - - # -------------------------------------- - - self.search = QWidget( self ) - self.grid2 = QGridLayout( self.search, 2, 5, 5, 5 ) - - self.cFirstName = QCheckBox( 'First &Name', self.search ) - self.cFirstName.resize( self.cFirstName.sizeHint() ) - self.grid2.addWidget( self.cFirstName, 0, 0 ) - self.connect( self.cFirstName, SIGNAL( 'clicked()' ), self.toggleFirstName ) - - self.cLastName = QCheckBox( '&Last Name', self.search ) - self.cLastName.resize( self.cLastName.sizeHint() ) - self.grid2.addWidget( self.cLastName, 0, 1 ) - self.connect( self.cLastName, SIGNAL( 'clicked()' ), self.toggleLastName ) - - self.cAddress = QCheckBox( '&Address', self.search ) - self.cAddress.resize( self.cAddress.sizeHint() ) - self.grid2.addWidget( self.cAddress, 0, 2 ) - self.connect( self.cAddress, SIGNAL( 'clicked()' ), self.toggleAddress ) - - self.cEMail = QCheckBox( '&E-Mail', self.search ) - self.cEMail.resize( self.cEMail.sizeHint() ) - self.grid2.addWidget( self.cEMail, 0, 3 ) - self.connect( self.cEMail, SIGNAL( 'clicked()' ), self.toggleEMail ) - - self.sFirstName = QLineEdit( self.search ) - self.sFirstName.resize( self.sFirstName.sizeHint() ) - self.grid2.addWidget( self.sFirstName, 1, 0 ) - - self.sLastName = QLineEdit( self.search ) - self.sLastName.resize( self.sLastName.sizeHint() ) - self.grid2.addWidget( self.sLastName, 1, 1 ) - - self.sAddress = QLineEdit( self.search ) - self.sAddress.resize( self.sAddress.sizeHint() ) - self.grid2.addWidget( self.sAddress, 1, 2 ) - - self.sEMail = QLineEdit( self.search ) - self.sEMail.resize( self.sEMail.sizeHint() ) - self.grid2.addWidget( self.sEMail, 1, 3 ) - - self.find = QPushButton( '&Find', self.search ) - self.find.resize( self.find.sizeHint() ) - self.grid2.addWidget( self.find, 1, 4 ) - self.connect( self.find, SIGNAL( 'clicked()' ), self.findEntries ) - - self.cFirstName.setChecked( TRUE ) - self.sFirstName.setEnabled( TRUE ) - self.sLastName.setEnabled( FALSE ) - self.sAddress.setEnabled( FALSE ) - self.sEMail.setEnabled( FALSE ) - - self.tabWidget.addTab( self.search, "&Search" ) - - self.mainGrid.addWidget( self.tabWidget, 0, 0 ) - - def setupListView( self ): - self.listView = QListView( self ) - self.listView.addColumn( 'First Name' ) - self.listView.addColumn( 'Last Name' ) - self.listView.addColumn( 'Address' ) - self.listView.addColumn( 'E-Mail' ) - - self.listView.setSelectionMode( QListView.Extended ) - - self.connect( self.listView, SIGNAL( 'clicked( QListViewItem* )' ), self.itemSelected ) - - self.mainGrid.addWidget( self.listView, 1, 0 ) - self.listView.setAllColumnsShowFocus( TRUE ) - - - def addEntry( self ): - if not self.iFirstName.text().isEmpty() or not self.iLastName.text().isEmpty() or \ - not self.iAddress.text().isEmpty() or not self.iEMail.text().isEmpty() : - self.item = QListViewItem( self.listView ) - self.item.setText( 0, self.iFirstName.text() ) - self.item.setText( 1, self.iLastName.text() ) - self.item.setText( 2, self.iAddress.text() ) - self.item.setText( 3, self.iEMail.text() ) - - self.iFirstName.setText( '' ) - self.iLastName.setText( '' ) - self.iAddress.setText( '' ) - self.iEMail.setText( '' ) - - def changeEntry( self ): - self.item = self.listView.currentItem() - if self.item and ( not self.iFirstName.text().isEmpty() or not self.iLastName.text().isEmpty() or \ - not self.iAddress.text().isEmpty() or not self.iEMail.text().isEmpty() ) : - self.item.setText( 0, self.iFirstName.text() ) - self.item.setText( 1, self.iLastName.text() ) - self.item.setText( 2, self.iAddress.text() ) - self.item.setText( 3, self.iEMail.text() ) - - def selectionChanged( self ): - self.iFirstName.setText( '' ) - self.iLastName.setText( '' ) - self.iAddress.setText( '' ) - self.iEMail.setText( '' ) - - def itemSelected( self, item ): - self.item.setSelected( TRUE ) - self.item.repaint() - - self.iFirstName.setText( item.text( 0 ) ) - self.iLastName.setText( item.text( 1 ) ) - self.iAddress.setText( item.text( 2 ) ) - self.iEMail.setText( item.text( 3 ) ) - - def toggleFirstName( self ): - self.sFirstName.setText( '' ) - if self.cFirstName.isChecked(): - self.sFirstName.setEnabled( TRUE ) - self.sFirstName.setFocus() - else: - self.sFirstName.setEnabled( FALSE ) - - def toggleLastName( self ): - self.sLastName.setText( '' ) - if self.cLastName.isChecked(): - self.sLastName.setEnabled( TRUE ) - self.sLastName.setFocus() - else: - self.sLastName.setEnabled( FALSE ) - - - def toggleAddress( self ): - self.sAddress.setText( '' ) - if self.cAddress.isChecked(): - self.sAddress.setEnabled( TRUE ) - self.sAddress.setFocus() - else: - self.sAddress.setEnabled( FALSE ) - - - def toggleEMail( self ): - self.sEMail.setText( '' ) - if self.cEMail.isChecked(): - self.sEMail.setEnabled( TRUE ) - self.sEMail.setFocus() - - else: - self.sEMail.setEnabled( FALSE ) - - - def findEntries( self ): - if not self.cFirstName.isChecked() and not self.cLastName.isChecked() and \ - not self.cAddress.isChecked() and not self.cEMail.isChecked(): - self.listView.clearSelection() - return - - it = QListViewItemIterator( self.listView ) - - for it in it.current() : - select = TRUE - - if self.cFirstName.isChecked(): - if select and it.current().text( 0 ).contains( self.sFirstName.text() ): - select = TRUE - else: - select = FALSE - - if self.cLastName.isChecked(): - if select and it.current().text( 1 ).contains( self.sLastName.text() ): - select = TRUE - else: - select = FALSE - - if self.cAddress.isChecked(): - if select and it.current().text( 2 ).contains( self.sAddress.text() ): - select = TRUE - else: - select = FALSE - - if self.cEMail.isChecked(): - if select and it.current().text( 3 ).contains( self.sEMail.text() ): - select = TRUE - else: - select = FALSE - - - if select: - it.current().setSelected( TRUE ) - else: - it.current().setSelected( FALSE ) - it.current().repaint() - - -class ABMainWindow(QMainWindow): - def __init__( self ): - QMainWindow.__init__( self, None, 'example addressbook application' ) - - self.filename = QString.null - self.setupMenuBar() - self.setupFileTools() - self.setupStatusBar() - self.setupCentralWidget() - - def setupMenuBar( self ): - self.file = QPopupMenu( self ) - self.menuBar().insertItem( '&File', self.file ) - - openIcon = QIconSet( QPixmap( fileopen ) ) - self.file.insertItem( 'New', self.fileNew, Qt.CTRL + Qt.Key_N ) - self.file.insertItem( openIcon, 'Open', self.fileOpen, Qt.CTRL + Qt.Key_O ) - self.file.insertSeparator() - saveIcon = QIconSet( QPixmap( filesave ) ) - self.file.insertItem( saveIcon, 'Save', self.fileSave, Qt.CTRL + Qt.Key_S ) - self.file.insertItem( 'Save As...', self.fileSaveAs ) - self.file.insertSeparator() - printIcon = QIconSet( QPixmap( fileprint ) ) - self.file.insertItem( printIcon, 'Print...', self.filePrint, Qt.CTRL + Qt.Key_P ) - self.file.insertSeparator() - #self.file.insertItem( 'Close', self.closeWindow, Qt.CTRL + Qt.Key_W ) - self.file.insertItem('Close', self, SLOT('close()'), Qt.CTRL+Qt.Key_W) - self.file.insertItem( 'Quit', qApp, SLOT( 'quit()' ), Qt.CTRL + Qt.Key_Q ) - - def setupFileTools( self ): - pass - #self.fileTools = QToolBar( self, 'file operations' ) - - def setupStatusBar( self ): - self.statusBar().message( "Ready", 2000 ) - - def setupCentralWidget( self ): - self.view = ABCentralWidget( self ) - #self.view.show() - self.setCentralWidget( self.view ) - - def closeWindow( self ): - close() - - - def fileNew( self ): - pass - - def fileOpen( self ): - fn = QFileDialog.getOpenFileName( QString.null, QString.null, self ) - if not fn.isEmpty(): - self.filename = fn - self.view.load( self.filename ) - - def fileSave( self ): - if self.filename.isEmpty(): - self.fileSaveAs() - return - - self.view.save( self.filename ) - - def fileSaveAs( self ): - fn = QFileDialog.getSaveFileName( QString.null, QString.null, self ) - if not fn.isEmpty(): - self.filename = fn - self.fileSave - - def filePrint( self ): - pass - - -a = QApplication( sys.argv ) - -mw = ABMainWindow() -#mw.setupMenuBar() -#mw.setupFileTools -#mw.setupStatusBar -#mw.setupCentralWidget -#view = ABCentralWidget() -#mw.setCentralWidget( view ) -mw.setCaption( 'Addressbook 1' ) -a.setMainWidget( mw ) -mw.show() - -a.connect( a, SIGNAL( 'lastWindowClosed()' ), a, SLOT( 'quit()' ) ) -a.exec_loop() diff --git a/python/pyqt/examples2/application.py b/python/pyqt/examples2/application.py deleted file mode 100755 index 294c6cb4..00000000 --- a/python/pyqt/examples2/application.py +++ /dev/null @@ -1,277 +0,0 @@ -#!/usr/bin/env python - -# A simple application. - - -import sys, string -from qt import * - - -fileopen = [ - '16 13 5 1', - '. c #040404', - '# c #808304', - 'a c None', - 'b c #f3f704', - 'c c #f3f7f3', - 'aaaaaaaaa...aaaa', - 'aaaaaaaa.aaa.a.a', - 'aaaaaaaaaaaaa..a', - 'a...aaaaaaaa...a', - '.bcb.......aaaaa', - '.cbcbcbcbc.aaaaa', - '.bcbcbcbcb.aaaaa', - '.cbcb...........', - '.bcb.#########.a', - '.cb.#########.aa', - '.b.#########.aaa', - '..#########.aaaa', - '...........aaaaa' -] - -filesave = [ - '14 14 4 1', - '. c #040404', - '# c #808304', - 'a c #bfc2bf', - 'b c None', - '..............', - '.#.aaaaaaaa.a.', - '.#.aaaaaaaa...', - '.#.aaaaaaaa.#.', - '.#.aaaaaaaa.#.', - '.#.aaaaaaaa.#.', - '.#.aaaaaaaa.#.', - '.##........##.', - '.############.', - '.##.........#.', - '.##......aa.#.', - '.##......aa.#.', - '.##......aa.#.', - 'b.............' -] - -fileprint = [ - '16 14 6 1', - '. c #000000', - '# c #848284', - 'a c #c6c3c6', - 'b c #ffff00', - 'c c #ffffff', - 'd c None', - 'ddddd.........dd', - 'dddd.cccccccc.dd', - 'dddd.c.....c.ddd', - 'ddd.cccccccc.ddd', - 'ddd.c.....c....d', - 'dd.cccccccc.a.a.', - 'd..........a.a..', - '.aaaaaaaaaa.a.a.', - '.............aa.', - '.aaaaaa###aa.a.d', - '.aaaaaabbbaa...d', - '.............a.d', - 'd.aaaaaaaaa.a.dd', - 'dd...........ddd' -] - - -fileOpenText = \ -''' -Click this button to open a new file.

-You can also select the Open command from the File menu.''' - -fileSaveText = \ -'''Click this button to save the file you are editing.

-You will be prompted for a filename.

-You can also select the Save command from the File menu.''' - -filePrintText = \ -'''Click this button to print the file you are editing.

-You can also select the Print command from the File menu.''' - - -editorList = [] - - -class ApplicationWindow(QMainWindow): - def __init__(self): - QMainWindow.__init__(self,None,'example application main window',Qt.WDestructiveClose) - - self.filename = QString.null - self.printer = QPrinter() - - self.fileTools = QToolBar(self,'file operations') - - openIcon = QPixmap(fileopen) - self.fileOpen = QToolButton(openIcon,'Open File',QString.null,self.load,self.fileTools,'open file') - - saveIcon = QPixmap(filesave) - self.fileSave = QToolButton(saveIcon,'Save File',QString.null,self.save,self.fileTools,'save file') - - printIcon = QPixmap(fileprint) - self.filePrint = QToolButton(printIcon,'Print File',QString.null,self.printDoc,self.fileTools,'print file') - - QWhatsThis.whatsThisButton(self.fileTools) - - QWhatsThis.add(self.fileOpen,fileOpenText) - QMimeSourceFactory.defaultFactory().setPixmap('fileopen',openIcon) - QWhatsThis.add(self.fileSave,fileSaveText) - QWhatsThis.add(self.filePrint,filePrintText) - - self.file = QPopupMenu(self) - self.menuBar().insertItem('&File',self.file) - - self.file.insertItem('&New',self.newDoc,Qt.CTRL + Qt.Key_N) - - id = self.file.insertItem(QIconSet(openIcon),'&Open',self.load,Qt.CTRL + Qt.Key_O) - self.file.setWhatsThis(id,fileOpenText) - - id = self.file.insertItem(QIconSet(saveIcon),'&Save',self.save,Qt.CTRL + Qt.Key_S) - self.file.setWhatsThis(id,fileSaveText) - - id = self.file.insertItem('Save &as',self.saveAs) - self.file.setWhatsThis(id,fileSaveText) - - self.file.insertSeparator() - - id = self.file.insertItem(QIconSet(printIcon),'&Print',self.printDoc,Qt.CTRL + Qt.Key_P) - self.file.setWhatsThis(id,filePrintText) - - self.file.insertSeparator() - - self.file.insertItem('&Close',self,SLOT('close()'),Qt.CTRL + Qt.Key_W) - self.file.insertItem('&Quit',qApp,SLOT('closeAllWindows()'),Qt.CTRL + Qt.Key_Q) - - self.help = QPopupMenu(self) - self.menuBar().insertSeparator() - self.menuBar().insertItem('&Help',self.help) - - self.help.insertItem('&About',self.about,Qt.Key_F1) - self.help.insertItem('About &Qt',self.aboutQt) - - self.e = QMultiLineEdit(self,'editor') - self.e.setFocus() - self.setCentralWidget(self.e) - - self.statusBar().message('Ready',2000) - self.resize(450,600) - - def newDoc(self): - ed = ApplicationWindow() - ed.show() - editorList.append(ed) - - def load(self): - fn = QFileDialog.getOpenFileName(QString.null,QString.null,self) - if fn.isEmpty(): - self.statusBar().message('Loading aborted',2000) - return - - fileName = str(fn) - - self.e.setAutoUpdate(0) - self.e.clear() - - try: - f = open(fileName,'r') - except: - return - - for l in f.readlines(): - self.e.append(string.rstrip(l)) - - f.close() - - self.e.setAutoUpdate(1) - self.e.repaint() - self.e.setEdited(0) - self.setCaption(fileName) - self.statusBar().message('Loaded document %s' % (fileName),2000) - - def save(self): - if self.filename.isEmpty(): - self.saveAs() - return - - try: - f = open(str(self.filename),'w+') - except: - self.statusBar().message('Could not write to %s' % (self.filename),2000) - return - - f.write(str(self.e.text())) - f.close() - - self.e.setEdited(0) - self.setCaption(self.filename) - self.statusBar().message('File %s saved' % (self.filename),2000) - - def saveAs(self): - fn = QFileDialog.getSaveFileName(QString.null,QString.null,self) - if not fn.isEmpty(): - self.filename = fn - self.save() - else: - self.statusBar().message('Saving aborted',2000) - - def printDoc(self): - Margin = 10 - pageNo = 1 - - if self.printer.setup(self): - self.statusBar().message('Printing...') - - p = QPainter() - p.begin(self.printer) - p.setFont(self.e.font()) - yPos = 0 - fm = p.fontMetrics() - metrics = QPaintDeviceMetrics(self.printer) - - for i in range(self.e.numLines): - if Margin + yPos > metrics.height() - Margin: - pageNo = pageNo + 1 - self.statusBar().message('Printing (page %d)...' % (pageNo)) - self.printer.newPage() - yPos = 0 - - p.drawText(Margin,Margin + yPos,metrics.width(),fm.lineSpacing(),Qt.ExpandTabs | Qt.DontClip,self.e.textLine(i)) - yPos = yPos + fm.lineSpacing() - - p.end() - self.statusBar().message('Printing completed',2000) - else: - self.statusBar().message('Printing aborted',2000) - - def closeEvent(self,ce): - if not self.e.edited(): - ce.accept() - return - - rc = QMessageBox.information(self,'Qt Application Example', - 'The document has been changed since the last save.', - 'Save Now','Cancel','Leave Anyway',0,1) - - if rc == 0: - self.save() - ce.accept() - elif rc == 2: - ce.accept() - else: - ce.ignore() - - def about(self): - QMessageBox.about(self,'Qt Application Example', - 'This example demonstrates simple use of QMainWindow,\nQMenuBar and QToolBar.') - - def aboutQt(self): - QMessageBox.aboutQt(self,'Qt Application Example') - - -a = QApplication(sys.argv) -mw = ApplicationWindow() -mw.setCaption('Document 1') -mw.show() -a.connect(a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()')) -a.exec_loop() diff --git a/python/pyqt/examples2/buttongroups.py b/python/pyqt/examples2/buttongroups.py deleted file mode 100755 index a8c94575..00000000 --- a/python/pyqt/examples2/buttongroups.py +++ /dev/null @@ -1,113 +0,0 @@ -#!/usr/bin/env python -#/**************************************************************************** -#** $Id$ -#** -#** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. -#** -#** This file is part of an example program for Qt. This example -#** program may be used, distributed and modified without limitation. -#** -#*****************************************************************************/ - -import sys -from qt import * - -TRUE = 1 -FALSE = 0 - -## -# Creates all child widgets of the ButtonGroups window -## - -class ButtonsGroups( QWidget ): - def __init__( self, *args ): - apply( QWidget.__init__, (self,) + args ) - - # Create Widgets which allow easy layouting - self.vbox = QVBoxLayout( self ) - self.box1 = QHBoxLayout( self.vbox ) - self.box2 = QHBoxLayout( self.vbox ) - - # ------- first group - - # Create an exclusive button group - self.grp1 = QButtonGroup( 1, QGroupBox.Horizontal, "Button Group 1 (exclusive)", self ) - self.box1.addWidget( self.grp1 ) - self.grp1.setExclusive( TRUE ) - - # insert 3 radiobuttons - self.rb11 = QRadioButton( "&Radiobutton 1", self.grp1 ) - self.rb11.setChecked( TRUE ) - QRadioButton( "R&adiobutton 2", self.grp1 ) - QRadioButton( "Ra&diobutton 3", self.grp1 ) - - # ------- second group - - # Create a non-exclusive buttongroup - self.grp2 = QButtonGroup( 1, QGroupBox.Horizontal, "Button Group 2 (non-exclusive)", self ) - self.box1.addWidget( self.grp2 ) - self.grp2.setExclusive( FALSE ) - - # insert 3 checkboxes - QCheckBox( "&Checkbox 1", self.grp2 ) - self.cb12 = QCheckBox( "C&heckbox 2", self.grp2 ) - self.cb12.setChecked( TRUE ) - self.cb13 = QCheckBox( "Triple &State Button", self.grp2 ) - self.cb13.setTristate( TRUE ) - self.cb13.setChecked( TRUE ) - - # ------------ third group - - # create a buttongroup which is exclusive for radiobuttons and non-exclusive for all other buttons - self.grp3 = QButtonGroup( 1, QGroupBox.Horizontal, "Button Group 3 (Radiobutton-exclusive)", self ) - self.box2.addWidget( self.grp3 ) - self.grp3.setRadioButtonExclusive( TRUE ) - - # insert three radiobuttons - self.rb21 = QRadioButton( "Rad&iobutton 1", self.grp3 ) - self.rb22 = QRadioButton( "Radi&obutton 2", self.grp3 ) - self.rb23 = QRadioButton( "Radio&button 3", self.grp3 ) - self.rb23.setChecked( TRUE ) - - # insert a checkbox... - self.state = QCheckBox( "E&nable Radiobuttons", self.grp3 ) - self.state.setChecked( TRUE ) - # ...and connect its SIGNAL clicked() with the SLOT slotChangeGrp3State() - self.connect( self.state, SIGNAL( "clicked()" ), self.slotChangeGrp3State ) - - # ------------ fourth group - - # create a groupbox which layouts its childs in a columns - self.grp4 = QButtonGroup( 1, QGroupBox.Horizontal, "Groupbox with normal buttons", self ) - self.box2.addWidget( self.grp4 ) - - # insert two pushbuttons... - QPushButton( "&Push Button", self.grp4 ) - self.tb = QPushButton( "&Toggle Button", self.grp4 ) - - # ... and make the second one a toggle button - self.tb.setToggleButton( TRUE ) - self.tb.setOn( TRUE ) - - - # - # SLOT slotChangeGrp3State() - # enables/disables the radiobuttons of the third buttongroup - # - - def slotChangeGrp3State( self ): - self.rb21.setEnabled( self.state.isChecked() ) - self.rb22.setEnabled( self.state.isChecked() ) - self.rb23.setEnabled( self.state.isChecked() ) - - -## main program -a = QApplication( sys.argv ) - -buttonsgroups = ButtonsGroups() -buttonsgroups.resize( 500, 250 ) -buttonsgroups.setCaption( "Examples for Buttons and Groups" ) -a.setMainWidget( buttonsgroups ) -buttonsgroups.show() - -a.exec_loop() diff --git a/python/pyqt/examples2/dclock.py b/python/pyqt/examples2/dclock.py deleted file mode 100755 index 5382d4fa..00000000 --- a/python/pyqt/examples2/dclock.py +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env python - -# A port to PyQt of the dclock example from Qt v2.x. - - -import sys, string -from qt import * - - -class DigitalClock(QLCDNumber): - def __init__(self, parent=None, name=None): - QLCDNumber.__init__(self, parent, name) - self.showingColon = 0 - self.setFrameStyle(QFrame.Panel | QFrame.Raised) - self.setLineWidth(2) - self.showTime() - self.normalTimer = self.startTimer(500) - self.showDateTimer = -1 - - def timerEvent(self, e): - if e.timerId() == self.showDateTimer: - self.stopDate() - else: - if self.showDateTimer == -1: - self.showTime() - - def mousePressEvent(self, e): - if e.button() == Qt.LeftButton: - self.showDate() - - def showDate(self): - if self.showDateTimer != -1: - return - d = QDate.currentDate() - self.display('%2d %2d' % (d.month(), d.day())) - self.showDateTimer = self.startTimer(2000) - - def stopDate(self): - self.killTimer(self.showDateTimer) - self.showDateTimer = -1 - self.showTime() - - def showTime(self): - self.showingColon = not self.showingColon - s = list(str(QTime.currentTime().toString())[:5]) #.left(5) - if not self.showingColon: - s[2] = ' ' - if s[0] == '0': - s[0] = ' ' - s = string.join(s,'') - self.display(s) - -a = QApplication(sys.argv) -clock = DigitalClock() -clock.resize(170,80) -a.setMainWidget(clock) -clock.show() -a.exec_loop() diff --git a/python/pyqt/examples2/desktop.py b/python/pyqt/examples2/desktop.py deleted file mode 100755 index a1177f24..00000000 --- a/python/pyqt/examples2/desktop.py +++ /dev/null @@ -1,219 +0,0 @@ -#!/usr/bin/env python - -import sys -from qt import * - -seed = 0.353535353535 -KINDA_RAND_MAX = 32767 - -def kindaRand(): - global seed - seed = seed * 147 - seed = seed - int(seed) - return int(seed*(KINDA_RAND_MAX + 1)) - -velmax = 15 -velmin = 4 - -def velocity(i): - if i == 1 or i == 2: - i = (kindaRand()&0x7fff % velmax)/3 + velmin - else: - i = (kindaRand()&0x7fff % velmax) + velmin - -maxpoints = 5 -maxcurves = 8 - -def poly(): - d = QApplication.desktop() - d.setBackgroundColor(white) - xvel = [ 0 ] * 8 - yvel = [ 0 ] * 8 - head = 0 - tail = -maxcurves + 2 - a = QPointArray() * maxcurves - r = d.rect() - for i in range(maxcurves): - a[i].resize(maxpoints) - p = a[0] - for i in range(maxpoints): - p.setPoint(i, (kindaRand()&0x7fff) % r.width(), - (kindaRand()&0x7fff) % r.height() ) - xvel[i] = velocity(i) - yvel[i] = velocity(i) - - paint = QPainter() - paint.begin(d) - - for ntimes in range(2000): - paint.setBrush(QColor(kindaRand()%360,180,255, QColor.Hsv)) - paint.drawPolygon(a[head]) - tail = tail + 1 - if tail >= maxcurves: - tail = 0 - minx = r.left() - maxx = r.right() - miny = r.top() - maxy = r.bottom() - p = a[head] - head = head + 1 - if head >= maxcurves: - head = 0 - for i in range(maxpoints): - x, y = p.point(i) - x = x + xvel[i] - y = y + yvel[i] - if x >= maxx: - x = maxx - (x - maxx + 1) - xvel[i] = -velocity(i) - if x <= minx: - x = minx + (minx - x + 1) - xvel[i] = velocity(i) - if y >= maxy: - y = maxy - (y - maxy + 1) - yvel[i] = -velocity(i) - if y <= miny: - y = miny + (miny - y + 1) - yvel[i] = velocity(i) - a[head].setPoint(i, x, y) - paint.end() - -def rotate(): - w = 64 - h = 64 - image = QImage(w, h, 8, 128) - for i in range(128): - image.setColor(i, qRgb(i,0,0)) - for y in range(h): - for x in range(w): - image.setPixel(x,y,(x+y)%128) - - pm = QPixmap() - pm.convertFromImage(image) - #pm.optimize(1) - - d = QApplication.desktop() - - for i in range(0,361,2): - m = QWMatrix() - m.rotate(i) - rpm = pm.xForm(m) - d.setBackgroundPixmap(rpm) - d.update() - -def generateStone(pm, c1, c2, c3): - p = QPainter() - p1 = QPen(c1, 0) - p2 = QPen(c2, 0) - p3 = QPen(c3, 0) - - p.begin(pm) - for i in range(pm.width()): - for j in range(pm.height()): - r = kindaRand() - if r < KINDA_RAND_MAX / 3: - p.setPen(p1) - elif r < KINDA_RAND_MAX / 3 * 2: - p.setPen(p2) - else: - p.setPen(p3) - p.drawPoint(i, j) - p.end() - -def drawShadeText(p, x, y, text, topColor, bottomColor, sw=2): - if not p.isActive(): - return - - p.setPen(bottomColor) - p.drawText(x+sw, y+sw, text) - p.setPen(topColor) - p.drawText(x, y, text) - -class DesktopWidget(QWidget): - def __init__(self, s, parent=None, name=''): - QWidget.__init__(self, parent, name, WType_Desktop | WPaintDesktop) - self.text = s - self.pm = None - - def paintEvent(self, pe): - c1 = self.backgroundColor() - c2 = c1.light(104) - c3 = c1.dark(106) - if not self.pm: - self.pm = QPixmap(64, 64) - generateStone(self.pm, c1, c2, c3) - self.setBackgroundPixmap(self.pm) - self.update() - br = self.fontMetrics().boundingRect(self.text) - offscreen = QPixmap(br.width(), br.height()) - x = self.width()/2 - br.width()/2 - y = self.height()/2 - br.height()/2 - offscreen.fill(self, x, y) - p = QPainter() - p.begin(offscreen) - drawShadeText(p, -br.x(), -br.y(), self.text, c2, c3, 3) - p.end() - bitBlt(self, x, y, offscreen) - -def desktopWidget(s='Troll Tech'): - t = DesktopWidget(s) - t.update() - qApp.exec_loop() - -def desktopText(s='Troll Tech'): - border = 20 - - c1 = qApp.palette().normal().background() - c2 = c1.light(104) - c3 = c1.dark(106) - - pm = QPixmap(10, 10) - p = QPainter() - p.begin(pm) - r = p.fontMetrics().boundingRect(s) - p.end() - - appWidth = qApp.desktop().width() - appHeight = qApp.desktop().height() - if r.width() > appWidth - border*2: - r.setWidth(appWidth - border*2) - if r.height() > appHeight - border*2: - r.setHeight(appHeight - border*2) - - pm.resize(r.size().width()+border*2,r.size().height()+border*2) - generateStone(pm, c1, c2, c3) - p.begin(pm) - drawShadeText(p, -r.x()+border, -r.y()+border, s, c2, c3) - p.end() - - qApp.desktop().setBackgroundPixmap(pm) - -a = QApplication(sys.argv) -if len(sys.argv) > 1: - f = QFont('charter', 96, QFont.Weight.Black) - f.setStyleHint(QFont.StyleHint.Times) - a.setFont(f) -validOptions = 0 -if len(sys.argv) == 2: - validOptions = 1 - if sys.argv[1] == '-poly': - poly() - elif sys.argv[1] == '-rotate': - rotate() - elif sys.argv[1] == '-troll': - desktopText() - elif sys.argv[1] == '-trollwidget': - desktopWidget() - else: - validOptions = 0 -if len(sys.argv) == 3: - validOptions = 1 - if sys.argv[1] == '-shadetext': - desktopText(sys.argv[2]) - elif sys.argv[1] == '-shadewidget': - desktopWidget(sys.argv[2]) - else: - validOptions = 0 - -if not validOptions: - rotate() diff --git a/python/pyqt/examples2/dirview.py b/python/pyqt/examples2/dirview.py deleted file mode 100755 index ae232e98..00000000 --- a/python/pyqt/examples2/dirview.py +++ /dev/null @@ -1,76 +0,0 @@ -#!/usr/bin/env python - -import sys -from qt import * - -class Directory(QListViewItem): - def __init__(self, parent, name=None): - apply(QListViewItem.__init__,(self,parent)) - if isinstance(parent, QListView): - self.p = None - self.f = '/' - else: - self.p = parent - self.f = name - self.c = [] - self.readable = 1 - - def setOpen(self, o): - if o and not self.childCount(): - s = self.fullName() - thisDir = QDir(s) - if not thisDir.isReadable(): - self.readable = 0 - return - - files = thisDir.entryInfoList() - if files: - for f in files: - fileName = str(f.fileName()) - if fileName == '.' or fileName == '..': - continue - elif f.isSymLink(): - d = QListViewItem(self, fileName, 'Symbolic Link') - elif f.isDir(): - d = Directory(self, fileName) - else: - if f.isFile(): - s = 'File' - else: - s = 'Special' - d = QListViewItem(self, fileName, s) - self.c.append(d) - - QListViewItem.setOpen(self, o) - - def setup(self): - self.setExpandable(1) - QListViewItem.setup(self) - - def fullName(self): - if self.p: - s = self.p.fullName() + self.f + '/' - else: - s = '/' - return s - - def text(self, column): - if column == 0: - return self.f - elif self.readable: - return 'Directory' - else: - return 'Unreadable Directory' - -a = QApplication(sys.argv) -mw = QListView() -a.setMainWidget(mw) -mw.setCaption('Directory Browser') -mw.addColumn('Name') -mw.addColumn('Type') -mw.resize(400, 400) -mw.setTreeStepSize(20) -root = Directory(mw) -root.setOpen(1) -mw.show() -a.exec_loop() diff --git a/python/pyqt/examples2/dragdrop.py b/python/pyqt/examples2/dragdrop.py deleted file mode 100755 index 4cc8c738..00000000 --- a/python/pyqt/examples2/dragdrop.py +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/env python - -# Ported to PyQt by Issac Trotts on Jan 1, 2002 - -import sys -from qt import * - -import dropsite, secret - - -def addStuff( parent, yn_image, yn_secret = 0 ): - tll = QVBoxLayout( parent, 10 ) - d = dropsite.DropSite( parent, 'dropsite' ) - d.setFrameStyle( QFrame.Sunken + QFrame.WinPanel ) - tll.addWidget( d ) - if yn_image: - stuff = QPixmap() - if not stuff.load( "trolltech.bmp" ): - stuff = QPixmap(20,20) - stuff.fill(Qt.green) - d.setPixmap( stuff ) - else: - d.setText("Drag and Drop") - d.setFont(QFont("Helvetica",18)) - if secret: - s = secret.SecretSource( 42, parent ) - tll.addWidget( s ) - - format = QLabel( "\n\n\n\nNone\n\n\n\n", parent ) - tll.addWidget( format ) - tll.activate() - parent.resize( parent.sizeHint() ) - - QObject.connect( d, PYSIGNAL('message(QString &)'), - format, SLOT('setText(QString &)') ) - - -app = QApplication( sys.argv ) - -mw = QWidget() -addStuff( mw, 1 ) -mw.setCaption( "Qt Example - Drag and Drop" ) -mw.show() - -mw2 = QWidget() -addStuff( mw2, 0 ) -mw2.setCaption( "Qt Example - Drag and Drop" ) -mw2.show() - -mw3 = QWidget() -addStuff( mw3, 1, 1 ) -mw3.setCaption( "Qt Example - Drag and Drop" ) -mw3.show() - -QObject.connect(qApp,SIGNAL('lastWindowClosed()'),qApp,SLOT('quit()')) - -app.exec_loop() diff --git a/python/pyqt/examples2/dropsite.py b/python/pyqt/examples2/dropsite.py deleted file mode 100644 index 7897109c..00000000 --- a/python/pyqt/examples2/dropsite.py +++ /dev/null @@ -1,96 +0,0 @@ -# This is part of the dragdrop example. - - -from qt import * - -import secret - - -class DropSite(QLabel): - def __init__(self, parent=None, name=None): - QLabel.__init__( self, parent, name ) - self.setAcceptDrops(1) - - # this is a normal event - def mousePressEvent( self, e ): - if ( self.pixmap() ) : - drobj = QImageDrag( self.pixmap().convertToImage(), self ) - pm = QPixmap() - pm.convertFromImage(self.pixmap().convertToImage().smoothScale( - self.pixmap().width()/3,self.pixmap().height()/3)) - drobj.setPixmap(pm,QPoint(-5,-7)) - else : - drobj = QTextDrag( self.text(), self ) - drobj.dragCopy() - - def backgroundColorChange( self, qcolor ): - # Reduce flicker by using repaint() rather than update() - self.repaint() - - def dragMoveEvent( self, e ): - # Check if you want the drag at e.pos()... - # Give the user some feedback... - pass - - def dragEnterEvent( self, e ): - # Check if you want the drag... - if (secret.canDecode( e ) or - QTextDrag.canDecode( e ) or - QImageDrag.canDecode( e ) or - QUriDrag.canDecode( e )): - e.accept() - - # Give the user some feedback... - t = '' - i = 0 - while e.format( i ): - if ( t != '' ): - t += "\n" - t += str(e.format( i )) - i += 1 - self.emit(PYSIGNAL('message(QString &)'), (QString(t),)) - self.setBackgroundColor(Qt.white) - - def dragLeaveEvent( self, QDragLeaveEvent ): - # Give the user some feedback... - self.emit(PYSIGNAL('message(QString &)'), (QString(''),)) - self.setBackgroundColor(Qt.lightGray) - - def dropEvent( self, e ): - self.setBackgroundColor(Qt.lightGray) - # Try to decode to the data you understand... - str = QString() - if ( QTextDrag.decode( e, str ) ) : - self.setText( str ) - self.setMinimumSize( self.minimumSize().expandedTo(self.sizeHint()) ) - return - - pm = QPixmap() - if ( QImageDrag.decode( e, pm ) ) : - self.setPixmap( pm ) - self.setMinimumSize(self.minimumSize().expandedTo(self.sizeHint())) - return - - # QStrList strings - #strings = QStrList() - strings = [] - if ( QUriDrag.decode( e, strings ) ) : - m = QString("Full URLs:\n") - for u in strings: - m = m + " " + u + '\n' - # QStringList files - files = [] - if ( QUriDrag.decodeLocalFiles( e, files ) ) : - m += "Files:\n" - # for (QStringList.Iterator i=files.begin() i!=files.end() ++i) - for i in files: - m = m + " " + i + '\n' - self.setText( m ) - self.setMinimumSize(self.minimumSize().expandedTo(self.sizeHint())) - return - - str = secret.decode( e ) - if str: - self.setText( str ) - self.setMinimumSize(self.minimumSize().expandedTo(self.sizeHint())) - return diff --git a/python/pyqt/examples2/gears.py b/python/pyqt/examples2/gears.py deleted file mode 100755 index bf5b913f..00000000 --- a/python/pyqt/examples2/gears.py +++ /dev/null @@ -1,235 +0,0 @@ -#!/usr/bin/env python - - -import sys -import math -from qt import * -from qtgl import * -from OpenGL.GL import * - -def gear(inner_radius,outer_radius,width,teeth,tooth_depth): - r0 = inner_radius; - r1 = outer_radius - tooth_depth/2.0; - r2 = outer_radius + tooth_depth/2.0; - - da = 2.0*math.pi/teeth/4.0; - - glShadeModel(GL_FLAT) - - glNormal3f(0.0,0.0,1.0) - - # draw front face - - glBegin(GL_QUAD_STRIP) - - for i in range(teeth+1): - angle = i * 2.0*math.pi/teeth; - glVertex3f(r0*math.cos(angle), r0*math.sin(angle), width*0.5 ) - glVertex3f(r1*math.cos(angle), r1*math.sin(angle), width*0.5 ) - glVertex3f(r0*math.cos(angle), r0*math.sin(angle), width*0.5 ) - glVertex3f(r1*math.cos(angle+3*da), r1*math.sin(angle+3*da), width*0.5 ) - - glEnd() - - # draw front sides of teeth - - da = 2.0*math.pi/teeth/4.0; - - glBegin(GL_QUADS) - - for i in range(teeth): - angle = i*2.0*math.pi/teeth - - glVertex3f( r1*math.cos(angle), r1*math.sin(angle), width*0.5 ) - glVertex3f( r2*math.cos(angle+da), r2*math.sin(angle+da), width*0.5 ) - glVertex3f( r2*math.cos(angle+2*da), r2*math.sin(angle+2*da), width*0.5 ) - glVertex3f( r1*math.cos(angle+3*da), r1*math.sin(angle+3*da), width*0.5 ) - - glEnd() - - - glNormal3f( 0.0, 0.0, -1.0 ) - - # draw back face - - glBegin( GL_QUAD_STRIP ); - - for i in range(teeth+1): - angle = i*2.0*math.pi/teeth; - - glVertex3f( r1*math.cos(angle), r1*math.sin(angle), -width*0.5 ) - glVertex3f( r0*math.cos(angle), r0*math.sin(angle), -width*0.5 ) - glVertex3f( r1*math.cos(angle+3*da), r1*math.sin(angle+3*da), -width*0.5 ) - glVertex3f( r0*math.cos(angle), r0*math.sin(angle), -width*0.5 ) - - glEnd() - - # draw back sides of teeth - - da = 2.0*math.pi/teeth/4.0 - - glBegin( GL_QUADS ) - - for i in range(teeth): - angle = i*2.0*math.pi/teeth - - glVertex3f( r1*math.cos(angle+3*da), r1*math.sin(angle+3*da), -width*0.5 ) - glVertex3f( r2*math.cos(angle+2*da), r2*math.sin(angle+2*da), -width*0.5 ) - glVertex3f( r2*math.cos(angle+da), r2*math.sin(angle+da), -width*0.5 ) - glVertex3f( r1*math.cos(angle), r1*math.sin(angle), -width*0.5 ) - - glEnd() - - # draw outward faces of teeth - - glBegin( GL_QUAD_STRIP ) - - for i in range(teeth): - angle = i*2.0*math.pi/teeth - - glVertex3f( r1*math.cos(angle), r1*math.sin(angle), width*0.5 ) - glVertex3f( r1*math.cos(angle), r1*math.sin(angle), -width*0.5 ) - - u = r2*math.cos(angle+da) - r1*math.cos(angle) - v = r2*math.sin(angle+da) - r1*math.sin(angle) - - len = math.sqrt( u*u + v*v ) - u /= len - v /= len - glNormal3f( v, -u, 0.0 ) - glVertex3f( r2*math.cos(angle+da), r2*math.sin(angle+da), width*0.5 ) - glVertex3f( r2*math.cos(angle+da), r2*math.sin(angle+da), -width*0.5 ) - glNormal3f( math.cos(angle), math.sin(angle), 0.0 ) - glVertex3f( r2*math.cos(angle+2*da), r2*math.sin(angle+2*da), width*0.5 ) - glVertex3f( r2*math.cos(angle+2*da), r2*math.sin(angle+2*da), -width*0.5 ) - u = r1*math.cos(angle+3*da) - r2*math.cos(angle+2*da) - v = r1*math.sin(angle+3*da) - r2*math.sin(angle+2*da) - glNormal3f( v, -u, 0.0 ) - glVertex3f( r1*math.cos(angle+3*da), r1*math.sin(angle+3*da), width*0.5 ) - glVertex3f( r1*math.cos(angle+3*da), r1*math.sin(angle+3*da), -width*0.5 ) - glNormal3f( math.cos(angle), math.sin(angle), 0.0 ) - - glVertex3f( r1*math.cos(0.0), r1*math.sin(0.0), width*0.5 ) - glVertex3f( r1*math.cos(0.0), r1*math.sin(0.0), -width*0.5 ) - - glEnd() - - glShadeModel (GL_SMOOTH) - - # draw inside radius cylinder - - glBegin( GL_QUAD_STRIP ) - - for i in range(teeth+1): - angle = i * 2.0*math.pi / teeth; - glNormal3f( -math.cos(angle), -math.sin(angle), 0.0 ); - glVertex3f( r0*math.cos(angle), r0*math.sin(angle), -width*0.5 ); - glVertex3f( r0*math.cos(angle), r0*math.sin(angle), width*0.5 ); - - glEnd() - -############################################################################## -class GearWidget(QGLWidget): - def __init__(self,parent=None,name=None): - QGLWidget.__init__(self,parent,name) - - self.angle=0.0 - self.view_rotx=0.0 - self.view_roty=0.0 - self.view_rotz=0.0 - - self.startTimer(10) - - def timerEvent(self,event): - self.updateGL() - - def paintGL(self): - self.angle = self.angle + 2.0 - self.view_rotx = self.view_rotx + 1.0 - self.view_roty = self.view_roty + 3.0 - self.view_rotz = self.view_rotz + 2.0 - - glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ) - - glPushMatrix() - glRotatef( self.view_rotx, 1.0, 0.0, 0.0 ) - glRotatef( self.view_roty, 0.0, 1.0, 0.0 ) - glRotatef( self.view_rotz, 0.0, 0.0, 1.0 ) - - glPushMatrix() - glTranslatef( -3.0, -2.0, 0.0 ) - glRotatef( self.angle, 0.0, 0.0, 1.0 ) - glCallList(self.gear1) - glPopMatrix() - - glPushMatrix() - glTranslatef( 3.1, -2.0, 0.0 ) - glRotatef( -2.0*self.angle-9.0, 0.0, 0.0, 1.0 ) - glCallList(self.gear2) - glPopMatrix() - - glPushMatrix() - glTranslatef( -3.1, 2.2, -1.8 ) - glRotatef( 90.0, 1.0, 0.0, 0.0 ) - glRotatef( 2.0*self.angle-2.0, 0.0, 0.0, 1.0 ) - glCallList(self.gear3) - glPopMatrix() - - glPopMatrix() - - def resizeGL(self,width,height): - w = width / float(height) - h = 1.0 - - glViewport( 0, 0, width, height ) - glMatrixMode(GL_PROJECTION) - glLoadIdentity() - glFrustum( -w, w, -h, h, 5.0, 60.0 ) - glMatrixMode(GL_MODELVIEW) - glLoadIdentity() - glTranslatef( 0.0, 0.0, -40.0 ) - - def initializeGL(self): - pos=(5.0, 5.0, 10.0, 1.0 ) - ared=(0.8, 0.1, 0.0, 1.0 ) - agreen=(0.0, 0.8, 0.2, 1.0 ) - ablue=(0.2, 0.2, 1.0, 1.0 ) - - glLightfv(GL_LIGHT0,GL_POSITION,pos) - glEnable(GL_CULL_FACE) - glEnable(GL_LIGHTING) - glEnable(GL_LIGHT0) - glEnable(GL_DEPTH_TEST) - - self.gear1=glGenLists(1) - glNewList(self.gear1,GL_COMPILE) - glMaterialfv(GL_FRONT,GL_AMBIENT_AND_DIFFUSE,ared) - gear(1.0,4.0,1.0,20,0.7) - glEndList() - - self.gear2=glGenLists(1) - glNewList(self.gear2,GL_COMPILE) - glMaterialfv(GL_FRONT,GL_AMBIENT_AND_DIFFUSE,agreen) - gear(0.5,2.0,2.0,10,0.7) - glEndList() - - self.gear3=glGenLists(1) - glNewList(self.gear3,GL_COMPILE) - glMaterialfv(GL_FRONT,GL_AMBIENT_AND_DIFFUSE,ablue) - gear(1.3,2.0,0.5,10,0.7) - glEndList() - - glEnable(GL_NORMALIZE) - -############################################################################## -if __name__=='__main__': - QApplication.setColorSpec(QApplication.CustomColor) - app=QApplication(sys.argv) - - if not QGLFormat.hasOpenGL(): - raise 'No Qt OpenGL support.' - - widget=GearWidget() - app.setMainWidget(widget) - widget.show() - app.exec_loop() diff --git a/python/pyqt/examples2/menu.py b/python/pyqt/examples2/menu.py deleted file mode 100755 index 36efffa8..00000000 --- a/python/pyqt/examples2/menu.py +++ /dev/null @@ -1,301 +0,0 @@ -#!/usr/bin/env python - -#**************************************************************************** -#** $Id$ -#** -#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved. -#** -#** This file is part of an example program for PyQt. This example -#** program may be used, distributed and modified without limitation. -#** -#*****************************************************************************/ - -import sys, string -from qt import * - -TRUE = 1 -FALSE = 0 - -# XPM -p1_xpm = [ -"16 16 3 1", -" c None", -". c #000000000000", -"X c #FFFFFFFF0000", -" ", -" ", -" .... ", -" .XXXX. ", -" .............. ", -" .XXXXXXXXXXXX. ", -" .XXXXXXXXXXXX. ", -" .XXXXXXXXXXXX. ", -" .XXXXXXXXXXXX. ", -" .XXXXXXXXXXXX. ", -" .XXXXXXXXXXXX. ", -" .XXXXXXXXXXXX. ", -" .XXXXXXXXXXXX. ", -" .XXXXXXXXXXXX. ", -" .............. ", -" " -] - -# XPM -p2_xpm = [ -"16 16 3 1", -" c None", -". c #000000000000", -"X c #FFFFFFFFFFFF", -" ", -" ...... ", -" .XXX.X. ", -" .XXX.XX. ", -" .XXX.XXX. ", -" .XXX..... ", -" .XXXXXXX. ", -" .XXXXXXX. ", -" .XXXXXXX. ", -" .XXXXXXX. ", -" .XXXXXXX. ", -" .XXXXXXX. ", -" .XXXXXXX. ", -" ......... ", -" ", -" " -] - -# XPM -p3_xpm = [ -"16 16 3 1", -" c None", -". c #000000000000", -"X c #FFFFFFFFFFFF", -" ", -" ", -" ......... ", -" ........... ", -" ........ .. ", -" ........... ", -" ........... ", -" ........... ", -" ........... ", -" ...XXXXX... ", -" ...XXXXX... ", -" ...XXXXX... ", -" ...XXXXX... ", -" ......... ", -" ", -" " -] - -p4_xpm = [ -' 16 14 5 1', -'. c #000000', -'# c #848284', -'a c #c6c3c6', -'b c #ffff00', -'c c #ffffff', -'aaaaa.........aa', -'aaaa.cccccccc.aa', -'aaaa.c.....c.aaa', -'aaa.cccccccc.aaa', -'aaa.c.....c....a', -'aa.cccccccc.a.a.', -'a..........a.a..', -'.aaaaaaaaaa.a.a.', -'.............aa.', -'.aaaaaa###aa.a.a', -'.aaaaaabbbaa...a', -'.............a.a', -'a.aaaaaaaaa.a.aa', -'aa...........aaa' -] - -# Auxiliary class to provide fancy menu items with different fonts. -# Used for the "bold" and "underline" menu items in the options menu. - -#class MyMenuItem( QCustomMenuItem ): -# def __init__( self, s=None, f=None ): -# apply( QCustomMenuItem.__init__,( self, s, f ) ) -# string = QString( s ) -# font = QFont( f ) - -# def paint( self, p, TRUE, FALSE, x, y, w, h ) : -# p.setFont ( font ) -# p.drawText( x, y, w, h, Qt.AlignLeft | Qt.AlignVCenter | Qt.ShowPrefix | Qt.DontClip, string ) -# def sizeHint( self ): -# return QFontMetrics( font ).size( Qt.AlignLeft | Qt.AlignVCenter | Qt.ShowPrefix | Qt.DontClip, string ) - - -# -### Implementation of MenuExample class -# - -class MenuExample( QWidget ): - def __init__( self, parent=None, name=None ): - apply( QWidget.__init__,(self, parent, name) ) - self.p1 = QIconSet( QPixmap ( p1_xpm ) ) - self.p2 = QIconSet( QPixmap ( p2_xpm ) ) - self.p3 = QIconSet( QPixmap ( p3_xpm ) ) - self.p4 = QIconSet( QPixmap ( p4_xpm ) ) - #openIcon = QPixmap() - #saveIcon = QPixmap() - #printIcon = QPixmap() - - self.printer = QPopupMenu( self ) - #CHECK_PTR( self.printer ) - self.printer.insertTearOffHandle() - self.printer.insertItem( "&Print to printer", self.printDoc ) - self.printer.insertItem( "Print to &file", self.file ) - self.printer.insertItem( "Print to fa&x", self.fax ) - self.printer.insertSeparator() - self.printer.insertItem( "Printer &Setup", self.printerSetup ) - - self.file = QPopupMenu( self ) - #CHECK_PTR( self.file ); - self.file.insertItem( self.p1, "&Open", self.open, Qt.CTRL+Qt.Key_O ) - self.file.insertItem( self.p2, "&New", self.news, Qt.CTRL+Qt.Key_N ) - self.file.insertItem( self.p3, "&Save", self.save, Qt.CTRL+Qt.Key_S ) - self.file.insertItem( "&Close", self.closeDoc, Qt.CTRL+Qt.Key_W ) - self.file.insertSeparator() - self.file.insertItem( self.p4, "&Print", self.printer, Qt.CTRL+Qt.Key_P ) - self.file.insertSeparator() - self.file.insertItem( "E&xit", qApp, SLOT( "quit()" ), Qt.CTRL+Qt.Key_Q ) - - self.edit = QPopupMenu( self ) - #CHECK_PTR( self.edit ) - undoID = self.edit.insertItem( "&Undo", self.undo ) - redoID = self.edit.insertItem( "&Redo", self.redo ) - self.edit.setItemEnabled( undoID, TRUE ) - self.edit.setItemEnabled( redoID, FALSE ) - - self.options = QPopupMenu( self ) - #CHECK_PTR( self.options ) - self.options.insertTearOffHandle() - self.options.setCaption( 'Options' ) - self.options.insertItem( "&Normal Font", self.normal ) - self.options.insertSeparator() - - self.options.polish() # adjust system settings - self.f = QFont( self.options.font() ) - self.f.setBold( TRUE ) - self.boldID = self.options.insertItem( "&Bold" ) - self.options.setAccel( Qt.CTRL+Qt.Key_B, self.boldID ) - self.options.connectItem( self.boldID, self.bold ) - - self.f = QFont( self.options.font() ) - self.f.setUnderline( TRUE ) - self.underlineID = self.options.insertItem( "&Underline" ) - self.options.setAccel( Qt.CTRL+Qt.Key_U, self.underlineID ) - self.options.connectItem( self.underlineID, self.underline ) - - self.isBold = FALSE - self.isUnderline = FALSE - self.options.setCheckable( TRUE ) - - self.options = QPopupMenu() - #CHECK_PTR( self.options ) - self.options.insertItem( "&Normal Font", self.normal ) - self.options.insertSeparator() - self.boldID = self.options.insertItem( "&Bold", self.bold ) - self.underlineID = self.options.insertItem( "&Underline", self.underline ) - - self.isBold = FALSE - self.isUnderline = FALSE - self.options.setCheckable( TRUE ) - - self.help = QPopupMenu( self ) - #CHECK_PTR( self.help ) - self.help.insertItem( "&About", self.about, Qt.CTRL+Qt.Key_H ) - self.help.insertItem( "About &Qt", self.aboutQt ) - - self.menu = QMenuBar( self ) - #CHECK_PTR( self.menu ); - self.menu.insertItem( "&File", self.file ) - self.menu.insertItem( "&Edit", self.edit ) - self.menu.insertItem( "&Options", self.options ) - self.menu.insertSeparator() - self.menu.insertItem( "&Help", self.help ) - self.menu.setSeparator( QMenuBar.InWindowsStyle ) - - self.label = QLabel( self ) - #CHECK_PTR( self.label ) - self.label.setGeometry( 20, self.rect().center().y()-20, self.width()-40, 40 ) - self.label.setFrameStyle( QFrame.Box | QFrame.Raised ) - self.label.setLineWidth( 1 ) - self.label.setAlignment( Qt.AlignCenter ) - - self.label.setFont( QFont( "times", 12, QFont.Bold ) ) - self.connect( self, PYSIGNAL( "explain" ), self.label.setText ) - #self.connect( self, PYSIGNAL( "explain(const char *)" ), - # self.label, SLOT( "setText(const char *)" ) ) - - self.setMinimumSize( 100, 80 ) - - def open( self ): - self.emit ( PYSIGNAL( "explain" ), ( "File/Open selected", ) ) - - def news( self ): - self.emit ( PYSIGNAL( "explain" ), ( "File/New selected", ) ) - - def save( self ): - self.emit ( PYSIGNAL( "explain" ), ( "File/Save selected", ) ) - - def closeDoc( self ): - self.emit ( PYSIGNAL( "explain" ), ( "File/Close selected", ) ) - - def undo( self ): - self.emit ( PYSIGNAL( "explain" ), ( "Edit/Undo selected", ) ) - - def redo( self ): - self.emit ( PYSIGNAL( "explain" ), ( "Edit/Redo selected", ) ) - - def normal( self ): - self.isBold = FALSE - self.isUnderline = FALSE - self.options.setItemChecked( self.boldID, self.isBold ) - self.options.setItemChecked( self.underlineID, self.isUnderline ) - self.emit(PYSIGNAL("explain"), ("Options/Normal selected",)) - - def bold( self ): - self.isBold = not self.isBold - self.options.setItemChecked( self.boldID, self.isBold ) - self.emit ( PYSIGNAL( "explain" ), ( "Options/Bold selected", ) ) - - def underline( self ): - self.isUnderline = not self.isUnderline - self.options.setItemChecked( self.underlineID, self.isUnderline ) - self.emit(PYSIGNAL("explain"), ("Options/Underline selected",)) - - def about( self ): - QMessageBox.about( self, "Qt Menu Example", - "This example demonstrates simple use of Qt menus.\n" - "You can cut and paste lines from it to your own\n" - "programs." ) - - def aboutQt( self ): - QMessageBox.aboutQt( self, "Qt Menu Example" ) - - def printDoc( self ): - self.emit ( PYSIGNAL( "explain" ), ( "File/Printer/Print selected", ) ) - - def file( self ): - self.emit ( PYSIGNAL( "explain" ), ( "File/Printer/Print To File selected", ) ) - - def fax( self ): - self.emit ( PYSIGNAL( "explain" ), ( "File/Printer/Print To Fax selected", ) ) - - def printerSetup( self ): - self.emit ( PYSIGNAL( "explain" ), ( "File/Printer/Printer Setup selected", ) ) - - def resizeEvent( self, ev ): - self.label.setGeometry( 20, self.rect().center().y()-20, self.width()-40, 40 ) - -a = QApplication( sys.argv ) -m = MenuExample() - -a.setMainWidget( m ) -m.setCaption( 'MenuExample' ) -m.show() -#a.connect( a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()') ) -a.exec_loop() diff --git a/python/pyqt/examples2/qt.png b/python/pyqt/examples2/qt.png deleted file mode 100644 index ca630a56..00000000 Binary files a/python/pyqt/examples2/qt.png and /dev/null differ diff --git a/python/pyqt/examples2/qtlogo.png b/python/pyqt/examples2/qtlogo.png deleted file mode 100644 index 25c1ebb5..00000000 Binary files a/python/pyqt/examples2/qtlogo.png and /dev/null differ diff --git a/python/pyqt/examples2/secret.py b/python/pyqt/examples2/secret.py deleted file mode 100644 index 7023a0b0..00000000 --- a/python/pyqt/examples2/secret.py +++ /dev/null @@ -1,65 +0,0 @@ -# This is part of the dragdrop example. - - -from qt import * - - -def canDecode(e): - return e.provides( "secret/magic" ) - - -def decode(e): - payload = str(e.data( "secret/magic" )) - if ( str(payload) != '' ): - e.accept() - return QString("The secret number is "+str(ord(payload)) ) - - return None - - -class SecretDrag(QStoredDrag): - def __init__(self, secret, parent=None, name=None): - QStoredDrag.__init__(self, 'secret/magic', parent, name) - data = QByteArray(chr(secret)) - self.setEncodedData( data ) - - -# XPM -picture_xpm = [ - "16 16 3 1", - " c None", - ". c #000000", - "X c #FFFF00", - " ..... ", - " ..XXXXX.. ", - " .XXXXXXXXX. ", - " .XXXXXXXXXXX. ", - " .XX..XXX..XX. ", - ".XXXXXXXXXXXXX. ", - ".XX...XXX...XX. ", - ".XXX..XXX..XXX. ", - ".XXXXXXXXXXXXX. ", - ".XXXXXX.XXXXXX. ", - " .XX.XX.XX.XX. ", - " .XXX..X..XXX. ", - " .XXXXXXXXX. ", - " ..XXXXX.. ", - " ..... ", - " " -] - - -class SecretSource(QLabel): - def __init__(self, secret, parent=None, name=None): - QLabel.__init__(self, "Secret", parent, name) - self.setBackgroundColor( Qt.blue.light() ) - self.setFrameStyle( QLabel.Box | QLabel.Sunken ) - self.setMinimumHeight( self.sizeHint().height()*2 ) - self.setAlignment( QLabel.AlignCenter ) - self.mySecret = secret - - def mousePressEvent(self, e): - sd = SecretDrag( self.mySecret, self ) - sd.setPixmap(QPixmap(picture_xpm),QPoint(8,8)) - sd.dragCopy() - self.mySecret = self.mySecret + 1 diff --git a/python/pyqt/examples2/semaphore.py b/python/pyqt/examples2/semaphore.py deleted file mode 100755 index 5a3ab92c..00000000 --- a/python/pyqt/examples2/semaphore.py +++ /dev/null @@ -1,203 +0,0 @@ -#!/usr/bin/env python -# -# A port of the semaphore example from Qt. - - -import sys - -# Check if thread support was enabled. -try: - from qt import QThread -except: - print "Thread support not enabled" - sys.exit(1) - -from qt import * - - -# The semaphore instances. -yellowSem = None -greenSem = None - - -class YellowThread(QThread): - def __init__(self,o): - QThread.__init__(self) - - self.receiver = o - self.stopped = 0 - self.mutex = QMutex() - - def run(self): - global yellowSem, greenSem - - for i in range(20): - yellowSem += 1 - - event = QCustomEvent(12345) - event.setData(QString("Yellow!")) - QThread.postEvent(self.receiver,event) - self.msleep(200); - - greenSem -= 1 - - self.mutex.lock() - if self.stopped: - self.stopped = 0 - self.mutex.unlock() - break - - self.mutex.unlock() - - yellowSem += 1 - - event = QCustomEvent(12346) - event.setData(QString("Yellow!")) - QThread.postEvent(self.receiver,event) - - greenSem -= 1 - - def stop(self): - self.mutex.lock() - self.stopped = 1 - self.mutex.unlock() - - -class GreenThread(QThread): - def __init__(self,o): - QThread.__init__(self) - - self.receiver = o - self.stopped = 0 - self.mutex = QMutex() - - def run(self): - global yellowSem, greenSem - - for i in range(20): - greenSem += 1 - - event = QCustomEvent(12345) - event.setData(QString("Green!")) - QThread.postEvent(self.receiver,event) - self.msleep(200) - - yellowSem -= 1 - - self.mutex.lock() - if self.stopped: - self.stopped = 0 - self.mutex.unlock() - break - - self.mutex.unlock() - - greenSem += 1 - - event = QCustomEvent(12346) - event.setData(QString("Green!")) - QThread.postEvent(self.receiver,event) - self.msleep(10) - - yellowSem -= 1 - - def stop(self): - self.mutex.lock() - self.stopped = 1 - self.mutex.unlock() - - -class SemaphoreExample(QWidget): - def __init__(self): - QWidget.__init__(self) - - self.yellowThread = YellowThread(self) - self.greenThread = GreenThread(self) - - global yellowSem, greenSem - yellowSem = QSemaphore(1) - greenSem = QSemaphore(1) - - self.button = QPushButton("&Ignition!",self) - self.connect(self.button,SIGNAL("clicked()"),self.startExample) - - self.mlineedit = QMultiLineEdit(self) - self.label = QLabel(self) - - vbox = QVBoxLayout(self,5) - vbox.addWidget(self.button) - vbox.addWidget(self.mlineedit) - vbox.addWidget(self.label) - - def __del__(self): - stopYellow = self.yellowThread.running() - stopGreen = self.greenThread.running() - - if stopYellow: - self.yellowThread.stop() - - if self.greenThread.running(): - self.greenThread.stop() - - if stopYellow: - self.yellowThread.wait() - - if stopGreen: - self.greenThread.wait() - - global yellowSem, greenSem - yellowSem = None - greenSem = None - - def startExample(self): - if self.yellowThread.running() or self.greenThread.running(): - QMessageBox.information(self,"Sorry", - "The threads have not completed yet, and must finish before " - "they can be started again.") - - return - - self.mlineedit.clear() - - global yellowSem - - while yellowSem.available() < yellowSem.total(): - yellowSem -= 1 - - yellowSem += 1 - - self.yellowThread.start() - self.greenThread.start() - - def customEvent(self,event): - if event.type() == 12345: - s = event.data() - - self.mlineedit.append(s) - - if s.latin1() == "Green!": - self.label.setBackgroundColor(Qt.green) - else: - self.label.setBackgroundColor(Qt.yellow) - - self.label.setText(s) - - del s - elif event.type() == 12346: - s = event.data() - - QMessageBox.information(self,s.latin1() + " - Finished", - "The thread creating the \"" + s.latin1() + - "\" events has finished.") - - del s - else: - print "Unknown custom event type:", event.type() - - -app = QApplication(sys.argv) -se = SemaphoreExample() -app.setMainWidget(se) -se.show() - -sys.exit(app.exec_loop()) diff --git a/python/pyqt/examples2/splitter.py b/python/pyqt/examples2/splitter.py deleted file mode 100755 index 1c2fef7b..00000000 --- a/python/pyqt/examples2/splitter.py +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/env python - -import sys -from qt import * - -class Test(QWidget): - def __init__(self, parent=None, name='Test', f=0): - QWidget.__init__(self, parent, name, f) - - def paintEvent(self, e): - p = QPainter(self) - p.setClipRect(e.rect()) - d = 1000 - x1 = 0 - x2 = self.width() - 1 - y1 = 0 - y2 = self.height() - 1 - - x = (x1+x2)/2 - p.drawLine(x, y1, x+d, y1+d) - p.drawLine(x, y1, x-d, y1+d) - p.drawLine(x, y2, x+d, y2-d) - p.drawLine(x, y2, x-d, y2-d) - - y = (y1+y2)/2 - p.drawLine(x1, y, x1+d, y+d) - p.drawLine(x1, y, x1+d, y-d) - p.drawLine(x2, y, x2-d, y+d) - p.drawLine(x2, y, x2-d, y-d) - - -if __name__=="__main__": - a = QApplication(sys.argv) - - s1 = QSplitter(Qt.Vertical, None, "main") - s2 = QSplitter(Qt.Horizontal, s1, "top") - - t1 = Test(s2) - t1.setBackgroundColor(Qt.blue.light(180)) - t1.setMinimumSize(50,0) - - t2 = Test(s2) - t2.setBackgroundColor(Qt.green.light(180)) - s2.setResizeMode(t2, QSplitter.KeepSize) - s2.moveToFirst(t2) - - s3 = QSplitter(Qt.Horizontal, s1, "bottom") - - t3 = Test(s3) - t3.setBackgroundColor(Qt.red) - t4 = Test(s3) - t4.setBackgroundColor(Qt.white) - - t5 = Test(s3) - t5.setMaximumHeight(250) - t5.setMinimumSize(80,50) - t5.setBackgroundColor(Qt.yellow) - - s1.setOpaqueResize(1) - s2.setOpaqueResize(1) - s3.setOpaqueResize(1) - - a.setMainWidget(s1) - s1.show() - a.exec_loop() diff --git a/python/pyqt/examples2/table.py b/python/pyqt/examples2/table.py deleted file mode 100755 index 58fd04bd..00000000 --- a/python/pyqt/examples2/table.py +++ /dev/null @@ -1,115 +0,0 @@ -#!/usr/bin/env python - -import sys -from qt import * - -class Table(QTableView): - def __init__(self, numRows, numCols, parent=None, name=''): - QTableView.__init__(self, parent, name) - self.curRow = self.curCol = 0 - self.setFocusPolicy(QWidget.StrongFocus) - self.setBackgroundMode(QWidget.PaletteBase) - self.setNumCols(numCols) - self.setNumRows(numRows) - self.setCellWidth(100) - self.setCellHeight(30) - self.setTableFlags(Tbl_vScrollBar | - Tbl_hScrollBar | - Tbl_clipCellPainting) - self.resize(400,200) - self.contents = [''] * (numRows * numCols) - - def cellContent(self, row, col): - return self.contents[self.indexOf(row,col)] - - def setCellContent(self, row, col, c): - self.contents[self.indexOf(row,col)] = c - self.updateCell(row, col) - - def paintCell(self, p, row, col): - w = self.cellWidth(col) - h = self.cellHeight(row) - x2 = w-1 - y2 = h-1 - - p.drawLine(x2,0,x2,y2) - p.drawLine(0,y2,x2,y2) - - if row == self.curRow and col == self.curCol: - if self.hasFocus(): - p.drawRect(0, 0, x2, y2) - else: - p.setPen(Qt.DotLine) - p.drawRect(0, 0, x2, y2) - p.setPen(Qt.SolidLine) - - p.drawText(0,0,w,h,Qt.AlignCenter,self.contents[self.indexOf(row,col)]) - - def mousePressEvent(self, me): - oldRow = self.curRow - oldCol = self.curCol - clickedPos = me.pos() - self.curRow = self.findRow(clickedPos.y()) - self.curCol = self.findCol(clickedPos.x()) - if self.curRow != oldRow or \ - self.curCol != oldCol: - self.updateCell(oldRow, oldCol) - self.updateCell(self.curRow, self.curCol) - - def keyPressEvent(self, ke): - oldRow = self.curRow - oldCol = self.curCol - edge = 0 - key = ke.key() - if key == Key_Left: - if self.curCol > 0: - self.curCol = self.curCol - 1 - edge = self.leftCell() - if self.curCol < edge: - self.setLeftCell(edge-1) - elif key == Key_Right: - if self.curCol < self.numCols()-1: - self.curCol = self.curCol + 1 - edge = self.lastColVisible() - if self.curCol >= edge: - self.setLeftCell(self.leftCell()+1) - elif key == Key_Up: - if self.curRow > 0: - self.curRow = self.curRow - 1 - edge = self.topCell() - if self.curRow < edge: - self.setTopCell(edge-1) - elif key == Key_Down: - if self.curRow < self.numRows()-1: - self.curRow = self.curRow + 1 - edge = self.lastRowVisible() - if self.curRow >= edge: - self.setTopCell(self.topCell()+1) - else: - ke.ignore() - return - - if self.curRow != oldRow or \ - self.curCol != oldCol: - self.updateCell(oldRow, oldCol) - self.updateCell(self.curRow, self.curCol) - - def focusInEvnet(self, fie): - self.updateCell(self.curRow, self.curCol) - - def focusOutEvent(self, foe): - self.updateCell(self.curRow, self.curCol) - - def indexOf(self, row, col): - return (row * self.numCols()) + col - -numRows = 20 -numCols = 20 -a = QApplication(sys.argv) -v = Table(numRows, numCols) -for i in range(numRows): - for j in range(numCols): - v.setCellContent(i,j,'%d %c' % (j, 65+(i%26))) -a.setMainWidget(v) -v.show() -a.exec_loop() diff --git a/python/pyqt/examples2/themes.py b/python/pyqt/examples2/themes.py deleted file mode 100755 index b3dae552..00000000 --- a/python/pyqt/examples2/themes.py +++ /dev/null @@ -1,2484 +0,0 @@ -#!/usr/bin/env python - -# This is a port to PyQt of the Qt v2.x example program. It does not (yet) -# include the implementation of all of the example widgets. - - -FALSE=0 -TRUE=1 - -# Python modules - -import os, sys - -# include files for QT - -from qt import * - - -class ButtonsGroups(QVBox): - - def __init__(self, parent=None, name=None): - QVBox.__init__(self, parent, name) - - # Create widgets which allow easy layouting - box1=QHBox(self) - box2=QHBox(self) - - # first group - - # Create an exclusive button group - grp1=QButtonGroup( 1 - , QGroupBox.Horizontal - , "Button Group 1 (exclusive)" - , box1 - ) - grp1.setExclusive(TRUE) - - # insert 3 radiobuttons - rb11=QRadioButton("&Radiobutton 1", grp1) - rb11.setChecked(TRUE) - QRadioButton("R&adiobutton 2", grp1) - QRadioButton("Ra&diobutton 3", grp1) - - # second group - - # Create a non-exclusive buttongroup - grp2=QButtonGroup( 1 - , QGroupBox.Horizontal - , "Button Group 2 (non-exclusive)" - , box1 - ) - grp2.setExclusive(FALSE) - - # insert 3 checkboxes - QCheckBox("&Checkbox 1", grp2) - cb12=QCheckBox("C&heckbox 2", grp2) - cb12.setChecked(TRUE) - cb13=QCheckBox("Triple &State Button", grp2) - cb13.setTristate(TRUE) - cb13.setChecked(TRUE) - - # third group - - # create a buttongroup which is exclusive for radiobuttons and - # non-exclusive for all other buttons - grp3=QButtonGroup( 1 - , QGroupBox.Horizontal - , "Button Group 3 (Radiobutton-exclusive)" - , box2 - ) - grp3.setRadioButtonExclusive(TRUE) - - # insert three radiobuttons - self.rb21=QRadioButton("Rad&iobutton 1", grp3) - self.rb22=QRadioButton("Radi&obutton 2", grp3) - self.rb23=QRadioButton("Radio&button 3", grp3) - self.rb23.setChecked(TRUE) - - # insert a checkbox... - self.state=QCheckBox("E&nable Radiobuttons", grp3) - self.state.setChecked(TRUE) - # ...and connect its SIGNAL clicked() with the SLOT slotChangeGrp3State() - self.connect(self.state, SIGNAL('clicked()'),self.slotChangeGrp3State) - - # fourth group - - # create a groupbox which lays out its childs in a column - grp4=QGroupBox( 1 - , QGroupBox.Horizontal - , "Groupbox with normal buttons" - , box2 - ) - - # insert two pushbuttons... - QPushButton("&Push Button", grp4) - tb=QPushButton("&Toggle Button", grp4) - - # ...and make the second one a toggle button - tb.setToggleButton(TRUE) - tb.setOn(TRUE) - - def slotChangeGrp3State(self): - self.rb21.setEnabled(self.state.isChecked()) - self.rb22.setEnabled(self.state.isChecked()) - self.rb23.setEnabled(self.state.isChecked()) - - -class LineEdits(QVBox): - - def __init__(self, parent=None, name=None): - QVBox.__init__(self, parent, name) - - self.setMargin(10) - - # Widget for layouting - row1=QHBox(self) - row1.setMargin(5) - - # Create a label - QLabel("Echo Mode: ", row1) - - # Create a Combobox with three items... - self.combo1=QComboBox(FALSE, row1) - self.combo1.insertItem("Normal", -1) - self.combo1.insertItem("Password", -1) - self.combo1.insertItem("No Echo", -1) - # ...and connect the activated() SIGNAL with the slotEchoChanged SLOT to be - # able to react when an item is selected - self.connect(self.combo1, SIGNAL('activated(int)'), self.slotEchoChanged) - - # insert the first LineEdit - self.lined1=QLineEdit(self) - - # another widget which is used for layouting - row2=QHBox(self) - row2.setMargin(5) - - # and the second label - QLabel("Validator: ", row2) - - # A second Combobox with again three items... - self.combo2=QComboBox(FALSE, row2) - self.combo2.insertItem("No Validator", -1) - self.combo2.insertItem("Integer Validator", -1) - self.combo2.insertItem("Double Validator", -1) - # ...and again the activated() SIGNAL gets connected with a SLOT - self.connect(self.combo2, SIGNAL('activated(int)'), self.slotValidatorChanged) - - # and the second LineEdit - self.lined2=QLineEdit(self) - - # yet another widget which is used for layouting - row3=QHBox(self) - row3.setMargin(5) - - # we need a label for this too - QLabel("Alignment: ", row3) - - # A combo box for setting alignment - self.combo3=QComboBox(FALSE, row3) - self.combo3.insertItem("Left", -1) - self.combo3.insertItem("Centered", -1) - self.combo3.insertItem("Right", -1) - # ...and again the activated() SIGNAL gets connected with a SLOT - self.connect(self.combo3, SIGNAL('activated(int)'), self.slotAlignmentChanged) - - # and the lineedit - self.lined3=QLineEdit(self) - - # give the first LineEdit the focus at the beginning - self.lined1.setFocus() - - def slotEchoChanged(self, i): - if i == 0: - self.lined1.setEchoMode(QLineEdit.EchoMode.Normal) - elif i == 1: - self.lined1.setEchoMode(QLineEdit.EchoMode.Password) - elif i == 2: - self.lined1.setEchoMode(QLineEdit.EchoMode.NoEcho) - - self.lined1.setFocus() - - def slotValidatorChanged(self, i): - if i == 0: - self.validator=None - self.lined2.setValidator(self.validator) - elif i == 1: - self.validator=QIntValidator(self.lined2) - self.lined2.setValidator(self.validator) - elif i == 2: - self.validator=QDoubleValidator(-999.0, 999.0, 2, self.lined2) - self.lined2.setValidator(self.validator) - - self.lined2.setText("") - self.lined2.setFocus() - - def slotAlignmentChanged(self, i): - if i == 0: - self.lined3.setAlignment(Qt.AlignLeft) - elif i == 1: - self.lined3.setAlignment(Qt.AlignCenter) - elif i == 2: - self.lined3.setAlignment(Qt.AlignRight) - - self.lined3.setFocus() - - -class ProgressBar(QVBox): - - def __init__(self, parent=None, name=None): - QVBox.__init__(self, parent, name) - - self.timer=QTimer() - - self.setMargin(10) - - # Create a radiobutton-exclusive Buttongroup which aligns its childs in two - # columns - bg=QButtonGroup(2, QGroupBox.Horizontal, self) - bg.setRadioButtonExclusive(TRUE) - - # insert three radiobuttons which the user can use to set the speed of the - # progress and two pushbuttons to start/pause/continue and reset the - # progress - self.slow=QRadioButton("&Slow", bg) - self.start=QPushButton("S&tart", bg) - self.normal=QRadioButton("&Normal", bg) - self.reset=QPushButton("&Reset", bg) - self.fast=QRadioButton("&Fast", bg) - - # Create the progressbar - self.progress=QProgressBar(100, self) - - # connect the clicked() SIGNALs of the pushbuttons to SLOTs - self.connect(self.start, SIGNAL('clicked()'), self.slotStart) - self.connect(self.reset, SIGNAL('clicked()'), self.slotReset) - - # connect the timeout() SIGNAL of the progress-timer to a SLOT - self.connect(self.timer, SIGNAL('timeout()'), self.slotTimeout) - - # Let's start with normal speed... - self.normal.setChecked(TRUE) - - def slotStart(self): - # If the progress bar is at the beginning... - if self.progress.progress() == -1: - # ...set according to the checked speed-radionbutton the number of steps - # which are needed to complete the process - if self.slow.isChecked(): - self.progress.setTotalSteps(10000) - elif self.normal.isChecked(): - self.progress.setTotalSteps(1000) - else: - self.progress.setTotalSteps(50) - - # disable the speed-radiobuttons - self.slow.setEnabled(FALSE) - self.normal.setEnabled(FALSE) - self.fast.setEnabled(FALSE) - - # If the progress is not running... - if not self.timer.isActive(): - # ...start the time (and so the progress) with an interval fo 1ms... - self.timer.start(1) - # ...and rename the start/pause/continue button to Pause - self.start.setText("&Pause") - else: - # ...stop the timer (and so the progress)... - self.timer.stop() - # ...and rename the start/pause/continue button to Continue - self.start.setText("&Continue") - - def slotReset(self): - # stop the timer and progress - self.timer.stop() - - # rename the start/pause/continue button to Start... - self.start.setText("&Start") - # ...and enable this button - self.start.setEnabled(TRUE) - - # enable the speed-radiobuttons - self.slow.setEnabled(TRUE) - self.normal.setEnabled(TRUE) - self.fast.setEnabled(TRUE) - - # reset the progressbar - self.progress.reset() - - def slotTimeout(self): - p = self.progress.progress() - - # If the progress is complete... - if p == self.progress.totalSteps(): - # ...rename the start/pause/continue button to Start... - self.start.setText("&Start") - # ...and disable it... - self.start.setEnabled(FALSE) - # ...and return - return - - # If the progress is not complete increase it - self.progress.setProgress(p+1) - - -class ListBoxCombo(QVBox): - - def __init__(self, parent=None, name=None): - QVBox.__init__(self, parent, name) - - self.setMargin(5) - - row1=QHBox(self) - row1.setMargin(5) - - # Create a multi-selection ListBox... - self.lb1=QListBox(row1) - self.lb1.setMultiSelection(TRUE) - - # ...insert a pixmap item... - self.lb1.insertItem(QPixmap("qtlogo.png")) - # ...and 100 text items - for i in range(100): - str=QString("Listbox Item %1").arg(i) - self.lb1.insertItem(str) - - # Create a pushbutton... - self.arrow1=QPushButton(" -> ", row1) - # ...and connect the clicked SIGNAL with the SLOT slotLeft2Right - self.connect(self.arrow1, SIGNAL('clicked()'), self.slotLeft2Right) - - # create an empty single-selection ListBox - self.lb2=QListBox(row1) - - def slotLeft2Right(self): - # Go through all items of the first ListBox - for i in range(self.lb1.count()): - item=self.lb1.item(i) - # if the item is selected... - if item.selected(): - # ...and it is a text item... - if not item.text().isEmpty(): - # ...insert an item with the same text into the second ListBox - self.lb2.insertItem(QListBoxText(item.text())) - # ...and if it is a pixmap item... - elif item.pixmap(): - # ...insert an item with the same pixmap into the second ListBox - self.lb2.insertItem(QListBoxPixmap(item.pixmap())) - - -class NorwegianWoodStyle(QMotifStyle): - - def __init__(self): - QMotifStyle.__init__(self) - - def polish(self,o): - if isinstance(o,QApplication): - self.polish_qapplication(o) - elif isinstance(o,QWidget): - self.polish_qwidget(o) - else: - QMotifStyle.polish(self,o) - - def unPolish(self,o): - if isinstance(o,QApplication): - self.unPolish_qapplication(o) - elif isinstance(o,QWidget): - self.unPolish_qwidget(o) - else: - QMotifStyle.unPolish(self,o) - - def polish_qapplication(self,app): - global button_xpm, polish_xpm - - self.oldPalette=app.palette() - - # we simply create a nice QColorGroup with a couple of fancy wood pixmaps - # here and apply it to all widgets - - img=QImage(button_xpm) - orig=QImage(img) - orig.detach() - button=QPixmap() - button.convertFromImage(img) - - background=QPixmap(polish_xpm) - - for i in range(img.numColors()): - rgb=img.color(i) - c=QColor(rgb) - (r, g, b)=c.dark().rgb() - img.setColor(i,qRgb(r, g, b)) - mid=QPixmap() - mid.convertFromImage(img) - - img=QImage(orig) - for i in range(img.numColors()): - rgb=img.color(i) - c=QColor(rgb) - (r, g, b)=c.light().rgb() - img.setColor(i,qRgb(r, g, b)) - light=QPixmap() - light.convertFromImage(img) - - img=QImage(orig) - for i in range(img.numColors()): - rgb=img.color(i) - c=QColor(rgb) - (r, g, b)=c.dark().rgb() - img.setColor(i,qRgb(r, g, b)) - dark=QPixmap() - dark.convertFromImage(img) - - op=QPalette(QColor(212,140,95)) - - nor=QColorGroup(QBrush(op.normal().foreground()), - QBrush(op.normal().button(), button), - QBrush(op.normal().light(), light), - QBrush(op.normal().dark(), dark), - QBrush(op.normal().mid(), mid), - QBrush(op.normal().text()), - QBrush(Qt.white), - QBrush(QColor(236,182,120)), - QBrush(op.normal().background(), background)) - disabled=QColorGroup(QBrush(op.disabled().foreground()), - QBrush(op.disabled().button(), button), - QBrush(op.disabled().light(), light), - QBrush(op.disabled().dark()), - QBrush(op.disabled().mid(), mid), - QBrush(op.disabled().text()), - QBrush(Qt.white), - QBrush(QColor(236,182,120)), - QBrush(op.disabled().background(), background)) - active=QColorGroup(QBrush(op.active().foreground()), - QBrush(op.active().button(), button), - QBrush(op.active().light(), light), - QBrush(op.active().dark()), - QBrush(op.active().mid(), mid), - QBrush(op.active().text()), - QBrush(Qt.white), - QBrush(QColor(236,182,120)), - QBrush(op.active().background(), background)) - - app.setPalette(QPalette(nor, disabled, active), TRUE) - - def unPolish_qapplication(self,app): - app.setPalette(self.oldPalette, TRUE) - - def polish_qwidget(self,w): - # the polish function will set some widgets to transparent mode, to get the - # full benefit from the nice pixmaps in the color group. - - if w.inherits("QTipLabel"): - return - - if w.inherits("QLCDNumber"): - return - - if not w.isTopLevel(): - if w.inherits("QLabel") \ - or w.inherits("QButton") \ - or w.inherits("QComboBox") \ - or w.inherits("QGroupBox") \ - or w.inherits("QSlider") \ - or w.inherits("QTabWidget") \ - or w.inherits("QTabBar"): - w.setAutoMask(TRUE) - - def unPolish_qwidget(self,w): - if w.inherits("QTipLabel"): - return - - if w.inherits("QLCDNumber"): - return - - if not w.isTopLevel(): - if w.inherits("QLabel") \ - or w.inherits("QButton") \ - or w.inherits("QComboBox") \ - or w.inherits("QGroupBox") \ - or w.inherits("QSlider") \ - or w.inherits("QTabWidget") \ - or w.inherits("QTabBar"): - w.setAutoMask(FALSE) - - def drawroundrect(self, p, x, y, w, h, d): - rx=(200*d)/w - ry=(200*d)/h - p.drawRoundRect(x, y, w, h, rx, ry) - - def drawButton(self, p, x, y, w, h, g, sunken=FALSE, fill=None): - qDrawShadePanel(p, x, y, w, h, g, sunken, 5) - - oldBrush=p.brush() - oldPen=p.pen() - p.setPen(Qt.NoPen) - if fill != None: - newBrush=fill - else: - if sunken: - newBrush=g.brush(QColorGroup.Mid) - else: - newBrush=g.brush(QColorGroup.Button) - self.drawroundrect(p, x+3, y+3, w-6, h-6, 5) - p.setBrush(oldBrush) - p.setPen(g.foreground()) - self.drawroundrect(p, x, y, w, h, 8) - p.setPen(oldPen) - - def drawBevelButton(self, p, x, y, w, h, g, sunken=FALSE, fill=None): - QMotifStyle.drawBevelButton(self, p, x, y, w, h, g, sunken, fill) - - def drawPushButton(self, btn, p): - g = btn.colorGroup() - - (x1, y1, x2, y2)=btn.rect().coords() - - p.setPen(g.foreground()) - p.setBrush(QBrush(g.button(),Qt.NoBrush)) - - if btn.isDown(): - fill=g.brush(QColorGroup.Mid) - elif btn.isOn(): - fill=QBrush(g.mid(),Qt.Dense4Pattern) - else: - fill=g.brush(QColorGroup.Button) - - if btn.isDefault(): - a=QPointArray([x1, y1, x2, y1, x2, y2, x1, y2, x1, y1+1, - x2-1, y1+1, x2-1, y2-1, x1+1, y2-1, x1+1, y1+1]) - p.setPen(Qt.black) - p.drawPolyline(a) - x1=x1+2 - y1=y1+2 - x2=x2-2 - y2=y2-2 - - if btn.isOn() or btn.isDown(): - sunken=TRUE - else: - sunken=FALSE - - self.drawButton(p, x1, y1, x2-x1+1, y2-y1+1, g, sunken, fill) - - if btn.isMenuButton(): - dx=(y1-y2-4)/3 - self.drawArrow(p, Qt.DownArrow, FALSE, - x2-dx, dx, y1, y2-y1, - g, btn.isEnabled()) - - if p.brush().style != Qt.NoBrush: - p.setBrush(Qt.NoBrush) - - def drawPushButtonLabel(self, btn, p): - r=btn.rect() - (x, y, w, h)=r.rect() - - (x1, y1, x2, y2)=btn.rect().coords() - dx=0 - dy=0 - if btn.isMenuButton(): - dx=(y2-y1)/3 - if dx or dy: - p.translate(dx,dy) - - x=x+2 - y=y+2 - w=w-4 - h=h-4 - g=btn.colorGroup() - if btn.isDown() or btn.isOn(): - pencolour=btn.colorGroup().brightText() - else: - pencolour=btn.colorGroup().buttonText() - self.drawItem(p, x, y, w, h, - Qt.AlignCenter|Qt.ShowPrefix, - g, btn.isEnabled(), - btn.pixmap(), btn.text(), -1, - pencolour) - - if dx or dy: - p.translate(-dx,-dy) - - def buttonRect(self, x, y, w, h): - return QRect(x+3, y+2, w-6, h-4) - - def drawButtonMask(self, p, x, y, w, h): - self.drawroundrect(p, x, y, w, h, 8) - - -class MetalStyle(QWindowsStyle): - - def __init__(self): - QWindowsStyle.__init__(self) - - def polish(self,o): - if isinstance(o,QApplication): - self.polish_qapplication(o) - elif isinstance(o,QWidget): - self.polish_qwidget(o) - else: - QWindowsStyle.polish(self,o) - - def unPolish(self,o): - if isinstance(o,QApplication): - self.unPolish_qapplication(o) - elif isinstance(o,QWidget): - self.unPolish_qwidget(o) - else: - QWindowsStyle.unPolish(self,o) - - def polish_qapplication(self,app): - global stone1_xpm, stonebright_xpm - - self.oldPalette=app.palette() - - # we simply create a nice QColorGroup with a couple of fancy pixmaps here - # and apply it to all widgets - - f=QFont("times", app.font().pointSize()) - f.setBold(TRUE) - f.setItalic(TRUE) - app.setFont(f, TRUE, "QMenuBar") - app.setFont(f, TRUE, "QPopupMenu") - - button=QPixmap(stone1_xpm) - background=QPixmap(stonebright_xpm) - dark=QPixmap(1,1) - dark.fill(Qt.red.dark()) - mid=QPixmap(stone1_xpm) - light=QPixmap(stone1_xpm) - op=app.palette() - - backCol=QColor(227,227,227) - - nor=QColorGroup(QBrush(op.normal().foreground()), - QBrush(op.normal().button(), button), - QBrush(op.normal().light(), light), - QBrush(op.normal().dark(), dark), - QBrush(op.normal().mid(), mid), - QBrush(op.normal().text()), - QBrush(Qt.white), - QBrush(op.normal().base()), - QBrush(backCol, background)) - nor.setColor(QColorGroup.ButtonText, Qt.white) - nor.setColor(QColorGroup.Shadow, Qt.black) - disabled=QColorGroup(QBrush(op.disabled().foreground()), - QBrush(op.disabled().button(), button), - QBrush(op.disabled().light(), light), - QBrush(op.disabled().dark()), - QBrush(op.disabled().mid(), mid), - QBrush(op.disabled().text()), - QBrush(Qt.white), - QBrush(op.disabled().base()), - QBrush(backCol, background)) - active=QColorGroup(QBrush(op.active().foreground()), - QBrush(op.active().button(), button), - QBrush(op.active().light(), light), - QBrush(op.active().dark()), - QBrush(op.active().mid(), mid), - QBrush(op.active().text()), - QBrush(Qt.white), - QBrush(op.active().base()), - QBrush(backCol, background)) - active.setColor(QColorGroup.ButtonText, Qt.white) - - newPalette=QPalette(nor, disabled, active) - app.setPalette(newPalette, TRUE) - - def unPolish_qapplication(self,app): - app.setPalette(self.oldPalette, TRUE) - app.setFont(app.font(), TRUE) - - def polish_qwidget(self,w): - # the polish function will set some widgets to transparent mode, to get the - # full benefit from the nice pixmaps in the color group. - - if w.inherits("QPushButton"): - w.setBackgroundMode(QWidget.NoBackground) - - def unPolish_qwidget(self,w): - if w.inherits("QPushButton"): - w.setBackgroundMode(QWidget.PaletteButton) - - def drawButton(self, p, x, y, w, h, g, sunken=FALSE, fill=None): - global img1, metal_xpm - - if not img1: - img1=QImage(metal_xpm) - - scaledImage=img1.smoothScale(w, h) - pix=QPixmap() - pix.convertFromImage(scaledImage) - p.drawPixmap(x, y, pix) - g2=QColorGroup() - g2.setColor(QColorGroup.Light, Qt.white) - g2.setColor(QColorGroup.Dark, Qt.black) - - if sunken: - linewidth=2 - else: - linewidth=1 - - qDrawShadePanel(p, x, y, w, h, g2, sunken, linewidth) - - def drawBevelButton(self, p, x, y, w, h, g, sunken=FALSE, fill=None): - self.drawButton(p, x, y, w, h, g, sunken, fill) - - def drawPushButton(self, btn, p): - g = btn.colorGroup() - - (x1, y1, x2, y2)=btn.rect().coords() - - p.setPen(g.foreground()) - p.setBrush(QBrush(g.button(),Qt.NoBrush)) - - if btn.isDown(): - fill=g.brush(QColorGroup.Mid) - elif btn.isOn(): - fill=QBrush(g.mid(),Qt.Dense4Pattern) - else: - fill=g.brush(QColorGroup.Button) - - if btn.isDefault(): - a=QPointArray([x1, y1, x2, y1, x2, y2, x1, y2, x1, y1+1, - x2-1, y1+1, x2-1, y2-1, x1+1, y2-1, x1+1, y1+1]) - p.setPen(Qt.black) - p.drawPolyline(a) - x1=x1+2 - y1=y1+2 - x2=x2-2 - y2=y2-2 - - if btn.isOn() or btn.isDown(): - sunken=TRUE - else: - sunken=FALSE - - self.drawButton(p, x1, y1, x2-x1+1, y2-y1+1, g, sunken, fill) - - if btn.isMenuButton(): - dx=(y1-y2-4)/3 - self.drawArrow(p, Qt.DownArrow, FALSE, - x2-dx, dx, y1, y2-y1, - g, btn.isEnabled()) - - if p.brush().style != Qt.NoBrush: - p.setBrush(Qt.NoBrush) - - def drawPushButtonLabel(self, btn, p): - r=btn.rect() - (x, y, w, h)=r.rect() - - (x1, y1, x2, y2)=btn.rect().coords() - dx=0 - dy=0 - if btn.isMenuButton(): - dx=(y2-y1)/3 - if btn.isOn() or btn.isDown(): - dx=dx-1 - dy=dy-1 - pencolour=btn.colorGroup().brightText() - else: - pencolour=btn.colorGroup().buttonText() - if dx or dy: - p.translate(dx,dy) - - x=x+2 - y=y+2 - w=w-4 - h=h-4 - g=btn.colorGroup() - self.drawItem(p, x, y, w, h, - Qt.AlignCenter|Qt.ShowPrefix, - g, btn.isEnabled(), - btn.pixmap(), btn.text(), -1, - pencolour) - - if dx or dy: - p.translate(-dx,-dy) - - def drawPanel(self, p, x, y, w, h, g, sunken, lineWidth, fill): - QStyle.drawPanel(self, p, x, y, w, h, g, sunken, lineWidth, fill) - - -class Themes(QMainWindow): - - def __init__(self, parent=None, name=None, f=Qt.WType_TopLevel): - QMainWindow.__init__(self, parent, name, f) - - self.appFont=QApplication.font() - self.tabwidget=QTabWidget(self) - - self.buttonsgroups=ButtonsGroups(self.tabwidget) - self.tabwidget.addTab(self.buttonsgroups,"Buttons/Groups") - self.hbox=QHBox(self.tabwidget) - self.hbox.setMargin(5) - self.linedits=LineEdits(self.hbox) - self.progressbar=ProgressBar(self.hbox) - self.tabwidget.addTab(self.hbox, "Lineedits/Progressbar") - self.listboxcombo=ListBoxCombo(self.tabwidget) - self.tabwidget.addTab(self.listboxcombo, "Listboxes/Comboboxes") - - self.setCentralWidget(self.tabwidget) - - self.style=QPopupMenu(self) - self.style.setCheckable(TRUE) - self.menuBar().insertItem("&Style", self.style) - - self.sMetal=self.style.insertItem("&Metal", self.styleMetal) - self.sWood=self.style.insertItem("&Norwegian Wood", self.styleWood) - self.sPlatinum=self.style.insertItem("&Platinum", self.stylePlatinum) - self.sWindows=self.style.insertItem("&Windows", self.styleWindows) - self.sCDE=self.style.insertItem("&CDE", self.styleCDE) - self.sMotif=self.style.insertItem("M&otif", self.styleMotif) - self.sMotifPlus=self.style.insertItem("Motif P&lus", self.styleMotifPlus) - self.style.insertSeparator() - self.style.insertItem("&Quit", qApp.quit, Qt.CTRL | Qt.Key_Q) - - self.help=QPopupMenu(self) - self.menuBar().insertSeparator() - self.menuBar().insertItem("&Help", self.help) - self.help.insertItem("&About", self.about, Qt.Key_F1) - self.help.insertItem("About &Qt", self.aboutQt) - - self.style=NorwegianWoodStyle() - qApp.setStyle(self.style) - self.menuBar().setItemChecked(self.sWood, TRUE) - - # In the following we cannot simply set the new style as we can in C++. We - # need to keep the old style alive (if it is a Python one) so that it's - # unPolish methods can still be called when the new style is set. - - def styleWood(self): - newstyle=NorwegianWoodStyle() - qApp.setStyle(newstyle) - self.style=newstyle - qApp.setFont(self.appFont, TRUE) - self.selectStyleMenu(self.sWood) - - def styleMetal(self): - newstyle=MetalStyle() - qApp.setStyle(newstyle) - self.style=newstyle - qApp.setFont(self.appFont, TRUE) - self.selectStyleMenu(self.sMetal) - - def stylePlatinum(self): - newstyle=QPlatinumStyle() - qApp.setStyle(newstyle) - self.style=newstyle - p=QPalette(QColor(239, 239, 239)) - qApp.setPalette(p, TRUE) - qApp.setFont(self.appFont, TRUE) - self.selectStyleMenu(self.sPlatinum) - - def styleWindows(self): - newstyle=QWindowsStyle() - qApp.setStyle(newstyle) - self.style=newstyle - qApp.setFont(self.appFont, TRUE) - self.selectStyleMenu(self.sWindows) - - def styleCDE(self): - newstyle=QCDEStyle(TRUE) - qApp.setStyle(newstyle) - self.style=newstyle - self.selectStyleMenu(self.sCDE) - - p=QPalette(QColor(75, 123, 130)) - p.setColor(QPalette.Active, QColorGroup.Base, QColor(55, 77, 78)); - p.setColor(QPalette.Inactive, QColorGroup.Base, QColor(55, 77, 78)); - p.setColor(QPalette.Disabled, QColorGroup.Base, QColor(55, 77, 78)); - p.setColor(QPalette.Active, QColorGroup.Highlight, Qt.white); - p.setColor(QPalette.Active, QColorGroup.HighlightedText, QColor(55, 77, 78)); - p.setColor(QPalette.Inactive, QColorGroup.Highlight, Qt.white); - p.setColor(QPalette.Inactive, QColorGroup.HighlightedText, QColor(55, 77, 78)); - p.setColor(QPalette.Disabled, QColorGroup.Highlight, Qt.white); - p.setColor(QPalette.Disabled, QColorGroup.HighlightedText, QColor(55, 77, 78)); - p.setColor(QPalette.Active, QColorGroup.Foreground, Qt.white); - p.setColor(QPalette.Active, QColorGroup.Text, Qt.white); - p.setColor(QPalette.Active, QColorGroup.ButtonText, Qt.white); - p.setColor(QPalette.Inactive, QColorGroup.Foreground, Qt.white); - p.setColor(QPalette.Inactive, QColorGroup.Text, Qt.white); - p.setColor(QPalette.Inactive, QColorGroup.ButtonText, Qt.white); - p.setColor(QPalette.Disabled, QColorGroup.Foreground, Qt.lightGray); - p.setColor(QPalette.Disabled, QColorGroup.Text, Qt.lightGray); - p.setColor(QPalette.Disabled, QColorGroup.ButtonText, Qt.lightGray); - qApp.setPalette(p, TRUE) - qApp.setFont(QFont("times", self.appFont.pointSize()), TRUE) - - def styleMotif(self): - newstyle=QMotifStyle(TRUE) - qApp.setStyle(newstyle) - self.style=newstyle - p=QPalette(QColor(192, 192, 192)) - qApp.setPalette(p, TRUE) - qApp.setFont(self.appFont, TRUE) - self.selectStyleMenu(self.sMotif) - - def styleMotifPlus(self): - newstyle=QMotifPlusStyle(TRUE) - qApp.setStyle(newstyle) - self.style=newstyle - p=QPalette(QColor(192, 192, 192)) - qApp.setPalette(p, TRUE) - qApp.setFont(self.appFont, TRUE) - self.selectStyleMenu(self.sMotifPlus) - - def about(self): - QMessageBox.about(self, "Qt Themes Example", - "

This example demonstrates the concept of " - "generalized GUI styles first introduced " - " with the 2.0 release of Qt.

" ) - - def aboutQt(self): - QMessageBox.aboutQt(self, "Qt Themes Example") - - def selectStyleMenu(self, s): - self.menuBar().setItemChecked(self.sWood, FALSE) - self.menuBar().setItemChecked(self.sMetal, FALSE) - self.menuBar().setItemChecked(self.sPlatinum, FALSE) - self.menuBar().setItemChecked(self.sCDE, FALSE) - self.menuBar().setItemChecked(self.sMotif, FALSE) - self.menuBar().setItemChecked(self.sMotifPlus, FALSE) - self.menuBar().setItemChecked(self.sWindows, FALSE) - self.menuBar().setItemChecked(s, TRUE) - - -def main(argv): - QApplication.setColorSpec(QApplication.CustomColor) - QApplication.setStyle(QWindowsStyle()) - a=QApplication(sys.argv) - - themes=Themes() - themes.setCaption('Theme (QStyle) example') - themes.resize(640,400) - a.setMainWidget(themes) - themes.show() - - return a.exec_loop() - - -# Put these here where they are out of the way of most of the code. - -polish_xpm = [ -" 96 96 254 2", -".. c #9c4a34", -".# c #a4825c", -".a c #bc5e2c", -".b c #d48432", -".c c #dc9f51", -".d c #bc6e1c", -".e c #d4855d", -".f c #94664c", -".g c #bc714e", -".h c #8c6664", -".i c #d4923c", -".j c #bc8444", -".k c #d49360", -".l c #d4794e", -".m c #ecaf68", -".n c #bc8365", -".o c #d47439", -".p c #a46954", -".q c #dc9f70", -".r c #e48544", -".s c #bc7b51", -".t c #a47761", -".u c #bc7b42", -".v c #a4523c", -".w c #e4945e", -".x c #9c784c", -".y c #d4844a", -".z c #eca053", -".A c #bc614c", -".B c #e4855c", -".C c #bc8350", -".D c #c48e68", -".E c #b16634", -".F c #e49339", -".G c #bc703a", -".H c #bc7c67", -".I c #a45f34", -".J c #cc714d", -".K c #d48c5f", -".L c #a47057", -".M c #cc703a", -".N c #dca674", -".O c #b47859", -".P c #bc6729", -".Q c #d49475", -".R c #d48b4a", -".S c #cc8351", -".T c #cc8466", -".U c #ac6841", -".V c #e4a651", -".W c #e49576", -".X c #d47d31", -".Y c #ac6e4b", -".Z c #c07650", -".0 c #e48c43", -".1 c #e49452", -".2 c #9c745f", -".3 c #e47e54", -".4 c #cc7c4f", -".5 c #cc7c32", -".6 c #b46133", -".7 c #d49a68", -".8 c #d67e4f", -".9 c #bc7643", -"#. c #b47056", -"## c #d48b3a", -"#a c #dc9f5e", -"#b c #e49a60", -"#c c #cc6a31", -"#d c #8c6244", -"#e c #dc9a41", -"#f c #eca753", -"#g c #bc8a58", -"#h c #d48c76", -"#i c #bc693f", -"#j c #bc715d", -"#k c #9c6857", -"#l c #f4b171", -"#m c #bc8a6a", -"#n c #eca16d", -"#o c #a87e58", -"#p c #a4613f", -"#q c #a48569", -"#r c #d4846d", -"#s c #dc935f", -"#t c #c47c50", -"#u c #dc8449", -"#v c #bc6950", -"#w c #cc9678", -"#x c #c4703a", -"#y c #cc7b67", -"#z c #dc8c5e", -"#A c #ac7067", -"#B c #eca86e", -"#C c #b4786d", -"#D c #dc8c4a", -"#E c #b46842", -"#F c #d47c41", -"#G c #e48d51", -"#H c #e59a52", -"#I c #9c6e3f", -"#J c #d49351", -"#K c #cc843b", -"#L c #ecb678", -"#M c #9c5a38", -"#N c #d4795c", -"#O c #c47b39", -"#P c #ec9560", -"#Q c #ac764c", -"#R c #c48351", -"#S c #c48e74", -"#T c #cc7650", -"#U c #cc8a84", -"#V c #bc6a5c", -"#W c #e4af74", -"#X c #b46855", -"#Y c #e4a06e", -"#Z c #ac775b", -"#0 c #e48d5d", -"#1 c #c47d65", -"#2 c #cc763f", -"#3 c #b47e5d", -"#4 c #cc8a55", -"#5 c #cc8a67", -"#6 c #bf622f", -"#7 c #dc853b", -"#8 c #e49f4a", -"#9 c #9c505c", -"a. c #8c5644", -"a# c #cc7329", -"aa c #a45a51", -"ab c #b48264", -"ac c #9c7a7c", -"ad c #9c5f4f", -"ae c #b4844c", -"af c #a46749", -"ag c #dca664", -"ah c #b46e1c", -"ai c #c4762c", -"aj c #a45a3c", -"ak c #dc9a74", -"al c #ac7e46", -"am c #ac6a6c", -"an c #eca862", -"ao c #e49a41", -"ap c #e49a78", -"aq c #bc7660", -"ar c #d57e5e", -"as c #9c6e5c", -"at c #ab7e65", -"au c #cc8a44", -"av c #9c6240", -"aw c #bc6244", -"ax c #bc5d3f", -"ay c #e48550", -"az c #eca060", -"aA c #cc7160", -"aB c #cc7c42", -"aC c #b46241", -"aD c #b4726c", -"aE c #eca67f", -"aF c #9c6a3c", -"aG c #94685a", -"aH c #c48240", -"aI c #c48465", -"aJ c #dc7640", -"aK c #cc8f54", -"aL c #e4a76f", -"aM c #c4692e", -"aN c #dc9474", -"aO c #ac6050", -"aP c #b47048", -"aQ c #94614b", -"aR c #ac836c", -"aS c #a47048", -"aT c #b4764a", -"aU c #ec8e5c", -"aV c #dc9a53", -"aW c #cc765e", -"aX c #b48a64", -"aY c #dc9a63", -"aZ c #c47640", -"a0 c #ec9a60", -"a1 c #c48a54", -"a2 c #c48a67", -"a3 c #ac5a3c", -"a4 c #ac8458", -"a5 c #dc855d", -"a6 c #c4714d", -"a7 c #dc9243", -"a8 c #dc794e", -"a9 c #ac6955", -"b. c #cc8f67", -"b# c #ac6032", -"ba c #ac7056", -"bb c #dc7a34", -"bc c #ec9553", -"bd c #dc8d3b", -"be c #e4a060", -"bf c #f4a654", -"bg c #c46842", -"bh c #c46f62", -"bi c #ac613d", -"bj c #dc866c", -"bk c #c4694e", -"bl c #dc7d42", -"bm c #ec8d4f", -"bn c #dc9351", -"bo c #cc9177", -"bp c #c4695f", -"bq c #ecb075", -"br c #e4a75f", -"bs c #d4843c", -"bt c #bc722c", -"bu c #d4936c", -"bv c #d47644", -"bw c #bc7d5c", -"bx c #ac563c", -"by c #e4956c", -"bz c #a47a4c", -"bA c #d48454", -"bB c #bc825c", -"bC c #e49544", -"bD c #bc7044", -"bE c #bc7e74", -"bF c #d48d6c", -"bG c #cc7144", -"bH c #b47864", -"bI c #bc6a34", -"bJ c #d49684", -"bK c #d48b54", -"bL c #cc845c", -"bM c #cc8474", -"bN c #ac684c", -"bO c #cc7d5c", -"bP c #eca27c", -"bQ c #dc946c", -"bR c #c47c5c", -"bS c #dc8554", -"bT c #c47244", -"bU c #dc8c6c", -"bV c #dc8c54", -"bW c #b4684c", -"bX c #cc8344", -"bY c #c47b44", -"bZ c #c4825c", -"b0 c #e4a17c", -"b1 c #ac7a64", -"b2 c #e48c6c", -"b3 c #c47a74", -"b4 c #e49f54", -"b5 c #9c674c", -"b6 c #946764", -"b7 c #c48674", -"#u#G#G#P#G#G#G.1#G#G.1.1.1.w#G.r#D.1.1.1#D#DbVbV.K.K.K.KbO.Z.Z#TaP.GaT.Z.O.O.O.H.9aP.ZaPaPaPbZbo.i.k#J.k#JbKbnbn#b#sbVbV#G#G.r.ray.r.0#G.0#G.1bc.r.0.0bc.0.0.0.r.1.1.1.1#G#D.0#D.0.0.0bcbcbc.1.0", -"#aagaLbrag#a#a#a#DbVbn#G#0.1#0#Da5#za5.4.J.Jbk#vbt.G#x.9bY.4#tbYbw.saPaP.Ub#af.Y.s.s.Z.saP#E.gbw.U.U.UaObWbWbWaPb#b#.E#t.K.K#z#s#s#sbQ#s#sbn#s#sbn#s.w#s.w#s#sbn.ybV#s#sbV#s#sbQ#aak.7.k.7.k.k.k", -"#..g#.#.#j#.#XbW#Z#o.O.O#3.n.n.Halalalala4aXaXa4#t.u.9#R#5bu.k#5bob7aIaI.nbwbw#m#5aIa2#5#5aIb7#5.DbBbB#3bwbw.C.O#oabab.naI.C#t#R.9#tbY#tbY.ZbY.s#t#t#t#R.sbY.s#tbD.Z.Z#t.9.Z#t.4bBbw.s.saT.9aTaT", -".ybS.ybSbVbVbVbVbl#u#u#ubSaybSay#s#za5#z#z#z.KbA.Qb.aIbZbZbB.g.U.gaP#.aP#.aPaP.O.9aP.g.s.O.ZaP.Z#CaD#Aamamamam#X#3#Z.OaPaPaPaP.saZbY#t#t#tbY#tbY#t#tbLbZ.SbR#t#tbZbRbZbRbR.sbRbR.4aBaB.4bY.4.4.4", -"bKbV#zbKbA.ybK#zbV#z#0bS#0#0#0aya5bA.4.4.4#T#xbgbwaq.O.g.O#j#.aPaCaC#v.g.gaPaP.Z#R#R#t#t#t.Z.s.Z#O#O.5aH#KbY.S#4bD.G#xaZaZ#2.SbVbV#s.wbV#zbSbAa5.e.KbQbQbU#s#z.K#5.K#5.T#4#5.Kb..4bZbL.T.ebL.K.K", -"#A#A#C#C#AaD#CbEatataRb1b1abb1.t#I.f#IaSbz.x.#.##v.g.g#1bR.T#5#hbObO.T.K.K#5.KbubL.4.4#t.4.Z#tbL.e#r.K.K.e.e.T#r.K#z.K#z#sbVbS#zbV#u#ubVbl#F.8.l#2.4.8bAbA.l.4bva6.g#x.g#x#i#i#i.L.Lba#Z#Z#Z#Zba", -"aPaT.u.u.s.C.C.C.SbA.S.4.SbA.8.8#r#rbF#h.TbO.T#h.KbF.e.e.S.S.S.S#u.y.8bA.e.4bA.e.K#zbQ#s.K.KbUbQ.y.R.y.yaB#O#xbT#t.4bLbLbL.4bL.S.4.S.4#T.Za6.Z.JbD.g.Z.g.Z.g.Z.ZaP.g#iaP#i#E#EaC.Obababa.ObH#Z.O", -"#zbSbA.e#za5.e.8bV.KbV.ybAbK#zbK.8.ybV#z.y#F.y#sbKbA.Rbn#sbn#b#b#Y.w#sbV.y.4.lbA.y.y.ybA#T.MbG.4bObO.4.SbLbOaq#..O.Yaf#p#p.I.U.UaT.Z.O.Oaq.O.H.Hb1b1#Z#Z.L#Zat#3bw.s.HbBb7aIaIaIbA.l.4aBbAbA.e.e", -"#DbVbn.w#s.w#sbVbAbSbSbV#D#GbS#0.1#H#H#H#b.1bn.1#4.S#t#t.S.TbL.S.K.K.K.S.SbK.e.S#t.4#t#tbDaPb#b#.U#E.9.S.ebVbS#G.K.K#r.l#y#T.Z.Z#2aB.S.ybS#u.8#F#Kau.y.S.y.y.R.y#z#z#sbn.1bna7bd#F#DbVbVbV#s.w#s", -".1#s.1#s.1bVbS.y.K#z#sbVbVbA.8#FbA.8ar.8.e#r.e#NbKbA.S.S.S.SbLbLaBaBaB#2aB.SbKbAbVbVbV#s.w#YbebQ.KbA.e.KbV.ybl.ybsbsbs#D#u#D#u.R.y#D#DbVbV#s#0.wbebe#b#bbQ.wbn#GbV#G#D#G#D#GbV#D.ybV#sbV#s#s.w#s", -".wbn.w.w#bbQbVbV.4.4.ybKbnbV#z#z#G#D#D#D#u#D.y.R#2aB#2.M#x.M#2#2#z#s.w#sbV#s.w#s.1.w.w#b.w.1#G#G#s#zbVbVbVbSbVbVbd#ubd.r#D#D#D#D.1bC.1.1.1.1#D.1bV#G#0#0#G.w.1a0bC#G.0aybS.Ba5a5bVbVbV.w#z.w#sbV", -"#ubVbVbVbV#GbV#D#s#sbn#b.w.w.1bVb2b2a5#z#z.K#zbA.w#s.w#sbV#s#z#s.w#b.w.w#GbV.w.w.X#Da0a0#G.1bcaz#G#GbS#GbV#ubV#0#z#0#0a5#0#0b2#0.0.r.0.0#u#u#F.o.M.M.M#F#ubV#G.1#b#P.w.w.w#0aya5.y#u.y.ybVbnbVbV", -".wbV#GbV#G#s#G#0.1#G.1.1.1#G#G.0#0#0.w.wby.wbQbn.w.w#G.w.wa0#b#P#u#G#G#0#G#G#G.w#baz#Yaz.1.0#D.0#G#G#G#GbVbl.8blbva8.8.B#z.Ba5#0ay#G#G#z#G#z#z#z#zbU#z#z#zbQbybQ#zbK#z#s#sbn.R.y#2#2aB.8bVbV#0bV", -".w.w.w#z.w.w.w.w#GbV.r.0.0#G#G#Gbda7a7#H#8#8#8#H#u#u#F#u#D#GbV#u#G#G.w.1.w#G.wa0bV#D#DbV.w#baz.w#G#G#G#G#0.BbSa5#u#u#D.1.1bn.0#7#z#0bSbSbSa5#z#z#r.e.e.4.4#2#2bT.4.4.4.S.R.Rbn.i#s.K#zbV#s#0bV.w", -"#u.8#u#u#ubV#GbVby.wbQ.w#b.wbVbl#T#T.l.ear.Ba5.8.w#G#G#G.w.1.1.1.1#G#G.w.1#G#G.w#P.w#G.1.w#P.w#0#D#DbV.w.w#0#0#0.w#b#baVaVbn.1#G.y.y#F#F#2.obv#Fay#z#GbVbV#z.e.e#z#z#zbV#s#s#s#sbQbQ#sbQ.wbV#G#0", -"#0#0#0#G#0#u#ublbDbT.4#4#zbQ.e.e#s#s#s#z.w#0#0aU#DbSbVbV#D#D#D#G.w#G#G.w#P.w.w.w#Gbmbmbmay#u#G.waz#b.w.w#Ga5bl#uaraW#i#i#ia6.4.ebVbnbQ#b.w.w#GbV#u.r.r#G#G#G#0a5.1.wbV#zbSar.J.JbT#x#2.y#F.8#u#G", -"#5.TbL#tbD#i.g.Z.SbA#zbAbKbSbSbA#u#D#G#u#u#u#DbV#GbVay#G#0#G#G.r#D#Gbn.w#b#b#HaY.1bVbV.y#u.y#F#Fbv.o.M#2#2#2aBbG.9#OaB.y#D.1.1.1.w#s.1.w#G#G#G.rbdbda7bdbnbn#sbQ.nbw.s.Z.4.8.8.8.obl#u#zbV#z.K.K", -"#i#x.Z#tbL.K.kbQbAbVbK#u.ybSbV#z#G.w.w#G#D#G#0#G.1#G#D.1.1.1.1.1bVbV#z.yaBaM.M.5.y.y.y#ubV.w#P.w.w.w#b.1.1.w.wby#b.w#b.w#b.w.1.1#u#u#ubVbAbK#z.S.T.TbO.Z#vbga3axbD#xaZ.8bAbAbAbA.e#4bA#ta6.P.6.6", -".S.4bL.e.e.e.ebA.8bSbSbSbVay#0#G.1.1a0.1#ba0#H#bbc#Hbc#Ha0bc.1.0#z.8#T.J.l.ebVbV#G#G#G.w.w.w.w#P.w#b#n#b.1.1.w#n.1.1.1#G#G#D#ublbl#2.4.4.g.Z#ZbN#9#9aa#X.g.ZbOar.Mbvbla5#z#zbA.laPbNbi.U.U#..Zbw", -"bL.e.e.e#zbSbSbl#u#DbS#G#G#0#G#G.1.1.1.1bc#Ha0.1#G.1.1a0#b.1#u#F.e.4#T.8by#b#na0a0#b.w.w.w.w#P#0bVbV.1.1#G#G#u#G.1#G#G#ubS.8.l#T.Z.g#ibW.UbNa9#p.UaP.9.S.ybVbV#Dayay#z#z.e.4bT#i.pad#pbN#.bRaI.T", -".4.e.KbS.8blblbSbSbS#GbV#G#0#G#G#G.0.1.1bcaz#H.1#G.1.w#P.w.w#z.8bK.KbQbQbV#u#D.1#0#G#G#G#G#G.1#P.1.1beazbe.1#G#u#zbK.K.4bO.Z#j#v#A#ka9.YbW.ZbL.4.R.R.ibn#D#u#F#FbS.S.4aqaPbNbi.I#.bWaP.gbObL.8bL", -".K.K#z.e#F.lbv#F#z#GbS#u#u#G.w#G#u#G#G#G.1a0bc.1#P#P#P.w#GbVarar.R#J#HaY.1.1.1#H#H#b.1.1bc.1#P.1.w#b#bazbe.w#zbA#t#t.Z.Z.Z.g#.#.b1ba#..Z.Z.lbS#u.y#u#ubSbS#N.laA#j.ga9#kad#ka9#..g.g#tbO.e.e.ebA", -".l.l.8.y.8bAbAa5bSbS#ubSbS#0.w#G#G#G#G#G.1bc.1bCbm.1.1.0#Dblbv#T#D.R.ybVbe#nazanananbeaz#b#bbc#H.wa0.1#sbV.S.S#t#t.s.Z.sbwaIaIaI#t#t.4bA.lbl#ubl.3a5a5.e.4bh#V#XbN#k#kaG#k.L.OaIbL.e.K.ebA.y.4.8", -"bSbAbAa5.ebA.8.4.8.ybS#z#G.w#0bSay#0bm#G#G.0.1.0bc#H.zbf.zbe.1#z.KbVbSbA.y#D#D.1bebebe#HbeazazazazazbebV.S.4#1bMbZbR.Z.Z.Z#t#tbYbl.o#ubS#Gay#0#uarbl.laB#t.uaT.Oad#kaGb6#ka9.g.Z#t#t.4.4#t.4bK.K", -"aBbs.y.ybA.l.lar.4aBaB.8.y#F#u.wbn#D#D#G.0.0a7.FbdbCbc.1.1.0.1bc.F#8#H.1.ybG.4.ebn#s#s#baY#saYaV#b.w#s#J.SaZbD.sbR#t.S#z#ubs#F.R#D#D.0#G#G#G#G.0#D.R.yaBbDbDaP.g#Zb1.L.fb6.h.hac.I.YaT.u#t.Z.Z#2", -"b3bR#1.4.4.4bX.R.K.KbV.ybl#F#F#F#za5a5.B#z#0#sby.1#G.1.1.1bm#G.1a0a0#H#H#b#b#s.ya#.X.y.ybVbn.w#bbebeaY#sbAbRbZa2au.S.R#s#z.y.e#zbs#ubn.1.1.1#G#D.0#D#D.RbA.4bO.4aPbD#Eb#af.I#Maf.2.x.L.L#Z.O.n#S", -"aObi#Xbw.s.sbY.SbXbK#z#z.w.w.wa0#z#za5bS.l.l.8bVbSbVbS#G#G#G.w#Pbe.w#b#bazbrb4#Hbebebe.1#u#F.5.X#F.y#s#Y.NaN.Q.Q.T.Tbu.w#sbn.1be#sbVbV.y.y.ybn#b#G#G#G#G#0bn#zbSbn#bbn#D.R.RaBbX#3.O.Yaf.I.Ibi#E", -"aVbX.G.6a3aCb3#U.y#z#s#0#z.w.w#s#H#H.1.1.0#G#Hb4bVbV#u#u#u#D.0#D.1.1.1#D#7#D#Hb4bCbc.1.w#b#b#n#nbe.1#u.yaBbX.S.kb4.cb4aYbA#T.4#r.4.K.K#s#s#s#D.y#GaybV.w.w.w.w.w#G.w.w.w#b.1bn.1#P.w.w#0#0aybS#G", -"bnaVaYbeaNarbp.A.P#2#F.y#u#s.w#sb4b4.1.1.1.1#H#H#nbeaz#b#HbnbCa7.zbe.z.1#D#D.w#Baz.z#H.w#P.w.w.wbebeanbrbebn.RbX.4bQb0aL#BaYa7.bbA.4#xaMaZ.ybK.kbA.4.4#F.8.ybA.ybv#u#ubS#sbV#D#zbl.ray#G#G#P.w#P", -".w#0bSbVbV#D#D.1aY#b.w#zbS#FaBaB#x.M.l.8a5byap#bbn.1bebebebebeaza7.0bd#u#ubSbS.BbC#D.0#D#G.w.w.1anazb4bebebebr#B.V.c#D#Oai.S#s.WaE#Y#Y#YaY.kaB#x#4.S.S.4aBbX.y.y.y.K#z.KbV#z.ybV.ybKbKbK.K.K#z.k", -".8.8#u#G.w#HaV.1#s.w#s#0#zbV.wbQ#na0by#0a5bSbvbg.M#F.y#ubSbA#z.k.w.w.w.wa0a0.w.w#H.w#HbV#D#u#G.1.1.1#b.w.1.1#D#DbVakaLaLaLbq#B.VaB.XaB.ybKbQaLaL.q.qaY#a#b.w#b#b#b#b.wbn#s#D.y#D#s#s#s#JbKau.SbA", -"b4#Hbe#baY#s.K.S.y#F.ybSbS.R#zbe#H#H.1#Gbc#b#bbn.w#bbybQ.4#xbga6#T.l#za5bV#G#Gbc.w#b#b.wbV#D.1beby.wbVbV#z#s.w#Y#bbeaY#J#s#Ybe.1#B#B#Bbr#s.RbA.KbKbnaV.w#b.w#Ha0b4anbe#Hbe.1.1#bbC#8bc#Ha0a0#Pbc", -"b4#8#8#H#HbCbC.1b4#b.w.1#P#G#G.0akbVbXaB#2#2.4bAbA.KbAbV#s#b#YaY.1bV.8aZ.GbYaB.S.RaV#abebn.1#8az#b.w.w#b#ba0by.w.1#Hazbebe.1#s#b#ebnbnbnaVaVaYbnbnb4bebe#abe#abebnbnbnbn.ibnbnbn##a7#8#8#ea7beaL", -"#Y.w.w#s.w#0#z#0#D#DbVbVbVbV#bana7#D.1.1#b.1#D#D#u#u#Fa#.o.y#D#D.r.r.w#b#Y#b#b.w.gbkbg#Tar#za5a5####.5.b.Ra7.1bn#HaV#H#Hbn#D#D.ybQbQ#z.K.e.K.e.ea7bnaVa7bnaY#aaL.m#Wbrbr#Ybr#W.m#L#L#L.mbeb4.w#b", -"#sbK.ybS#z#zbSbS.k.k.K.S.SbAbKbn.w.1#D#GbV#GbV.w#G#G#G#u#u#ubl#7.r#G#G#0#zayay.0#Y.wa5bS#zbS.8.M.4.Z#xbka6#TbObO#D.Rbn#s#bbebebebV.R.R.y.R#D#DbVbebe#BbqaLbebn.Rbnbnbebr#BbrbeaV#Da7bran.mbr.1#D", -"anazbean#Banbe#H.y#O#x#x.ybKbK.R.Jbvar.ebja5#N#TbvbS#z#0#0.1#0bV#G#u#u.o#Fbb#7bm#F#7#u#D#Dbn#bbe#s#s#sbn.w#zbVbVbkbpbpbpbhbhbhbhaAaAaWaW#N#r#rbFbs.ybKbn#b#YaLbq#Bbrbebebebr#BbqbeaLbe#Y#B#B#B#B", -"a7#DbCb4azananan#BaL#b#Yby#b#G#ub0aN.e#x#i#xaWbObAa5.e.8.4#2.4.4.w.wbQ#zbSbSbVbV.w#z#zbS.JbGbG.l#D#GbV.1.w.1#G#G#H#8#8#8aoa7#8#8#D#Dbn.1bnbC.1bC#b.w#D#D.y.5bs.y##a7#Hbranbe.1.i#sbn#D.Rbsbs#ubs", -"#b#0.y.8#2#2#2#2#F#u#G.w#0#G#Pazb4b4beb4bnbn##.5#xaB.4.4.4.e#z.K.e.SbA.8bA.ebK.K#zbV.y#ubVbVbVbVar.8ara8ara8a5ar.RbV#zbVbA.y#D#sbSa5a5bV#zbSbVbS#G#DbV#b#b.1bn#bananbeb4b4anananbean#B#B#Bazbebe", -"#0a5bSbV.w#Y#BaE.1#0.wbSay#uay#Gbd.FbCbC#H.zanaz#b#b#b.w#zbA#2#c.P#6#6.M#2.e.K.k#KaB.Xbsbn.1.1#7#Hbna7#D#D#D#D.0#0#zbVbV#u#F#FblbdbCbC.1bC#G.1.1bV#u#D#G#Hbean.manbeanan#B.manan.mbebe.1bV.1.1.1", -".zbCa7#Hazanb4#8#Y.w.y.8#z.w#G#D#G#0#P#0#0#0#uaJ#D#u#ubl#D#0.wb2.w.1#0#0.w#z.4.G#vbhbRbO#rar#N.l#4bL.S.4.4.4.4bLay#D#uay.1#Ha0.w.1.w.1.w#G#s#0.w#G.1.1an#Bazb4b4anazb4b4.zananan#f#f#8#b#H.w.1#b", -"b4#Hbd#Ha7#H.1.0a7#H#b.wbV#s.w#0#D#D#D#D#G#u#u#G#G#G#GbV#u.8.y#ubs#7#G.1.1bn#D.y#xbXbAbAbYbt.Z#RbXbK#s.k.R.S.RbAbl#F.o.o#Fbv.yblbV#u#7#G.1.z.z.z.w.1#G#u#D.0#G#nb4#H.1.1#b.zb4.z#H.1.1.1#Hbe.m#B", -"#Y.w#D.1ay.w.w#Ga7#H#H.w#G#G#G#G#D.wbV#G.1.w#G.1#D#D#ubSbA#u.KbV#s#G#u#u#ubVbn#s.zb4b4#sbO.g#V#X.MaB.yaBaB#2aZ#2.y.y.R.KbQ.KbQbu#zbAbK#s#bbe#Ybea0be#bbn.w#D.y#G.1bC.1.1a0#b.z.z.zbc#H.zbCao#HbC", -".wbS#0.wa0a0#na0azaz#b#H.1#G.0.0.w#P.w#G#0#G#uay#D#DbAbK#z.KbSbK.l.4bv.8#F.l.e.S#ubAbA.RbK.K.K#s.4bAa5#z#z#z#z#z#w#m#3ba.p.p.L.L.ZaZbD#t#R.SaKaKakap#Y#bak#s#zakbn#D#u#D.y#7bs#7#F#F#u#0#0#0by.w", -"bna7anbran#8az#8.1#ba0#bbcbeaza0a0.w#G#G.1bm#G#0.1#z#GbV#z#0#s#G.e#z#z#za5.8bGbgaAbv#T.l#F#Da7a7bQbybQ#z.e#z.ebAblblay.0ay.raJ.obR.s#tbR#t.s.s#tbDaZa6bT.Z.gbT.SbA.S.S.KbQ.q.q#YbqaLbeaV#D#u#D#u", -"auauaL#W#Wbr#L#Wbe#nbe.w.w.w.1a7.1#H.1.0#u#7#7.r.0#ubl#uay#Gay#u#z#za5#u#ubS#za5#D#u#u.8.8.8.8#r.4bYaZ.G.GaZaZaZ#t.SbLbFb.#5bO.Z#t.Z.Z#t.Z#iaC.E.Z#1.g.ga6#ibWbR.C.s#..OaPbNbi.Ua9ajaO#X#v#y#r#h", -"bL#1b.aI.g.I.UaP.GaZ#t.4.SbK#sbQbe#Bbe#b.1#D#D.w#G#DbSbl.8bl#u#F.8aB#F#F#F#ubV.w.ybSbS#u.8.8a5#z.k.K.KbK.KbQaYakbu.K.S.4.4.4.S.e.4.8.4.ebF.Kb.#h.gbR#taq.ZbW#E.gaP.YbNba#.babaaP#3.u.s#R#R.S.KbK", -"a6a6.Z.ebO.T.QaNa2a2aIaT.Ub#.6.EbIaZaZ.4.S.SbA.kakbQ.k.KbF.ebA.y.e.ebSbS#u.8#FbG#r#r#r.e#F.ybsbdbV#zbV.yaBaB#2#2#MavaS#Z.O.O.OaPa6#i#i.ZbRaI.H.n.ZaIaI.T#5aIbRb.b.bLaIbRbR.gbWaP.g#v.g.Z#x.gbT#i", -"#H.1#DaY.ybV.SaB.Y.O.O#.#X.ObBaIbR.T#1#t#1.Z.g.ZaP.U.U#EbW.g.g.g#T#T.4.l.l.8bS.e#F.8#F.l.8arararblbSa5#0bS.BbS#ubV#u#ubl#ublblbl#5bZ.gaP#.babN.pb##E#E#E.Z.g.gaIaB#2.ZbL.T.e.e.K#z.kby#b#b#Y#Baz", -"brbrb4#Hb4.1#D.0.R.y.y#F.yaBbvaB.Z.g.g.g#jaOaxbxaFaS.Y.O.s.s#ta2#Fbla5bSay#ua8bl.y.y.RbK#J.KbKbK.S#F.y.8.8bA#F.l.y.y.8.8.4.4.4.4aPbtaPaP#E.YaPbNaP.Z.sbwbw.C.CbZbB.C.Z#..O.H.OaP#RbX.SbK#JbnaV#a", -"aZ#taZ.Z.4bLbO.ebLbR.S.TbL.T#4buaK.S#R#R#4.Sbw#t#3aT.Z.ZbD#i.E#i#Z#ZafafbN#Z.na2.3ay.B.Bay.B.8a8bn.y.4.4.4.8.8bAbl.y.ybKbS.e.e.8#F.K#s#s.k.KbLbObL#t.Z.9.G.GbI.E.G.9aP.g.ZbZbZ#tbJaI#.#EbW#E.g.Z", -"aKaKaH.u.C.C.sbw.O.O.O.O.Y.Uba.O.uaPbtaT.u.s.s#Rb.#4#5bLbL#T.Z.4.4#t.4.4#t.4.y.ebKbAbV.KbAbAbA.K.KbVbAa5#z#z#z.y#z#zbS.8aB#2.M#2.o#F#ubl#F#u#G.wbQbKbKbnbQ#YaL#Y#saY.KbAbYaBaBbY#.bibiaPaI.Tb7bR", -"#h#5#1#X#jaOaaaa#M#paf.Ybaba.n#S.H#.#.aDaqaqaq.HaPbW#x.Z.4.Z.4bR#RbLb.b..k#4#R.4#RaH.u.u.u.ja1aK#F.S.4.K#zbQ#zbVbSbSbS.ybS#DbVbVayayayblbbbl#u#G#D#u#u#D.1.1#b#H#H#b#b#GbV#s#b.1#L#WaL#WbqaLbK#K", -".zanbeb4be#aaY#aak.k#4bL#t.G.G#i#1#j#j.gaq#j#.bW.ZaT#tbRbObRbLb.#u.r.r.r.r.rbmbm#za5bv.la5a5a5a5.K.4#xbg#xbg.MaM#2.8bV#s.w#sbV#ubS#z.1#z#G#G.1#G.1.1.1.1.1.1bc.1.1.1.1#G.wazaz#Bb4#8bC#Hbebe#H#b", -"#D#G#G#u#0#zbSbSbVbVbAbAbV#z#z#s#JbK.R#s#saYaVaYb.#4.SbL.4.Z#t#t.L.LaS.Lba.O.n#mbQ#z.K#zbQ#0.e#2bQ.K.K.K#z#s#z#D.y#F#F#F#F#F.oaB.8.y.8.y#ubV#0#D#u.r#G.0#G#G#Gbc.1#G#G#G#G#Hbc.1#naz#b.w.1#0#0#P", -".z.zbcbCbcbC.0.0be#b#ba0#H.1.1.w#Dbdbdbn#H#8.z.z#BaL#b.w#sbV#z#s.K.K.K#z.K.K#z.K#R.C.j#RauaubYbt.6#6a6bL#zak#bak#D#D#D.y#u#u#0#0.w#sbV#u#F#Fbl#u.w#0#G#G.1#G.1#G.r#GbV#GbV.1bc#H.w.w.wa0#0bS#G#0", -".w.w.1#G.1#P#G#P.w.1#H.1.1#D#D.1by#0#0#G#P.w.w#b#Hbc#Gay#G.r.1.wbv#F.l#F.laJbvblbA.8.l.8a5#z#zbS.K#4bO.4#TaBaB#Fb4#baz#b#P#zbl.o#F#D#0#G#G#GaU#0.B#u#u#u#G#G#0.1.w.w.w.w#0#G.1.1b4anbraz#8.1#8az", -"b4.1bnbC.1b4.zaz#f#fbr#fb4#8.Van#f#8#8ananbe#G#u.1#G#DbC.1.1.w.1.w.1#G#G#GbS#ubSaiaB.SbXaB#2.4bKbvar.ebF.T#1#j.gah#O##bnbn#D#baY.1#D#DbS#u#D#7#7.o#u#0.wbya0a0#0.wbn#0bSbAbS#z#0#8#8an.z.1bd.1a0", -"#b.1.1bn.1bebran#W.man.manbran.m.m#Bbebe.1#D#D#bbCbCbC#GbC#G.1#G#u.8#ubSbVbS#z#z.w#s#D#ubV.1.w.w#Da7bd#Dbs.5.5#O.Q.Q.K#N.Jbgawax#O.y#z#s#z#z#b#B.zazaz.1#GbC.0bd#7#D#ubSbV#G.wbebr.Vbe#8#D#7#7#G", -"#b#b#b#b.w#b#bbeb4#H.cbebe#bbnbK.e#z#z#sbVbs#D#G#z#z#za5a5#za5a5#sbn#z#z#z.y.8bAbl#F.o.o#u#G#G.r.1bnbn#D#DbV#z.w#T#x.MbGbla5a5.eaB.S.SbT.6.a#2bK.1bn.1bn.1bean#lazazbe.1.R#F.5a#.S.e.ebUbU.W.Wap", -".ybAbAbKbK#DbV.waV#HbebebeaYbnbn#z#FaB#F.y#D#Dbnbe#H.1bn.1#Dbnbn#8#eao#e#8#8#8#8#0#0#0.w#G#G.ray#2.J#2#2.la5#z.w#b.1#u#Gbnbn#D#DbAbA.4.4.8bA#z#z.e.8#T.J#x.l.K#z#D#0.w.w#b.qbraLanbr.Vbr#8bd.b.b", -"#B#B#Bazbrbebebe#8brbrbrbe.zbrbr.mbrb4#H#b#sbVbV#NaW#T#T.J.JbkbkaAbp#Vbpbhbpbpbp.e#zbQ.w.w#s.1.w#H#b.1#G#D#7#7#FbS.8.l.l.8a5#sbybV#G#0.w#0#z#Fa#.4#NbOar#r#r#z#za8.ybS.8.4aB.SbK.cb4anan.mbeanan", -"brbrbebrazbr#f.Vbr#f.manb4bebean.V.V.m.maL.1bA.y.Rbnbnbnbnbn#Hb4#Y.w#saYbQbnbK.RbT.GaM#2.4bVbVbK.8#F#u#z.wbybyby#G#G#zbV#u#F#F.obb#uay#0#0.w.w.w#b#b#sbn#D.X.5.b#z#0#za5bAbA.K#s#TaAbObO#T#T#raN", -"bnbnbnbeanbq#l#Lan.maLbrbebebrbeaVb4b4aVbnbn.wbe#T.4.ybAbK.KbQbQ#D.R#D.1.1#H.1#H#Y#s#zbVbV#z#u.ya5a5ar.l#T.J#vawa7#Hb4be#b.1.0.0#G#ublbv#c#c#2#u#Dbd#D.1.w#Hbean#b.w.wbVbSbVbVbVbVbV#D.1bV.1#ban", -"#Bbebe#abebeaVbnbn#sbn#D#s#a#b.w.q#b.q#Y#Ybe#HbnaY#baY#baVbnaVaV#bbn.w#bbebeaV#H#D.1bebe.w#G.wa0.z.z#HaV#HaYbnaV.ebLa6a6a6bOa5b2.w#b.w#zbU#s#s#zbA.lbv#T#T.l.y#0#8.1#D.1.wazaza0.w#P.wbebe#H#baz", -"az.1bcbc.1.1bCa0#H#8b4b4#H#Hbebr#b#bbn.ybXbK#s.c.ia7bebe#zbV.8a5bnaY.caLaLbe#H#H.kbKbKbK#s#b#b#H#bbV#DbV.wbe.w.1bCbCbn#D#2bg#i#i.J.lbA#s#b#bbQbQ#JbVbVbS#G#u.R.R.SaB#2#2aB#Fbd#H.z.1.wa0#b#Ybe#Y", -"au.S.S#J.k.R.kaY#DbVbV#sbn#s#s#b#Y#Y#Y#Yak.q#Y.N#Y#Y#a.R.y.y.ybV#ebrbq#WaL#B#bbV.i.RbVbn.1#bb4b4#s#D.y#ubV.1#b#H.1.1#bbe#Y#b#s#z#z#z#D#7bs#u.y.lai.5#F#u#0.wbebe.qakbQbQ#baY#b#b.1.1.0#G#D#ubb#F", -".k#s.k.k.K.KbK.KbA.KbK.K#z#s#z.K.5aBbX.4bY#RaHbY.Z.4.e#s#sbnb4#H.q#Y#sai.dbs#8anbeanan#Ybe#H#H#8#b#H.wbV#G#G.0.1.wbV#u#F#7#D.1b4#bbebebeazb4.1bVbebe.w#z#u#FaBai.4#2.4.ebQbQ.w#Y.w#G#GbVay#u#z.w", -"bm#G#Gaybl#ublblbAbA.8bSbAa5bS#F#D.1#zbnbVbK.K.K.K.e.4aB.y#Dbnbea7#8brbq#Y.K.ebU#Hbe#Yanazbeazanazaz#n#n.w.1.1.1.w.w.1#Pa0#b.1.0bV#G.1.1az#b.w#s#sbVbV#ubVbV.1#s#z.yaB#2bG.M#xbgbG.8#z#Yb0#b#s#z", -"bS#GaybS#G.w#b#b#zbV#0bV.w.w#G#G#G#G.1#G#zbV#D#u.y#D#z#s#s.K.8aiar.4.4bV#sbn.cbr#s#u#2.M#x.y#D#b.1#b#b#b#na0a0a0a0.1.0.X#7#u.1a0#z#D#u#F#u#ubVbV#n#n#b#Pby#b#Y#n#bbn#D#DbV.KbV#z.K#1#i.6.6bDbL.Q", -"#Ebi#p.U.Y#Z#C#3bAbAbKbV#s#G#s#0#D#G.w.w#0bc#Gay.1#D#7#F.ya5#s.WaV.cbebn#sbQ#h.T.K.kbQb0aE#YbV.X.y.y.y.ybV.w#b.1#8.1azazaza0a0.wa0.w#0#GbV#z#z#0#F#F#F#F#F#u#ubVbe#b.1aY.wbV.ybAbRbR.Zaq.Z#E.U.U", -".n#Z.p.Las.faQ.fafaf.U.UaPbD.Z#t.4bK#za5#z#G#G#G#G#G.w#G#GbV#u.ybUbQ#z#zbV#JbKbYb.#R.Z#tbA.wbe#n.R#D.y.y.8#Dbn#D#Y.w.wbn.w.waza0.1.1#H#b#P.w#GbV.w#0bV#u#u#u#u#ubv.o#F.y#DbK#z.K#z#4.4.S.TbL#t#t", -"bLaZbD#R#taP.U#Z.hb6as.L#k.pba#ZbD.s.ZbTbG.8bS#Gay.B#G#0#G#D.0#D#s.y.ybVbV.4.ZbL.s.s#R#4#s.w#H.1aY.qbebQ#s#s#sbnar.l.l#u.1#HbC.FbC.1bC.1.1.1.1.1aybVbV.w#s.w#s#0by#za5#u.y.4.l#r.y.8#F.8.K.e.4#T", -"#4#4.S.4#taZ#T#2aZaTbNaQ#daQ.fasaS#QaT.s.4.8ararbl#ubVbV#ubl#F.XbT.G#t.S#tbkbT.T.uaH#OaB#D.1.zaz.z#f.z.zb4.za0.z#Jbn#JbK.ybAbK#s#z#baz.z.z.zaobc.0.1#G.0#G#u#G#G#ubS#0bVa5bS#uaBaB.y.y#u#F#FbA.K", -"#zbK.e.S.8.S.S.T.O#Z.LaQaQaQb5af#..Z#t.4#F.yblblbl#ubVbVbK.S#t.saI#tbwbZaI#t#t.S.n#1.TbF#zbQby.wbebranbraz#b.1.wan#nbe.w#z.y#FaB.8.ybn#Haobcbcbc.1.1.1.1#G#G#G#0#G#0#GbV#ubVbVbV.8bAblbAbSbS.K.K", -"#F.l.8.4bLbRbRbR#Z.L#kafafbN#..Zbg.Jbv.8#u#D.0#7#ubS.y#t.s.Obaas#3baaP.Z.sbD.Z.Z.y#JaY#a#Ybe#b.wb4#b#bbebebebe#bbm.0#u#G.w.w#0bVbGbAbVbV.1.1.w#P.1#Ha0bc.1#Day#D#0.1bS#u#ubV#zbVar.8.l.8a5a5.e#N", -"#T.4.4bObw#.bNad#k.pba#.bR.4bAa5ara5#zbVbV#u.y.4.K#t.gbi#pb5.p#k.ZaP.Z#t.S.y#Dbna7bCb4.zazb4ao.1#b.1.1bVaybV#G.wa0.w#G#z#0#z.K.y.8bV.w.1.1.1bc.1bcbc#Ha0.1.0#G#G#G#G#G#G#GbVbV#ubla8a8blbSa5.8.4", -".e.T#1bw#..paQa.#E#v.Z.8.ebSbSay#FblbA.y.S.T.TaIaDbN#paj.U#v.g#ta6#TbAbSbS#G.1bc#GaU#P.w#0#GbSbS#G#Gay.r#D#G.w#P#D.y.8.4.4.e.e.e#u.1#P.1bc.1.1.1.0#Ha0#Hbc.1.1.way#0.w#0bV#GbV.ybl#F#u#zbVbKbA.y", -".g#.bW.UaOa9#..O.4.8bAbSbS#u.lbv.K.K.S#x#Eb#.v...Yba#..Z#T.4#Fbvbl#ubS#G.0#GbCbc#Pbc#P#P#G.w.w#P#Gbc.w.w.w.w#P.wb0.qbQ.K#r.S.S.S#G.1b4#P#H.1bc.1.1bca0.1#P.w.w.w#G#z#GbVbVbSbSbS#DbV#s.K#4.S.4.4", -"#EaC#i.gbT.4.4bAbAbAbSbAbA.4.ZaPa3.6#6#E#x.4bLbL.4bAbKbAbSbS#ubS#0#P#P.w.w.1.w.1#H.1a7bCbn#H#H#Hbybyby#z#z.8.4.4aM#xaZ#2.8.y#GbV#Gbc.w.1#G.w.1.wbcbC#G#G.1#G#GaybSbSbS.8bla5bA.8#z#z.KbZbRaT.ZaP", -".4#r.K#z#z#G#ubb.8.y.y.y#R.O#Z.tbMbM#5.ebA.R#D#Day.rayaybV#G.wby.1#G.w#G.w.wbV#u.TbObO.Z.Za6bD#ia6bTbDbD#iaP.s#t.K#s.wbya0#P.1bm#G#0#0.BbSayb2#0.1#G#u#GbVay.8.8blbSa5bSa5#za5bAar.Z.gbaa9baba.O", -"b2bS.8#N#T.Ja6bk.M.M.lbS#z#G#z.w#ubV#GbV.1#G#D.ra7bnaV#H#Hbnbn#D.l.4#2.E.6.6bT.T.X.X#u#D.1.1b4be.1#G#G#G.0#Gbcbc.1.1.w.1.w.1#D#G#D.0.0#D#GbVaybS#G.1.1#Dbn#DbnbV.SbA.KbVbK.4aZbD#F#ubVbSaybV.wbn", -"#D.0#Dbn.1#sbQ#s#za5#z.w#zbS.y#ubV.kbVbVbVbVbVbnaW.l.l.4#Narar.8bCbn#HaVbnaVbebea0.w.w.1.1a7#u#7.1#s#H.1.w#Ha0#b#G.w.w.w.1.w#G#G.0#G.1#0.w#0#0.wbS.ebS.e.l.4.JbG.y#u#D.w.w.w#sbQbV#s#0ay#ubV#D#D", -".0bn#Gbn#D.R.R.RbV#G#z#0bV#u#u.y.SaBbYaB#t.4bA.ea5#zb2bSbSbVbV.w.0.0a7#Hb4#Hbn#7a5#z#z.w.wa0a0#bbeaz#b#b#bbn#D.y.1#G#G#G#G#u#G#u.1.1#b.1aybl#Fa8bG#T.8.eby.Wb0bP#G#Gbm#Gbm#G#G#G#sbn.w#z#G#G#zbn", -"#z.w.w#zar.4#T.Jbv#F.ybSbV#ubSbVaY#s#s.Ka5.K#z.Kbl#u#D#G#D.rbd.ra5#0bS.BbVa5#ua8.ybla8#u#0#G#G#G.0#D#G.wbe#B#Ybe#P.w.w.w.1#0#G#G#G.1#P.w.w#0#0.w#baY#s.wbn.0#D#7ay.rbm.r#G#G#G#GbV#0#z#0#G#z.1.w", -".8ara5.Ka5.ear.e.w.w.wa0#bby.w#b#0#0bV#u#F#FbGbv.8.8ay#z#0#0#0#0#z#0a5aya5ayb2#0bV#GbV#D#u#u#D#Ga0a0bc.1bc#G#D#u#Day#D#GbV#G.w#s.w.w.w.w.w#z.w.waBbs.y#D#DbC.1bCbV#G#0.1#0#G#0#zbKbSbSbS#u#ubVbV", -"#Hb4bebeazbeaz#Y#ubV#u#z#u.y.8#F.w.w.w.w#0.w#0#z#G#ubl#F#u#u#u#Fbd#u#D.0#7#7#7#D#u#D#GbV#G.w#bbebc.1#G#G.1.w#P.w#b.wby#s.w.w#s.w#z#z.KbA.4#F#T#2ar.e.ebA.ebAbAbSbQ.w#s.w#z#zbK.4.y.8bSbS#0bSbVbn", -"bn.1a7bnbn#D###u.1#0bn.w#G#z#D#0#0bV.w.w.w#bbe#bb4b4#HbCa7#Dbd.ybs.R#D#u#u#F#7bs#u#u#u.ybA.S.4bLap#b.WbQ#z#s#z#z.8.4.8#2#2bG.MbT.4.SbA.S.4.S.K.Kararar.ea5.ebS.e.8.8.ybS#z#z#s.KbAbla5#0#0.w#s.w", -"#s#z#s#z#z#z#za5#D#D#GbV.wbV#z#0.Ka5bKbAau.R.S.R.lbAa5.e#r#NaAaAa6.ZaW#N#N.e.e.e.BbSa5.earbOa6#Ebi#EbDbDa6#t.4.4.ebA.SbA.e.K.K#zbL.T.KbL#t#TbL.Kbn.1.1.1.w#Hbeb4bV#z#z#G.w#z#z.K#za5#zby#0bVbV#z", -"#u#D#DbV#u#ua8#ubXau.y.y.ybs#DbsbK.SbL#RaIaI.C#3bw#t#R#R.S.S.S.y#t.gaPaP.gaT.Z.ObabaaP.Z.Z.Z.4.l#F#2#2#O.S.ebA.8.S#2aB.y#zbKbS.y#u#D.1.w.1bnbVbn#zbK.y.SbK#4.S#tbSbV#u.8.8#u.8#ubV.y.y.y#ubA#ubV", -".##q#qat.tas.2.2#A#A#AbH.H#C.H#CaMbI#x.GaZ.9bD.G.9bD.GbT#2#2aBaBbK.ybAbKbK.S.S.S#t.Z.Z.4bAbK#zbV#sbV.K.K.K#s.KbV.K.y.SbA.KbK.y.S.4.ybAbK.K.K.K.K.K.K.e.K#4.K#4bLa2#5.D#5a2aIaIa2aIbBbZbwbw.s.OaP", -"ba.O.Obaba#.#.#..A.A#v.Abkbkbk.A.y.8.SbA.e.S.S.4.K.e.e.e.e#z#z#0bS#ubV#zbV.y.ybS#4.SbY.S.y.yaBaB.4#t#t#t#t.S.S.S.e.4.4.S.K.KbL.S#hbF.TbR.gaPbWaP#Z#ZbaaS.p#kb5b5bNa9#..O.O.Oaq.ObaaP.O.O#Zba.Y.Y", -"#D#u#u#uaybSbS#u#s#s#z.w#s#s.1bnbQbQbQbQbQ.Q.K.T#t.4.Z#2#T.4.4.4bAbA.SbA.S.S.K.KbQ.K.K.K#5bLbL.SbO#R.T#5b.#5.K.kb.#5bLbZbZbR.Z.gaP#.aPbNbNbN.O.Hbwbwbwbw#3.O.O.O#2.4.8.8.8.8.ybAbA.e#z#s#z#s#z#s", -"#5.TbLbL.TbLbLbL#m#gae.CaX.Caeae.Z.4#tbLbLbZbR#tbObR#tbR.4.4.4#t.saP.U#E.YaP.U#..UbWbibWbNbNa9#..gbW.Z.sbwaP.G.9aP#E.U#E#EaPaP.U.Y#3bBaIbw.Cb.#w.ybSa5bVbSbV#z.w#z#z#z.K.K.e.ea5bAa5.ea5.ea5a5.e", -".U.Y.YaTaT.Z.O.gbRbRbwbw#tbB.s.ZbTbT.Z#t.4.4.4a6#t.Z#t#t#t#ta6bDaIbZbB.n#m.n#3#3#X#.aq.HbH#..H#m.TbRaIa2.DaI.T#4bwbRbwbwbZb.bob.#4b.buaK#R.s.9#t#3.O.O.Obw.sbw.sbwbwbwbw#tbwbRbB.Z.gaP.gaP.gaP.g", -"aB#FbSbVbV#D#ubVaya8bl.8aybS#u#u#zbVbV#zbV#zbK#u#u#u.y.8.ybA.ybA.4bY.4.4#t#tbDaZ#tbR.4#t.4#t#tbL.K#tbwaI#5aIbLbFaIaIbwbD.U#E.Ubi#EbDbD.ZbT#xbT#xabaRaR#oabat.O#Z.s#t.SbLaI#4aKb.b.b..Kbu.7.Qbub.", -".w#b#b#Y.w#0.1#G#z#G#z#G#b#b#b#s.1#G#G#G.1bc#G#G#G#Day#G#G#G#G#G.w#G#GbV.1#z.w#b.kbnbKbn#s#DbVbV.K#t#iaP.ZbW.g.Z.s.s.gaPaP.Zbw.Za6.Z.Z.8#r#z#ra5#D.r.r.r#Gbcbmbm#G.1.w.wbc.w#G#G#G#G#G#Ga0#P.1.r" -] - -button_xpm = [ -" 96 96 254 2", -".. c #9c3218", -".# c #a4733e", -".a c #bc450a", -".b c #d4700c", -".c c #dc8c29", -".d c #bc5e00", -".e c #d46b37", -".f c #945431", -".g c #bc5a2c", -".h c #8c4e4b", -".i c #d47e16", -".j c #bc7422", -".k c #d47d3a", -".l c #d45e28", -".m c #ec9b3e", -".n c #bc6b43", -".o c #d45a13", -".p c #a45236", -".q c #dc8848", -".r c #e46b1b", -".s c #bc652f", -".t c #a46243", -".u c #bc6920", -".v c #a4391e", -".w c #e47b35", -".x c #9c6b30", -".y c #d46d24", -".z c #ec8a29", -".A c #bc452a", -".B c #e46833", -".C c #bc702e", -".D c #c47845", -".E c #b15314", -".F c #e47e10", -".G c #bc5a18", -".H c #bc6145", -".I c #a44d16", -".J c #cc5728", -".K c #d47439", -".L c #a45b39", -".M c #cc5815", -".N c #dc8f4c", -".O c #b46239", -".P c #bc5307", -".Q c #d4794f", -".R c #d47624", -".S c #cc6c2c", -".T c #cc6941", -".U c #ac5222", -".V c #e49328", -".W c #e4754d", -".X c #d4650b", -".Y c #ac592c", -".Z c #c05e2d", -".0 c #e4751a", -".1 c #e47d29", -".2 c #9c6143", -".3 c #e45f2b", -".4 c #cc632a", -".5 c #cc660d", -".6 c #b44b13", -".7 c #d48442", -".8 c #d66228", -".9 c #bc6221", -"#. c #b45736", -"## c #d47714", -"#a c #dc8936", -"#b c #e48237", -"#c c #cc530c", -"#d c #8c522b", -"#e c #dc8819", -"#f c #ec9129", -"#g c #bc7936", -"#h c #d46f50", -"#i c #bc521d", -"#j c #bc553b", -"#k c #9c523b", -"#l c #f49a45", -"#m c #bc7548", -"#n c #ec8643", -"#o c #a86d3a", -"#p c #a44d21", -"#q c #a4754b", -"#r c #d46547", -"#s c #dc7937", -"#t c #c4642d", -"#u c #dc6c21", -"#v c #bc4d2e", -"#w c #cc7e53", -"#x c #c45917", -"#y c #cc5c42", -"#z c #dc7036", -"#A c #ac5448", -"#B c #ec8f44", -"#C c #b45c4d", -"#D c #dc7622", -"#E c #b45222", -"#F c #d4651b", -"#G c #e47328", -"#H c #e58429", -"#I c #9c5f23", -"#J c #d47f2b", -"#K c #cc7116", -"#L c #eca24e", -"#M c #9c471c", -"#N c #d45b36", -"#O c #c46716", -"#P c #ec7836", -"#Q c #ac642d", -"#R c #c46f2e", -"#S c #c47551", -"#T c #cc5b2b", -"#U c #cc685f", -"#V c #bc4b3a", -"#W c #e49a4b", -"#X c #b44c35", -"#Y c #e48745", -"#Z c #ac613c", -"#0 c #e47234", -"#1 c #c46242", -"#2 c #cc5e1a", -"#3 c #b4683d", -"#4 c #cc7430", -"#5 c #cc7042", -"#6 c #bf4b0d", -"#7 c #dc6e13", -"#8 c #e48c21", -"#9 c #9c3445", -"a. c #8c432b", -"a# c #cc5e04", -"aa c #a43f33", -"ab c #b46d44", -"ac c #9c5e62", -"ad c #9c4833", -"ae c #b4742c", -"af c #a4522b", -"ag c #dc943c", -"ah c #b46000", -"ai c #c46309", -"aj c #a4441e", -"ak c #dc7f4c", -"al c #ac6e27", -"am c #ac4b4e", -"an c #ec9238", -"ao c #e48518", -"ap c #e47c4f", -"aq c #bc5c3e", -"ar c #d56238", -"as c #9c5840", -"at c #ab6946", -"au c #cc761f", -"av c #9c5024", -"aw c #bc4922", -"ax c #bc421d", -"ay c #e46927", -"az c #ec8836", -"aA c #cc513b", -"aB c #cc661d", -"aC c #b44a21", -"aD c #b4544c", -"aE c #ec8a55", -"aF c #9c5a20", -"aG c #94533f", -"aH c #c4701d", -"aI c #c46b42", -"aJ c #dc5a18", -"aK c #cc7b2f", -"aL c #e49046", -"aM c #c4520b", -"aN c #dc774c", -"aO c #ac4631", -"aP c #b45b28", -"aQ c #944e30", -"aR c #ac6e4d", -"aS c #a45f2a", -"aT c #b4612a", -"aU c #ec7032", -"aV c #dc872b", -"aW c #cc5939", -"aX c #b47844", -"aY c #dc843b", -"aZ c #c4601d", -"a0 c #ec7f36", -"a1 c #c47531", -"a2 c #c47344", -"a3 c #ac431d", -"a4 c #ac7439", -"a5 c #dc6735", -"a6 c #c4582a", -"a7 c #dc7c1b", -"a8 c #dc5d26", -"a9 c #ac5036", -"b. c #cc7742", -"b# c #ac4b13", -"ba c #ac5a37", -"bb c #dc5f0c", -"bc c #ec7a29", -"bd c #dc7813", -"be c #e48b37", -"bf c #f48e28", -"bg c #c44e1f", -"bh c #c44e3f", -"bi c #ac4b1e", -"bj c #dc6544", -"bk c #c44c2b", -"bl c #dc611a", -"bm c #ec7125", -"bn c #dc7d29", -"bo c #cc7752", -"bp c #c4473c", -"bq c #ec994b", -"br c #e49336", -"bs c #d46f16", -"bt c #bc600a", -"bu c #d47a46", -"bv c #d45b1e", -"bw c #bc653a", -"bx c #ac3c1d", -"by c #e47943", -"bz c #a46b2e", -"bA c #d46b2e", -"bB c #bc6c3a", -"bC c #e47f1b", -"bD c #bc5b22", -"bE c #bc6052", -"bF c #d47346", -"bG c #cc561f", -"bH c #b46044", -"bI c #bc5312", -"bJ c #d4775e", -"bK c #d4732e", -"bL c #cc6b37", -"bM c #cc644f", -"bN c #ac512d", -"bO c #cc6137", -"bP c #ec8552", -"bQ c #dc7944", -"bR c #c46339", -"bS c #dc6a2c", -"bT c #c45a21", -"bU c #dc6f44", -"bV c #dc732c", -"bW c #b4502c", -"bX c #cc6d1f", -"bY c #c46521", -"bZ c #c46939", -"b0 c #e48653", -"b1 c #ac6445", -"b2 c #e46e43", -"b3 c #c45851", -"b4 c #e48b2b", -"b5 c #9c5430", -"b6 c #944d49", -"b7 c #c46a51", -".waB.U#5#Dba.##u#sbn#H.8#z.0#Db2.4#E.g.e#T#F#z#4bL.n#EbSbm.kauaz#Bbnbr#B.y#b#bb4.w.z#D.z#haKaZbr#Ha6bLaubn.w#Yb4.z#0#ba7an#s#Yb4b4.8.wbnaVaOb3aBbS.l.K.4bL.S#i#5#0#u.w.w#u.w.1#D#zaP#AbK.y#.#a#u", -"#b#F.Y.T#u.O#q#D#z.1b4ar.wbn.0bS#raC#..T.4.lbK#4aZ#Zbi#G#G#s.S.1bebnbr#BbA#b.1.1.w.z#Gan#5aK#tbr.1a6#1aua7bS.w#HbCa5#0#DazbK.w#8#H.8#0aVbXbibRbsbA.l.K.e.e.4#x.T#0.8.wbVbVbn#sbVbSaT#AbVbS.gag#G", -"#bbS.YbL#u.O#q#D#sa7bea5.w#G#D.8.K#ibW#1.4.8.e.SbD.p#pay#G.k.Sbcbebnbe#BbA#b.1bn.1bc#Gbe#1aHaZb4#D.Zb.aLan#0#Dbda7bS.ybCbe.y.w#8be#ubSaY.G#X#1.ybA.8#z.K.ebL.ZbL#0#u.w#GbV.w.1bnbA.u#C#z.y#.aL#G", -"#YbVaTbL#ubaatbV#zbnbe.K#zbnbn#N#z.g.UbwbO.4.S.4#R.L.UbSay.k#Jbc#abebrazbK#bbnbC#GbC#ub4#X.u.Z#HaY.eaI#Wbr.w.1#H#HbV.8b4anbS#s#H#b#GbVbe.6bw.4.ya5.y.ebS.e.e#t#t#G#u#zbVbV.w#s.w.e.u#CbKbS#.br#P", -".wbVaT.Tayba.t#u#zbnaza5ar#D.1#T#zbTaO#.bwbL.8#t#tas.Y#Gbl.K.k.1beanazbrbK.w.1.1.1bc#0be#j.C.4b4.ybO.g#Wana0aya7az.w#2az#B#z.w#HaY.wbVaNa3.s.4bA.e.8#F.8#z.ebLbD#0#u.w#GbV#b.1#s#z.s#AbAbV#jag#G", -"#0#D.ZbLbS#.as#u#z#Dbe.e.4.R#s.J#G.4a9.p#.bR.SaZaP.f#Z.w#u.K.R.1bebqbrbe#D#bbeb4#PbC#z#aaO.CbL.1bV.T.Ibr#8a0.w#Han#Y#2anan#z#0bC#s#H#DaraC.s.4.lbAbA.lblbS.e.K#i#ubV.w#s#GbQbV.wa5.CaD.ybV#.#a#G", -".1#u.ObLbS#..2a8#z##azar#T.RbQa6#u.4#.aQbNbR.S#T.UaQ#C#bblbK.kbCaV#l#fbebV#bbr.z#G.0bSaYaa.sbO#D.S.Q.U#Laz#n.w.1b4#B#2anbebS#zbC.KaV#Dbpb3bYbX.l.8bAbvblbS.e.k.g#u#G.w#GbVbVbS#s.e.C#CbKbV#X#a#G", -"#GbV.gbL#u#..2#ua5#u#Y.e.J.R#sbkbbbA.Oa.adbR.T#2#Z.f#3#bbl.KaYa0bn#L.Vbe.wbeanaz#P.0bS#aaabw.e.0aBaNaP#W#8a0#G.0#8aE#2an#HbS#0.1.S.1.1.A#U.S.Rar.4a5#FbSblbAbQ.ZblbV.w#0#DbV.ybV.8.CbE#zbVbW#a.1", -"#zaybR#m#s.A#AbX#D.1#u.wbvbV#z.M.8bA.4#E#k#Z.OaZ.hafbA#zbAbA#D#Hbnanbr#8aVb4#W#f.wbebVak#M.ObL.R.Ya2.Gbe.1aza7a7#Y.1#F#B.y.k#Db4.y#saY.P.ybX.K.4.8bS#zbS#u.8bA.SbDby#G.1#s.4.KbAbV.SatbVbl#Z#D#G", -"#Ga8bR#g#s.A#Aau#D#0bV.w#F#Ga5.M.ybA.8#v.p.L#ZaTb6afbAbVbA.KbV#8#s.m#fbr#H#H.m#f.1#bbV.k#p.ObR.y.Oa2aZ#n#baz#H#H.w#0#uaL#O.k#D#b#F.w#b#2#zbK.KaB.ybS#GbS#DbSbVbAbT.wbV#G#s.4#zbS.KbAat#z#u#obV#G", -"#zblbwae#z#v#A.y#Gbn#u.w.y#z#z.l.ybSbA.Zba#k.LbNas.UbK#0.8bKbVb4bnaL.mbrbe.canbr#H#bbA#4af.O.S.y.OaI#tbea0#b#H#b.y.w#G#b#x.KbV.w.y#s.w#F#s#zbVaBbS#ubS#GbSbSbK#z.4bQ.r.1bn.y#sbSbV.SaR#0#u.Obn.1", -"#G.8bw.C.w.AbH.ybV.w#za0bS#0.wbS.ybAbS.8#.afaQaQ.L.UbVbVbS.K#sb4#Dbranbrbebe.m#f.1a0bAbL.Y.O.T#F#.aT.4.w#b#H.w.w.8bS.w#Y#x.SbV.1bS#0#z.y#0#z.y.8#zbS#ubV#GbS#ubA#4.w.0.1#bbKbVbV.y.4b1bS#u.O#G.1", -"#bay#taX#sbk.H.y.w#G#u#bbVbV#z#z#RbAbS.ebRafaQ#d#kaP#s.wbA#zbn#H#sbeb4bebebeanb4.1#HbV#tba.YbL.y#X.U.S.wbc.1#GbV#zay#0by.y.SbV#PbS#zbS#u#z.wbl.y#GbS#u#G#GbV.ybK#z#b.0.1.wbnbV#DbA.Sb1#0bS#3#0.1", -"#bbSbB.C#sbk#CbsbV#z.yby#u#ubS#G.O.4#ubS.4bNaQaQ.pbD#G.wa5#s#s#H#abebe.zaY#bbr#8#D.1#z.Gba.U.TaB.Ob#bK.wbe#G#G#s.w#u#G#bbKbAbV#G.RbV#F#s.w.w#F#F.w#0#G#0#0aybSbSbQ.w#G#G.wbVbA#GbKbAab#0ay.n.1.w", -"#b#u.sae.1bk.H#D#z#D.8.wbS#u.y#z#Z.Z.lbSbA#.b5.fba.Z#s#GbS#z#sbe#bbrbebrbnbnan.V#D.1#z.G.nba#4bvbB.6#s.1az.0#G.w#Gay#P#GbKbK#b#G#z.waB.w.w.w#F#u#0.w.w#G#G#0bVbS.ebV#G#G.1#z.8bS#z.8b1#0bS.n#0#G", -"#s#u.Zaebn.A#Cbs#0#0#F#bbV.y#u.w.taPbvaya5.Zafas#Z#t#0#G#F.K#bbr.wbeanbrbnbK.man.1.w#s#i#S.ObuaBaI.EbQa7a0.0#G#0#D#Gaz#u.Rbnan.0bebQaB#s#sa0#F.wbS#G#G#G#G#G#zbA.ebl#G.0bV#z#F#0bK.8.tayay.H#D.r", -".1#zbT.ZbQ.yaMbK.K#0.w#0aY.SbV#ubMa3.K#Farbg#.aSbD.4#D#G#D.5#Y#b.qaV.V.m#z.e.m#fby#D#J#1.H.uaK.ZbRbIbe.1a0.w#D#D#Gbdb4b0.J.wa7ak#H#n#xb4#H#z#zbnay#G#u#G.1.1#G#u#s#Tbd#0b2#GbA.1.8#r#Ia5#sala5#D", -"#GbVbT.4bQ.8bI.Sa5bV.w#0#saB.kbVbM.6.Kbla5.J.Z#Q.sbK#G#G.1aB#Y#b#bb4.Vbr#F#z#B#8#0bdbK#j#.aP.S.g.TaZ#B#H.w#P.w#D#0.Fb4aNbv.1#DbV#Ha0.Mb4#H#za5#D#0#G#G.0.1.1.w#D#s#Ta7#0b2#D.8#H.y#r.fbA#zal#z.1", -"#GbV.Z#tbQ.S#xbLbK.w.wbV#sbYbV#G#5#6.SbA#zbv#taT.Z#z.w.1#zbX#Ybn.qb4.mb4aB#zbe#8#0bd.R#j#.bt#R.g#1aZbe.1#G.wbV#D#PbCbe.ear#D.1bX.1by.l.1.1a5a5#Dbm#G#G.1.1a0.w#G#s.la7.wa5#Dar#HbVbF#I.4a5ala5.1", -"#G#z#tbLbQbA.G#RbA.w.w#u.KaBbVbV.e#E#x.ybV.8.4.sbTa5.w#Gbn.4#Y.y#YaV.m#H#F#sbean#Gbn#s.gaDaT#R.g#t.4#b.0#G#G#G#D#0bCb4#x.e#G.1aB#G#0.8.1.1bS.B#G#G#G#G.1.1.1#G#u#z.e#H.w#z#D.8#H#z#haS.4#zal.4.1", -".1bV.4bLbQ.eaZaIau.w#0#Fa5#tbV.1bA#x#E.SbV#u#F.4bG#z#0#zbVbYakbX#YbnaL#b.ybV.1an#P#H#saqaq.u#4#j#1.S.1#u.1#0.1#G#0#Hbn#ibjbV#b#2bca5a5.1.0.l#z.0#G.1.1bcbc#b#D#u.war#8by#z#u.e#b.y.Tbz.4#za4.J#D", -"bc#z.4bZ.Q.S.9aI.R#b.w#F.K.4bV#G.R.4b#.T#u#D.y.8.8#GbcbVbK#R.qbKbebn.1#s#Dbs#Dbe.w#8aY#jaq.s.SaO.Z.S#D#7bm#G.w#u#0.zbn#xa5#G.1#2#bbSby.1#G.l#0.0.0bca0az#Ha0#G#u#0.B#8.w.K#D#r.1#FbO.x#T#zaX.J#D", -"#GbK.4bR.K.SbD.C.Sbe#0bG#zbAbV#D#DbL.v.T.y.0blarbS#G#G#D.KaH#Y#s#H.wbAbV#D#D#D#G.w.zaV#.aq.sbwax.gbA#D#7#G#u#G#u#uan##aW#NbV#D.4#bbvap#H#H.8#sa7.1.1bc#Ha0#H#0#D#0a5#8bQ#z.y.ebn.y.T.##x.KaXbkbV", -"#G#ua6#t.T.4.G#3.R#b#zbv.K.ebn.r#DbL..aI.4#7blar#G#Gay#u.KbY.N.cbnbe.ybVbn#G#b#u#b.zaYbW.H#R#tbx.Z.k.w.r#0ay.1#GaJaz.5bO#T.w#DbAbnbg#b#Hb4bVby.F.0bC.1.1.1#b#GbVaU.8#HbnbA.R#N.1#s#h.#bgbAa4#vbV", -"#G#u#tbO#t.K.9bw.lb4#G.8bla5aWa7ay.4.YaD.K#ublblay#G.1.y.K.Z#Y.iaY#T.R#Nbe#zbC.1#H#Bb..ZaPb.#3aFaPak#G.0.1#D#D#G#D#b#xbAbv#G#ubA.w.Mbn#nbVbS.1bdbcbm#P#G#Gbc.1#G#D.w#u.w.w#2bK#4bK.K#vbw.Q#tbt.K", -"#D#u.ZbR.4.ebD#tbAb4#u.8#u#z.lbn.rbAbabN#tbS#u#u.B#G#D#D.e.4#Ya7#b.4bnaW#H#zbC#GbcaL#4aTbW#4aTaS.UbQ#D#u#z#D#D#G#u#baBa5bS#G#u.K#b#F.1bebVbV#GbC#H.1#P.1.1#H#GbVbS#G#u.w#saBbA.SbAbF.gaqb..u.G.K", -"ay.y#t#t.Z.e.G#Ra5#Hblay#Db2.laVaybK#.#p.g.ybVbV#G.w#7#z.4.e#abeaY.ybn#T.1#zbC#D#G#b.S#t#x#5.Z.Y.U.kbSbl#GbA#u#G#u#b.4.e#z#G#FbAby.ybeaz#ubS.1bc.z.1#P.w.1bc#DaybV#G#F#G.w#2.S#t.R.e.g.OaI.9#x.K", -"#G.8#tbR#2.ebT#R.ebC#F#z#GbS.4#HaybA.Zajbi#tbVbV#0#G#F#saB#s.Rbe#bbAbn#Tbna5#GbCay.wbLbR.ZbL.Z.O#E.Kbl#ubVbKbSbVbl.w.4.8#0#ua#bVbQ#ube#b#u#G.1.1bf.0.w#Pa0#H.1#GbV#G#u.w#s.M.S#tbn.e#1.gbZ#R.9.K", -"#G.y#t.4#T.e#2.S#ra7#u#0#DbS#N#HbVbS#T.U#p.sbK#u#G#G.y#s.y#s.y#zaVbKbn.J.1a5bC.1#G#s.4bO.4bLbD.sbWbF.8ay#z#zbA#u#D#z.4.4#0#u.o#s.4bSbe#H#u#G.1.1.z#D#G.w#ba0.1#0#D.w#D.wbV#x.S.S#s.SbR.ObZ#5bYbO", -"#GbA#t.4.4#z#2.S#N#D#u#0.rbVarbn#GbS.4#vb5.O.Sbl#DbVa5.K#Dbn.ybVbn.Kbn.J#D#z#G.1.rbV.ZbR.Z#T#i.s.g.ebl#G#0.K#u.8#0bA.e#2.1#u.y#b#xbAbebn#D#Gbm.0beblbV.w.1bc.1#G#D.1#Ga0#s.M.S.Tbn.S.T#jbBbu.4.Z", -"#G.ya6.4.4#zaB.SaAbd#u#0bdbVarbn.w#u#F.g.pba#t#F.0#u#s.8bnb4.y.8aVbQ#Hbkbna5.1.w.1#z#tbL.4.Z.E#t.gbA#uay#sbS.K.y.w#2#z.4#0bl#D#Ybg#zbebC.0.w#G.1.1bvar#z#u.1.1#G#D.1bV#b#z#2bLbL#b.S#5#..g.k#t.Z", -"#GbAbD#t.4#0aB.yaA.y#F#0.r.w.8#DbybSbv#t#kas.s.X#D.y.Waibe#HbVa5aVbQb4bkbna5#G.1.w#s#tb.bR.4#ia2.g.y#F#u#GbKbV#ub2#c.K.4bV#7#DaYa6.kaza7#D#P.1bc#z#Tar.8#F.0.1.r#G.1#u#P#s#2bL.S#b.S#haP.U#5bY#T", -".w.4aI.sbAbSbK#ta6bsbd#za5.0bC.l.1#0bla6.Z#3aIbT#sbUaVara7.q#ebn#b#D#YaA#8#s#u.wbv.K.L#u#R.4#Z#F#T.e.8#z.e.l#sbs.w.P.e.w#G.r.r.1#T.wa7.z.1bea0.F.K#D.RbK.e#zbV#D.w.1#G#u.w#zaB.K#Y#ubOaC.gbobwaP", -"#GbYbZaPbA#u.y.g.Z.R#u#0#0.0bn.4#G#P#u#TaPba#t.G.ybQ.c.4#8#YbraYbn.R.wbp#ebn.8.1#F.K.L.rbL#t#Zbl#T.eaB#z#z.4#G#7.1#6.S.w#u#G.rbV.l.w.0be.1.wa0#8bV.R#J.K.4.8bV#G#G#G#G#G#b#saB.K.w.ybOaCaPb7.s.G", -"#G.4bB.U.SbVbAaPaW#D#Da5bSa7#H#2.w#PbSbA.ZaPbw#t.y#zbe.4br#sbq.c.w#D#s#Vao#z#u#G.l.KaS.rb..4afa5.4bS#Fa5#zbv#u#G#0#6bAbQ#u#G.w.8#z.wbd.z.1#b#H#HbS.y#HbQ#T#T#zbn#G#G.w#G.w.waB.K#s.8.T#v#.aIaPaT", -"bV.4.n#EbA#zbKaP#N#u.0ay.B#HaV.E#G.w#GbS#t.ZbZ.SbV#zbnbVbqai#WaL#b.1aYbp#e#zbS#G#F#z.L.rb..4afbS.lbS#F#u#z.8#u.1#0.M.8#z.o#0#baZa5.w#u.1#D#b#H.1bAbVaYbQ.8.J.y.w.w.w.1#0.w#s#2.SbVbA.K.gaPaIaP.Z", -".1#t#m.Y.SbVbK.g#N#u#7a5bVb4bn.6.w.w.0bS.S.saI#tbVbV#s#s#Y.daLaLbe.1bQbh#8#zbV#G.l.Kba.r.k#tbNay.l#u#F#ua5#F#u.1.w#2bAbS#F#z#Y.GbVa0#u#D#7az#b.y.ybe.1bVby.laB#b#P.1.w#G#GbVaB.S.y.e.K.g#..n.U.O", -"#z#t.naP.S.y.SaT.e#F#7aya5#HaV.6.w.1#G#G.ybD#tbk.4#JbQbn.Kbs#Bbebe#Hbnbp#8.ybSbSaJ.K.O.r#4.4#Z#u.8.8#ubS.8.lbVbn#z.e.ebSbbay#bbY#Ga0bS#D#Dbr#bbG#D#n.1#u#b.eaM#b.w#G#G#GbV#s.SbK.4.4#5aPaPbwb#.O", -".wbD#3.U.K.y.S.Z.e#7#7b2#ubnbebTbV.wbC.1#D.Z#tbT.ZbK#h.c.e#8#b#HaV.1bKbp#8.8#z#ubv#z.nbm#R.y.na8bS#FbV#zbG.ebn#D.4.KbKbV#7ay#baB#G.wbS.w#Hb4#s.4#Daz.1#D#nbV.M#H.w#G.w#G.w.wbK.e.lbA.KaPaPbwaf.O", -"#baZ#3#..KbS.S.O.ebs#D#0a8#7be.T#u.1bcbcbn.Z.S.TbLbY.TbrbUanbV#H#H#H.Rbp#8bA#zbSbl.K#mbm.4.ea2bl.ebG.wa5bg.S#s.y.G.k.KbVbm.0.w.Sbc.w.B#Bb4#H.y.e.1an#H.1a0bV.5aY.w.wa0.w.w#sbA.SbA.ebu.Z.O#m.Y.H", -".k#t#X.UbQ#4#tba.B#u#ubV.ya5a0.X.T#H#P#Ga7.y.n.u.sb..K#s#Hbe.i.k#D#YbT.e#0bl.waibA#RbQ#z#RbK.3.y#F#r.y#DaA#u.z#x#v#K#z.w#F#Y.g.R.w#HbCazbCbea#bnbean#H#0a0#G.y.1#G#PbV#b.X.1bV#t.y.KbL#R.9#5.s.9", -"bnbR#.bW.K.S.ZbabS#u#D#Gbl#z.w.XbO.1bcaUbC#J#1aH.s#R.k#ubean.RbK.1#s.G#z#0#F#saB.8.C#za5aHbAay.y.8#rbS#ubvbAb4bXbhaBbV#z#7.wbkaV#b.w#D.zbcbe.X#sbean#b#G#b#G.ybVbm.w#Daz#D.wbV.4.y#z.4#RaPaI.saP", -"bK.4aqbi.KbY.ZaPa5#u#GbVa8#z.w#ubOa7#P#Pb4aY.T#O#R.ZbQ#2#YanbVbKbe#zaMbQ#0.o#D.S.l.j.Kbv.ubV.B.R#F#rbS#u#TbAb4bAbR.X.y#z#ua5bg#a#b#H.0#H.1be.y#sbebe.1#G.w#G.ybVbm#G#D#Ya0.wbV#t.ybQ.4#t.ga2.Z.Z", -"bn#t.HbW.K.S.4.Z.e.ybV#D#u.w.1#D.ZbC#P.w.z#abFaB#4#tb0.Man#YbnbKbebV#2.w.w.o#ubX.8#R#z.l.u.K.BbK.l.e#u.8.l.R#sbAbObs#ubS#DbS#Tbe.wbV#D.w.w.1.y#b#Haz.1#G.w.w#u.ybm.1bVaza0#b#s#tbA#s#t#t.s#5.saP", -"#s.4bHbN#5.ybA.ZarbA#G#u#0.w.1.1.Zbn#G#0az#Y#z#D#sbAaE#xazbe.1#s.wbV.4.w#G#ubVaBa5aubQa5.ubAay#J.8#F.8.8#FbKbObY#rbnbV.J#D#zarbnbV#D#G#P#b#ubVaYbe#bbc#G.w.wbV#uay.w.w.1#G.w.wbD#T.K.4#t.O#5aPaP", -"#D#t#.bNbL.ybK.ZbO.S.w#u#Ga0a7.1a6#H.w#Gb4bebQ.1.w.w#Y.ybe#H#b#b#G#zbV#s#G#G.1#2#zau#0a5.jbA.B.Kar.y.8.8#D.K.gbtar.1bVbGbnbS#z.1#D#u.w.w#b#Fbn#saz#b.1#G.w.w.w.y#u#P#b.0.1.1#YaP.M.K.Z.Z.ZaI#EaP", -"bV#t.Ha9bLaB#z.4a6.4#b#D#Ga0#ub4bD#H.wbSao#bby.z#HbebV#Daz#Hb4#b.w#ubV.1.r#G.w.4#zbY.ea5a1bA.8bKarbsa5.8a7.K#V.Z#N.1bVbG#b.8a5#8.1#G.w.w#n.5.waYazbc#P.1#P.w#P#F#G.waz#Dbc#Gbeb#bGbU#t.saPb7.gbZ", -"bVbL#m#..SaBbV.l#EbLbe#G#G#b#7be#i#H#PbS.1.w.waz.1#n.X#ban#8b4#Ha0.ybK.way.r.wbKbSbt#2a5aK.Ka8bKarbd#z#ra7#s#X#R.l#7bV.lbe.Ma5azbe.1.1.w#n.X#baVaz#H.1#P#0#P.w#F.w#0.w.0az#GbQb#.4bQbL.Z.Z#5bwbo", -".K.K.T.gbO.4#s#Fbiapbca0.0be.1.1a6by#G#G#bb4be.zaY.R.y.1az#b#s#b.za5.8#H#2.1#Dbv.K.6bQ.K#F.Kbn.SblbV.k.4bQ.4.MbX#4#Har#D#s.4###bby.1anbebe#Fbe#baz.w.w.1bV.w.wbvaz#D#G#G#G#s.K.UbO.y.e#O#C.D.U.i", -"#t#tbRbW#R#tbV#2#E#b.1a0#Daz#s#GbTbybc#G.1#bbr#f.q#D.y#baz#H#DbV.za5#F#b.Jbna7ar#4#6.K.4.SbV.y#FbS#z.KbYbybAaBbKbLbn.8#G#s.Z##.w.w.1azbe.1.ybe.waza0#b.1bV#b.w.o#b#D#G#G#G#zbA#EbO.R#r#OaDbB.U.k", -"#ibwaI.Z.T#t.K#2bD.W#Gbc#G#b#H#GbDby.way.1#ban.zbe.y.y#b#n.w.y#D#Har#u.1#2bnbd.ebOa6.K#x.4bA.4.ya5bV.KaZbQa5.y#s.Sa7arbV#s#x.5.wbV#bb4an#u#saY#sbe.1#bbe.1#n#b.M.wbV#G#GbSbV.e.9.4.y.K.5#AbB.U#J", -"aPaIa2.s#5#t.K#ObDbQ#G.1.w#b.1#GbD#z.w.rbVbebr.zbQ.y.y#b#nbV#ubVaV.l#z#G#2#D#DbF.4bL.Kbg.Ka5.4.8#0.ybK.G#z#zaB.k.4#Da8.1bnbk.b#bbV.wbebr.y#Y#s#JbV#sazaz.1#b.1#2.w.w#G#G#GbV.K.S.S.y.KaHam#3aO.k", -".Z#5.Dbwb.#t.K.Sa6#z.1bcbe#b.w.0#i#z.w#Daybeazb4#s.8bV#n.w#GbV.w#H#T.w#D.l#Dbs.T#T#z#z#x#z#z.4.8bSaB.K.G.e#zaB.R.4#Dar.w.wa6.R#b#z.1bebeaB.NbA.S.SbVbebe#G.1.1#2#G.w#0bVbVbVbV.ebLaB.e#KambwbW#J", -"bWaIaIaP#5.S#s.e#t#s.w#G#Bbn#H#GaP.8.w#GbVbe#b.z#s#D.wa0.1#G.1beaY.Jby#7a5bV.5#1aBak#sbgbQ#z.8bA.BaBbQaZ#z#z#2.S.4#Da8.1#z#Ta7a0#s.1bebnbXaNbRaZ.4.S.w.1#G.1.w#2a5#0.Bbl#ubS.ybVbO#O.ebYambwbWbK", -".gbL.T.G.K.S.KbA.4#z#P#D#Y#Da0bc.s.4#P.w#Gbe.1a0#sbn#ba0.1.0#b.wbn#vby#7#z#z.5#jaB#b#z.M#z#z.8#FbS#2aYaZ.e#zaZ.R.4#Da5#GbVbO.1by.w#Dbr.R.S.QbZbD#1.S#z#G#u.w.waBbl#0bS.8bVbVblbSaq#x.T.Sam.CbWbn", -".ZbF#4.9.k.SbV.8.4#z.w#ube.y#bbc#t.4.w#P.w#b.w.zbn#D.1a0.1.1#H.1aVawby#F.w.w#O.g#Fak#DaMbV.ybA.l#u#2akaZbA#z#2bAbL.0ar#GbVbObn.w#Y#D#BbX.k.Qa2.sbM#tbA#u#G#nbybG#u#0a5bl#0bV.y#G#.bT#r#4#X.OaPbn", -".saIbwaPb..e.K.S.e.8#b#D#P.1#G.1.KaMb0#Da0bman#Jar#Y#8a0.w.w.1bC.ea7#GbS#b#T.Qahb4#D.y#2bS#zbl.ybV#Mbu#tbl#w.yblay#0.R#Hbk#D#H.1#bbV.V.4b4.TaubRbZ#t#t#z.1.1#b.9ar.w#ubv#zbdbs.K.O#t.KbD#3#ob##b", -".saIbR#E#5.4.y#2bA.4.way.w#G.w.1#s#x.q.y.w.0#nbn.l.w.1.1.wbV.1bCbL#H#G.8.1#x.Q#O#b#D#F.8bS#z.y.y#uav.K.Sbl#m.y#F#D#zbV#8bp.RaV#Hbeak.cbQ.c.T.S#tbR.s#tbK#G.1.w#OaW#b#ua8#0#ubs.K.Y.4#z.G#Zabb##s", -".gbwbw.UbL.4.SaB.S.8by#D.w#G.w.w.waZbQ.8#G#ube#J.l.waz.0.1#u#bbna6b4#z.l#u.M.K##az#D#FbVbSbS.y.8#uaS.SbLay#3.R.o#ubV#z#8bpbn#HazaYaL#Db0b4bu.R.S.Z.Z.Z.K#G.1#baB#i#b#D.8#0bdbs#rafbL.K#x.Oab.EbV", -"aPbDbw#EbZ.SbA.ybA#2#s#G.w#G.w.1by#2.K.4#z#G.wbK#ubnaz.X#P#Fbe#Da6bebV.l#GbG#Nbn#b.y#F#s.y.8bK.8bl#Z.4bF.0ba.K.oaybVbV#8bp#s#Hbe#JaL#OaLaY.w#s#z.Z.s.Z.4#u#G.w.y#iaV.1.Ba5.r#D.l#pbL#zaZaP.n#tbV", -"aP.UbZ#EbZ.K.K#z.e#2.wbV.1#G.1.wa0.8#r.4#0.w#z.y.1.waz#7a0#7#Y#2a6#b#u.8bnbl.Jbn#P#u#F.wbSaBbS.4#u.O.4b.ay.pbQ#F.1#ubAaobh#bbnbe#saLai#BbA#s#z#u.Zbw.ZbObS#G#b#D#iaV.1#z#0#D#u#y#pbL#saZaPaI.K#G", -".Z#Eb.aPbR.KbKbK.KbG.w#G#0#u.w.1#P.y.S.e#z.w.ybA#H.wa0#u#b#D#bbgbO.1#Fa5bna5bg#D#z#u#F#s#D#2.e.4bl.O.4#5.r.p.Kbv#H#F.ya7bhbe#D.1#Ybq.SaY#Tbn.ybs#taI.g.Z.8#D.w.1a6bnbn.B#0#D#D#T.I.4bV#2aP.C.K#G", -"bw.UboaP.ZbL.ybS.K.M#s.w#G#G#G#D.1#G.S.e.K#0#FbKbCaza0.1.1.1#s#ia5.0#F#s#Da5aw#bbl#0.obVbV.M.e.4bl.O.SbOaJ.LbQ.ya0#F#D#8bhbe#D#sbe#B#sa7.4.1.e#F#taI#.#j.l#u.1.1.4.1.0a5b2#D#u.Z.UbLbS.SaP#t#z.r", -".Zbib..U.g.S.S.y#zbT.w#s#G#u#G#GbmbV.S.e.ybVaB#s.Fa0.wa0.0b4#z#ib2.0.oby#D.eaxaY.o#0aB#ubV#2.8.4blaP.e.Z.o.Lbubl.wbl#s#8bhbe.y#b.1.V.W.b#rbe#z.RbYaI#.#v#Tbl.1.1.e#G#7#0#0#D.R.Z.U.S#zbV.s#R#s.r", -"a6#E#4.YaP#h.4#ubL.4#z.w#G.1.0#D#G#G#G#u.8bG.8#zbC.1a0#zbV#b#z.J.w#GbbbVbAaB#O.1#F.w.8bSay.o#FaP#5a6.4#tbR.Z#zbV.1bdbS#DaAbVbQ#e#BaBaEbA.4#sbs#Dbl#tb1#A.Zbl#u.wbV.y#zay.0.1.y#2aT.4bVbVaZ.9#say", -".ZbDb.#3#.bF.y#D.T.S#z.w.1.1#G.0#0bc.1.1bVbA.y#b.1.1.w#D#Gbe#z.l#b#u#u#GbA.S.y#D#D#s.y#zay#F.KbtbZ#i.8.Z.saZbA#u.wbCa5#DaA.RbQbn#B.X#Y.4.KbV#u#D.o#tba#k.g#2#u#sbn.y#0#G.rbC#DaB.Z.S#u#sbY#t#s.r", -".ZbDbubBaP.TbA.1.KbA.K.w#P#b.1.0#0.wb4#P.wbVbnazbC#H#0#u.1be#DbA.wblay#0.4.S#z#D#0bV.8.1ay#u#saP.g#i.4.Z#tbDbK#7.1bCa5bnaW.R#zbn#BaB#Y#x.KbVbn.0#u.4#.a9#i.4#u.1bQ#FbS#G.0.1#D.S.O.4#u.w#tbYbQ.0", -".8.ZaKaIbNbRbK.wbL.SbA.w.w.1#0#D.B.1#P.1.1bV#H.z.1#b#G#F.1be#7#s#zbv#0.w.4bT#sbS#G#u.y#zblbl#saPaP.Z.e#tbR#t#s#G.w.1bV.1aW.y.Kbnbr.y#YaM#s.y.1#GbSbA.Z.YbW.4bV.w#b#FbS#z.0.1bV.y.O#TbVbV#t#t#s#G", -"#rbT#RbwbN.g.K.1#t.4.4.w.way.w#GbS#G#Hbc.1.1ao.z.1#PbV#uazazbs#bbU#c#0#0.8.6#z#u#G#F#u#Gbb#F.k#E#.bRbF.Z#t#R#b.1#GbC#zbn#N.R.eaV#sbKaYaZ#s.y.1#G#G.l.ZbW.U.gbA#G.w#2bS#G#u.1bVbSaq.Zbl#z#tbY#s.0", -"#z#x.s.CbNaP.Kbn#T.S#F#z#0bl#0bVay.w.1.1.1.1bc.z.1.w#z#u#bb4#u#b#s#c.w#zbA.a#z#D#G#FbV#Gbl#u.K.YbaaI.K#i.s.Sbe.z#s#GbSbC#r#D.KaV.RbQ.k.y#s.y.1#Gaybl.l.ZbN.ZbK#G.w.oa5#z#u.1#s#u.Oa6#FbSbY.Zbn#G", -"#rbT.9b..ObW.KbVbL.K#T.w#0#F#0ayb2.1bc.1bc.wbcao.1#G#zbV.w.1.ybQ#s#2.w#F#z#2#b#7aUbl#0.1#u#GbLaPbN.Hb.aC.saK#Y.z#0.1bV.1#r#D.eaYbAaLaBbK#Dbn#G#G#0#ubSbLa9#Z#z#G#Gbv#z#z#F#D#0.8.H.Z.8bA#tbY#s.1", -"a5#x#t#w.HaP.Kbn.K.K#2.w.wa8.wbS#0.w.1.1.1#Pbcbc.1bV#0bV#sbV.lbQ#z#u.wa##zbK#B#7#0#u#D#G#G.wbObN.p.n#h.E#taKbe.z.w.1bSbCbFbV.ebn.KaL#x.k.y#b#D.0#ubl#u.4#pbN.S.rbV#F#z#z.o.1.w#F.H.J.la5bY.s#sbc", -"#Dab#3.ybw#Z.K#zbnararaB#bbGbS#G.1bc.1.0bc.1.1.0ay.w#F#n#sbeai#JbA#D#b.4.e.1.z.o.B.w#u.1#DbQbLaPb#.Z.g.ZbDaka0.w#GbV#G#bbsbea7bnbK.q#4bA#G#G.0#Dar.3.y.R.U#9.Tbd#uay#r#z.MbVbe#Kb1bD#2.e#t#tbn.r", -".raR.ObSbw#Z.KbK.1ar.ebsaY#T.e.1#GbCbc#Hbc#H.1.1bV#0#F#nbVbe.5bV.lbd#b#N.8bnaz#u#u#0.r.1#ubK#t.Z#EaIbR#1aZapbe.1.1#u#D.w.ybebnb4bn.q.S.4ay#G#D.Rbla5#u.RaP#9.Tbd.r#z.ebU.M#Gbeaub1.g.4.K#t#t#s.0", -".raR.Oa5bwba.e.y.1ar.e.y#s.8bS.1#u#Ga0a0#Ha0.1#GbVbV#F#bbV.w#FbVbv#D#sbO#T.1az#0#u#G#G.1#ubK.Z.s#EaI#t.ga6#Y#b#G.1#DbV#DbK#BaVbeaVaY.S.4bV#G#D.y.la5#u.i.9aabOa7.r#G.e#z.M#0#b.y#Z.Z.8bQbL#t.w.0", -".r#o.ObVbwaS.K.S.1.ebA#D.w.e.e#D#G#G.1#Ha0bc.1.0.w#u#F#P#u#z#ubS#T.1bnar.Jbn.1.w#u#G.0.1#Dbn.9bw#E.Taq.gbT#bbn#uan#G#b#Dbnbqa7be.w#a.4#F.w#G.RaBaB.ebSbn.S#X.Zbd#GbV.4#z#F#0#b.S#Z.gbAbQbZ#R#sbc", -"#GabbwbS#3.p#4bK.wa5.e#Dbnby.lbnbV.1#Pbc.1.1#G#G#s#u#FbybV#u#0#G#T.w#D#r#x.1#Gby#G.1#G.1.1bQ.Gbw.Z#5.Za6.Zak.w#D#B#H#b.y#baLbn#a#b#baB.8.w#0bAbD#t.4bS#D.y.g#vbn#GbV.4#z#u#GbQ.y.L.ZbAbU.S.s.w.0", -"bcat.sbV.O#k.K#4#H.ebAbC.0.W.4#Day#G.w.1.0#D#G#u.w#u#u#bbV#F.w#u.l#H.X#r.lbebCa0#G#G#G.1.1#Y.G.C.gaIbW#i.g#s#D.0azbe.1.5#YbeaYbe.w.wbX.y.wbn.4bD.ubh#N#ubV.Zbgbn#G#z#2bQbV.w.w.y#Z.g.l#sbRbY#s.0", -"bm.Obw#z.Ob5#4.SbebSbA.1#Db0.Jbn.8#G.w.1#Gay#G#G#s#u#u#Y.1aBbe.R.ybe.5#z.Kan.0a0#0.1#Gbc#baLbI.C.gbR#EbWbT#z.y#Gb4anbnbsaLbn#a#a#H#b.ybA.w#zbOaPaT#V.l#FbVbOa3#s#0.e#2by#G.1bn.Rat.Z.4#z#t.s#s.0", -"bm#Z.s.w.Ob5bL#tb4.ebSbC#7bPbGbV.8ay.w.w#G#D#0#G#0#ubV#n#saibe.R#0an.b#z#z#lbd#0.1#Gbc.1#H#Y.EbZaIb..gbR.Sak#G#nb4.m#b.ybq.RaLbea0#b.y.y.wbS.4.g.O#XaA#F#DaraxbQa5.ebTbQ.1a0#G.y#3.Zbv.K#t#tbn.r", -"#G.sbw#z#2bNa2bSbV.8bQbVay#G.y.SblbS#Gay#G#0#G#ubybvbe#b#z.4.q.S#8#b#za8#Daz#7.w.w.r.1.1#H#s.GbBaBb.aP.CbAbn.1b4ananan###Bbn.mbnb4#b.ybv#GbnaP#ZadbN#jbSay.MbD.n.1#z.4#z#bbCbV#zbwaPa6#5bZbD.y.1", -".1#tbw#z.4a9#5bV#z.8.w#G.r#G#ubAbSbS#z#0#G.1#0bS#z.o#bbn.y#2akaB.1.w#0.y#0az#Dbn.w#G#G.1#baY.9.C#2bL.Y.s.S#DbC#Hazbeana7brbn#Wbnan#b.K#u.w#bbDb1#k#k.g.Saybv#xbw.w#z.4bK#P#G#G#z.s.g.g.KbR.ZbV.1", -".w.Sbw#z.8#..D#u#z.y#s#0bmbm#D.Ka5bS#G.w#GbS#G#0a5#F.1#DaB.4bQ#2#D.w#zbS.wbe#u#0.wbV#G.1#b.KaP.Z.ZaIbN#..S#u.1.1b4anbe#Hbebebrbnbe.w#z#u.wbn#E.LaG#ka9.4#zblaZ.sbV#z.4#z.w.0#D#s.H#i#x#5bZ.Z#s.1", -".wbLbw.K.8.O#5.8#GbS.w.1.r#G.wbVbS.8bV#0#G#ubVbV#u.yaY#D#2.ebQ#2.1bVa5.8.w.1bSbS.w#G#G#G#GbA.g#.bLbRba.O.K#D.1.1b4anb4brbebrbrbn#Hbn.KbS.w#Db#.fb6aG#kaq#za5.8.Z#zbV.S#s.way#GbnbBaP.g.TbR#t#s.1", -"bcaI#t.K.8.Oa2.8.w#z#z#0#Gbm.wbKa5blbVbV#G#u#ua5.y#D.wbVbGbQ#baB.wbSbA.4#b.RbVbA#0bV#G.wbVbY.Z.O.TbR#.aPbQ.ya0#b.z#Bb4anbe#B#Y.ibe#sbV#s#b.Rafb6#k#kadaP.e#zbA.4bS#s.R#s.wbS#D.1b7#i#x#4bR.9bV#G", -".w#4bw.e.8.OaI#u#z#z#z#G#G#G.w.4#za5bS#GbVbVbVbS.4bKbV.K.MbQaY#FazbVbAaB.q#F#GbS#G.1#Haz#saBbZ.H.e.gbabN.q#7#b.zan.manbebrbrbrbn.1#D#zbV.1.R.I.ha9.L#kbN.4#zbA.8ar#s.Rbn#0.B#GbnaI#E#i#5.s.Z#s#D", -"#GaKbR.e.yaqaI.8#z#sbK#0#G#G#saZa5bAbSbVbV#zbV#u.l#z.ybV#x.w#bbdazbV.K.Sbr.5.w#z.1bcbcaz#baBbZ.O.ebWbabi.qbs.zb4ananan.1#Bbe#Wbn.1.y.y#DbnaB#M.h.g.Oa9bibTbAbA.8.J#sbn.Raya5bVa7aI#E#i.KbR#t#s.0", -"#Gb.bBa5bA.Oa2#u.K.K.4#z#G#GbQbDbA.8bS.y#ubVbVaB#r.KbA#zbg#Y#b#Ha0bV#sbKaLa#be#0.1#H.1#B.1bY#taP.KaPaP.U#Y#7.z.zananan.ibqaV.mbn#b#DbV#z.1bXafac.ZaI#..I#i.lbA.8.J#s.i.ya5a5#DbdaIaC#ib.bR.4bQ#D", -"#Gb..ZbAbAbaaIbV#zbA.ybKbV#sbV#Far#z#Dblblar.8aB.y#zbR.KbG.w.1.z.wbV#T.can.Sbr#8b4.w#nb4#L#.bJ#R#z.g#3a9bq#F.z#H#f.mbe#sbe#D#L##bC#s.ybl#P#3.2.I#tbL.g#..paP.e.obTbQ#s#2.ybV.y#FbA.O.L.4.4bB#a.0", -"#Gb..ga5.eaPbB.ya5bl.8bS#0bn#s#u.Z#zbV#Fa8.8bA.y.8#4bR#1.8#G.1.1#PbVaAb4br.e.V#8an.waz#8#WbiaIbX.k#v.uajaL#Fbc.1#fbeanbnaLa7#La7#8#sbK.r.w.O.x.Y#t.e.gbWadbN#4bl#xbQ.K#2#ubVbV#D.lba.LbZaBbwak.0", -"#G.KaP.e#z.ObZ.y#za5bSbS#z.w#0bV.g.K#s#ua8.lbl.y#F.4.Z#i#z#G.0.w.w#DbOan.V.ebeanbr.w#bbCaLbi#..Sby.g.saObe#u#H.1#8be#B#Dbebr#L#8bc#sbKay.w.Y.LaT.4.K#taP#pbibA#u#2#s#zaB.ybV#sbV.4bababLaB.s.7.0", -"#Gbu.ga5#s.Obw.yby#0bSbS#0#zaybSbabZ.K#zbl.8bA#u.8.Saq.6#YbV#Ga0be.1bOanbrbU#8.zaza0.w#H#WaP#EbK#b.Z#R#XaV#0.z.1#b.1#B.R#Yan.m#8#H#JbK#G#0af.L.u.4.ebO.gbN.U#t#z.ybQbV.8.y.wbVbVaBba#Z.T.4.s.kbc", -"a0.7aP.e#z#Zbw#u#0#0#0#u#G#G#uaya9bR#4bVbSa5bS#F.K.T.Z.6b0ay#D#bbebV#T.m#8bU#D.1#8#0.1bebqaIbW#J#b#x#R#v#D#0bC#H#HbV#Bbs#B.mbe#ea0bK.K#G#0.I#Z#t#tbA.ebO#..Ua6bV#F.w#sbVbV#z#sbVbA.O#Z.ebYaT.7bc", -"#P.Q.ga5#sba.sbAbV.wbS#u#z#GbVbVbaaT.SbKa5a5bS#F.ebL#EbD#b#u#u#Y#H.1#Tbebd.W#7bd.1bS#0beaL.T#Ebn#Y.g.S#y#u#0aobe.w.1azbs#Bbrb4a7a0au.K#Pay.I.O.Z.4.y.ebLbR#..P#z.8bV#0bVbn.w#s#sbAbH#ZbL.4.9.kbc", -".1buaPa5#z.Y.O#ubV#sbVbV.1#z#D.wba.Z.4bA.8.e.KbA.4#t.UbL#s#zbbbe#b#b#ran.b.W#7.1#8#G#0#HbKb7.gaV#BbT.K#r#Dby#H.m.1.1be#u#B.1.wbe#P.S#z.wbSbi.n.ZbK.4.e.8aI.Z.6.K#u#GbV#0bV#s.w.w.e#Z#Z.K.4aT.k.1", -".rb..g.e#s.YaPbV#z.wbnbV.wbn#Dbn.OaP.4.y.4#N.K.K#T#t.U.Q#z.w#F#YazanaNan.bap#Ga0az#0#P#b#KbR.Z#aaz#ibK#h#u.wbC#B#b.1bebs#B#D#baLbcbA.k#P#G#E#S#2.K.8bAbL.Tbw.6.K#G#0.wbVbVbV#s#s.e.Oba.K.4aT.k.0" -] - -stone1_xpm = [ -" 96 96 250 2", -".. c #343e34", -".# c #94a28c", -".a c #64726c", -".b c #c4d2c4", -".c c #7c8a7c", -".d c #acbaac", -".e c #4c5a4c", -".f c #dceadc", -".g c #949284", -".h c #7c7a6c", -".i c #acaaa4", -".j c #c4c2b4", -".k c #64625c", -".l c #dcdad4", -".m c #8c967c", -".n c #a4ae9c", -".o c #6c7e74", -".p c #f4f2ec", -".q c #444e3c", -".r c #bcc6b4", -".s c #8c8a7c", -".t c #5c6654", -".u c #ccdecc", -".v c #7c826c", -".w c #a4a294", -".x c #949a8c", -".y c #bcbaac", -".z c #747264", -".A c #5c5a4c", -".B c #c4cabc", -".C c #d4d2c4", -".D c #ecf2e4", -".E c #acb2a4", -".F c #646a5c", -".G c #8c867c", -".H c #54524c", -".I c #9c9a8c", -".J c #849284", -".K c #7c827c", -".L c #44463c", -".M c #9caa9c", -".N c #b4c2b4", -".O c #dce2d4", -".P c #cccabc", -".Q c #b4b2a4", -".R c #94a29c", -".S c #848a7c", -".T c #f4faec", -".U c #6c6a5c", -".V c #6c7a6c", -".W c #acbab4", -".X c #546254", -".Y c #4c564c", -".Z c #a4aa9c", -".0 c #747a6c", -".1 c #ccdacc", -".2 c #545a4c", -".3 c #74867c", -".4 c #4c4e44", -".5 c #bcc2b4", -".6 c #5c6254", -".7 c #d4dacc", -".8 c #fcfaf4", -".9 c #3c463c", -"#. c #6c7264", -"## c #e4eadc", -"#a c #949294", -"#b c #847e74", -"#c c #8c968c", -"#d c #a4b6ac", -"#e c #747e6c", -"#f c #949a9c", -"#g c #9c9a9c", -"#h c #84827c", -"#i c #e4e2d4", -"#j c #848a8c", -"#k c #9ca294", -"#l c #ccd2c4", -"#m c #7c7e7c", -"#n c #c4c6c4", -"#o c #a4aeac", -"#p c #bcc6c4", -"#q c #8c8e8c", -"#r c #d4decc", -"#s c #848274", -"#t c #a4a6a4", -"#u c #bcbebc", -"#v c #747674", -"#w c #c4cecc", -"#x c #d4d6d4", -"#y c #acb6b4", -"#z c #646a6c", -"#A c #cccecc", -"#B c #b4b6b4", -"#C c #545e5c", -"#D c #6c7674", -"#E c #747e7c", -"#F c #3c3e34", -"#G c #b4baa4", -"#H c #949684", -"#I c #7c7e6c", -"#J c #acaeac", -"#K c #c4c6b4", -"#L c #646664", -"#M c #dcdedc", -"#N c #8c8e7c", -"#O c #a4a694", -"#P c #949e8c", -"#Q c #bcbeac", -"#R c #747664", -"#S c #5c5e5c", -"#T c #c4cebc", -"#U c #d4d6c4", -"#V c #acb6a4", -"#W c #545654", -"#X c #9c9e8c", -"#Y c #eceedc", -"#Z c #4c4a44", -"#0 c #dce6d4", -"#1 c #cccebc", -"#2 c #b4b6a4", -"#3 c #9ca29c", -"#4 c #848e7c", -"#5 c #8c928c", -"#6 c #b4bab4", -"#7 c #7c8e8c", -"#8 c #44524c", -"#9 c #6c6e6c", -"a. c #e4eeec", -"a# c #d4e2dc", -"aa c #a4aaac", -"ab c #747a7c", -"ac c #5c6264", -"ad c #94a694", -"ae c #acae9c", -"af c #646654", -"ag c #dcdecc", -"ah c #a4b2a4", -"ai c #bccabc", -"aj c #5c6a5c", -"ak c #7c8674", -"al c #5c5e54", -"am c #ecf6ec", -"an c #646e64", -"ao c #545644", -"ap c #7c867c", -"aq c #444a40", -"ar c #f4fef4", -"as c #6c6e64", -"at c #545e54", -"au c #4c5249", -"av c #fcfef7", -"aw c #6c766c", -"ax c #e4eee4", -"ay c #8c9a8e", -"az c #748274", -"aA c #84867d", -"aB c #e4e6dc", -"aC c #ccd6cb", -"aD c #d4e2d4", -"aE c #3c4238", -"aF c #b4beac", -"aG c #9ca69c", -"aH c #b4beb4", -"aI c #f4f6ec", -"aJ c #3c4a3c", -"aK c #949694", -"aL c #949e9c", -"aM c #9c9e9c", -"aN c #848e8c", -"aO c #9ca694", -"aP c #a4b2ac", -"aQ c #bccac4", -"aR c #5c6a64", -"aS c #848674", -"aT c #646e6c", -"aU c #74827c", -"aV c #94a294", -"aW c #7c8a84", -"aX c #dceae4", -"aY c #94928c", -"aZ c #7c7a74", -"a0 c #c4c2bc", -"a1 c #8c9684", -"a2 c #a4aea4", -"a3 c #444e44", -"a4 c #bcc6bc", -"a5 c #8c8a84", -"a6 c #5c665c", -"a7 c #7c8274", -"a8 c #a4a29c", -"a9 c #949a94", -"b. c #bcbab4", -"b# c #74726c", -"ba c #5c5a54", -"bb c #c4cac4", -"bc c #d4d2cc", -"bd c #ecf2ec", -"be c #acb2ac", -"bf c #646a64", -"bg c #8c8684", -"bh c #9c9a94", -"bi c #84928c", -"bj c #eceae4", -"bk c #b4c2bc", -"bl c #dce2dc", -"bm c #cccac4", -"bn c #b4b2ac", -"bo c #848a84", -"bp c #f4faf4", -"bq c #8c9284", -"br c #6c6a64", -"bs c #6c7a74", -"bt c #a4aaa4", -"bu c #747a74", -"bv c #ccdad4", -"bw c #545a54", -"bx c #4c4e4c", -"by c #bcc2bc", -"bz c #5c625c", -"bA c #d4dad4", -"bB c #6c726c", -"bC c #e4eae4", -"bD c #8c9694", -"bE c #747e74", -"bF c #ccd2cc", -"bG c #d4ded4", -"bH c #b4baac", -"bI c #94968c", -"bJ c #7c7e74", -"bK c #c4c6bc", -"bL c #8c8e84", -"bM c #a4a69c", -"bN c #949e94", -"bO c #bcbeb4", -"bP c #74766c", -"bQ c #c4cec4", -"bR c #d4d6cc", -"bS c #acb6ac", -"bT c #9c9e94", -"bU c #eceee4", -"bV c #dce6dc", -"bW c #cccec4", -"bX c #b4b6ac", -"bY c #848e84", -"bZ c #8c9294", -"b0 c #acaea4", -"b1 c #64665c", -"b2 c #dcded4", -"b3 c #54564c", -".x.0.OaHbI.2azbK.rbJaF.Zbq.EbqbT#..x#6at.S.KaGbOaz#5albJb1b0bAayaw#..S##.xb0an#IbI#NalaFbH.5a6bN#kbSbobT.5bObu.Z#k.5.ZaYbL.ga9aZ#e.EaDbqap#..Z.S.SbP.ZbMaF.BbI#lbT#3ap.xbYbO.SbL.ZbEbXb0awbL#PbI", -"#k#c#..San#c.5bqa7bqb0bR.SbW#P.KbLawbqbLbCbHbT.5bY.c.ibObMa0aD.5.xbHa9.6bHa1bT.raAbIb0an#3#5bt#caAbXbWbYbtbSbM.SaCbq.t.xa5.SbLaAbLapbP#cbo.SaCbt#kbPaybIaOaGbMaOaG#c#k#S.Z#5#3blbIaO#k.Z.xbHbLaH", -"#3bOaHa1.xb0bH.YasbN#c#kbq#cbM#kbYbMboatbNbTbG.K.B#6.Eb0#t#kbz.cbPbqaw#1bt.EaHa9bTaA.KbCbu#pbobkbo.EapbSbJ.YaGbba7bLbSbMbHaZbIbIaCaH.0bH.D.N#.bSaCbM.ta7#3aB.E.EbJbNbOa7aGb0bY.0#lbT.5bt.0bEbq.S", -"bM#VbJbnbObIb0bMbQbOaqapbM.ZbobL.xbfbT.EbJ#caAbHa4#5bTb2bt#lbqa9#k#caBbtbt.SbJa2bmaY#JbyaMbybz#f#5.5awbOb0.Z.KbXbY.xb2a9bLaSbH.Uapa9bY#c#E#5.N#tbHbtbTbebEbKbebQbP#cb0bFbE.SbJaw.Ba9aG.xbM.Z.EbM", -".l.xbR#P#sbI.0.ZbnbVbNaA.Z#3.0a6bEbJbG#k#6bIbqbebK.EaGbMap.Ka7bIaAbF.ZbqaH.O#3#.boaMbhbf#3aaab#o#kbt.S.5bYbubRau.MaMaAbMbMbM#s.x#5bX#6aEbSbAbEa9.0bHaGbq.B#ca7bI#cbY.0bXa9bMbb#3#4#3bqbSbq#kan#4", -"aY.F#ibha7aA.iasbbbo#3bebybL#ybLbN.xbu#la6bSaBbNbrbl.xbV.W#lalbIa.bI#taHb..KbN.ibPb0.Kbb#va9a9aL.K.ZaCbObea7bo.F#v#5aGbMbL#1.E#I#6bu#3.K#5bP#3aG#Sbta9#JbObBa2bobIbW.Z#6#ka9.Z#5bqbHbO.7#lbK.EbR", -"bUbJ.ia4.wbHbh.Zba.O#3ap#3a4#nbUaA#kbYbI#c.7b0.5a8a9bS.NbQ.BbFaA.Zbtbtbt#6bIbFbtaAaAbXbHbLbNbpap.SbebI#5awbq.xan#cbo.KbobHbT#R#Ha9#E#5.Kbe#catbfbIbSbubIbeaKbtaKbY#casaG#kbH.ZbybTaO#cbJ.O.ZbIaG", -"b2.PbIaAaAb1.sbX#Ebfb1#t#qaAbAaH.Ebua4#6#kasboapb2.x.xaGbEbe.5br#9bubX#6bEaKbo#qag.ZbTa7bPbH.5#5#k#5aGb0a7btbY.K#LbL#5bM#X#2#N.ya2bu#C#y#3bo#jbB#B#qbb#c#9al.K#5bTbNb0#cas#3bN.x.ZbEbXaHbN.0.Z.0", -"bq#6bS.na9#ca4bq.Zbtbu.Ea9a7#LblbXapbebqbo#6bYbPa4bXbYbT#IaAaZbqay.B.ba4bNboa2#5.x.EbYbo.F#5#DaAap#5bI#ka4bX.EbRat#kasbJas.O.Zbq.7a1aO.nas.S#2#e.2.ZbHbX.S#5#L.SaVbY#caV.MbSbG.dbObqbIbMa3bb#c#L", -"#kaG.San.6#l.EbAa2b0#k.Za4.Oa2#3.FbMbb.ObJaH#kbRbGa1.nbn.5bn#sbM#N.Y.EbSbEawbebqaC.BbIbJbq#6.K#J#cbT.B#3.0beb0bQaAb0bLbqbIb.b#bO.baya7.E#P#kbP.z#e.x.db0btbE#6bBbTbT#caHbTa2aGbY#3bAbBbSbTb3.EbK", -"bwbYbMbEbo.Eap.x#5bHbebo.LbLawbE.x.ZbqbYbMa2.x#5.ZbJbXa7.ZauasbPai#kbE.BbYb2bzaHbP.Z#.a4a2bJ#5#6a9bQ#k#3bLbqanbM.xa8.0a0aObM#PbR#Xa7bq#O.gbRbRbK.xaAbUapbJ.KbNb.awa6b0a7bYbN.SbY.ZapaObubYbY.0a9", -".1bqbA#PaHawaCbVb2bNbWaCbG.EbYbXaGbKbSaw.E#W.Sap.IaGaIalbJb.#Hb1bH.Z#3bqbH#6#Sbl#k.xb1btbN#JawaKbI#kbKbQ.Sboasa4#6#IaCbMbXbJaAbIbT#sbLbrbL#ibW.zbI#5bHbObu.SbSbLaG#5bEa2bt.x#3bX.wbEbjbo.7b0apbW", -".ZaDaGbNbTbQ.6.Z#3a2#3#5aA#lbMbFb0blaAbq#5apbqbXbI.5bO.5bIb2.E.Z.Zbq.Sa9.KaCaGbT#cbRaHbI.xb0bua4#5.B#5aGbLapbMbo.g.Ea0#QbF#N#5.Sbr.wb..z#hbLbTbObB.BaGaHbXbEbTa9bH.ZbLbPa7bX#c#.bSbt.E.BbNbKbNbO", -".5bGbKbYbNa2.da6bJbq#6.Za2bNboa4#c#lbEbbbNbXbu#3bTa0asb2.E.YbTb0.E.s.SbK.B#maAbbbI.0.x#3bNbI#B#ha7bGbFbTbq#3.S.ZbebT.SbWbqaB.gb0bObmbtbIbLbT#3b0byaw#tbJbQbO.x.Sbo#Lb3bNbmbobKbOawbRa2bJb0.YaAa2", -"btaGbEa7#cb1byaGbobqbL.Bbe.7bIbqaBbWbq#5bq#3#cbX.ybHbnbqbIbq#ca7a7bTbJbPbmaKbIaMa1a7bJ.6.xa9atboa9.5bWax#6bW.NbXbUbTa5bT.Kbq#3as.waYa7aMb0bH.Ea6bNa5aG#5aCbTak.EbTaA#5bHbL.xbobhbS#5bHbea4bIap#6", -"bN.5a2bX.xbQaH.B.Z#3.dbU#kbNbMbFa4btbWbM.E.S.x#6asbL.ZbLb1.Z.0akb..0aZb0bTbP.ia9aAbHaGbH#L#cbeaAbPa2#lbQbLbHbw#3bHbq.5.SbM.SbMbIbB#qa5.xbbbi.M#c#tbebob.bYbJbTbA.wbo.wa5aAa8#t.h#3#ibS.ObIan#3.0", -"bHb#bM.Zbq.sb2b0.a.SbbazaRbNbN.nay#3aG.J#ybSbNbNbWaB.YbL#6anbYbE.Z.xaO#cbea9a9be.mbH.nbq.EbBbebB.O#.#6.x#6bI.Kb2bybAbqaAbP.5boat#k#c.ca#.ZbQap.MbTa2be.Za7bQaw#Oan#ObP#5bY#5#5bJbu#6bBan.E.xbI#3", -"bWbX.Z#5bKaua5a7bTbNbY.B.5bRbVbt.6.xaHapbO.bbqbz.x#5bNbJ.Z#3bHa9#2.EbebN#k.Z#5#q.Z.ZafbV.ZbMbNbqbXbSbI#5b0aG#5bDb0bKaHa4aAbu.0bIa2.xaG.E.BbAbNbHa9.SbYbI#6.ZbIbQ#2#cbIbQ.0.KbO#6#c#PaHbM.EbfbHbo", -"bKbIbI.i.0bL.7.waG.Tap.Sa4.0buai.KbS.Oaw.Sap.6aGbO#c.Sa2bJa7bebH.x.0.BbI#c#Bbu#cbR.YbRa7a7bM.xbI.x#Tb0bVa9bI#cb1bq#c#hap#c.x#3#kbI.KbT#mbqbO#6bPbYbYa9bNatbWawala2bq.xaAbTbobtbf#hbO#5bo#3bIa6aw", -".Eb#.E#2b0bTbMbe.S#3bP#6bOaHbSbSbMbYbP.xawasblbQa2by.TbJasaHbe.KbT.KasbqbtaAbH#3bIbobybGbWaC.E#G#..EbqbqaA#6a9bYaM.6#caB.Ea9bKay.ibL#5.Pbta8b0bMbFa7bqbIbea2bJ.E.KbqbS#6bJbYa9.O.raubA.xbY#kaAb2", -"bJbO#lbXbM#laYbT.Zbl.F#5bBbX.xb0bHbebI#3bNbtbTa7.5bO#3bo#cbObNb2#6bOb1a0aYaAbWb2#6bC#9asbH.0bHaC#T#kaHbXbqaA#5#h#3bYb1apaAawbTbS.k.ibha9aYbMb#bMblbeb..nbtasbKbEbzblaA.ZbQbJbYbTa4bTa2b1.EaGbIbF", -"bT.xbKbHbWbq.B#ka7aubqb1anbUbL#JbT.5bM#6.xaAbIbubL#ca7.SbUapbM.5bu.ka9aAbMbJaYbT#SbPbBbfa9#ca9bH.S#cbXby#waA#taHala2.5bKbSa9.EbMa9.SbhbLbM#6b3bTala7ana2bLbqbTbe#3aAbQ.6a9bN#Qbtbqa2.xb1a4bzbqa6", -".x#lb0b..Ebhbqb1a8btbmbbbhbJa2#5b0bebTa5b0bJbBbIbNa9#5a9.x#3.SbXaZa5.HbX#B#UbLb1a2bYbYbMa9bobtbF.0bJ.SapaAaGbG#gaGbSbJana9b1bY#3.E.x.Z#cbqbQ#cbqby#cbMbIa6bLawbEbH.KbtbLbeaOa7bqbealbube.5bK#.bo", -"bK.BbLbX.ZbXbL#3bKbhbu.ya5.ibPbTbLbh#5.Qby.k.i.k#5.Bb0.BbPaHa4a9a0a8#qbL.Qbnbq.ga7#laAa9bT#B#v#jbK#k#ka4#kaKbTaHbL.Ebl.5bN.6a4bIaza2apbt.cbY#cbb.ZbI#cbfapbSbIan.iaMa9bN#l.i.5#4bI#c.na9bIa9bHbe", -"btapapaW#kawbe.0#8aVaW#5a4a9.i.IbNa2a7bw.OasaGbh.F.naG#l#5bBa9#qbBbFbO#5bMbOaAbB#k#X#kb0#kb0aZ#kbS.e.S.0ahaObSaybHa7#k#kaA#U.nbH.0.Z.0bHb0#P#k.S.BbHbebMbI.x.Zbt.J.7.Z#k.S#T#k.E#4aObN.daF.e#4#P", -"#kbQa7btaGa9azbY.WaGaGa4a9.Ob0b0a4bJaHbFaza5aAas#VbL#kbe.0bMbWbwb0bL.xa8bIb1bJbJ.O.F.I#ka2#ibHbBbIaFaC.SaHbY#l.0.0asbPaAa1.KapbPbMbS.0bSbq#l.xbqbTbY#kaH.0a9bt.K#O.Y#P.Ja7bSbQbEahbq.E.Zat.BaVbH", -"btaGaH.7aCbHbNbS.WbsapbSbLa5bO#6.b#k#lbo#5.gaGbcbTax.5be#k#xa6#n#3bIboasbFbebJbO.jbRbLaKaMbo#m.ia6.xa4#PaHbOaFbqa7bBaO.xasb0.E.Z.Eas.x#lbqbzbKbV#c.Z#xb0bY.SaH.EaC#m#.axb0bNbMapbL.4#.by.CbTas#l", -"aF.SaHbJbNbMbC.Zapa2bGbQ#6.KbC.IbG#cbq.K.5#m##b1awbX#k.5aGa9bT#5.xbm.Sa0.FbhbH#qau#6#JaA#B#hbc#5.B#k#4bO#.aGbSbIbeaDbM#k#5apbLbu.E#3bXbtbX.nbob0bKbT#Va2#6bJbIaG.KbDbEab#5bEbS#tb0a0as#lbMa5aA#B", -"bHbOakbE.E#..Ba7aLaT#c#3btaG#NbY.dbfbN.ZaIbKbPa8aC#NbNbSbXaGaAbebObR#5.xbBaZbJa7.k#9aZ#Lbu#vbeaZbKbHby.xbHbO#.#PbTatasbyaB.VbS.x#cbt.FaGbXbLbN.Zbi#cbT.Ea6bYaG#kbObY#ubEbobuapaGa5b2aZbPaZbLau.G", -"btaSaB.D#lbT#ObP#ta6#3#3bBbHbe#k#5.5.ZbFbEby#hbqbq#.bu#lbKby#5#BbEbXaYb.bL.9bXbX.i#BbB#Ab0bLbJ#lbM#k.F.5bJbTb0a7#9btbe#5bt#JbebMaMbqaMa2bzbobt#3bTa4bMbo.0bXbIat#J#3bYa2bJ#6bo#6.K#5#mbtbBbKboaA", -"b1#l.j#Q.D#H.B.xaHbyanbYar.1.xaya2a6bY.x.ZasbIaA.Ba4.5asbE#B#5bL.KbLasaCb#bKbXa2#qaAalbua5.S.5.Ebt.zbXbMbTb1.xbzbIaCaAbyatal#5bt#ca8au#6bebRa9#6as#cbN#cbWa9a7#kaH#Va6.E.E#c.xam#lbBaw#5.5bBbEbA", -"#U.4.0.Q.ZbMbObX.KaKawaKbP#5.bbq.M.Ta2bWawa8aAbI#kbRaGa4bJbubPa9#3bIbPb0bTblbWbn#3bLbt.w#V#U.Z.z.I.ZbRbKb1bLbXbWbBbebLbtbfaK#c#uaA#6#6#S#vbSaMbe.EbHbI.0bo.xa9.Zb1#k#V.xbNa1a1.ZaU#q.dbNaL#6aRbN", -"ah#4bS.Va7#e.Maibqan#kbXaw.BbLbYa2aha9bIaAbGahawaAbB.ibXbT#c.xbbbJapalbe.xbO.#asawbJ.QaObXakaZa9bXb0aAbA.0br#5.sbNaha9#cbVaCbYaVbDaw#c.ZbeaBaebMbKbP.qbMaAbYa1b0bEbSbE.Ba7.i.Q.BbObNboa7bM.Sa7bW", -"aOaw.xambN.M#2bGbJ.0.Z.xbT.E.ZbHapa2bt#k#3bIaibQbTaAbRbT#k#BbMbMbybybNbe.S.O#..Zb2.2.5b0#H#kbKbt#5bu.ZbM.k.K.xbe.xapbea7aG.0aG.5a4bEal#6awbT#Ob0akbT#c#.bH.SbLbIaUa2.xalbH.0.S#sbebf#J.ObNbJbN.O", -".7#l#4.SakasanaObMaGbqbN.0b1bQ#..daGbIbJbTbTa6aCbObIbH#S.Za5aY.xa5#jbobo.K#5bFbLbtb##U#Rbq.hblba.0bna0#5.QbO.EbM#haA#.bLbMbKa5aAbCbBbfbTbqas#3bWa7bNas.Za7.EbYa1bMaVbt.EbYa7#O.BaKbXbuaHbqasbH.E", -".S#6.Z#kapbT#4bIanbHbRb2.S#cbO.xaybb.BbX#t.Z.V.abJbTaA#5.i.F.KbKbFbFaa#3bf#vbobbbnapbM.S#2#lbKbra9bXbI.0bebMb0#h#6bXaAbM#3bnbPbubobH#.bzapbLbNbIaHbP#ca2bI#5a4bLbK#k#k.Z.B#3bPa7bYbbbobJaG.Ea9ak", -"bLbq#kbJ.S.x#c.E#PbW.Z#l.6a6.nasbQ#4btap.0bBbS#cb0bTbBbLaIa9bL#5#q#taAaaaK#nbtbt#n.ZbH#Rb1bqbUbJbKbz.K.ZbobLbtaZb.aZ.kbM#vbIbM.ibTbFan.KbRbEaA#5bqa9bebI#cbLa2bu.x.xbFbPbIan#HbeaA.KbT#m#kbo.Zbq", -"aIbMb1bHbP.pbLbP.xaGbJapbSbX#.#caCaUbTbTbAbX#c.JbXalbXbb#ia7bJala4aM.Ka2#LaC.Kbwb2bBbO.BbL#U.0#mbXbJaAb.bIaG.PawbMb0bMbn.0aKbHbXa4ae.iap#lbIbo#kbBb0bo#cbPaGaAbua7bI.ZbE.E.xaybbbBboatby.2.Sbq#V", -"bLbTbMa9bP.S.xbRbLbYbPakaAa7bM.E.N##.K.Fa8.SbtbNaG#kbPbrbTbIb1bK#Ra7a7#3bbbxbu#qaA.x.5.0.x#XaK#3.xbX.Ka7bLbIbyaAbq#cbq.Y#3aObb.S#k.sa7a9bPbt.aa2bTaAaGb#btbubt.KagaSbL.SbLawa9aVbI.KbtbM#3#cbJbX", -"bc.FbT.g.haqbMbPbP#ebIbN.6a7#kaAaV.cbtb0b2apaObEa5aAb2.KbIbubl.K.B.Z.7bM#5.0.KbE#vbHbXaf#ObY.IbobhbNbm.ibTbhbT#u.SaWaVbHaG#c.ZaU.A#YbIbYbfbSbGbibo#3aMa9#mbP.K.Kb0.Q.S.xa2.ZbNaCbb#6bo.5bTa7bq.B", -"aw.S#4.cawaS#P#.bqa2bX#.#c#caPa2bHbQ.FbY.d.3aw.o.J.5.5btaGa8auaY#GaebXbWasaK#v#a.H#ObPbJ#3aAaU#cbL.KbIbK#5.xb0bI.a#4.ZbbbL.SbI#..I.SbT.E#k#1bL.6bTaNbo#5#3.YalbLanbqbSbTa7bPaxbubfa7bz.0.Yaw.5a4", -".Ea1.6#2bSbqazbX#kal#c.xawaGbSaUa1.5.5a2.WaCaybYbEaVaH.SaAbq.kbaak#k.0bX.xaY#v#5as#sbB.S#ca9#ca9bK.I.Kb0b0bI#kbKaO#VbHaw#3.Sa7aebX#I.xao.wbq.5bM#5.Zbua5bEbe#vaGbybB.S.Ka2#cbz.SbYb0bBbB.Z#5bo#k", -"bNaG.6apbY#k.r.7aSawawbXaC#caCaP.xbYak.VbNbb.WaWaxbM#c#lbNbXaAbIae#O#.bq#tbO#9aKbRbT.S.ZbNbyaHbNb0bPaAbBbJ#LbebMa1bq#kaKa9bL.x#NaH#Q.x.Z.S#Hbq#Xbyb0#5bMbFbBb1beaAbL.xbtbP.KagbJbqbtbL.xbubTbqbM", -"awbIaCaC.x.0a2aG#k.O#kbq.xbGbS#6.SbHbMbSaCahaGbB.Saz.ZbLanbPbTaY#l#.bTaAbqbeaA#La7aGbFaBawb1boap#Jasa9bWbWbIbObX.NaGbSbP#5.ZbrbMaAbL#kbIbM#hbKbX#caA#3bebuaAbebfbq#6bNa7#5a7bEbobubEbTbE#4#3aGbL", -"###caG.SbEboaGbMbMbY#Vbea4bvahaW#PaC.Zbq.0#6bz#6.J#Waz#J#lbPbLbt.0b0.xaKbO#mbLa5bwb0#kaH.Sa2bWaAbIbJatb0#6.iap.xa1bY#5awa0a9bnaebaa7aY.EbXb0#l#ka8#Ca9bobTaKbYaK#rasbIbLbN.SasaG.4a2.SbobXbK.Ybq", -"an.5bua4by#5.O#c.haCbJanbY#caJbfbHasbNbY.2aq#JaAa7aGa2bybOaAapaYb2#9bLbPbWbXb2.SaHaHanby#3.hbTaObX#3bL.SbT.x.ibTa2bN#5bBaGbobJbqbt#lb#.EbJ.5a9bL#3beaKbOa9bu.E#vbK.MbtbqbN#5bM#3#k.KbtbMbI#c#cbo", -"bobfbLbYaAayaA.M.Eal.nbybLbubE#caia1.7btbBaM.L#BbSaC.5#kaCb0bOaYbMbAb1btbPbL#nbLaU#u.SbebNb..5#sbMbub0a9a8b3bTbI#V#3bubF#q#vbn.2.KbMbo.kbObLbJbJboboaC.KbY#man#mbqbBbLapbMbbaGbS.5aHa7a7bYbebLaG", -"bT#Eam#p#5aAaL#3bOanbqbVbEajaHapaO.SaH.SbObhbM.H.a.SalaGbTbYbh#6bJbM.p.2a9aA.0aoboay#9.E.x.E.g.2a8.5bn.sboaA.Z#6axbF#Ea5ab.4btbJb#bbbPbzbNaAbxbM#5#5.K.iaqbB.K.Fa9anbTbH#k.EbP.SbIbeb0bYbu.x#3bq", -"#PbN#Ta9aVaWbtaG#VbP.ZbhbXbM#h.G#d...ubYbq.7#k.0bNbwadbSbea6aV.5.X.1bE.J.ZaAbS#5.5.Z#T##bY.E.F#l.EbH#c.Ebu.ZaH.CbTbMbXbT#n.5bMbM.JbEbG.5bBbSah.KasbqbtaYala5bJbJ#cbo#3bNbubnaC.gan.cby.Obu.waAa0", -"#4aGbN.E.BataG#ubY.x.EbLbM.2.iaKa9ap#EaGbAas.S#..BbYbNbN#c.Ea2#3#c.JbN.5apa2bRb0.FbNaA.6bWbQ#.bPa9by.Sb2a2bTbE#6bTbIbq#5aA#5bua0beapbEaGbq#capa7aAbMa0bIbt.KaAb0ay#3.Ka2.BbI.sbqbSay.x.Z.xbo#SbI", -"ak.EbSaVbRbSbbbbapbi.KapbF#5bCbtbBbbbOaAbIbI.EbXbI.0.Ba2bqaG.5.dbSbNaCap#mapbubLaM#kapbFbhapbuapaCbJbobSbqbo#FbHbub#asbJbhbJbh.B.FbHbq.0a2aw.BbtaAbubXbI#kbXbPbAaPasbo#5aC.5a7.hbt#kaH#5#c.IbL#5", -"aB.0bMa4#6bP.KbtbDaW#5.W#yaw#qbybLbI#vbXbT#hbLb0ay#5#3#kbA#cbBa9blaGaMbo#Ebh#W#maG#q#Lb2bobe#vbz#AbNaB#5bo#5aw#v.0b0.KbK.EaAbJb1#3bKa9.KbObJ#c.xaAbLbobLbMbubIaYbDbSa6aAbI.Eb0.5bt.xbubH#ca7bbbL", -"aq.nbX.SaH#3bLa9#B#BbiaTap#wbi#Cbh#kbh#5a5#6bm.ibJbqbMbpbM.0bMbb#p#jbu#m#J#9#9aMblbu#6a9#5bfbIb0a9bfbUbIbyb0bobWb0bt.i.SbX#m.Bbbbq#c.KbNbza4b1bKbWbSbLbObobLbeb0arbbbu#k#6bLbMal.EbMbE.Bala9#k#c", -"#kasbMbybXaZ#v#qbn#3boaAbWaXbK.R#I#hbJ.5bU#ha2a2aAbTbEbO#5aAbM.0b0bb#m#6#tbTbhbnbzbobT#9bobeaAbb#ubIbe#p#q.Kbbbua9bPbI.KaY#kbh#6.8a7a7a5bXbBbJbI#kbu#la8.OaYasbMbN#3bL#5.D.i.S#Hbf#h.EbubNa9.Bbe", -"#QbLbIbPas#5a9bP#Lbra7bBbtbI#c.x.Z.EbKbJaha4.RaNbTbLaZ.ZbMbtbFbJbtaAakbO#q.ibWas#3#I#3bY#2bJaGbHaLbeaAbebybt#9bT#kbPbMbPbtbebH.EbX#nbIbObqb1b0#vbRaZbt.BaYaw.5aA.R#3#8#k#cbHbXbMbhbcb1b0bTawaV.0", -"bTbTa7bmbRbhbma9.g#b.y.waG.UanaCbKaH.Ea4bN.Jaya4aYbKbubTbL#hbr.Z.SbYaY.ObL#sbPaYbq.5ak.E.7a4aebY.kaLaMaM#mbS#qbtbra9bTbobLbhbX#haZbP#hbXa8#h.xb##.aAbPbPbXaYbJ#v.Bawbe.x.KaA#k.QbTbTbXapbE.xaCbQ", -".K.K.E.x.xbY.Ka9.bawaDbq.v.ZaO#da1a2.ca2.aa2aGawbMbTbObTb0bB.zbe#T.V.xb0#ca9a8#Ja4.S#5bH.Oa9.B.SbtbTbL.ZbH#lbBb0aG.ZaAbI.ZbubLb0#k#K.n.bbNazaq#q.SbE#iap#Db1#l.5#3.KbMbAaAbE#BaAaKapaAa5b1bTbua8", -"bwanbObI#r.7bu#ybSaG.5.Q#G#.bVaw#cbLa4.BbObQbqbGbMbLbtb1.KbPbMa9#..MbqbobRbMaBa8a9.5b1awbTbSbybKaAbX.S#3bXbP#NbM#qasa5bMaAbIaAbL.S.x#4.M.SbYa5bLbqbSa9#zaAboan#.bLbwbubebX#qbS#5.x.i.KbI#m.2asaA", -"#6be#3a1.E##bmbMbBbYbP#UbRbRa7#6bObWbXbI.E#qbJbTb0byaqbJbMbXbWbt#X.NbH.ZbNaAbu.i#cbKbKbfa2bBbXbN.ZbTbRbT#sb0#5bJ.Z#.bPbXaMb1#6.E.IbR.naObN#kbTb.bI.EbobMaAbAbHaAaGbJaA#c#qbCbo#5bLbMbL#cbObXbObX", -".KbJ.7#XbSbWbtaG.Sa0#sbTa8a7a8bTbIaKbLbIbJbhbR#3aAbLbMb0bMaAbIaA.7bMbN.ZbS#BbX.Kap#AaibW#kbNbTbIb0bXa7#k#3.IbH.iasboaYa2asbqa5bIbLa7bMaW#ratasa0a1bq#c#va9#3.xak#5#nbe#3#5bebXbIbMbtbJaY#kbXbTbo", -"bFbz.7bT.5#kbybo#hbWbobtb3#na5.7#J.IaYboaYb2bPbOasaCbe.Kb0bPbeaBbWaObMaHbJ#EbY#mbqa2#kaAa2#5aO#c.5b#ag.5b0bObK#2aZbL.EbT#5bLaYbJ.K#vbNaG#k#3bubIbT.F#Lbea9#A.ZbKbQ#3b1bL#3#6bObtaAbOanaBbJaAbTbb", -".Kbna2bq.Z.0#m#vaZbTbo#L#BbubPaAbr#cb1##bM#tbH#vbMbT.Za8beb0#.aA#ka9bPbObL#kbB#5bSb0aGbIbqbT#Ja7b#bIbObnbP.Bb1bEbLbobza0bLbobI.Ka5b0byapapbQ.Ea8bHbLa2bobS#3aG.xb0bfbE#3bub0bz#c#6bIbhbI#6bLbebM", -".KaKbYae.S.B#5bIbqbtbu#y#E#cbSbJ.F#3#ca2awbIa4aHbIa9bIbTbWaA#hbq.h.7bHby.fbt#6bYbqapa9bMbBbYbNb1#k.F#k.0bI.0bh.ZbIbh.Eb0bt.Bbha7#maK#Sbi.V#k.KbX.E#kb0a8bua5.5.0aI#AaKbuaK#5aHb0#hbtbRaGbLbKbLbA", -"b0be#P##.EbBaAapbPa7bNbv#7.a.0bObsaFapaGbGbSa2.6aAbTbMbObJ#5bI#5bIb0bWbtbIa7aWbVbtbM.xa9.ZbTbqap.x.s#3.g#3bL#NbK#3##a9aY.xbh.0#5#Jbh#EbebM#cbT.6bqa4b1aLbNa9bM#VaM#6apaA.xa9aM#5bJbM.BaZbXa9bubX", -"bybIbSaGb0.caMbYbJ.r.5#k#P#XbL#.as#XbJbK.2btaGbD.Z.PaYbH#h.B#cbb#KbebqbbbNbiay.Ya7.Z#UaObH.6#2.7bJbH.0#3asbKaA#5#2bOaSbLbPb0.S.g.d.KbGbEbNb0bXbn#X.B#H.0#2.Z.n.SbYbHbMbE.KbTa2.Za9#caKbo.KbtbMbo", -".5aAbWbS.Ebo.Z.K.BbJbEbX.5aH.5bqaA.EasaHbobeaGaC#s#XbIbLbIap#3.O#3.xbIbtaCa2aLbs.SbObIbU.s.xaAbPbIb0bLaAb1bb#6#mbM.0bt#UbN.g.ZbLbu#VaH#ka0bo.5aK.ZbP.KbJbWa8bJ.Ia7aK.SbEb#a4bLat#nbobebLbNaAbTaM", -"bbapb1a9bobP.xa4aGbqbq.Ba9bOaHbqbT.jbXbI#cbMbiaGbWbI#XapaSbObIbEbqbua2bo#5bV#6aybW#XaF#IbL.Oaea7#O.0#kaBbM#qaA#maA.gbbbTbJ.EbBbJ.dbMaGaAbNbTb0b#b0.hbH.BbRbIbEbWaAawa7beaFaAbMbebtbWbL#t#L#5#3#c", -".5a4.E#kbd#lbXbOa7#cbo.xbHbO.E#3#ka6bobLaGbKbq#3ae#.#Nb0a8a7aH#6#tbzbI#6#cbCapbobMbMbF#k.Bbr#.b#.Zb0#6bOasbMbybMb.a9.i.SbqbLbcbTbNa4#6a7#cbTbJbIbbbT.KbObKbF.g.K.0#3bS.4aG#3bY.xbubTaGapbYbMaAbL", -".5aA.K.K.ZbGbBbVbobHbybz#kbB#c.SbNbebHbea7a4bTbMbTbM.IbT#.aGbJbSbF.E#EbJbebtaYbu#s.SbWb3bybI.5bIbH.gb#bLaAaY#qbIb2bMbY.iaAbXbLbf#eawbOapb3bLbBbT#ha9bIbh.0b0bLbPbY#5bX.BboalbI.Kby#A.KaAbe.K#5aH", -"#kbtaGbqbebX.7bO#c#JaGbPbo#3b0bu#haHbebWbXbBbqbW.Pa7bJbO.EbubKapaM#3bXaYaAbRaZbPbBbP.Qa9.gbI#3bI.xbTbI#cbmbebobJaMbM#3bKbP.Y#ua8#cbG.K#kbebqbnbLas.KbXaAbP#3a9bMasap.5#6#l.x.6awbzbubtbfbbbeaAaK", -".B#5.5bebYbta7#3#6bXaG#x.KbY#qbNboa4.Ma9bNaA.gas#..l.QbMb0#c#5b0#5#j#3bIby.kbWaYbMbBbCbr#3bKb0aAbL#ObLbP#3bhbT#nbLbobPbybeaA#Z.K.MbH.ZaC#6bTbtasaZ.Kbt#5bobLaYbebWaCbya7bNbuby.7bob.bebtbL#nbYaA", -"#t.5bTbMbHapbMa7bea9bobo#maAa9.KaHbl#AbQ.4.5bq#saS#2.Fakbh.x.BbDbo#5a9bMa0b..g.I#qb0a8bJ.Zbrbt#3#HbXbN.ibTbobP#u.i#g#3.iaAaK#6bnaP.xaGbtbM.EaYbLbIaM#ma8bIabaAaKbt#ka9bIbebFbHbqbmanbT#3#5#5#5bl", -".nbH#c.n#lbq#kaHbX.SbTapa7bEbBb2#ca2.J.6a9.ib#bT#cbe#t#3bI#DaAbX#6alaAa9bB.E#mbH.ib0asbebbbKas#3.0.KbPa7#l#cbo.Z#5a2#5aAa9bybTa9#Q.x#N.x.ZbJ#kbqbL.BaebWa7.O.UaSbN#qby.Zbo.0.SbNbqay.E.N.Ea9.MbE", -"a7bYb2.EbYbP.xb0.SbobVb0.KbNb0.Eaya1aGaA.ZbqbtbJbzaAbeaAa4.K#BbTaqbBbIb0bRaYbIbobJ.KbubPbLaAbo.sa9#c#k.KbubIaqb1axaw.0be#.#3#kaGbTbLbIbqbP.jbM.B.S#R.xaO.i#2.x.ZbYbIbua9.BbI#lbKapbfbubMa4a2at.Z", -"bLbH.E.K.Zb0.xaxbYbMbq#6#lbO#3aAapb0bEbEbn#.bOb.#Lbbb1bt.Kbe#.aGbMbLbTa9#.bObJbIbB.z#5bLbobI#ibb.SbebXa9#kaGbz#c.ZbTbN#kbO.Sa7bQ.PbPbobLbI.F#5bXaA#NbMbT#Ia7.IbIboa9btbObNbP#V.ra7bNbNaObw.fbOap", -"apbyaw.5bL.SbEbK.x.E#5.Z#cbA#caGan.Ba4.Faqb.bbaYawaA#5bSbLaMa9#5b#bMbBaAbTa9b0bqbo.Eas#hbWbXbL#3a7bR.FaHbt.6.SbIbqbtbtbJbqbobebEasbybXbfbX#3bJ.F.h#lbI.BaA.sbQbMbP.E.ZbNbIa9bB#k#3asaHawbqbX.K#.", -"aAbSasaGa4bIbS#6bobla7#5bLbS.xbA.x.Nbo#kbEbTbqaMbtbtbt#qawbLaAbt.KbLa8bTb#bIbh.BbXbca9#kbIbNbX.8bF.VbJapbLa9bybNbJ.0.Y#k#6.xbu##bO.xbK.SbIa8#k#tbWaAbIbIbH#lb1.0bt#6b0a2.EbAaCbIbS.EbL.0boaHbRbN", -"bT#6btbt#L.Kbh.KbI.FbobIbJbqaAboaw.BbNbIaHbXb#.U#3bwbT#6a9.Ka9aG.Ha9#kbJbebLaAbU.KbMa9aAbMa9bJbL#3aGb0a9bubL#rbtbNbobO.EboaG.K#6bTaMbOaMbtaYbtaMa7bJaAb0bOaK.Fbo.0bYbqaqaAbt#5aZ#kbebObobX.gbuas", -"#qbSbPbKbubAanboapb0.Eby.5bYb0bYa4#cbRbPa6bObL#qa4a9aA#3#6bubu#5.ga2b1b0bJapbL#3.saA#lb0bTbtbHbIbQ.Da9.7.x.7apbJa2bPaHbLbY#k#6bMbEa8bB.ibJbIbOa9.ibMbqbnbe.Ba5bJbT.0.Z.S#5.B#t#c#q.xaAbta5.SbMaA", -"aHbxa2be#6bBby#t#k.xbua4a4bPa9aHap.0#cbAbWbIa2.l#JbKa9bo#AbTb0bzbeaAaAa0btbI.lbLbybXbAbTa5bLaZbubJbubLbya2anbJbT.2a9a2bXa4bTaHbHbubnaA#Lby#3a5bobubB#q#5#hb0btb0a7bM.xbA.xa9bYaKbKa8asbrbOaY#vbT", -".5a9apbX#cbH.SbybYbM#5bYbKapbIbX.M.Vazay.ObAbI.SbFbPbf.Ca4b0bobLbP.xapbN.7.KbwaAbqbL#ka2.SbLapa2buaGbPa9b0au#c#6.Maw.Va9aAbPbtbL.N#c.cbF.E#6aGalbPbM.YbNbW#cbLaGbHaC#4bLbX#cbIbHaF.Zak#l.B#k#Pa7", -"a9.xaw#kbN#cbo.6bMawbIbMboaFbuap.MaH#ka2.Kaw#3bL.hbPapa8#5bTbLb#bq.Z#kbJa9#JaubebY#6btbP#3bT#c.Ia9bOa9byaAbu#5bea9.0a4aAapbqbOa5bYaQa7.R.0.EbIbIbfahbO.S#3bqbTbo.7.xbf#3.xa9#ebeb1bMa7bo#.#Ha9.E", -".K.nbNa2bA.Z.6bYbY#kbK.M.xaBas#3.Zad#5#.a2#k.EbNaAasbMbTbXbP#3b0bqbNaA.xapbJaHaKbTbfawaHbb.Ea2bK#3bebtbeaKapby#5anap#kbYbT#tbqbT.S.x#5#haC#qaYbJana7#3bY#3#3bHbJbI#6bSaA.FbQbOaw.0bG#kbLb0bQ.rbM", -"bQa4bHbqaCbbajbQapbMby.KbtaG.SbyaGapan#ka9bX.K#6bMbK#cbRbI.7#hbP#4bLaObSasbebB#xaw.E.SbP#lbobQanaKbtbWbtb0bL#Mb0bLa7apa8bObTbHaMbPbT#6a0.zbIaAbh#lbbbLbSbq#5bWaCbo#6bqbybebPbubFbq#kbPbYaCbJbta2", -"awbLa4.S.Map#lblbUaw.xaAbNbr.ZbPaAbIbtaGapbQbRb1awaYbM#vbfbJbtbXaS.xbTbebMbYbfbI.5bSaA#c#6bHb0#cbbbOaLaAbubN#5bo#5bWalbIaAbybJbTa0bobIbTa5bMaMbPbTbSbPb0#5bN.EbybI#c#v#6aA#5btbI#3#cbI.S#6bu.ZbT", -"aGbqboaGbJ.5.K.SbE#c.5bobO.S#5.bb0bh.hb.asbMaG.7bLbzaZ#3#kasbPbI#ka2.ZaH.Ya5awbtbQ.KbMbubY.5bybPasbe#vbQbFbb#JbubXbn.ib0bLa0bTa9bObJ.gbebMbSbJbNaGbqa7bo.xaGbIaHbB#mbobwbe#3.KbBa9#5by.KbEbTbTap", -".xbyawbqa2bzbHbNa9bL.E#3bNaG#3aAa9a8aZbLbKb0anbYaY.SbLbOaAbL#5b0.E#kaGbIbOblbB#vbX.7#5.ZbuaGbMawbBbya9b0#3bfb0#5a5.G#5.ibMbeaAbMa7#xbf.Z.ZbEaC#c.EbTbSbMaG.0bfapbIapbRbtbl#m#3bOa9b#a9bL#mbB#c#n", -"bz.xaGaia6#kay.ZbIapbP.xbYbP#kby#bavbh.Ka9a7be.xbS.i.EbtbJa5.xaA.E#5#kbTat#5boa9bNat.EbTaEbXaGbWa9.KbebE.KbT#5#3bg.k#h.sbnaA.5a9bTbB#Pbo.Ma2adaVb0#cbuap#ka8a4bT#faAabaM#qbobeaA#5bo#v.K#6bE#tas", -".5#4bfb.be#t#k#c.F.0.0bYbO#P#c.FaFakapbYbWbNaM.K.MaGbBbqaH.SbmaZ#d.BaiaGaGaHaCby#P.B#e#PbR.x.xasb0.IbWbTbIbo.ZbMbYa7bIbN#k.E.x.I.6bLbMbYb0bX.M#6#lbJ.Z#NbT.t.s.xa4#3a6bR.S.Ka2bo.WbY.J#cbua7bX#3", -"aG.EbfbebEbE.n.Eb0aw.FbEasbMa1bL#k.naAaGbMaw#.bA#caCbYaAbzaAbMav#T#k#V#lazbT.RbObq.0.7bLaFbIbQa7#kaK.EaKbXbMb0b.aHa9bSbe#kbP.Eae#kbobo.YbuaAa6bT.IbM#..EbIbMbBbTbIbqbL#c#6bMa9bq#fbSa9aH.K#3#can", -"bX#caKas#6#ta7bIa7bBbLbPbYbo#5a2bK#4.JbI.MbBbobbaybqbY.xbJbMa9bI.xaGaqawaHbTbQ#cbW#c.5bfbxbobt#SbtbIbRbJaYasbXbtazbXbobMbPbJbTa8#ca7.ZbN#kaH#3an.B.4aZ.ZbhbK#Q.x.xbt.EbP.EbYbLbt.R#caUb0aGbqbyag", -".5aObobnapa8#c#Pbb#t#3aK#tbo#JbB.JbLbEbQ#kbuaH.Jb0bX.6#5.xa4#5#kbTbNaCbMawbK.KbLbybPbu#6bbbZ#vac.Zbn#kbTbebLbfbIaybobfbo#DbM#nasaHbX#5bMbSaAbMbM.E#5bJbM#3a7a9.ibybSbNaM.xaw#3bHaW#6aLbea9b.#B#.", -"bIbKbeaG#vbe#c.x#3blan#t#k#xbubobRaVa9bNbMa2.EbEbObtbB.0ap#5.0.xawaAbMbHa9bS.S.K.KaKbwbt#q#ubZ#jbLbTbObTbNaYbebTbYbSbY#6aAbt#m#qbqbo#c.S#5bo.O.KbtbTa8.6.Eb.aAbL.5bTa7bHbe.x.ZbtbtbPbYb0be#.bnbH", -"aC#.a9bFbobtbPbLbLbobe#3bbbbbt#qbban.EawbE#.bqbEbHbfb0#5bI.x#c#cbLbXbybtbm.SbI.ybN.Kbe.K#qbD#q#za8.5bfbBbJ.BbTbLaVbMbV#3a6brbT#u.ZbA#kbF#.bMbEbW#B#.bB#naA.K#3bT#cbLapboa2#5#.bobu.KbubyaAbhbIb0", -"#Oa2bX.KbeaA.5a1b0.xaAaAa1#kb1.6a9aA#DbH.ZaVbKbqaA.SbJaA.XbS.S.b#gaA#t.EbL.xbMbWbea2bRbtbubWaM#5.ZaZbP.EbMbJ#mbJ.V#GbHaH#3bc.KaYbL#ca9.0#5a2bqbfbMaZbtaZaAbM#tasbeaCb0bTa4.x.K.E#vbE#LbraKbKbIaA", -".xakaKbybW#6bM#l#ka7#k.nbM.0bH#Pa2#3by#..K#kak#0bnbMaA.5.K.BbNa6aK.ka9bLbc.wbL.7.xaAbqbAbo#JawaB.KbLbq#BbebMbMbL.##Va7#2.S.B.0bIbEb2.7#6.Z.KbJbq#m#5a8bWby#ua8#6#3#lawbTbea7bL#3#3#J#5#.#3.ib#bM" -] - -stonebright_xpm = [ -" 96 96 250 2", -".. c #7b927b", -".# c #daefcf", -".a c #b5cec3", -".b c #ebfceb", -".c c #cce2cb", -".d c #e5f8e5", -".e c #99b499", -".f c #effeef", -".g c #e8e4cf", -".h c #d7d3bb", -".i c #f3f0e7", -".j c #faf7e6", -".k c #bfbbb0", -".l c #fdfbf4", -".m c #dae9c1", -".n c #e6f4db", -".o c #bbd9c7", -".p c #fffdf7", -".q c #91a680", -".r c #effbe4", -".s c #e3e0c9", -".t c #b0c2a0", -".u c #eafeea", -".v c #d3ddb8", -".w c #f0ecd8", -".x c #e3ecd7", -".y c #f8f5e3", -".z c #d0ccb3", -".A c #b6b297", -".B c #f4fbea", -".C c #fdfaea", -".D c #f9fff0", -".E c #eef6e3", -".F c #bbc6ab", -".G c #e3d9c9", -".H c #ada99d", -".I c #ede9d5", -".J c #d1e7d1", -".K c #d3ddd3", -".L c #989c86", -".M c #dff3df", -".N c #e8fae7", -".O c #f7feee", -".P c #fcf9e9", -".Q c #f6f3e0", -".R c #daefe6", -".S c #d9e2cb", -".T c #f9fff1", -".U c #c8c4ab", -".V c #bdd6bd", -".W c #e5f8f0", -".X c #a2bda2", -".Y c #9baf9b", -".Z c #ebf3df", -".0 c #ccd6bd", -".1 c #edfded", -".2 c #a9b499", -".3 c #c1dfce", -".4 c #a2a690", -".5 c #f3fae7", -".6 c #b2bda2", -".7 c #f6fded", -".8 c #fffdf7", -".9 c #869c86", -"#. c #c4ceb5", -"## c #f8feef", -"#a c #e8e5e8", -"#b c #ded3c3", -"#c c #d9e9d9", -"#d c #dff7e9", -"#e c #c8d9bb", -"#f c #e1eaed", -"#g c #edeaed", -"#h c #dedbd0", -"#i c #fefcec", -"#j c #d7e0e3", -"#k c #e6efda", -"#l c #f5fceb", -"#m c #d5d9d5", -"#n c #f9fbf9", -"#o c #e6f4f1", -"#p c #effbf9", -"#q c #e2e5e2", -"#r c #f3feea", -"#s c #dedac3", -"#t c #eef1ee", -"#u c #f6f9f6", -"#v c #ced2ce", -"#w c #f0fcfa", -"#x c #fbfdfb", -"#y c #e9f7f4", -"#z c #b9c4c8", -"#A c #fafcfa", -"#B c #f4f7f4", -"#C c #a4b8b4", -"#D c #c0d2ce", -"#E c #c7d9d5", -"#F c #8d927b", -"#G c #f0f8db", -"#H c #e6e9cd", -"#I c #d6d9bb", -"#J c #f1f4f1", -"#K c #f9fbe4", -"#L c #bec2be", -"#M c #fcfefc", -"#N c #e2e5c8", -"#O c #eff1d7", -"#P c #dfeed3", -"#Q c #f7f9e1", -"#R c #cfd2b2", -"#S c #b4b8b4", -"#T c #f0fce6", -"#U c #fbfde8", -"#V c #eaf7df", -"#W c #abafab", -"#X c #eceed3", -"#Y c #fdffec", -"#Z c #a39f92", -"#0 c #f3feea", -"#1 c #fafce6", -"#2 c #f5f7df", -"#3 c #e6efe6", -"#4 c #d5e5c8", -"#5 c #dee7de", -"#6 c #f0f8f0", -"#7 c #c8e5e2", -"#8 c #8daa9d", -"#9 c #c6cac6", -"a. c #f4fffd", -"a# c #eefef7", -"aa c #e7f0f3", -"ab c #c9d4d7", -"ac c #b0bcbf", -"ad c #d8f1d7", -"ae c #f2f4db", -"af c #bfc2a0", -"ag c #fcfeea", -"ah c #e3f6e3", -"ai c #eafbea", -"aj c #abc6ab", -"ak c #cfdfc1", -"al c #b4b8a4", -"am c #f5fff5", -"an c #b8cab8", -"ao c #abaf8a", -"ap c #cfdfcf", -"aq c #94a18b", -"ar c #f5fff5", -"as c #c6cab8", -"at c #a4b8a4", -"au c #9daa97", -"av c #fdfff8", -"aw c #c0d2c0", -"ax c #f4fff4", -"ay c #d7ecd9", -"az c #c6ddc6", -"aA c #dcdfd0", -"aB c #fcfef3", -"aC c #f1fdf0", -"aD c #eefeee", -"aE c #899780", -"aF c #ecf9e1", -"aG c #e2f1e2", -"aH c #ecf9ec", -"aI c #fdfff5", -"aJ c #83a182", -"aK c #e6e9e6", -"aL c #dfeeeb", -"aM c #ebeeeb", -"aN c #d5e5e2", -"aO c #e3f1d7", -"aP c #e3f6ed", -"aQ c #eafbf4", -"aR c #abc6bb", -"aS c #dcdfc1", -"aT c #b8cac6", -"aU c #c6ddd3", -"aV c #dbefda", -"aW c #cbe2d8", -"aX c #effef7", -"aY c #e8e5dc", -"aZ c #d7d3c9", -"a0 c #faf7f0", -"a1 c #dae9cd", -"a2 c #e6f4e6", -"a3 c #91a690", -"a4 c #effbef", -"a5 c #e3dfd7", -"a6 c #b0c2b0", -"a7 c #d3ddc6", -"a8 c #f0ede4", -"a9 c #e3ece3", -"b. c #f8f5ee", -"b# c #d0ccc2", -"ba c #b6b2a6", -"bb c #f4fbf4", -"bc c #fdfaf4", -"bd c #f9fff9", -"be c #eef6ee", -"bf c #bbc6bb", -"bg c #e3d9d7", -"bh c #edeae1", -"bi c #d1e7dd", -"bj c #fffdf6", -"bk c #e7faf2", -"bl c #f7fef7", -"bm c #fcf9f2", -"bn c #f6f3ec", -"bo c #d8e2d8", -"bp c #f9fff9", -"bq c #dee7d1", -"br c #c8c4b9", -"bs c #bdd6cb", -"bt c #eaf3ea", -"bu c #cbd6cb", -"bv c #edfdf6", -"bw c #a9b4a8", -"bx c #a2a6a2", -"by c #f2faf2", -"bz c #b2bdb2", -"bA c #f6fdf6", -"bB c #c3cec3", -"bC c #f8fef8", -"bD c #d9e9e6", -"bE c #c9d9c7", -"bF c #f5fcf5", -"bG c #f3fef3", -"bH c #f1f8e5", -"bI c #e6e9d9", -"bJ c #d6d9c7", -"bK c #f9fbef", -"bL c #e2e5d5", -"bM c #eef1e2", -"bN c #dfeedf", -"bO c #f6f9ec", -"bP c #cfd2c0", -"bQ c #f0fcf0", -"bR c #fbfdf1", -"bS c #e9f7e9", -"bT c #ebeedf", -"bU c #fdfff4", -"bV c #f3fef3", -"bW c #fafcf0", -"bX c #f4f7e9", -"bY c #d5e5d5", -"bZ c #dce5e8", -"b0 c #f1f4e6", -"b1 c #bec2b0", -"b2 c #fcfef3", -"b3 c #abaf9b", -".x.0.OaHbI.2azbK.rbJaF.Zbq.EbqbT#..x#6at.S.KaGbOaz#5albJb1b0bAayaw#..S##.xb0an#IbI#NalaFbH.5a6bN#kbSbobT.5bObu.Z#k.5.ZaYbL.ga9aZ#e.EaDbqap#..Z.S.SbP.ZbMaF.BbI#lbT#3ap.xbYbO.SbL.ZbEbXb0awbL#PbI", -"#k#c#..San#c.5bqa7bqb0bR.SbW#P.KbLawbqbLbCbHbT.5bY.c.ibObMa0aD.5.xbHa9.6bHa1bT.raAbIb0an#3#5bt#caAbXbWbYbtbSbM.SaCbq.t.xa5.SbLaAbLapbP#cbo.SaCbt#kbPaybIaOaGbMaOaG#c#k#S.Z#5#3blbIaO#k.Z.xbHbLaH", -"#3bOaHa1.xb0bH.YasbN#c#kbq#cbM#kbYbMboatbNbTbG.K.B#6.Eb0#t#kbz.cbPbqaw#1bt.EaHa9bTaA.KbCbu#pbobkbo.EapbSbJ.YaGbba7bLbSbMbHaZbIbIaCaH.0bH.D.N#.bSaCbM.ta7#3aB.E.EbJbNbOa7aGb0bY.0#lbT.5bt.0bEbq.S", -"bM#VbJbnbObIb0bMbQbOaqapbM.ZbobL.xbfbT.EbJ#caAbHa4#5bTb2bt#lbqa9#k#caBbtbt.SbJa2bmaY#JbyaMbybz#f#5.5awbOb0.Z.KbXbY.xb2a9bLaSbH.Uapa9bY#c#E#5.N#tbHbtbTbebEbKbebQbP#cb0bFbE.SbJaw.Ba9aG.xbM.Z.EbM", -".l.xbR#P#sbI.0.ZbnbVbNaA.Z#3.0a6bEbJbG#k#6bIbqbebK.EaGbMap.Ka7bIaAbF.ZbqaH.O#3#.boaMbhbf#3aaab#o#kbt.S.5bYbubRau.MaMaAbMbMbM#s.x#5bX#6aEbSbAbEa9.0bHaGbq.B#ca7bI#cbY.0bXa9bMbb#3#4#3bqbSbq#kan#4", -"aY.F#ibha7aA.iasbbbo#3bebybL#ybLbN.xbu#la6bSaBbNbrbl.xbV.W#lalbIa.bI#taHb..KbN.ibPb0.Kbb#va9a9aL.K.ZaCbObea7bo.F#v#5aGbMbL#1.E#I#6bu#3.K#5bP#3aG#Sbta9#JbObBa2bobIbW.Z#6#ka9.Z#5bqbHbO.7#lbK.EbR", -"bUbJ.ia4.wbHbh.Zba.O#3ap#3a4#nbUaA#kbYbI#c.7b0.5a8a9bS.NbQ.BbFaA.Zbtbtbt#6bIbFbtaAaAbXbHbLbNbpap.SbebI#5awbq.xan#cbo.KbobHbT#R#Ha9#E#5.Kbe#catbfbIbSbubIbeaKbtaKbY#casaG#kbH.ZbybTaO#cbJ.O.ZbIaG", -"b2.PbIaAaAb1.sbX#Ebfb1#t#qaAbAaH.Ebua4#6#kasboapb2.x.xaGbEbe.5br#9bubX#6bEaKbo#qag.ZbTa7bPbH.5#5#k#5aGb0a7btbY.K#LbL#5bM#X#2#N.ya2bu#C#y#3bo#jbB#B#qbb#c#9al.K#5bTbNb0#cas#3bN.x.ZbEbXaHbN.0.Z.0", -"bq#6bS.na9#ca4bq.Zbtbu.Ea9a7#LblbXapbebqbo#6bYbPa4bXbYbT#IaAaZbqay.B.ba4bNboa2#5.x.EbYbo.F#5#DaAap#5bI#ka4bX.EbRat#kasbJas.O.Zbq.7a1aO.nas.S#2#e.2.ZbHbX.S#5#L.SaVbY#caV.MbSbG.dbObqbIbMa3bb#c#L", -"#kaG.San.6#l.EbAa2b0#k.Za4.Oa2#3.FbMbb.ObJaH#kbRbGa1.nbn.5bn#sbM#N.Y.EbSbEawbebqaC.BbIbJbq#6.K#J#cbT.B#3.0beb0bQaAb0bLbqbIb.b#bO.baya7.E#P#kbP.z#e.x.db0btbE#6bBbTbT#caHbTa2aGbY#3bAbBbSbTb3.EbK", -"bwbYbMbEbo.Eap.x#5bHbebo.LbLawbE.x.ZbqbYbMa2.x#5.ZbJbXa7.ZauasbPai#kbE.BbYb2bzaHbP.Z#.a4a2bJ#5#6a9bQ#k#3bLbqanbM.xa8.0a0aObM#PbR#Xa7bq#O.gbRbRbK.xaAbUapbJ.KbNb.awa6b0a7bYbN.SbY.ZapaObubYbY.0a9", -".1bqbA#PaHawaCbVb2bNbWaCbG.EbYbXaGbKbSaw.E#W.Sap.IaGaIalbJb.#Hb1bH.Z#3bqbH#6#Sbl#k.xb1btbN#JawaKbI#kbKbQ.Sboasa4#6#IaCbMbXbJaAbIbT#sbLbrbL#ibW.zbI#5bHbObu.SbSbLaG#5bEa2bt.x#3bX.wbEbjbo.7b0apbW", -".ZaDaGbNbTbQ.6.Z#3a2#3#5aA#lbMbFb0blaAbq#5apbqbXbI.5bO.5bIb2.E.Z.Zbq.Sa9.KaCaGbT#cbRaHbI.xb0bua4#5.B#5aGbLapbMbo.g.Ea0#QbF#N#5.Sbr.wb..z#hbLbTbObB.BaGaHbXbEbTa9bH.ZbLbPa7bX#c#.bSbt.E.BbNbKbNbO", -".5bGbKbYbNa2.da6bJbq#6.Za2bNboa4#c#lbEbbbNbXbu#3bTa0asb2.E.YbTb0.E.s.SbK.B#maAbbbI.0.x#3bNbI#B#ha7bGbFbTbq#3.S.ZbebT.SbWbqaB.gb0bObmbtbIbLbT#3b0byaw#tbJbQbO.x.Sbo#Lb3bNbmbobKbOawbRa2bJb0.YaAa2", -"btaGbEa7#cb1byaGbobqbL.Bbe.7bIbqaBbWbq#5bq#3#cbX.ybHbnbqbIbq#ca7a7bTbJbPbmaKbIaMa1a7bJ.6.xa9atboa9.5bWax#6bW.NbXbUbTa5bT.Kbq#3as.waYa7aMb0bH.Ea6bNa5aG#5aCbTak.EbTaA#5bHbL.xbobhbS#5bHbea4bIap#6", -"bN.5a2bX.xbQaH.B.Z#3.dbU#kbNbMbFa4btbWbM.E.S.x#6asbL.ZbLb1.Z.0akb..0aZb0bTbP.ia9aAbHaGbH#L#cbeaAbPa2#lbQbLbHbw#3bHbq.5.SbM.SbMbIbB#qa5.xbbbi.M#c#tbebob.bYbJbTbA.wbo.wa5aAa8#t.h#3#ibS.ObIan#3.0", -"bHb#bM.Zbq.sb2b0.a.SbbazaRbNbN.nay#3aG.J#ybSbNbNbWaB.YbL#6anbYbE.Z.xaO#cbea9a9be.mbH.nbq.EbBbebB.O#.#6.x#6bI.Kb2bybAbqaAbP.5boat#k#c.ca#.ZbQap.MbTa2be.Za7bQaw#Oan#ObP#5bY#5#5bJbu#6bBan.E.xbI#3", -"bWbX.Z#5bKaua5a7bTbNbY.B.5bRbVbt.6.xaHapbO.bbqbz.x#5bNbJ.Z#3bHa9#2.EbebN#k.Z#5#q.Z.ZafbV.ZbMbNbqbXbSbI#5b0aG#5bDb0bKaHa4aAbu.0bIa2.xaG.E.BbAbNbHa9.SbYbI#6.ZbIbQ#2#cbIbQ.0.KbO#6#c#PaHbM.EbfbHbo", -"bKbIbI.i.0bL.7.waG.Tap.Sa4.0buai.KbS.Oaw.Sap.6aGbO#c.Sa2bJa7bebH.x.0.BbI#c#Bbu#cbR.YbRa7a7bM.xbI.x#Tb0bVa9bI#cb1bq#c#hap#c.x#3#kbI.KbT#mbqbO#6bPbYbYa9bNatbWawala2bq.xaAbTbobtbf#hbO#5bo#3bIa6aw", -".Eb#.E#2b0bTbMbe.S#3bP#6bOaHbSbSbMbYbP.xawasblbQa2by.TbJasaHbe.KbT.KasbqbtaAbH#3bIbobybGbWaC.E#G#..EbqbqaA#6a9bYaM.6#caB.Ea9bKay.ibL#5.Pbta8b0bMbFa7bqbIbea2bJ.E.KbqbS#6bJbYa9.O.raubA.xbY#kaAb2", -"bJbO#lbXbM#laYbT.Zbl.F#5bBbX.xb0bHbebI#3bNbtbTa7.5bO#3bo#cbObNb2#6bOb1a0aYaAbWb2#6bC#9asbH.0bHaC#T#kaHbXbqaA#5#h#3bYb1apaAawbTbS.k.ibha9aYbMb#bMblbeb..nbtasbKbEbzblaA.ZbQbJbYbTa4bTa2b1.EaGbIbF", -"bT.xbKbHbWbq.B#ka7aubqb1anbUbL#JbT.5bM#6.xaAbIbubL#ca7.SbUapbM.5bu.ka9aAbMbJaYbT#SbPbBbfa9#ca9bH.S#cbXby#waA#taHala2.5bKbSa9.EbMa9.SbhbLbM#6b3bTala7ana2bLbqbTbe#3aAbQ.6a9bN#Qbtbqa2.xb1a4bzbqa6", -".x#lb0b..Ebhbqb1a8btbmbbbhbJa2#5b0bebTa5b0bJbBbIbNa9#5a9.x#3.SbXaZa5.HbX#B#UbLb1a2bYbYbMa9bobtbF.0bJ.SapaAaGbG#gaGbSbJana9b1bY#3.E.x.Z#cbqbQ#cbqby#cbMbIa6bLawbEbH.KbtbLbeaOa7bqbealbube.5bK#.bo", -"bK.BbLbX.ZbXbL#3bKbhbu.ya5.ibPbTbLbh#5.Qby.k.i.k#5.Bb0.BbPaHa4a9a0a8#qbL.Qbnbq.ga7#laAa9bT#B#v#jbK#k#ka4#kaKbTaHbL.Ebl.5bN.6a4bIaza2apbt.cbY#cbb.ZbI#cbfapbSbIan.iaMa9bN#l.i.5#4bI#c.na9bIa9bHbe", -"btapapaW#kawbe.0#8aVaW#5a4a9.i.IbNa2a7bw.OasaGbh.F.naG#l#5bBa9#qbBbFbO#5bMbOaAbB#k#X#kb0#kb0aZ#kbS.e.S.0ahaObSaybHa7#k#kaA#U.nbH.0.Z.0bHb0#P#k.S.BbHbebMbI.x.Zbt.J.7.Z#k.S#T#k.E#4aObN.daF.e#4#P", -"#kbQa7btaGa9azbY.WaGaGa4a9.Ob0b0a4bJaHbFaza5aAas#VbL#kbe.0bMbWbwb0bL.xa8bIb1bJbJ.O.F.I#ka2#ibHbBbIaFaC.SaHbY#l.0.0asbPaAa1.KapbPbMbS.0bSbq#l.xbqbTbY#kaH.0a9bt.K#O.Y#P.Ja7bSbQbEahbq.E.Zat.BaVbH", -"btaGaH.7aCbHbNbS.WbsapbSbLa5bO#6.b#k#lbo#5.gaGbcbTax.5be#k#xa6#n#3bIboasbFbebJbO.jbRbLaKaMbo#m.ia6.xa4#PaHbOaFbqa7bBaO.xasb0.E.Z.Eas.x#lbqbzbKbV#c.Z#xb0bY.SaH.EaC#m#.axb0bNbMapbL.4#.by.CbTas#l", -"aF.SaHbJbNbMbC.Zapa2bGbQ#6.KbC.IbG#cbq.K.5#m##b1awbX#k.5aGa9bT#5.xbm.Sa0.FbhbH#qau#6#JaA#B#hbc#5.B#k#4bO#.aGbSbIbeaDbM#k#5apbLbu.E#3bXbtbX.nbob0bKbT#Va2#6bJbIaG.KbDbEab#5bEbS#tb0a0as#lbMa5aA#B", -"bHbOakbE.E#..Ba7aLaT#c#3btaG#NbY.dbfbN.ZaIbKbPa8aC#NbNbSbXaGaAbebObR#5.xbBaZbJa7.k#9aZ#Lbu#vbeaZbKbHby.xbHbO#.#PbTatasbyaB.VbS.x#cbt.FaGbXbLbN.Zbi#cbT.Ea6bYaG#kbObY#ubEbobuapaGa5b2aZbPaZbLau.G", -"btaSaB.D#lbT#ObP#ta6#3#3bBbHbe#k#5.5.ZbFbEby#hbqbq#.bu#lbKby#5#BbEbXaYb.bL.9bXbX.i#BbB#Ab0bLbJ#lbM#k.F.5bJbTb0a7#9btbe#5bt#JbebMaMbqaMa2bzbobt#3bTa4bMbo.0bXbIat#J#3bYa2bJ#6bo#6.K#5#mbtbBbKboaA", -"b1#l.j#Q.D#H.B.xaHbyanbYar.1.xaya2a6bY.x.ZasbIaA.Ba4.5asbE#B#5bL.KbLasaCb#bKbXa2#qaAalbua5.S.5.Ebt.zbXbMbTb1.xbzbIaCaAbyatal#5bt#ca8au#6bebRa9#6as#cbN#cbWa9a7#kaH#Va6.E.E#c.xam#lbBaw#5.5bBbEbA", -"#U.4.0.Q.ZbMbObX.KaKawaKbP#5.bbq.M.Ta2bWawa8aAbI#kbRaGa4bJbubPa9#3bIbPb0bTblbWbn#3bLbt.w#V#U.Z.z.I.ZbRbKb1bLbXbWbBbebLbtbfaK#c#uaA#6#6#S#vbSaMbe.EbHbI.0bo.xa9.Zb1#k#V.xbNa1a1.ZaU#q.dbNaL#6aRbN", -"ah#4bS.Va7#e.Maibqan#kbXaw.BbLbYa2aha9bIaAbGahawaAbB.ibXbT#c.xbbbJapalbe.xbO.#asawbJ.QaObXakaZa9bXb0aAbA.0br#5.sbNaha9#cbVaCbYaVbDaw#c.ZbeaBaebMbKbP.qbMaAbYa1b0bEbSbE.Ba7.i.Q.BbObNboa7bM.Sa7bW", -"aOaw.xambN.M#2bGbJ.0.Z.xbT.E.ZbHapa2bt#k#3bIaibQbTaAbRbT#k#BbMbMbybybNbe.S.O#..Zb2.2.5b0#H#kbKbt#5bu.ZbM.k.K.xbe.xapbea7aG.0aG.5a4bEal#6awbT#Ob0akbT#c#.bH.SbLbIaUa2.xalbH.0.S#sbebf#J.ObNbJbN.O", -".7#l#4.SakasanaObMaGbqbN.0b1bQ#..daGbIbJbTbTa6aCbObIbH#S.Za5aY.xa5#jbobo.K#5bFbLbtb##U#Rbq.hblba.0bna0#5.QbO.EbM#haA#.bLbMbKa5aAbCbBbfbTbqas#3bWa7bNas.Za7.EbYa1bMaVbt.EbYa7#O.BaKbXbuaHbqasbH.E", -".S#6.Z#kapbT#4bIanbHbRb2.S#cbO.xaybb.BbX#t.Z.V.abJbTaA#5.i.F.KbKbFbFaa#3bf#vbobbbnapbM.S#2#lbKbra9bXbI.0bebMb0#h#6bXaAbM#3bnbPbubobH#.bzapbLbNbIaHbP#ca2bI#5a4bLbK#k#k.Z.B#3bPa7bYbbbobJaG.Ea9ak", -"bLbq#kbJ.S.x#c.E#PbW.Z#l.6a6.nasbQ#4btap.0bBbS#cb0bTbBbLaIa9bL#5#q#taAaaaK#nbtbt#n.ZbH#Rb1bqbUbJbKbz.K.ZbobLbtaZb.aZ.kbM#vbIbM.ibTbFan.KbRbEaA#5bqa9bebI#cbLa2bu.x.xbFbPbIan#HbeaA.KbT#m#kbo.Zbq", -"aIbMb1bHbP.pbLbP.xaGbJapbSbX#.#caCaUbTbTbAbX#c.JbXalbXbb#ia7bJala4aM.Ka2#LaC.Kbwb2bBbO.BbL#U.0#mbXbJaAb.bIaG.PawbMb0bMbn.0aKbHbXa4ae.iap#lbIbo#kbBb0bo#cbPaGaAbua7bI.ZbE.E.xaybbbBboatby.2.Sbq#V", -"bLbTbMa9bP.S.xbRbLbYbPakaAa7bM.E.N##.K.Fa8.SbtbNaG#kbPbrbTbIb1bK#Ra7a7#3bbbxbu#qaA.x.5.0.x#XaK#3.xbX.Ka7bLbIbyaAbq#cbq.Y#3aObb.S#k.sa7a9bPbt.aa2bTaAaGb#btbubt.KagaSbL.SbLawa9aVbI.KbtbM#3#cbJbX", -"bc.FbT.g.haqbMbPbP#ebIbN.6a7#kaAaV.cbtb0b2apaObEa5aAb2.KbIbubl.K.B.Z.7bM#5.0.KbE#vbHbXaf#ObY.IbobhbNbm.ibTbhbT#u.SaWaVbHaG#c.ZaU.A#YbIbYbfbSbGbibo#3aMa9#mbP.K.Kb0.Q.S.xa2.ZbNaCbb#6bo.5bTa7bq.B", -"aw.S#4.cawaS#P#.bqa2bX#.#c#caPa2bHbQ.FbY.d.3aw.o.J.5.5btaGa8auaY#GaebXbWasaK#v#a.H#ObPbJ#3aAaU#cbL.KbIbK#5.xb0bI.a#4.ZbbbL.SbI#..I.SbT.E#k#1bL.6bTaNbo#5#3.YalbLanbqbSbTa7bPaxbubfa7bz.0.Yaw.5a4", -".Ea1.6#2bSbqazbX#kal#c.xawaGbSaUa1.5.5a2.WaCaybYbEaVaH.SaAbq.kbaak#k.0bX.xaY#v#5as#sbB.S#ca9#ca9bK.I.Kb0b0bI#kbKaO#VbHaw#3.Sa7aebX#I.xao.wbq.5bM#5.Zbua5bEbe#vaGbybB.S.Ka2#cbz.SbYb0bBbB.Z#5bo#k", -"bNaG.6apbY#k.r.7aSawawbXaC#caCaP.xbYak.VbNbb.WaWaxbM#c#lbNbXaAbIae#O#.bq#tbO#9aKbRbT.S.ZbNbyaHbNb0bPaAbBbJ#LbebMa1bq#kaKa9bL.x#NaH#Q.x.Z.S#Hbq#Xbyb0#5bMbFbBb1beaAbL.xbtbP.KagbJbqbtbL.xbubTbqbM", -"awbIaCaC.x.0a2aG#k.O#kbq.xbGbS#6.SbHbMbSaCahaGbB.Saz.ZbLanbPbTaY#l#.bTaAbqbeaA#La7aGbFaBawb1boap#Jasa9bWbWbIbObX.NaGbSbP#5.ZbrbMaAbL#kbIbM#hbKbX#caA#3bebuaAbebfbq#6bNa7#5a7bEbobubEbTbE#4#3aGbL", -"###caG.SbEboaGbMbMbY#Vbea4bvahaW#PaC.Zbq.0#6bz#6.J#Waz#J#lbPbLbt.0b0.xaKbO#mbLa5bwb0#kaH.Sa2bWaAbIbJatb0#6.iap.xa1bY#5awa0a9bnaebaa7aY.EbXb0#l#ka8#Ca9bobTaKbYaK#rasbIbLbN.SasaG.4a2.SbobXbK.Ybq", -"an.5bua4by#5.O#c.haCbJanbY#caJbfbHasbNbY.2aq#JaAa7aGa2bybOaAapaYb2#9bLbPbWbXb2.SaHaHanby#3.hbTaObX#3bL.SbT.x.ibTa2bN#5bBaGbobJbqbt#lb#.EbJ.5a9bL#3beaKbOa9bu.E#vbK.MbtbqbN#5bM#3#k.KbtbMbI#c#cbo", -"bobfbLbYaAayaA.M.Eal.nbybLbubE#caia1.7btbBaM.L#BbSaC.5#kaCb0bOaYbMbAb1btbPbL#nbLaU#u.SbebNb..5#sbMbub0a9a8b3bTbI#V#3bubF#q#vbn.2.KbMbo.kbObLbJbJboboaC.KbY#man#mbqbBbLapbMbbaGbS.5aHa7a7bYbebLaG", -"bT#Eam#p#5aAaL#3bOanbqbVbEajaHapaO.SaH.SbObhbM.H.a.SalaGbTbYbh#6bJbM.p.2a9aA.0aoboay#9.E.x.E.g.2a8.5bn.sboaA.Z#6axbF#Ea5ab.4btbJb#bbbPbzbNaAbxbM#5#5.K.iaqbB.K.Fa9anbTbH#k.EbP.SbIbeb0bYbu.x#3bq", -"#PbN#Ta9aVaWbtaG#VbP.ZbhbXbM#h.G#d...ubYbq.7#k.0bNbwadbSbea6aV.5.X.1bE.J.ZaAbS#5.5.Z#T##bY.E.F#l.EbH#c.Ebu.ZaH.CbTbMbXbT#n.5bMbM.JbEbG.5bBbSah.KasbqbtaYala5bJbJ#cbo#3bNbubnaC.gan.cby.Obu.waAa0", -"#4aGbN.E.BataG#ubY.x.EbLbM.2.iaKa9ap#EaGbAas.S#..BbYbNbN#c.Ea2#3#c.JbN.5apa2bRb0.FbNaA.6bWbQ#.bPa9by.Sb2a2bTbE#6bTbIbq#5aA#5bua0beapbEaGbq#capa7aAbMa0bIbt.KaAb0ay#3.Ka2.BbI.sbqbSay.x.Z.xbo#SbI", -"ak.EbSaVbRbSbbbbapbi.KapbF#5bCbtbBbbbOaAbIbI.EbXbI.0.Ba2bqaG.5.dbSbNaCap#mapbubLaM#kapbFbhapbuapaCbJbobSbqbo#FbHbub#asbJbhbJbh.B.FbHbq.0a2aw.BbtaAbubXbI#kbXbPbAaPasbo#5aC.5a7.hbt#kaH#5#c.IbL#5", -"aB.0bMa4#6bP.KbtbDaW#5.W#yaw#qbybLbI#vbXbT#hbLb0ay#5#3#kbA#cbBa9blaGaMbo#Ebh#W#maG#q#Lb2bobe#vbz#AbNaB#5bo#5aw#v.0b0.KbK.EaAbJb1#3bKa9.KbObJ#c.xaAbLbobLbMbubIaYbDbSa6aAbI.Eb0.5bt.xbubH#ca7bbbL", -"aq.nbX.SaH#3bLa9#B#BbiaTap#wbi#Cbh#kbh#5a5#6bm.ibJbqbMbpbM.0bMbb#p#jbu#m#J#9#9aMblbu#6a9#5bfbIb0a9bfbUbIbyb0bobWb0bt.i.SbX#m.Bbbbq#c.KbNbza4b1bKbWbSbLbObobLbeb0arbbbu#k#6bLbMal.EbMbE.Bala9#k#c", -"#kasbMbybXaZ#v#qbn#3boaAbWaXbK.R#I#hbJ.5bU#ha2a2aAbTbEbO#5aAbM.0b0bb#m#6#tbTbhbnbzbobT#9bobeaAbb#ubIbe#p#q.Kbbbua9bPbI.KaY#kbh#6.8a7a7a5bXbBbJbI#kbu#la8.OaYasbMbN#3bL#5.D.i.S#Hbf#h.EbubNa9.Bbe", -"#QbLbIbPas#5a9bP#Lbra7bBbtbI#c.x.Z.EbKbJaha4.RaNbTbLaZ.ZbMbtbFbJbtaAakbO#q.ibWas#3#I#3bY#2bJaGbHaLbeaAbebybt#9bT#kbPbMbPbtbebH.EbX#nbIbObqb1b0#vbRaZbt.BaYaw.5aA.R#3#8#k#cbHbXbMbhbcb1b0bTawaV.0", -"bTbTa7bmbRbhbma9.g#b.y.waG.UanaCbKaH.Ea4bN.Jaya4aYbKbubTbL#hbr.Z.SbYaY.ObL#sbPaYbq.5ak.E.7a4aebY.kaLaMaM#mbS#qbtbra9bTbobLbhbX#haZbP#hbXa8#h.xb##.aAbPbPbXaYbJ#v.Bawbe.x.KaA#k.QbTbTbXapbE.xaCbQ", -".K.K.E.x.xbY.Ka9.bawaDbq.v.ZaO#da1a2.ca2.aa2aGawbMbTbObTb0bB.zbe#T.V.xb0#ca9a8#Ja4.S#5bH.Oa9.B.SbtbTbL.ZbH#lbBb0aG.ZaAbI.ZbubLb0#k#K.n.bbNazaq#q.SbE#iap#Db1#l.5#3.KbMbAaAbE#BaAaKapaAa5b1bTbua8", -"bwanbObI#r.7bu#ybSaG.5.Q#G#.bVaw#cbLa4.BbObQbqbGbMbLbtb1.KbPbMa9#..MbqbobRbMaBa8a9.5b1awbTbSbybKaAbX.S#3bXbP#NbM#qasa5bMaAbIaAbL.S.x#4.M.SbYa5bLbqbSa9#zaAboan#.bLbwbubebX#qbS#5.x.i.KbI#m.2asaA", -"#6be#3a1.E##bmbMbBbYbP#UbRbRa7#6bObWbXbI.E#qbJbTb0byaqbJbMbXbWbt#X.NbH.ZbNaAbu.i#cbKbKbfa2bBbXbN.ZbTbRbT#sb0#5bJ.Z#.bPbXaMb1#6.E.IbR.naObN#kbTb.bI.EbobMaAbAbHaAaGbJaA#c#qbCbo#5bLbMbL#cbObXbObX", -".KbJ.7#XbSbWbtaG.Sa0#sbTa8a7a8bTbIaKbLbIbJbhbR#3aAbLbMb0bMaAbIaA.7bMbN.ZbS#BbX.Kap#AaibW#kbNbTbIb0bXa7#k#3.IbH.iasboaYa2asbqa5bIbLa7bMaW#ratasa0a1bq#c#va9#3.xak#5#nbe#3#5bebXbIbMbtbJaY#kbXbTbo", -"bFbz.7bT.5#kbybo#hbWbobtb3#na5.7#J.IaYboaYb2bPbOasaCbe.Kb0bPbeaBbWaObMaHbJ#EbY#mbqa2#kaAa2#5aO#c.5b#ag.5b0bObK#2aZbL.EbT#5bLaYbJ.K#vbNaG#k#3bubIbT.F#Lbea9#A.ZbKbQ#3b1bL#3#6bObtaAbOanaBbJaAbTbb", -".Kbna2bq.Z.0#m#vaZbTbo#L#BbubPaAbr#cb1##bM#tbH#vbMbT.Za8beb0#.aA#ka9bPbObL#kbB#5bSb0aGbIbqbT#Ja7b#bIbObnbP.Bb1bEbLbobza0bLbobI.Ka5b0byapapbQ.Ea8bHbLa2bobS#3aG.xb0bfbE#3bub0bz#c#6bIbhbI#6bLbebM", -".KaKbYae.S.B#5bIbqbtbu#y#E#cbSbJ.F#3#ca2awbIa4aHbIa9bIbTbWaA#hbq.h.7bHby.fbt#6bYbqapa9bMbBbYbNb1#k.F#k.0bI.0bh.ZbIbh.Eb0bt.Bbha7#maK#Sbi.V#k.KbX.E#kb0a8bua5.5.0aI#AaKbuaK#5aHb0#hbtbRaGbLbKbLbA", -"b0be#P##.EbBaAapbPa7bNbv#7.a.0bObsaFapaGbGbSa2.6aAbTbMbObJ#5bI#5bIb0bWbtbIa7aWbVbtbM.xa9.ZbTbqap.x.s#3.g#3bL#NbK#3##a9aY.xbh.0#5#Jbh#EbebM#cbT.6bqa4b1aLbNa9bM#VaM#6apaA.xa9aM#5bJbM.BaZbXa9bubX", -"bybIbSaGb0.caMbYbJ.r.5#k#P#XbL#.as#XbJbK.2btaGbD.Z.PaYbH#h.B#cbb#KbebqbbbNbiay.Ya7.Z#UaObH.6#2.7bJbH.0#3asbKaA#5#2bOaSbLbPb0.S.g.d.KbGbEbNb0bXbn#X.B#H.0#2.Z.n.SbYbHbMbE.KbTa2.Za9#caKbo.KbtbMbo", -".5aAbWbS.Ebo.Z.K.BbJbEbX.5aH.5bqaA.EasaHbobeaGaC#s#XbIbLbIap#3.O#3.xbIbtaCa2aLbs.SbObIbU.s.xaAbPbIb0bLaAb1bb#6#mbM.0bt#UbN.g.ZbLbu#VaH#ka0bo.5aK.ZbP.KbJbWa8bJ.Ia7aK.SbEb#a4bLat#nbobebLbNaAbTaM", -"bbapb1a9bobP.xa4aGbqbq.Ba9bOaHbqbT.jbXbI#cbMbiaGbWbI#XapaSbObIbEbqbua2bo#5bV#6aybW#XaF#IbL.Oaea7#O.0#kaBbM#qaA#maA.gbbbTbJ.EbBbJ.dbMaGaAbNbTb0b#b0.hbH.BbRbIbEbWaAawa7beaFaAbMbebtbWbL#t#L#5#3#c", -".5a4.E#kbd#lbXbOa7#cbo.xbHbO.E#3#ka6bobLaGbKbq#3ae#.#Nb0a8a7aH#6#tbzbI#6#cbCapbobMbMbF#k.Bbr#.b#.Zb0#6bOasbMbybMb.a9.i.SbqbLbcbTbNa4#6a7#cbTbJbIbbbT.KbObKbF.g.K.0#3bS.4aG#3bY.xbubTaGapbYbMaAbL", -".5aA.K.K.ZbGbBbVbobHbybz#kbB#c.SbNbebHbea7a4bTbMbTbM.IbT#.aGbJbSbF.E#EbJbebtaYbu#s.SbWb3bybI.5bIbH.gb#bLaAaY#qbIb2bMbY.iaAbXbLbf#eawbOapb3bLbBbT#ha9bIbh.0b0bLbPbY#5bX.BboalbI.Kby#A.KaAbe.K#5aH", -"#kbtaGbqbebX.7bO#c#JaGbPbo#3b0bu#haHbebWbXbBbqbW.Pa7bJbO.EbubKapaM#3bXaYaAbRaZbPbBbP.Qa9.gbI#3bI.xbTbI#cbmbebobJaMbM#3bKbP.Y#ua8#cbG.K#kbebqbnbLas.KbXaAbP#3a9bMasap.5#6#l.x.6awbzbubtbfbbbeaAaK", -".B#5.5bebYbta7#3#6bXaG#x.KbY#qbNboa4.Ma9bNaA.gas#..l.QbMb0#c#5b0#5#j#3bIby.kbWaYbMbBbCbr#3bKb0aAbL#ObLbP#3bhbT#nbLbobPbybeaA#Z.K.MbH.ZaC#6bTbtasaZ.Kbt#5bobLaYbebWaCbya7bNbuby.7bob.bebtbL#nbYaA", -"#t.5bTbMbHapbMa7bea9bobo#maAa9.KaHbl#AbQ.4.5bq#saS#2.Fakbh.x.BbDbo#5a9bMa0b..g.I#qb0a8bJ.Zbrbt#3#HbXbN.ibTbobP#u.i#g#3.iaAaK#6bnaP.xaGbtbM.EaYbLbIaM#ma8bIabaAaKbt#ka9bIbebFbHbqbmanbT#3#5#5#5bl", -".nbH#c.n#lbq#kaHbX.SbTapa7bEbBb2#ca2.J.6a9.ib#bT#cbe#t#3bI#DaAbX#6alaAa9bB.E#mbH.ib0asbebbbKas#3.0.KbPa7#l#cbo.Z#5a2#5aAa9bybTa9#Q.x#N.x.ZbJ#kbqbL.BaebWa7.O.UaSbN#qby.Zbo.0.SbNbqay.E.N.Ea9.MbE", -"a7bYb2.EbYbP.xb0.SbobVb0.KbNb0.Eaya1aGaA.ZbqbtbJbzaAbeaAa4.K#BbTaqbBbIb0bRaYbIbobJ.KbubPbLaAbo.sa9#c#k.KbubIaqb1axaw.0be#.#3#kaGbTbLbIbqbP.jbM.B.S#R.xaO.i#2.x.ZbYbIbua9.BbI#lbKapbfbubMa4a2at.Z", -"bLbH.E.K.Zb0.xaxbYbMbq#6#lbO#3aAapb0bEbEbn#.bOb.#Lbbb1bt.Kbe#.aGbMbLbTa9#.bObJbIbB.z#5bLbobI#ibb.SbebXa9#kaGbz#c.ZbTbN#kbO.Sa7bQ.PbPbobLbI.F#5bXaA#NbMbT#Ia7.IbIboa9btbObNbP#V.ra7bNbNaObw.fbOap", -"apbyaw.5bL.SbEbK.x.E#5.Z#cbA#caGan.Ba4.Faqb.bbaYawaA#5bSbLaMa9#5b#bMbBaAbTa9b0bqbo.Eas#hbWbXbL#3a7bR.FaHbt.6.SbIbqbtbtbJbqbobebEasbybXbfbX#3bJ.F.h#lbI.BaA.sbQbMbP.E.ZbNbIa9bB#k#3asaHawbqbX.K#.", -"aAbSasaGa4bIbS#6bobla7#5bLbS.xbA.x.Nbo#kbEbTbqaMbtbtbt#qawbLaAbt.KbLa8bTb#bIbh.BbXbca9#kbIbNbX.8bF.VbJapbLa9bybNbJ.0.Y#k#6.xbu##bO.xbK.SbIa8#k#tbWaAbIbIbH#lb1.0bt#6b0a2.EbAaCbIbS.EbL.0boaHbRbN", -"bT#6btbt#L.Kbh.KbI.FbobIbJbqaAboaw.BbNbIaHbXb#.U#3bwbT#6a9.Ka9aG.Ha9#kbJbebLaAbU.KbMa9aAbMa9bJbL#3aGb0a9bubL#rbtbNbobO.EboaG.K#6bTaMbOaMbtaYbtaMa7bJaAb0bOaK.Fbo.0bYbqaqaAbt#5aZ#kbebObobX.gbuas", -"#qbSbPbKbubAanboapb0.Eby.5bYb0bYa4#cbRbPa6bObL#qa4a9aA#3#6bubu#5.ga2b1b0bJapbL#3.saA#lb0bTbtbHbIbQ.Da9.7.x.7apbJa2bPaHbLbY#k#6bMbEa8bB.ibJbIbOa9.ibMbqbnbe.Ba5bJbT.0.Z.S#5.B#t#c#q.xaAbta5.SbMaA", -"aHbxa2be#6bBby#t#k.xbua4a4bPa9aHap.0#cbAbWbIa2.l#JbKa9bo#AbTb0bzbeaAaAa0btbI.lbLbybXbAbTa5bLaZbubJbubLbya2anbJbT.2a9a2bXa4bTaHbHbubnaA#Lby#3a5bobubB#q#5#hb0btb0a7bM.xbA.xa9bYaKbKa8asbrbOaY#vbT", -".5a9apbX#cbH.SbybYbM#5bYbKapbIbX.M.Vazay.ObAbI.SbFbPbf.Ca4b0bobLbP.xapbN.7.KbwaAbqbL#ka2.SbLapa2buaGbPa9b0au#c#6.Maw.Va9aAbPbtbL.N#c.cbF.E#6aGalbPbM.YbNbW#cbLaGbHaC#4bLbX#cbIbHaF.Zak#l.B#k#Pa7", -"a9.xaw#kbN#cbo.6bMawbIbMboaFbuap.MaH#ka2.Kaw#3bL.hbPapa8#5bTbLb#bq.Z#kbJa9#JaubebY#6btbP#3bT#c.Ia9bOa9byaAbu#5bea9.0a4aAapbqbOa5bYaQa7.R.0.EbIbIbfahbO.S#3bqbTbo.7.xbf#3.xa9#ebeb1bMa7bo#.#Ha9.E", -".K.nbNa2bA.Z.6bYbY#kbK.M.xaBas#3.Zad#5#.a2#k.EbNaAasbMbTbXbP#3b0bqbNaA.xapbJaHaKbTbfawaHbb.Ea2bK#3bebtbeaKapby#5anap#kbYbT#tbqbT.S.x#5#haC#qaYbJana7#3bY#3#3bHbJbI#6bSaA.FbQbOaw.0bG#kbLb0bQ.rbM", -"bQa4bHbqaCbbajbQapbMby.KbtaG.SbyaGapan#ka9bX.K#6bMbK#cbRbI.7#hbP#4bLaObSasbebB#xaw.E.SbP#lbobQanaKbtbWbtb0bL#Mb0bLa7apa8bObTbHaMbPbT#6a0.zbIaAbh#lbbbLbSbq#5bWaCbo#6bqbybebPbubFbq#kbPbYaCbJbta2", -"awbLa4.S.Map#lblbUaw.xaAbNbr.ZbPaAbIbtaGapbQbRb1awaYbM#vbfbJbtbXaS.xbTbebMbYbfbI.5bSaA#c#6bHb0#cbbbOaLaAbubN#5bo#5bWalbIaAbybJbTa0bobIbTa5bMaMbPbTbSbPb0#5bN.EbybI#c#v#6aA#5btbI#3#cbI.S#6bu.ZbT", -"aGbqboaGbJ.5.K.SbE#c.5bobO.S#5.bb0bh.hb.asbMaG.7bLbzaZ#3#kasbPbI#ka2.ZaH.Ya5awbtbQ.KbMbubY.5bybPasbe#vbQbFbb#JbubXbn.ib0bLa0bTa9bObJ.gbebMbSbJbNaGbqa7bo.xaGbIaHbB#mbobwbe#3.KbBa9#5by.KbEbTbTap", -".xbyawbqa2bzbHbNa9bL.E#3bNaG#3aAa9a8aZbLbKb0anbYaY.SbLbOaAbL#5b0.E#kaGbIbOblbB#vbX.7#5.ZbuaGbMawbBbya9b0#3bfb0#5a5.G#5.ibMbeaAbMa7#xbf.Z.ZbEaC#c.EbTbSbMaG.0bfapbIapbRbtbl#m#3bOa9b#a9bL#mbB#c#n", -"bz.xaGaia6#kay.ZbIapbP.xbYbP#kby#bavbh.Ka9a7be.xbS.i.EbtbJa5.xaA.E#5#kbTat#5boa9bNat.EbTaEbXaGbWa9.KbebE.KbT#5#3bg.k#h.sbnaA.5a9bTbB#Pbo.Ma2adaVb0#cbuap#ka8a4bT#faAabaM#qbobeaA#5bo#v.K#6bE#tas", -".5#4bfb.be#t#k#c.F.0.0bYbO#P#c.FaFakapbYbWbNaM.K.MaGbBbqaH.SbmaZ#d.BaiaGaGaHaCby#P.B#e#PbR.x.xasb0.IbWbTbIbo.ZbMbYa7bIbN#k.E.x.I.6bLbMbYb0bX.M#6#lbJ.Z#NbT.t.s.xa4#3a6bR.S.Ka2bo.WbY.J#cbua7bX#3", -"aG.EbfbebEbE.n.Eb0aw.FbEasbMa1bL#k.naAaGbMaw#.bA#caCbYaAbzaAbMav#T#k#V#lazbT.RbObq.0.7bLaFbIbQa7#kaK.EaKbXbMb0b.aHa9bSbe#kbP.Eae#kbobo.YbuaAa6bT.IbM#..EbIbMbBbTbIbqbL#c#6bMa9bq#fbSa9aH.K#3#can", -"bX#caKas#6#ta7bIa7bBbLbPbYbo#5a2bK#4.JbI.MbBbobbaybqbY.xbJbMa9bI.xaGaqawaHbTbQ#cbW#c.5bfbxbobt#SbtbIbRbJaYasbXbtazbXbobMbPbJbTa8#ca7.ZbN#kaH#3an.B.4aZ.ZbhbK#Q.x.xbt.EbP.EbYbLbt.R#caUb0aGbqbyag", -".5aObobnapa8#c#Pbb#t#3aK#tbo#JbB.JbLbEbQ#kbuaH.Jb0bX.6#5.xa4#5#kbTbNaCbMawbK.KbLbybPbu#6bbbZ#vac.Zbn#kbTbebLbfbIaybobfbo#DbM#nasaHbX#5bMbSaAbMbM.E#5bJbM#3a7a9.ibybSbNaM.xaw#3bHaW#6aLbea9b.#B#.", -"bIbKbeaG#vbe#c.x#3blan#t#k#xbubobRaVa9bNbMa2.EbEbObtbB.0ap#5.0.xawaAbMbHa9bS.S.K.KaKbwbt#q#ubZ#jbLbTbObTbNaYbebTbYbSbY#6aAbt#m#qbqbo#c.S#5bo.O.KbtbTa8.6.Eb.aAbL.5bTa7bHbe.x.ZbtbtbPbYb0be#.bnbH", -"aC#.a9bFbobtbPbLbLbobe#3bbbbbt#qbban.EawbE#.bqbEbHbfb0#5bI.x#c#cbLbXbybtbm.SbI.ybN.Kbe.K#qbD#q#za8.5bfbBbJ.BbTbLaVbMbV#3a6brbT#u.ZbA#kbF#.bMbEbW#B#.bB#naA.K#3bT#cbLapboa2#5#.bobu.KbubyaAbhbIb0", -"#Oa2bX.KbeaA.5a1b0.xaAaAa1#kb1.6a9aA#DbH.ZaVbKbqaA.SbJaA.XbS.S.b#gaA#t.EbL.xbMbWbea2bRbtbubWaM#5.ZaZbP.EbMbJ#mbJ.V#GbHaH#3bc.KaYbL#ca9.0#5a2bqbfbMaZbtaZaAbM#tasbeaCb0bTa4.x.K.E#vbE#LbraKbKbIaA", -".xakaKbybW#6bM#l#ka7#k.nbM.0bH#Pa2#3by#..K#kak#0bnbMaA.5.K.BbNa6aK.ka9bLbc.wbL.7.xaAbqbAbo#JawaB.KbLbq#BbebMbMbL.##Va7#2.S.B.0bIbEb2.7#6.Z.KbJbq#m#5a8bWby#ua8#6#3#lawbTbea7bL#3#3#J#5#.#3.ib#bM" -] - -metal_xpm = [ -" 154 77 46 1", -". c #040204", -"# c #4c4e4c", -"a c #6c767c", -"b c #5c6264", -"c c #848a8c", -"d c #545a5c", -"e c #7c8284", -"f c #646e74", -"g c #3c3e3c", -"h c #444644", -"i c #8c9294", -"j c #4c565c", -"k c #7c7e84", -"l c #646a6c", -"m c #747e84", -"n c #4c525c", -"o c #74767c", -"p c #64666c", -"q c #8c8e94", -"r c #5c5e64", -"s c #84868c", -"t c #6c6e74", -"u c #444244", -"v c #4c4a4c", -"w c #4c5254", -"x c #5c666c", -"y c #848e94", -"z c #545e64", -"A c #7c868c", -"B c #3c4244", -"C c #444a4c", -"D c #8c969c", -"E c #747a7c", -"F c #6c7274", -"G c #4c4e54", -"H c #5c626c", -"I c #848a94", -"J c #545a64", -"K c #7c828c", -"L c #3c3e44", -"M c #44464c", -"N c #8c929c", -"O c #54565c", -"P c #646a74", -"Q c #747a84", -"R c #6c727c", -"DNDDDDDDDDDDNDNDNDNNiNNiNiNyiyiyqyyyyIyIcIcIcAsAsAAKAKeKememkmmmQEQEEaoaoaaFRFFFftftlfPllllpxpxpxHbbbrbrzrzrJddddOdOOjOjOnwwwwwGwGG#GCGC#CCCCCCCMCMMMhMBhB", -"DDDNDNDNDNDNDDNDiDNDNDiyNNiNNyNyiyqyqyIyIIcIcIAcAsAseAKeKekemkmkEmEQEEoaoaoRFRFFtFtftltlPllplpxpbpbHbbrbrrzrdrdJdddOOOOjOwOwOGwwwGwGGGCGCG#CvCCMCMCCMMMMMM", -"NNDNDNDNDNDNDiDNDNiNiNNDNNyNyqNqyqyqycyIcIcIAIAsAsAKAKKeKkKmkmkEmQQoQoEaoFoaFRtRFftftfPlPpllpxpbpbHbbbbrzrrdrdrdddOddOOwOOwOwwwwGwGwCGwCGGCvCCvCCChCMCBhMB", -"DDiDNDNDNDiDNNNiNNDiNyNiyNiyNyyNyyyIqIIcIcIAIcAsAAseKeKemKmkmkQmEEQEoaEaoaFRoFFtttftltlPlPppxppxbpbHbrrrrzrzrdddJdOdjOOOjwOwwOGwGwGGw#CGGCvCvCCCMMCMhCMCBM", -"iNNNiNiNiNNiDNDNNiNyNiNiNyNyiyqyqIqyIIyIcIcIcAsAsKAKAKeKeekmkmEkQQEEQaooaRoFFtRFFftltflPllllppxpHbpbHbbzrrdrdrOrOddOOjOwOOGOwGwwGwGwCGGCGCCGCCMvCCMCMMhMMB", -"NiNNNNNNNNiNiNiNiNNNiyNyiqyNyqyyyyIyIcIcIAcAsAsAAAseKeKmkmkmkQmEEQEoaEaoRoFRRFtfttftlPtllppxpxpbpbbrbrrbrzrdddddOdOOdOOwOwwOGOGwGGGGwCGGCGCCvCvCMMCMhMBChM", -"iNNiiNiiNiNNiNiNyiyNyNyNyyqyqyyqIqycIcIcIsIsAsAAseKeKeeeKmkmmkQQQoEQooaoFaFRFFRFtftPtlllPplpxpbpbbHbbbrrzrrdrdrdddOdwOOjOwOwwwwGwGwCGGGCGCGCGCCCMCMCMCMMMB", -"NyNiNiNiNiNiyNiyNNyiNyqyNyyqyyqIIIIIcIcAIAcAsAsKAKKeKkmkmkmkQEQEEQaoaoaaoFRFFtftftflPlPllpxppxpbbpbbrbrzrrdrdOJOdOOOOOwOwOwwOGwGwGGw#CGCGCvCCCvMCMMMhMhBMh", -"yNiyNyNyiyNyiNyNiyqyyiyqyqyyyIIIycIcIAsIcAsAsAKAeKeKeeKmkmkmEmQEQoEEaoRoRFRFRtFttltftlPlplppxpbpbHrbbrrrrdrddrOrdOdOdwOwOwOGwGwwGGwCGwCGCGCCvMCCMCMCCBMMMB", -"qyNyiqyNyNyNyyqyyNyqyyqyyyqIIyIycIcIcIAcAsAAAKsKKeKemkmkmkmQkEEQEoaoaoaFFRFFtRftftlPllllpxpxpbbHpbbrrrzrzrdJrOdOOdOjOOOwOwwwOGGwGG#GGCGCGCvCCvCMCCMhMCMBMh", -"NyqyqyNyqyqyqyNyqyqyqyyIqIIyIcIcIIcIAsIAsAsAsAeAKeKkKkKmkmEQEQEQaoEaoaRFoRFRfttftPflPlPplpxppHpbbrHbbzrrzrdrdddddOOdwOwOwwOwGwGwGwCwCGGCGCCGCCCCMMCMMMMhMB", -"yqyqyyqyqyqyqyqyyqyyIyqIyIyIcIIcIsAIcAsAAsAKKKKeeKmemmmkmQkQEQEoEaoaoFoFRFFtFtftftltlllpplpxbpbHbbbrrrzrdrdddJdOdOOOOjOwOwwwwwGwGGGGGCGCGCvCCGMMCMMhMBCBMB", -"yyyyyqyyqyyqyyyqyyyIyIyIIcIcIIcIAIcAsAsAsKAeAKeKekKmkkmQkmQEQEoQaooaoaFRFRtFttftPlPllPplpxpxpbpbbHrbzrrrrdrdrOddOdjOwOwOwwOGOGwGw#GGCGCGCCGCCMCCMChCMMMhMB", -"IqyqyyqyyyqyyqIIIIqIIIIcIIcIccIscAsAsAAAKAsKeeKekmekmmkmEEEQEEoaoaoaRFoFFFtftftltlPlPplpxpxpbbbHbrbrrzrdzddddddOOOOOOwOwO#wGGwGGGCw#GCGCvCCvMCMCMMMMBCBMBM", -"IyIIIIIIIIIIIIyIyIIIyIcIccIcIcAIAsAsAAsKsKKeKeKmeKmkmkEmQQQEQaoEaoaRoFRFRtRFtftfltlPlplxpppbbpHbbbrbrrzrdrdrJOdOdOdwOwOwwwOwwGwwGwCGCGCGCCGCCCvMCMCMMhMhMB", -"IIIyIyIyIyIyIyIcIcIccIcIcAIAcAsAsAsAsKKAeKeKekKkkmkmkmQkEEEQoEoaoaoFRFRtFftftftlPlllplppxxpbpbbbrHrzrzrdrddOddOOOjOOwOwOwwGwGwG#GGGCwCGCvCCMvMCMMMhMBMBMBh", -"cIcIcIcIcIcIcIcIcIcIcIcIAscsAIAsAAsAKAKeKeKkeKmemkmkQmQEQEQoEoaoaoFRRFFRtFttltPltPpPlppxppbpbHbHrbrrrrdrdrOrdOddOdwOjOwOGOwwGwGGwCGGvGCGCCvCCCMCMCMhCMMhMB", -"IcIcIcIcIcIcIcIcIcIAIAcAIAAsAsAsAsKAKseKeKeKmkkmkmmQmkEQEEoaEaoaaRaoFFtFftftfPtllllppxppxbpbbbbbrrzrzrdrdddOdOdOOOOwOwwO#wGwGwG#CwCGCCvCvCCCMCMCMMMBMBhBMh", -"IAccIcIcIcIcIccIAIAscsAsAIsAsAsAAKAeKeKeKemkemkmmkQkEQEEQoQoaoaoFoFFFRtRttftltllPlPllppxppbHbpHrbbrrrdrddrddOdOOOjOOwwOwwwwGwGGwGGGCGCGCCCvCvMCMhCMMhMMMBB", -"csAIAsAsAsAAsAsAcsAIAAsAsAAAAAKKsKKKeKeKkeKmkmkmkQmEQEQoEaoaoaoRRFRFRtfFftftPlPlPlppxpxpbbHprrbrrzrzrdrdrOOddOOjOwOwOwO#OGwGwG#CwCGGCGCGCGMCMCMMMMBCBMBMhB", -"IAsAIAIsIAsIAIAIAsAsAsAsAsAsKsAKeAeeKeKemkmkmkmkQmEQEQEaQoEaoaFoRFRtFFtttftlfltPplplppxpHpbbbbrbbrzrrdrdOdddOdOOOOwOwOwwGwGwGGwGGGCGCvCvCCMCCMCMCMhMMhMBMB", -"sAsAsAsAsAsAsAsAsAsAsAAAKAKKKeKeKeKeekmKkmkmkmQmEQEQEEoEaoaoaoRFaFFRttftftltlPlpllpxpxpbxbpbHrbrrrrdzdrdrOdOdOjOjOwOwwwOGwwGGGCwGCGCGCCCGMCCMCMMhMBMBMBhBu", -"sAAsAsAAAsAAsAAsAAAAAsKsKKsAeKKeKeeKkKmkmkmkmmQEkEQEoQaooaoaRFoRFRFFfFtftftlPlPlplpxpbpbpbbrbrbrzrzrdrdOddOdOOOOOOwOwOwwwwGwGwGGGCGGCGCGCCMvCMMCMMCMMBMuMB", -"AAsAAAAsAAAsAAsKAsKKAKKKeKeKeKeKekkmmemkmmkQmkEQEQEEoEoaoaoRoFRFFttRtftfftlPtllpPpxpxpbbHbHbbrrzrzrdrddrOddOOjOwOwOwO#wGOGGGw#CGCGCCvCvMCvCMMMCMhBMhhMBMBu", -"KKAKKsAKKsAKAKKAKKKKKeAeKeKkKeeekKmKmkmkmkmQEEQEQEoQaoaoaoFaFRFFRFFtfttltlllllplpxpppbpbpbbrbrbrrrdrdrdddOdOdOOOwOwOwGOwGGwGwCwGGCGGCGCCMCMCCMMMMCBMBMBMBB", -"eAeKKeKKKKKKeKAeKAeeKeKeKeeKkmkmKmkmkmkmQmEQQEQEooQaooaoaRoFRFRFttfttfftlPPlpPppxppxbxbHbrbbrzrzrdrddddOddOOjOwOwOwwwOGwGwGGGGGC#CGCCCvCGMCMMCMhMMMhBMhBuB", -"eKeKeKKeKeeKeKeKeeeKeKeKeKmemkKkmkmkmkQQkEkEEQoEQEaEaoaFoaRFRFFRftFftftPltlPlllxppxpbpbpbHbrbrrzrzdrdrdJOdOdOOOOwOwOwwwwGwG#wCGGCGCvCGCCMCMCMhMMCBMBMBMBMB", -"KeKeKeeKeKeKeKeKeKeKekkkmekmKmmkmmkQQmEQEQEQEEoQaooaoaoRFFFRFFtFtftftlllPllpppppxpxbpbbrbrbrrzrrdrdddOddOdOjOwOwOwO#wGwGwGGGCwGCGCGCvCCvCMCCMCMhBCMhBMBuBu", -"kkKeeKeKeeKeKkKkkkkkKmKmkkmkmkkmmkEmmEkQEQEQoQaoaoaoaaFoFRRFFRtFfttltPtfllPllxlpxpbpbpbHbrbrzrrdrdrdrddOdOOOOdwOwOwwGOwwGw#wGGCGCGCGCCCMCMCMMMMMMhMBMMBMBB", -"KmekmekekKmememKmKmemkmkmmkmmmmkQQmkEEQEQoEoaEoEaoaaoFRRFFFRttfttfftllllPlppppxpxpbbHbbrbrrrrzrzdrOddOddOOjOwOwOwwOwwGGGGGCGCGG#CGCCvCvCMCMMChMBMBMMBhBuBu", -"ekmKkmkmkmkkkmkkmkmkmkmkmkmkmkQQEQEEQEQoEEaQoaoaoaoFRFoRFRFtFtFftPtfPltPplplxppxpbbpbHbHrbzrzrrdrdddJddOOdOOOjOwOw#OwwGwwGwGwCGCGCCGCCMCvMCMMMhCMMBMBuBMBB", -"kmkmkmkmkmkmkmkmkmkmkmmkmQmQQEEmkEQEQEEoQooaooaaRoFRoFFFFttFftftftlltllplPpppxpxpbpbbrbrbrrrzrdrddrOdOOOdjOwOwOwwOGGwGwG#GCGCG#CvCvCMGMCMCMMCMBMBMhBMBMBuB", -"mkmmmkmmkmmkmmkmmkmmmkQmQkQEkQEQEEQoEooEaEaoaoaoFaRFFRtRtRtfttftPltPllPllplxpxpbpHbbHbrbrrzrdrddrddOdddOOOOOwOwOwwwwwGwGGGGGGGCGCCGCCMCMCMChMhCMMBMMBuBuBB", -"QQQkQmkmmkmmkQQmkQQkEQEQEQEQEEQEoQoEoaQaoaoaaaoFRoFRFFFtFfttfftlftllPplppxpxpxpbbbprbrbrrrzrzdrdddddOOOjOjwOwOwwOGwOGwG#GCwC#CGCGCCvCCCMCMMMMBMBhMBhBMBMBu", -"EkmEkQQkQQkQQEkQEEQEmQkEQEQEEQoEQoEaQaoaoaoaoRFRRFFFRtRftFftftltllPllPlxppxpbpbbpbbHrbrbzrrdrrddrOdOdOdOOOOwOwOwwwGGGGwGwGGGCGCvCCvCCMvCMMCMhMMMMBuMBuBuBB", -"QEQEQEQEQEQEmQEQmEQEQEEQEEQEoEaQaoaooaoaoRRFFoFRFFRFtFtFftftlPflPlplppppxpxpbxpbbbrbbrrrrzrzdrddOdJOdOOjOwOwOwwOGwwGwG#CGCGCGCGCGCCMvCMMMCMhBCBhBMBMBMBBuB", -"EQEQEQEQEQEQEEQEEEQEEQEEQEoQaQooEaoaoaoaFoaoRFRFFRtFftftftftltltlPlPplxppxpbpbbHbHbrbzrzrdrdrddOrdOdOjOdwOwOwwOwGwGwGGwGwC#GCGCvCMGCCMCCMMMMMMMBMMBMBuBuBB", -"QEEQEEQEEQEEQEQEQEEQooaooaoaooaoaoaaaoRFoFFFRFFFttFttftftPtlPllplpplpxppxpbHbpbbrbrbrrrzrzdrddrOdOdOOOOwOOwOwO#wO#wGGwCGGGCGCGCCvCMCMCMMMChBChMMBhBMBBuBBB", -"EaoEoEoQoEoQoEoEoooEaEoQaoEoaoaoaoaoRFoRFRRRFtRtRttfttftltPltlPlPllpxppxpxbpbbbHbrbrrrzrrdrOrdOdOdOdOjOOwOjwOwwGGwGwGGG#GCGCGCCGCCvCMCMChMMMMBhBMBMBuuBBuL", -"oQaoaoEaEoaEoaoaoaQaoaoaoaaoaaoRRoFFRFRFRFFFFtFtfFftftftlPlPlPlpppplpxxpbpbbHbrbrbrrzrzrdrddddddOdOOOOwOwOwwwwOGwGwG#CwCGGCGCvCCCGMCMCMMMMBCMMBMhBuBBBuBBB", -"oaoaQoaooaEaoQaooaoaoaoaoaoaoaFoaRFoaRFRFFRttRfttftftltfPltlllplllxpxpxpxbHbpHbrbrbrzrrdzddrdOdOdOOjOjOwOwO#OwGwGwGGGwGGGCGCGCCvCMCMCMMChMMMhBMMBMBuMBuBuL", -"oaoaoaoaaoaoaoaoaoaoaoaaoRFRFoFRFFRFFFFFttFtFttftftfltlllllpPplppxppxpbbpbbbrbrbrrzrrzdrdrddOddOOOOOOOwOwwOwGwwGwGGwCGCGCGCGCvCCCCMvMMCMMBCBMMBhBuBBBuBBBB", -"FoaoaaaoaoaoaaoaaoRoaRoFFoRoRFRFRFFRtRttFRtfftftftltflPltlPlplppxppbpbbpbbHbbrbrzrrzrdrdrddddOdOdjdwOwOwOw#OwwGwGwG#GGwCGCGCvCCMvCCMCMMhMMhMhBMBMBMBMBBuBL", -"aRaFaoRoRRoRoFaFoFaFRoFRaFFFRFFRFFFFtFtftfttftfftlPlPtlPpplplpxpxpxpbpbbbprbrbrrrzrzdrdddOrOOdOOOOOjOwOwwOwGwwGwG#GCwCG#CGCCCGCGMMCMMMCMBCBMBMuBMBuBuBuLBB", -"RFoFoRFFoRFRFRoFRRFRFFFRFFRFFRFFRttRttFfttfftfltPltPllpllplpxppxpbpHbHbHbrbrbrbzrrdrdrdOrdOdOdOdOOwOwOwOwwwwwGwGGwGGGGCGCvCvCCCMCMCMCMMhMMMhMMBMBuBBuBLBBL", -"RFRFFFRRFFaFRFFRFRoFRFRFRFFRFtFtFttftfttfftftltllPllPlPplppppxpxpbxpbpbbHrbrrzrrzrzdrddrOOdOdOOjOjOOwwOwwOGwGwGG#CwCGCGCGCGCCvMCCMCMMMBCBMBuBMBuBMBMLBuBLB", -"RFtRFRFFFRFFFRFRFFtFRFtFtttttRttfFftftftftltlPlPllPllpplxlxpxpbpbpbbbrHrbrbzbrzrdrdrdddOddOdOdOOwOOwOwwOwGwGwGwGwGGGC#GCGCCvCCCvMCMChCMMMMBMBMBMBuBBuBLuBL", -"tFRFtFRFFFFRFFFtRFtFtFtRtFtfFftfttftftfltlflPtllPllplplppxpxpxpbHbprbbbrbrrrrzrrzdrddrOddOdOOjOOOwwOwOw#wwO#GGG#GCGCGCGCCvCCCvMCMCMMMMBhBMMhBMBuBBuBBBBBLB", -"fFtFtFtttttttttFtFtRfttftfFtfttftftftltfPltlllPlllpPpxpxppxpbpbbpHbbbHrbrbzrzrdrdrdrOdddOdOOOOjOwOwOwwGOwGGwGwGwCGGGGCGCvCCvCMCMCMMMMhMMhMBMBuBuBMBBuLuLBL", -"ttfttttRtRtFtfRftftftfttftftftftfltlPllltlPlPlllpPppppxpxpxpbHpbbbrHrrbrrrrzrzrdrdOdddOdOOdjOjOOwOwwOwwGwGwGG#GCwGC#CGCvCCGMCMCMMMChBCBMBMuBMBMBBuBLBBBLBL", -"tfttfftfftffttftttftftftftftftPltflPltPPlPlplpplpplxpxppxpbbpbbHbHbbrbrrrzrzrdrdddrdOddOdOOOwOOwOwwOw#OwwGwGGGGwCGCGCvCCGCMCCCMCCMMMMMCBhMBMBuBuBBuBuLuLBL", -"ftffttftftftftftfftftftfftlltlftlltlPlllplpPplppxpxpxpxbpbbpbbbrbrrbrrzrzrzdrddrddOddOdOOjOOOwwOwOwwwGGGwGG#GCwGGCGCGCGCCCvCMMCMMMhBCuMMBMBMBMBBMBBBBBLBLL", -"ltftffftftftfftfPtltltltlltPlPlllPlPlllPplplppxpxppxpbpHbpHbbHbHrbbrbrrzrrdrdrdddOddOdOdOOjOwOOwwwOGOwwwGwGwGwCGCGCGCvCCvCMCMCMMMMCMMBMBMBMBuBuBuBLuBLBLBg", -"PlPtltlltltltlltlflPlPlPlPllPtlPlplplpplpppxpxppxpxpbxpbbbbbprbrbrrrzrzrzdrdrOdrOdOdOOOjOjOOwOwOwwwwGwGwG#GCG#GCGCGCCCvCMCCMCMMCMhBMMhBMhBMBMBBuBLuBLBuLLL", -"ltllPltlPlPlPltPltltlfPlltlPlplplPlpPpPpplxpppxpxpbbpbbrpbHbrbrbrrrrzrrdrdrddddOddOdOdOdwOOwOwwwwOGwwGwGGwGwCGC#GCvCvCCGCMvCMCMhMMCBMBMMBMBuBBuBBBBLBLBLBg", -"lPlPllPlPlPllPlllPllPtllPplllPplpplpppxpxppxxpxpbpbpbbpbrbrrbrrrrzrzrzrdrddrOdrOOdOOOjOOOwwOwOwOw#wO#wGG#GCwGCGCCGCCGCCMCMCMMMMMhBMMhBMBhBuBuBBBMLuBLBLLLL", -"lllllPlPllPlPllPplpllppllplplplplpplxpxppxxppbpbpbHrbHbrbHbbrbzrzrrzrdrddrdddOdOdOOdOOjOwOOwOww#OwwGGGGwGGwCGGCGGCCvCCCMvCMCMCMMMMhMBMMBuBMBuBuBLBBLuLBLBg", -"lpPlPllllPlllPplPlpPpllpPplpppxpxpxppxpxpxpbxbbbbbpbbbbHrrrrrrrzrzrdrddrOdOdddOdOOdjOjOOwOwwwOwwGGGwGw#GCG#GCGCGCGCCCvCCMMCMMMhBCBMBMBhBMBBuBBBuLBLBLBLgLL", -"PplppppppppppplplplplppppppxlxpppxpxxpxpbpbpbpbpHbrHrbrrbrbzrzrrzrdrdrdOrdOrOOdOdjOOOwOwOwwOww#OwwGwGGGGwCGCGCGCCCCGCCMCMCMMCMMMMCBhMBMBuBuBBMBLBuBLBLLBLg", -"pppplplplplplppppppxpxlxxpxppxpxxpbppbbpbbbbbbHbrbbbrHrbrzrrzrzrdrdddddddOdOOdOOOOjOwOwOwOwwO#wGGwG#G#CGGGCGCGCvCvCMCMCMCMMMhMBChBMMBMBuBuBuBLBuBLLBLLgLLg", -"pxxpxpxpxpxpxpxpxpxpppxppxpxpxpxpbpbbpbbHbpHrprbbHrrbrrzrrrzrzrdrdrdrdrdddOdOOdjOOwOOwOwwwOwwGwwGwGwGGwCGC#GCvCCvCCvCMvCMMCMMMhMBMMBMBMBMBBBBuLBLBLBLBLBLg", -"xppxpxpxpxpxpxpxpxpxxpxpxpxpbpbpbHbHpbHprbbrbrbrrbrbrrrrzrzrdrddrdOddOOdOOdOdOOOjOOwwOwOwwGwGwGwGG#GCwGGCGCCGCGCCCvMCMCMMMMhBCBMhBhBMBuBBuBMLBBuLBuLLgLgLL", -"xpxpxpxpxpxpxpxpxpxpbpbpbbpbbbbbpbpbbbbbbbHbHrbbrrrrzrzrrdrdrddrddrdOdddOdOOjOjOOwOwOwOw#OwGOwGwGwGGG#GCGCGGCvCCGMCCMCMCMCMMMMMMBMBMBuBuBMBBLuBLBLLgBLBgLg", -"bpbpbpbpbpbpbpbpbpbpbxpbHpbHpHprbbbHbrHrbrrrbrrrbzrzrrzrzrddrdrOddOddOOdOOOOOjOwOwOwwO#wOGGwGGGG#GCwCGCGCGCCCCvCMCCMCMMMMhBCBhBMhBMBuBBuBBuLBBLBLBLBLgLLgL", -"pbbbbpbbpbbpbbpbHbbbpbbpbbbbbbbbbHbbHbrbrbbrrrbzrrzrrzrdrddrddddddddOdOOdOOjOwOOwOwwOwwwGwwwGwGwGG#GGCGC#CGCGCCvCMvCMCMCMMMhMMMBMBuBMBMBuBLBuLLuBLLLBLgLLg", -"bbpbbbbpbbpbbpbbpbpbbHbbHbprbrHrHbrrrbrbrrrbzrzrrzrzdrdddrddrOddOdOOdOOdjOjOOOwwOwOwwwOGwGGw#GG#CwCGCGGCGCvCCvCCCMCMMMMMhBCBMBMhBMBMBuBBBBuBBLBLLLBgLgLLgL", -"bHbbpbHbbHbbHrbHbbrbHbrbrbrbHbbrbrbbrrrrbrrzrzrrzrdrdrdrdOrOddOdJOdOOOjOOOOOwwOwOwwwOwGwGwwGGwGGGGC#GCGCvCCvCCMCMCMCMChMMMMMBhMBMBuBuBBMLuLBLuBLBgLLgLLgLg", -"bbrHrbrHrbrHbbHrbHbbrbHbrHrbrrbrrrrrbrzrzzrrzrddrdrdrdddrdddddOdOOOdOOOjOwOwOOwwwOww#wwGwGGG#GCwCGGCGCvCCGCCCGMCvMMMMMMBCBMhMBMBMBMBBuBLBBuLBLLLLLBgLLgLgL", -"rbrbrbrbrbrbrrbrbrrHrbrrbrbrbrrbrbrrrzrzrrzdrdrrddrddOrdddOdOOdOOdOOOjOOwOwOwwwOw#OGwwGwGwGwCGwCGGCGCGCCvCCvCMCMMMCMCMhMMCBMBMBMBuBBuBuBuLBBLBBgBLgLLgLgLg", -"rbrbrbrbrbrbrbrbrbrrrrrbrrrzrrzrzrzzrrzrzrrdrdddrdddrdOdOddOddOOdOjOjOOwOwOwOwOwwwGwGwGGG#GGGGCG#CGCGCGCCCvMCMCMCMMMMBCBMBMhBMBuBMBuBBBBBBLBLBLLLgLgLLgLgL", -"zrrrrrrrrrrrrrrrrrrbrbrrrzrrzrzrrzrrzdrdrddrddrddOrddOddOdOdOOOOOOOwOOwOwOwwww#OwGOGwGwGwGG#GCGGCGCGCvCCvCCCMCMCMMCMhMMMMhMBMBMBuBBuBLuLuBLuBLBLBLgLLgLgLg", -"rrzrzrzrzrzrzrzrzrzrzzrzrrzrrrzrdrdrdrdrdrdddrddddOdOdOdOdOOOOOjOjOOwwOwOwwOwO#GwGGwGGG#G#CwCw#CGCvCCCvCCMCMCMCMMMMBCBMBhBMBhBuBBuBBBuBBLLBLLLgLgLLgLgLgLg", -"rzrrzrrzrrzrrzrrzrrzrrzrzzrzdrdrdrddrdrddddrdddOrddOdOdOOOdOOjOOwOjwOwOwwOwOwGwwGwwGGwGwCGwCGGCGCGCCvCCvCCMCMCMMChMhMMhMBMBMBMBMBuLMBBLBLuLBLBLBLLgLLgLgLg", -"zrzrzrzrzrzrzrzrzrzrzrdrdrdrdzrddrdrddddrOddOJddOOOdOOOOdOOjOOjOjwOOwOwwww#GwwwGwG#Gw#GGGCGGCGCvCCvCCCCMCvMCMMMMMBCBMBMBMuBuBuBBuBBBuLBLBLBLLgLgLgLgLgLgLg", -"rdrdrdrdrdrdrdrdrdrdddrdrdrdrddrJdddOrJOddddddOOdOdOdOdOjOjOOwOwOwOwwwwOwOwGOGwGwGwGGGCGCGGCGCGCCvCvCGCCMMCMCMCMMMMMhMhMBMBMBMBuBBuBLBLuLBLBLBLLLgLLgLgLgg", -"drddrddrddrddrddrdrdrddrdddddrOddrdddOddrOOOdOddOOOOOOjOOjOwOjOwOwwwOwww#Gww#GGGGG#GCwGGCGCGCGCvCGCCCMCMCCMMMMMhBCBMBMBuBMBuBBuBBuBLuBLBLLLgLgLgLLggLgLgLg", -"ddrddrdddrddrddrdddddrddOrdrddddOdOJdddOOOdOdOOOdjOOjOOOwOOwOwOwwwwO#OwGOwGwGwGwGwCGGCGCGC#CvCGCCCMvCCMvMMCMCMCBMhMhMBMBMBMBuBBuBLBBBLBLBLBLBLgLgLgLgLgLgg" -] - -img1=None - -if __name__=="__main__": - main(sys.argv) diff --git a/python/pyqt/examples2/trolltech.bmp b/python/pyqt/examples2/trolltech.bmp deleted file mode 100644 index 220861e2..00000000 Binary files a/python/pyqt/examples2/trolltech.bmp and /dev/null differ diff --git a/python/pyqt/examples2/trolltech.gif b/python/pyqt/examples2/trolltech.gif deleted file mode 100644 index f674369e..00000000 Binary files a/python/pyqt/examples2/trolltech.gif and /dev/null differ diff --git a/python/pyqt/examples2/tt-logo.png b/python/pyqt/examples2/tt-logo.png deleted file mode 100644 index a0d9e340..00000000 Binary files a/python/pyqt/examples2/tt-logo.png and /dev/null differ diff --git a/python/pyqt/examples2/tut1.py b/python/pyqt/examples2/tut1.py deleted file mode 100755 index 2eca8c5d..00000000 --- a/python/pyqt/examples2/tut1.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 1. - -import sys -from qt import * - - -a = QApplication(sys.argv) - -hello = QPushButton("Hello world!",None) -hello.resize(100,30) - -a.setMainWidget(hello) -hello.show() -a.exec_loop() diff --git a/python/pyqt/examples2/tut10.py b/python/pyqt/examples2/tut10.py deleted file mode 100755 index 0470a85d..00000000 --- a/python/pyqt/examples2/tut10.py +++ /dev/null @@ -1,145 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 10. - -import sys -from qt import * - - -class LCDRange(QVBox): - def __init__(self,parent=None,name=None): - QVBox.__init__(self,parent,name) - - lcd = QLCDNumber(2,self,'lcd') - self.slider = QSlider(Qt.Horizontal,self,'slider') - self.slider.setRange(0,99) - self.slider.setValue(0) - self.connect(self.slider,SIGNAL('valueChanged(int)'),lcd,SLOT('display(int)')) - self.connect(self.slider,SIGNAL('valueChanged(int)'),self,PYSIGNAL('valueChanged(int)')) - - self.setFocusProxy(self.slider) - - def value(self): - return self.slider.value() - - def setValue(self,value): - self.slider.setValue(value) - - def setRange(self,minVal,maxVal): - if minVal < 0 or maxVal > 99 or minVal > maxVal: - raise ValueError, 'LCDRange.setRange(): invalid range' - self.slider.setRange(minVal,maxVal) - - -class CannonField(QWidget): - def __init__(self,parent=None,name=None): - QWidget.__init__(self,parent,name) - - self.ang = 45 - self.f = 0 - self.setPalette(QPalette(QColor(250,250,200))) - - def angle(self): - return self.ang - - def setAngle(self,degrees): - if degrees < 5: - degrees = 5 - if degrees > 70: - degrees = 70 - if self.ang == degrees: - return - self.ang = degrees - self.repaint(self.cannonRect(),0) - self.emit(PYSIGNAL('angleChanged(int)'),(self.ang,)) - - def force(self): - return self.f - - def setForce(self,newton): - if newton < 0: - newton = 0 - if self.f == newton: - return - self.f = newton - self.emit(PYSIGNAL('forceChanged(int)'),(self.f,)) - - def paintEvent(self,ev): - if not ev.rect().intersects(self.cannonRect()): - return - - cr = self.cannonRect() - pix = QPixmap(cr.size()) - pix.fill(self,cr.topLeft()) - - p = QPainter(pix) - - p.setBrush(Qt.blue) - p.setPen(Qt.NoPen) - - p.translate(0,pix.height() - 1) - p.drawPie(QRect(-35,-35,70,70),0,90 * 16) - p.rotate(-self.ang) - p.drawRect(QRect(33,-4,15,8)) - p.end() - - p.begin(self) - p.drawPixmap(cr.topLeft(),pix) - - def cannonRect(self): - r = QRect(0,0,50,50) - r.moveBottomLeft(self.rect().bottomLeft()) - return r - - def sizePolicy(self): - return QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding) - - -class MyWidget(QWidget): - def __init__(self,parent=None,name=None): - QWidget.__init__(self,parent,name) - - quit = QPushButton('&Quit',self,'quit') - quit.setFont(QFont('Times',18,QFont.Bold)) - self.connect(quit,SIGNAL('clicked()'),qApp,SLOT('quit()')) - - self.angle = LCDRange(self,'angle') - self.angle.setRange(5,70) - - self.force = LCDRange(self,'force') - self.force.setRange(10,50) - - self.cannonField = CannonField(self,'cannonField') - - self.connect(self.angle,PYSIGNAL('valueChanged(int)'),self.cannonField.setAngle) - self.connect(self.cannonField,PYSIGNAL('angleChanged(int)'),self.angle.setValue) - - self.connect(self.force,PYSIGNAL('valueChanged(int)'),self.cannonField.setForce) - self.connect(self.cannonField,PYSIGNAL('forceChanged(int)'),self.force.setValue) - - grid = QGridLayout(self,2,2,10) - - grid.addWidget(quit,0,0) - grid.addWidget(self.cannonField,1,1) - grid.setColStretch(1,10) - - leftBox = QVBoxLayout() - - grid.addLayout(leftBox,1,0) - - leftBox.addWidget(self.angle) - leftBox.addWidget(self.force) - - self.angle.setValue(60) - self.force.setValue(25) - self.angle.setFocus() - - -QApplication.setColorSpec(QApplication.CustomColor) -a = QApplication(sys.argv) - -w = MyWidget() -w.setGeometry(100,100,500,355) -a.setMainWidget(w) -w.show() -a.exec_loop() diff --git a/python/pyqt/examples2/tut11.py b/python/pyqt/examples2/tut11.py deleted file mode 100755 index 32fb436d..00000000 --- a/python/pyqt/examples2/tut11.py +++ /dev/null @@ -1,213 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 11. - -import sys -import math -from qt import * - - -class LCDRange(QVBox): - def __init__(self,parent=None,name=None): - QVBox.__init__(self,parent,name) - - lcd = QLCDNumber(2,self,'lcd') - self.slider = QSlider(Qt.Horizontal,self,'slider') - self.slider.setRange(0,99) - self.slider.setValue(0) - self.connect(self.slider,SIGNAL('valueChanged(int)'),lcd,SLOT('display(int)')) - self.connect(self.slider,SIGNAL('valueChanged(int)'),self,PYSIGNAL('valueChanged(int)')) - - self.setFocusProxy(self.slider) - - def value(self): - return self.slider.value() - - def setValue(self,value): - self.slider.setValue(value) - - def setRange(self,minVal,maxVal): - if minVal < 0 or maxVal > 99 or minVal > maxVal: - raise ValueError, 'LCDRange.setRange(): invalid range' - self.slider.setRange(minVal,maxVal) - - -class CannonField(QWidget): - def __init__(self,parent=None,name=None): - QWidget.__init__(self,parent,name) - - self.ang = 45 - self.f = 0 - self.timerCount = 0 - - self.autoShootTimer = QTimer(self,'movement handler') - self.connect(self.autoShootTimer,SIGNAL('timeout()'),self.moveShot) - - self.shoot_ang = 0 - self.shoot_f = 0 - - self.setPalette(QPalette(QColor(250,250,200))) - - self.barrelRect = QRect(33,-4,15,8) - - def angle(self): - return self.ang - - def setAngle(self,degrees): - if degrees < 5: - degrees = 5 - if degrees > 70: - degrees = 70 - if self.ang == degrees: - return - self.ang = degrees - self.repaint(self.cannonRect(),0) - self.emit(PYSIGNAL('angleChanged(int)'),(self.ang,)) - - def force(self): - return self.f - - def setForce(self,newton): - if newton < 0: - newton = 0 - if self.f == newton: - return - self.f = newton - self.emit(PYSIGNAL('forceChanged(int)'),(self.f,)) - - def shoot(self): - if self.autoShootTimer.isActive(): - return - - self.timerCount = 0 - self.shoot_ang = self.ang - self.shoot_f = self.f - self.autoShootTimer.start(50) - - def moveShot(self): - r = QRegion(self.shotRect()) - self.timerCount = self.timerCount + 1 - - shotR = self.shotRect() - - if shotR.x() > self.width() or shotR.y() > self.height(): - self.autoShootTimer.stop() - else: - r = r.unite(QRegion(shotR)) - - self.repaint(r) - - def paintEvent(self,ev): - updateR = ev.rect() - p = QPainter(self) - - if updateR.intersects(self.cannonRect()): - self.paintCannon(p) - - if self.autoShootTimer.isActive() and updateR.intersects(self.shotRect()): - self.paintShot(p) - - def paintShot(self,p): - p.setBrush(Qt.black) - p.setPen(Qt.NoPen) - p.drawRect(self.shotRect()) - - def paintCannon(self,p): - cr = self.cannonRect() - pix = QPixmap(cr.size()) - pix.fill(self,cr.topLeft()) - - tmp = QPainter(pix) - tmp.setBrush(Qt.blue) - tmp.setPen(Qt.NoPen) - - tmp.translate(0,pix.height() - 1) - tmp.drawPie(QRect(-35,-35,70,70),0,90 * 16) - tmp.rotate(-self.ang) - tmp.drawRect(self.barrelRect) - tmp.end() - - p.drawPixmap(cr.topLeft(),pix) - - def cannonRect(self): - r = QRect(0,0,50,50) - r.moveBottomLeft(self.rect().bottomLeft()) - return r - - def shotRect(self): - gravity = 4.0 - - time = self.timerCount / 4.0 - velocity = self.shoot_f - radians = self.shoot_ang * 3.14159265 / 180 - - velx = velocity * math.cos(radians) - vely = velocity * math.sin(radians) - x0 = (self.barrelRect.right() + 5) * math.cos(radians) - y0 = (self.barrelRect.right() + 5) * math.sin(radians) - x = x0 + velx * time - y = y0 + vely * time - 0.5 * gravity * time * time - - r = QRect(0,0,6,6) - r.moveCenter(QPoint(x,self.height() - 1 - y)) - return r - - def sizePolicy(self): - return QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding) - - -class MyWidget(QWidget): - def __init__(self,parent=None,name=None): - QWidget.__init__(self,parent,name) - - quit = QPushButton('&Quit',self,'quit') - quit.setFont(QFont('Times',18,QFont.Bold)) - self.connect(quit,SIGNAL('clicked()'),qApp,SLOT('quit()')) - - self.angle = LCDRange(self,'angle') - self.angle.setRange(5,70) - - self.force = LCDRange(self,'force') - self.force.setRange(10,50) - - self.cannonField = CannonField(self,'cannonField') - - self.connect(self.angle,PYSIGNAL('valueChanged(int)'),self.cannonField.setAngle) - self.connect(self.cannonField,PYSIGNAL('angleChanged(int)'),self.angle.setValue) - - self.connect(self.force,PYSIGNAL('valueChanged(int)'),self.cannonField.setForce) - self.connect(self.cannonField,PYSIGNAL('forceChanged(int)'),self.force.setValue) - - shoot = QPushButton('&Shoot',self,'shoot') - shoot.setFont(QFont('Times',18,QFont.Bold)) - self.connect(shoot,SIGNAL('clicked()'),self.cannonField.shoot) - - grid = QGridLayout(self,2,2,10) - - grid.addWidget(quit,0,0) - grid.addWidget(self.cannonField,1,1) - grid.setColStretch(1,10) - - leftBox = QVBoxLayout() - grid.addLayout(leftBox,1,0) - leftBox.addWidget(self.angle) - leftBox.addWidget(self.force) - - topBox = QHBoxLayout() - grid.addLayout(topBox,0,1) - topBox.addWidget(shoot) - topBox.addStretch(1) - - self.angle.setValue(60) - self.force.setValue(25) - self.angle.setFocus() - - -QApplication.setColorSpec(QApplication.CustomColor) -a = QApplication(sys.argv) - -w = MyWidget() -w.setGeometry(100,100,500,355) -a.setMainWidget(w) -w.show() -a.exec_loop() diff --git a/python/pyqt/examples2/tut12.py b/python/pyqt/examples2/tut12.py deleted file mode 100755 index 65490cab..00000000 --- a/python/pyqt/examples2/tut12.py +++ /dev/null @@ -1,252 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 12. - -import sys -import math -import random -from qt import * - - -class LCDRange(QVBox): - def __init__(self,s=None,parent=None,name=None): - QVBox.__init__(self,parent,name) - - lcd = QLCDNumber(2,self,'lcd') - self.slider = QSlider(Qt.Horizontal,self,'slider') - self.slider.setRange(0,99) - self.slider.setValue(0) - - self.label = QLabel(' ',self,'label') - self.label.setAlignment(Qt.AlignCenter) - - self.connect(self.slider,SIGNAL('valueChanged(int)'),lcd,SLOT('display(int)')) - self.connect(self.slider,SIGNAL('valueChanged(int)'),self,PYSIGNAL('valueChanged(int)')) - - self.setFocusProxy(self.slider) - - if s is not None: - self.setText(s) - - def value(self): - return self.slider.value() - - def setValue(self,value): - self.slider.setValue(value) - - def setRange(self,minVal,maxVal): - if minVal < 0 or maxVal > 99 or minVal > maxVal: - raise ValueError, 'LCDRange.setRange(): invalid range' - self.slider.setRange(minVal,maxVal) - - def text(self): - return self.label.text() - - def setText(self,s): - self.label.setText(s) - - -class CannonField(QWidget): - def __init__(self,parent=None,name=None): - QWidget.__init__(self,parent,name) - - self.ang = 45 - self.f = 0 - self.timerCount = 0 - - self.autoShootTimer = QTimer(self,'movement handler') - self.connect(self.autoShootTimer,SIGNAL('timeout()'),self.moveShot) - - self.shoot_ang = 0 - self.shoot_f = 0 - self.target = QPoint(0,0) - - self.setPalette(QPalette(QColor(250,250,200))) - - self.barrelRect = QRect(33,-4,15,8) - - self.newTarget() - - def angle(self): - return self.ang - - def setAngle(self,degrees): - if degrees < 5: - degrees = 5 - if degrees > 70: - degrees = 70 - if self.ang == degrees: - return - self.ang = degrees - self.repaint(self.cannonRect(),0) - self.emit(PYSIGNAL('angleChanged(int)'),(self.ang,)) - - def force(self): - return self.f - - def setForce(self,newton): - if newton < 0: - newton = 0 - if self.f == newton: - return - self.f = newton - self.emit(PYSIGNAL('forceChanged(int)'),(self.f,)) - - def shoot(self): - if self.autoShootTimer.isActive(): - return - - self.timerCount = 0 - self.shoot_ang = self.ang - self.shoot_f = self.f - self.autoShootTimer.start(50) - - def newTarget(self): - r = QRegion(self.targetRect()) - self.target = QPoint(random.randint(200,390),random.randint(10,265)) - self.repaint(r.unite(QRegion(self.targetRect()))) - - def moveShot(self): - r = QRegion(self.shotRect()) - self.timerCount = self.timerCount + 1 - - shotR = self.shotRect() - - if shotR.intersects(self.targetRect()): - self.autoShootTimer.stop() - self.emit(PYSIGNAL('hit()'),()) - elif shotR.x() > self.width() or shotR.y() > self.height(): - self.autoShootTimer.stop() - self.emit(PYSIGNAL('missed()'),()) - else: - r = r.unite(QRegion(shotR)) - - self.repaint(r) - - def paintEvent(self,ev): - updateR = ev.rect() - p = QPainter(self) - - if updateR.intersects(self.cannonRect()): - self.paintCannon(p) - - if self.autoShootTimer.isActive() and updateR.intersects(self.shotRect()): - self.paintShot(p) - - if updateR.intersects(self.targetRect()): - self.paintTarget(p) - - def paintShot(self,p): - p.setBrush(Qt.black) - p.setPen(Qt.NoPen) - p.drawRect(self.shotRect()) - - def paintTarget(self,p): - p.setBrush(Qt.red) - p.setPen(Qt.black) - p.drawRect(self.targetRect()) - - def paintCannon(self,p): - cr = self.cannonRect() - pix = QPixmap(cr.size()) - pix.fill(self,cr.topLeft()) - - tmp = QPainter(pix) - tmp.setBrush(Qt.blue) - tmp.setPen(Qt.NoPen) - - tmp.translate(0,pix.height() - 1) - tmp.drawPie(QRect(-35,-35,70,70),0,90 * 16) - tmp.rotate(-self.ang) - tmp.drawRect(self.barrelRect) - tmp.end() - - p.drawPixmap(cr.topLeft(),pix) - - def cannonRect(self): - r = QRect(0,0,50,50) - r.moveBottomLeft(self.rect().bottomLeft()) - return r - - def shotRect(self): - gravity = 4.0 - - time = self.timerCount / 4.0 - velocity = self.shoot_f - radians = self.shoot_ang * 3.14159265 / 180 - - velx = velocity * math.cos(radians) - vely = velocity * math.sin(radians) - x0 = (self.barrelRect.right() + 5) * math.cos(radians) - y0 = (self.barrelRect.right() + 5) * math.sin(radians) - x = x0 + velx * time - y = y0 + vely * time - 0.5 * gravity * time * time - - r = QRect(0,0,6,6) - r.moveCenter(QPoint(x,self.height() - 1 - y)) - return r - - def targetRect(self): - r = QRect(0,0,20,10) - r.moveCenter(QPoint(self.target.x(),self.height() - 1 - self.target.y())) - return r - - def sizePolicy(self): - return QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding) - - -class MyWidget(QWidget): - def __init__(self,parent=None,name=None): - QWidget.__init__(self,parent,name) - - quit = QPushButton('&Quit',self,'quit') - quit.setFont(QFont('Times',18,QFont.Bold)) - self.connect(quit,SIGNAL('clicked()'),qApp,SLOT('quit()')) - - self.angle = LCDRange('ANGLE',self,'angle') - self.angle.setRange(5,70) - - self.force = LCDRange('FORCE',self,'force') - self.force.setRange(10,50) - - self.cannonField = CannonField(self,'cannonField') - - self.connect(self.angle,PYSIGNAL('valueChanged(int)'),self.cannonField.setAngle) - self.connect(self.cannonField,PYSIGNAL('angleChanged(int)'),self.angle.setValue) - - self.connect(self.force,PYSIGNAL('valueChanged(int)'),self.cannonField.setForce) - self.connect(self.cannonField,PYSIGNAL('forceChanged(int)'),self.force.setValue) - - shoot = QPushButton('&Shoot',self,'shoot') - shoot.setFont(QFont('Times',18,QFont.Bold)) - self.connect(shoot,SIGNAL('clicked()'),self.cannonField.shoot) - - grid = QGridLayout(self,2,2,10) - - grid.addWidget(quit,0,0) - grid.addWidget(self.cannonField,1,1) - grid.setColStretch(1,10) - - leftBox = QVBoxLayout() - grid.addLayout(leftBox,1,0) - leftBox.addWidget(self.angle) - leftBox.addWidget(self.force) - - topBox = QHBoxLayout() - grid.addLayout(topBox,0,1) - topBox.addWidget(shoot) - topBox.addStretch(1) - - self.angle.setValue(60) - self.force.setValue(25) - self.angle.setFocus() - - -QApplication.setColorSpec(QApplication.CustomColor) -a = QApplication(sys.argv) - -w = MyWidget() -w.setGeometry(100,100,500,355) -a.setMainWidget(w) -w.show() -a.exec_loop() diff --git a/python/pyqt/examples2/tut13.py b/python/pyqt/examples2/tut13.py deleted file mode 100755 index 7231a7ab..00000000 --- a/python/pyqt/examples2/tut13.py +++ /dev/null @@ -1,329 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 13. - -import sys -import math -import random -from qt import * - - -class LCDRange(QWidget): - def __init__(self,s=None,parent=None,name=None): - QWidget.__init__(self,parent,name) - - lcd = QLCDNumber(2,self,'lcd') - self.slider = QSlider(Qt.Horizontal,self,'slider') - self.slider.setRange(0,99) - self.slider.setValue(0) - - self.label = QLabel(' ',self,'label') - self.label.setAlignment(Qt.AlignCenter) - - self.connect(self.slider,SIGNAL('valueChanged(int)'),lcd,SLOT('display(int)')) - self.connect(self.slider,SIGNAL('valueChanged(int)'),self,PYSIGNAL('valueChanged(int)')) - - self.setFocusProxy(self.slider) - - l = QVBoxLayout(self) - l.addWidget(lcd,1) - l.addWidget(self.slider) - l.addWidget(self.label) - - if s is not None: - self.setText(s) - - def value(self): - return self.slider.value() - - def setValue(self,value): - self.slider.setValue(value) - - def setRange(self,minVal,maxVal): - if minVal < 0 or maxVal > 99 or minVal > maxVal: - raise ValueError, 'LCDRange.setRange(): invalid range' - self.slider.setRange(minVal,maxVal) - - def text(self): - return self.label.text() - - def setText(self,s): - self.label.setText(s) - - -class CannonField(QWidget): - def __init__(self,parent=None,name=None): - QWidget.__init__(self,parent,name) - - self.ang = 45 - self.f = 0 - self.timerCount = 0 - - self.autoShootTimer = QTimer(self,'movement handler') - self.connect(self.autoShootTimer,SIGNAL('timeout()'),self.moveShot) - - self.shoot_ang = 0 - self.shoot_f = 0 - self.target = QPoint(0,0) - self.gameEnded = 0 - - self.setPalette(QPalette(QColor(250,250,200))) - - self.barrelRect = QRect(33,-4,15,8) - - self.newTarget() - - def angle(self): - return self.ang - - def setAngle(self,degrees): - if degrees < 5: - degrees = 5 - if degrees > 70: - degrees = 70 - if self.ang == degrees: - return - self.ang = degrees - self.repaint(self.cannonRect(),0) - self.emit(PYSIGNAL('angleChanged(int)'),(self.ang,)) - - def force(self): - return self.f - - def setForce(self,newton): - if newton < 0: - newton = 0 - if self.f == newton: - return - self.f = newton - self.emit(PYSIGNAL('forceChanged(int)'),(self.f,)) - - def shoot(self): - if self.isShooting(): - return - - self.timerCount = 0 - self.shoot_ang = self.ang - self.shoot_f = self.f - self.autoShootTimer.start(50) - self.emit(PYSIGNAL('canShoot(bool)'),(0,)) - - def newTarget(self): - r = QRegion(self.targetRect()) - self.target = QPoint(random.randint(200,390),random.randint(10,265)) - self.repaint(r.unite(QRegion(self.targetRect()))) - - def gameOver(self): - return self.gameEnded - - def setGameOver(self): - if self.gameEnded: - return - if self.isShooting(): - self.autoShootTime.stop() - self.gameEnded = 1 - self.repaint() - - def restartGame(self): - if self.isShooting(): - self.autoShootTime.stop() - self.gameEnded = 0 - self.repaint() - self.emit(PYSIGNAL('canShoot(bool)'),(1,)) - - def moveShot(self): - r = QRegion(self.shotRect()) - self.timerCount = self.timerCount + 1 - - shotR = self.shotRect() - - if shotR.intersects(self.targetRect()): - self.autoShootTimer.stop() - self.emit(PYSIGNAL('hit()'),()) - self.emit(PYSIGNAL('canShoot(bool)'),(1,)) - elif shotR.x() > self.width() or shotR.y() > self.height(): - self.autoShootTimer.stop() - self.emit(PYSIGNAL('missed()'),()) - self.emit(PYSIGNAL('canShoot(bool)'),(1,)) - else: - r = r.unite(QRegion(shotR)) - - self.repaint(r) - - def paintEvent(self,ev): - updateR = ev.rect() - p = QPainter(self) - - if self.gameEnded: - p.setPen(Qt.black) - p.setFont(QFont('Courier',48,QFont.Bold)) - p.drawText(self.rect(),Qt.AlignCenter,'Game Over') - - if updateR.intersects(self.cannonRect()): - self.paintCannon(p) - - if self.isShooting() and updateR.intersects(self.shotRect()): - self.paintShot(p) - - if not self.gameEnded and updateR.intersects(self.targetRect()): - self.paintTarget(p) - - def paintShot(self,p): - p.setBrush(Qt.black) - p.setPen(Qt.NoPen) - p.drawRect(self.shotRect()) - - def paintTarget(self,p): - p.setBrush(Qt.red) - p.setPen(Qt.black) - p.drawRect(self.targetRect()) - - def paintCannon(self,p): - cr = self.cannonRect() - pix = QPixmap(cr.size()) - pix.fill(self,cr.topLeft()) - - tmp = QPainter(pix) - tmp.setBrush(Qt.blue) - tmp.setPen(Qt.NoPen) - - tmp.translate(0,pix.height() - 1) - tmp.drawPie(QRect(-35,-35,70,70),0,90 * 16) - tmp.rotate(-self.ang) - tmp.drawRect(self.barrelRect) - tmp.end() - - p.drawPixmap(cr.topLeft(),pix) - - def cannonRect(self): - r = QRect(0,0,50,50) - r.moveBottomLeft(self.rect().bottomLeft()) - return r - - def shotRect(self): - gravity = 4.0 - - time = self.timerCount / 4.0 - velocity = self.shoot_f - radians = self.shoot_ang * 3.14159265 / 180 - - velx = velocity * math.cos(radians) - vely = velocity * math.sin(radians) - x0 = (self.barrelRect.right() + 5) * math.cos(radians) - y0 = (self.barrelRect.right() + 5) * math.sin(radians) - x = x0 + velx * time - y = y0 + vely * time - 0.5 * gravity * time * time - - r = QRect(0,0,6,6) - r.moveCenter(QPoint(x,self.height() - 1 - y)) - return r - - def targetRect(self): - r = QRect(0,0,20,10) - r.moveCenter(QPoint(self.target.x(),self.height() - 1 - self.target.y())) - return r - - def isShooting(self): - return self.autoShootTimer.isActive() - - def sizePolicy(self): - return QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding) - - -class GameBoard(QWidget): - def __init__(self,parent=None,name=None): - QWidget.__init__(self,parent,name) - - quit = QPushButton('&Quit',self,'quit') - quit.setFont(QFont('Times',18,QFont.Bold)) - self.connect(quit,SIGNAL('clicked()'),qApp,SLOT('quit()')) - - self.angle = LCDRange('ANGLE',self,'angle') - self.angle.setRange(5,70) - - self.force = LCDRange('FORCE',self,'force') - self.force.setRange(10,50) - - self.cannonField = CannonField(self,'cannonField') - - self.connect(self.angle,PYSIGNAL('valueChanged(int)'),self.cannonField.setAngle) - self.connect(self.cannonField,PYSIGNAL('angleChanged(int)'),self.angle.setValue) - - self.connect(self.force,PYSIGNAL('valueChanged(int)'),self.cannonField.setForce) - self.connect(self.cannonField,PYSIGNAL('forceChanged(int)'),self.force.setValue) - - self.connect(self.cannonField,PYSIGNAL('hit()'),self.hit) - self.connect(self.cannonField,PYSIGNAL('missed()'),self.missed) - - self.shoot = QPushButton('&Shoot',self,'shoot') - self.shoot.setFont(QFont('Times',18,QFont.Bold)) - self.connect(self.shoot,SIGNAL('clicked()'),self.fire) - self.connect(self.cannonField,PYSIGNAL('canShoot(bool)'),self.shoot,SLOT('setEnabled(bool)')) - - restart = QPushButton('&New Game',self,'newgame') - restart.setFont(QFont('Times',18,QFont.Bold)) - self.connect(restart,SIGNAL('clicked()'),self.newGame) - - self.hits = QLCDNumber(2,self,'hits') - self.shotsLeft = QLCDNumber(2,self,'shotsleft') - hitsL = QLabel('HITS',self,'hitsLabel') - shotsLeftL = QLabel('SHOTS LEFT',self,'shotsleftLabel') - - grid = QGridLayout(self,2,2,10) - grid.addWidget(quit,0,0) - grid.addWidget(self.cannonField,1,1) - grid.setColStretch(1,10) - - leftBox = QVBoxLayout() - grid.addLayout(leftBox,1,0) - leftBox.addWidget(self.angle) - leftBox.addWidget(self.force) - - topBox = QHBoxLayout() - grid.addLayout(topBox,0,1) - topBox.addWidget(self.shoot) - topBox.addWidget(self.hits) - topBox.addWidget(hitsL) - topBox.addWidget(self.shotsLeft) - topBox.addWidget(shotsLeftL) - topBox.addStretch(1) - topBox.addWidget(restart) - - self.angle.setValue(60) - self.force.setValue(25) - self.angle.setFocus() - - self.newGame() - - def fire(self): - if self.cannonField.gameOver() or self.cannonField.isShooting(): - return - self.shotsLeft.display(self.shotsLeft.intValue() - 1) - self.cannonField.shoot() - - def hit(self): - self.hits.display(self.hits.intValue() + 1) - if self.shotsLeft.intValue() == 0: - self.cannonField.setGameOver() - else: - self.cannonField.newTarget() - - def missed(self): - if self.shotsLeft.intValue() == 0: - self.cannonField.setGameOver() - - def newGame(self): - self.shotsLeft.display(15) - self.hits.display(0) - self.cannonField.restartGame() - self.cannonField.newTarget() - - -QApplication.setColorSpec(QApplication.CustomColor) -a = QApplication(sys.argv) - -gb = GameBoard() -gb.setGeometry(100,100,500,355) -a.setMainWidget(gb) -gb.show() -a.exec_loop() diff --git a/python/pyqt/examples2/tut14.py b/python/pyqt/examples2/tut14.py deleted file mode 100755 index aeb4ca61..00000000 --- a/python/pyqt/examples2/tut14.py +++ /dev/null @@ -1,377 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 14. - -import sys -import math -import random -from qt import * - - -class LCDRange(QWidget): - def __init__(self,s=None,parent=None,name=None): - QWidget.__init__(self,parent,name) - - lcd = QLCDNumber(2,self,'lcd') - self.slider = QSlider(Qt.Horizontal,self,'slider') - self.slider.setRange(0,99) - self.slider.setValue(0) - - self.label = QLabel(' ',self,'label') - self.label.setAlignment(Qt.AlignCenter) - - self.connect(self.slider,SIGNAL('valueChanged(int)'),lcd,SLOT('display(int)')) - self.connect(self.slider,SIGNAL('valueChanged(int)'),self,PYSIGNAL('valueChanged(int)')) - - self.setFocusProxy(self.slider) - - l = QVBoxLayout(self) - l.addWidget(lcd,1) - l.addWidget(self.slider) - l.addWidget(self.label) - - if s is not None: - self.setText(s) - - def value(self): - return self.slider.value() - - def setValue(self,value): - self.slider.setValue(value) - - def setRange(self,minVal,maxVal): - if minVal < 0 or maxVal > 99 or minVal > maxVal: - raise ValueError, 'LCDRange.setRange(): invalid range' - self.slider.setRange(minVal,maxVal) - - def text(self): - return self.label.text() - - def setText(self,s): - self.label.setText(s) - - -class CannonField(QWidget): - def __init__(self,parent=None,name=None): - QWidget.__init__(self,parent,name) - - self.ang = 45 - self.f = 0 - self.timerCount = 0 - - self.autoShootTimer = QTimer(self,'movement handler') - self.connect(self.autoShootTimer,SIGNAL('timeout()'),self.moveShot) - - self.shoot_ang = 0 - self.shoot_f = 0 - self.target = QPoint(0,0) - self.gameEnded = 0 - self.barrelPressed = 0 - - self.setPalette(QPalette(QColor(250,250,200))) - - self.barrelRect = QRect(33,-4,15,8) - - self.newTarget() - - def angle(self): - return self.ang - - def setAngle(self,degrees): - if degrees < 5: - degrees = 5 - if degrees > 70: - degrees = 70 - if self.ang == degrees: - return - self.ang = degrees - self.repaint(self.cannonRect(),0) - self.emit(PYSIGNAL('angleChanged(int)'),(self.ang,)) - - def force(self): - return self.f - - def setForce(self,newton): - if newton < 0: - newton = 0 - if self.f == newton: - return - self.f = newton - self.emit(PYSIGNAL('forceChanged(int)'),(self.f,)) - - def shoot(self): - if self.isShooting(): - return - - self.timerCount = 0 - self.shoot_ang = self.ang - self.shoot_f = self.f - self.autoShootTimer.start(50) - self.emit(PYSIGNAL('canShoot(bool)'),(0,)) - - def newTarget(self): - r = QRegion(self.targetRect()) - self.target = QPoint(random.randint(200,390),random.randint(10,265)) - self.repaint(r.unite(QRegion(self.targetRect()))) - - def gameOver(self): - return self.gameEnded - - def setGameOver(self): - if self.gameEnded: - return - if self.isShooting(): - self.autoShootTime.stop() - self.gameEnded = 1 - self.repaint() - - def restartGame(self): - if self.isShooting(): - self.autoShootTime.stop() - self.gameEnded = 0 - self.repaint() - self.emit(PYSIGNAL('canShoot(bool)'),(1,)) - - def moveShot(self): - r = QRegion(self.shotRect()) - self.timerCount = self.timerCount + 1 - - shotR = self.shotRect() - - if shotR.intersects(self.targetRect()): - self.autoShootTimer.stop() - self.emit(PYSIGNAL('hit()'),()) - self.emit(PYSIGNAL('canShoot(bool)'),(1,)) - elif shotR.x() > self.width() or shotR.y() > self.height() or shotR.intersects(self.barrierRect()): - self.autoShootTimer.stop() - self.emit(PYSIGNAL('missed()'),()) - self.emit(PYSIGNAL('canShoot(bool)'),(1,)) - else: - r = r.unite(QRegion(shotR)) - - self.repaint(r) - - def mousePressEvent(self,ev): - if ev.button() != Qt.LeftButton: - return - if self.barrelHit(ev.pos()): - self.barrelPressed = 1 - - def mouseMoveEvent(self,ev): - if not self.barrelPressed: - return - pnt = ev.pos() - if pnt.x() <= 0: - pnt.setX(1) - if pnt.y() >= self.height(): - pnt.setY(self.height() - 1) - rad = math.atan(float(self.rect().bottom() - pnt.y()) / pnt.x()) - self.setAngle(int(round(rad * 180 / math.pi))) - - def mouseReleaseEvent(self,ev): - if ev.button() == Qt.LeftButton: - self.barrelPressed = 0 - - def paintEvent(self,ev): - updateR = ev.rect() - p = QPainter(self) - - if self.gameEnded: - p.setPen(Qt.black) - p.setFont(QFont('Courier',48,QFont.Bold)) - p.drawText(self.rect(),Qt.AlignCenter,'Game Over') - - if updateR.intersects(self.cannonRect()): - self.paintCannon(p) - - if updateR.intersects(self.barrierRect()): - self.paintBarrier(p) - - if self.isShooting() and updateR.intersects(self.shotRect()): - self.paintShot(p) - - if not self.gameEnded and updateR.intersects(self.targetRect()): - self.paintTarget(p) - - def paintShot(self,p): - p.setBrush(Qt.black) - p.setPen(Qt.NoPen) - p.drawRect(self.shotRect()) - - def paintTarget(self,p): - p.setBrush(Qt.red) - p.setPen(Qt.black) - p.drawRect(self.targetRect()) - - def paintBarrier(self,p): - p.setBrush(Qt.yellow) - p.setPen(Qt.black) - p.drawRect(self.barrierRect()) - - def paintCannon(self,p): - cr = self.cannonRect() - pix = QPixmap(cr.size()) - pix.fill(self,cr.topLeft()) - - tmp = QPainter(pix) - tmp.setBrush(Qt.blue) - tmp.setPen(Qt.NoPen) - - tmp.translate(0,pix.height() - 1) - tmp.drawPie(QRect(-35,-35,70,70),0,90 * 16) - tmp.rotate(-self.ang) - tmp.drawRect(self.barrelRect) - tmp.end() - - p.drawPixmap(cr.topLeft(),pix) - - def cannonRect(self): - r = QRect(0,0,50,50) - r.moveBottomLeft(self.rect().bottomLeft()) - return r - - def shotRect(self): - gravity = 4.0 - - time = self.timerCount / 4.0 - velocity = self.shoot_f - radians = self.shoot_ang * math.pi / 180 - - velx = velocity * math.cos(radians) - vely = velocity * math.sin(radians) - x0 = (self.barrelRect.right() + 5) * math.cos(radians) - y0 = (self.barrelRect.right() + 5) * math.sin(radians) - x = x0 + velx * time - y = y0 + vely * time - 0.5 * gravity * time * time - - r = QRect(0,0,6,6) - r.moveCenter(QPoint(x,self.height() - 1 - y)) - return r - - def targetRect(self): - r = QRect(0,0,20,10) - r.moveCenter(QPoint(self.target.x(),self.height() - 1 - self.target.y())) - return r - - def barrierRect(self): - return QRect(145,self.height() - 100,15,100) - - def barrelHit(self,p): - mtx = QWMatrix() - mtx.translate(0,self.height() - 1) - mtx.rotate(-self.ang) - (mtx, invertable) = mtx.invert() - return self.barrelRect.contains(mtx.map(p)) - - def isShooting(self): - return self.autoShootTimer.isActive() - - def sizePolicy(self): - return QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding) - - -class GameBoard(QWidget): - def __init__(self,parent=None,name=None): - QWidget.__init__(self,parent,name) - - quit = QPushButton('&Quit',self,'quit') - quit.setFont(QFont('Times',18,QFont.Bold)) - self.connect(quit,SIGNAL('clicked()'),qApp,SLOT('quit()')) - - self.angle = LCDRange('ANGLE',self,'angle') - self.angle.setRange(5,70) - - self.force = LCDRange('FORCE',self,'force') - self.force.setRange(10,50) - - box = QVBox(self,'cannonFrame') - box.setFrameStyle(QFrame.WinPanel | QFrame.Sunken) - - self.cannonField = CannonField(box,'cannonField') - - self.connect(self.angle,PYSIGNAL('valueChanged(int)'),self.cannonField.setAngle) - self.connect(self.cannonField,PYSIGNAL('angleChanged(int)'),self.angle.setValue) - - self.connect(self.force,PYSIGNAL('valueChanged(int)'),self.cannonField.setForce) - self.connect(self.cannonField,PYSIGNAL('forceChanged(int)'),self.force.setValue) - - self.connect(self.cannonField,PYSIGNAL('hit()'),self.hit) - self.connect(self.cannonField,PYSIGNAL('missed()'),self.missed) - - self.shoot = QPushButton('&Shoot',self,'shoot') - self.shoot.setFont(QFont('Times',18,QFont.Bold)) - self.connect(self.shoot,SIGNAL('clicked()'),self.fire) - self.connect(self.cannonField,PYSIGNAL('canShoot(bool)'),self.shoot,SLOT('setEnabled(bool)')) - - restart = QPushButton('&New Game',self,'newgame') - restart.setFont(QFont('Times',18,QFont.Bold)) - self.connect(restart,SIGNAL('clicked()'),self.newGame) - - self.hits = QLCDNumber(2,self,'hits') - self.shotsLeft = QLCDNumber(2,self,'shotsleft') - hitsL = QLabel('HITS',self,'hitsLabel') - shotsLeftL = QLabel('SHOTS LEFT',self,'shotsleftLabel') - - accel = QAccel(self) - accel.connectItem(accel.insertItem(Qt.Key_Enter),self.fire) - accel.connectItem(accel.insertItem(Qt.Key_Return),self.fire) - accel.connectItem(accel.insertItem(Qt.CTRL + Qt.Key_Q),qApp,SLOT('quit()')) - - grid = QGridLayout(self,2,2,10) - grid.addWidget(quit,0,0) - grid.addWidget(box,1,1) - grid.setColStretch(1,10) - - leftBox = QVBoxLayout() - grid.addLayout(leftBox,1,0) - leftBox.addWidget(self.angle) - leftBox.addWidget(self.force) - - topBox = QHBoxLayout() - grid.addLayout(topBox,0,1) - topBox.addWidget(self.shoot) - topBox.addWidget(self.hits) - topBox.addWidget(hitsL) - topBox.addWidget(self.shotsLeft) - topBox.addWidget(shotsLeftL) - topBox.addStretch(1) - topBox.addWidget(restart) - - self.angle.setValue(60) - self.force.setValue(25) - self.angle.setFocus() - - self.newGame() - - def fire(self): - if self.cannonField.gameOver() or self.cannonField.isShooting(): - return - self.shotsLeft.display(self.shotsLeft.intValue() - 1) - self.cannonField.shoot() - - def hit(self): - self.hits.display(self.hits.intValue() + 1) - if self.shotsLeft.intValue() == 0: - self.cannonField.setGameOver() - else: - self.cannonField.newTarget() - - def missed(self): - if self.shotsLeft.intValue() == 0: - self.cannonField.setGameOver() - - def newGame(self): - self.shotsLeft.display(15) - self.hits.display(0) - self.cannonField.restartGame() - self.cannonField.newTarget() - - -QApplication.setColorSpec(QApplication.CustomColor) -a = QApplication(sys.argv) - -gb = GameBoard() -gb.setGeometry(100,100,500,355) -a.setMainWidget(gb) -gb.show() -a.exec_loop() diff --git a/python/pyqt/examples2/tut2.py b/python/pyqt/examples2/tut2.py deleted file mode 100755 index a31b7842..00000000 --- a/python/pyqt/examples2/tut2.py +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 2. - -import sys -from qt import * - - -a = QApplication(sys.argv) - -quit = QPushButton("Quit",None) -quit.resize(75,30) -quit.setFont(QFont("Times",18,QFont.Bold)) - -QObject.connect(quit,SIGNAL("clicked()"),a,SLOT("quit()")) - -a.setMainWidget(quit) -quit.show() -a.exec_loop() diff --git a/python/pyqt/examples2/tut3.py b/python/pyqt/examples2/tut3.py deleted file mode 100755 index 2cc3576c..00000000 --- a/python/pyqt/examples2/tut3.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 3. - -import sys -from qt import * - -a = QApplication(sys.argv) - -box = QVBox() -box.resize(200,120) - -quit = QPushButton("Quit",box) -quit.setFont(QFont("Times",18,QFont.Bold)) - -QObject.connect(quit,SIGNAL("clicked()"),a,SLOT("quit()")) - -a.setMainWidget(box) -box.show() -a.exec_loop() diff --git a/python/pyqt/examples2/tut4.py b/python/pyqt/examples2/tut4.py deleted file mode 100755 index 23c44d0e..00000000 --- a/python/pyqt/examples2/tut4.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 4. - -import sys -from qt import * - - -class MyWidget(QWidget): - def __init__(self,parent=None,name=None): - QWidget.__init__(self,parent,name) - - self.setMinimumSize(200,120) - self.setMaximumSize(200,120) - - quit = QPushButton("Quit",self,"quit") - quit.setGeometry(62,40,75,30) - quit.setFont(QFont("Times",18,QFont.Bold)) - - self.connect(quit,SIGNAL("clicked()"),qApp,SLOT("quit()")) - - -a = QApplication(sys.argv) - -w = MyWidget() -w.setGeometry(100,100,200,120) -a.setMainWidget(w) -w.show() -a.exec_loop() diff --git a/python/pyqt/examples2/tut5.py b/python/pyqt/examples2/tut5.py deleted file mode 100755 index 01c20aa0..00000000 --- a/python/pyqt/examples2/tut5.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 5. - -import sys -from qt import * - - -class MyWidget(QVBox): - def __init__(self,parent=None,name=None): - QVBox.__init__(self,parent,name) - - quit = QPushButton("Quit",self,"quit") - quit.setFont(QFont("Times",18,QFont.Bold)) - - self.connect(quit,SIGNAL("clicked()"),qApp,SLOT("quit()")) - - lcd = QLCDNumber(2,self,"lcd") - - slider = QSlider(Qt.Horizontal,self,"slider") - slider.setRange(0,99) - slider.setValue(0) - - self.connect(slider,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)")) - - -a = QApplication(sys.argv) - -w = MyWidget() -a.setMainWidget(w) -w.show() -a.exec_loop() diff --git a/python/pyqt/examples2/tut6.py b/python/pyqt/examples2/tut6.py deleted file mode 100755 index 38f07d8b..00000000 --- a/python/pyqt/examples2/tut6.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 6. - -import sys -from qt import * - - -class LCDRange(QVBox): - def __init__(self,parent=None,name=None): - QVBox.__init__(self,parent,name) - - lcd = QLCDNumber(2,self,"lcd") - slider = QSlider(Qt.Horizontal,self,"slider") - slider.setRange(0,99) - slider.setValue(0) - self.connect(slider,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)")) - - -class MyWidget(QVBox): - def __init__(self,parent=None,name=None): - QVBox.__init__(self,parent,name) - - quit = QPushButton("Quit",self,"quit") - quit.setFont(QFont("Times",18,QFont.Bold)) - - self.connect(quit,SIGNAL("clicked()"),qApp,SLOT("quit()")) - - grid = QGrid(4,self) - - for c in range(4): - for r in range(4): - LCDRange(grid) - - -a = QApplication(sys.argv) - -w = MyWidget() -a.setMainWidget(w) -w.show() -a.exec_loop() diff --git a/python/pyqt/examples2/tut7.py b/python/pyqt/examples2/tut7.py deleted file mode 100755 index d40ae749..00000000 --- a/python/pyqt/examples2/tut7.py +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 7. - -import sys -from qt import * - - -class LCDRange(QVBox): - def __init__(self,parent=None,name=None): - QVBox.__init__(self,parent,name) - - lcd = QLCDNumber(2,self,'lcd') - self.slider = QSlider(Qt.Horizontal,self,'slider') - self.slider.setRange(0,99) - self.slider.setValue(0) - self.connect(self.slider,SIGNAL('valueChanged(int)'),lcd,SLOT('display(int)')) - self.connect(self.slider,SIGNAL('valueChanged(int)'),self,PYSIGNAL('valueChanged(int)')) - - def value(self): - return self.slider.value() - - def setValue(self,value): - self.slider.setValue(value) - - -class MyWidget(QVBox): - def __init__(self,parent=None,name=None): - QVBox.__init__(self,parent,name) - - quit = QPushButton("Quit",self,"quit") - quit.setFont(QFont("Times",18,QFont.Bold)) - - self.connect(quit,SIGNAL("clicked()"),qApp,SLOT("quit()")) - - grid = QGrid(4,self) - - self.lcdlist = [] - previous = None - - for r in range(4): - for c in range(4): - lr = LCDRange(grid) - - if previous is not None: - self.connect(lr,PYSIGNAL("valueChanged(int)"),previous.setValue) - - previous = lr - self.lcdlist.append(lr) - - -a = QApplication(sys.argv) - -w = MyWidget() -a.setMainWidget(w) -w.show() -a.exec_loop() diff --git a/python/pyqt/examples2/tut8.py b/python/pyqt/examples2/tut8.py deleted file mode 100755 index 045a4ef9..00000000 --- a/python/pyqt/examples2/tut8.py +++ /dev/null @@ -1,96 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 8. - -import sys -from qt import * - - -class LCDRange(QVBox): - def __init__(self,parent=None,name=None): - QVBox.__init__(self,parent,name) - - lcd = QLCDNumber(2,self,'lcd') - self.slider = QSlider(Qt.Horizontal,self,'slider') - self.slider.setRange(0,99) - self.slider.setValue(0) - self.connect(self.slider,SIGNAL('valueChanged(int)'),lcd,SLOT('display(int)')) - self.connect(self.slider,SIGNAL('valueChanged(int)'),self,PYSIGNAL('valueChanged(int)')) - - self.setFocusProxy(self.slider) - - def value(self): - return self.slider.value() - - def setValue(self,value): - self.slider.setValue(value) - - def setRange(self,minVal,maxVal): - if minVal < 0 or maxVal > 99 or minVal > maxVal: - raise ValueError, 'LCDRange.setRange(): invalid range' - self.slider.setRange(minVal,maxVal) - - -class CannonField(QWidget): - def __init__(self,parent=None,name=None): - QWidget.__init__(self,parent,name) - - self.ang = 45 - self.setPalette(QPalette(QColor(250,250,200))) - - def angle(self): - return self.ang - - def setAngle(self,degrees): - if degrees < 5: - degrees = 5 - if degrees > 70: - degrees = 70 - if self.ang == degrees: - return - self.ang = degrees - self.repaint() - self.emit(PYSIGNAL('angleChanged(int)'),(self.ang,)) - - def paintEvent(self,ev): - p = QPainter(self) - p.drawText(200,200,'Angle = %d' % (self.ang)) - - def sizePolicy(self): - return QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding) - - -class MyWidget(QWidget): - def __init__(self,parent=None,name=None): - QWidget.__init__(self,parent,name) - - quit = QPushButton('Quit',self,'quit') - quit.setFont(QFont('Times',18,QFont.Bold)) - self.connect(quit,SIGNAL('clicked()'),qApp,SLOT('quit()')) - - self.angle = LCDRange(self,'angle') - self.angle.setRange(5,70) - - self.cannonField = CannonField(self,'cannonField') - - self.connect(self.angle,PYSIGNAL('valueChanged(int)'),self.cannonField.setAngle) - self.connect(self.cannonField,PYSIGNAL('angleChanged(int)'),self.angle.setValue) - - grid = QGridLayout(self,2,2,10) - - grid.addWidget(quit,0,0) - grid.addWidget(self.angle,1,0,Qt.AlignTop) - grid.addWidget(self.cannonField,1,1) - grid.setColStretch(1,10) - - self.angle.setValue(60) - self.angle.setFocus() - - -a = QApplication(sys.argv) - -w = MyWidget() -w.setGeometry(100,100,500,355) -a.setMainWidget(w) -w.show() -a.exec_loop() diff --git a/python/pyqt/examples2/tut9.py b/python/pyqt/examples2/tut9.py deleted file mode 100755 index 16c7d697..00000000 --- a/python/pyqt/examples2/tut9.py +++ /dev/null @@ -1,104 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 9. - -import sys -from qt import * - - -class LCDRange(QVBox): - def __init__(self,parent=None,name=None): - QVBox.__init__(self,parent,name) - - lcd = QLCDNumber(2,self,'lcd') - self.slider = QSlider(Qt.Horizontal,self,'slider') - self.slider.setRange(0,99) - self.slider.setValue(0) - self.connect(self.slider,SIGNAL('valueChanged(int)'),lcd,SLOT('display(int)')) - self.connect(self.slider,SIGNAL('valueChanged(int)'),self,PYSIGNAL('valueChanged(int)')) - - self.setFocusProxy(self.slider) - - def value(self): - return self.slider.value() - - def setValue(self,value): - self.slider.setValue(value) - - def setRange(self,minVal,maxVal): - if minVal < 0 or maxVal > 99 or minVal > maxVal: - raise ValueError, 'LCDRange.setRange(): invalid range' - self.slider.setRange(minVal,maxVal) - - -class CannonField(QWidget): - def __init__(self,parent=None,name=None): - QWidget.__init__(self,parent,name) - - self.ang = 45 - self.setPalette(QPalette(QColor(250,250,200))) - - def angle(self): - return self.ang - - def setAngle(self,degrees): - if degrees < 5: - degrees = 5 - if degrees > 70: - degrees = 70 - if self.ang == degrees: - return - self.ang = degrees - self.repaint() - self.emit(PYSIGNAL('angleChanged(int)'),(self.ang,)) - - def paintEvent(self,ev): - p = QPainter(self) - - p.setBrush(Qt.blue) - p.setPen(Qt.NoPen) - - p.translate(0,self.rect().bottom()) - p.drawPie(QRect(-35,-35,70,70),0,90 * 16) - p.rotate(-self.ang) - p.drawRect(QRect(33,-4,15,8)) - - def sizePolicy(self): - return QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding) - - -class MyWidget(QWidget): - def __init__(self,parent=None,name=None): - QWidget.__init__(self,parent,name) - - quit = QPushButton('&Quit',self,'quit') - quit.setFont(QFont('Times',18,QFont.Bold)) - self.connect(quit,SIGNAL('clicked()'),qApp,SLOT('quit()')) - - self.angle = LCDRange(self,'angle') - self.angle.setRange(5,70) - - self.cannonField = CannonField(self,'cannonField') - - self.connect(self.angle,PYSIGNAL('valueChanged(int)'),self.cannonField.setAngle) - self.connect(self.cannonField,PYSIGNAL('angleChanged(int)'),self.angle.setValue) - - grid = QGridLayout(self,2,2,10) - - grid.addWidget(quit,0,0) - grid.addWidget(self.angle,1,0,Qt.AlignTop) - grid.addWidget(self.cannonField,1,1) - grid.setColStretch(1,10) - - self.angle.setValue(60) - self.angle.setFocus() - - -QApplication.setColorSpec(QApplication.CustomColor) -a = QApplication(sys.argv) - -w = MyWidget() -w.setGeometry(100,100,500,355) -a.setMainWidget(w) -w.show() -a.exec_loop() diff --git a/python/pyqt/examples2/widgets.py b/python/pyqt/examples2/widgets.py deleted file mode 100755 index 7b85ab35..00000000 --- a/python/pyqt/examples2/widgets.py +++ /dev/null @@ -1,512 +0,0 @@ -#!/usr/bin/env python - - -import sys, string -from qt import * - -# -## Constructs an analog clock widget that uses an internal QTimer. -# -def QMIN( x, y ): - if y > x: - return y - return x - -# -## Constructs an analog clock widget that uses an internal QTimer. -# - -class AnalogClock( QWidget ): - def __init__( self, *args ): - apply( QWidget.__init__, (self,) + args ) - self.time = QTime.currentTime() # get current time - internalTimer = QTimer( self ) # create internal timer - self.connect( internalTimer, SIGNAL("timeout()"), self.timeout ) - internalTimer.start( 5000 ) # emit signal every 5 seconds - -# -## The QTimer::timeout() signal is received by this slot. -# - - def timeout( self ): - new_time = QTime.currentTime() # get the current time - if new_time.minute() != self.time.minute(): # minute has changed - self.update() - -# -## The clock is painted using a 1000x1000 square coordinate system. -# - def paintEvent( self, qe ): # paint clock - if not self.isVisible(): # is is invisible - return - self.time = QTime.currentTime() # save current time - - pts = QPointArray() - paint = QPainter( self ) - paint.setBrush( self.foregroundColor() ) # fill with foreground color - - cp = QPoint( self.rect().center() ) # widget center point - d = QMIN( self.width(), self.height() ) # we want a circular clock - - matrix = QWMatrix() # setup transformation matrix - matrix.translate( cp.x(), cp.y() ) # origin at widget center - matrix.scale( d / 1000.0, d / 1000.0 ) # scale coordinate system - - h_angle = 30 * ( self.time.hour() % 12 - 3 ) + self.time.minute() / 2 - matrix.rotate( h_angle ) # rotate to draw hour hand - paint.setWorldMatrix( matrix ) - pts.setPoints( [ -20,0, 0,-20, 300,0, 0,20 ] ) - paint.drawPolygon( pts ) # draw hour hand - matrix.rotate( -h_angle ) # rotate back to zero - - m_angle = ( self.time.minute() - 15 ) * 6 - matrix.rotate( m_angle ) # rotate to draw minute hand - paint.setWorldMatrix( matrix ) - pts.setPoints( [ -10,0, 0,-10, 400,0, 0,10 ] ) - paint.drawPolygon( pts ) # draw minute hand - matrix.rotate( -m_angle ) # rotate back to zero - - for i in range( 0, 12 ): # draw hour lines - paint.setWorldMatrix( matrix ) - paint.drawLine( 450,0, 500,0 ) - matrix.rotate( 30 ) - - -class DigitalClock( QLCDNumber ): - def __init__( self, *args ): - apply( QLCDNumber.__init__,(self,) + args ) - self.showingColon = 0 - self.setFrameStyle(QFrame.Panel | QFrame.Raised) - self.setLineWidth( 2 ) - self.showTime() - self.normalTimer = self.startTimer( 500 ) - self.showDateTimer = -1 - - def timerEvent( self, e ): - if e.timerId() == self.showDateTimer: - self.stopDate() - else: - if self.showDateTimer == -1: - self.showTime() - - def mousePressEvent( self, e ): - if e.button() == Qt.LeftButton: - self.showDate() - - def showDate( self ): - if self.showDateTimer != -1: - return - d = QDate.currentDate() - self.display('%2d %2d' % (d.month(), d.day())) - self.showDateTimer = self.startTimer(2000) - - def stopDate( self ): - self.killTimer(self.showDateTimer) - self.showDateTimer = -1 - self.showTime() - - def showTime( self ): - self.showingColon = not self.showingColon - s = list(str(QTime.currentTime().toString())[:5]) #.left(5) - if not self.showingColon: - s[2] = ' ' - if s[0] == '0': - s[0] = ' ' - s = string.join(s,'') - self.display( s ) - - def QMIN( x, y ): - if y > x: - return y - return x - -TRUE = 1 -FALSE = 0 -MOVIEFILENAME = "trolltech.gif" - -# -# WidgetView contains lots of Qt widgets. -# - -class WidgetView ( QWidget ): - def __init__( self, *args ): - apply( QWidget.__init__, (self,) + args ) - - # Set the window caption/title - self.setCaption( "Qt Widgets Demo Application" ) - - # Install an application-global event filter - qApp.installEventFilter( self ) - - # Create a layout to position the widgets - self.topLayout = QVBoxLayout( self, 10 ) - - # Create a grid layout to hold most of the widgets - self.grid = QGridLayout( 6, 3 ) - - # This layout will get all of the stretch - self.topLayout.addLayout( self.grid, 10 ) - - # Create a menubar - self.menubar = QMenuBar( self ) - #self.menubar.setSeparator( QMenuBar.InWindowsStyle ) - self.menubar.setSeparator( 1 ) - - # Create an easter egg - QToolTip.add( self.menubar, QRect( 0, 0, 2, 2 ), "easter egg" ) - - self.popup = QPopupMenu() - self.id = self.popup.insertItem( "&New" ) - self.popup.setItemEnabled( self.id, FALSE ) - self.id = self.popup.insertItem( "&Open" ) - self.popup.setItemEnabled( self.id, FALSE ) - self.popup.insertSeparator() - self.popup.insertItem( "&Quit", qApp, SLOT("quit()"), Qt.CTRL+Qt.Key_Q ) - - self.menubar.insertItem( "&File", self.popup ) - - # Must tell the layout about a menubar in a widget - self.topLayout.setMenuBar( self.menubar ) - - # Create an analog and a digital clock - self.aclock = AnalogClock( self ) - self.aclock.resize( 50, 50 ) - self.dclock = DigitalClock( self ) - self.dclock.setMaximumWidth( 200 ) - self.grid.addWidget( self.aclock, 0, 2 ) - self.grid.addWidget( self.dclock, 1, 2 ) - - # Give the dclock widget a blue palette - col = QColor() - col.setRgb( 0xaa, 0xbe, 0xff ) - self.dclock.setPalette( QPalette( col ) ) - - # make tool tips for both of them - QToolTip.add( self.aclock, "custom widget: analog clock" ) - QToolTip.add( self.dclock, "custom widget: digital clock" ) - - # Create a push button. - self.pb = QPushButton( self, "button1" ) # create button 1 - self.pb.setText( "Push button 1" ) - self.pb.setFixedHeight( self.pb.sizeHint().height() ) - self.grid.addWidget( self.pb, 0, 0, Qt.AlignVCenter ) - self.connect( self.pb, SIGNAL("clicked()"), self.button1Clicked ) - QToolTip.add( self.pb, "push button 1" ) - self.pm = QPixmap() - self.pix = self.pm.load( "qt.png" ) # load pixmap for button 2 - if not self.pix: - QMessageBox.information( None, "Qt Widgets Example", - "Could not load the file \"qt.png\", which\n" - "contains an icon used...\n\n" - "The text \"line 42\" will be substituted.", - QMessageBox.Ok + QMessageBox.Default ) - - # Create a label containing a QMovie - self.movielabel = QLabel( self, "label0" ) - self.movie = QMovie( MOVIEFILENAME ) - self.movie.connectStatus( self.movieStatus ) - self.movie.connectUpdate( self.movieUpdate ) - self.movielabel.setFrameStyle( QFrame.Box | QFrame.Plain ) - self.movielabel.setMovie( self.movie ) - self.movielabel.setMargin( 0 ) - self.movielabel.setFixedSize( 128 + self.movielabel.frameWidth() * 2, - 64 + self.movielabel.frameWidth() * 2 ) - self.grid.addWidget( self.movielabel, 0, 1, Qt.AlignCenter ) - QToolTip.add( self.movielabel, "movie" ) - - # Create a group of check boxes - self.bg = QButtonGroup( self, "checkGroup" ) - self.bg.setTitle( "Check Boxes" ) - self.grid.addWidget( self.bg, 1, 0 ) - - # Create a layout for the check boxes - self.vbox = QVBoxLayout(self.bg, 10) - - self.vbox.addSpacing( self.bg.fontMetrics().height() ) - - self.cb = range(3) - self.cb[0] = QCheckBox( self.bg ) - self.cb[0].setText( "Read" ) - self.vbox.addWidget( self.cb[0] ) - self.cb[0].setMinimumSize( self.cb[0].sizeHint() ) - self.cb[1] = QCheckBox( self.bg ) - self.cb[1].setText( "Write" ) - self.vbox.addWidget( self.cb[1] ) - self.cb[1].setMinimumSize( self.cb[1].sizeHint() ) - self.cb[2] = QCheckBox( self.bg ) - self.cb[2].setText( "Execute" ) - self.cb[2].setMinimumSize( self.cb[2].sizeHint() ) - self.vbox.addWidget( self.cb[2] ) - self.bg.setMinimumSize( self.bg.childrenRect().size() ) - self.vbox.activate() - - self.connect( self.bg, SIGNAL("clicked(int)"), self.checkBoxClicked ) - - QToolTip.add( self.cb[0], "check box 1" ) - QToolTip.add( self.cb[1], "check box 2" ) - QToolTip.add( self.cb[2], "check box 3" ) - - # Create a group of radio buttons - self.bg = QButtonGroup( self, "radioGroup" ) - self.bg.setTitle( "Radio buttons" ) - - self.grid.addWidget( self.bg, 1, 1 ) - - # Create a layout for the radio buttons - self.vbox = QVBoxLayout( self.bg, 10 ) - - self.vbox.addSpacing( self.bg.fontMetrics().height() ) - self.rb = QRadioButton( self.bg ) - self.rb.setText( "&AM" ) - self.rb.setChecked( TRUE ) - self.vbox.addWidget( self.rb ) - self.rb.setMinimumSize( self.rb.sizeHint() ) - QToolTip.add( self.rb, "radio button 1" ) - self.rb = QRadioButton( self.bg ) - self.rb.setText( "&FM" ) - self.vbox.addWidget( self.rb ) - self.rb.setMinimumSize( self.rb.sizeHint() ) - QToolTip.add( self.rb, "radio button 2" ) - self.rb = QRadioButton( self.bg ) - self.rb.setText( "&Short Wave" ) - self.vbox.addWidget( self.rb ) - self.rb.setMinimumSize( self.rb.sizeHint() ) - self.vbox.activate() - - self.connect( self.bg, SIGNAL("clicked(int)"), self.radioButtonClicked ) - QToolTip.add( self.rb, "radio button 3" ) - - # Create a list box - self.lb = QListBox( self, "listBox" ) - for i in range( 0, 100, 1 ): # fill list box - txt = QString() - txt = "line %d" % i - if i == 42 and self.pix: - self.lb.insertItem( self.pm ) - else: - self.lb.insertItem( txt ) - - self.grid.addMultiCellWidget( self.lb, 2, 4, 0, 0 ) - self.connect( self.lb, SIGNAL("selected(int)"), self.listBoxItemSelected ) - QToolTip.add( self.lb, "list box" ) - - self.vbox = QVBoxLayout( 8 ) - self.grid.addLayout( self.vbox, 2, 1 ) - - # Create a slider - self.sb = QSlider( 0, 300, 1, 100, QSlider.Horizontal, self, "Slider" ) - #self.sb.setTickmarks( QSlider.Below ) - self.sb.setTickmarks( 1 ) - self.sb.setTickInterval( 10 ) - #self.sb.setFocusPolicy( QWidget.TabFocus ) - self.sb.setFocusPolicy( 1 ) - self.sb.setFixedHeight( self.sb.sizeHint().height() ) - self.vbox.addWidget( self.sb ) - - self.connect( self.sb, SIGNAL("valueChanged(int)"), self.sliderValueChanged ) - QToolTip.add( self.sb, "slider" ) - - # Create a combo box - self.combo = QComboBox( FALSE, self, "comboBox" ) - self.combo.insertItem( "darkBlue" ) - self.combo.insertItem( "darkRed" ) - self.combo.insertItem( "darkGreen" ) - self.combo.insertItem( "blue" ) - self.combo.insertItem( "red" ) - self.combo.setFixedHeight( self.combo.sizeHint().height() ) - self.vbox.addWidget( self.combo ) - self.connect( self.combo, SIGNAL("activated(int)"), self.comboBoxItemActivated ) - QToolTip.add( self.combo, "read-only combo box" ) - - # Create an editable combo box - self.edCombo = QComboBox( TRUE, self, "edComboBox" ) - self.edCombo.insertItem( "Permutable" ) - self.edCombo.insertItem( "Malleable" ) - self.edCombo.insertItem( "Adaptable" ) - self.edCombo.insertItem( "Alterable" ) - self.edCombo.insertItem( "Inconstant" ) - self.edCombo.setFixedHeight( self.edCombo.sizeHint().height() ) - self.vbox.addWidget( self.edCombo ) - self.connect( self.edCombo, SIGNAL("activated(const QString &)"), self.edComboBoxItemActivated) - QToolTip.add( self.edCombo, "editable combo box" ) - - self.edCombo.setAutoCompletion( TRUE ) - - self.vbox.addStretch( 1 ) - - self.vbox = QVBoxLayout( 8 ) - self.grid.addLayout( self.vbox, 2, 2 ) - - # Create a spin box - self.spin = QSpinBox( 0, 10, 1, self, "spin" ) - self.spin.setSuffix( " mm" ) - self.spin.setSpecialValueText( "Auto" ) - self.spin.setMinimumSize( self.spin.sizeHint() ) - self.connect( self.spin, SIGNAL( "valueChanged(const QString &)" ), self.spinBoxValueChanged ) - QToolTip.add( self.spin, "spin box" ) - self.vbox.addWidget( self.spin ) - - self.vbox.addStretch( 1 ) - - # Create a multi line edit - self.mle = QMultiLineEdit( self, "multiLineEdit" ) - - self.grid.addMultiCellWidget( self.mle, 3, 3, 1, 2 ) - self.mle.setMinimumHeight( self.mle.fontMetrics().height() * 3 ) - self.mle.setText("This is a QMultiLineEdit widget,\n" - "useful for small multi-line\n" - "input fields.") - QToolTip.add( self.mle, "multi line editor" ) - - # Create a single line edit - self.le = QLineEdit( self, "lineEdit" ) - self.grid.addMultiCellWidget( self.le, 4, 4, 1, 2 ) - self.le.setFixedHeight( self.le.sizeHint().height() ) - self.connect( self.le, SIGNAL("textChanged(const QString &)"), self.lineEditTextChanged ) - QToolTip.add( self.le, "single line editor" ) - - # Create a horizontal line (sort of QFrame) above the message line - self.separator = QFrame( self, "separatorLine" ) - self.separator.setFrameStyle( QFrame.HLine | QFrame.Sunken ) - self.separator.setFixedHeight( self.separator.sizeHint().height() ) - self.grid.addMultiCellWidget( self.separator, 5, 5, 0, 2 ) - QToolTip.add( self.separator, "tool tips on a separator! wow!" ) - - self.grid.setRowStretch( 0, 0 ) - self.grid.setRowStretch( 1, 0 ) - self.grid.setRowStretch( 2, 0 ) - self.grid.setRowStretch( 3, 1 ) - self.grid.setRowStretch( 4, 1 ) - self.grid.setRowStretch( 5, 0 ) - - self.grid.setColStretch( 0, 1 ) - self.grid.setColStretch( 1, 1 ) - self.grid.setColStretch( 2, 1 ) - - # Create an label and a message in a plain widget - # The message is updated when buttons are clicked etc. - - self.hbox = QHBoxLayout() - self.topLayout.addLayout( self.hbox ) - self.msgLabel = QLabel( self, "msgLabel" ) - self.msgLabel.setText( "Message:" ) - self.msgLabel.setAlignment( Qt.AlignHCenter | Qt.AlignVCenter ) - self.msgLabel.setFixedSize( self.msgLabel.sizeHint() ) - self.hbox.addWidget( self.msgLabel ) - QToolTip.add( self.msgLabel, "label 1" ) - - self.msg = QLabel( self, "message" ) - self.msg.setFrameStyle( QFrame.Panel | QFrame.Sunken ) - self.msg.setAlignment( Qt.AlignCenter ) - self.msg.setFont( QFont( "times", 12, QFont.Bold ) ) - self.msg.setText( "Message" ) - self.msg.setFixedHeight( self.msg.sizeHint().height() ) - self.msg.setText( "" ) - self.hbox.addWidget( self.msg, 5 ) - QToolTip.add( self.msg, "label 2" ) - - self.topLayout.activate() - - def setStatus(self, text): - self.msg.setText( text ) - - def movieUpdate( self, r ): - # Uncomment this to test animated icons on your window manager - self.setIcon( self.movie.framePixmap() ) - - def movieStatus( self, s ): - if s == QMovie.SourceEmpty or s == QMovie.UnrecognizedFormat: - pm = QPixmap('tt-logo.png') - self.movielabel.setPixmap(pm) - self.movielabel.setFixedSize(pm.size()) - else: - if ( self.movielabel.movie() ): # for flicker-free animation: - self.movielabel.setBackgroundMode( QWidget.NoBackground ) - - def button1Clicked( self ): - self.msg.setText( "The first push button was clicked" ) - - def checkBoxClicked( self, id ): - txt = QString() - txt = "Check box %s clicked : " % str(id) - chk = ["-","-","-"] - if self.cb[0].isChecked(): - chk[0] = "r" - if self.cb[1].isChecked(): - chk[1] = "w" - if self.cb[2].isChecked(): - chk[2] = "x" - txt = txt + str(chk[0]+chk[1]+chk[2]) - self.msg.setText( txt ) - - def edComboBoxItemActivated( self, text): - txt = QString() - txt = "Editable Combo Box set to %s" % text - self.msg.setText( txt ) - - def radioButtonClicked( self, id ): - txt = QString() - txt = "Radio button #%d clicked" % id - self.msg.setText( txt ) - - def listBoxItemSelected( self, index ): - txt = QString() - txt = "List box item %d selected" % index - self.msg.setText( txt ) - - def sliderValueChanged( self, value ): - txt = QString() - txt = "Movie set to %d%% of normal speed" % value - self.msg.setText( txt ) - self.movie.setSpeed( value ) - - def comboBoxItemActivated( self, index ): - txt = QString() - txt = "Comboxo box item %d activated" % index - self.msg.setText( txt ) - if index == 0: - QApplication.setWinStyleHighlightColor( Qt.darkBlue ) - elif index == 1: - QApplication.setWinStyleHighlightColor( Qt.darkRed ) - elif index == 2: - QApplication.setWinStyleHighlightColor( Qt.darkGreen ) - elif index == 3: - QApplication.setWinStyleHighlightColor( Qt.blue ) - elif index == 4: - QApplication.setWinStyleHighlightColor( Qt.red ) - - def lineEditTextChanged( self, newText ): - self.msg.setText("Line edit text: " + unicode(newText)) - - def spinBoxValueChanged( self, valueText ): - self.msg.setText("Spin box value: " + unicode(valueText)) - - # All application events are passed throught this event filter. - # We're using it to display some information about a clicked - # widget (right mouse button + CTRL). - #def eventFilter( self, event ): - # identify_now = TRUE - # if event.type() == Event_MouseButtonPress and identify_now: - # e = QMouseEvent( event ) - # if (e.button() == Qt.RightButton) and (e.state() & Qt.ControlButton) != 0: - # txt = QString( "The clicked widget is a\n" ) - # txt = txt + QObect.className() - # txt = txt + "\nThe widget's name is\n" - # if QObject.name(): - # txt = txt + QObject.name() - # else: - # txt = txt + "" - # identify_now = FALSE # don't do it in message box - # QMessageBox.message( "Identify Widget", txt, 0, QObject ) - # identify_now = TRUE; # allow it again - # return FALSE # don't eat event - -################################################################################################ - -#QApplication.setColourSpec( QApplication.CustomColor ) -a = QApplication( sys.argv ) - -w = WidgetView() -a.setMainWidget( w ) -w.show() -a.exec_loop() diff --git a/python/pyqt/examples3/README b/python/pyqt/examples3/README deleted file mode 100644 index 4a8f9eb5..00000000 --- a/python/pyqt/examples3/README +++ /dev/null @@ -1,12 +0,0 @@ -To run these examples, make sure you have your PYTHONPATH environment variable -set if needed and explicitly set the path to python at the top of each script -if you don't have /usr/bin/env. - -The examples are written for Qt v3.x. - -A much better source of information about using PyQt is Boudewijn Rempt's -book at http://stage.linuxports.com/projects/pyqt/. - - -Phil Thompson -phil@riverbankcomputing.co.uk diff --git a/python/pyqt/examples3/SQL/README b/python/pyqt/examples3/SQL/README deleted file mode 100644 index 9dfc5d41..00000000 --- a/python/pyqt/examples3/SQL/README +++ /dev/null @@ -1,76 +0,0 @@ -This directory contains some translated sql examples from Qt 3.x. - -runform1.py, form1.ui: - - A simple designer generated QDataTable. Run "pyuic form1.ui -o form1.py". - -runform2.py, form2.ui: - - A simple designer generated QDataBrowser. Run "pyuic form2.ui -o form2.py". - -sqlcustom1.py: - - QSqlForm based form with a simple custom editor forcing all input to - be uppercase - -sqltable4.py: - - Custom QDataTable with reimplemented paintField method, combined with - a QComboBox based custom field editor (StatusPicker), gathering its - items from a different table (status) and a calculated column (monsalary). - Note, that QSqlEditorFactory based field editors are somewhat restricted, - because Qt's Q_PROPERTY feature isn't supported, yet. I've circumvented - this limitation by choosing the status table ids corresponding to the - index in the QComboBox. - -sqlsubclass5.py: - - Similar to the former, and even more deviated from its qt ancestor, - because the sense escaped me. This could be related to the different - database layout needed for MySQL (Trolltech used PostgreSQL sequences, - while we're using the simpler, but less powerful auto_increment here). - If you enter and invalid date (e.g. day: 0) in the Paid column, it is - shown as "not yet", but produces some qt warnings. - -runsqlex.py, sqlex.ui, sqlex.ui.h, connect.ui, connect.ui.h: - - This one is a most advanced example, showing the use of a QSqlCursor - driven by QSqlQuery and iterating through database tables and fields. - Definitely worth a look. - -Unfortunately you will have to make sure that these prerequisites are met -before trying the examples: - - - Install MySQL or PostgreSQL and any development packages - - - Create a database user with sufficient rights - - - Create the testdb database - - For MySQL, run: mysql -u user -p password < testdb_mysql.sql - - For PostgreSQL, run: psql -U user template1 -f testdb_pg.sql - - - Build Qt with the mysql and/or psql modules activated. - -Now you should be ready for the fun part. You can run dbconnect.py from -a command line and try to connect to the database. If all went well, -'ok' should be printed after pressing OK. If you don't want to enter all -your data over and over again, create a file named local_dbpar.py here, -with the following keys (with your own data, of course): - -DB_HOSTNAMES = ["localhost"] -DB_DATABASES = ["testdb"] -DB_USERNAME = "name" -DB_PASSWORD = "pass" - -The dbconnect.py script is generated from dbconnect.ui, which was created -with qt's designer. You can find it also in Boudewijn Rempt's book -"GUI Programming with Python, using the Qt Toolkit". Although you won't find -the SQL widgets discussed there, for the simple reason of the book being -written before they appeared, it is a valuable source for anybody new in -this area. - -Please direct any comments, patches and questions to . - -Good luck - -Hans-Peter Jansen diff --git a/python/pyqt/examples3/SQL/connect.ui b/python/pyqt/examples3/SQL/connect.ui deleted file mode 100644 index cc419203..00000000 --- a/python/pyqt/examples3/SQL/connect.ui +++ /dev/null @@ -1,238 +0,0 @@ - -ConnectDialog - - - ConnectDialog - - - - 0 - 0 - 303 - 251 - - - - Connect... - - - - unnamed - - - 11 - - - 6 - - - - GroupBox3 - - - Connection settings - - - - unnamed - - - 11 - - - 6 - - - - editDatabase - - - - - TextLabel3 - - - Database Name: - - - comboDatabase - - - - - editPassword - - - Password - - - - - TextLabel4 - - - &Username: - - - editUsername - - - - - TextLabel4_2 - - - &Password: - - - editPassword - - - - - comboDriver - - - - - editUsername - - - - - editHostname - - - - - TextLabel5 - - - &Hostname: - - - editHostname - - - - - TextLabel5_2 - - - P&ort: - - - portSpinBox - - - - - portSpinBox - - - Default - - - 65535 - - - -1 - - - -1 - - - - - TextLabel2 - - - D&river - - - comboDriver - - - - - - - Layout25 - - - - unnamed - - - 0 - - - 6 - - - - Spacer1 - - - Horizontal - - - Expanding - - - - - PushButton1 - - - &OK - - - true - - - - - PushButton2 - - - &Cancel - - - - - - - - - PushButton1 - clicked() - ConnectDialog - accept() - - - PushButton2 - clicked() - ConnectDialog - reject() - - - - comboDriver - editDatabase - editUsername - editPassword - editHostname - portSpinBox - PushButton1 - PushButton2 - - - connect.ui.h - - - init() - destroy() - - - diff --git a/python/pyqt/examples3/SQL/connect.ui.h b/python/pyqt/examples3/SQL/connect.ui.h deleted file mode 100644 index ee6e5a95..00000000 --- a/python/pyqt/examples3/SQL/connect.ui.h +++ /dev/null @@ -1,21 +0,0 @@ -/**************************************************************************** -** 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 ConnectDialog::init() -{ -from qtsql import QSqlDatabase -#qDebug("ConnectDialog init") -self.comboDriver.clear() -self.comboDriver.insertStringList(TQSqlDatabase.drivers()) -} - -void ConnectDialog::destroy() -{ - -} diff --git a/python/pyqt/examples3/SQL/dbconnect.py b/python/pyqt/examples3/SQL/dbconnect.py deleted file mode 100755 index fdae7de1..00000000 --- a/python/pyqt/examples3/SQL/dbconnect.py +++ /dev/null @@ -1,82 +0,0 @@ -#!/usr/bin/env python - -import sys -from qt import * -from qtsql import * - -from frmconnect import frmConnect -from dbpar import * - -TRUE = 1 -FALSE = 0 - -def createConnection(): - driver = DB_DRIVER - # all qt examples use QSqlDatabase::addDatabase, but - # this never returns NULL in my experience - drivers = map(str, QSqlDatabase.drivers()) - if driver in drivers: - dlg = dbConnect(driver) - #TODO: make connection parameters accessible - return dlg.exec_loop() - else: - QMessageBox.warning(None, "Database Error", - "<%s> database driver not found!\n\n" - "Please make sure, that this database adaptor\n" - "is available in your Qt installation.\n" % - (driver), QMessageBox.Abort | QMessageBox.Escape) - return FALSE - -class dbConnect(frmConnect): - def __init__(self, driver, parent = None): - frmConnect.__init__(self, parent) - self.hostnames = DB_HOSTNAMES - self.hostname = DB_HOSTNAMES[0] - self.databases = DB_DATABASES - self.database = DB_DATABASES[0] - self.username = DB_USERNAME - self.password = DB_PASSWORD - self.dbdriver = driver - - self.txtName.setText(self.username) - self.txtPasswd.setText(self.password) - map(self.cmbServer.insertItem, self.hostnames) - map(self.cmbDatabase.insertItem, self.databases) - self.connect(self.buttonHelp, SIGNAL("clicked()"), - self.buttonHelp_clicked) - - def accept(self): - self.hostname = self.cmbServer.currentText() - self.database = self.cmbDatabase.currentText() - self.username = self.txtName.text() - self.password = self.txtPasswd.text() - db = QSqlDatabase.addDatabase(self.dbdriver) - if db: - db.setHostName(self.hostname) - db.setDatabaseName(self.database) - db.setUserName(self.username) - db.setPassword(self.password) - if db.open(): - frmConnect.accept(self) - else: - QMessageBox.warning(self, "Database Error", - "Cannot open %s database on %s!\n\n%s\n%s\n" % - (self.database, self.hostname, - db.lastError().driverText(), - db.lastError().databaseText()), " Ooops ") - - - def buttonHelp_clicked(self): - QMessageBox.information(self, "About Connecting", - "Here you specify userid, password, host and database\n" - "for the PyQt sql examples. If you encounter any problems,\n" - "please read the README file in this folder before posting.\n\n" - "Thanks,\nHans-Peter Jansen \n") - - -if __name__ == "__main__": - app = QApplication(sys.argv) - if createConnection(): - print "ok" - else: - print "cancel" diff --git a/python/pyqt/examples3/SQL/dbpar.py b/python/pyqt/examples3/SQL/dbpar.py deleted file mode 100644 index 90e92704..00000000 --- a/python/pyqt/examples3/SQL/dbpar.py +++ /dev/null @@ -1,22 +0,0 @@ -# sql examples default database parameter - -# you can create a local_dbpar.py module with definitons -# of your own parameters to overrule these defaults - -#DB_DRIVER = "QPSQL7" -DB_DRIVER = "QMYSQL3" -# list of servers -DB_HOSTNAMES = ["localhost"] -# list of databases -DB_DATABASES = ["testdb"] -# database user id -DB_USERNAME = "" -# database password -DB_PASSWORD = "" - -# remove this in your local_dbpar.py -try: - from local_dbpar import * -except: - pass - diff --git a/python/pyqt/examples3/SQL/form1.ui b/python/pyqt/examples3/SQL/form1.ui deleted file mode 100644 index 38b3cb27..00000000 --- a/python/pyqt/examples3/SQL/form1.ui +++ /dev/null @@ -1,77 +0,0 @@ - -Form1 - - - Form1 - - - - 0 - 0 - 600 - 370 - - - - Form1 - - - - - Forename - - - forename - - - - - Surname - - - surname - - - - - Salary - - - salary - - - - - Statusid - - - statusid - - - - DataTable2 - - - - 0 - 0 - 600 - 370 - - - - true - - - true - - - - (default) - staff - - - - - - diff --git a/python/pyqt/examples3/SQL/form2.ui b/python/pyqt/examples3/SQL/form2.ui deleted file mode 100644 index ffe2beb5..00000000 --- a/python/pyqt/examples3/SQL/form2.ui +++ /dev/null @@ -1,327 +0,0 @@ - -Form2 - - - Form2 - - - - 0 - 0 - 367 - 152 - - - - Form2 - - - - DataBrowser1 - - - - 0 - 0 - 366 - 150 - - - - - surname ASC - forename ASC - - - - - (default) - staff - - - - - unnamed - - - 11 - - - 6 - - - - Layout2 - - - - unnamed - - - 0 - - - 6 - - - - labelSurname - - - Surname - - - - - QSpinBoxStatusid - - - 2147483647 - - - - (default) - staff - statusid - - - - - - QLineEditSurname - - - - (default) - staff - surname - - - - - - labelStatusid - - - Statusid - - - - - labelForename - - - Forename - - - - - QLineEditSalary - - - AlignRight - - - - (default) - staff - salary - - - - - - labelSalary - - - Salary - - - - - QLineEditForename - - - - (default) - staff - forename - - - - - - - - Layout3 - - - - unnamed - - - 0 - - - 6 - - - - PushButtonFirst - - - |< &First - - - - - PushButtonPrev - - - << &Prev - - - - - PushButtonNext - - - &Next >> - - - - - PushButtonLast - - - &Last >| - - - - - - - Layout4 - - - - unnamed - - - 0 - - - 6 - - - - PushButtonInsert - - - &Insert - - - - - PushButtonUpdate - - - &Update - - - - - PushButtonDelete - - - &Delete - - - - - - - - - - PushButtonFirst - clicked() - DataBrowser1 - first() - - - DataBrowser1 - firstRecordAvailable( bool ) - PushButtonFirst - setEnabled(bool) - - - PushButtonPrev - clicked() - DataBrowser1 - prev() - - - DataBrowser1 - prevRecordAvailable( bool ) - PushButtonPrev - setEnabled(bool) - - - PushButtonNext - clicked() - DataBrowser1 - next() - - - DataBrowser1 - nextRecordAvailable( bool ) - PushButtonNext - setEnabled(bool) - - - PushButtonLast - clicked() - DataBrowser1 - last() - - - DataBrowser1 - lastRecordAvailable( bool ) - PushButtonLast - setEnabled(bool) - - - PushButtonInsert - clicked() - DataBrowser1 - insert() - - - PushButtonUpdate - clicked() - DataBrowser1 - update() - - - PushButtonDelete - clicked() - DataBrowser1 - del() - - - - QLineEditForename - QLineEditSurname - QLineEditSalary - QSpinBoxStatusid - PushButtonFirst - PushButtonPrev - PushButtonNext - PushButtonLast - PushButtonInsert - PushButtonUpdate - PushButtonDelete - - - diff --git a/python/pyqt/examples3/SQL/frmconnect.py b/python/pyqt/examples3/SQL/frmconnect.py deleted file mode 100644 index 23cd0674..00000000 --- a/python/pyqt/examples3/SQL/frmconnect.py +++ /dev/null @@ -1,120 +0,0 @@ -# Form implementation generated from reading ui file 'frmconnect.ui' -# -# Created: Sam Jul 6 12:47:10 2002 -# by: The PyQt User Interface Compiler (pyuic) -# -# WARNING! All changes made in this file will be lost! - - -from qt import * - - -class frmConnect(QDialog): - def __init__(self,parent = None,name = None,modal = 0,fl = 0): - QDialog.__init__(self,parent,name,modal,fl) - - if name == None: - self.setName("frmConnect") - - self.resize(415,154) - self.setCaption(self.trUtf8("Connecting")) - self.setSizeGripEnabled(1) - - frmConnectLayout = QGridLayout(self,1,1,11,6,"frmConnectLayout") - - Layout7 = QVBoxLayout(None,0,6,"Layout7") - - self.buttonOK = QPushButton(self,"buttonOK") - self.buttonOK.setText(self.trUtf8("&OK")) - self.buttonOK.setAutoDefault(1) - self.buttonOK.setDefault(1) - QToolTip.add(self.buttonOK,self.trUtf8("Connect to Database")) - Layout7.addWidget(self.buttonOK) - - self.buttonCancel = QPushButton(self,"buttonCancel") - self.buttonCancel.setText(self.trUtf8("&Cancel")) - QToolTip.add(self.buttonCancel,self.trUtf8("Cancel Connecting")) - Layout7.addWidget(self.buttonCancel) - - self.buttonHelp = QPushButton(self,"buttonHelp") - self.buttonHelp.setText(self.trUtf8("&Help")) - QToolTip.add(self.buttonHelp,self.trUtf8("About Connecting")) - Layout7.addWidget(self.buttonHelp) - spacer = QSpacerItem(0,0,QSizePolicy.Minimum,QSizePolicy.Expanding) - Layout7.addItem(spacer) - - frmConnectLayout.addLayout(Layout7,0,1) - - self.grpConnection = QGroupBox(self,"grpConnection") - self.grpConnection.setTitle(self.trUtf8("")) - self.grpConnection.setColumnLayout(0,Qt.Vertical) - self.grpConnection.layout().setSpacing(6) - self.grpConnection.layout().setMargin(11) - grpConnectionLayout = QGridLayout(self.grpConnection.layout()) - grpConnectionLayout.setAlignment(Qt.AlignTop) - - self.txtName = QLineEdit(self.grpConnection,"txtName") - self.txtName.setMaxLength(16) - QToolTip.add(self.txtName,self.trUtf8("Database User ID")) - - grpConnectionLayout.addWidget(self.txtName,0,1) - - self.lblDatabase = QLabel(self.grpConnection,"lblDatabase") - self.lblDatabase.setText(self.trUtf8("&Database")) - - grpConnectionLayout.addWidget(self.lblDatabase,3,0) - - self.lblServer = QLabel(self.grpConnection,"lblServer") - self.lblServer.setText(self.trUtf8("&Server")) - - grpConnectionLayout.addWidget(self.lblServer,2,0) - - self.lblName = QLabel(self.grpConnection,"lblName") - self.lblName.setText(self.trUtf8("&Name")) - - grpConnectionLayout.addWidget(self.lblName,0,0) - - self.cmbDatabase = QComboBox(0,self.grpConnection,"cmbDatabase") - self.cmbDatabase.setEditable(1) - self.cmbDatabase.setAutoCompletion(1) - self.cmbDatabase.setDuplicatesEnabled(0) - QToolTip.add(self.cmbDatabase,self.trUtf8("Database Name")) - - grpConnectionLayout.addWidget(self.cmbDatabase,3,1) - - self.txtPasswd = QLineEdit(self.grpConnection,"txtPasswd") - self.txtPasswd.setMaxLength(16) - self.txtPasswd.setEchoMode(QLineEdit.Password) - QToolTip.add(self.txtPasswd,self.trUtf8("Database User Password")) - - grpConnectionLayout.addWidget(self.txtPasswd,1,1) - - self.lblPasswd = QLabel(self.grpConnection,"lblPasswd") - self.lblPasswd.setText(self.trUtf8("&Password")) - - grpConnectionLayout.addWidget(self.lblPasswd,1,0) - - self.cmbServer = QComboBox(0,self.grpConnection,"cmbServer") - self.cmbServer.setEditable(1) - self.cmbServer.setAutoCompletion(1) - self.cmbServer.setDuplicatesEnabled(0) - QToolTip.add(self.cmbServer,self.trUtf8("Database Server Address")) - - grpConnectionLayout.addWidget(self.cmbServer,2,1) - - frmConnectLayout.addWidget(self.grpConnection,0,0) - - self.connect(self.buttonOK,SIGNAL("clicked()"),self,SLOT("accept()")) - self.connect(self.buttonCancel,SIGNAL("clicked()"),self,SLOT("reject()")) - - self.setTabOrder(self.txtName,self.txtPasswd) - self.setTabOrder(self.txtPasswd,self.cmbServer) - self.setTabOrder(self.cmbServer,self.cmbDatabase) - self.setTabOrder(self.cmbDatabase,self.buttonOK) - self.setTabOrder(self.buttonOK,self.buttonCancel) - self.setTabOrder(self.buttonCancel,self.buttonHelp) - - self.lblDatabase.setBuddy(self.cmbDatabase) - self.lblServer.setBuddy(self.cmbServer) - self.lblName.setBuddy(self.txtName) - self.lblPasswd.setBuddy(self.txtPasswd) diff --git a/python/pyqt/examples3/SQL/frmconnect.ui b/python/pyqt/examples3/SQL/frmconnect.ui deleted file mode 100644 index a6fc15cc..00000000 --- a/python/pyqt/examples3/SQL/frmconnect.ui +++ /dev/null @@ -1,245 +0,0 @@ - -frmConnect - - - frmConnect - - - - 0 - 0 - 415 - 154 - - - - Connecting - - - true - - - - unnamed - - - 11 - - - 6 - - - - Layout7 - - - - unnamed - - - 0 - - - 6 - - - - buttonOK - - - &OK - - - true - - - true - - - Connect to Database - - - - - buttonCancel - - - &Cancel - - - Cancel Connecting - - - - - buttonHelp - - - &Help - - - About Connecting - - - - - spacer - - - Vertical - - - Expanding - - - - - - - grpConnection - - - - - - - unnamed - - - 11 - - - 6 - - - - txtName - - - 16 - - - Database User ID - - - - - lblDatabase - - - &Database - - - cmbDatabase - - - - - lblServer - - - &Server - - - cmbServer - - - - - lblName - - - &Name - - - txtName - - - - - cmbDatabase - - - true - - - true - - - false - - - Database Name - - - - - txtPasswd - - - 16 - - - Password - - - Database User Password - - - - - lblPasswd - - - &Password - - - txtPasswd - - - - - cmbServer - - - true - - - true - - - false - - - Database Server Address - - - - - - - - - buttonOK - clicked() - frmConnect - accept() - - - buttonCancel - clicked() - frmConnect - reject() - - - - txtName - txtPasswd - cmbServer - cmbDatabase - buttonOK - buttonCancel - buttonHelp - - - diff --git a/python/pyqt/examples3/SQL/runform1.py b/python/pyqt/examples3/SQL/runform1.py deleted file mode 100755 index d5760ce1..00000000 --- a/python/pyqt/examples3/SQL/runform1.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env python - -import sys -from qt import * - -from form1 import Form1 -from dbconnect import createConnection - -class mainWindow(Form1): - def __init__(self,parent = None,name = None,fl = 0): - Form1.__init__(self,parent,name,fl) - -if __name__ == "__main__": - a = QApplication(sys.argv) - if createConnection(): - QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()")) - w = mainWindow() - a.setMainWidget(w) - w.show() - a.exec_loop() - diff --git a/python/pyqt/examples3/SQL/runform2.py b/python/pyqt/examples3/SQL/runform2.py deleted file mode 100755 index ba0ca4a5..00000000 --- a/python/pyqt/examples3/SQL/runform2.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env python - -import sys -from qt import * - -from form2 import Form2 -from dbconnect import createConnection - -class mainWindow(Form2): - def __init__(self,parent = None,name = None,fl = 0): - Form2.__init__(self,parent,name,fl) - -if __name__ == "__main__": - a = QApplication(sys.argv) - if createConnection(): - QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()")) - w = mainWindow() - a.setMainWidget(w) - w.show() - a.exec_loop() - diff --git a/python/pyqt/examples3/SQL/runsqlex.py b/python/pyqt/examples3/SQL/runsqlex.py deleted file mode 100755 index 7f2afa71..00000000 --- a/python/pyqt/examples3/SQL/runsqlex.py +++ /dev/null @@ -1,151 +0,0 @@ -#!/usr/bin/env python - -import sys -from qt import * -from qtsql import * - -from sqlex import SqlEx -from connect import ConnectDialog - -from dbpar import * - -TRUE = 1 -FALSE = 0 - -def showError(err, parent): - errStr = QString("The database reported an error:\n\n") - if not err.databaseText().isEmpty(): - errStr.append(err.databaseText()) - errStr.append("\n") - if not err.driverText().isEmpty(): - errStr.append(err.driverText()) - errStr.append("\n") - QMessageBox.warning(parent, "Error", errStr) - -class CustomSqlCursor(QSqlCursor): - def __init__(self, query = None, autopopulate = TRUE, db = None): - QSqlCursor.__init__(self, None, autopopulate, db) - self.execQuery(query) - if self.isSelect() and autopopulate: - fields = self.driver().recordInfo(self) - for f in fields: - self.append(f) - self.setMode(QSqlCursor.ReadOnly) - - def select(self, filter, sort = QSqlIndex()): - return self.execQuery(self.lastQuery()) - - def primaryIndex(self, prime = TRUE): - return QSqlIndex() - - def insert(self, invalidate = TRUE): - return FALSE - - def update(self, invalidate = TRUE): - return FALSE - - def delRecords(self, invalidate = TRUE): - return FALSE - - def setName(self, name, autopopulate = TRUE): - return - - -class MainWindow(SqlEx): - def __init__(self,parent = None,name = None,fl = 0): - SqlEx.__init__(self,parent,name,fl) - self.conDiag = ConnectDialog(self, "Connection Dialog", TRUE) - self.firstconn = TRUE - - def dbConnect(self): - if self.firstconn: - self.firstconn = FALSE - self.conDiag.editUsername.setText(DB_USERNAME) - self.conDiag.editPassword.setText(DB_PASSWORD) - self.conDiag.editHostname.setText(DB_HOSTNAMES[0]) - self.conDiag.editDatabase.setText(DB_DATABASES[0]) - for i in range(self.conDiag.comboDriver.count()): - if str(self.conDiag.comboDriver.text(i)) == DB_DRIVER: - self.conDiag.comboDriver.setCurrentItem(i) - break - if self.conDiag.exec_loop() != QDialog.Accepted: - return - if self.dt.sqlCursor(): - self.dt.setSqlCursor() - - # close old connection (if any) - if QSqlDatabase.contains("SqlEx"): - oldDb = QSqlDatabase.database("SqlEx") - oldDb.close() - QSqlDatabase.removeDatabase("SqlEx") - - # open the new connection - db = QSqlDatabase.addDatabase(self.conDiag.comboDriver.currentText(), "SqlEx") - if not db: - QMessageBox.warning(self, "Error", "Could not open database") - return - - db.setHostName(self.conDiag.editHostname.text()) - db.setDatabaseName(self.conDiag.editDatabase.text()) - db.setPort(self.conDiag.portSpinBox.value()) - if not db.open(self.conDiag.editUsername.text(), - self.conDiag.editPassword.text()): - showError(db.lastError(), self) - return - - self.lbl.setText("Double-Click on a table-name to view the contents") - self.lv.clear() - - tables = db.tables() - for t in tables: - lvi = QListViewItem(self.lv, t) - fields = db.recordInfo(t) - for f in fields: - req = "?" - if f.isRequired() > 0: - req = "Yes" - elif f.isRequired() == 0: - req = "No" - fi = QListViewItem(lvi, f.name(), QVariant.typeToName(f.type()), req) - lvi.insertItem(fi) - self.lv.insertItem(lvi) - - self.submitBtn.setEnabled(TRUE) - - def execQuery(self): - cursor = CustomSqlCursor(self.te.text(), TRUE, - QSqlDatabase.database("SqlEx", TRUE)) - if cursor.isSelect(): - self.dt.setSqlCursor(cursor, TRUE, TRUE) - self.dt.refresh() - txt = QString("Query OK") - if cursor.size() >= 0: - txt.append(", returned rows: %s" % cursor.size()) - self.lbl.setText(txt) - else: - if not cursor.isActive(): - # an error occured - showError(cursor.lastError(), self) - else: - self.lbl.setText("Query OK, affected rows: %s" % - cursor.numRowsAffected()) - - def showTable(self, item): - i = item.parent() - if not i: - i = item - cursor = QSqlCursor(i.text(0), TRUE, QSqlDatabase.database("SqlEx", TRUE)) - self.dt.setSqlCursor(cursor, TRUE, TRUE) - self.dt.setSort(cursor.primaryIndex()) - self.dt.refresh(QDataTable.RefreshAll) - self.lbl.setText("Displaying table %s" % i.text(0)) - - -if __name__ == "__main__": - a = QApplication(sys.argv) - QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()")) - w = MainWindow() - a.setMainWidget(w) - w.show() - a.exec_loop() - diff --git a/python/pyqt/examples3/SQL/sqlcustom1.py b/python/pyqt/examples3/SQL/sqlcustom1.py deleted file mode 100755 index 46ca5801..00000000 --- a/python/pyqt/examples3/SQL/sqlcustom1.py +++ /dev/null @@ -1,94 +0,0 @@ -#!/usr/bin/env python - -#**************************************************************************** -#** $Id$ -#** -#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved. -#** -#** This file is part of an example program for PyQt. This example -#** program may be used, distributed and modified without limitation. -#** -#*****************************************************************************/ - -import sys -from qt import * -from qtsql import * - -from dbconnect import createConnection - -TRUE = 1 -FALSE = 0 - -class CustomEdit(QLineEdit): - def __init__(self, parent = None, name = None): - QLineEdit.__init__(self, parent, name) - QObject.connect(self, SIGNAL("textChanged(const QString &)"), - self.changed) - - def changed(self, line): - self.setUpperLine(line) - - def setUpperLine(self, line): - self.upperLineText = line.upper() - self.setText(self.upperLineText) - - -class FormDialog(QDialog): - def __init__(self): - QDialog.__init__(self) - forenameLabel = QLabel("Forename:", self) - forenameEdit = CustomEdit(self) - surnameLabel = QLabel("Surname:", self) - surnameEdit = CustomEdit(self) - salaryLabel = QLabel("Salary:", self) - salaryEdit = QLineEdit(self) - salaryEdit.setAlignment(Qt.AlignRight) - saveButton = QPushButton("&Save", self) - self.connect(saveButton, SIGNAL("clicked()"), self.save) - - grid = QGridLayout(self) - grid.addWidget(forenameLabel, 0, 0) - grid.addWidget(forenameEdit, 0, 1) - grid.addWidget(surnameLabel, 1, 0) - grid.addWidget(surnameEdit, 1, 1) - grid.addWidget(salaryLabel, 2, 0) - grid.addWidget(salaryEdit, 2, 1) - grid.addWidget(saveButton, 3, 0) - grid.activate() - - self.staffCursor = QSqlCursor("staff") - self.staffCursor.setTrimmed("forename", TRUE) - self.staffCursor.setTrimmed("surname", TRUE) - self.idIndex = self.staffCursor.index("id") - self.staffCursor.select(self.idIndex) - self.staffCursor.first() - - self.propMap = QSqlPropertyMap() - self.propMap.insert(forenameEdit.className(), "upperLine") - - self.sqlForm = QSqlForm() - self.sqlForm.setRecord(self.staffCursor.primeUpdate()) - self.sqlForm.installPropertyMap(self.propMap) - self.sqlForm.insert(forenameEdit, "forename") - self.sqlForm.insert(surnameEdit, "surname") - self.sqlForm.insert(salaryEdit, "salary") - self.sqlForm.readFields() - - def save(self): - self.sqlForm.writeFields() - self.staffCursor.update() - self.staffCursor.select(self.idIndex) - self.staffCursor.first() - - -if __name__=='__main__': - app = QApplication( sys.argv ) - - if createConnection(): - formDialog = FormDialog() - formDialog.show() - - app.setMainWidget(formDialog) - app.exec_loop() - - diff --git a/python/pyqt/examples3/SQL/sqlex.ui b/python/pyqt/examples3/SQL/sqlex.ui deleted file mode 100644 index 022fed93..00000000 --- a/python/pyqt/examples3/SQL/sqlex.ui +++ /dev/null @@ -1,303 +0,0 @@ - -SqlEx - - - SqlEx - - - - 0 - 0 - 669 - 438 - - - - SQL Browser - - - - unnamed - - - 11 - - - 6 - - - - Layout23 - - - - unnamed - - - 0 - - - 6 - - - - lbl - - - Press "Connect" to open a database - - - - - conBtn - - - - 0 - 0 - 0 - 0 - - - - - 80 - 0 - - - - &Connect... - - - - - - - vsplit - - - Vertical - - - - hsplit - - - Horizontal - - - - - Tables - - - true - - - true - - - - - Type - - - true - - - true - - - - - Required - - - true - - - true - - - - lv - - - 0 - - - true - - - true - - - LastColumn - - - - - dt - - - false - - - - - - gb - - - SQL Query - - - - unnamed - - - 11 - - - 6 - - - - Layout22 - - - - unnamed - - - 0 - - - 6 - - - - te - - - - - Layout21 - - - - unnamed - - - 0 - - - 6 - - - - Spacer3 - - - Horizontal - - - Expanding - - - - - submitBtn - - - - 5 - 0 - 0 - 0 - - - - - 80 - 0 - - - - &Submit - - - - - clearBtn - - - - 5 - 0 - 0 - 0 - - - - - 80 - 0 - - - - C&lear - - - - - - - - - - - - - - clearBtn - clicked() - te - clear() - - - conBtn - clicked() - SqlEx - dbConnect() - - - lv - returnPressed(QListViewItem*) - SqlEx - showTable(QListViewItem*) - - - lv - doubleClicked(QListViewItem*) - SqlEx - showTable(QListViewItem*) - - - submitBtn - clicked() - SqlEx - execQuery() - - - - sqlex.ui.h - - - init() - dbConnect() - showTable( QListViewItem * ) - execQuery() - - - diff --git a/python/pyqt/examples3/SQL/sqlex.ui.h b/python/pyqt/examples3/SQL/sqlex.ui.h deleted file mode 100644 index f1acd9ec..00000000 --- a/python/pyqt/examples3/SQL/sqlex.ui.h +++ /dev/null @@ -1,35 +0,0 @@ -/**************************************************************************** -** 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 SqlEx::init() -{ -self.hsplit.setSizes([250]) -self.hsplit.setResizeMode(self.lv, TQSplitter.KeepSize) -self.vsplit.setResizeMode(self.gb, TQSplitter.KeepSize) -self.submitBtn.setEnabled(0) -} - - -void SqlEx::dbConnect() -{ - -} - - -void SqlEx::showTable( TQListViewItem * ) -{ - -} - - - -void SqlEx::execQuery() -{ - -} diff --git a/python/pyqt/examples3/SQL/sqlsubclass5.py b/python/pyqt/examples3/SQL/sqlsubclass5.py deleted file mode 100755 index a130e78a..00000000 --- a/python/pyqt/examples3/SQL/sqlsubclass5.py +++ /dev/null @@ -1,151 +0,0 @@ -#!/usr/bin/env python - -#**************************************************************************** -#** $Id$ -#** -#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved. -#** -#** This file is part of an example program for PyQt. This example -#** program may be used, distributed and modified without limitation. -#** -#*****************************************************************************/ - -import sys -from qt import * -from qtsql import * - -from dbconnect import createConnection - -TRUE = 1 -FALSE = 0 - -class CustomTable(QDataTable): - def __init__(self, cursor, autoPopulate = FALSE, parent = None, name = None): - QDataTable.__init__(self, cursor, autoPopulate, parent, name) - - def paintField(self, p, field, cr, b): - if not field: - return - fn = str(field.name()) - if fn == "pricesid": - query = QSqlQuery("SELECT name FROM prices WHERE id=%s" % - field.value().toString()) - value = "" - if query.next(): - value = query.value(0).toString() - p.drawText(2, 2, cr.width()-4, cr.height()-4, - self.fieldAlignment(field), value) - elif fn == "quantity": - p.drawText(2, 2, cr.width()-6, cr.height()-4, - Qt.AlignRight|Qt.AlignVCenter, field.value().toString()) - elif fn in ("price", "cost"): - v = field.value().toDouble() - if v < 0: - p.setPen(QColor("red")) - value = QString(u"%.2f \u20ac" % v) - p.drawText(2, 2, cr.width()-6, cr.height()-4, - Qt.AlignRight|Qt.AlignVCenter, value) - elif fn == "paiddate": - if field.value().toDate().isNull(): - v = QString("not yet") - p.setPen(QColor("red")) - else: - v = field.value().toDate().toString(Qt.LocalDate) - p.drawText(2, 2, cr.width()-4, cr.height()-4, - Qt.AlignHCenter|Qt.AlignVCenter, v) - else: - QDataTable.paintField(self, p, field, cr, b) - - -class InvoiceItemCursor(QSqlCursor): - def __init__(self): - QSqlCursor.__init__(self, "invoiceitem") - - productPrice = QSqlFieldInfo("price", QVariant.Double) - self.append(productPrice) - self.setCalculated(productPrice.name(), TRUE) - - productCost = QSqlFieldInfo("cost", QVariant.Double) - self.append(productCost) - self.setCalculated(productCost.name(), TRUE) - - def calculateField(self, name): - fn = str(name) - if fn == "productname": - query = QSqlQuery("SELECT name FROM prices WHERE id=%d;" % - (self.field("pricesid").value().toInt())) - if query.next(): - return query.value(0) - elif fn == "price": - query = QSqlQuery("SELECT price FROM prices WHERE id=%d;" % - (self.field("pricesid").value().toInt())) - if query.next(): - return query.value(0) - elif fn == "cost": - query = QSqlQuery("SELECT price FROM prices WHERE id=%d;" % - (self.field("pricesid").value().toInt())) - if query.next(): - return QVariant(query.value(0).toDouble() * - self.value("quantity").toDouble()) - return QVariant(QString.null) - - def primeInsert(self): - buffer = self.editBuffer() - buffer.setValue("id", QVariant(0)) - buffer.setValue("paiddate", QVariant(QDate.currentDate())) - buffer.setValue("quantity", QVariant(1)) - return buffer - - -class ProductPicker(QComboBox): - def __init__(self, parent = None, name = None): - QComboBox.__init__(self, parent, name) - cur = QSqlCursor("prices") - cur.select(cur.index("id")) - while cur.next(): - self.insertItem(cur.value("name").toString(), cur.value("id").toInt()) - - -class CustomSqlEditorFactory(QSqlEditorFactory): - def __init__(self): - QSqlEditorFactory.__init__(self) - - def createEditor(self, parent, field): - try: - if str(field.name()) == "pricesid": - return ProductPicker(parent) - except AttributeError: - pass - return QSqlEditorFactory.createEditor(self, parent, field) - -class Table(CustomTable): - def __init__(self): - self.invoiceItemCursor = InvoiceItemCursor() - QDataTable.__init__(self, self.invoiceItemCursor) - self.propMap = QSqlPropertyMap() - self.editorFactory = CustomSqlEditorFactory() - self.propMap.insert("ProductPicker", "pricesid") - self.installPropertyMap(self.propMap) - self.installEditorFactory(self.editorFactory) - - for cn, ch in (("pricesid", "Product"), - ("quantity", "Quantity"), - ("price", "Price" ), - ("cost", "Cost"), - ("paiddate", "Paid")): - self.addColumn(cn, ch) - self.setColumnWidth(0 , 150) - self.setColumnWidth(1, 70) - self.resize(600, 250) - self.refresh() - - -if __name__=='__main__': - app = QApplication(sys.argv) - if createConnection(): - t = Table() - app.setMainWidget(t) - t.show() - app.exec_loop() - - diff --git a/python/pyqt/examples3/SQL/sqltable4.py b/python/pyqt/examples3/SQL/sqltable4.py deleted file mode 100755 index 4fa6ed06..00000000 --- a/python/pyqt/examples3/SQL/sqltable4.py +++ /dev/null @@ -1,118 +0,0 @@ -#!/usr/bin/env python - -#**************************************************************************** -#** $Id$ -#** -#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved. -#** -#** This file is part of an example program for PyQt. This example -#** program may be used, distributed and modified without limitation. -#** -#*****************************************************************************/ - -import sys -from qt import * -from qtsql import * - -from dbconnect import createConnection - -TRUE = 1 -FALSE = 0 - -class CustomTable(QDataTable): - def __init__(self, cursor, autoPopulate = FALSE, parent = None, name = None): - QDataTable.__init__(self, cursor, autoPopulate, parent, name) - - def paintField(self, p, field, cr, b): - if not field: - return - fn = str(field.name()) - if fn in ("salary", "monsalary"): - v = field.value().toDouble() - if v < 0: - p.setPen(QColor("red")) - value = QString(u"%.2f \u20ac" % v) - #print unicode(value).encode("iso-8859-15") - p.drawText(2, 2, cr.width()-6, cr.height()-4, - Qt.AlignRight|Qt.AlignVCenter, value) - elif fn == "statusid": - query = QSqlQuery("SELECT name FROM status WHERE id=%s" % - field.value().toString()) - value = "" - if query.next(): - value = query.value(0).toString() - p.drawText(2, 2, cr.width()-4, cr.height()-4, - self.fieldAlignment(field), value) - else: - QDataTable.paintField(self, p, field, cr, b) - - -class StatusPicker(QComboBox): - def __init__(self, parent = None, name = None): - QComboBox.__init__(self, parent, name) - cur = QSqlCursor("status") - cur.select(cur.index("id")) - while cur.next(): - self.insertItem(cur.value("name").toString(), cur.value("id").toInt()) - - -class CustomSqlEditorFactory(QSqlEditorFactory): - def __init__(self): - QSqlEditorFactory.__init__(self) - - def createEditor(self, parent, field): - try: - if str(field.name()) == "statusid": - return StatusPicker(parent) - except AttributeError: - pass - return QSqlEditorFactory.createEditor(self, parent, field) - - -class StaffCursor(QSqlCursor): - def __init__(self): - QSqlCursor.__init__(self, "staff") - monSalary = QSqlFieldInfo("monsalary", QVariant.Double) - self.append(monSalary) - self.setCalculated(monSalary.name(), TRUE) - - def calculateField(self, name): - if str(name) == "monsalary": - return QVariant(self.value("salary").toDouble() / 12) - return QVariant(QString.null) - - -class Table(CustomTable): - def __init__(self): - #self.staffCursor = QSqlCursor("staff") - self.staffCursor = StaffCursor() - QDataTable.__init__(self, self.staffCursor) - self.propMap = QSqlPropertyMap() - self.editorFactory = CustomSqlEditorFactory() - self.propMap.insert("StatusPicker", "statusid") - self.installPropertyMap(self.propMap) - self.installEditorFactory(self.editorFactory) - for cn, ch in (("forename", "Forename"), - ("surname", "Surname" ), - ("salary", "Annual Salary"), - ("monsalary","Monthly Salary"), - ("statusid", "Status")): - self.addColumn(cn, ch) - self.order = QStringList("surname") - self.order.append("forename") - self.setSort(self.order) - self.refresh() - - -if __name__=='__main__': - app = QApplication(sys.argv) - #app.setFont(QFont("Verdana", 11)) - - if createConnection(): - t = Table() - app.setMainWidget(t) - t.resize(600, 250) - t.show() - app.exec_loop() - - diff --git a/python/pyqt/examples3/SQL/testdb_mysql.sql b/python/pyqt/examples3/SQL/testdb_mysql.sql deleted file mode 100644 index 144d4c90..00000000 --- a/python/pyqt/examples3/SQL/testdb_mysql.sql +++ /dev/null @@ -1,57 +0,0 @@ -drop database testdb; -create database testdb; -use testdb; - -create table people (id integer primary key auto_increment, - name char(40)); - -create table staff (id integer primary key auto_increment, - forename char(40), - surname char(40), - salary float(10,2), - statusid integer); - -create table status (id integer primary key, - name char(30)); - -create table creditors (id integer primary key auto_increment, - forename char(40), - surname char(40), - city char(30)); - -create table prices (id integer primary key, - name char(40), - price float); - -create table invoiceitem (id integer primary key auto_increment, - pricesid integer, - quantity integer, - paiddate date); - -insert into staff (forename, surname, salary, statusid) values - ("Hugo", "Hurtig", 123450.50, 0), - ("Alfred E.", "Neumann", 56780.90, 1), - ("Agate", "Schnell-Fertig", 12340.56, 2), - ("Emil", "Dotterschreck", -5670.23, 3), - ("Eugen", "Nutzlos", -7833.56, 3), - ("Harald", "Schmidt", -150000.0, 3), - ("Urmel", "auf dem Eis", 7778.0, 2); - -insert into status (id, name) values - (0, 'Chief'), - (1, 'Programmer'), - (2, 'Secretary'), - (3, 'Driver'); - -insert into prices (id, name, price) values - (0, "Waschbecken", 150.25), - (1, "Wellensittich", 27.95), - (2, "Roter Papagei", 850.0), - (3, "Spam & Eggs", -7.50), - (4, "Renault Espace", 9000.0), - (5, "Tux, der Pinguin", 65.35), - (6, "Makroskop", 985000.0), - (7, "Regenbaum", 1235.65), - (8, "Bluterguß", 23.95), - (9, "Weltmeisterschaft", 2.95), - (10, "Premiere Dekoder", -185.75); diff --git a/python/pyqt/examples3/SQL/testdb_pg.sql b/python/pyqt/examples3/SQL/testdb_pg.sql deleted file mode 100644 index 73a42703..00000000 --- a/python/pyqt/examples3/SQL/testdb_pg.sql +++ /dev/null @@ -1,232 +0,0 @@ --- --- Selected TOC Entries: --- --- --- TOC Entry ID 1 (OID 0) --- --- Name: testdb Type: DATABASE Owner: postgres --- - -CREATE DATABASE "testdb"; - -\connect testdb postgres --- --- TOC Entry ID 16 (OID 17332) --- --- Name: people Type: TABLE Owner: postgres --- - -CREATE TABLE "people" ( - "id" integer DEFAULT nextval('people_id_seq'::text) NOT NULL, - "name" character(40), - Constraint "people_pkey" Primary Key ("id") -); - --- --- TOC Entry ID 17 (OID 17335) --- --- Name: staff Type: TABLE Owner: postgres --- - -CREATE TABLE "staff" ( - "id" integer DEFAULT nextval('staff_id_seq'::text) NOT NULL, - "forename" character(40), - "surname" character(40), - "salary" money, - "statusid" integer, - Constraint "staff_pkey" Primary Key ("id") -); - --- --- TOC Entry ID 18 (OID 17338) --- --- Name: status Type: TABLE Owner: postgres --- - -CREATE TABLE "status" ( - "id" integer NOT NULL, - "name" character(30), - Constraint "status_pkey" Primary Key ("id") -); - --- --- TOC Entry ID 19 (OID 17341) --- --- Name: creditors Type: TABLE Owner: postgres --- - -CREATE TABLE "creditors" ( - "id" integer DEFAULT nextval('creditors_id_seq'::text) NOT NULL, - "forename" character(40), - "surname" character(40), - "city" character(30), - Constraint "creditors_pkey" Primary Key ("id") -); - --- --- TOC Entry ID 20 (OID 17344) --- --- Name: prices Type: TABLE Owner: postgres --- - -CREATE TABLE "prices" ( - "id" integer NOT NULL, - "name" character(40), - "price" real, - Constraint "prices_pkey" Primary Key ("id") -); - --- --- TOC Entry ID 21 (OID 17347) --- --- Name: invoiceitem Type: TABLE Owner: postgres --- - -CREATE TABLE "invoiceitem" ( - "id" integer DEFAULT nextval('invoice_id_seq'::text) NOT NULL, - "pricesid" integer, - "quantity" integer, - "paiddate" date, - Constraint "invoiceitem_pkey" Primary Key ("id") -); - --- --- TOC Entry ID 2 (OID 17351) --- --- Name: people_id_seq Type: SEQUENCE Owner: postgres --- - -CREATE SEQUENCE "people_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1; - --- --- TOC Entry ID 4 (OID 17353) --- --- Name: staff_id_seq Type: SEQUENCE Owner: postgres --- - -CREATE SEQUENCE "staff_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1; - --- --- TOC Entry ID 6 (OID 17355) --- --- Name: creditors_id_seq Type: SEQUENCE Owner: postgres --- - -CREATE SEQUENCE "creditors_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1; - --- --- TOC Entry ID 8 (OID 17357) --- --- Name: invoice_id_seq Type: SEQUENCE Owner: postgres --- - -CREATE SEQUENCE "invoice_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1; - --- --- Data for TOC Entry ID 28 (OID 17332) --- --- Name: people Type: TABLE DATA Owner: postgres --- - - -COPY "people" FROM stdin; -\. --- --- Data for TOC Entry ID 29 (OID 17335) --- --- Name: staff Type: TABLE DATA Owner: postgres --- - - -COPY "staff" FROM stdin; -1 Hugo Hurtig $123,450.50 0 -2 Alfred E. Neumann $56,780.90 1 -3 Agate Schnell-Fertig $12,340.56 2 -6 Eugen Nutzlos -$7,833.56 3 -7 Harald Schmidt -$150,000.00 3 -4 Urmel auf dem Eis $7,778.00 2 -5 Emil Dotterschreck -$5,670.23 3 -\. --- --- Data for TOC Entry ID 30 (OID 17338) --- --- Name: status Type: TABLE DATA Owner: postgres --- - - -COPY "status" FROM stdin; -0 Chief -1 Programmer -2 Secretary -3 Driver -\. --- --- Data for TOC Entry ID 31 (OID 17341) --- --- Name: creditors Type: TABLE DATA Owner: postgres --- - - -COPY "creditors" FROM stdin; -\. --- --- Data for TOC Entry ID 32 (OID 17344) --- --- Name: prices Type: TABLE DATA Owner: postgres --- - - -COPY "prices" FROM stdin; -0 Waschbecken 150.25 -1 Wellensittich 27.95 -2 Roter Papagei 850 -3 Spam & Eggs -7.5 -4 Renault Espace 9000 -5 Tux, der Pinguin 65.35 -6 Makroskop 985000 -7 Regenbaum 1235.65 -8 Bluterguß 23.95 -9 Weltmeisterschaft 2.95 -10 Premiere Dekoder -185.75 -\. --- --- Data for TOC Entry ID 33 (OID 17347) --- --- Name: invoiceitem Type: TABLE DATA Owner: postgres --- - - -COPY "invoiceitem" FROM stdin; -\. --- --- TOC Entry ID 3 (OID 17351) --- --- Name: people_id_seq Type: SEQUENCE SET Owner: postgres --- - -SELECT setval ('"people_id_seq"', 1, false); - --- --- TOC Entry ID 5 (OID 17353) --- --- Name: staff_id_seq Type: SEQUENCE SET Owner: postgres --- - -SELECT setval ('"staff_id_seq"', 8, true); - --- --- TOC Entry ID 7 (OID 17355) --- --- Name: creditors_id_seq Type: SEQUENCE SET Owner: postgres --- - -SELECT setval ('"creditors_id_seq"', 1, false); - --- --- TOC Entry ID 9 (OID 17357) --- --- Name: invoice_id_seq Type: SEQUENCE SET Owner: postgres --- - -SELECT setval ('"invoice_id_seq"', 1, false); - diff --git a/python/pyqt/examples3/aclock.py b/python/pyqt/examples3/aclock.py deleted file mode 100755 index 38ed36c9..00000000 --- a/python/pyqt/examples3/aclock.py +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env python - -import sys -from qt import * - -def QMIN(x, y): - if y > x: return y - return x -class AnalogClock(QWidget): - def __init__(self, *args): - apply(QWidget.__init__,(self,) + args) - self.time = QTime.currentTime() - internalTimer = QTimer(self) - self.connect(internalTimer, SIGNAL("timeout()"), self.timeout) - internalTimer.start(5000) - - def timeout(self): - new_time = QTime.currentTime() - if new_time.minute() != self.time.minute(): - self.update() - - def paintEvent(self, qe): - if not self.isVisible(): - return - self.time = QTime.currentTime() - - pts = QPointArray() - paint = QPainter(self) - paint.setBrush(self.foregroundColor()) - - cp = QPoint(self.rect().center()) - d = QMIN(self.width(), self.height()) - matrix = QWMatrix() - matrix.translate(cp.x(), cp.y()) - matrix.scale(d/1000.0, d/1000.0) - - h_angle = 30*(self.time.hour()%12 - 3) + self.time.minute()/2 - matrix.rotate(h_angle) - paint.setWorldMatrix(matrix) - pts.setPoints([-20,0,0,-20,300,0,0,20]) - paint.drawPolygon(pts) - matrix.rotate(-h_angle) - - m_angle = (self.time.minute()-15)*6 - matrix.rotate(m_angle) - paint.setWorldMatrix(matrix) - pts.setPoints([-10,0,0,-10,400,0,0,10]) - paint.drawPolygon(pts) - matrix.rotate(-m_angle) - - for i in range(0,12): - paint.setWorldMatrix(matrix) - paint.drawLine(450,0, 500,0) - matrix.rotate(30) - -a = QApplication(sys.argv) -clock = AnalogClock() -clock.resize(100,100) -a.setMainWidget(clock) -clock.show() -a.exec_loop() diff --git a/python/pyqt/examples3/addressbook.py b/python/pyqt/examples3/addressbook.py deleted file mode 100755 index d7316e33..00000000 --- a/python/pyqt/examples3/addressbook.py +++ /dev/null @@ -1,457 +0,0 @@ -#!/usr/bin/env python - -# A port to PyQt of the application example from Qt v2.x. - - -import sys, string -from qt import * - -TRUE = 1 -FALSE = 0 -fileopen = [ -' 16 13 5 1', -'. c #040404', -'# c #808304', -'a c None', -'b c #f3f704', -'c c #f3f7f3', -'aaaaaaaaa...aaaa', -'aaaaaaaa.aaa.a.a', -'aaaaaaaaaaaaa..a', -'a...aaaaaaaa...a', -'.bcb.......aaaaa', -'.cbcbcbcbc.aaaaa', -'.bcbcbcbcb.aaaaa', -'.cbcb...........', -'.bcb.#########.a', -'.cb.#########.aa', -'.b.#########.aaa', -'..#########.aaaa', -'...........aaaaa' -] - -filesave = [ -' 14 14 4 1', -'. c #040404', -'# c #808304', -'a c #bfc2bf', -'b c None', -'..............', -'.#.aaaaaaaa.a.', -'.#.aaaaaaaa...', -'.#.aaaaaaaa.#.', -'.#.aaaaaaaa.#.', -'.#.aaaaaaaa.#.', -'.#.aaaaaaaa.#.', -'.##........##.', -'.############.', -'.##.........#.', -'.##......aa.#.', -'.##......aa.#.', -'.##......aa.#.', -'b.............' -] - -fileprint = [ -' 16 14 6 1', -'. c #000000', -'# c #848284', -'a c #c6c3c6', -'b c #ffff00', -'c c #ffffff', -'d c None', -'ddddd.........dd', -'dddd.cccccccc.dd', -'dddd.c.....c.ddd', -'ddd.cccccccc.ddd', -'ddd.c.....c....d', -'dd.cccccccc.a.a.', -'d..........a.a..', -'.aaaaaaaaaa.a.a.', -'.............aa.', -'.aaaaaa###aa.a.d', -'.aaaaaabbbaa...d', -'.............a.d', -'d.aaaaaaaaa.a.dd', -'dd...........ddd' -] - -class ABCentralWidget( QWidget ): - def __init__( self, *args ): - apply( QWidget.__init__, (self, ) + args ) - self.mainGrid = QGridLayout( self, 2, 1, 5, 5 ) - - self.setupTabWidget() - self.setupListView() - - self.mainGrid.setRowStretch( 0, 0 ) - self.mainGrid.setRowStretch( 1, 1 ) - - def save( self, filename ): - if not self.listView.firstChild(): - return - - f = QFile( filename ) - if not f.open( IO_WriteOnly ): - return - - t = QTextStream( f ) - - #it = QListViewItemIterator( self.listView ) - - while not t.eof(): - item = QListViewItem( self.listView ) - for i in range (0, 4): - t << item.text( i ) << '\n' - #for it in it.current(): - #for i in range (0, 4): - #t << it.current().text[ i ] << "\n" - - f.close() - - - def load( self, filename ): - self.listView.clear() - - f = QFile( filename ) - if not f.open( IO_ReadOnly ): - return - - t = QTextStream( f ) - - while not t.eof(): - item = QListViewItem( self.listView ) - for i in range (0, 4): - item.setText( i, t.readLine() ) - - f.close(); - - - def setupTabWidget( self ): - self.tabWidget = QTabWidget( self ) - - self.input = QWidget( self.tabWidget ) - self.grid1 = QGridLayout( self.input, 2, 5, 5, 5 ) - - self.liFirstName = QLabel( 'First &Name', self.input ) - self.liFirstName.resize( self.liFirstName.sizeHint() ) - self.grid1.addWidget( self.liFirstName, 0, 0 ) - - self.liLastName = QLabel( '&Last Name', self.input ) - self.liLastName.resize( self.liLastName.sizeHint() ) - self.grid1.addWidget( self.liLastName, 0, 1 ) - - self.liAddress = QLabel( '&Address', self.input ) - self.liAddress.resize( self.liAddress.sizeHint() ) - self.grid1.addWidget( self.liAddress, 0, 2 ) - - self.liEMail = QLabel( '&E-Mail', self.input ) - self.liEMail.resize( self.liEMail.sizeHint() ) - self.grid1.addWidget( self.liEMail, 0, 3 ) - - self.add = QPushButton( '&Add', self.input ) - self.add.resize( self.add.sizeHint() ) - self.grid1.addWidget( self.add, 0, 4 ) - self.connect( self.add, SIGNAL( 'clicked()' ), self.addEntry ) - - self.iFirstName = QLineEdit( self.input ) - self.iFirstName.resize( self.iFirstName.sizeHint() ) - self.grid1.addWidget( self.iFirstName, 1, 0 ) - self.liFirstName.setBuddy( self.iFirstName ) - - self.iLastName = QLineEdit( self.input ) - self.iLastName.resize( self.iLastName.sizeHint() ) - self.grid1.addWidget( self.iLastName, 1, 1 ) - self.liLastName.setBuddy( self.iLastName ) - - self.iAddress = QLineEdit( self.input ) - self.iAddress.resize( self.iAddress.sizeHint() ) - self.grid1.addWidget( self.iAddress, 1, 2 ) - self.liAddress.setBuddy( self.iAddress ) - - self.iEMail = QLineEdit( self.input ) - self.iEMail.resize( self.iEMail.sizeHint() ) - self.grid1.addWidget( self.iEMail, 1, 3 ) - self.liEMail.setBuddy( self.iEMail ) - - self.change = QPushButton( '&Change', self.input ) - self.change.resize( self.change.sizeHint() ) - self.grid1.addWidget( self.change, 1, 4 ) - self.connect( self.change, SIGNAL( 'clicked()' ), self.changeEntry ) - - self.tabWidget.addTab( self.input, '&Add/Change Entry' ) - - # -------------------------------------- - - self.search = QWidget( self ) - self.grid2 = QGridLayout( self.search, 2, 5, 5, 5 ) - - self.cFirstName = QCheckBox( 'First &Name', self.search ) - self.cFirstName.resize( self.cFirstName.sizeHint() ) - self.grid2.addWidget( self.cFirstName, 0, 0 ) - self.connect( self.cFirstName, SIGNAL( 'clicked()' ), self.toggleFirstName ) - - self.cLastName = QCheckBox( '&Last Name', self.search ) - self.cLastName.resize( self.cLastName.sizeHint() ) - self.grid2.addWidget( self.cLastName, 0, 1 ) - self.connect( self.cLastName, SIGNAL( 'clicked()' ), self.toggleLastName ) - - self.cAddress = QCheckBox( '&Address', self.search ) - self.cAddress.resize( self.cAddress.sizeHint() ) - self.grid2.addWidget( self.cAddress, 0, 2 ) - self.connect( self.cAddress, SIGNAL( 'clicked()' ), self.toggleAddress ) - - self.cEMail = QCheckBox( '&E-Mail', self.search ) - self.cEMail.resize( self.cEMail.sizeHint() ) - self.grid2.addWidget( self.cEMail, 0, 3 ) - self.connect( self.cEMail, SIGNAL( 'clicked()' ), self.toggleEMail ) - - self.sFirstName = QLineEdit( self.search ) - self.sFirstName.resize( self.sFirstName.sizeHint() ) - self.grid2.addWidget( self.sFirstName, 1, 0 ) - - self.sLastName = QLineEdit( self.search ) - self.sLastName.resize( self.sLastName.sizeHint() ) - self.grid2.addWidget( self.sLastName, 1, 1 ) - - self.sAddress = QLineEdit( self.search ) - self.sAddress.resize( self.sAddress.sizeHint() ) - self.grid2.addWidget( self.sAddress, 1, 2 ) - - self.sEMail = QLineEdit( self.search ) - self.sEMail.resize( self.sEMail.sizeHint() ) - self.grid2.addWidget( self.sEMail, 1, 3 ) - - self.find = QPushButton( '&Find', self.search ) - self.find.resize( self.find.sizeHint() ) - self.grid2.addWidget( self.find, 1, 4 ) - self.connect( self.find, SIGNAL( 'clicked()' ), self.findEntries ) - - self.cFirstName.setChecked( TRUE ) - self.sFirstName.setEnabled( TRUE ) - self.sLastName.setEnabled( FALSE ) - self.sAddress.setEnabled( FALSE ) - self.sEMail.setEnabled( FALSE ) - - self.tabWidget.addTab( self.search, "&Search" ) - - self.mainGrid.addWidget( self.tabWidget, 0, 0 ) - - def setupListView( self ): - self.listView = QListView( self ) - self.listView.addColumn( 'First Name' ) - self.listView.addColumn( 'Last Name' ) - self.listView.addColumn( 'Address' ) - self.listView.addColumn( 'E-Mail' ) - - self.listView.setSelectionMode( QListView.Extended ) - - self.connect( self.listView, SIGNAL( 'clicked( QListViewItem* )' ), self.itemSelected ) - - self.mainGrid.addWidget( self.listView, 1, 0 ) - self.listView.setAllColumnsShowFocus( TRUE ) - - - def addEntry( self ): - if not self.iFirstName.text().isEmpty() or not self.iLastName.text().isEmpty() or \ - not self.iAddress.text().isEmpty() or not self.iEMail.text().isEmpty() : - self.item = QListViewItem( self.listView ) - self.item.setText( 0, self.iFirstName.text() ) - self.item.setText( 1, self.iLastName.text() ) - self.item.setText( 2, self.iAddress.text() ) - self.item.setText( 3, self.iEMail.text() ) - - self.iFirstName.setText( '' ) - self.iLastName.setText( '' ) - self.iAddress.setText( '' ) - self.iEMail.setText( '' ) - - def changeEntry( self ): - self.item = self.listView.currentItem() - if self.item and ( not self.iFirstName.text().isEmpty() or not self.iLastName.text().isEmpty() or \ - not self.iAddress.text().isEmpty() or not self.iEMail.text().isEmpty() ) : - self.item.setText( 0, self.iFirstName.text() ) - self.item.setText( 1, self.iLastName.text() ) - self.item.setText( 2, self.iAddress.text() ) - self.item.setText( 3, self.iEMail.text() ) - - def selectionChanged( self ): - self.iFirstName.setText( '' ) - self.iLastName.setText( '' ) - self.iAddress.setText( '' ) - self.iEMail.setText( '' ) - - def itemSelected( self, item ): - self.item.setSelected( TRUE ) - self.item.repaint() - - self.iFirstName.setText( item.text( 0 ) ) - self.iLastName.setText( item.text( 1 ) ) - self.iAddress.setText( item.text( 2 ) ) - self.iEMail.setText( item.text( 3 ) ) - - def toggleFirstName( self ): - self.sFirstName.setText( '' ) - if self.cFirstName.isChecked(): - self.sFirstName.setEnabled( TRUE ) - self.sFirstName.setFocus() - else: - self.sFirstName.setEnabled( FALSE ) - - def toggleLastName( self ): - self.sLastName.setText( '' ) - if self.cLastName.isChecked(): - self.sLastName.setEnabled( TRUE ) - self.sLastName.setFocus() - else: - self.sLastName.setEnabled( FALSE ) - - - def toggleAddress( self ): - self.sAddress.setText( '' ) - if self.cAddress.isChecked(): - self.sAddress.setEnabled( TRUE ) - self.sAddress.setFocus() - else: - self.sAddress.setEnabled( FALSE ) - - - def toggleEMail( self ): - self.sEMail.setText( '' ) - if self.cEMail.isChecked(): - self.sEMail.setEnabled( TRUE ) - self.sEMail.setFocus() - - else: - self.sEMail.setEnabled( FALSE ) - - - def findEntries( self ): - if not self.cFirstName.isChecked() and not self.cLastName.isChecked() and \ - not self.cAddress.isChecked() and not self.cEMail.isChecked(): - self.listView.clearSelection() - return - - it = QListViewItemIterator( self.listView ) - - for it in it.current() : - select = TRUE - - if self.cFirstName.isChecked(): - if select and it.current().text( 0 ).contains( self.sFirstName.text() ): - select = TRUE - else: - select = FALSE - - if self.cLastName.isChecked(): - if select and it.current().text( 1 ).contains( self.sLastName.text() ): - select = TRUE - else: - select = FALSE - - if self.cAddress.isChecked(): - if select and it.current().text( 2 ).contains( self.sAddress.text() ): - select = TRUE - else: - select = FALSE - - if self.cEMail.isChecked(): - if select and it.current().text( 3 ).contains( self.sEMail.text() ): - select = TRUE - else: - select = FALSE - - - if select: - it.current().setSelected( TRUE ) - else: - it.current().setSelected( FALSE ) - it.current().repaint() - - -class ABMainWindow(QMainWindow): - def __init__( self ): - QMainWindow.__init__( self, None, 'example addressbook application' ) - - self.filename = QString.null - self.setupMenuBar() - self.setupFileTools() - self.setupStatusBar() - self.setupCentralWidget() - - def setupMenuBar( self ): - self.file = QPopupMenu( self ) - self.menuBar().insertItem( '&File', self.file ) - - openIcon = QIconSet( QPixmap( fileopen ) ) - self.file.insertItem( 'New', self.fileNew, Qt.CTRL + Qt.Key_N ) - self.file.insertItem( openIcon, 'Open', self.fileOpen, Qt.CTRL + Qt.Key_O ) - self.file.insertSeparator() - saveIcon = QIconSet( QPixmap( filesave ) ) - self.file.insertItem( saveIcon, 'Save', self.fileSave, Qt.CTRL + Qt.Key_S ) - self.file.insertItem( 'Save As...', self.fileSaveAs ) - self.file.insertSeparator() - printIcon = QIconSet( QPixmap( fileprint ) ) - self.file.insertItem( printIcon, 'Print...', self.filePrint, Qt.CTRL + Qt.Key_P ) - self.file.insertSeparator() - #self.file.insertItem( 'Close', self.closeWindow, Qt.CTRL + Qt.Key_W ) - self.file.insertItem('Close', self, SLOT('close()'), Qt.CTRL+Qt.Key_W) - self.file.insertItem( 'Quit', qApp, SLOT( 'quit()' ), Qt.CTRL + Qt.Key_Q ) - - def setupFileTools( self ): - pass - #self.fileTools = QToolBar( self, 'file operations' ) - - def setupStatusBar( self ): - self.statusBar().message( "Ready", 2000 ) - - def setupCentralWidget( self ): - self.view = ABCentralWidget( self ) - #self.view.show() - self.setCentralWidget( self.view ) - - def closeWindow( self ): - close() - - - def fileNew( self ): - pass - - def fileOpen( self ): - fn = QFileDialog.getOpenFileName( QString.null, QString.null, self ) - if not fn.isEmpty(): - self.filename = fn - self.view.load( self.filename ) - - def fileSave( self ): - if self.filename.isEmpty(): - self.fileSaveAs() - return - - self.view.save( self.filename ) - - def fileSaveAs( self ): - fn = QFileDialog.getSaveFileName( QString.null, QString.null, self ) - if not fn.isEmpty(): - self.filename = fn - self.fileSave - - def filePrint( self ): - pass - - -a = QApplication( sys.argv ) - -mw = ABMainWindow() -#mw.setupMenuBar() -#mw.setupFileTools -#mw.setupStatusBar -#mw.setupCentralWidget -#view = ABCentralWidget() -#mw.setCentralWidget( view ) -mw.setCaption( 'Addressbook 1' ) -a.setMainWidget( mw ) -mw.show() - -a.connect( a, SIGNAL( 'lastWindowClosed()' ), a, SLOT( 'quit()' ) ) -a.exec_loop() diff --git a/python/pyqt/examples3/application.py b/python/pyqt/examples3/application.py deleted file mode 100755 index f5c027db..00000000 --- a/python/pyqt/examples3/application.py +++ /dev/null @@ -1,277 +0,0 @@ -#!/usr/bin/env python - -# A simple application. - - -import sys, string -from qt import * - - -fileopen = [ - '16 13 5 1', - '. c #040404', - '# c #808304', - 'a c None', - 'b c #f3f704', - 'c c #f3f7f3', - 'aaaaaaaaa...aaaa', - 'aaaaaaaa.aaa.a.a', - 'aaaaaaaaaaaaa..a', - 'a...aaaaaaaa...a', - '.bcb.......aaaaa', - '.cbcbcbcbc.aaaaa', - '.bcbcbcbcb.aaaaa', - '.cbcb...........', - '.bcb.#########.a', - '.cb.#########.aa', - '.b.#########.aaa', - '..#########.aaaa', - '...........aaaaa' -] - -filesave = [ - '14 14 4 1', - '. c #040404', - '# c #808304', - 'a c #bfc2bf', - 'b c None', - '..............', - '.#.aaaaaaaa.a.', - '.#.aaaaaaaa...', - '.#.aaaaaaaa.#.', - '.#.aaaaaaaa.#.', - '.#.aaaaaaaa.#.', - '.#.aaaaaaaa.#.', - '.##........##.', - '.############.', - '.##.........#.', - '.##......aa.#.', - '.##......aa.#.', - '.##......aa.#.', - 'b.............' -] - -fileprint = [ - '16 14 6 1', - '. c #000000', - '# c #848284', - 'a c #c6c3c6', - 'b c #ffff00', - 'c c #ffffff', - 'd c None', - 'ddddd.........dd', - 'dddd.cccccccc.dd', - 'dddd.c.....c.ddd', - 'ddd.cccccccc.ddd', - 'ddd.c.....c....d', - 'dd.cccccccc.a.a.', - 'd..........a.a..', - '.aaaaaaaaaa.a.a.', - '.............aa.', - '.aaaaaa###aa.a.d', - '.aaaaaabbbaa...d', - '.............a.d', - 'd.aaaaaaaaa.a.dd', - 'dd...........ddd' -] - - -fileOpenText = \ -''' -Click this button to open a new file.

-You can also select the Open command from the File menu.''' - -fileSaveText = \ -'''Click this button to save the file you are editing.

-You will be prompted for a filename.

-You can also select the Save command from the File menu.''' - -filePrintText = \ -'''Click this button to print the file you are editing.

-You can also select the Print command from the File menu.''' - - -editorList = [] - - -class ApplicationWindow(QMainWindow): - def __init__(self): - QMainWindow.__init__(self,None,'example application main window',Qt.WDestructiveClose) - - self.filename = QString.null - self.printer = QPrinter() - - self.fileTools = QToolBar(self,'file operations') - - openIcon = QPixmap(fileopen) - self.fileOpen = QToolButton(QIconSet(openIcon),'Open File',QString.null,self.load,self.fileTools,'open file') - - saveIcon = QPixmap(filesave) - self.fileSave = QToolButton(QIconSet(saveIcon),'Save File',QString.null,self.save,self.fileTools,'save file') - - printIcon = QPixmap(fileprint) - self.filePrint = QToolButton(QIconSet(printIcon),'Print File',QString.null,self.printDoc,self.fileTools,'print file') - - QWhatsThis.whatsThisButton(self.fileTools) - - QWhatsThis.add(self.fileOpen,fileOpenText) - QMimeSourceFactory.defaultFactory().setPixmap('fileopen',openIcon) - QWhatsThis.add(self.fileSave,fileSaveText) - QWhatsThis.add(self.filePrint,filePrintText) - - self.file = QPopupMenu(self) - self.menuBar().insertItem('&File',self.file) - - self.file.insertItem('&New',self.newDoc,Qt.CTRL + Qt.Key_N) - - id = self.file.insertItem(QIconSet(openIcon),'&Open',self.load,Qt.CTRL + Qt.Key_O) - self.file.setWhatsThis(id,fileOpenText) - - id = self.file.insertItem(QIconSet(saveIcon),'&Save',self.save,Qt.CTRL + Qt.Key_S) - self.file.setWhatsThis(id,fileSaveText) - - id = self.file.insertItem('Save &as',self.saveAs) - self.file.setWhatsThis(id,fileSaveText) - - self.file.insertSeparator() - - id = self.file.insertItem(QIconSet(printIcon),'&Print',self.printDoc,Qt.CTRL + Qt.Key_P) - self.file.setWhatsThis(id,filePrintText) - - self.file.insertSeparator() - - self.file.insertItem('&Close',self,SLOT('close()'),Qt.CTRL + Qt.Key_W) - self.file.insertItem('&Quit',qApp,SLOT('closeAllWindows()'),Qt.CTRL + Qt.Key_Q) - - self.help = QPopupMenu(self) - self.menuBar().insertSeparator() - self.menuBar().insertItem('&Help',self.help) - - self.help.insertItem('&About',self.about,Qt.Key_F1) - self.help.insertItem('About &Qt',self.aboutQt) - - self.e = QMultiLineEdit(self,'editor') - self.e.setFocus() - self.setCentralWidget(self.e) - - self.statusBar().message('Ready',2000) - self.resize(450,600) - - def newDoc(self): - ed = ApplicationWindow() - ed.show() - editorList.append(ed) - - def load(self): - fn = QFileDialog.getOpenFileName(QString.null,QString.null,self) - if fn.isEmpty(): - self.statusBar().message('Loading aborted',2000) - return - - fileName = str(fn) - - self.e.setAutoUpdate(0) - self.e.clear() - - try: - f = open(fileName,'r') - except: - return - - for l in f.readlines(): - self.e.append(string.rstrip(l)) - - f.close() - - self.e.setAutoUpdate(1) - self.e.repaint() - self.e.setEdited(0) - self.setCaption(fileName) - self.statusBar().message('Loaded document %s' % (fileName),2000) - - def save(self): - if self.filename.isEmpty(): - self.saveAs() - return - - try: - f = open(str(self.filename),'w+') - except: - self.statusBar().message('Could not write to %s' % (self.filename),2000) - return - - f.write(str(self.e.text())) - f.close() - - self.e.setEdited(0) - self.setCaption(self.filename) - self.statusBar().message('File %s saved' % (self.filename),2000) - - def saveAs(self): - fn = QFileDialog.getSaveFileName(QString.null,QString.null,self) - if not fn.isEmpty(): - self.filename = fn - self.save() - else: - self.statusBar().message('Saving aborted',2000) - - def printDoc(self): - Margin = 10 - pageNo = 1 - - if self.printer.setup(self): - self.statusBar().message('Printing...') - - p = QPainter() - p.begin(self.printer) - p.setFont(self.e.font()) - yPos = 0 - fm = p.fontMetrics() - metrics = QPaintDeviceMetrics(self.printer) - - for i in range(self.e.numLines): - if Margin + yPos > metrics.height() - Margin: - pageNo = pageNo + 1 - self.statusBar().message('Printing (page %d)...' % (pageNo)) - self.printer.newPage() - yPos = 0 - - p.drawText(Margin,Margin + yPos,metrics.width(),fm.lineSpacing(),Qt.ExpandTabs | Qt.DontClip,self.e.textLine(i)) - yPos = yPos + fm.lineSpacing() - - p.end() - self.statusBar().message('Printing completed',2000) - else: - self.statusBar().message('Printing aborted',2000) - - def closeEvent(self,ce): - if not self.e.edited(): - ce.accept() - return - - rc = QMessageBox.information(self,'Qt Application Example', - 'The document has been changed since the last save.', - 'Save Now','Cancel','Leave Anyway',0,1) - - if rc == 0: - self.save() - ce.accept() - elif rc == 2: - ce.accept() - else: - ce.ignore() - - def about(self): - QMessageBox.about(self,'Qt Application Example', - 'This example demonstrates simple use of QMainWindow,\nQMenuBar and QToolBar.') - - def aboutQt(self): - QMessageBox.aboutQt(self,'Qt Application Example') - - -a = QApplication(sys.argv) -mw = ApplicationWindow() -mw.setCaption('Document 1') -mw.show() -a.connect(a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()')) -a.exec_loop() diff --git a/python/pyqt/examples3/biff.py b/python/pyqt/examples3/biff.py deleted file mode 100755 index ee5bfe38..00000000 --- a/python/pyqt/examples3/biff.py +++ /dev/null @@ -1,173 +0,0 @@ -#!/usr/bin/env python - -import os, sys, string -from qt import * - - -if QT_VERSION < 0x030100: - print "This example requires Qt v3.1.0 or later." - sys.exit(1) - - -FALSE = 0 -TRUE = 1 - -hasmail_bmp_data = [ -"48 48 3 1", -" c None", -". c #000000", -"+ c #FFFFFF", -"................................................", -".............................++++++++++.........", -".............................++++++++++.........", -"........................++++.+++.+.+.++.........", -"......................++++.++++.+.+.+++.........", -".....................+++.....+++.+.+.++.........", -"....................++.......++.+.+.+++.........", -"...................++........++++++++++.........", -"..................++.........++++++++++.........", -".................++..........+++..+.............", -"................++...........+++..+.............", -"...............++............+++.++.............", -"..............+++++++........++++++.............", -".............++++++++++......++++++.............", -"............+++......+++.....++++.+.............", -"...........+++.........++....+++..+.............", -"...........++..........++...++++..+.............", -"..........++............++.+++++..+.............", -"..........++............++++++++..+.............", -".........++....++++++....+++.+++..+.............", -".........++......++......++..+++..+.............", -".........++..............++..+++..+.............", -".........++..............++..+++..+.............", -".........++..............++..++...+.............", -"+++++++..++.+.+..+..+.+..++.......+..+++++++++++", -".........++.+++.+.+.+.+..++.......+.............", -".........++.+.+.+++.+.+..++.......+.............", -".........++.+.+.+.+.+.+..++......++.............", -".........++.+.+.+.+.+.++.++.....++..............", -".........++..............++....++...............", -"..+.+.+..++..............++...++..+.+.+.+.+.+.+.", -".+.+.+.+.++..............++..++..+.+.+.+.+.+.+..", -"..+.+.+..++..............++.++..+.+.+.+.+.+.+.+.", -".+.+.+.+.++..............+++++.+.+.+.+.+.+.+.+..", -"..+.+.+..+++++++++++++++++++.++.+.+.+.+.+.+.+.+.", -".+.+.+.+..+++++++++++++++++..+.+.+.+.+.+.+.+.+..", -"..+.+.+.+..........+...+.....++.+.+.+.+.+.+.+.+.", -".+.+.+.+.+.+.+.+.+.+...+.....+.+.+.+.+.+.+.+.+..", -"..+.+.+.+.+.+.+.+.++...+.....++.+.+.+.+.+.+.+.+.", -".+.+.+.+.+.+.+.+.+.+...+.....+.+.+.+.+.+.+.+.+..", -"..+.+.+.+.+.+.+.+.++...+.....++.+.+.+.+.+.+.+.+.", -".+.+.+.+.+.+.+.+.+.+...+.....+.+.+.+.+.+.+.+.+..", -"..+.+.+.+.+.+.+.+.++...+....+.+.+.+.+.+.+.+.+.+.", -".+.+.+.+.+.+.+.+.+.+...+...+.+.+.+.+.+.+.+.+.+..", -"..+.+.+.+.+.+.+.+.+.+..+..+.+.+.+.+.+.+.+.+.+.+.", -".+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+..", -"..+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+...", -"................................................" -] - -nomail_bmp_data = [ -"48 48 3 1", -" c None", -". c #FFFFFF", -"+ c #000000", -"................................................", -"................................................", -"................................................", -".........................++++...................", -".......................++++++++.................", -".....................++++....+++................", -"....................+++........++...............", -"...................++...........++..............", -"..................++............++..............", -".................++..............++.......+.....", -"................++...............++......++.....", -"...............++................++.....+++.....", -"..............+++++++...........+++....++++.....", -".............++++++++++........++++...+++++.....", -"............+++......+++......+++.+..++++++.....", -"...........+++.........++....+++..+.+++.+++.....", -"...........++..........++...+++...++++..+++.....", -"..........++............++.+++...++++...++......", -"..........++............+++++...++++............", -".........++....++++++....+++...++++.............", -".........++......++......++...+++.+.............", -".........++..............++...+++.+.............", -".........++..............++...++..+.............", -".........++..............++.......+.............", -"+++++++..++..............++.......+..+++++++++++", -".........++..............++.......+.............", -".........++..............++.......+.............", -".........++..............++......++.............", -".........++..............++.....++..............", -".........++..............++....++...............", -".........++..............++...++................", -".........++..............++..++.................", -".........++..............++.++..................", -".........++..............+++++..................", -".........+++++++++++++++++++.+..................", -"..........+++++++++++++++++..+..................", -"...................+...+.....+..................", -"...................+...+.....+..................", -"...................+...+.....+..................", -"...................+...+.....+..................", -"...................+...+.....+..................", -"...................+...+.....+..................", -"...................+...+.....+..................", -"...................+...+.....+..................", -"+++.++++++++++.+.+++...+..+++++++++++.++...+++++", -"+.+++..+++.+.+++++.++..+.++.+++..+..+.++.+.++++.", -".++...+.....++...+...+++++++....+....++++++...+.", -"++++++++++++++++++++++++++++++++++++++++++++++++" -] - -class Biff(QWidget): - def __init__(self): - QWidget.__init__(self, None, "Biff - example application") - - mail = os.getenv("MAIL") - fi = QFileInfo(mail); - if not fi.exists(): - s = "/var/spool/mail/"+os.getenv("USER") - fi.setFile(s) - - if fi.exists(): - self.mailbox = fi.absFilePath() - self.startTimer(1000) - - self.setMinimumSize(48, 48) - self.setMaximumSize(48, 48) - self.resize(48, 48) - - self.hasNewMail = QPixmap(hasmail_bmp_data) - self.noNewMail = QPixmap(nomail_bmp_data) - - self.gotMail = FALSE - self.lastModified = fi.lastModified() - - def timerEvent(self, te): - fi = QFileInfo(self.mailbox) - newState = ( fi.lastModified().toTime_t() != self.lastModified.toTime_t() and fi.lastModified().toTime_t() > fi.lastRead().toTime_t()) - if newState != self.gotMail: - if self.gotMail == TRUE: - self.lastModified = fi.lastModified() - self.gotMail = newState - self.repaint(FALSE) - - def paintEvent(self, pe): - if self.gotMail: - bitBlt(self, 0, 0, self.hasNewMail) - else: - bitBlt(self, 0, 0, self.noNewMail) - - def mousePressEvent(self, me): - fi = QFileInfo(self.mailbox) - lastModified = fi.lastModified() - - -a = QApplication(sys.argv) -b = Biff() -a.setMainWidget(b) -b.show() -a.exec_loop() diff --git a/python/pyqt/examples3/bigtable.py b/python/pyqt/examples3/bigtable.py deleted file mode 100755 index 2c0b46a2..00000000 --- a/python/pyqt/examples3/bigtable.py +++ /dev/null @@ -1,72 +0,0 @@ -#!/usr/bin/env python - -#**************************************************************************** -#** $Id$ -#** -#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved. -#** -#** This file is part of an example program for PyQt. This example -#** program may be used, distributed and modified without limitation. -#** -#*****************************************************************************/ - -import sys -import os -from qt import * -from qttable import * - -TRUE = 1 -FALSE = 0 - -numRows = 1000000 -numCols = 1000000 - -class MyTable(QTable): - def __init__(self, r, c): - QTable.__init__(self, r, c) - self.items = {} - self.widgets = {} - self.setCaption("This is a big table with 1.000.000x1.000.000 cells...") - self.setLeftMargin(self.fontMetrics().width("W999999W")) - - def resizeData(self, v): - return - - def item(self, r, c): - try: - return self.items[self.indexOf(r, c)] - except KeyError: - return None - - def setItem(self, r, c, i): - self.items[self.indexOf(r, c)] = i - - def clearCell(self, r, c): - try: - del self.items[self.indexOf(r, c)] - except KeyError: - pass - - def insertWidget(self, r, c, w): - self.widgets[self.indexOf(r, c)] = w - - def cellWidget(self, r, c): - try: - return self.widgets[self.indexOf(r, c)] - except KeyError: - return None - - def clearCellWidget(self, r, c): - try: - del self.widgets[self.indexOf(r, c)] - except KeyError: - pass - - -if __name__ == '__main__': - app = QApplication(sys.argv) - - table = MyTable(numRows, numCols) - app.setMainWidget(table) - table.show() - app.exec_loop() diff --git a/python/pyqt/examples3/buttongroups.py b/python/pyqt/examples3/buttongroups.py deleted file mode 100755 index ed2c6315..00000000 --- a/python/pyqt/examples3/buttongroups.py +++ /dev/null @@ -1,125 +0,0 @@ -#!/usr/bin/env python -#/**************************************************************************** -#** $Id$ -#** -#** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. -#** -#** This file is part of an example program for Qt. This example -#** program may be used, distributed and modified without limitation. -#** -#*****************************************************************************/ - -import sys -from qt import * - -TRUE = 1 -FALSE = 0 - -## -# Creates all child widgets of the ButtonGroups window -## - -class ButtonsGroups( QWidget ): - def __init__( self, *args ): - apply( QWidget.__init__, (self,) + args ) - - # Create Widgets which allow easy layouting - self.vbox = QVBoxLayout( self, 11, 6 ) - self.box1 = QHBoxLayout( self.vbox ) - self.box2 = QHBoxLayout( self.vbox ) - - # ------- first group - - # Create an exclusive button group - self.grp1 = QButtonGroup( 1, QGroupBox.Horizontal, "Button Group 1 (exclusive)", self ) - self.box1.addWidget( self.grp1 ) - self.grp1.setExclusive( TRUE ) - - # insert 3 radiobuttons - self.rb11 = QRadioButton( "&Radiobutton 1", self.grp1 ) - self.rb11.setChecked( TRUE ) - QRadioButton( "R&adiobutton 2", self.grp1 ) - QRadioButton( "Ra&diobutton 3", self.grp1 ) - - # ------- second group - - # Create a non-exclusive buttongroup - self.grp2 = QButtonGroup( 1, QGroupBox.Horizontal, "Button Group 2 (non-exclusive)", self ) - self.box1.addWidget( self.grp2 ) - self.grp2.setExclusive( FALSE ) - - # insert 3 checkboxes - QCheckBox( "&Checkbox 1", self.grp2 ) - self.cb12 = QCheckBox( "C&heckbox 2", self.grp2 ) - self.cb12.setChecked( TRUE ) - self.cb13 = QCheckBox( "Triple &State Button", self.grp2 ) - self.cb13.setTristate( TRUE ) - self.cb13.setChecked( TRUE ) - - # ------------ third group - - # create a buttongroup which is exclusive for radiobuttons and non-exclusive for all other buttons - self.grp3 = QButtonGroup( 1, QGroupBox.Horizontal, "Button Group 3 (Radiobutton-exclusive)", self ) - self.box2.addWidget( self.grp3 ) - self.grp3.setRadioButtonExclusive( TRUE ) - - # insert three radiobuttons - self.rb21 = QRadioButton( "Rad&iobutton 1", self.grp3 ) - self.rb22 = QRadioButton( "Radi&obutton 2", self.grp3 ) - self.rb23 = QRadioButton( "Radio&button 3", self.grp3 ) - self.rb23.setChecked( TRUE ) - - # insert a checkbox... - self.state = QCheckBox( "E&nable Radiobuttons", self.grp3 ) - self.state.setChecked( TRUE ) - # ...and connect its SIGNAL clicked() with the SLOT slotChangeGrp3State() - self.connect( self.state, SIGNAL( "clicked()" ), self.slotChangeGrp3State ) - - # ------------ fourth group - - # create a groupbox which layouts its childs in a columns - self.grp4 = QButtonGroup( 1, QGroupBox.Horizontal, "Groupbox with normal buttons", self ) - self.box2.addWidget( self.grp4 ) - - # insert two pushbuttons... - QPushButton( "&Push Button", self.grp4 ) - self.tb2 = QPushButton( "&Toggle Button", self.grp4 ) - - # ... and make the second one a toggle button - self.tb2.setToggleButton( TRUE ) - self.tb2.setOn( TRUE ) - - # ... and make the third one a flat button - self.tb3 = QPushButton( "&Flat Button", self.grp4 ) - self.tb3.setFlat( TRUE ) - - # .. and the fourth a button with a menu - self.tb4 = QPushButton( "Popup Button", self.grp4 ) - menu = QPopupMenu(self.tb4) - menu.insertItem("Item1", 0) - menu.insertItem("Item2", 0) - menu.insertItem("Item3", 0) - menu.insertItem("Item4", 0) - self.tb4.setPopup(menu) - - # - # SLOT slotChangeGrp3State() - # enables/disables the radiobuttons of the third buttongroup - # - - def slotChangeGrp3State( self ): - self.rb21.setEnabled( self.state.isChecked() ) - self.rb22.setEnabled( self.state.isChecked() ) - self.rb23.setEnabled( self.state.isChecked() ) - - -## main program -a = QApplication( sys.argv ) - -buttonsgroups = ButtonsGroups() -buttonsgroups.resize( 500, 250 ) -buttonsgroups.setCaption( "PyQT Example - Buttons and Groups" ) -a.setMainWidget( buttonsgroups ) -buttonsgroups.show() - -a.exec_loop() diff --git a/python/pyqt/examples3/canvas/butterfly.png b/python/pyqt/examples3/canvas/butterfly.png deleted file mode 100644 index d8912d25..00000000 Binary files a/python/pyqt/examples3/canvas/butterfly.png and /dev/null differ diff --git a/python/pyqt/examples3/canvas/canvas.py b/python/pyqt/examples3/canvas/canvas.py deleted file mode 100755 index 178a6e66..00000000 --- a/python/pyqt/examples3/canvas/canvas.py +++ /dev/null @@ -1,619 +0,0 @@ -#!/usr/bin/env python - -import sys -from qt import * -from qtcanvas import * -import random - - -True = 1 -False = 0 -butterfly_fn = QString.null -butterflyimg = [] -logo_fn = QString.null -logoimg = [] -bouncy_logo = None -views = [] - - -class ImageItem(QCanvasRectangle): - def __init__(self,img,canvas): - QCanvasRectangle.__init__(self,canvas) - self.imageRTTI=984376 - self.image=img - self.pixmap=QPixmap() - self.setSize(self.image.width(), self.image.height()) - self.pixmap.convertFromImage(self.image, Qt.OrderedAlphaDither); - - def rtti(self): - return self.imageRTTI - - def hit(self,p): - ix = p.x()-self.x() - iy = p.y()-self.y() - if not self.image.valid( ix , iy ): - return False - self.pixel = self.image.pixel( ix, iy ) - return (qAlpha( self.pixel ) != 0) - - def drawShape(self,p): - p.drawPixmap( self.x(), self.y(), self.pixmap ) - - -class NodeItem(QCanvasEllipse): - def __init__(self,canvas): - QCanvasEllipse.__init__(self,6,6,canvas) - self.__inList=[] - self.__outList=[] - self.setPen(QPen(Qt.black)) - self.setBrush(QBrush(Qt.red)) - self.setZ(128) - - def addInEdge(self,edge): - self.__inList.append(edge) - - def addOutEdge(self,edge): - self.__outList.append(edge) - - def moveBy(self,dx,dy): - QCanvasEllipse.moveBy(self,dx,dy) - for each_edge in self.__inList: - each_edge.setToPoint( int(self.x()), int(self.y()) ) - for each_edge in self.__outList: - each_edge.setFromPoint( int(self.x()), int(self.y()) ) - -class EdgeItem(QCanvasLine): - __c=0 - def __init__(self,fromNode, toNode,canvas): - QCanvasLine.__init__(self,canvas) - self.__c=self.__c+1 - self.setPen(QPen(Qt.black)) - self.setBrush(QBrush(Qt.red)) - fromNode.addOutEdge(self) - toNode.addInEdge(self) - self.setPoints(int(fromNode.x()),int(fromNode.y()), int(toNode.x()), int(toNode.y())) - self.setZ(127) - - def setFromPoint(self,x,y): - self.setPoints(x,y,self.endPoint().x(),self.endPoint().y()) - - def setToPoint(self,x,y): - self.setPoints(self.startPoint().x(), self.startPoint().y(),x,y) - - def count(self): - return self.__c - - def moveBy(self,dx,dy): - pass - - -class FigureEditor(QCanvasView): - def __init__(self,c,parent,name,f): - QCanvasView.__init__(self,c,parent,name,f) - self.__moving=0 - self.__moving_start= 0 - - def contentsMousePressEvent(self,e): # QMouseEvent e - point = self.inverseWorldMatrix().map(e.pos()) - ilist = self.canvas().collisions(point) #QCanvasItemList ilist - for each_item in ilist: - if each_item.rtti()==984376: - if not each_item.hit(point): - continue - self.__moving=each_item - self.__moving_start=point - return - self.__moving=0 - - def clear(self): - ilist = self.canvas().allItems() - for each_item in ilist: - if each_item: - each_item.setCanvas(None) - del each_item - self.canvas().update() - - def contentsMouseMoveEvent(self,e): - if self.__moving : - point = self.inverseWorldMatrix().map(e.pos()); - self.__moving.moveBy(point.x() - self.__moving_start.x(),point.y() - self.__moving_start.y()) - self.__moving_start = point - self.canvas().update() - - -class BouncyLogo(QCanvasSprite): - def __init__(self,canvas): - # Make sure the logo exists. - global bouncy_logo - if bouncy_logo is None: - bouncy_logo=QCanvasPixmapArray("qt-trans.xpm") - - QCanvasSprite.__init__(self,None,canvas) - self.setSequence(bouncy_logo) - self.setAnimated(True) - self.initPos() - self.logo_rtti=1234 - - def rtti(self): - return self.logo_rtti - - def initPos(self): - self.initSpeed() - trial=1000 - self.move(random.random()%self.canvas().width(), random.random()%self.canvas().height()) - self.advance(0) - trial=trial-1 - while (trial & (self.xVelocity()==0 )& (self.yVelocity()==0)): - elf.move(random.random()%self.canvas().width(), random.random()%self.canvas().height()) - self.advance(0) - trial=trial-1 - - def initSpeed(self): - speed=4.0 - d=random.random()%1024/1024.0 - self.setVelocity(d*speed*2-speed, (1-d)*speed*2-speed) - - def advance(self,stage): - if stage==0: - vx=self.xVelocity() - vy=self.yVelocity() - if (vx==0.0) & (vy==0.0): - self.initSpeed() - vx=self.xVelocity() - vy=self.yVelocity() - - nx=self.x()+vx - ny=self.y()+vy - - if (nx<0) | (nx >= self.canvas().width()): - vx=-vx - if (ny<0) | (ny >= self.canvas().height()): - vy=-vy - - for bounce in [0,1,2,3]: - l=self.collisions(False) - for hit in l: - if (hit.rtti()==1234) & (hit.collidesWith(self)): - if bounce==0: - vx=-vx - elif bounce==1: - vy=-vy - vx=-vx - elif bounce==2: - vx=-vx - elif bounce==3: - vx=0 - vy=0 - self.setVelocity(vx,vy) - break - - if (self.x()+vx < 0) | (self.x()+vx >= self.canvas().width()): - vx=0 - if (self.y()+vy < 0) | (self.y()+vy >= self.canvas().height()): - vy=0 - - self.setVelocity(vx,vy) - elif stage==1: - QCanvasItem.advance(self,stage) - - -class Main (QMainWindow): - def __init__(self,c,parent,name,f=0): - QMainWindow.__init__(self,parent,name,f) - self.editor=FigureEditor(c,self,name,f) - self.printer=QPrinter() - self.dbf_id=0 - self.canvas=c - self.mainCount=0 - file=QPopupMenu(self.menuBar()) - file.insertItem("&Fill canvas", self.init, Qt.CTRL+Qt.Key_F) - file.insertItem("&Erase canvas", self.clear, Qt.CTRL+Qt.Key_E) - file.insertItem("&New view", self.newView, Qt.CTRL+Qt.Key_N) - file.insertSeparator(); - file.insertItem("&Print", self._print, Qt.CTRL+Qt.Key_P) - file.insertSeparator() - file.insertItem("E&xit", qApp, SLOT("quit()"), Qt.CTRL+Qt.Key_Q) - self.menuBar().insertItem("&File", file) - - edit = QPopupMenu(self.menuBar() ) - edit.insertItem("Add &Circle", self.addCircle, Qt.ALT+Qt.Key_C) - edit.insertItem("Add &Hexagon", self.addHexagon, Qt.ALT+Qt.Key_H) - edit.insertItem("Add &Polygon", self.addPolygon, Qt.ALT+Qt.Key_P) - edit.insertItem("Add Spl&ine", self.addSpline, Qt.ALT+Qt.Key_I) - edit.insertItem("Add &Text", self.addText, Qt.ALT+Qt.Key_T) - edit.insertItem("Add &Line", self.addLine, Qt.ALT+Qt.Key_L) - edit.insertItem("Add &Rectangle", self.addRectangle, Qt.ALT+Qt.Key_R) - edit.insertItem("Add &Sprite", self.addSprite, Qt.ALT+Qt.Key_S) - edit.insertItem("Create &Mesh", self.addMesh, Qt.ALT+Qt.Key_M ) - edit.insertItem("Add &Alpha-blended image", self.addButterfly, Qt.ALT+Qt.Key_A) - self.menuBar().insertItem("&Edit", edit) - - view = QPopupMenu(self.menuBar() ); - view.insertItem("&Enlarge", self.enlarge, Qt.SHIFT+Qt.CTRL+Qt.Key_Plus); - view.insertItem("Shr&ink", self.shrink, Qt.SHIFT+Qt.CTRL+Qt.Key_Minus); - view.insertSeparator(); - view.insertItem("&Rotate clockwise", self.rotateClockwise, Qt.CTRL+Qt.Key_PageDown); - view.insertItem("Rotate &counterclockwise", self.rotateCounterClockwise, Qt.CTRL+Qt.Key_PageUp); - view.insertItem("&Zoom in", self.zoomIn, Qt.CTRL+Qt.Key_Plus); - view.insertItem("Zoom &out", self.zoomOut, Qt.CTRL+Qt.Key_Minus); - view.insertItem("Translate left", self.moveL, Qt.CTRL+Qt.Key_Left); - view.insertItem("Translate right", self.moveR, Qt.CTRL+Qt.Key_Right); - view.insertItem("Translate up", self.moveU, Qt.CTRL+Qt.Key_Up); - view.insertItem("Translate down", self.moveD, Qt.CTRL+Qt.Key_Down); - view.insertItem("&Mirror", self.mirror, Qt.CTRL+Qt.Key_Home); - self.menuBar().insertItem("&View", view) - - self.options = QPopupMenu( self.menuBar() ); - self.dbf_id = self.options.insertItem("Double buffer", self.toggleDoubleBuffer) - self.options.setItemChecked(self.dbf_id, True) - self.menuBar().insertItem("&Options",self.options) - - self.menuBar().insertSeparator(); - - help = QPopupMenu( self.menuBar() ) - help.insertItem("&About", self.help, Qt.Key_F1) - help.insertItem("&About Qt", self.aboutQt, Qt.Key_F2) - help.setItemChecked(self.dbf_id, True) - self.menuBar().insertItem("&Help",help) - - self.statusBar() - - self.setCentralWidget(self.editor) - - self.printer = 0 - self.tb=0 - self.tp=0 - - self.init() - - def init(self): - self.clear() - r=24 - r=r+1 - random.seed(r) - for i in range(self.canvas.width()/56): - self.addButterfly() - for j in range(self.canvas.width()/85): - self.addHexagon() - for k in range(self.canvas.width()/128): - self.addLogo() - - def newView(self): - m=Main(self.canvas,None,"new windiw",Qt.WDestructiveClose) - qApp.setMainWidget(m) - m.show() - qApp.setMainWidget(None) - views.append(m) - - def clear(self): - self.editor.clear() - - def help(self): - QMessageBox.information(None, "PyQt Canvas Example", - "

The PyQt QCanvas classes example


" - "

This is the PyQt implementation of " - "Qt canvas example.

by Sadi Kose " - "(kose@nuvox.net)
" - "
    " - "
  • Press ALT-S for some sprites." - "
  • Press ALT-C for some circles." - "
  • Press ALT-L for some lines." - "
  • Drag the objects around." - "
  • Read the code!" - "
","Dismiss") - - def aboutQt(self): - QMessageBox.aboutQt(self,"PyQt Canvas Example") - - def toggleDoubleBuffer(self): - s = not self.options.isItemChecked(self.dbf_id) - self.options.setItemChecked(self.dbf_id,s) - self.canvas.setDoubleBuffering(s) - - def enlarge(self): - self.canvas.resize(self.canvas.width()*4/3, self.canvas.height()*4/3) - - def shrink(self): - self.canvas.resize(self.canvas.width()*3/4, self.canvas.height()*3/4) - - def rotateClockwise(self): - m = self.editor.worldMatrix() - m.rotate( 22.5 ) - self.editor.setWorldMatrix( m ) - - def rotateCounterClockwise(self): - m = self.editor.worldMatrix() - m.rotate( -22.5 ) - self.editor.setWorldMatrix( m ) - - def zoomIn(self): - m = self.editor.worldMatrix() - m.scale( 2.0, 2.0 ) - self.editor.setWorldMatrix( m ) - - def zoomOut(self): - m = self.editor.worldMatrix() - m.scale( 0.5, 0.5 ) - self.editor.setWorldMatrix( m ) - - def mirror(self): - m = self.editor.worldMatrix() - m.scale( -1, 1 ) - self.editor.setWorldMatrix( m ) - - def moveL(self): - m = self.editor.worldMatrix() - m.translate( -16, 0 ) - self.editor.setWorldMatrix( m ) - - def moveR(self): - m = self.editor.worldMatrix() - m.translate( +16, 0 ) - self.editor.setWorldMatrix( m ) - - def moveU(self): - m = self.editor.worldMatrix() - m.translate( 0, -16 ) - self.editor.setWorldMatrix( m ) - - def moveD(self): - m = self.editor.worldMatrix(); - m.translate( 0, +16 ); - self.editor.setWorldMatrix( m ) - - def _print(self): - if not self.printer: - self.printer = QPrinter() - if self.printer.setup(self) : - pp=QPainter(self.printer) - self.canvas.drawArea(QRect(0,0,self.canvas.width(),self.canvas.height()),pp,False) - - def addSprite(self): - i = BouncyLogo(self.canvas) - i.setZ(256*random.random()%256); - i.show(); - - def addButterfly(self): - if butterfly_fn.isEmpty(): - return - if not butterflyimg: - butterflyimg.append(QImage()) - butterflyimg[0].load(butterfly_fn) - butterflyimg.append(QImage()) - butterflyimg[1] = butterflyimg[0].smoothScale( int(butterflyimg[0].width()*0.75), - int(butterflyimg[0].height()*0.75) ) - butterflyimg.append(QImage()) - butterflyimg[2] = butterflyimg[0].smoothScale( int(butterflyimg[0].width()*0.5), - int(butterflyimg[0].height()*0.5) ) - butterflyimg.append(QImage()) - butterflyimg[3] = butterflyimg[0].smoothScale( int(butterflyimg[0].width()*0.25), - int(butterflyimg[0].height()*0.25) ) - - i = ImageItem(butterflyimg[int(4*random.random()%4)],self.canvas) - i.move((self.canvas.width()-butterflyimg[0].width())*random.random()%(self.canvas.width()-butterflyimg[0].width()), - (self.canvas.height()-butterflyimg[0].height())*random.random()%(self.canvas.height()-butterflyimg[0].height())) - i.setZ(256*random.random()%256+250); - i.show() - - def addLogo(self): - if logo_fn.isEmpty(): - return; - if not logoimg: - logoimg.append(QImage()) - logoimg[0].load( logo_fn ) - logoimg.append(QImage()) - logoimg[1] = logoimg[0].smoothScale( int(logoimg[0].width()*0.75), - int(logoimg[0].height()*0.75) ) - logoimg.append(QImage()) - logoimg[2] = logoimg[0].smoothScale( int(logoimg[0].width()*0.5), - int(logoimg[0].height()*0.5) ) - logoimg.append(QImage()) - logoimg[3] = logoimg[0].smoothScale( int(logoimg[0].width()*0.25), - int(logoimg[0].height()*0.25) ); - - i = ImageItem(logoimg[int(4*random.random()%4)],self.canvas) - i.move((self.canvas.width()-logoimg[0].width())*random.random()%(self.canvas.width()-logoimg[0].width()), - (self.canvas.height()-logoimg[0].width())*random.random()%(self.canvas.height()-logoimg[0].width())) - i.setZ(256*random.random()%256+256) - i.show() - - def addCircle(self): - i = QCanvasEllipse(50,50,self.canvas) - i.setBrush( QBrush(QColor(256*random.random()%32*8,256*random.random()%32*8,256*random.random()%32*8) )) - i.move(self.canvas.width()*random.random()%self.canvas.width(),self.canvas.width()*random.random()%self.canvas.height()) - i.setZ(256*random.random()%256) - i.show() - - def addHexagon(self): - i = QCanvasPolygon(self.canvas) - size = canvas.width() / 25 - pa=QPointArray(6) - pa.setPoint(0,QPoint(2*size,0)) - pa.setPoint(1,QPoint(size,-size*173/100)) - pa.setPoint(2,QPoint(-size,-size*173/100)) - pa.setPoint(3,QPoint(-2*size,0)) - pa.setPoint(4,QPoint(-size,size*173/100)) - pa.setPoint(5,QPoint(size,size*173/100)) - i.setPoints(pa) - i.setBrush( QBrush(QColor(256*random.random()%32*8,256*random.random()%32*8,256*random.random()%32*8) )) - i.move(self.canvas.width()*random.random()%self.canvas.width(),self.canvas.width()*random.random()%self.canvas.height()) - i.setZ(256*random.random()%256) - i.show() - - def addPolygon(self): - i = QCanvasPolygon(self.canvas) - size = self.canvas.width()/2 - pa=QPointArray(6) - pa.setPoint(0, QPoint(0,0)) - pa.setPoint(1, QPoint(size,size/5)) - pa.setPoint(2, QPoint(size*4/5,size)) - pa.setPoint(3, QPoint(size/6,size*5/4)) - pa.setPoint(4, QPoint(size*3/4,size*3/4)) - pa.setPoint(5, QPoint(size*3/4,size/4)) - - i.setPoints(pa) - i.setBrush(QBrush( QColor(256*random.random()%32*8,256*random.random()%32*8,256*random.random()%32*8)) ) - i.move(self.canvas.width()*random.random()%self.canvas.width(),self.canvas.width()*random.random()%self.canvas.height()) - i.setZ(256*random.random()%256) - i.show() - - def addSpline(self): - i = QCanvasSpline(self.canvas) - size = canvas.width()/6 - pa=QPointArray(12) - pa.setPoint(0,QPoint(0,0)) - pa.setPoint(1,QPoint(size/2,0)) - pa.setPoint(2,QPoint(size,size/2)) - pa.setPoint(3,QPoint(size,size)) - pa.setPoint(4,QPoint(size,size*3/2)) - pa.setPoint(5,QPoint(size/2,size*2)) - pa.setPoint(6,QPoint(0,size*2)) - pa.setPoint(7,QPoint(-size/2,size*2)) - pa.setPoint(8,QPoint(size/4,size*3/2)) - pa.setPoint(9,QPoint(0,size)) - pa.setPoint(10,QPoint(-size/4,size/2)) - pa.setPoint(11,QPoint(-size/2,0)) - i.setControlPoints(pa) - i.setBrush( QBrush(QColor(256*random.random()%32*8,256*random.random()%32*8,256*random.random()%32*8) )) - i.move(self.canvas.width()*random.random()%self.canvas.width(),self.canvas.width()*random.random()%self.canvas.height()) - i.setZ(256*random.random()%256) - i.show() - - def addText(self): - i = QCanvasText(self.canvas) - i.setText("QCanvasText") - i.move(self.canvas.width()*random.random()%self.canvas.width(),self.canvas.width()*random.random()%self.canvas.height()) - i.setZ(256*random.random()%256) - i.show() - - def addLine(self): - i = QCanvasLine(self.canvas); - i.setPoints( self.canvas.width()*random.random()%self.canvas.width(), self.canvas.width()*random.random()%self.canvas.height(), - self.canvas.width()*random.random()%self.canvas.width(), self.canvas.width()*random.random()%self.canvas.height() ) - i.setPen( QPen(QColor(256*random.random()%32*8,256*random.random()%32*8,256*random.random()%32*8), 6) ) - i.setZ(256*random.random()%256) - i.show() - - def ternary(self,exp,x,y): - if exp: - return x - else: - return y - - def addMesh(self): - x0 = 0; - y0 = 0; - - if not self.tb: - self.tb = QBrush( Qt.red ) - if not self.tp: - self.tp = QPen( Qt.black ) - - nodecount = 0; - - w = self.canvas.width() - h = self.canvas.height() - - dist = 30 - rows = h / dist - cols = w / dist - - #ifndef QT_NO_PROGRESSDIALOG - #progress=QProgressDialog( "Creating mesh...", "Abort", rows, - # self, "progress", True ); - #endif - - lastRow=[] - for c in range(cols): - lastRow.append(NodeItem(self.canvas)) - for j in range(rows): - n = self.ternary(j%2 , cols-1 , cols) - prev = 0; - for i in range(n): - el = NodeItem( self.canvas ) - nodecount=nodecount+1 - r = 20*20*random.random() - xrand = r %20 - yrand = (r/20) %20 - el.move( xrand + x0 + i*dist + self.ternary(j%2 , dist/2 , 0 ), - yrand + y0 + j*dist ); - - if j > 0 : - if i < cols-1 : - EdgeItem( lastRow[i], el, self.canvas ).show() - if j%2 : - EdgeItem( lastRow[i+1], el, self.canvas ).show() - elif i > 0 : - EdgeItem( lastRow[i-1], el, self.canvas ).show() - if prev: - EdgeItem( prev, el, self.canvas ).show() - - if i > 0 : - lastRow[i-1] = prev - prev = el - el.show() - - lastRow[n-1]=prev - #ifndef QT_NO_PROGRESSDIALOG - #progress.setProgress( j ) - #if progress.wasCancelled() : - # break - #endif - - #ifndef QT_NO_PROGRESSDIALOG - #progress.setProgress( rows ) - #endif - #// qDebug( "%d nodes, %d edges", nodecount, EdgeItem::count() ); - - def addRectangle(self): - i = QCanvasRectangle( self.canvas.width()*random.random()%self.canvas.width(), - self.canvas.width()*random.random()%self.canvas.height(), - self.canvas.width()/5,self.canvas.width()/5,self.canvas) - z = 256*random.random()%256 - i.setBrush( QBrush(QColor(z,z,z) )) - i.setPen( QPen(QColor(self.canvas.width()*random.random()%32*8, - self.canvas.width()*random.random()%32*8, - self.canvas.width()*random.random()%32*8), 6) ) - i.setZ(z) - i.show() - - -if __name__=='__main__': - app=QApplication(sys.argv) - - if len(sys.argv) > 1: - butterfly_fn=QString(sys.argv[1]) - else: - butterfly_fn=QString("butterfly.png") - - if len(sys.argv) > 2: - logo_fn = QString(sys.argv[2]) - else: - logo_fn=QString("qtlogo.png") - - canvas=QCanvas(800,600) - canvas.setAdvancePeriod(30) - m=Main(canvas,None,"pyqt canvas example") - m.resize(m.sizeHint()) - - qApp.setMainWidget(m) - m.setCaption("Qt Canvas Example ported to PyQt") - if QApplication.desktop().width() > m.width() + 10 and QApplication.desktop().height() > m.height() + 30: - m.show() - else: - m.showMaximized() - - m.show(); - #// m.help(); - qApp.setMainWidget(None); - - QObject.connect( qApp, SIGNAL("lastWindowClosed()"), qApp, SLOT("quit()") ) - - app.exec_loop() - - # We need to explicitly delete the canvas now (and, therefore, the main - # window beforehand) to make sure that the sprite logo doesn't get garbage - # collected first. - views = [] - del m - del canvas diff --git a/python/pyqt/examples3/canvas/qt-trans.xpm b/python/pyqt/examples3/canvas/qt-trans.xpm deleted file mode 100644 index 225f684f..00000000 --- a/python/pyqt/examples3/canvas/qt-trans.xpm +++ /dev/null @@ -1,54 +0,0 @@ -/* XPM */ -static char *qtlogo_xpm[] = { -/* width height ncolors chars_per_pixel */ -"54 34 13 1", -/* colors */ -" c #000000", -". c #999999", -"X c #333366", -"o c #6666CC", -"O c #333333", -"@ c #666699", -"# c #000066", -"$ c #666666", -"% c #3333CC", -"& c #000033", -"* c #9999CC", -"= c #333399", -"+ c None", -/* pixels */ -"+++++++++++++++++++.$OOO$.++++++++++++++++++++++++++++", -"+++++++++++++++++$ O.+++++++++++++++++++++++++", -"+++++++++++++++.O $++++++++++++++++++++++++", -"++++++++++++++. $.++.$ O+++++++++++++++++++++++", -"+++++++++++++. O.+++++++$ O++++++++++++++++++++++", -"+++++++++++++O ++++++++++$ $+++++++++++++++++++++", -"++++++++++++$ .+++++++++++O .++++++++++++++++++++", -"+++++++++++. O+++++++++++++ O++++++.+++++++++++++", -"+++++++++++$ .+++++++++++++$ .+++.O +++++++++++++", -"+++++++++++ +++++++++++++++ O+++. +++++++++++++", -"++++++++++. &Xoooo*++++++++++$ +++. +++++++++++++", -"++++++++++@=%%%%%%%%%%*+++++++. .++. +++++++++++++", -"+++++++**oooooo**++*o%%%%o+++++ $++O +++++++++++++", -"+++++*****$OOX@oooo*++*%%%%%*++O $+. OOO$++++++++*", -"++..+.++....$O$+*ooooo*+*o%%%%%O O+$ $$O.++++++**+", -"***+*+++++$$....+++*oooo**+*o%%# O++O ++++++***o*++", -"*+++++++++O $.....++**oooo**+*X &o*O ++++*ooo*++++", -"++++++++++$ O++.....++**oooo*X &%%& ..*o%%*++++++", -"++++++++++$ ++++.....+++**ooO $*o& @oo*+++++++++", -"++++++++++. .++++++.....+++*O Xo*O .++++++++++++", -"+++++++++++ O+++++++++...... .++O +++++++++++++", -"+++++++++++O +++.$$$.++++++. O+++O +++++++++++++", -"+++++++++++. $$OO O.++++O .+++O +++++++++++++", -"++++++++++++O .+++.O $++. O++++O +++++++++++++", -"++++++++++++. O+++++O $+O +++++O +++++++++++++", -"+++++++++++++. O+++++O O .+++++O .++++++++++++", -"++++++++++++++$ .++++O .++++.+$ O+.$.++++++++", -"+++++++++++++++. O$$O .+++++... +++++++++", -"+++++++++++++++++$ O+++++$$+.O O$.+++++++++", -"+++++++++++++++++++$OO O$.O O.++. .++++++++++++++++", -"+++++++++++++++++++++++++++. OO .++++++++++++++++", -"++++++++++++++++++++++++++++. O+++++++++++++++++", -"+++++++++++++++++++++++++++++. .+++++++++++++++++", -"++++++++++++++++++++++++++++++.O O.++++++++++++++++++" -}; diff --git a/python/pyqt/examples3/canvas/qtlogo.png b/python/pyqt/examples3/canvas/qtlogo.png deleted file mode 100644 index a48b1a1a..00000000 Binary files a/python/pyqt/examples3/canvas/qtlogo.png and /dev/null differ diff --git a/python/pyqt/examples3/checklists.py b/python/pyqt/examples3/checklists.py deleted file mode 100755 index 12a3cdb9..00000000 --- a/python/pyqt/examples3/checklists.py +++ /dev/null @@ -1,136 +0,0 @@ -#!/usr/bin/env python - -# vim:tabstop=2:shiftwidth=2:expandtab:cinoptions=(s,U1,m1 -# Copyright (C) 2002 Oleksandr Yakovlyev (yshurik) - -import sys -from qt import * - -TRUE = 1 -FALSE = 0 - -class CheckLists(QWidget): - def __init__(self, *args): - apply( QWidget.__init__, (self, ) + args ) - - lay = QHBoxLayout(self) - lay.setMargin(5) - - vbox1 = QVBoxLayout(lay) - vbox1.setMargin(5) - - # First child: a Label - vbox1.addWidget(QLabel("Check some items!", self)) - - # Second child: the ListView - self.lv1 = QListView(self) - vbox1.addWidget(self.lv1) - self.lv1.addColumn("Items") - self.lv1.setRootIsDecorated(TRUE) - - # create a list with 4 ListViewItems which will be parent items of other ListViewItems - - parentList = [] - - parentList.append( QListViewItem( self.lv1, "Parent Item 1" ) ) - parentList.append( QListViewItem( self.lv1, "Parent Item 2" ) ) - parentList.append( QListViewItem( self.lv1, "Parent Item 3" ) ) - parentList.append( QListViewItem( self.lv1, "Parent Item 4" ) ) - - num = 0 - - self.childList1 = [] - # go through the list of parent items... - for i in range(4): - it = parentList[i] - it.setOpen( TRUE ) - - # ...and create 5 checkable child ListViewItems for each parent item - for j in range(5): - ci = QCheckListItem( it, QString("%1. Child of Parent %2").arg( j ).arg( i ), QCheckListItem.CheckBox ) - self.childList1.append(ci) - - # Create another widget for layouting - tmp1 = QVBoxLayout( lay ) - tmp1.setMargin( 5 ) - - # create a pushbutton - copy1 = QPushButton( " -> ", self ) - tmp1.addWidget( copy1 ) - copy1.setMaximumWidth( copy1.sizeHint().width() ); - # connect the SIGNAL clicked() of the pushbutton with the SLOT copy1to2() - self.connect( copy1, SIGNAL('clicked()'), self.copy1to2 ) - - # another widget for layouting - vbox2 = QVBoxLayout( lay ) - vbox2.setMargin( 5 ) - - # and another label - vbox2.addWidget( QLabel( "Check one item!", self ) ) - - # create the second listview - self.lv2 = QListView( self ) - vbox2.addWidget( self.lv2 ) - self.lv2.addColumn( "Items" ) - self.lv2.setRootIsDecorated( TRUE ) - - # another widget needed for layouting only - tmp2 = QVBoxLayout( lay ) - tmp2.setMargin( 5 ) - - # create another pushbutton... - copy2 = QPushButton( " -> ", self ) - lay.addWidget( copy2 ) - copy2.setMaximumWidth( copy2.sizeHint().width() ) - # ...and connect its clicked() SIGNAL to the copy2to3() SLOT - self.connect( copy2, SIGNAL('clicked()'), self.copy2to3 ) - - tmp3 = QVBoxLayout( lay ) - tmp3.setMargin( 5 ) - - # and create a label which will be at the right of the window - self.label = QLabel( "No Item yet...", self ) - tmp3.addWidget( self.label ) - - def copy1to2(self): - self.lv2.clear() - - # Insert first a controller Item into the second ListView. Always if Radio-ListViewItems - # are inserted into a Listview, the parent item of these MUST be a controller Item! - item = QCheckListItem( self.lv2, "Controller", QCheckListItem.Controller ) - item.setOpen( TRUE ) - - self.listChild2 = [] - for it in self.childList1: - # ...check state of childs, and... - if it.parent() != None: - # ...if the item is checked... - if it.isOn(): - # ...insert a Radio-ListViewItem with the same text into the second ListView - ri = QCheckListItem(item , it.text(0), QCheckListItem.RadioButton) - self.listChild2.append(ri) - - if item.firstChild() != None: - item.firstChild().setOn(TRUE) - - def copy2to3(self): - self.label.setText( "No Item checked" ) - - # iterate through the second ListView... - for it in self.listChild2: - # ...check state of childs, and... - if it.parent() != None: - # ...if the item is checked... - if it.isOn(): - # ...set the text of the item to the label - self.label.setText( it.text( 0 ) ) - -a = QApplication(sys.argv) - -checkLists = CheckLists() -checkLists.resize(700, 400) -checkLists.setCaption("PyQt example - CheckLists") - -a.setMainWidget(checkLists) -checkLists.show() -a.exec_loop() diff --git a/python/pyqt/examples3/cursor.py b/python/pyqt/examples3/cursor.py deleted file mode 100755 index f530c6a1..00000000 --- a/python/pyqt/examples3/cursor.py +++ /dev/null @@ -1,114 +0,0 @@ -#!/usr/bin/env python - -"""$Id$ -** -** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. -** -** This file is part of an example program for Qt. This example -** program may be used, distributed and modified without limitation. -** -***************************************************************************""" - -import sys -from qt import * - -# cb_bits and cm_bits were generated by X bitmap program. - -cb_width = 32 -cb_height = 32 - -# cursor bitmap -cb_bits = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8\x0f\x00" \ - "\x00\x06\x30\x00\x80\x01\xc0\x00\x40\x00\x00\x01" \ - "\x20\x00\x00\x02\x10\x00\x00\x04\x08\x3e\x3e\x08" \ - "\x08\x03\xe0\x08\xc4\x00\x00\x11\x04\x1e\x78\x10" \ - "\x02\x0c\x30\x20\x02\x40\x00\x20\x02\x40\x00\x20" \ - "\x02\x40\x00\x20\x02\x20\x04\x20\x02\x20\x04\x20" \ - "\x02\x10\x08\x20\x02\x08\x08\x20\x02\xf0\x07\x20" \ - "\x04\x00\x00\x10\x04\x00\x00\x10\x08\x00\xc0\x08" \ - "\x08\x3c\x30\x08\x10\xe6\x19\x04\x20\x00\x0f\x02" \ - "\x40\x00\x00\x01\x80\x01\xc0\x00\x00\x06\x30\x00" \ - "\x00\xf8\x0f\x00\x00\x00\x00\x00" - -cm_width = 32 -cm_height = 32 - -# cursor bitmap mask -cm_bits = "\x00\x00\x00\x00\x00\xf8\x1f\x00\x00\xfe\x3f\x00" \ - "\x80\x07\xf0\x00\xc0\x01\xc0\x01\x60\x00\x00\x03" \ - "\x30\x00\x00\x06\x18\x00\x00\x0c\x0c\x3e\x3e\x18" \ - "\x0e\x03\xe0\x18\xc6\x00\x00\x31\x07\x1e\x78\x30" \ - "\x03\x0c\x30\x60\x03\x40\x00\x60\x03\x40\x00\x60" \ - "\x03\x40\x00\x60\x03\x20\x04\x60\x03\x20\x04\x60" \ - "\x03\x10\x08\x60\x03\x08\x08\x60\x03\xf0\x07\x60" \ - "\x06\x00\x00\x30\x06\x00\x00\x30\x0c\x00\xc0\x18" \ - "\x0c\x3c\x30\x18\x18\xe6\x19\x0c\x30\x00\x0f\x06" \ - "\x60\x00\x00\x03\xc0\x01\xc0\x01\x80\x07\xf0\x00" \ - "\x00\xfe\x3f\x00\x00\xf8\x0f\x00" - -# The CursorView contains many labels with different cursors. -class CursorView( QWidget ): # cursor view - def __init__( self ): - QWidget.__init__( self ) - # Constructs a cursor view. -#enum CursorShape { ArrowCursor, UpArrowCursor, CrossCursor, WaitCursor, IbeamCursor, SizeVerCursor, SizeHorCursor, SizeBDiagCursor, SizeFDiagCursor, SizeAllCursor, BlankCursor, SplitVCursor, SplitHCursor, PointingHandCursor, ForbiddenCursor, WhatsThisCursor, LastCursor = WhatsThisCursor, BitmapCursor = 24 } - - shape = [ - "ArrowCursor", "UpArrowCursor", "CrossCursor", - "WaitCursor", "IbeamCursor", "SizeVerCursor", - "SizeHorCursor", "SizeBDiagCursor", "SizeFDiagCursor", - "SizeAllCursor", "BlankCursor", "SplitVCursor", - "SplitHCursor", "PointingHandCursor", "ForbiddenCursor", - "WhatsThisCursor" - ] - name = [ - "standard arrow cursor", "upwards arrow", - "crosshair", "hourglass/watch", - "ibeam/text entry", "vertical resize", - "horizontal resize", "diagonal resize (/)", - "diagonal resize (\)", "all directions resize", - "blank/invisible cursor", "vertical splitting", - "horziontal splitting", "a pointing hand", - "a slashed circle", "an arrow with a question mark" - ] - - self.setCaption( "CursorView" ) # set window caption - - grid = QGridLayout( self, 5, 4, 20 ) - - i=0 - for y in range( 0, 4, 1 ) : # create the small labels - for x in range( 0, 4, 1 ) : - label = QLabel( self ) - label.setCursor( QCursor(i) ) - label.setText( shape[i] ); - label.setAlignment( self.AlignCenter ) - label.setFrameStyle( QFrame.Box | QFrame.Raised ) - grid.addWidget( label, x, y ) - QToolTip.add( label, name[i] ) - i += 1 - - cb = QBitmap( cb_width, cb_height, cb_bits, True ) - cm = QBitmap( cm_width, cm_height, cm_bits, True ) - custom = QCursor( cb, cm ) # create bitmap cursor - - label = QLabel( self ) # create the big label - label.setCursor( custom ) - label.setText( "Custom bitmap cursor" ) - QToolTip.add( label, "custom bitmap cursor" ) - label.setAlignment( self.AlignCenter ) - label.setFrameStyle( QFrame.Box | QFrame.Sunken ) - grid.addMultiCellWidget( label, 4, 4, 0, 3 ) - -# Create and display a CursorView. -def main( args ): - a = QApplication(sys.argv) # application object - v = CursorView() # cursor view - v.setCaption( "Qt Example - Cursors" ) - a.setMainWidget( v ) - v.show() - - a.exec_loop() - -if __name__=="__main__": - main(sys.argv) diff --git a/python/pyqt/examples3/dclock.py b/python/pyqt/examples3/dclock.py deleted file mode 100755 index 5382d4fa..00000000 --- a/python/pyqt/examples3/dclock.py +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env python - -# A port to PyQt of the dclock example from Qt v2.x. - - -import sys, string -from qt import * - - -class DigitalClock(QLCDNumber): - def __init__(self, parent=None, name=None): - QLCDNumber.__init__(self, parent, name) - self.showingColon = 0 - self.setFrameStyle(QFrame.Panel | QFrame.Raised) - self.setLineWidth(2) - self.showTime() - self.normalTimer = self.startTimer(500) - self.showDateTimer = -1 - - def timerEvent(self, e): - if e.timerId() == self.showDateTimer: - self.stopDate() - else: - if self.showDateTimer == -1: - self.showTime() - - def mousePressEvent(self, e): - if e.button() == Qt.LeftButton: - self.showDate() - - def showDate(self): - if self.showDateTimer != -1: - return - d = QDate.currentDate() - self.display('%2d %2d' % (d.month(), d.day())) - self.showDateTimer = self.startTimer(2000) - - def stopDate(self): - self.killTimer(self.showDateTimer) - self.showDateTimer = -1 - self.showTime() - - def showTime(self): - self.showingColon = not self.showingColon - s = list(str(QTime.currentTime().toString())[:5]) #.left(5) - if not self.showingColon: - s[2] = ' ' - if s[0] == '0': - s[0] = ' ' - s = string.join(s,'') - self.display(s) - -a = QApplication(sys.argv) -clock = DigitalClock() -clock.resize(170,80) -a.setMainWidget(clock) -clock.show() -a.exec_loop() diff --git a/python/pyqt/examples3/desktop.py b/python/pyqt/examples3/desktop.py deleted file mode 100755 index 7036248d..00000000 --- a/python/pyqt/examples3/desktop.py +++ /dev/null @@ -1,230 +0,0 @@ -#!/usr/bin/env python - -import sys -from qt import * - -seed = 0.353535353535 -KINDA_RAND_MAX = 32767 - -def kindaRand(): - global seed - seed = seed * 147 - seed = seed - int(seed) - return int(seed*(KINDA_RAND_MAX + 1)) - -velmax = 15 -velmin = 4 - -def velocity(i): - if i == 1 or i == 2: - i = (kindaRand()&0x7fff % velmax)/3 + velmin - else: - i = (kindaRand()&0x7fff % velmax) + velmin - return i - -maxpoints = 5 -maxcurves = 8 - -def poly(): - d = QApplication.desktop() - d.setEraseColor(Qt.white) - xvel = [ 0 ] * maxpoints - yvel = [ 0 ] * maxpoints - head = 0 - tail = -maxcurves + 2 - a = [ QPointArray() ] * maxcurves - r = d.rect() - for i in range(maxcurves): - a[i].resize(maxpoints) - p = a[0] - for i in range(maxpoints): - p.setPoint(i, (kindaRand()&0x7fff) % r.width(), - (kindaRand()&0x7fff) % r.height() ) - xvel[i] = velocity(i) - yvel[i] = velocity(i) - - paint = QPainter() - paint.begin(d) - - for ntimes in range(2000): - paint.setBrush(QColor(kindaRand()%360,180,255, QColor.Hsv)) - paint.drawPolygon(a[head]) - tail = tail + 1 - if tail >= maxcurves: - tail = 0 - minx = r.left() - maxx = r.right() - miny = r.top() - maxy = r.bottom() - p = a[head] - head = head + 1 - if head >= maxcurves: - head = 0 - for i in range(maxpoints): - x, y = p.point(i) - x = x + xvel[i] - y = y + yvel[i] - if x >= maxx: - x = maxx - (x - maxx + 1) - xvel[i] = -velocity(i) - if x <= minx: - x = minx + (minx - x + 1) - xvel[i] = velocity(i) - if y >= maxy: - y = maxy - (y - maxy + 1) - yvel[i] = -velocity(i) - if y <= miny: - y = miny + (miny - y + 1) - yvel[i] = velocity(i) - a[head].setPoint(i, x, y) - paint.end() - -def rotate(): - w = 64 - h = 64 - image = QImage(w, h, 8, 128) - for i in range(128): - image.setColor(i, qRgb(i,0,0)) - for y in range(h): - for x in range(w): - image.setPixel(x,y,(x+y)%128) - - pm = QPixmap() - pm.convertFromImage(image) - pm.setOptimization(QPixmap.BestOptim) - - d = QApplication.desktop() - - for i in range(0,361,2): - m = QWMatrix() - m.rotate(i) - rpm = pm.xForm(m) - d.setErasePixmap(rpm) - d.update() - -def generateStone(pm, c1, c2, c3): - p = QPainter() - p1 = QPen(c1, 0) - p2 = QPen(c2, 0) - p3 = QPen(c3, 0) - - p.begin(pm) - for i in range(pm.width()): - for j in range(pm.height()): - r = kindaRand() - if r < KINDA_RAND_MAX / 3: - p.setPen(p1) - elif r < KINDA_RAND_MAX / 3 * 2: - p.setPen(p2) - else: - p.setPen(p3) - p.drawPoint(i, j) - p.end() - -def drawShadeText(p, x, y, text, topColor, bottomColor, sw=2): - if not p.isActive(): - return - - p.setPen(bottomColor) - p.drawText(x+sw, y+sw, text) - p.setPen(topColor) - p.drawText(x, y, text) - -class DesktopWidget(QWidget): - def __init__(self, s, parent=None, name=''): - QWidget.__init__(self, parent, name, Qt.WType_Desktop | Qt.WPaintDesktop) - self.text = s - self.pm = None - - def paintEvent(self, pe): - c1 = self.eraseColor() - c2 = c1.light(104) - c3 = c1.dark(106) - if not self.pm: - self.pm = QPixmap(64, 64) - generateStone(self.pm, c1, c2, c3) - self.setErasePixmap(self.pm) - self.update() - br = self.fontMetrics().boundingRect(self.text) - offscreen = QPixmap(br.width(), br.height()) - x = self.width()/2 - br.width()/2 - y = self.height()/2 - br.height()/2 - offscreen.fill(self, x, y) - p = QPainter() - p.begin(offscreen) - drawShadeText(p, -br.x(), -br.y(), self.text, c2, c3, 3) - p.end() - bitBlt(self, x, y, offscreen) - -def desktopWidget(s='Trolltech'): - t = DesktopWidget(s) - t.update() - qApp.exec_loop() - -def desktopText(s='Trolltech'): - border = 20 - - c1 = qApp.palette().normal().background() - c2 = c1.light(104) - c3 = c1.dark(106) - - pm = QPixmap(10, 10) - p = QPainter() - p.begin(pm) - r = p.fontMetrics().boundingRect(s) - p.end() - - appWidth = qApp.desktop().width() - appHeight = qApp.desktop().height() - if r.width() > appWidth - border*2: - r.setWidth(appWidth - border*2) - if r.height() > appHeight - border*2: - r.setHeight(appHeight - border*2) - - pm.resize(r.size().width()+border*2,r.size().height()+border*2) - generateStone(pm, c1, c2, c3) - p.begin(pm) - drawShadeText(p, -r.x()+border, -r.y()+border, s, c2, c3) - p.end() - - qApp.desktop().setErasePixmap(pm) - -a = QApplication(sys.argv) -if len(sys.argv) > 1: - f = QFont('charter', 96, QFont.Black) - f.setStyleHint(QFont.Times) - a.setFont(f) - -validOptions = 0 - -if len(sys.argv) == 2: - validOptions = 1 - if sys.argv[1] == '-poly': - poly() - elif sys.argv[1] == '-rotate': - rotate() - elif sys.argv[1] == '-troll': - desktopText() - elif sys.argv[1] == '-trollwidget': - desktopWidget() - else: - validOptions = 0 - -if len(sys.argv) == 3: - validOptions = 1 - if sys.argv[1] == '-shadetext': - desktopText(sys.argv[2]) - elif sys.argv[1] == '-shadewidget': - desktopWidget(sys.argv[2]) - else: - validOptions = 0 - -if not validOptions: - print """Usage: -\tdesktop -poly -\tdesktop -rotate -\tdesktop -troll -\tdesktop -trollwidget -\tdesktop -shadetext -\tdesktop -shadewidget """ - rotate() diff --git a/python/pyqt/examples3/dirview.py b/python/pyqt/examples3/dirview.py deleted file mode 100755 index 9a6f37b3..00000000 --- a/python/pyqt/examples3/dirview.py +++ /dev/null @@ -1,452 +0,0 @@ -#!/usr/bin/env python - -"""************************************************************************** -** $Id$ -** -** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. -** Some corrections by M. Biermaier (http://www.office-m.at) -** -** This file is part of an example program for Qt. This example -** program may be used, distributed and modified without limitation. -** -***************************************************************************""" - -import sys -from qt import * - -folder_closed_xpm = [ - "16 16 9 1", - "g c #808080", - "b c #c0c000", - "e c #c0c0c0", - "# c #000000", - "c c #ffff00", - ". c None", - "a c #585858", - "f c #a0a0a4", - "d c #ffffff", - "..###...........", - ".#abc##.........", - ".#daabc#####....", - ".#ddeaabbccc#...", - ".#dedeeabbbba...", - ".#edeeeeaaaab#..", - ".#deeeeeeefe#ba.", - ".#eeeeeeefef#ba.", - ".#eeeeeefeff#ba.", - ".#eeeeefefff#ba.", - ".##geefeffff#ba.", - "...##gefffff#ba.", - ".....##fffff#ba.", - ".......##fff#b##", - ".........##f#b##", - "...........####." -] - -folder_open_xpm = [ - "16 16 11 1", - "# c #000000", - "g c #c0c0c0", - "e c #303030", - "a c #ffa858", - "b c #808080", - "d c #a0a0a4", - "f c #585858", - "c c #ffdca8", - "h c #dcdcdc", - "i c #ffffff", - ". c None", - "....###.........", - "....#ab##.......", - "....#acab####...", - "###.#acccccca#..", - "#ddefaaaccccca#.", - "#bdddbaaaacccab#", - ".eddddbbaaaacab#", - ".#bddggdbbaaaab#", - "..edgdggggbbaab#", - "..#bgggghghdaab#", - "...ebhggghicfab#", - "....#edhhiiidab#", - "......#egiiicfb#", - "........#egiibb#", - "..........#egib#", - "............#ee#" -] - -folder_locked = [ - "16 16 10 1", - "h c #808080", - "b c #ffa858", - "f c #c0c0c0", - "e c #c05800", - "# c #000000", - "c c #ffdca8", - ". c None", - "a c #585858", - "g c #a0a0a4", - "d c #ffffff", - "..#a#...........", - ".#abc####.......", - ".#daa#eee#......", - ".#ddf#e##b#.....", - ".#dfd#e#bcb##...", - ".#fdccc#daaab#..", - ".#dfbbbccgfg#ba.", - ".#ffb#ebbfgg#ba.", - ".#ffbbe#bggg#ba.", - ".#fffbbebggg#ba.", - ".##hf#ebbggg#ba.", - "...###e#gggg#ba.", - ".....#e#gggg#ba.", - "......###ggg#b##", - ".........##g#b##", - "...........####." -] - -pix_file = [ - "16 16 7 1", - "# c #000000", - "b c #ffffff", - "e c #000000", - "d c #404000", - "c c #c0c000", - "a c #ffffc0", - ". c None", - "................", - ".........#......", - "......#.#a##....", - ".....#b#bbba##..", - "....#b#bbbabbb#.", - "...#b#bba##bb#..", - "..#b#abb#bb##...", - ".#a#aab#bbbab##.", - "#a#aaa#bcbbbbbb#", - "#ccdc#bcbbcbbb#.", - ".##c#bcbbcabb#..", - "...#acbacbbbe...", - "..#aaaacaba#....", - "...##aaaaa#.....", - ".....##aa#......", - ".......##......." -] - -folderLocked = None -folderClosed = None -folderOpened = None -fileNormal = None - -class FileItem( QListViewItem ) : - def __init__( self, parent=None, s1=QString.null, s2=QString.null ): - QListViewItem.__init__( self, parent, s1, s2 ) - self.pix = None - - def setPixmap( self, p ) : - self.pix = p - self.setup() - self.widthChanged( 0 ) - self.invalidateHeight() - self.repaint() - - def pixmap( self, i ) : - if i : return None - else : return self.pix; - -# Class Directory -class Directory( QListViewItem ) : - def __init__( self, parent=None, filename=QString.null, col2=QString.null ): - QListViewItem.__init__( self, parent, filename, col2 ) - self.pix = None - global folderLocked, folderClosed, folderOpened, fileNormal - self.showDirsOnly = False - if isinstance(parent, QListView): - self.p = None - self.showDirsOnly = parent.showDirsOnly() - self.f = QFile( QString('/') ) - else: - self.p = parent - self.showDirsOnly = parent.showDirsOnly - self.f = QFile( QString(filename) ) - - self.readable = QDir( self.fullName() ).isReadable() - if not self.readable : self.setPixmap( folderLocked ) - else : self.setPixmap( folderClosed ) - - def setPixmap( self, px ) : - self.pix = px - self.setup() - self.widthChanged( 0 ) - self.invalidateHeight() - self.repaint() - - def pixmap( self, i ) : - if i : return None - else : return self.pix - - def setOpen( self, o ) : - if o : self.setPixmap( folderOpened ) - else : self.setPixmap( folderClosed ) - - if o and not self.childCount() : - s = QString( self.fullName() ) - thisDir = QDir( s ) - if not thisDir.isReadable() : - self.readable = False - self.setExpandable( False ) - return - - self.listView().setUpdatesEnabled( False ) - files = thisDir.entryInfoList() - if files : - fi = QFileInfo() - for it in files: - fi = it - if str(fi.fileName()) == "." or str(fi.fileName()) == ".." : - continue # nothing - elif fi.isSymLink() and not self.showDirsOnly : - item = FileItem( self, fi.fileName(), "Symbolic Link" ) - item.setPixmap( fileNormal ) - elif fi.isDir() : - Directory( self, fi.fileName() ) - elif not self.showDirsOnly : - if fi.isFile() : item = FileItem( self, fi.fileName(), "File" ) - else : item = FileItem( self, fi.fileName(), "Special" ) - item.setPixmap( fileNormal ) - - self.listView().setUpdatesEnabled( True ) - QListViewItem.setOpen( self, o ) - - def setup( self ): - self.setExpandable( True ) - QListViewItem.setup( self ) - - def fullName( self ): - s = QString() - if self.p : - s = self.p.fullName() - s.append( self.f.name() ) - s.append( "/" ) - else : - s = self.f.name() - return s - - def text( self, column ) : - if column == 0 : return self.f.name() - elif self.readable : return "Directory" - else : return "Unreadable Directory" - -# Class DirectoryView - -class DirectoryView( QListView ): - def __init__( self, parent=None, name=None, sdo=False ): - QListView.__init__( self, parent, name ) - self.dirsOnly = sdo - self.oldCurrent = 0 - self.dropItem = 0 - self.presspos = QPoint(0,0) - self.mousePressed = False - global folderLocked, folderClosed, folderOpened, fileNormal #= QPixmap() - self.autoopenTime = 750 - - self.autoopen_timer = QTimer( self ) - if not folderLocked : - folderLocked = QPixmap( folder_locked ) - folderClosed = QPixmap( folder_closed_xpm ) - folderOpened = QPixmap( folder_open_xpm ) - fileNormal = QPixmap( pix_file ) - - self.connect( self, SIGNAL("doubleClicked(QListViewItem *)"), - self.slotFolderSelected ) - self.connect( self, SIGNAL("returnPressed(QListViewItem *)"), - self.slotFolderSelected ) - - self.setAcceptDrops( True ) - self.viewport().setAcceptDrops( True ) - - self.connect( self.autoopen_timer, SIGNAL("timeout()"), self.openFolder ) - - def showDirsOnly( self ): - return self.dirsOnly - - def slotFolderSelected( self, i ): - if not i or not self.showDirsOnly(): - return - dir = i - self.emit( PYSIGNAL("folderSelected(const QString &)"), (dir.fullName(), ) ) - - def openFolder( self ): - self.autoopen_timer.stop() - if self.dropItem and not self.dropItem.isOpen(): - self.dropItem.setOpen( True ) - self.dropItem.repaint() - - def contentsDragEnterEvent( self, e ): - if not QUriDrag.canDecode(e) : - e.ignore() - return - self.oldCurrent = self.currentItem() - i = self.itemAt( self.contentsToViewport(e.pos()) ) - if i : - self.dropItem = i - self.autoopen_timer.start( self.autoopenTime ) - - def contentsDragMoveEvent( self, e ) : - if not QUriDrag.canDecode(e) : - e.ignore() - return - vp = self.contentsToViewport( e.pos() ) - i = self.itemAt( vp ) - if i : - self.setSelected( i, True ) - e.accept() - if i != self.dropItem : - self.autoopen_timer.stop() - self.dropItem = i - self.autoopen_timer.start( self.autoopenTime ) - - if e.action() == QDropEvent.Copy: - pass - elif e.action() == QDropEvent.Move: - e.acceptAction() - elif e.action() == QDropEvent.Link: - e.acceptAction() - else: - pass - else : - e.ignore() - self.autoopen_timer.stop() - self.dropItem = 0 - - def contentsDragLeaveEvent( self, QDragLeaveEvent ) : - self.autoopen_timer.stop() - self.dropItem = 0 - - self.setCurrentItem( self.oldCurrent ) - self.setSelected( self.oldCurrent, True ) - - def contentsDropEvent( self, e ): - self.autoopen_timer.stop() - if not QUriDrag.canDecode(e) : - e.ignore() - return - item = self.itemAt( self.contentsToViewport(e.pos()) ) - if item : - lst = QStringList() - QUriDrag.decodeLocalFiles( e, lst ) - if e.action() == QDropEvent.Copy: - s = QString("Copy") - elif e.action() == QDropEvent.Move: - s = QString("Move") - e.acceptAction() - elif e.action() == QDropEvent.Link: - s = QString("Link") - e.acceptAction() - else: - s = QString("Unknown") - - s += "\n\n" - e.accept() - - for filename in lst: - s += filename - s += "\n" - - s += "\nTo\n\n " - s += self.fullPath(item) - QMessageBox.information( self, "Drop target", s, "Not implemented" ) - else : - e.ignore() - - def fullPath( self, item ): - fullpath = QString( item.text(0) ) - item = item.parent() - while item: - newpath = item.text(0) - - if item.parent(): - newpath += "/" - - newpath += fullpath - fullpath = newpath - item = item.parent() - - return fullpath - - def contentsMousePressEvent( self, e ) : - QListView.contentsMousePressEvent( self, e ) - p = QPoint( self.contentsToViewport( e.pos() ) ) - i = self.itemAt( p ) - if i : - # if the user clicked into the root decoration of the item, don't try to start a drag! - if self.rootIsDecorated(): isdecorated = 1 - else : isdecorated = 0 - if p.x() > self.header().sectionPos( self.header().mapToIndex( 0 )) + self.treeStepSize() * ( i.depth() + isdecorated + self.itemMargin() or - p.x() < self.header().sectionPos( self.header().mapToIndex( 0 ) ) ) : - self.presspos.setX(e.pos().x()) - self.presspos.setY(e.pos().y()) - self.mousePressed = True - - def contentsMouseMoveEvent( self, e ): - offset = QPoint( self.presspos.x() - e.pos().x(), - self.presspos.y() - e.pos().y() ) - if self.mousePressed and (offset).manhattanLength() > QApplication.startDragDistance() : - self.mousePressed = False - item = self.itemAt( self.contentsToViewport(self.presspos) ) - if item : - source = self.fullPath(item) - if QFile.exists(source) : - ud = QUriDrag(self.viewport()) - ud.setFileNames( QStringList (source) ) - if ud.drag() : - QMessageBox.information( self, "Drag source", - QString("Delete ")+source, "Not implemented" ) - - def contentsMouseReleaseEvent( self, QMouseEvent ): - self.mousePressed = False - - def setDir( self, s ): - it = QListViewItem( self ) - it.setOpen(False) - thisDir = QDir( s ) - it = QListViewItem( self ) - it.setOpen(False) - lst = QStringList( QStringList.split( "/", s ) ) - listview2 = [] - listview2.extend( lst ) - - item = self.firstChild() - for it2 in listview2 : - while item : - if item.text( 0 ) == it2 : - item.setOpen( True ) - break - item = item.itemBelow() - if item: - self.setCurrentItem( item ) - -def main( args ): - a = QApplication( args ) - - mw = DirectoryView() - mw.addColumn( "Name" ) - mw.addColumn( "Type" ) - mw.setTreeStepSize( 20 ) - - roots = QDir.drives() - if roots : - for it in roots: - fi = it - root = Directory( mw, fi.filePath() ) - if roots.count(it) <= 1 : - root.setOpen( True ) # be interesting - - mw.resize( 400, 400 ) - mw.setCaption( "Qt Example - Directory Browser" ) - mw.setAllColumnsShowFocus( True ) - a.setMainWidget( mw ) - mw.show() - - a.exec_loop() - -if __name__=="__main__": - main(sys.argv) diff --git a/python/pyqt/examples3/dragdrop.py b/python/pyqt/examples3/dragdrop.py deleted file mode 100755 index 4cc8c738..00000000 --- a/python/pyqt/examples3/dragdrop.py +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/env python - -# Ported to PyQt by Issac Trotts on Jan 1, 2002 - -import sys -from qt import * - -import dropsite, secret - - -def addStuff( parent, yn_image, yn_secret = 0 ): - tll = QVBoxLayout( parent, 10 ) - d = dropsite.DropSite( parent, 'dropsite' ) - d.setFrameStyle( QFrame.Sunken + QFrame.WinPanel ) - tll.addWidget( d ) - if yn_image: - stuff = QPixmap() - if not stuff.load( "trolltech.bmp" ): - stuff = QPixmap(20,20) - stuff.fill(Qt.green) - d.setPixmap( stuff ) - else: - d.setText("Drag and Drop") - d.setFont(QFont("Helvetica",18)) - if secret: - s = secret.SecretSource( 42, parent ) - tll.addWidget( s ) - - format = QLabel( "\n\n\n\nNone\n\n\n\n", parent ) - tll.addWidget( format ) - tll.activate() - parent.resize( parent.sizeHint() ) - - QObject.connect( d, PYSIGNAL('message(QString &)'), - format, SLOT('setText(QString &)') ) - - -app = QApplication( sys.argv ) - -mw = QWidget() -addStuff( mw, 1 ) -mw.setCaption( "Qt Example - Drag and Drop" ) -mw.show() - -mw2 = QWidget() -addStuff( mw2, 0 ) -mw2.setCaption( "Qt Example - Drag and Drop" ) -mw2.show() - -mw3 = QWidget() -addStuff( mw3, 1, 1 ) -mw3.setCaption( "Qt Example - Drag and Drop" ) -mw3.show() - -QObject.connect(qApp,SIGNAL('lastWindowClosed()'),qApp,SLOT('quit()')) - -app.exec_loop() diff --git a/python/pyqt/examples3/drawlines.py b/python/pyqt/examples3/drawlines.py deleted file mode 100755 index 3e21db71..00000000 --- a/python/pyqt/examples3/drawlines.py +++ /dev/null @@ -1,74 +0,0 @@ -#!/usr/bin/env python - -import sys, random -from qt import * - -TRUE = 1 -FALSE = 0 - -MAXPOINTS = 2000; # maximum number of points -MAXCOLORS = 40; - -# -# ConnectWidget - draws connected lines -# - -class ConnectWidget(QWidget): - def __init__(self): - QWidget.__init__(self) - self.setEraseColor( Qt.white ) # white background - self.count = 0; - self.down = FALSE - - self.points = [] - self.colors = [] - - for i in range(MAXPOINTS): # init arrays - self.points.append(QPoint()) - for i in range(MAXCOLORS): - self.colors.append(QColor( random.randint(0,255), random.randint(0,255), random.randint(0,255) )) - -# -# Handles paint events for the connect widget. -# - def paintEvent(self, pe): - paint = QPainter( self ) - for i in range(self.count-1): # connect all points - for j in range(i+1, self.count): - paint.setPen( self.colors[random.randint(0,MAXCOLORS-1)] ) # set random pen color - paint.drawLine( self.points[i], self.points[j] ) # draw line - -# -# Handles mouse press events for the connect widget. -# - def mousePressEvent(self, me): - self.down = TRUE - self.count = 0 # start recording points - self.erase() # erase widget contents - -# -# Handles mouse release events for the connect widget. -# - def mouseReleaseEvent(self, me ): - self.down = FALSE # done recording points - self.update() # draw the lines - -# -# Handles mouse move events for the connect widget. -# - def mouseMoveEvent(self, me): - if self.down and self.count < MAXPOINTS: - paint = QPainter( self ) - self.points[self.count] = QPoint(me.pos()) # add point - paint.drawPoint( me.pos() ) # plot point - self.count = self.count+1 - -# -# Create and display a ConnectWidget. -# -a = QApplication( sys.argv ) -connect = ConnectWidget() -connect.setCaption( "PyQt Example - Draw lines") -a.setMainWidget( connect ) -connect.show() -a.exec_loop() diff --git a/python/pyqt/examples3/dropsite.py b/python/pyqt/examples3/dropsite.py deleted file mode 100644 index 11d97079..00000000 --- a/python/pyqt/examples3/dropsite.py +++ /dev/null @@ -1,96 +0,0 @@ -# This is part of the dragdrop example. - - -from qt import * - -import secret - - -class DropSite(QLabel): - def __init__(self, parent=None, name=None): - QLabel.__init__( self, parent, name ) - self.setAcceptDrops(1) - - # this is a normal event - def mousePressEvent( self, e ): - if ( self.pixmap() ) : - drobj = QImageDrag( self.pixmap().convertToImage(), self ) - pm = QPixmap() - pm.convertFromImage(self.pixmap().convertToImage().smoothScale( - self.pixmap().width()/3,self.pixmap().height()/3)) - drobj.setPixmap(pm,QPoint(-5,-7)) - else : - drobj = QTextDrag( self.text(), self ) - drobj.dragCopy() - - def backgroundColorChange( self, qcolor ): - # Reduce flicker by using repaint() rather than update() - self.repaint() - - def dragMoveEvent( self, e ): - # Check if you want the drag at e.pos()... - # Give the user some feedback... - pass - - def dragEnterEvent( self, e ): - # Check if you want the drag... - if (secret.canDecode( e ) or - QTextDrag.canDecode( e ) or - QImageDrag.canDecode( e ) or - QUriDrag.canDecode( e )): - e.accept() - - # Give the user some feedback... - t = '' - i = 0 - while e.format( i ): - if ( t != '' ): - t += "\n" - t += str(e.format( i )) - i += 1 - self.emit(PYSIGNAL('message(QString &)'), (QString(t),)) - self.setEraseColor(Qt.white) - - def dragLeaveEvent( self, QDragLeaveEvent ): - # Give the user some feedback... - self.emit(PYSIGNAL('message(QString &)'), (QString(''),)) - self.setEraseColor(Qt.lightGray) - - def dropEvent( self, e ): - self.setEraseColor(Qt.lightGray) - # Try to decode to the data you understand... - str = QString() - if ( QTextDrag.decode( e, str ) ) : - self.setText( str ) - self.setMinimumSize( self.minimumSize().expandedTo(self.sizeHint()) ) - return - - pm = QPixmap() - if ( QImageDrag.decode( e, pm ) ) : - self.setPixmap( pm ) - self.setMinimumSize(self.minimumSize().expandedTo(self.sizeHint())) - return - - # QStrList strings - #strings = QStrList() - strings = [] - if ( QUriDrag.decode( e, strings ) ) : - m = QString("Full URLs:\n") - for u in strings: - m = m + " " + u + '\n' - # QStringList files - files = [] - if ( QUriDrag.decodeLocalFiles( e, files ) ) : - m += "Files:\n" - # for (QStringList.Iterator i=files.begin() i!=files.end() ++i) - for i in files: - m = m + " " + i + '\n' - self.setText( m ) - self.setMinimumSize(self.minimumSize().expandedTo(self.sizeHint())) - return - - str = secret.decode( e ) - if str: - self.setText( str ) - self.setMinimumSize(self.minimumSize().expandedTo(self.sizeHint())) - return diff --git a/python/pyqt/examples3/fileopen.xpm b/python/pyqt/examples3/fileopen.xpm deleted file mode 100644 index 880417ee..00000000 --- a/python/pyqt/examples3/fileopen.xpm +++ /dev/null @@ -1,22 +0,0 @@ -/* XPM */ -static const char *fileopen[] = { -" 16 13 5 1", -". c #040404", -"# c #808304", -"a c None", -"b c #f3f704", -"c c #f3f7f3", -"aaaaaaaaa...aaaa", -"aaaaaaaa.aaa.a.a", -"aaaaaaaaaaaaa..a", -"a...aaaaaaaa...a", -".bcb.......aaaaa", -".cbcbcbcbc.aaaaa", -".bcbcbcbcb.aaaaa", -".cbcb...........", -".bcb.#########.a", -".cb.#########.aa", -".b.#########.aaa", -"..#########.aaaa", -"...........aaaaa" -}; diff --git a/python/pyqt/examples3/fontdisplayer.py b/python/pyqt/examples3/fontdisplayer.py deleted file mode 100755 index cb8531a4..00000000 --- a/python/pyqt/examples3/fontdisplayer.py +++ /dev/null @@ -1,148 +0,0 @@ -#!/usr/bin/env python - -"""************************************************************************** -** $Id$ -** -** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. -** -** This file is part of an example program for Qt. This example -** program may be used, distributed and modified without limitation. -** -***************************************************************************""" - -import sys -from qt import * - -class FontRowTable( QFrame ): - def __init__( self, parent=None, name=None ): - QFrame.__init__( self, parent, name ) - - self.setBackgroundMode(self.PaletteBase) - self.setFrameStyle(self.Panel|self.Sunken) - self.setMargin(8) - self.setRow(0) - self.row = 0 - self.tablefont = QFont( QApplication.font() ) - - def sizeHint( self ) : - width = 16*self.cellSize().width()+QSize(2,2).width()*(self.margin()+self.frameWidth()) - height = 16*self.cellSize().height()+QSize(2,2).height()*(self.margin()+self.frameWidth()) - return QSize(width,height) - - def cellSize( self ) : - fm = self.fontMetrics() - return QSize( fm.maxWidth(), fm.lineSpacing() + 1 ) - - def paintEvent( self, e ): - QFrame.paintEvent(self, e) - p = QPainter(self) - p.setClipRegion(e.region()) - r = QRect(e.rect()) - fm = self.fontMetrics() - ml = self.frameWidth() + self.margin() + 1 + max(0,-fm.minLeftBearing()) - mt = self.frameWidth() + self.margin() - cell = QSize((self.width()-15-ml)/16,(self.height()-15-mt)/16) - - if not cell.width() or not cell.height() : - return - - mini = r.left() / cell.width() - maxi = (r.right()+cell.width()-1) / cell.width() - minj = r.top() / cell.height() - maxj = (r.bottom()+cell.height()-1) / cell.height() - - h = fm.height() - - body = QColor(255,255,192); - negative = QColor(255,192,192); - positive = QColor(192,192,255); - rnegative = QColor(255,128,128); - rpositive = QColor(128,128,255); - - for j in range(minj, maxj+1, 1) : - for i in range(mini, maxi+1, 1) : - if i < 16 and j < 16 : - x = i*cell.width() - y = j*cell.height() - - ch = QChar(j*16+i) #,self.row) # just accept one argument!!! - - if fm.inFont(ch) : - w = fm.width(ch) - l = fm.leftBearing(ch) - r = fm.rightBearing(ch) - - x += ml - y += mt+h - - p.fillRect(x,y,w,-h,QBrush(body)) - - if w : - if l : - if l < 0: sign = negative - else: sign = positive - if l > 0: lsign = 0 - else: lsign = 1 - p.fillRect(x+lsign, y-h/2, abs(l),-h/2, QBrush(sign)) - if r : - if r < 0: sign = rnegative - else: sign = rpositive - if r > 0: rsign = r - else: rsign = 0 - p.fillRect(x+w-rsign,y+2, abs(r),-h/2, QBrush(sign)) - s = QString( ch ) - p.setPen(QPen(Qt.black)) - p.drawText(x,y,s) - - def setRow( self, r ) : - self.row = r - - fm = self.fontMetrics() - str = " minLB=%d minRB=%d maxW=%d" % (fm.minLeftBearing(), fm.minRightBearing(), fm.maxWidth()) - self.emit( PYSIGNAL("fontInformation"), ( QString(str), ) ) - self.update() - - def chooseFont( self ) : - ok = 0 - oldfont = QFont( self.tablefont ) - self.tablefont, ok = QFontDialog.getFont(oldfont, self) - if ok: - self.setFont(self.tablefont) - else: - self.tablefont = oldfont - -class FontDisplayer( QMainWindow ) : - def __init__( self, parent=None, name=None ): - QMainWindow.__init__( self, parent, name ) - table = FontRowTable(self) - controls = QToolBar(self) - - QLabel(self.tr("Row:"), controls) - self.row = QSpinBox(0,255,1,controls) - controls.addSeparator() - fontbutton = QPushButton(self.tr("Font..."), controls) - status = QStatusBar(self) - - self.connect( self.row, SIGNAL("valueChanged(int)"), table.setRow ) - self.connect( fontbutton, SIGNAL("clicked()"), table.chooseFont ) - self.connect( table, PYSIGNAL("fontInformation"), - status, SLOT("message(const QString&)") ) - table.setRow(0) - self.setCentralWidget(table) - -def main( args ): - # Use an interesting font - QApplication.setFont(QFont("unifont",16)) - app = QApplication(sys.argv) - - m = FontDisplayer() - sh = QSize( m.centralWidget().sizeHint() ) - m.resize(sh.width(), sh.height() + 3 * m.statusBar().height()) - app.setMainWidget(m); - m.setCaption("Qt Example - QFD"); - m.show() - - app.exec_loop() - -if __name__=="__main__": - main(sys.argv) diff --git a/python/pyqt/examples3/fonts.py b/python/pyqt/examples3/fonts.py deleted file mode 100755 index 3240ed6b..00000000 --- a/python/pyqt/examples3/fonts.py +++ /dev/null @@ -1,151 +0,0 @@ -#!/usr/bin/env python - -"""************************************************************************** -** $Id$ -** -** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. -** -** This file is part of an example program for Qt. This example -** program may be used, distributed and modified without limitation. -** -***************************************************************************""" - -import sys -from qt import * - -class Viewer( QWidget ): - def __init__( self ): - QWidget.__init__( self ) - - self.setFontSubstitutions() - - #greeting_heb = QString.fromUtf8( "\327\251\327\234\327\225\327\235" ) - greeting_heb = unicode( '\327\251\327\234\327\225\327\235','utf8' ) - #greeting_ru = QString.fromUtf8( "\320\227\320\264\321\200\320\260\320\262\321\201\321\202\320\262\321\203\320\271\321\202\320\265" ) - greeting_ru = unicode('\320\227\320\264\321\200\320\260\320\262\321\201\321\202\320\262\321\203\320\271\321\202\320\265','utf8' ) - greeting_en = "Hello" - - self.greetings = QTextView( self, "textview" ) - - self.greetings.setText( greeting_en + "\n" + - greeting_ru + "\n" + - greeting_heb ) - - self.fontInfo = QTextView( self, "fontinfo" ) - - self.setDefault() - - self.defaultButton = QPushButton( "Default", self, "pushbutton1" ) - self.defaultButton.setFont( QFont( "times" ) ) - self.connect( self.defaultButton, SIGNAL("clicked()"), self.setDefault ) - - self.sansSerifButton = QPushButton( "Sans Serif", self, "pushbutton2" ) - self.sansSerifButton.setFont( QFont( "Helvetica", 12 ) ) - self.connect( self.sansSerifButton, SIGNAL("clicked()"), self.setSansSerif ) - - self.italicsButton = QPushButton( "Italics", self, "pushbutton3" ) - self.italicsButton.setFont( QFont( "lucida", 12, QFont.Bold, True ) ) - self.connect( self.italicsButton, SIGNAL("clicked()"), self.setItalics ) - - self.layout() - - def setDefault( self ): - font = QFont( "Bavaria" ) - font.setPointSize( 24 ) - font.setWeight( QFont.Bold ) - font.setUnderline( True ) - - self.greetings.setFont( font ) - - self.showFontInfo( font ) - - def setSansSerif( self ): - font = QFont( "Newyork", 18 ) - font.setStyleHint( QFont.SansSerif ) - - self.greetings.setFont( font ) - - self.showFontInfo( font ) - - def setItalics( self ): - font = QFont( "Tokyo" ) - font.setPointSize( 32 ) - font.setWeight( QFont.Bold ) - font.setItalic( True ) - - self.greetings.setFont( font ) - - self.showFontInfo( font ) - - def showFontInfo( self, font ): - info = QFontInfo( font ) - - messageText = "Font requested: \"" + str(font.family()) + "\" " \ - + str(QString.number( font.pointSize() )) + "pt
" \ - + "Font used: \"" + str(info.family()) + "\" " \ - + str(QString.number( info.pointSize() )) + "pt

" - - if not self.substitutes.isEmpty() : - messageText += "The following substitutions exist for " + \ - str(font.family()) + ":

    " - for i in self.substitutes : - messageText += "
  • \"" + str(i) + "\"" - messageText += "
"; - else : - messageText += "No substitutions exist for " + \ - str(font.family()) + "." - - self.fontInfo.setText( messageText ) - - def setFontSubstitutions( self ): - self.substitutes = QStringList() - self.substitutes.append( "Times" ) - self.substitutes.append( "Mincho" ) - self.substitutes.append( "Arabic Newspaper" ) - self.substitutes.append( "crox" ) - #QFont.insertSubstitutions( "Bavaria", self.substitutes ) - QFont.insertSubstitution( "Bavaria", "Times" ) - QFont.insertSubstitution( "Tokyo", "Lucida" ) - - # For those who prefer to use Qt Designer for creating GUIs - # the following function might not be of particular interest: - # all it does is creating the widget layout. - def layout( self ): - textViewContainer = QHBoxLayout() - textViewContainer.addWidget( self.greetings ) - textViewContainer.addWidget( self.fontInfo ) - - buttonContainer = QHBoxLayout() - buttonContainer.addWidget( self.defaultButton ) - buttonContainer.addWidget( self.sansSerifButton ) - buttonContainer.addWidget( self.italicsButton ) - - maxButtonHeight = self.defaultButton.height() - - if self.sansSerifButton.height() > maxButtonHeight : - maxButtonHeight = self.sansSerifButton.height() - if self.italicsButton.height() > maxButtonHeight : - maxButtonHeight = self.italicsButton.height() - - self.defaultButton.setFixedHeight( maxButtonHeight ) - self.sansSerifButton.setFixedHeight( maxButtonHeight ) - self.italicsButton.setFixedHeight( maxButtonHeight ) - - container = QVBoxLayout( self ) - container.addLayout( textViewContainer ) - container.addLayout( buttonContainer ) - - self.resize( 700, 250 ) - -def main( args ): - app = QApplication(sys.argv) # application object - - textViewer = Viewer() - textViewer.setCaption( "Qt Example - Simple QFont Demo" ) - app.setMainWidget( textViewer ) - textViewer.show() - - app.exec_loop() - -if __name__=="__main__": - main(sys.argv) diff --git a/python/pyqt/examples3/gears.py b/python/pyqt/examples3/gears.py deleted file mode 100755 index c89a7a24..00000000 --- a/python/pyqt/examples3/gears.py +++ /dev/null @@ -1,235 +0,0 @@ -#!/usr/bin/env python - - -import sys -import math -from qt import * -from qtgl import * -from OpenGL.GL import * - -def gear(inner_radius,outer_radius,width,teeth,tooth_depth): - r0 = inner_radius - r1 = outer_radius - tooth_depth/2.0 - r2 = outer_radius + tooth_depth/2.0 - - da = 2.0*math.pi/teeth/4.0 - - glShadeModel(GL_FLAT) - - glNormal3f(0.0,0.0,1.0) - - # draw front face - - glBegin(GL_QUAD_STRIP) - - for i in range(teeth+1): - angle = i * 2.0*math.pi/teeth - glVertex3f(r0*math.cos(angle), r0*math.sin(angle), width*0.5 ) - glVertex3f(r1*math.cos(angle), r1*math.sin(angle), width*0.5 ) - glVertex3f(r0*math.cos(angle), r0*math.sin(angle), width*0.5 ) - glVertex3f(r1*math.cos(angle+3*da), r1*math.sin(angle+3*da), width*0.5 ) - - glEnd() - - # draw front sides of teeth - - da = 2.0*math.pi/teeth/4.0 - - glBegin(GL_QUADS) - - for i in range(teeth): - angle = i*2.0*math.pi/teeth - - glVertex3f( r1*math.cos(angle), r1*math.sin(angle), width*0.5 ) - glVertex3f( r2*math.cos(angle+da), r2*math.sin(angle+da), width*0.5 ) - glVertex3f( r2*math.cos(angle+2*da), r2*math.sin(angle+2*da), width*0.5 ) - glVertex3f( r1*math.cos(angle+3*da), r1*math.sin(angle+3*da), width*0.5 ) - - glEnd() - - - glNormal3f( 0.0, 0.0, -1.0 ) - - # draw back face - - glBegin( GL_QUAD_STRIP ) - - for i in range(teeth+1): - angle = i*2.0*math.pi/teeth - - glVertex3f( r1*math.cos(angle), r1*math.sin(angle), -width*0.5 ) - glVertex3f( r0*math.cos(angle), r0*math.sin(angle), -width*0.5 ) - glVertex3f( r1*math.cos(angle+3*da), r1*math.sin(angle+3*da), -width*0.5 ) - glVertex3f( r0*math.cos(angle), r0*math.sin(angle), -width*0.5 ) - - glEnd() - - # draw back sides of teeth - - da = 2.0*math.pi/teeth/4.0 - - glBegin( GL_QUADS ) - - for i in range(teeth): - angle = i*2.0*math.pi/teeth - - glVertex3f( r1*math.cos(angle+3*da), r1*math.sin(angle+3*da), -width*0.5 ) - glVertex3f( r2*math.cos(angle+2*da), r2*math.sin(angle+2*da), -width*0.5 ) - glVertex3f( r2*math.cos(angle+da), r2*math.sin(angle+da), -width*0.5 ) - glVertex3f( r1*math.cos(angle), r1*math.sin(angle), -width*0.5 ) - - glEnd() - - # draw outward faces of teeth - - glBegin( GL_QUAD_STRIP ) - - for i in range(teeth): - angle = i*2.0*math.pi/teeth - - glVertex3f( r1*math.cos(angle), r1*math.sin(angle), width*0.5 ) - glVertex3f( r1*math.cos(angle), r1*math.sin(angle), -width*0.5 ) - - u = r2*math.cos(angle+da) - r1*math.cos(angle) - v = r2*math.sin(angle+da) - r1*math.sin(angle) - - len = math.sqrt( u*u + v*v ) - u /= len - v /= len - glNormal3f( v, -u, 0.0 ) - glVertex3f( r2*math.cos(angle+da), r2*math.sin(angle+da), width*0.5 ) - glVertex3f( r2*math.cos(angle+da), r2*math.sin(angle+da), -width*0.5 ) - glNormal3f( math.cos(angle), math.sin(angle), 0.0 ) - glVertex3f( r2*math.cos(angle+2*da), r2*math.sin(angle+2*da), width*0.5 ) - glVertex3f( r2*math.cos(angle+2*da), r2*math.sin(angle+2*da), -width*0.5 ) - u = r1*math.cos(angle+3*da) - r2*math.cos(angle+2*da) - v = r1*math.sin(angle+3*da) - r2*math.sin(angle+2*da) - glNormal3f( v, -u, 0.0 ) - glVertex3f( r1*math.cos(angle+3*da), r1*math.sin(angle+3*da), width*0.5 ) - glVertex3f( r1*math.cos(angle+3*da), r1*math.sin(angle+3*da), -width*0.5 ) - glNormal3f( math.cos(angle), math.sin(angle), 0.0 ) - - glVertex3f( r1*math.cos(0.0), r1*math.sin(0.0), width*0.5 ) - glVertex3f( r1*math.cos(0.0), r1*math.sin(0.0), -width*0.5 ) - - glEnd() - - glShadeModel (GL_SMOOTH) - - # draw inside radius cylinder - - glBegin( GL_QUAD_STRIP ) - - for i in range(teeth+1): - angle = i * 2.0*math.pi / teeth - glNormal3f( -math.cos(angle), -math.sin(angle), 0.0 ) - glVertex3f( r0*math.cos(angle), r0*math.sin(angle), -width*0.5 ) - glVertex3f( r0*math.cos(angle), r0*math.sin(angle), width*0.5 ) - - glEnd() - -############################################################################## -class GearWidget(QGLWidget): - def __init__(self,parent=None,name=None): - QGLWidget.__init__(self,parent,name) - - self.angle=0.0 - self.view_rotx=0.0 - self.view_roty=0.0 - self.view_rotz=0.0 - - self.startTimer(10) - - def timerEvent(self,event): - self.updateGL() - - def paintGL(self): - self.angle = self.angle + 2.0 - self.view_rotx = self.view_rotx + 1.0 - self.view_roty = self.view_roty + 3.0 - self.view_rotz = self.view_rotz + 2.0 - - glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ) - - glPushMatrix() - glRotatef( self.view_rotx, 1.0, 0.0, 0.0 ) - glRotatef( self.view_roty, 0.0, 1.0, 0.0 ) - glRotatef( self.view_rotz, 0.0, 0.0, 1.0 ) - - glPushMatrix() - glTranslatef( -3.0, -2.0, 0.0 ) - glRotatef( self.angle, 0.0, 0.0, 1.0 ) - glCallList(self.gear1) - glPopMatrix() - - glPushMatrix() - glTranslatef( 3.1, -2.0, 0.0 ) - glRotatef( -2.0*self.angle-9.0, 0.0, 0.0, 1.0 ) - glCallList(self.gear2) - glPopMatrix() - - glPushMatrix() - glTranslatef( -3.1, 2.2, -1.8 ) - glRotatef( 90.0, 1.0, 0.0, 0.0 ) - glRotatef( 2.0*self.angle-2.0, 0.0, 0.0, 1.0 ) - glCallList(self.gear3) - glPopMatrix() - - glPopMatrix() - - def resizeGL(self,width,height): - w = width / float(height) - h = 1.0 - - glViewport( 0, 0, width, height ) - glMatrixMode(GL_PROJECTION) - glLoadIdentity() - glFrustum( -w, w, -h, h, 5.0, 60.0 ) - glMatrixMode(GL_MODELVIEW) - glLoadIdentity() - glTranslatef( 0.0, 0.0, -40.0 ) - - def initializeGL(self): - pos=(5.0, 5.0, 10.0, 1.0 ) - ared=(0.8, 0.1, 0.0, 1.0 ) - agreen=(0.0, 0.8, 0.2, 1.0 ) - ablue=(0.2, 0.2, 1.0, 1.0 ) - - glLightfv(GL_LIGHT0,GL_POSITION,pos) - glEnable(GL_CULL_FACE) - glEnable(GL_LIGHTING) - glEnable(GL_LIGHT0) - glEnable(GL_DEPTH_TEST) - - self.gear1=glGenLists(1) - glNewList(self.gear1,GL_COMPILE) - glMaterialfv(GL_FRONT,GL_AMBIENT_AND_DIFFUSE,ared) - gear(1.0,4.0,1.0,20,0.7) - glEndList() - - self.gear2=glGenLists(1) - glNewList(self.gear2,GL_COMPILE) - glMaterialfv(GL_FRONT,GL_AMBIENT_AND_DIFFUSE,agreen) - gear(0.5,2.0,2.0,10,0.7) - glEndList() - - self.gear3=glGenLists(1) - glNewList(self.gear3,GL_COMPILE) - glMaterialfv(GL_FRONT,GL_AMBIENT_AND_DIFFUSE,ablue) - gear(1.3,2.0,0.5,10,0.7) - glEndList() - - glEnable(GL_NORMALIZE) - -############################################################################## -if __name__=='__main__': - QApplication.setColorSpec(QApplication.CustomColor) - app=QApplication(sys.argv) - - if not QGLFormat.hasOpenGL(): - raise 'No Qt OpenGL support.' - - widget=GearWidget() - app.setMainWidget(widget) - widget.show() - app.exec_loop() diff --git a/python/pyqt/examples3/i18n/i18n.pro b/python/pyqt/examples3/i18n/i18n.pro deleted file mode 100644 index fc55895e..00000000 --- a/python/pyqt/examples3/i18n/i18n.pro +++ /dev/null @@ -1,15 +0,0 @@ -SOURCES = mywidget.py \ - i18n.py - -TRANSLATIONS = mywidget_cs.ts \ - mywidget_de.ts \ - mywidget_el.ts \ - mywidget_en.ts \ - mywidget_eo.ts \ - mywidget_fr.ts \ - mywidget_it.ts \ - mywidget_jp.ts \ - mywidget_ko.ts \ - mywidget_no.ts \ - mywidget_ru.ts \ - mywidget_zh.ts diff --git a/python/pyqt/examples3/i18n/i18n.py b/python/pyqt/examples3/i18n/i18n.py deleted file mode 100755 index 06cc97f5..00000000 --- a/python/pyqt/examples3/i18n/i18n.py +++ /dev/null @@ -1,147 +0,0 @@ -#!/usr/bin/env python - -# Copyright (c) 2002 Detlev Offenbach - -from whrandom import randint -import sys - -from qt import * - -from mywidget import MyWidget - -class QVDialog(QDialog): - def __init__(self, parent=None, name=None, modal=0, flags=0): - QDialog.__init__(self, parent, name, modal, flags) - - self.vb = QVBoxLayout(self, 8) - self.vb.setAutoAdd(1) - - self.hb = None - self.map = {} - #self.sm = QSignalMapper(self) - self.connect(self, PYSIGNAL('mapped(int)'), self.done) - - def addButtons(self, cancel=None, ok=None, mid1=None, mid2=None, mid3=None): - if ok is None: - self.addButton(self.tr("OK"),1) - else: - self.addButton(ok,1) - - if mid1 is not None: - self.addButton(mid1,2) - - if mid2 is not None: - self.addButton(mid2,3) - - if mid3 is not None: - self.addButton(mid3,4) - - if cancel is None: - self.addButton(self.tr('Cancel'),0) - else: - self.addButton(cancel,0) - - def addButton(self, text, result): - if self.hb is None: - self.hb = QHBox(self) - c = QPushButton(text, self.hb) - self.setMapping(c, result) - self.connect(c, SIGNAL('clicked()'), self.mapit) - - def setMapping(self, c, result): - self.map[c] = result - - def mapit(self): - qo = self.sender() - self.emit(PYSIGNAL('mapped(int)'), (self.map[qo],)) - -translator = None -wlist = [] # keep reference to widgets - -def showLang(lang): - global translator - - qApp.setPalette(QPalette(QColor(220-randint(0,64),220-randint(0,64),220-randint(0,64)))) - - language = "mywidget_"+lang+".qm" - fi = QFileInfo(language) - - if not fi.exists(): - QMessageBox.warning(None, "File error", - "Cannot find translation for language: "+lang+\ - "\n(try eg. 'de' or 'en')") - return None - - if translator is not None: - qApp.removeTranslator(translator) - translator = None - - translator = QTranslator(None) - translator.load(language,".") - qApp.installTranslator(translator) - m = MyWidget() - m.setCaption("PyQt Example - i18n - " + unicode(m.caption())) - wlist.append(m) - return m - -def main(argv): - app = QApplication(argv) - - qm = ["cs", "de", "el", "en", "eo", "fr", "it", "jp", "ko", "no", "ru", "zh"] - - lang = None - if len(argv) == 2: - lang = argv[1] - - if (len(argv) != 2) or (lang == "all"): - dlg = QVDialog(None, None, 1) - qmb = [] - r = 0 - if lang == "all": - r=2 - else: - bg = QButtonGroup(4, Qt.Vertical, "Choose Locales", dlg) - loc = QTextCodec.locale() - for i in range(0,len(qm)): - qmb.append(QCheckBox(qm[i], bg)) - qmb[i].setChecked(str(loc) == qm[i]) - dlg.addButtons("Cancel","OK","All") - r = dlg.exec_loop() - - if r: - tight = qApp.desktop().screen().width < 1024 - x = 5 - y = 25 - for i in range(0,len(qm)): - if (r == 2) or (qmb[i].isChecked()): - w = showLang(qm[i]) - - if w == None: - sys.exit(0) - - app.connect(app, SIGNAL('lastWindowClosed()'), qApp, SLOT('quit()')) - w.setGeometry(x,y,197,356) - w.show() - if tight: - x += 8 - y += 8 - else: - x += 205 - if x > 1000: - x = 5 - y += 384 - - else: - sys.exit(0) - - else: - lang = argv[1] - m = showLang(lang) - app.setMainWidget(m) - m.setCaption("PyQt Example - i18n") - m.show() - - return app.exec_loop() - -if __name__ == "__main__": - main(sys.argv) diff --git a/python/pyqt/examples3/i18n/mywidget.py b/python/pyqt/examples3/i18n/mywidget.py deleted file mode 100644 index 60e267a4..00000000 --- a/python/pyqt/examples3/i18n/mywidget.py +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright (c) 2002 Detlev Offenbach - -from qt import * - -class MyWidget(QMainWindow): - - def __init__(self, parent=None, name=None): - QMainWindow.__init__(self, parent, name) - - self.central = QVBox(self) - self.central.setMargin(5) - self.central.setSpacing(5) - self.setCentralWidget(self.central) - - self.setCaption(self.trUtf8("""Internationalization Example""")) - - self.file = QPopupMenu(self) - self.file.insertItem(self.trUtf8("E&xit"), qApp, SLOT("quit()"), - QKeySequence(self.trUtf8("Ctrl+Q","File|Quit"))) - self.menuBar().insertItem(self.trUtf8("&File"), self.file) - - self.statusBar().message(self.trUtf8('''Language: English''')) - - self.label = QLabel(self.trUtf8("The Main Window"), self.central) - - self.gbox = QButtonGroup(1, QGroupBox.Horizontal, - self.trUtf8("View"), self.central) - rb = QRadioButton(qApp.translate('MyWidget','Perspective'), self.gbox) - rb = QRadioButton(qApp.translate('MyWidget','Isometric'), self.gbox) - rb = QRadioButton(qApp.translate('MyWidget','Oblique'), self.gbox) - - self.initChoices(self.central) - - choices = [ - QT_TRANSLATE_NOOP("MyWidget", "First"), - QT_TRANSLATE_NOOP("MyWidget", "Second"), - QT_TRANSLATE_NOOP("MyWidget", "Third") - ] - - def initChoices(self, parent): - self.lb = QListBox(parent) - for ch in self.choices: - self.lb.insertItem(self.trUtf8(ch)) - - def closeEvent(self, e): - QWidget.closeEvent(self, e) - self.emit(PYSIGNAL('closed'), ()) diff --git a/python/pyqt/examples3/i18n/mywidget_cs.qm b/python/pyqt/examples3/i18n/mywidget_cs.qm deleted file mode 100644 index f95090d6..00000000 Binary files a/python/pyqt/examples3/i18n/mywidget_cs.qm and /dev/null differ diff --git a/python/pyqt/examples3/i18n/mywidget_cs.ts b/python/pyqt/examples3/i18n/mywidget_cs.ts deleted file mode 100644 index 4cf61f15..00000000 --- a/python/pyqt/examples3/i18n/mywidget_cs.ts +++ /dev/null @@ -1,75 +0,0 @@ - - - MyWidget - - View - Pohled - - - &File - &Soubor - - - E&xit - &Konec - - - First - První - - - Third - TÅ™etí - - - Language: English - Jayzk: ÄŒeský - - - The Main Window - Hlavní okno - - - Ctrl+Q - Ctrl+Q - - - Oblique - NaklonÄ›ný - - - Second - Druhý - - - Isometric - Isometrický - - - Perspective - Perspektivní - - - Internationalization Example - Ukázka lokalizace - - - - QAccel - - Ctrl - Ctrl - - - - QVDialog - - OK - - - - Cancel - - - - diff --git a/python/pyqt/examples3/i18n/mywidget_de.qm b/python/pyqt/examples3/i18n/mywidget_de.qm deleted file mode 100644 index 64338556..00000000 Binary files a/python/pyqt/examples3/i18n/mywidget_de.qm and /dev/null differ diff --git a/python/pyqt/examples3/i18n/mywidget_de.ts b/python/pyqt/examples3/i18n/mywidget_de.ts deleted file mode 100644 index d114b8b5..00000000 --- a/python/pyqt/examples3/i18n/mywidget_de.ts +++ /dev/null @@ -1,69 +0,0 @@ - - - MyWidget - - First - Erstens - - - Second - Zweitens - - - Third - Drittens - - - Internationalization Example - Internationalisierungsbeispiel - - - E&xit - Be&enden - - - &File - &Datei - - - Language: English - Sprache: Deutsch - - - The Main Window - Das Hauptfenster - - - View - Ansicht - - - Perspective - Perspektivisch - - - Isometric - Isometrisch - - - Oblique - Schief - - - Ctrl+Q - File|Quit - Strg+Q - - - - QVDialog - - OK - OK - - - Cancel - Abbruch - - - diff --git a/python/pyqt/examples3/i18n/mywidget_el.qm b/python/pyqt/examples3/i18n/mywidget_el.qm deleted file mode 100644 index 15d76895..00000000 Binary files a/python/pyqt/examples3/i18n/mywidget_el.qm and /dev/null differ diff --git a/python/pyqt/examples3/i18n/mywidget_el.ts b/python/pyqt/examples3/i18n/mywidget_el.ts deleted file mode 100644 index 59fb2289..00000000 --- a/python/pyqt/examples3/i18n/mywidget_el.ts +++ /dev/null @@ -1,68 +0,0 @@ - - - MyWidget - - &File - &ΑÏχείο - - - Ctrl+Q - Ctrl+Q - - - E&xit - Έ&ξοδος - - - First - ΠÏώτο - - - Internationalization Example - ΠαÏάδειγμα διεθνοποίησης - - - Isometric - ΙσομετÏική - - - Language: English - Γλώσσα: Ελληνικά - - - Oblique - Πλάγια - - - Perspective - ΠÏοοπτική - - - Second - ΔεÏτεÏο - - - The Main Window - ΚÏÏιο παÏάθυÏο - - - Third - ΤÏίτο - - - View - Όψη - - - - QVDialog - - OK - - - - Cancel - - - - diff --git a/python/pyqt/examples3/i18n/mywidget_en.qm b/python/pyqt/examples3/i18n/mywidget_en.qm deleted file mode 100644 index 6bd22c41..00000000 Binary files a/python/pyqt/examples3/i18n/mywidget_en.qm and /dev/null differ diff --git a/python/pyqt/examples3/i18n/mywidget_en.ts b/python/pyqt/examples3/i18n/mywidget_en.ts deleted file mode 100644 index f231669f..00000000 --- a/python/pyqt/examples3/i18n/mywidget_en.ts +++ /dev/null @@ -1,69 +0,0 @@ - - - MyWidget - - First - - - - Second - - - - Third - - - - Internationalization Example - - - - E&xit - - - - &File - - - - Language: English - - - - The Main Window - - - - View - - - - Perspective - - - - Isometric - - - - Oblique - - - - Ctrl+Q - File|Quit - - - - - QVDialog - - OK - - - - Cancel - - - - diff --git a/python/pyqt/examples3/i18n/mywidget_eo.qm b/python/pyqt/examples3/i18n/mywidget_eo.qm deleted file mode 100644 index 372cf792..00000000 Binary files a/python/pyqt/examples3/i18n/mywidget_eo.qm and /dev/null differ diff --git a/python/pyqt/examples3/i18n/mywidget_eo.ts b/python/pyqt/examples3/i18n/mywidget_eo.ts deleted file mode 100644 index 381870de..00000000 --- a/python/pyqt/examples3/i18n/mywidget_eo.ts +++ /dev/null @@ -1,72 +0,0 @@ - - - MyWidget - - &File - &Dosiero - - - Ctrl+Q - Ctrl+F - - - E&xit... - &Fini... - - - First - Unue - - - Internationalization Example - Ekzemplo pri internaciigo - - - Isometric - Isometria - - - Language: English - Lingvo: Esperanto (ĈĜĤĴŜŬĉÄĥĵÅÅ­) - - - Oblique - Oblikva - - - Perspective - Perspektiva - - - Second - Due - - - The Main Window - La Ĉeffenestro - - - Third - Trie - - - View - Aspekto - - - E&xit - - - - - QVDialog - - OK - - - - Cancel - - - - diff --git a/python/pyqt/examples3/i18n/mywidget_fr.qm b/python/pyqt/examples3/i18n/mywidget_fr.qm deleted file mode 100644 index 12a84640..00000000 Binary files a/python/pyqt/examples3/i18n/mywidget_fr.qm and /dev/null differ diff --git a/python/pyqt/examples3/i18n/mywidget_fr.ts b/python/pyqt/examples3/i18n/mywidget_fr.ts deleted file mode 100644 index a029084a..00000000 --- a/python/pyqt/examples3/i18n/mywidget_fr.ts +++ /dev/null @@ -1,68 +0,0 @@ - - - MyWidget - - View - Vue - - - &File - &Fichier - - - E&xit - &Quitter - - - First - Premier - - - Third - Troisième - - - Language: English - Langage : Français - - - The Main Window - La fenêtre principale - - - Ctrl+Q - Ctrl+Q - - - Oblique - Oblique - - - Second - Second - - - Isometric - Isométrique - - - Perspective - Perspective - - - Internationalization Example - Exemple d'internationalisation - - - - QVDialog - - OK - - - - Cancel - - - - diff --git a/python/pyqt/examples3/i18n/mywidget_it.qm b/python/pyqt/examples3/i18n/mywidget_it.qm deleted file mode 100644 index 075bee25..00000000 Binary files a/python/pyqt/examples3/i18n/mywidget_it.qm and /dev/null differ diff --git a/python/pyqt/examples3/i18n/mywidget_it.ts b/python/pyqt/examples3/i18n/mywidget_it.ts deleted file mode 100644 index a450deb4..00000000 --- a/python/pyqt/examples3/i18n/mywidget_it.ts +++ /dev/null @@ -1,72 +0,0 @@ - - - MyWidget - - E&xit... - &Esci... - - - First - Primo - - - Internationalization Example - Esempio di localizzazione - - - Isometric - Isometrica - - - Language: English - Lingua: Italiano - - - Oblique - Obliqua - - - Perspective - Prospettica - - - Second - Secondo - - - The Main Window - La Finestra Principale - - - Third - Terzo - - - View - Vista - - - E&xit - - - - Ctrl+Q - - - - &File - - - - - QVDialog - - OK - - - - Cancel - - - - diff --git a/python/pyqt/examples3/i18n/mywidget_jp.qm b/python/pyqt/examples3/i18n/mywidget_jp.qm deleted file mode 100644 index 8942dd7c..00000000 Binary files a/python/pyqt/examples3/i18n/mywidget_jp.qm and /dev/null differ diff --git a/python/pyqt/examples3/i18n/mywidget_jp.ts b/python/pyqt/examples3/i18n/mywidget_jp.ts deleted file mode 100644 index 2a7345f6..00000000 --- a/python/pyqt/examples3/i18n/mywidget_jp.ts +++ /dev/null @@ -1,68 +0,0 @@ - - - MyWidget - - &File - ファイル(&F) - - - Ctrl+Q - Ctrl+Q - - - E&xit - 終了(&X) - - - First - 第一行 - - - Internationalization Example - 国際化(i18n)ã®ä¾‹ - - - Isometric - 等角投影法 - - - Language: English - 言語: 日本語 - - - Oblique - æ–œã‚投影法 - - - Perspective - é è¿‘法 - - - Second - 第二行 - - - The Main Window - メインウィンドウ - - - Third - 第三行 - - - View - è¡¨ç¤ºæ–¹å¼ - - - - QVDialog - - OK - - - - Cancel - - - - diff --git a/python/pyqt/examples3/i18n/mywidget_ko.qm b/python/pyqt/examples3/i18n/mywidget_ko.qm deleted file mode 100644 index dccc2ba9..00000000 Binary files a/python/pyqt/examples3/i18n/mywidget_ko.qm and /dev/null differ diff --git a/python/pyqt/examples3/i18n/mywidget_ko.ts b/python/pyqt/examples3/i18n/mywidget_ko.ts deleted file mode 100644 index acc8f9b5..00000000 --- a/python/pyqt/examples3/i18n/mywidget_ko.ts +++ /dev/null @@ -1,68 +0,0 @@ - - - MyWidget - - &File - 파ì¼&F - - - Ctrl+Q - Ctrl+E - - - E&xit - 종료&X - - - First - 첫번째 - - - Internationalization Example - 국제화 예제 - - - Isometric - Isometric - - - Language: English - 언어 : 한국어 - - - Oblique - Oblique - - - Perspective - Perspective - - - Second - ë‘번째 - - - The Main Window - ë©”ì¸ ìœˆë„ìš° - - - Third - 세번째 - - - View - 보기 - - - - QVDialog - - OK - - - - Cancel - - - - diff --git a/python/pyqt/examples3/i18n/mywidget_no.qm b/python/pyqt/examples3/i18n/mywidget_no.qm deleted file mode 100644 index 2adc1361..00000000 Binary files a/python/pyqt/examples3/i18n/mywidget_no.qm and /dev/null differ diff --git a/python/pyqt/examples3/i18n/mywidget_no.ts b/python/pyqt/examples3/i18n/mywidget_no.ts deleted file mode 100644 index 341c6647..00000000 --- a/python/pyqt/examples3/i18n/mywidget_no.ts +++ /dev/null @@ -1,68 +0,0 @@ - - - MyWidget - - View - Visning - - - &File - &Fil - - - E&xit - &Slutt - - - First - Første - - - Third - Tredje - - - Language: English - SprÃ¥k: Norsk - - - The Main Window - Hovedvinduet - - - Ctrl+Q - Ctrl+S - - - Oblique - Skjev - - - Second - Andre - - - Isometric - Isometrisk - - - Perspective - Perspektiv - - - Internationalization Example - Internasjonaliseringseksempel - - - - QVDialog - - OK - - - - Cancel - - - - diff --git a/python/pyqt/examples3/i18n/mywidget_ru.qm b/python/pyqt/examples3/i18n/mywidget_ru.qm deleted file mode 100644 index ebc512ec..00000000 Binary files a/python/pyqt/examples3/i18n/mywidget_ru.qm and /dev/null differ diff --git a/python/pyqt/examples3/i18n/mywidget_ru.ts b/python/pyqt/examples3/i18n/mywidget_ru.ts deleted file mode 100644 index 07070b03..00000000 --- a/python/pyqt/examples3/i18n/mywidget_ru.ts +++ /dev/null @@ -1,68 +0,0 @@ - - - MyWidget - - View - Вид - - - &File - Файл - - - E&xit - Выход - - - First - Первый - - - Third - Третий - - - Language: English - Язык: РуÑÑкий - - - The Main Window - Главное окно - - - Oblique - КурÑив - - - Second - Второй - - - Isometric - ИзометричеÑкий - - - Perspective - ПерÑпектива - - - Internationalization Example - Пример интернациноализации - - - Ctrl+Q - - - - - QVDialog - - OK - - - - Cancel - - - - diff --git a/python/pyqt/examples3/i18n/mywidget_zh.qm b/python/pyqt/examples3/i18n/mywidget_zh.qm deleted file mode 100644 index a890c096..00000000 Binary files a/python/pyqt/examples3/i18n/mywidget_zh.qm and /dev/null differ diff --git a/python/pyqt/examples3/i18n/mywidget_zh.ts b/python/pyqt/examples3/i18n/mywidget_zh.ts deleted file mode 100644 index 8b015d6d..00000000 --- a/python/pyqt/examples3/i18n/mywidget_zh.ts +++ /dev/null @@ -1,68 +0,0 @@ - - - MyWidget - - View - 视图 - - - &File - 文件[&F] - - - E&xit - 退出[&x] - - - First - 第一个 - - - Third - 第三个 - - - Language: English - 语言: 简体中文 - - - The Main Window - ä¸»çª—å£ - - - Ctrl+Q - Ctrl+Q - - - Oblique - 斜投影 - - - Second - 第二个 - - - Isometric - 等角投影 - - - Perspective - é€è§†æŠ•å½± - - - Internationalization Example - 国际化范例 - - - - QVDialog - - OK - - - - Cancel - - - - diff --git a/python/pyqt/examples3/lineedits.py b/python/pyqt/examples3/lineedits.py deleted file mode 100755 index 631d14be..00000000 --- a/python/pyqt/examples3/lineedits.py +++ /dev/null @@ -1,140 +0,0 @@ -#!/usr/bin/env python - -#**************************************************************************** -#** $Id$ -#** -#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved. -#** -#** This file is part of an example program for PyQt. This example -#** program may be used, distributed and modified without limitation. -#** -#*****************************************************************************/ - -import sys -from qt import * - -TRUE = 1 -FALSE = 0 - -class LineEdits(QGroupBox): - def __init__(self, parent = None, name = None): - QGroupBox.__init__(self, 0, Qt.Horizontal, "Line Edits", parent, name) - - self.setMargin(10) - - box = QVBoxLayout(self.layout()) - - row1 = QHBoxLayout(box) - row1.setMargin(5) - - label = QLabel("Echo Mode: ", self) - row1.addWidget(label) - - combo1 = QComboBox(FALSE, self) - row1.addWidget(combo1) - combo1.insertItem("Normal", -1) - combo1.insertItem("Password", -1) - combo1.insertItem("No Echo", -1) - - self.connect(combo1, SIGNAL("activated(int)"), self.slotEchoChanged) - self.lined1 = QLineEdit(self) - box.addWidget(self.lined1) - - row2 = QHBoxLayout(box) - row2.setMargin(5) - - label = QLabel("Validator: ", self) - row2.addWidget(label) - - combo2 = QComboBox(FALSE, self) - row2.addWidget(combo2) - combo2.insertItem("No Validator", -1) - combo2.insertItem("Integer Validator", -1) - combo2.insertItem("Double Validator", -1) - - self.connect(combo2, SIGNAL("activated(int)"), self.slotValidatorChanged) - - self.lined2 = QLineEdit(self) - box.addWidget(self.lined2) - - row3 = QHBoxLayout(box) - row3.setMargin(5) - - label = QLabel("Alignment: ", self) - row3.addWidget(label) - - combo3 = QComboBox(FALSE, self) - row3.addWidget(combo3) - combo3.insertItem("Left", -1) - combo3.insertItem("Centered", -1) - combo3.insertItem("Right", -1) - - self.connect(combo3, SIGNAL("activated(int)"), self.slotAlignmentChanged) - self.lined3 = QLineEdit(self) - box.addWidget(self.lined3) - - row4 = QHBox(self) - box.addWidget(row4) - row4.setMargin(5) - - QLabel("Read-Only: ", row4) - - combo4 = QComboBox(FALSE, row4) - combo4.insertItem("False", -1) - combo4.insertItem("True", -1) - - self.connect(combo4, SIGNAL("activated(int)"), self.slotReadOnlyChanged) - - self.lined4 = QLineEdit(self) - box.addWidget(self.lined4) - - self.lined1.setFocus() - - def slotEchoChanged(self, i): - if i == 0: - self.lined1.setEchoMode(QLineEdit.Normal) - elif i == 1: - self.lined1.setEchoMode(QLineEdit.Password) - elif i == 2: - self.lined1.setEchoMode(QLineEdit.NoEcho) - - self.lined1.setFocus() - - def slotValidatorChanged(self, i): - if i == 0: - self.lined2.setValidator(None) - elif i == 1: - self.lined2.setValidator(QIntValidator(self.lined2)) - elif i == 2: - self.lined2.setValidator(QDoubleValidator(-999.0, 999.0, 2, self.lined2)) - - self.lined2.setText("") - self.lined2.setFocus() - - def slotAlignmentChanged(self, i): - if i == 0: - self.lined3.setAlignment(QLineEdit.AlignLeft) - elif i == 1: - self.lined3.setAlignment(QLineEdit.AlignCenter) - elif i == 2: - self.lined3.setAlignment(QLineEdit.AlignRight) - - self.lined3.setFocus() - - def slotReadOnlyChanged(self, i): - if i == 0: - self.lined4.setReadOnly(FALSE) - elif i == 1: - self.lined4.setReadOnly(TRUE) - - self.lined4.setFocus() - - -if __name__=='__main__': - app = QApplication( sys.argv ) - - lineedits = LineEdits() - lineedits.setCaption("Lineedits - PyQt Example") - lineedits.show() - app.setMainWidget(lineedits) - app.exec_loop() diff --git a/python/pyqt/examples3/listbox.py b/python/pyqt/examples3/listbox.py deleted file mode 100755 index a149500e..00000000 --- a/python/pyqt/examples3/listbox.py +++ /dev/null @@ -1,176 +0,0 @@ -#!/usr/bin/env python - -"""************************************************************************** -** $Id$ -** -** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. -** -** This file is part of an example program for Qt. This example -** program may be used, distributed and modified without limitation. -** -***************************************************************************""" - -import sys -from qt import * - -FALSE = 0 -TRUE = 1 - -class ListBoxDemo( QWidget ): - def __init__( self, parent=None, name=None ): - QWidget.__init__( self, parent, name ) - b = FALSE - g = QGridLayout( self, 2, 2, 6 ) - - g.addWidget( QLabel( "Configuration:", self ), 0, 0 ) - g.addWidget( QLabel( "Result:", self ), 0, 1 ) - - self.l = QListBox( self ) - g.addWidget( self.l, 1, 1 ) - self.l.setFocusPolicy( QWidget.StrongFocus ) - - v = QVBoxLayout( ) - g.addLayout( v, 1, 0 ) - - bg = QButtonGroup( self, None ) - - b = QRadioButton( "Fixed number of columns,\n" - "as many rows as needed.", - self ) - bg.insert( b ) - v.addWidget( b ) - b.setChecked( TRUE ) - self.connect( b, SIGNAL("clicked()"), self.setNumCols ) - h = QHBoxLayout() - v.addLayout( h ) - h.addSpacing( 30 ) - h.addSpacing( 100 ) - h.addWidget( QLabel( "Columns:", self ) ) - self.columns = QSpinBox( self ) - h.addWidget( self.columns ) - - v.addSpacing( 12 ) - - b = QRadioButton( "As many columns as fit on-screen,\n" - "as many rows as needed.", - self ) - bg.insert( b ) - v.addWidget( b ) - self.connect( b, SIGNAL("clicked()"), self.setColsByWidth ) - - v.addSpacing( 12 ) - - b = QRadioButton( "Fixed number of rows,\n" - "as many columns as needed.", - self ) - bg.insert( b ) - v.addWidget( b ) - self.connect( b, SIGNAL("clicked()"), self.setNumRows ) - h = QHBoxLayout() - v.addLayout( h ) - h.addSpacing( 30 ) - h.addSpacing( 100 ) - h.addWidget( QLabel( "Rows:", self ) ) - self.rows = QSpinBox( self ) - self.rows.setEnabled( FALSE ) - h.addWidget( self.rows ) - - v.addSpacing( 12 ) - - b = QRadioButton( "As many rows as fit on-screen,\n" - "as many columns as needed.", - self ) - bg.insert( b ) - v.addWidget( b ) - self.connect( b, SIGNAL("clicked()"), self.setRowsByHeight ) - - v.addSpacing( 12 ) - - cb = QCheckBox( "Variable-height rows", self ) - cb.setChecked( TRUE ) - self.connect( cb, SIGNAL("toggled(bool)"), self.setVariableHeight ) - v.addWidget( cb ) - v.addSpacing( 6 ) - - cb = QCheckBox( "Variable-width columns", self ) - self.connect( cb, SIGNAL("toggled(bool)"), self.setVariableWidth ) - v.addWidget( cb ) - - cb = QCheckBox( "Extended-Selection", self ) - self.connect( cb, SIGNAL("toggled(bool)"), self.setMultiSelection ) - v.addWidget( cb ) - - pb = QPushButton( "Sort ascending", self ) - self.connect( pb, SIGNAL("clicked()"), self.sortAscending ) - v.addWidget( pb ) - - pb = QPushButton( "Sort descending", self ) - self.connect( pb, SIGNAL("clicked()"), self.sortDescending ) - v.addWidget( pb ) - - v.addStretch( 100 ) - - i = 0 - while i <= 2560: - i+=1 - self.l.insertItem( str(QString.fromLatin1( "Item " )) + str(QString.number( i )), i ) - self.columns.setRange( 1, 256 ) - self.columns.setValue( 1 ) - self.rows.setRange( 1, 256 ) - self.rows.setValue( 256 ) - - self.connect( self.columns, SIGNAL("valueChanged(int)"), self.setNumCols ) - self.connect( self.rows, SIGNAL("valueChanged(int)"), self.setNumRows ) - - # slots - def setNumCols( self ): - self.columns.setEnabled( TRUE ) - self.rows.setEnabled( FALSE ) - self.l.setColumnMode( self.columns.value() ) - - def setNumRows( self ): - self.columns.setEnabled( FALSE ) - self.rows.setEnabled( TRUE ) - self.l.setRowMode( self.rows.value() ) - - def setRowsByHeight( self ): - self.columns.setEnabled( FALSE ) - self.rows.setEnabled( FALSE ) - self.l.setRowMode( QListBox.FitToHeight ) - - def setColsByWidth( self ): - self.columns.setEnabled( FALSE ) - self.rows.setEnabled( FALSE ) - self.l.setColumnMode( QListBox.FitToWidth ) - - def setVariableWidth( self, b ): - self.l.setVariableWidth( b ) - - def setVariableHeight( self, b ): - self.l.setVariableHeight( b ) - - def setMultiSelection( self, b ): - self.l.clearSelection() - if b : - self.l.setSelectionMode( QListBox.Extended ) - else: - self.l.setSelectionMode( QListBox.Single ) - - def sortAscending( self ): - self.l.sort( TRUE ) - - def sortDescending( self ): - self.l.sort( FALSE ) - - -def main( args ): - a = QApplication( args ) - t = ListBoxDemo() - t.setCaption( "Qt Example - Listbox" ) - a.setMainWidget( t ) - t.show() - - a.exec_loop() - -if __name__=="__main__": - main(sys.argv) diff --git a/python/pyqt/examples3/listboxcombo.py b/python/pyqt/examples3/listboxcombo.py deleted file mode 100755 index 4a909861..00000000 --- a/python/pyqt/examples3/listboxcombo.py +++ /dev/null @@ -1,167 +0,0 @@ -#!/usr/bin/env python - -"""************************************************************************** -** $Id$ -** -** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. -** -** This file is part of an example program for Qt. This example -** program may be used, distributed and modified without limitation. -** -***************************************************************************""" - -import sys -from qt import * - -FALSE = 0 -TRUE = 1 - -class ListBoxCombo( QVBox ): - # Constructor - # Creates child widgets of the ListBoxCombo widget - def __init__( self, parent=None, name=None ): - QVBox.__init__( self, parent, name ) - - self.setMargin( 5 ) - self.setSpacing( 5 ) - - i = 0 - row1 = QHBox( self ) - row1.setSpacing( 5 ) - - # Create a multi-selection ListBox... - self.lb1 = QListBox( row1 ) - self.lb1.setSelectionMode( QListBox.Multi ) - - # ...insert a pixmap item... - xpm = QPixmap( "qtlogo.png" ) - txt = QString() - QListBoxPixmap( self.lb1, xpm, txt ) - - # ...and 100 text items - for i in range(0, 100, 1) : - xpm = QPixmap() - txt = QString( "Listbox Item %1" ).arg( i ) - if not i % 4 : - xpm = QPixmap( "fileopen.xpm" ) - QListBoxPixmap( self.lb1, xpm, txt ) - - # Create a pushbutton... - arrow1 = QPushButton( " -> ", row1 ) - # ...and connect the clicked SIGNAL with the SLOT slotLeft2Right - self.connect( arrow1, SIGNAL("clicked()"), self.slotLeft2Right ) - - # create an empty single-selection ListBox - self.lb2 = QListBox( row1 ) - - row2 = QHBox( self ) - row2.setSpacing( 5 ) - - box1 = QVBox( row2 ) - box1.setSpacing( 5 ) - - # Create a non-editable Combobox and a label below... - cb1 = QComboBox( FALSE, box1 ) - self.label1 = QLabel( "Current Item: Combobox Item 0", box1 ) - self.label1.setMaximumHeight( self.label1.sizeHint().height() * 2 ) - self.label1.setFrameStyle( QFrame.Panel | QFrame.Sunken ) - - #...and insert 50 items into the Combobox - for i in range( 0, 50, 1 ) : - txt = str( QString( "Combobox Item %1" ).arg( i ) ) - if i % 9 : - cb1.insertItem( txt ) - else : - cb1.listBox().insertItem( MyListBoxItem() ) - - box2 = QVBox( row2 ) - box2.setSpacing( 5 ) - - # Create an editable Combobox and a label below... - cb2 = QComboBox( TRUE, box2 ) - self.label2 = QLabel( "Current Item: Combobox Item 0", box2 ) - self.label2.setMaximumHeight( self.label2.sizeHint().height() * 2 ) - self.label2.setFrameStyle( QFrame.Panel | QFrame.Sunken ) - - # ... and insert 50 items into the Combobox - for i in range(0, 50, 1 ) : - txt = str(QString( "Combobox Item %1" ).arg( i )) - if not i % 4 : - cb2.insertItem( QPixmap( "fileopen.xpm" ), txt ) - else : - cb2.insertItem( txt ) - - # Connect the activated SIGNALs of the Comboboxes with SLOTs - self.connect( cb1, SIGNAL("activated( const QString & )"), self.slotCombo1Activated ) - self.connect( cb2, SIGNAL("activated( const QString & )"), self.slotCombo2Activated ) - - """ SLOT slotLeft2Right - * Copies all selected items of the first ListBox into the second ListBox - """ - def slotLeft2Right( self ): - # Go through all items of the first ListBox - for i in range( 0, self.lb1.count(), 1 ) : - item = self.lb1.item( i ) - # if the item is selected... - if self.lb1.isSelected( i ): #item.isSelected() : - # ...and it is a text item... - if item.pixmap() and not(item.text().isEmpty()): - self.lb2.insertItem( item.pixmap(), item.text() ) - elif not( item.pixmap() ): - self.lb2.insertItem( item.text() ) - elif item.text().isEmpty() : - self.lb2.insertItem( item.pixmap() ) - - """ SLOT slotCombo1Activated( const QString &s ) - * Sets the text of the item which the user just selected in the - * first Combobox (and is now the value of s) to the first Label. - """ - def slotCombo1Activated( self, s ) : - self.label1.setText( str(QString( "Current Item: %1" ).arg( s ) ) ) - - """ SLOT slotCombo2Activated( const QString &s ) - * Sets the text of the item which the user just selected in the - * second Combobox (and is now the value of s) to the second Label. - """ - def slotCombo2Activated( self, s ) : - self.label2.setText( str(QString( "Current Item: %1" ).arg( s ) ) ) - - -class MyListBoxItem( QListBoxItem ): - def __init__( self, parent=None, name=None ): - QListBoxItem.__init__( self, parent, name ) - self.setCustomHighlighting( TRUE ) - - def paint( self, painter ): - # evil trick: find out whether we are painted onto our listbox - in_list_box = 0 - if self.listBox() and self.listBox().viewport() == painter.device(): - in_list_box = 1 - r = QRect( 0, 0, self.width( self.listBox() ), self.height( self.listBox() ) ) - brush = QBrush( Qt.red, Qt.SolidPattern ) - if in_list_box and isSelected(): - painter.eraseRect( r ) - painter.fillRect( 5, 5, self.width( self.listBox() ) - 10, self.height( self.listBox() ) - 10, brush ) - if in_list_box and isCurrent(): - self.listBox().style().drawPrimitive( QStyle.PE_FocusRect, painter, r, self.listBox().colorGroup() ) - - def width( self, QListBox ): - return 100 - - def height( self, QListBox ): - return 16 - - -def main( args ): - a = QApplication( args ) - - listboxcombo = ListBoxCombo() - listboxcombo.resize( 400, 270 ) - listboxcombo.setCaption( "Qt Example - Listboxes and Comboboxes" ) - a.setMainWidget( listboxcombo ) - listboxcombo.show(); - - a.exec_loop() - -if __name__=="__main__": - main(sys.argv) diff --git a/python/pyqt/examples3/marble.png b/python/pyqt/examples3/marble.png deleted file mode 100644 index 49ea3098..00000000 Binary files a/python/pyqt/examples3/marble.png and /dev/null differ diff --git a/python/pyqt/examples3/mdi.py b/python/pyqt/examples3/mdi.py deleted file mode 100755 index 2c1d121c..00000000 --- a/python/pyqt/examples3/mdi.py +++ /dev/null @@ -1,360 +0,0 @@ -#!/usr/bin/env python - -# A simple application. - - -import sys, string -from qt import * - - -fileopen = [ - '16 13 5 1', - '. c #040404', - '# c #808304', - 'a c None', - 'b c #f3f704', - 'c c #f3f7f3', - 'aaaaaaaaa...aaaa', - 'aaaaaaaa.aaa.a.a', - 'aaaaaaaaaaaaa..a', - 'a...aaaaaaaa...a', - '.bcb.......aaaaa', - '.cbcbcbcbc.aaaaa', - '.bcbcbcbcb.aaaaa', - '.cbcb...........', - '.bcb.#########.a', - '.cb.#########.aa', - '.b.#########.aaa', - '..#########.aaaa', - '...........aaaaa' -] - -filesave = [ - '14 14 4 1', - '. c #040404', - '# c #808304', - 'a c #bfc2bf', - 'b c None', - '..............', - '.#.aaaaaaaa.a.', - '.#.aaaaaaaa...', - '.#.aaaaaaaa.#.', - '.#.aaaaaaaa.#.', - '.#.aaaaaaaa.#.', - '.#.aaaaaaaa.#.', - '.##........##.', - '.############.', - '.##.........#.', - '.##......aa.#.', - '.##......aa.#.', - '.##......aa.#.', - 'b.............' -] - -fileprint = [ - '16 14 6 1', - '. c #000000', - '# c #848284', - 'a c #c6c3c6', - 'b c #ffff00', - 'c c #ffffff', - 'd c None', - 'ddddd.........dd', - 'dddd.cccccccc.dd', - 'dddd.c.....c.ddd', - 'ddd.cccccccc.ddd', - 'ddd.c.....c....d', - 'dd.cccccccc.a.a.', - 'd..........a.a..', - '.aaaaaaaaaa.a.a.', - '.............aa.', - '.aaaaaa###aa.a.d', - '.aaaaaabbbaa...d', - '.............a.d', - 'd.aaaaaaaaa.a.dd', - 'dd...........ddd' -] - -document = [ -"12 16 6 1", -" c #040404", -". c None", -"X c white", -"o c #808304", -"O c black", -"+ c #f3f7f3", -" .....", -" XXXXX ....", -" XXXXX X ...", -" XXXXX XX ..", -" XooXX O.", -" X+XXX+XXXO.", -" XXXXXXXXXO.", -" XoooXooXXO.", -" XXXXXXXXXO.", -" XXXXXXXXXO.", -" XoXXoooXXO.", -" XXXXXXXXXO.", -"OXXXXXXXXXO.", -"OXXXXXXXXXO.", -"OOOOOOOOOOO.", -"............" -] - -fileOpenText = \ -''' -Click this button to open a new file.

-You can also select the Open command from the File menu.''' - -fileSaveText = \ -'''Click this button to save the file you are editing.

-You will be prompted for a filename.

-You can also select the Save command from the File menu.''' - -filePrintText = \ -'''Click this button to print the file you are editing.

-You can also select the Print command from the File menu.''' - -True=1 -False=0 - -class ApplicationWindow(QMainWindow): - def __init__(self): - QMainWindow.__init__(self,None,'example application main window',Qt.WDestructiveClose) - - self.filename = QString.null - self.printer = QPrinter() - - self.fileTools = QToolBar(self,'file operations') - - openIcon = QPixmap(fileopen) - self.fileOpen = QToolButton(QIconSet(openIcon),'Open File',QString.null,self.load,self.fileTools,'open file') - - saveIcon = QPixmap(filesave) - self.fileSave = QToolButton(QIconSet(saveIcon),'Save File',QString.null,self.save,self.fileTools,'save file') - printIcon = QPixmap(fileprint) - self.filePrint = QToolButton(QIconSet(printIcon),'Print File',QString.null,self.printDoc,self.fileTools,'print file') - - QWhatsThis.whatsThisButton(self.fileTools) - - QWhatsThis.add(self.fileOpen,fileOpenText) - QMimeSourceFactory.defaultFactory().setPixmap('fileopen',openIcon) - QWhatsThis.add(self.fileSave,fileSaveText) - QWhatsThis.add(self.filePrint,filePrintText) - - self.file = QPopupMenu(self) - self.menuBar().insertItem('&File',self.file) - - self.file.insertItem('&New',self.newDoc,Qt.CTRL + Qt.Key_N) - - id = self.file.insertItem(QIconSet(openIcon),'&Open',self.load,Qt.CTRL + Qt.Key_O) - self.file.setWhatsThis(id,fileOpenText) - - id = self.file.insertItem(QIconSet(saveIcon),'&Save',self.save,Qt.CTRL + Qt.Key_S) - self.file.setWhatsThis(id,fileSaveText) - - id = self.file.insertItem('Save &as',self.saveAs) - self.file.setWhatsThis(id,fileSaveText) - - self.file.insertSeparator() - - id = self.file.insertItem(QIconSet(printIcon),'&Print',self.printDoc,Qt.CTRL + Qt.Key_P) - self.file.setWhatsThis(id,filePrintText) - - self.file.insertSeparator() - - self.file.insertItem('&Close',self,SLOT('close()'),Qt.CTRL + Qt.Key_W) - self.file.insertItem('&Quit',qApp,SLOT('closeAllWindows()'),Qt.CTRL + Qt.Key_Q) - - self.menuBar().insertSeparator() - self.windows = QPopupMenu( self ) - self.windows.setCheckable( True ) - self.connect( self.windows, SIGNAL( "aboutToShow()" ), - self.windowsMenuAboutToShow ) - self.menuBar().insertItem( "&Windows", self.windows ) - - self.help = QPopupMenu(self) - self.menuBar().insertSeparator() - self.menuBar().insertItem('&Help',self.help) - - self.help.insertItem('&About',self.about,Qt.Key_F1) - self.help.insertItem('About &Qt',self.aboutQt) - self.help.insertSeparator() - self.help.insertItem( "What's &This", self, SLOT("whatsThis()"), Qt.SHIFT+Qt.Key_F1) - - self.menuBar().insertSeparator() - - self.vb = QVBox( self ) - self.vb.setFrameStyle( QFrame.StyledPanel | QFrame.Sunken ) - self.ws = QWorkspace( self.vb ) - self.ws.setScrollBarsEnabled( True ) - self.setCentralWidget( self.vb ) - - self.statusBar().message('Ready',2000) - #self.resize(450,600) - - def newDoc(self): - w = MDIWindow( self.ws, "", Qt.WDestructiveClose ) - self.connect( w, PYSIGNAL( "message" ), self.statusBar(), SLOT( "message(const QString&, int )") ) - w.setCaption("unnamed document") - w.setIcon( QPixmap(document) ) - # show the very first window in maximized mode - if len(self.ws.windowList())==0: - w.showMaximized() - else: - w.show() - return w - - def load(self): - fn = QFileDialog.getOpenFileName( QString.null, QString.null, self ) - if not fn.isEmpty(): - w = self.newDoc() - w.load( fn ) - else: - self.statusBar().message( "Loading aborted", 2000 ) - - def save(self): - m = self.ws.activeWindow() - if m: - m.save() - - def saveAs(self): - m = self.ws.activeWindow() - if m: - m.saveAs() - - def printDoc(self): - m = self.ws.activeWindow() - if m: - m.printDoc( self.printer ) - - def closeWindow(self): - m = self.ws.activeWindow() - if m: - m.close() - - def about(self): - QMessageBox.about( self, "Qt Application Example", - "This example demonstrates simple use of\n " - "Qt's Multiple Document Interface (MDI).") - - def aboutQt(self): - QMessageBox.aboutQt( self, "Qt Application Example" ) - - def windowsMenuAboutToShow(self): - self.windows.clear() - cascadeId = self.windows.insertItem("&Cascade", self.ws, SLOT("cascade() ") ) - tileId = self.windows.insertItem("&Tile", self.ws, SLOT("tile()" ) ) - if len(self.ws.windowList())==0 : - self.windows.setItemEnabled( cascadeId, False ) - self.windows.setItemEnabled( tileId, False ) - self.windows.insertSeparator() - windows = self.ws.windowList() - cnt=0 - for i in windows: - id =self.windows.insertItem(i.caption(),self.windowsMenuActivated ) - self.windows.setItemParameter( id, cnt ); - self.windows.setItemChecked( id, self.ws.activeWindow() == i ) - cnt=cnt+1 - - def windowsMenuActivated(self,sid ): - w = self.ws.windowList().at( id ) - if w: - w.showNormal() - w.setFocus() - - -class MDIWindow( QMainWindow): - def __init__(self,parent, name, wflags ): - QMainWindow.__init__(self,parent, name, wflags ) - self.mmovie = 0 - self.medit = QMultiLineEdit( self ) - self.setFocusProxy( self.medit ) - self.setCentralWidget( self.medit ); - - - def load(self, fn ): - self.filename = fn - self.f=QFile( self.filename ) - if not self.f.open( IO_ReadOnly ): - return - - if fn.contains(".gif"): - tmp=QWidget(self) - self.setFocusProxy(tmp) - self.setCentralWidget(tmp) - self.medit.hide() - del self.medit - qm=QMovie(fn) - #ifdef Q_WS_QWS // temporary speed-test hack - #qm->setDisplayWidget(tmp); - #endif - tmp.setBackgroundMode(QWidget.NoBackground) - tmp.show() - self.mmovie=qm - else : - self.mmovie = 0 - t=QTextStream(self.f) - s = t.read() - self.medit.setText( s ) - self.f.close() - self.setCaption( self.filename ) - self.emit(PYSIGNAL( "message"),(QString("Loaded document %1").arg(self.filename),2000 )) - - def save(self): - if self.filename.isEmpty(): - self.saveAs() - return - text = self.medit.text() - output=open(str(self.filename),'w') - output.write(str(text)) - #emit message( QString("Could not write to %1").arg(filename), 2000 ); - #return - output.close() - self.setCaption(self.filename) - self.emit(PYSIGNAL( "message"),(QString("File %1 saved").arg(self.filename),2000 )) - - def saveAs(self): - fn = QFileDialog.getSaveFileName( self.filename, QString.null, self ) - if not fn.isEmpty(): - self.filename = fn - self.save() - else : - self.emit(PYSIGNAL( "message"),(QString("Saving aborted"),2000 )) - - def printDoc(self,printer): - Margin = 10 - pageNo = 1 - - if printer.setup(self): - self.emit(PYSIGNAL( "message"),(QString("Printing..."),2000 )) - p = QPainter() - p.begin(printer) - p.setFont(self.medit.font()) - yPos = 0 - fm = p.fontMetrics() - metrics = QPaintDeviceMetrics(printer) - - for i in range(self.medit.numLines()): - if Margin + yPos > metrics.height() - Margin: - pageNo = pageNo + 1 - self.emit(PYSIGNAL( "message"),(QString("Printing (page %1) ...").arg(pageNo),2000 )) - printer.newPage() - yPos = 0 - - p.drawText(Margin,Margin + yPos,metrics.width(),fm.lineSpacing(),Qt.ExpandTabs | Qt.DontClip,self.medit.textLine(i)) - yPos = yPos + fm.lineSpacing() - - p.end() - self.emit(PYSIGNAL( "message"),(QString("Printing completed"),2000 )) - else: - self.emit(PYSIGNAL( "message"),(QString("Printing aborted"),2000 )) - - -if __name__=='__main__': - a = QApplication(sys.argv) - mw = ApplicationWindow() - mw.setCaption("PyQt Example - Multiple Documents Interface (MDI)") - mw.show() - a.connect(a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()')) - a.exec_loop() diff --git a/python/pyqt/examples3/menu.py b/python/pyqt/examples3/menu.py deleted file mode 100755 index 820da942..00000000 --- a/python/pyqt/examples3/menu.py +++ /dev/null @@ -1,286 +0,0 @@ -#!/usr/bin/env python - -#**************************************************************************** -#** $Id$ -#** -#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved. -#** -#** This file is part of an example program for PyQt. This example -#** program may be used, distributed and modified without limitation. -#** -#*****************************************************************************/ - -import sys, string -from qt import * - -TRUE = 1 -FALSE = 0 - -# XPM -p1_xpm = [ -"16 16 3 1", -" c None", -". c #000000000000", -"X c #FFFFFFFF0000", -" ", -" ", -" .... ", -" .XXXX. ", -" .............. ", -" .XXXXXXXXXXXX. ", -" .XXXXXXXXXXXX. ", -" .XXXXXXXXXXXX. ", -" .XXXXXXXXXXXX. ", -" .XXXXXXXXXXXX. ", -" .XXXXXXXXXXXX. ", -" .XXXXXXXXXXXX. ", -" .XXXXXXXXXXXX. ", -" .XXXXXXXXXXXX. ", -" .............. ", -" " -] - -# XPM -p2_xpm = [ -"16 16 3 1", -" c None", -". c #000000000000", -"X c #FFFFFFFFFFFF", -" ", -" ...... ", -" .XXX.X. ", -" .XXX.XX. ", -" .XXX.XXX. ", -" .XXX..... ", -" .XXXXXXX. ", -" .XXXXXXX. ", -" .XXXXXXX. ", -" .XXXXXXX. ", -" .XXXXXXX. ", -" .XXXXXXX. ", -" .XXXXXXX. ", -" ......... ", -" ", -" " -] - -# XPM -p3_xpm = [ -"16 16 3 1", -" c None", -". c #000000000000", -"X c #FFFFFFFFFFFF", -" ", -" ", -" ......... ", -" ........... ", -" ........ .. ", -" ........... ", -" ........... ", -" ........... ", -" ........... ", -" ...XXXXX... ", -" ...XXXXX... ", -" ...XXXXX... ", -" ...XXXXX... ", -" ......... ", -" ", -" " -] - - -# Auxiliary class to provide fancy menu items with different fonts. -# Used for the "bold" and "underline" menu items in the options menu. - -class MyMenuItem( QCustomMenuItem ): - def __init__( self, s, f ): - QCustomMenuItem.__init__( self ) - self.string = s - self.font = f - - def paint( self, p, cg, act, enabled, x, y, w, h ) : - p.setFont ( self.font ) - p.drawText( x, y, w, h, Qt.AlignLeft | Qt.AlignVCenter | Qt.ShowPrefix | Qt.DontClip, self.string ) - - def sizeHint( self ): - return QFontMetrics( self.font ).size( Qt.AlignLeft | Qt.AlignVCenter | Qt.ShowPrefix | Qt.DontClip, self.string ) - - -# Implementation of MenuExample class - -class MenuExample( QWidget ): - def __init__( self, parent=None, name=None ): - QWidget.__init__( self, parent, name ) - self.p1 = QIconSet( QPixmap ( p1_xpm ) ) - self.p2 = QIconSet( QPixmap ( p2_xpm ) ) - self.p3 = QIconSet( QPixmap ( p3_xpm ) ) - - self.printer = QPopupMenu( self ) - self.printer.insertTearOffHandle() - self.printer.insertItem( "&Print to printer", self.printDoc ) - self.printer.insertItem( "Print to &file", self.printFile ) - self.printer.insertItem( "Print to fa&x", self.fax ) - self.printer.insertSeparator() - self.printer.insertItem( "Printer &Setup", self.printerSetup ) - - self.file = QPopupMenu( self ) - self.file.insertItem( self.p1, "&Open", self.open, Qt.CTRL+Qt.Key_O ) - self.file.insertItem( self.p2, "&New", self.news, Qt.CTRL+Qt.Key_N ) - self.file.insertItem( self.p3, "&Save", self.save, Qt.CTRL+Qt.Key_S ) - self.file.insertItem( "&Close", self.closeDoc, Qt.CTRL+Qt.Key_W ) - self.file.insertSeparator() - self.file.insertItem( "&Print", self.printer, Qt.CTRL+Qt.Key_P ) - self.file.insertSeparator() - self.file.insertItem( "E&xit", qApp, SLOT( "quit()" ), Qt.CTRL+Qt.Key_Q ) - - self.edit = QPopupMenu( self ) - undoID = self.edit.insertItem( "&Undo", self.undo ) - redoID = self.edit.insertItem( "&Redo", self.redo ) - self.edit.setItemEnabled( undoID, FALSE ) - self.edit.setItemEnabled( redoID, FALSE ) - - self.options = QPopupMenu( self ) - self.options.insertTearOffHandle() - self.options.setCaption( "Options" ) - self.options.insertItem( "&Normal Font", self.normal ) - self.options.insertSeparator() - - self.options.polish() # adjust system settings - f = self.options.font() - f.setBold( TRUE ) - self.boldID = self.options.insertItem( MyMenuItem( "Bold", f ) ) - self.options.setAccel( Qt.CTRL+Qt.Key_B, self.boldID ) - self.options.connectItem( self.boldID, self.bold ) - - f = self.options.font() - f.setUnderline( TRUE ) - self.underlineID = self.options.insertItem( MyMenuItem( "Underline", f ) ) - self.options.setAccel( Qt.CTRL+Qt.Key_U, self.underlineID ) - self.options.connectItem( self.underlineID, self.underline ) - - self.isBold = FALSE - self.isUnderline = FALSE - self.options.setCheckable( TRUE ) - - self.help = QPopupMenu( self ) - self.help.insertItem( "&About", self.about, Qt.CTRL+Qt.Key_H ) - self.help.insertItem( "About &Qt", self.aboutQt ) - - self.menu = QMenuBar( self ) - self.menu.insertItem( "&File", self.file ) - self.menu.insertItem( "&Edit", self.edit ) - self.menu.insertItem( "&Options", self.options ) - self.menu.insertSeparator() - self.menu.insertItem( "&Help", self.help ) - self.menu.setSeparator( QMenuBar.InWindowsStyle ) - - msg = QLabel( self ) - msg.setText( "A context menu is available.\n" - "Invoke it by right-clicking or by" - " pressing the 'context' button." ) - msg.setGeometry( 0, self.height() - 60, self.width(), 60 ) - msg.setAlignment( Qt.AlignCenter ) - - self.label = QLabel( self ) - self.label.setGeometry( 20, self.rect().center().y()-20, self.width()-40, 40 ) - self.label.setFrameStyle( QFrame.Box | QFrame.Raised ) - self.label.setLineWidth( 1 ) - self.label.setAlignment( Qt.AlignCenter ) - - self.connect( self, PYSIGNAL( "explain" ), self.label, SLOT( "setText(const QString &" ) ) - - self.setMinimumSize( 100, 80 ) - self.setFocusPolicy( QWidget.ClickFocus ) - - def contextMenuEvent(self, cmev): - contextMenu = QPopupMenu( self ) - caption = QLabel( "Context Menu", self ) - caption.setAlignment( Qt.AlignCenter ) - contextMenu.insertItem( caption ) - contextMenu.insertItem( "&New", self.news, Qt.CTRL+Qt.Key_N ) - contextMenu.insertItem( "&Open...", self.open, Qt.CTRL+Qt.Key_O ) - contextMenu.insertItem( "&Save", self.save, Qt.CTRL+Qt.Key_S ) - submenu = QPopupMenu( self ) - submenu.insertItem( "&Print to printer", self.printDoc ) - submenu.insertItem( "Print to &file", self.printFile ) - submenu.insertItem( "Print to fa&x", self.fax ) - contextMenu.insertItem( "&Print", submenu ) - contextMenu.exec_loop( QCursor.pos() ) - - def open( self ): - self.emit( PYSIGNAL( "explain" ), ( "File/Open selected", ) ) - - def news( self ): - self.emit( PYSIGNAL( "explain" ), ( "File/New selected", ) ) - - def save( self ): - self.emit( PYSIGNAL( "explain" ), ( "File/Save selected", ) ) - - def closeDoc( self ): - self.emit( PYSIGNAL( "explain" ), ( "File/Close selected", ) ) - - def undo( self ): - self.emit( PYSIGNAL( "explain" ), ( "Edit/Undo selected", ) ) - - def redo( self ): - self.emit( PYSIGNAL( "explain" ), ( "Edit/Redo selected", ) ) - - def normal( self ): - self.isBold = FALSE - self.isUnderline = FALSE - font = QFont() - self.label.setFont( font ) - self.options.setItemChecked( self.boldID, self.isBold ) - self.options.setItemChecked( self.underlineID, self.isUnderline ) - self.emit( PYSIGNAL( "explain" ), ( "Options/Normal selected", ) ) - - def bold( self ): - self.isBold = not self.isBold - font = QFont() - font.setBold( self.isBold ) - font.setUnderline( self.isUnderline ) - self.label.setFont( font ) - self.options.setItemChecked( self.boldID, self.isBold ) - self.emit( PYSIGNAL( "explain" ), ( "Options/Bold selected", ) ) - - def underline( self ): - self.isUnderline = not self.isUnderline - font = QFont() - font.setBold( self.isBold ) - font.setUnderline( self.isUnderline ) - self.label.setFont( font ) - self.options.setItemChecked( self.underlineID, self.isUnderline ) - self.emit( PYSIGNAL("explain"), ( "Options/Underline selected", )) - - def about( self ): - QMessageBox.about( self, "Qt Menu Example", - "This example demonstrates simple use of Qt menus.\n" - "You can cut and paste lines from it to your own\n" - "programs." ) - - def aboutQt( self ): - QMessageBox.aboutQt( self, "Qt Menu Example" ) - - def printDoc( self ): - self.emit( PYSIGNAL( "explain" ), ( "File/Printer/Print selected", ) ) - - def printFile( self ): - self.emit( PYSIGNAL( "explain" ), ( "File/Printer/Print To File selected", ) ) - - def fax( self ): - self.emit( PYSIGNAL( "explain" ), ( "File/Printer/Print To Fax selected", ) ) - - def printerSetup( self ): - self.emit( PYSIGNAL( "explain" ), ( "File/Printer/Printer Setup selected", ) ) - - def resizeEvent( self, ev ): - self.label.setGeometry( 20, self.rect().center().y()-20, self.width()-40, 40 ) - - -a = QApplication( sys.argv ) -m = MenuExample() - -m.setCaption( "Qt Examples - Menus" ) -a.setMainWidget( m ) -m.show() -a.exec_loop() diff --git a/python/pyqt/examples3/progress.py b/python/pyqt/examples3/progress.py deleted file mode 100755 index acdbd5aa..00000000 --- a/python/pyqt/examples3/progress.py +++ /dev/null @@ -1,287 +0,0 @@ -#!/usr/bin/env python - -#/**************************************************************************** -#** $Id$ -#** -#** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. -#** -#** This file is part of an example program for Qt. This example -#** program may be used, distributed and modified without limitation. -#** -#** Converted to PyQt3: Hans-Peter Jansen -#** -#*****************************************************************************/ - -from qt import * -import sys -from random import random - -TRUE = 1 -FALSE = 0 - -class AnimatedThingy(QLabel): - def __init__(self, parent, s): - QLabel.__init__(self, parent) - self.nqix = 40 - self.step = 0 - self.ox = [] - self.oy = [] - self.px = [] - self.py = [] - for i in range(self.nqix): - self.ox.append(0) - self.oy.append(0) - self.px.append(0) - self.py.append(0) - self.x0, self.y0, self.x1, self.y1 = 0, 0, 0, 0 - self.dx0 = 2 + int(random() * 8) - self.dy0 = 2 + int(random() * 8) - self.dx1 = 2 + int(random() * 8) - self.dy1 = 2 + int(random() * 8) - self.label = QString(s) - self.setEraseColor(Qt.black) - self.label.append("\n... and wasting CPU\nwith this animation!\n") - - def XXXshow(self): - if not self.isVisible(): - print "bla" - self.startTimer(100) - QWidget.show(self) - - def hide(self): - QWidget.hide(self) - self.killTimers() - - def sizeHint(self): - return QSize(120, 100) - - def timerEvent(self, e): - p, pn = self._painter() - pn.setColor(self.eraseColor()) - p.setPen(pn) - self.step = step = (self.step + 1) % self.nqix - # erase line - p.drawLine(self.ox[step], self.oy[step], self.px[step], self.py[step]) - # calc new line coordinates - self.x0, self.dx0 = self._inc(self.x0, self.dx0, self.width()) - self.y0, self.dy0 = self._inc(self.y0, self.dy0, self.height()) - self.x1, self.dx1 = self._inc(self.x1, self.dx1, self.width()) - self.y1, self.dy1 = self._inc(self.y1, self.dy1, self.height()) - self.ox[step] = self.x0 - self.oy[step] = self.y0 - self.px[step] = self.x1 - self.py[step] = self.y1 - self._drawqix(p, pn, step) - self._drawtxt(p) - - def paintEvent(self, e): - p, pn = self._painter() - p.setClipRect(e.rect()) - for i in range(self.nqix): - self._drawqix(p, pn, i) - self._drawtxt(p) - - def _painter(self): - p = QPainter(self) - pn = p.pen() - pn.setWidth(2) - p.setPen(pn) - return p, pn - - def _drawqix(self, p, pn, step): - c = QColor() - # enhanced rainbow effect - i = (step * 511)/self.nqix - if i > 255: - i = 511 - i - c.setHsv(i, 255, 255) - pn.setColor(c) - p.setPen(pn) - p.drawLine(self.ox[step], self.oy[step], self.px[step], self.py[step]) - - def _drawtxt(self, p): - #p.setPen(self.colorGroup().text()) - p.setPen(Qt.white) - p.drawText(self.rect(), Qt.AlignCenter, self.label) - - def _inc(self, x, dx, b): - x += dx - if x < 0: - x = 0 - dx = 2 + int(random() * 8) - elif x >= b: - x = b-1 - dx = -(2 + int(random() * 8)) - return x, dx - - -class CPUWaster(QWidget): - def __init__(self): - QWidget.__init__(self) - self.first_draw_item = 1000 - self.last_draw_item = 1006 - self.rects = 0 - self.timer_driven = 0 - self.default_label = 0 - self.got_stop = 0 - self.pb = None - menubar = QMenuBar(self, "menu") - file = QPopupMenu() - menubar.insertItem("&File", file) - for i in range(self.first_draw_item, self.last_draw_item + 1): - file.insertItem(self.drawItemText(i), i) - self.connect(menubar, SIGNAL("activated(int)"), self.doMenuItem) - file.insertSeparator() - file.insertItem("Quit", qApp, SLOT("quit()")) - options = QPopupMenu() - menubar.insertItem("&Options", options) - self.td_id = options.insertItem("Timer driven", self.timerDriven) - self.ld_id = options.insertItem("Loop driven", self.loopDriven) - options.insertSeparator() - self.dl_id = options.insertItem("Default label", self.defaultLabel) - self.cl_id = options.insertItem("Custom label", self.customLabel) - options.insertSeparator() - self.md_id = options.insertItem("No minimum duration", self.toggleMinimumDuration) - options.setCheckable(TRUE) - self.options = options - self.menubar = menubar - self.file = file - #self.loopDriven() - self.timerDriven() - #self.defaultLabel() - self.customLabel() - self.setFixedSize(400, 300) - self.setEraseColor(Qt.black) - - def drawItemRects(self, id): - n = id - self.first_draw_item - r = 100 - while n: - n -= 1 - f = 5 - if not n % 3: - f = 4 - r *= f - return r - - def drawItemText(self, id): - return QString("%d Rectangles" % self.drawItemRects(id)) - - # slots - def doMenuItem(self, id): - if id >= self.first_draw_item and id <= self.last_draw_item: - self._draw(self.drawItemRects(id)) - - def stopDrawing(self): - self.got_stop = TRUE - - def timerDriven(self): - self.timer_driven = TRUE - self.options.setItemChecked(self.td_id, TRUE) - self.options.setItemChecked(self.ld_id, FALSE) - - def loopDriven(self): - self.timer_driven = FALSE - self.options.setItemChecked(self.ld_id, TRUE) - self.options.setItemChecked(self.td_id, FALSE) - - def defaultLabel(self): - self.default_label = TRUE - self.options.setItemChecked(self.dl_id, TRUE) - self.options.setItemChecked(self.cl_id, FALSE) - - def customLabel(self): - self.default_label = FALSE - self.options.setItemChecked(self.dl_id, FALSE) - self.options.setItemChecked(self.cl_id, TRUE) - - def toggleMinimumDuration(self): - self.options.setItemChecked(self.md_id, not self.options.isItemChecked(self.md_id)) - - def timerEvent(self, e): - self.pb.setProgress(self.pb.totalSteps() - self.rects) - self.rects -= 1 - p = QPainter(self) - ww = self.width() - wh = self.height() - - if ww > 8 and wh > 8: - c = QColor(int(random() * 255), int(random() * 255), int(random() * 255)) - x = int(random() * (ww-8)) - y = int(random() * (wh-8)) - w = int(random() * (ww-x)) - h = int(random() * (wh-y)) - p.fillRect(x, y, w, h, QBrush(c)) - - if not self.rects or self.got_stop: - self.pb.setProgress(self.pb.totalSteps()) - p = QPainter(self) - p.fillRect(0, 0, self.width(), self.height(), QBrush(self.eraseColor())) - self.enableDrawingItems(TRUE) - self.killTimers() - if not self.default_label: - self.pb.killTimers() - self.l.killTimers() - del self.pb - self.pb = None - - def newProgressDialog(self, label, steps, modal): - d = QProgressDialog(label, "Cancel", steps, self, "progress", modal) - if self.options.isItemChecked(self.md_id): - d.setMinimumDuration(0) - if not self.default_label: - self.l = AnimatedThingy(d, label) - d.setLabel(self.l) - self.l.startTimer(100) - return d - - def enableDrawingItems(self, yes): - for i in range(self.first_draw_item, self.last_draw_item): - self.menubar.setItemEnabled(i, yes) - - def _draw(self, n): - if self.timer_driven: - if self.pb: - qWarning("This cannot happen!") - return - - self.rects = n - self.pb = self.newProgressDialog("Drawing rectangles.\nUsing timer event.", n, FALSE) - self.pb.setCaption("Please Wait") - self.connect(self.pb, SIGNAL("cancelled()"), self.stopDrawing) - self.enableDrawingItems(FALSE) - self.startTimer(10) - self.got_stop = FALSE - else: - lpb = self.newProgressDialog("Drawing rectangles.\nUsing loop.", n, TRUE) - lpb.setCaption("Please Wait") - - p = QPainter(self) - for i in range(n): - lpb.setProgress(i) - if lpb.wasCancelled(): - break - c = QColor(int(random() * 255), int(random() * 255), int(random() * 255)) - x = int(random() * (self.width()-8)) - y = int(random() * (self.height()-8)) - w = int(random() * (self.width()-x)) - h = int(random() * (self.height()-y)) - p.fillRect(x, y, w, h, QBrush(c)) - - lpb.cancel() - del lpb - p.fillRect(0, 0, self.width(), self.height(), QBrush(self.eraseColor())) - - -if __name__ == "__main__": - app = QApplication(sys.argv) - try: - n = int(sys.argv[1]) - except: - n = 1 - for i in range(n): - cpuw = CPUWaster() - if i == 0: - app.setMainWidget(cpuw) - cpuw.show() - app.exec_loop() diff --git a/python/pyqt/examples3/progressbar.py b/python/pyqt/examples3/progressbar.py deleted file mode 100755 index 9aba9ee5..00000000 --- a/python/pyqt/examples3/progressbar.py +++ /dev/null @@ -1,155 +0,0 @@ -#!/usr/bin/env python - -"""*********************************************************************** -** $Id$ -** -** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. -** -** This file is part of an example program for Qt. This example -** program may be used, distributed and modified without limitation. -** -**************************************************************************""" - -#import pdb -import sys -from qt import * - -FALSE = 0 -TRUE = 1 - -class ProgressBar( QButtonGroup ): - # Constructor - # Creates child widgets of the ProgressBar widget - def __init__( self, parent=None, name=None ): - QButtonGroup.__init__( self, 0, Qt.Horizontal, "Progress Bar", parent, name ) - - self.timer = QTimer() - - self.setMargin( 10 ) - toplayout = QGridLayout( self.layout(), 2, 2, 5) - - self.setRadioButtonExclusive( TRUE ) - - # insert three radiobuttons which the user can use - # to set the speed of the progress and two pushbuttons - # to start/pause/continue and reset the progress - self.slow = QRadioButton( "&Slow", self ) - self.normal = QRadioButton( "&Normal", self ) - self.fast = QRadioButton( "&Fast", self ) - vb1 = QVBoxLayout( ) - toplayout.addLayout( vb1, 0, 0 ) - vb1.addWidget( self.slow ) - vb1.addWidget( self.normal ) - vb1.addWidget( self.fast ) - - # two push buttons, one for start, for for reset. - self.start = QPushButton( "&Start", self ) - self.reset = QPushButton( "&Reset", self ) - - vb2 = QVBoxLayout() - toplayout.addLayout( vb2, 0, 1 ) - vb2.addWidget( self.start ) - vb2.addWidget( self.reset ) - - # Create the progressbar - self.progress = QProgressBar( 100, self ) - #self.progress.setStyle( QMotifStyle() ) - toplayout.addMultiCellWidget( self.progress, 1, 1, 0, 1 ) - - # connect the clicked() SIGNALs of the pushbuttons to SLOTs - self.connect( self.start, SIGNAL("clicked()"), self.slotStart ) - self.connect( self.reset, SIGNAL("clicked()"), self.slotReset ) - - # connect the timeout() SIGNAL of the progress-timer to a SLOT - self.connect( self.timer, SIGNAL("timeout()"), self.slotTimeout ) - # Let's start with normal speed... - self.normal.setChecked( TRUE ) - - # some contraints - self.start.setFixedWidth( 80 ) - self.setMinimumWidth( 300 ) - - # SLOT slotStart - # This SLOT is called if the user clicks start/pause/continue button - def slotStart( self ): - # If the progress bar is at the beginning... - if self.progress.progress() == -1 : - # ...set according to the checked speed-radiobutton the - # the number of steps which are needed to complete the process - if self.slow.isChecked(): - self.progress.setTotalSteps( 10000 ) - elif self.normal.isChecked() : - self.progress.setTotalSteps( 1000 ) - else : - self.progress.setTotalSteps( 50 ) - - # disable the speed-radiobuttons - self.slow.setEnabled( FALSE ) - self.normal.setEnabled( FALSE ) - self.fast.setEnabled( FALSE ) - - # If the progress is not running... - if not self.timer.isActive() : - # ...start the timer (and so the progress) with a interval of 1 ms... - self.timer.start( 1 ) - # ...and rename the start/pause/continue button to Pause - self.start.setText( "&Pause" ) - else : # if the prgress is running... - # ...stop the timer (and so the prgress)... - self.timer.stop() - # ...and rename the start/pause/continue button to Continue - self.start.setText( "&Continue" ) - - # SLOT slotReset - # This SLOT is called when the user clicks the reset button - def slotReset( self ): - # stop the timer and progress - self.timer.stop() - - # rename the start/pause/continue button to Start... - self.start.setText( "&Start" ) - # ...and enable this button - self.start.setEnabled( TRUE ) - - # enable the speed-radiobuttons - self.slow.setEnabled( TRUE ) - self.normal.setEnabled( TRUE ) - self.fast.setEnabled( TRUE ) - - # reset the progressbar - self.progress.reset() - - # SLOT slotTimeout - # This SLOT is called each ms when the timer is - # active (== progress is running) - def slotTimeout( self ): - p = self.progress.progress() - - # If the progress is complete... - if p == self.progress.totalSteps() : - # ...rename the start/pause/continue button to Start... - self.start.setText( "&Start" ) - # ...and disable it... - self.start.setEnabled( FALSE ) - # ...and return - return - - # If the process is not complete increase it - p += 1 - self.progress.setProgress( p ) - - - #QPushButton *start, *pause, *reset; - -def main( args ): - a = QApplication( args ) - - progressbar = ProgressBar() - progressbar.setCaption("Qt Example - ProgressBar") - a.setMainWidget(progressbar) - progressbar.show() - - a.exec_loop() - -if __name__=="__main__": - main(sys.argv) diff --git a/python/pyqt/examples3/qdir.py b/python/pyqt/examples3/qdir.py deleted file mode 100755 index 0da10ebe..00000000 --- a/python/pyqt/examples3/qdir.py +++ /dev/null @@ -1,323 +0,0 @@ -#!/usr/bin/env python -# -# 2005-02-12 initial version hp - -import os -import pickle -from qt import * -from dirview import Directory, DirectoryView - -bookmarks = [ - "22 14 8 1", - "# c #000080", - "a c #585858", - "b c #000000", - "c c #ffffff", - "d c #ffffff", - "e c #ffffff", - "f c #000000", - ". c None", - "...bb.................", - "..bacb....bbb.........", - "..badcb.bbccbab.......", - "..bacccbadccbab.......", - "..baecdbcccdbab.......", - "..bacccbacccbab.......", - "..badcdbcecdfab.......", - "..bacecbacccbab.......", - "..baccdbcccdbab.......", - "...badcbacdbbab.......", - "....bacbcbbccab.......", - ".....babbaaaaab.......", - ".....bbabbbbbbb.......", - "......bb.............." -] - -home = [ - "16 15 4 1", - "# c #000000", - "a c #ffffff", - "b c #c0c0c0", - ". c None", - ".......##.......", - "..#...####......", - "..#..#aabb#.....", - "..#.#aaaabb#....", - "..##aaaaaabb#...", - "..#aaaaaaaabb#..", - ".#aaaaaaaaabbb#.", - "###aaaaaaaabb###", - "..#aaaaaaaabb#..", - "..#aaa###aabb#..", - "..#aaa#.#aabb#..", - "..#aaa#.#aabb#..", - "..#aaa#.#aabb#..", - "..#aaa#.#aabb#..", - "..#####.######.." -] - - -class PixmapView(QScrollView): - def __init__(self, parent): - QScrollView.__init__(self, parent) - self.pixmap = None - self.viewport().setBackgroundMode(self.PaletteBase) - - def setPixmap(self, pix): - self.pixmap = pix - self.resizeContents(pix.size().width(), pix.size().height()) - self.viewport().repaint(False) - - def drawContents(self, p, cx, cy, cw, ch): - p.fillRect(cx, cy, cw, ch, self.colorGroup().brush(QColorGroup.Base)) - p.drawPixmap(0, 0, self.pixmap) - - -class Preview(QWidgetStack): - def __init__(self, parent): - QWidgetStack.__init__(self, parent) - self.normalText = QMultiLineEdit(self) - self.normalText.setReadOnly(True) - self.html = QTextView(self) - self.pixmap = PixmapView(self) - self.raiseWidget(self.normalText) - - def showPreview(self, url, size): - if url.isLocalFile(): - path = url.path() - fi = QFileInfo(path) - if fi.isFile() and fi.size() > size * 1000: - self.normalText.setText( - "The File\n%s\nis too large, so I don't show it!" % path) - self.raiseWidget(self.normalText) - return - pix = QPixmap(path) - if pix.isNull(): - if fi.isFile(): - err = False - try: - text = open(path.latin1(), "r").read() - except IOError, msg: - text = QString(str(msg)) - err = True - if not err and fi.extension().lower().contains("htm"): - url = self.html.mimeSourceFactory().makeAbsolute( - path, self.html.context()) - self.html.setText(text, url) - self.raiseWidget(self.html) - return - else: - self.normalText.setText(text) - self.raiseWidget(self.normalText) - return - else: - self.normalText.setText("") - self.raiseWidget(self.normalText) - else: - self.pixmap.setPixmap(pix) - self.raiseWidget(self.pixmap) - else: - self.normalText.setText("I only show local files!") - self.raiseWidget(self.normalText) - - -# We can't instantiate QFilePreview directly because it is abstract. Note that -# the previewUrl() abstract is patched in later to work around the fact that -# you can't multiply inherit from more than one wrapped class. -class FilePreview(QFilePreview): - pass - - -class PreviewWidget(QVBox): - def __init__(self, parent): - QVBox.__init__(self, parent) - self.setSpacing( 5 ) - self.setMargin( 5 ) - row = QHBox(self) - row.setSpacing(5) - QLabel("Only show files smaller than: ", row) - self.sizeSpinBox = QSpinBox(1, 10000, 1, row) - self.sizeSpinBox.setSuffix(" KB") - self.sizeSpinBox.setValue(128) - row.setFixedHeight(10 + self.sizeSpinBox.sizeHint().height()) - self.__preview = Preview(self) - # workaround sip inability of multiple inheritance - # create a local QFilePreview instance and redirect - # the method, which is called on preview, to us - self.preview = FilePreview() - self.preview.previewUrl = self.previewUrl - - def previewUrl(self, url): - self.__preview.showPreview(url, self.sizeSpinBox.value()) - - -class CustomFileDialog(QFileDialog): - def __init__(self, preview = False): - QFileDialog.__init__(self, None, None, True) - self.bookmarkFile = ".pybookmarks" - self.bookmarkList = [] - if os.path.exists(self.bookmarkFile): - try: - self.bookmarkList = pickle.loads(open(self.bookmarkFile, "rb").read()) - except IOError, msg: - print msg - self.setDir("/") - self.dirView = DirectoryView(self, None, True) - self.dirView.addColumn("") - self.dirView.header().hide() - root = Directory(self.dirView, "/") - root.setOpen(True) - self.dirView.setFixedWidth(200) - self.addLeftWidget(self.dirView) - p = QPushButton(self) - p.setPixmap(QPixmap(bookmarks)) - QToolTip.add(p, "Bookmarks") - self.bookmarkMenu = QPopupMenu(self) - self.connect(self.bookmarkMenu, SIGNAL("activated(int)"), - self.bookmarkChosen) - self.addId = self.bookmarkMenu.insertItem("Add bookmark") - self.bookmarkMenu.insertSeparator() - for l in self.bookmarkList: - self.bookmarkMenu.insertItem(l) - p.setPopup(self.bookmarkMenu) - self.addToolButton(p, True) - self.connect(self.dirView, PYSIGNAL("folderSelected(const QString &)"), - self.setDir2) - self.connect(self, SIGNAL("dirEntered(const QString &)"), - self.dirView.setDir) - b = QToolButton(self) - QToolTip.add(b, "Go Home!") - b.setPixmap(QPixmap(home)) - self.connect(b, SIGNAL("clicked()"), self.goHome) - self.addToolButton(b) - - if preview: - self.setContentsPreviewEnabled(True) - pw = PreviewWidget(self) - self.setContentsPreview(pw, pw.preview) - self.setViewMode(QFileDialog.List) - self.setPreviewMode(QFileDialog.Contents) - - w = self.width() - h = self.height() - if preview: - self.resize(w + w / 2, h + h / 3) - else: - self.resize(w + w / 3, h + h / 4) - - def done(self, r): - if self.bookmarkList: - try: - open(self.bookmarkFile, "wb").write(pickle.dumps(self.bookmarkList)) - except IOError, msg: - print msg - return QFileDialog.done(self, r) - - def showEvent(self, e): - QFileDialog.showEvent(self, e) - self.dirView.setDir(self.dirPath()) - - def setDir2(self, path): - self.blockSignals(True) - self.setDir(path) - self.blockSignals(False) - - def bookmarkChosen(self, i): - if i == self.addId: - # keep bookmarks pythonic - dp = self.dirPath().latin1() - if dp not in self.bookmarkList: - self.bookmarkList.append(dp) - self.bookmarkMenu.insertItem(dp) - else: - self.setDir(self.bookmarkMenu.text(i)) - - def goHome(self): - if os.getenv("HOME"): - self.setDir(os.getenv("HOME")) - else: - self.setDir("/") - - -if __name__ == '__main__': - import sys - import getopt - - def usage(msg = None): - if msg: - print >> sys.stderr, msg - print >> sys.stderr, """\ -usage: qdir [--any | --dir | --custom] [--preview] [--default f] {--filter f} [caption ...] - --any Get any filename, need not exist. - --dir Return a directory rather than a file. - --custom Opens a customized QFileDialog with - dir browser, bookmark menu, etc. - --preview Show a preview widget. - --default f Start from directory/file f. - --filter f eg. '*.gif' '*.bmp' - caption ... Caption for dialog. -""" - sys.exit(1) - - def main(): - options = ["help", "any", "dir", "custom", "preview", "default=", "filter="] - mode = QFileDialog.ExistingFile - preview = False - custom = False - start = None - filter = QString.null - app = QApplication(sys.argv) - - try: - optlist, args = getopt.getopt(sys.argv[1:], "h", options) - except getopt.error, msg: - usage(msg) - - for opt, par in optlist: - if opt in ("-h", "--help"): - usage() - elif opt == "--any": - mode = QFileDialog.AnyFile - elif opt == "--dir": - mode = QFileDialog.Directory - elif opt == "--default": - start = par - elif opt == "--filter": - filter = par - elif opt == "--preview": - preview = True - elif opt == "--custom": - custom = True - if args: - caption = " ".join(args) - elif mode == QFileDialog.Directory: - caption = "Choose directory..." - else: - caption = "Choose file..." - if not start: - start = QDir.currentDirPath() - if not custom: - fd = QFileDialog(QString.null, filter, None, None, True) - fd.setMode(mode) - if preview: - fd.setContentsPreviewEnabled(True) - pw = PreviewWidget(fd) - fd.setContentsPreview(pw, pw.preview) - fd.setViewMode(QFileDialog.List) - fd.setPreviewMode(QFileDialog.Contents) - w = fd.width() - h = fd.height() - fd.resize(w + w / 3, h + h / 4) - fd.setCaption(caption) - fd.setSelection(start) - if fd.exec_loop() == QDialog.Accepted: - print "%s\n" % fd.selectedFile().latin1() - return 0 - else: - return 1 - else: - fd = CustomFileDialog(preview) - fd.exec_loop() - return 1 - - sys.exit(main()) diff --git a/python/pyqt/examples3/qmag.py b/python/pyqt/examples3/qmag.py deleted file mode 100755 index 6a136481..00000000 --- a/python/pyqt/examples3/qmag.py +++ /dev/null @@ -1,233 +0,0 @@ -#!/usr/bin/env python - -#**************************************************************************** -#** $Id$ -#** -#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved. -#** -#** This file is part of an example program for PyQt. This example -#** program may be used, distributed and modified without limitation. -#** -#*****************************************************************************/ - -import sys -from qt import * - -TRUE = 1 -FALSE = 0 - -zoomfactors = ["100%","200%","300%","400%","500%","600%","700%","800%","1600%"] - -refreshrates = [ - "No autorefresh", "50 per second", "4 per second", "3 per second", - "2 per second", "Every second", "Every two seconds", "Every three seconds", - "Every five seconds", "Every ten seconds"] - -timer = (0, 20, 250, 333, 500, 1000, 2000, 3000, 5000, 10000) - -class MagWidget(QWidget): - def __init__(self, qApp, parent = None, name = None): - self.qApp = qApp - QWidget.__init__(self, parent, name) - self.pm = QPixmap() # pixmap magnified - self.p = QPixmap() # pixmap - self.image = QImage() # image of pixmap (for RGB) - self.z = 0 # zoom factor - self.r = 0 # autorefresh rate (index into refreshrates) - self.grabbing = FALSE # TRUE if currently grabbing - self.grabx = -1 - self.graby = -1 - - self.zoom = QComboBox(FALSE, self) - self.zoom.insertStrList(zoomfactors, len(zoomfactors)) - self.connect(self.zoom, SIGNAL("activated(int)"), - self.setZoom) - - self.refresh = QComboBox(FALSE, self) - self.refresh.insertStrList(refreshrates, len(refreshrates)) - self.connect(self.refresh, SIGNAL("activated(int)"), - self.setRefresh) - - x = 0 - w = 0 - h = 20 - for s in zoomfactors: - cw = self.zoom.fontMetrics().width(s) - w = max(cw, w) - self.zoom.setGeometry(x, 2, w + 30, h) - - x = w + 34 - w = 0 - for s in refreshrates: - cw = self.refresh.fontMetrics().width(s) - w = max(cw, w) - self.refresh.setGeometry(x, 2, w + 30, h) - - self.saveButton = QPushButton(self) - self.connect(self.saveButton, SIGNAL("clicked()"), self.save) - self.saveButton.setText("Save") - self.saveButton.setGeometry(x + w + 30 + 2, 2, - 10 + self.saveButton.fontMetrics().width("Save"), h) - - self.quitButton = QPushButton(self) - self.connect(self.quitButton, SIGNAL("clicked()"), self.qApp, SLOT("quit()")) - self.quitButton.setText("Quit") - self.quitButton.setGeometry(self.saveButton.geometry().right() + 2, 2, - 10 + self.quitButton.fontMetrics().width("Quit"), h) - - self.rgb = QLabel(self) - self.rgb.setText("") - self.rgb.setAlignment(Qt.AlignVCenter) - self.rgb.resize(self.width(), self.rgb.fontMetrics().height() + 4) - - self.yoffset = self.zoom.height() + 4 + self.rgb.height() - self.setMinimumSize(self.quitButton.geometry().topRight().x() + 2, - self.yoffset + 20) - w = self.quitButton.geometry().topRight().x() + 2 - self.resize(w, w) - - self.setMouseTracking(TRUE) - self.grabx = self.qApp.desktop().width() / 2 - self.graby = self.qApp.desktop().height() / 2 - self.grabAround(QPoint(self.grabx, self.graby)) - - #self.zoom.setCurrentItem(1) # grabAround sets zoom factor - #self.setZoom(1) - self.refresh.setCurrentItem(5) - self.setRefresh(5) - - def setZoom(self, index): - if index == 8: - self.z = 16 - else: - self.z = index + 1 - self.grab() - - def setRefresh(self, index): - self.r = index - self.killTimers() - if index and not self.grabbing: - #print "st:", timer[index] - self.startTimer(timer[index]) - - def save(self): - if not self.p.isNull(): - self.killTimers() - fn = QFileDialog.getSaveFileName() - if not fn.isEmpty(): - self.p.save(fn, "BMP") - if self.r: - self.startTimer(timer[self.r]) - - def grab(self): - if not self.isVisible() or self.grabx < 0 or self.graby < 0: - return - - w = (self.width() + self.z - 1) / self.z - h = (self.height() + self.z - 1 - self.yoffset) / self.z - - if w < 1 or h < 1: - return - - x = self.grabx - w / 2 - y = self.graby - h / 2 - - if x + w > QApplication.desktop().width(): - x = QApplication.desktop().width() - w - elif x < 0: - x = 0 - - if y + h > QApplication.desktop().height(): - y = QApplication.desktop().height() - h - elif y < 0: - y = 0 - - self.p = QPixmap.grabWindow(QApplication.desktop().winId(), x, y, w, h) - self.image = self.p.convertToImage() - m = QWMatrix() - #print "z:", self.z - m.scale(float(self.z), float(self.z)) - self.pm = self.p.xForm(m) - self.repaint(FALSE) - - def paintEvent(self, e): - if not self.pm.isNull(): - paint = QPainter(self) - paint.drawPixmap(0, self.zoom.height() + 4, self.pm, - 0, 0, self.width(), self.height() - self.yoffset) - - def mousePressEvent(self, e): - if not self.grabbing: - self.grabbing = TRUE - self.killTimers() - self.grabMouse(Qt.crossCursor) - self.grabx = -1 - self.graby = -1 - else: - self.grabx = self.mapToGlobal(e.pos()).x() - self.graby = self.mapToGlobal(e.pos()).y() - - def mouseReleaseEvent(self, e): - if self.grabbing and self.grabx >= 0 and self.graby >= 0: - self.grabbing = FALSE - self.grabAround(e.pos()) - self.releaseMouse() - - def grabAround(self, pos): - rx = self.mapToGlobal(pos).x() - ry = self.mapToGlobal(pos).y() - w = abs(rx - self.grabx) - h = abs(ry - self.graby) - if w > 10 and h > 10: - pz = 1 - while w*pz*h*pz < self.width()*(self.height()-self.yoffset) and \ - w*pz < QApplication.desktop().width() and \ - h*pz < QApplication.desktop().height(): - pz += 1 - if (w*pz*h*pz - self.width()*(self.height()-self.yoffset)) > \ - (self.width()*(self.height()-self.yoffset) - w*(pz-1)*h*(pz-1)): - pz -= 1 - if pz < 1: - pz = 1 - elif pz > 8: - pz = 8 - self.zoom.setCurrentItem(pz-1) - self.z = pz - self.grabx = min(rx, self.grabx) + w / 2 - self.graby = min(ry, self.graby) + h / 2 - #self.resize(w*self.z, h*self.z*self.yoffset) - self.grab() - - def mouseMoveEvent(self, e): - if self.grabbing or self.pm.isNull() or \ - e.pos().y() > self.height() - self.zoom.fontMetrics().height() - 4 or \ - e.pos().y() < self.zoom.height() + 4: - self.rgb.setText("") - else: - x = e.pos().x() / self.z - y = (e.pos().y() - self.zoom.height() - 4) / self.z - pixelinfo = "" - if self.image.valid(x, y): - px = self.image.pixel(x, y) - pixelinfo = "%3d,%3d,%3d #%02x%02x%02x" % ( - qRed(px), qGreen(px), qBlue(px), - qRed(px), qGreen(px), qBlue(px)) - self.rgb.setText("x=%d, y=%d %s" % \ - (x + self.grabx, y + self.graby, pixelinfo)) - - def focusOutEvent(self, e): - self.rgb.setText("") - - def timerEvent(self, e): - self.grab() - - def resizeEvent(self, e): - self.rgb.setGeometry(0, self.height() - self.rgb.height(), - self.width(), self.rgb.height()) - -if __name__=='__main__': - app = QApplication( sys.argv ) - m = MagWidget(app) - app.setMainWidget(m) - m.show() - app.exec_loop() diff --git a/python/pyqt/examples3/qt.png b/python/pyqt/examples3/qt.png deleted file mode 100644 index ca630a56..00000000 Binary files a/python/pyqt/examples3/qt.png and /dev/null differ diff --git a/python/pyqt/examples3/qtlogo.png b/python/pyqt/examples3/qtlogo.png deleted file mode 100644 index 0dc05a0e..00000000 Binary files a/python/pyqt/examples3/qtlogo.png and /dev/null differ diff --git a/python/pyqt/examples3/rangecontrols.py b/python/pyqt/examples3/rangecontrols.py deleted file mode 100755 index 4b6b347a..00000000 --- a/python/pyqt/examples3/rangecontrols.py +++ /dev/null @@ -1,79 +0,0 @@ -#!/usr/bin/env python - -"""************************************************************************** -** $Id$ -** -** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. -** -** This file is part of an example program for Qt. This example -** program may be used, distributed and modified without limitation. -** -***************************************************************************""" - -import sys -from qt import * - -INT_MAX = sys.maxint - -class RangeControls( QVBox ): - def __init__( self, parent=None, name=None ): - QVBox.__init__( self, parent, name ) - - row1 = QHBox( self ) - cell2 = QVBox( row1 ) - cell2.setMargin( 10 ) - cell2.setFrameStyle( QFrame.WinPanel | QFrame.Sunken ) - - QWidget( cell2 ) - - label1 = QLabel( QString( "Enter a value between\n%1 and %2:" ).arg( -INT_MAX ).arg( INT_MAX ), cell2 ) - label1.setMaximumHeight( label1.sizeHint().height() ) - sb1 = QSpinBox( -INT_MAX, INT_MAX, 1, cell2 ) - sb1.setValue( 0 ) - - label2 = QLabel( "Enter a zoom value:", cell2 ) - label2.setMaximumHeight( label2.sizeHint().height() ) - sb2 = QSpinBox( 0, 1000, 10, cell2 ) - sb2.setSuffix( " %" ) - sb2.setSpecialValueText( "Automatic" ) - - label3 = QLabel( "Enter a price:", cell2 ) - label3.setMaximumHeight( label3.sizeHint().height() ) - sb3 = QSpinBox( 0, INT_MAX, 1, cell2 ) - sb3.setPrefix( "$" ) - sb3.setValue( 355 ) - - QWidget( cell2 ) - - row2 = QHBox( self ) - - cell3 = QVBox( row2 ) - cell3.setMargin( 10 ) - cell3.setFrameStyle( QFrame.WinPanel | QFrame.Sunken ) - hslider = QSlider( 0, 64, 1, 33, Qt.Horizontal, cell3 ) - lcd2 = QLCDNumber( 2, cell3 ) - lcd2.display( 33 ) - lcd2.setSegmentStyle( QLCDNumber.Filled ) - self.connect( hslider, SIGNAL("valueChanged( int )"), lcd2, SLOT("display( int )") ) - - cell4 = QHBox( row2 ) - cell4.setFrameStyle( QFrame.WinPanel | QFrame.Sunken ) - cell4.setMargin( 10 ) - vslider = QSlider( 0, 64, 1, 8, Qt.Vertical, cell4 ) - lcd3 = QLCDNumber( 3, cell4 ) - lcd3.display( 8 ) - self.connect( vslider, SIGNAL("valueChanged( int )"), lcd3, SLOT("display( int )") ) - -def main( args ): - a = QApplication( args ) - - rangecontrols = RangeControls() - rangecontrols.resize( 500, 300 ) - rangecontrols.setCaption( "Qt Example - Range Control Widgets" ); - a.setMainWidget( rangecontrols ) - rangecontrols.show() - - a.exec_loop() - -if __name__=="__main__": - main(sys.argv) diff --git a/python/pyqt/examples3/richtext.py b/python/pyqt/examples3/richtext.py deleted file mode 100755 index 8ec4b0b4..00000000 --- a/python/pyqt/examples3/richtext.py +++ /dev/null @@ -1,136 +0,0 @@ -#!/usr/bin/env python - -"""************************************************************************** -** $Id$ -** -** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. -** -** This file is part of an example program for Qt. This example -** program may be used, distributed and modified without limitation. -** -***************************************************************************""" - -import sys -from qt import * - -sayings = [ - "Saying 1:
" - "


" - "Evil is that which one believes of others. It is a sin to believe evil " - "of others, but it is seldom a mistake.

" - "
-- H.L. Mencken
", - - "Saying 2:
" - "


" - "A well-used door needs no oil on its hinges.
" - "A swift-flowing steam does not grow stagnant.
" - "Neither sound nor thoughts can travel through a vacuum.
" - "Software rots if not used.

" - "These are great mysteries.


" - "
-- Geoffrey James, \"The Tao of Programming\"
", - - "Saying 3:
" - "


" - "Show business is just like high school, except you get paid.

" - "
-- Martin Mull
", - - "Saying 4:
" - "


" - "The Least Successful Executions
" - "

History has furnished us with two executioners worthy of attention. " - "The first performed in Sydney in Australia. In 1803 three attempts were " - "made to hang a Mr. Joseph Samuels. On the first two of these the rope " - "snapped, while on the third Mr. Samuels just hung there peacefully until he " - "and everyone else got bored. Since he had proved unsusceptible to capital " - "punishment, he was reprieved.

" - "

The most important British executioner was Mr. James Berry who " - "tried three times in 1885 to hang Mr. John Lee at Exeter Jail, but on each " - "occasion failed to get the trap door open." - "

In recognition of this achievement, the Home Secretary commuted " - "Lee's sentence to \"life\" imprisonment. He was released in 1917, emigrated " - "to America and lived until 1933.



" - "
-- Stephen Pile, \"The Book of Heroic Failures\"
", - - "Saying 5:
" - "


" - "If you can, help others. If you can't, at least don't hurt others.

" - "
-- the Dalai Lama
", - - "Saying 6:
" - "


" - "Television has brought back murder into the home -- where it belongs.

" - "
-- Alfred Hitchcock
", - - "Saying 7:
" - "


" - "I don't know who my grandfather was; I am much more concerned to know " - "what his grandson will be.

" - "
-- Abraham Lincoln
", - - 0 -] - -class MyRichText( QVBox ): - def __init__( self, parent = None, name = None ): - QVBox.__init__( self, parent, name ) - - self.setMargin( 5 ) - - self.view = QTextView( self ) - #self.view.setText( "This is a Test with italic stuff" ) - paper = QBrush() - paper.setPixmap( QPixmap( "marble.png" ) ) - if paper.pixmap() != 0 : - self.view.setPaper( paper ) - else : - self.view.setPaper( white ) - - self.view.setText( sayings[0] ) - self.view.setMinimumSize( 450, 250 ) - - buttons = QHBox( self ) - buttons.setMargin( 5 ) - - self.bClose = QPushButton( "&Close", buttons ) - self.bPrev = QPushButton( "<< &Prev", buttons ) - self.bNext = QPushButton( "&Next >>", buttons ) - - self.bPrev.setEnabled( False ) - - self.connect( self.bClose, SIGNAL("clicked()"), qApp, SLOT("quit()") ) - self.connect( self.bPrev, SIGNAL("clicked()"), self.prev ) - self.connect( self.bNext, SIGNAL("clicked()"), self.next ) - - self.num = 0 - - def prev( self ): - if self.num <= 0 : - return - self.num -= 1 - self.view.setText( sayings[self.num] ) - if self.num == 0 : - self.bPrev.setEnabled( False ) - self.bNext.setEnabled( True ) - - def next( self ): - self.num += 1 - if not sayings[self.num]: - return - self.view.setText( sayings[self.num] ) - if not sayings[self.num + 1]: - self.bNext.setEnabled( False ) - self.bPrev.setEnabled( True ) - -def main( args ): - a = QApplication(sys.argv) # application object - - richtext = MyRichText() - richtext.resize( 450, 350 ); - richtext.setCaption( "Qt Example - Richtext" ) - a.setMainWidget( richtext ) - richtext.show() - - a.exec_loop() - -if __name__=="__main__": - main(sys.argv) diff --git a/python/pyqt/examples3/secret.py b/python/pyqt/examples3/secret.py deleted file mode 100644 index d6d2b6d0..00000000 --- a/python/pyqt/examples3/secret.py +++ /dev/null @@ -1,65 +0,0 @@ -# This is part of the dragdrop example. - - -from qt import * - - -def canDecode(e): - return e.provides( "secret/magic" ) - - -def decode(e): - payload = str(e.data( "secret/magic" )) - if ( str(payload) != '' ): - e.accept() - return QString("The secret number is "+str(ord(payload)) ) - - return None - - -class SecretDrag(QStoredDrag): - def __init__(self, secret, parent=None, name=None): - QStoredDrag.__init__(self, 'secret/magic', parent, name) - data = QByteArray(chr(secret)) - self.setEncodedData( data ) - - -# XPM -picture_xpm = [ - "16 16 3 1", - " c None", - ". c #000000", - "X c #FFFF00", - " ..... ", - " ..XXXXX.. ", - " .XXXXXXXXX. ", - " .XXXXXXXXXXX. ", - " .XX..XXX..XX. ", - ".XXXXXXXXXXXXX. ", - ".XX...XXX...XX. ", - ".XXX..XXX..XXX. ", - ".XXXXXXXXXXXXX. ", - ".XXXXXX.XXXXXX. ", - " .XX.XX.XX.XX. ", - " .XXX..X..XXX. ", - " .XXXXXXXXX. ", - " ..XXXXX.. ", - " ..... ", - " " -] - - -class SecretSource(QLabel): - def __init__(self, secret, parent=None, name=None): - QLabel.__init__(self, "Secret", parent, name) - self.setEraseColor( Qt.blue.light() ) - self.setFrameStyle( QLabel.Box | QLabel.Sunken ) - self.setMinimumHeight( self.sizeHint().height()*2 ) - self.setAlignment( QLabel.AlignCenter ) - self.mySecret = secret - - def mousePressEvent(self, e): - sd = SecretDrag( self.mySecret, self ) - sd.setPixmap(QPixmap(picture_xpm),QPoint(8,8)) - sd.dragCopy() - self.mySecret = self.mySecret + 1 diff --git a/python/pyqt/examples3/semaphore.py b/python/pyqt/examples3/semaphore.py deleted file mode 100755 index ac8b231b..00000000 --- a/python/pyqt/examples3/semaphore.py +++ /dev/null @@ -1,203 +0,0 @@ -#!/usr/bin/env python -# -# A port of the semaphore example from Qt. - - -import sys - -# Check if thread support was enabled. -try: - from qt import QThread -except: - print "Thread support not enabled" - sys.exit(1) - -from qt import * - - -# The semaphore instances. -yellowSem = None -greenSem = None - - -class YellowThread(QThread): - def __init__(self,o): - QThread.__init__(self) - - self.receiver = o - self.stopped = 0 - self.mutex = QMutex() - - def run(self): - global yellowSem, greenSem - - for i in range(20): - yellowSem += 1 - - event = QCustomEvent(12345) - event.setData(QString("Yellow!")) - QThread.postEvent(self.receiver,event) - self.msleep(200); - - greenSem -= 1 - - self.mutex.lock() - if self.stopped: - self.stopped = 0 - self.mutex.unlock() - break - - self.mutex.unlock() - - yellowSem += 1 - - event = QCustomEvent(12346) - event.setData(QString("Yellow!")) - QThread.postEvent(self.receiver,event) - - greenSem -= 1 - - def stop(self): - self.mutex.lock() - self.stopped = 1 - self.mutex.unlock() - - -class GreenThread(QThread): - def __init__(self,o): - QThread.__init__(self) - - self.receiver = o - self.stopped = 0 - self.mutex = QMutex() - - def run(self): - global yellowSem, greenSem - - for i in range(20): - greenSem += 1 - - event = QCustomEvent(12345) - event.setData(QString("Green!")) - QThread.postEvent(self.receiver,event) - self.msleep(200) - - yellowSem -= 1 - - self.mutex.lock() - if self.stopped: - self.stopped = 0 - self.mutex.unlock() - break - - self.mutex.unlock() - - greenSem += 1 - - event = QCustomEvent(12346) - event.setData(QString("Green!")) - QThread.postEvent(self.receiver,event) - self.msleep(10) - - yellowSem -= 1 - - def stop(self): - self.mutex.lock() - self.stopped = 1 - self.mutex.unlock() - - -class SemaphoreExample(QWidget): - def __init__(self): - QWidget.__init__(self) - - self.yellowThread = YellowThread(self) - self.greenThread = GreenThread(self) - - global yellowSem, greenSem - yellowSem = QSemaphore(1) - greenSem = QSemaphore(1) - - self.button = QPushButton("&Ignition!",self) - self.connect(self.button,SIGNAL("clicked()"),self.startExample) - - self.mlineedit = QMultiLineEdit(self) - self.label = QLabel(self) - - vbox = QVBoxLayout(self,5) - vbox.addWidget(self.button) - vbox.addWidget(self.mlineedit) - vbox.addWidget(self.label) - - def __del__(self): - stopYellow = self.yellowThread.running() - stopGreen = self.greenThread.running() - - if stopYellow: - self.yellowThread.stop() - - if self.greenThread.running(): - self.greenThread.stop() - - if stopYellow: - self.yellowThread.wait() - - if stopGreen: - self.greenThread.wait() - - global yellowSem, greenSem - yellowSem = None - greenSem = None - - def startExample(self): - if self.yellowThread.running() or self.greenThread.running(): - QMessageBox.information(self,"Sorry", - "The threads have not completed yet, and must finish before " - "they can be started again.") - - return - - self.mlineedit.clear() - - global yellowSem - - while yellowSem.available() < yellowSem.total(): - yellowSem -= 1 - - yellowSem += 1 - - self.yellowThread.start() - self.greenThread.start() - - def customEvent(self,event): - if event.type() == 12345: - s = event.data() - - self.mlineedit.append(s) - - if s.latin1() == "Green!": - self.label.setEraseColor(Qt.green) - else: - self.label.setEraseColor(Qt.yellow) - - self.label.setText(s) - - del s - elif event.type() == 12346: - s = event.data() - - QMessageBox.information(self,s.latin1() + " - Finished", - "The thread creating the \"" + s.latin1() + - "\" events has finished.") - - del s - else: - print "Unknown custom event type:", event.type() - - -app = QApplication(sys.argv) -se = SemaphoreExample() -app.setMainWidget(se) -se.show() - -sys.exit(app.exec_loop()) diff --git a/python/pyqt/examples3/smalltable.py b/python/pyqt/examples3/smalltable.py deleted file mode 100755 index 54f54c88..00000000 --- a/python/pyqt/examples3/smalltable.py +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/env python - -#**************************************************************************** -#** $Id$ -#** -#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved. -#** -#** This file is part of an example program for PyQt. This example -#** program may be used, distributed and modified without limitation. -#** -#*****************************************************************************/ - -import sys -import os -from qt import * -from qttable import * - -TRUE = 1 -FALSE = 0 - -numRows = 30 -numCols = 10 - -if __name__ == '__main__': - app = QApplication(sys.argv) - - table = QTable(numRows, numCols) - - header = table.horizontalHeader() - - header.setLabel(0, "Tiny", 40) - header.setLabel(1, "Checkboxes") - header.setLabel(5, "Combos") - header.setMovingEnabled(TRUE) - - img = QImage("trolltech.bmp") - pix = QPixmap(img.scaleHeight(table.rowHeight(3))) - table.setPixmap(3, 2, pix) - table.setText(3, 2, "A Pixmap") - - comboEntries = QStringList("one") - comboEntries.append("two") - comboEntries.append("three") - comboEntries.append("four") - - for i in range(numRows): - item = QComboTableItem(table, comboEntries, FALSE) - item.setCurrentItem(i % 4) - table.setItem(i, 5, item) - - for i in range(numRows): - table.setItem(i, 1, QCheckTableItem(table, "Check me")) - - table.setCaption("Small table example") - table.show() - app.setMainWidget(table) - app.exec_loop() diff --git a/python/pyqt/examples3/splitter.py b/python/pyqt/examples3/splitter.py deleted file mode 100755 index 3cee9cf1..00000000 --- a/python/pyqt/examples3/splitter.py +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/env python - -import sys -from qt import * - -class Test(QWidget): - def __init__(self, parent=None, name='Test', f=0): - QWidget.__init__(self, parent, name, f) - - def paintEvent(self, e): - p = QPainter(self) - p.setClipRect(e.rect()) - d = 1000 - x1 = 0 - x2 = self.width() - 1 - y1 = 0 - y2 = self.height() - 1 - - x = (x1+x2)/2 - p.drawLine(x, y1, x+d, y1+d) - p.drawLine(x, y1, x-d, y1+d) - p.drawLine(x, y2, x+d, y2-d) - p.drawLine(x, y2, x-d, y2-d) - - y = (y1+y2)/2 - p.drawLine(x1, y, x1+d, y+d) - p.drawLine(x1, y, x1+d, y-d) - p.drawLine(x2, y, x2-d, y+d) - p.drawLine(x2, y, x2-d, y-d) - - -if __name__=="__main__": - a = QApplication(sys.argv) - - s1 = QSplitter(Qt.Vertical, None, "main") - s2 = QSplitter(Qt.Horizontal, s1, "top") - - t1 = Test(s2) - t1.setEraseColor(Qt.blue.light(180)) - t1.setMinimumSize(50,0) - - t2 = Test(s2) - t2.setEraseColor(Qt.green.light(180)) - s2.setResizeMode(t2, QSplitter.KeepSize) - s2.moveToFirst(t2) - - s3 = QSplitter(Qt.Horizontal, s1, "bottom") - - t3 = Test(s3) - t3.setEraseColor(Qt.red) - t4 = Test(s3) - t4.setEraseColor(Qt.white) - - t5 = Test(s3) - t5.setMaximumHeight(250) - t5.setMinimumSize(80,50) - t5.setEraseColor(Qt.yellow) - - s1.setOpaqueResize(1) - s2.setOpaqueResize(1) - s3.setOpaqueResize(1) - - a.setMainWidget(s1) - s1.show() - a.exec_loop() diff --git a/python/pyqt/examples3/tabdialog.py b/python/pyqt/examples3/tabdialog.py deleted file mode 100755 index 81f61480..00000000 --- a/python/pyqt/examples3/tabdialog.py +++ /dev/null @@ -1,116 +0,0 @@ -#!/usr/bin/env python - -"""************************************************************************** -** $Id$ -** -** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. -** -** This file is part of an example program for Qt. This example -** program may be used, distributed and modified without limitation. -** -***************************************************************************""" - -import sys -from qt import * - -class TabDialog( QTabDialog ): - def __init__( self, parent=None, name=None, filename=None ): - QTabDialog.__init__( self, parent, name ) - self.filename = QString( filename ) - self.fileinfo = QFileInfo( filename ) - self.setupTab1() - self.setupTab2() - self.setupTab3() - self.connect( self, SIGNAL("applyButtonPressed()"), qApp, SLOT("quit()" ) ) - - def setupTab1( self ): - tab1 = QVBox( self ) - tab1.setMargin( 5 ) - - QLabel( "Filename:", tab1 ) - fname = QLineEdit( self.filename, tab1 ) - fname.setFocus() - - QLabel( "Path:", tab1 ) - path = QLabel( self.fileinfo.dirPath( True ), tab1 ) - path.setFrameStyle( QFrame.Panel | QFrame.Sunken ) - - QLabel( "Size:", tab1 ) - size = QLabel( QString( "%1 KB" ).arg( self.fileinfo.size() ), tab1 ) - size.setFrameStyle( QFrame.Panel | QFrame.Sunken ) - - QLabel( "Last Read:", tab1 ) - lread = QLabel( self.fileinfo.lastRead().toString(), tab1 ) - lread.setFrameStyle( QFrame.Panel | QFrame.Sunken ) - - QLabel( "Last Modified:", tab1 ) - lmodif = QLabel( self.fileinfo.lastModified().toString(), tab1 ) - lmodif.setFrameStyle( QFrame.Panel | QFrame.Sunken ) - - self.addTab( tab1, "General" ) - - def setupTab2( self ): - tab2 = QVBox( self ) - tab2.setMargin( 5 ) - - bg = QButtonGroup( 1, QGroupBox.Horizontal, "Permissions", tab2 ) - - readable = QCheckBox( "Readable", bg ) - if self.fileinfo.isReadable() : - readable.setChecked( True ) - - writable = QCheckBox( "Writeable", bg ) - if self.fileinfo.isWritable() : - writable.setChecked( True ) - - executable = QCheckBox( "Executable", bg ) - if self.fileinfo.isExecutable() : - executable.setChecked( True ) - - bg2 = QButtonGroup( 2, QGroupBox.Horizontal, "Owner", tab2 ) - - QLabel( "Owner", bg2 ) - owner = QLabel( self.fileinfo.owner(), bg2 ) - owner.setFrameStyle( QFrame.Panel | QFrame.Sunken ) - - QLabel( "Group", bg2 ) - group = QLabel( self.fileinfo.group(), bg2 ) - group.setFrameStyle( QFrame.Panel | QFrame.Sunken ) - - self.addTab( tab2, "Permissions" ) - - def setupTab3( self ): - tab3 = QVBox( self ) - tab3.setMargin( 5 ) - tab3.setSpacing( 5 ) - - QLabel( QString( "Open %1 with:" ).arg( self.filename ), tab3 ) - - prgs = QListBox( tab3 ) - for i in range( 0, 30, 1 ) : - prg = QString( "Application %1" ).arg( i ) - prgs.insertItem( prg ) - prgs.setCurrentItem( 3 ) - - QCheckBox( QString( "Open files with the extension '%1' always with this application" ).arg( self.fileinfo.extension() ), tab3 ) - - self.addTab( tab3, "Applications" ) - -def main( args ): - a = QApplication(sys.argv) - #sys.argv.append("tabdialog.py") # to test uncomment this line - if len(sys.argv) < 2: - filename = QString(".") - else: - filename = QString(sys.argv[1]) - - tabdialog = TabDialog( None, "tabdialog", filename ) - tabdialog.resize( 450, 350 ); - tabdialog.setCaption( "Qt Example - Tabbed Dialog" ) - a.setMainWidget( tabdialog ) - tabdialog.show() - - a.exec_loop() - -if __name__=="__main__": - main(sys.argv) diff --git a/python/pyqt/examples3/tablestatistics.py b/python/pyqt/examples3/tablestatistics.py deleted file mode 100755 index 59c71117..00000000 --- a/python/pyqt/examples3/tablestatistics.py +++ /dev/null @@ -1,168 +0,0 @@ -#!/usr/bin/env python - -#**************************************************************************** -#** $Id$ -#** -#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved. -#** -#** This file is part of an example program for PyQt. This example -#** program may be used, distributed and modified without limitation. -#** -#*****************************************************************************/ - -import sys -import os -from qt import * -from qttable import * - -TRUE = 1 -FALSE = 0 - -# column constants -TB_FILE = 0 -TB_SIZE = 1 -TB_FLAG = 2 -TB_COLS = 3 - -dirs = ( - "kernel", - "tools", - "widgets", - "dialogs", - "xml", - "table", - "network", - "opengl", - "canvas", -) - -class Table(QTable): - def __init__(self): - QTable.__init__(self, 0, TB_COLS) - self.setSorting(TRUE) - self.horizontalHeader().setLabel(TB_FILE, self.tr("File")) - self.horizontalHeader().setLabel(TB_SIZE, self.tr("Size (bytes)")) - self.horizontalHeader().setLabel(TB_FLAG, self.tr("Use in Sum")) - self.initTable() - self.adjustColumn(TB_FILE) - - # if the user edited something we might need to recalculate the sum - self.connect(self, SIGNAL("valueChanged(int, int)"), self.recalcSum) - - def initTable(self): - # read all the Qt source and header files into a list - all = [] - qtdir = os.getenv("QTDIR") - for i in dirs: - dir = QDir(os.path.join(qtdir, "src", i)) - lst = QStringList(dir.entryList("*.cpp; *.h")) - for f in lst: - if f.contains("moc"): - continue - all.append(os.path.join(i, str(f))) - - # set the number of rows we'll need for the table - self.setNumRows(len(all) + 1) - - i = 0 - sum = 0L - # insert the data into the table - for it in all: - self.setText(i, TB_FILE, it) - f = QFile(os.path.join(qtdir, "src", str(it))) - self.setText(i, TB_SIZE, str(f.size())) - ci = ComboItem(self, QTableItem.WhenCurrent) - self.setItem(i, TB_FLAG, ci) - i = i + 1 - sum += f.size() - self.displaySum(sum) - - def recalcSum(self, dummy, col): - # only recalc if a value in the second or third column changed - if col < TB_SIZE or col > TB_FLAG: - return - - sum = 0L - for i in range(self.numRows()-1): - if str(self.text(i, TB_FLAG)) == "No": - continue - sum += long(str(self.text(i, TB_SIZE))) - self.displaySum(sum) - - def displaySum(self, sum): - # insert calculated data - i1 = TableItem(self, QTableItem.Never, self.tr("Sum")) - self.setItem(self.numRows()-1, TB_FILE, i1) - i2 = TableItem(self, QTableItem.Never, str(sum)) - self.setItem(self.numRows()-1, TB_SIZE, i2) - - def sortColumn(self, col, ascending, wholeRows): - # sum row should not be sorted, so get rid of it for now - self.clearCell(self.numRows()-1, TB_FILE) - self.clearCell(self.numRows()-1, TB_SIZE) - # do sort - QTable.sortColumn(self, col, ascending, TRUE) - # re-insert sum row - self.recalcSum(0, TB_SIZE) - - -class TableItem(QTableItem): - def __init__(self, *args): - apply(QTableItem.__init__, (self,) + args) - - def paint(self, p, cg, cr, selected): - g = QColorGroup(cg) - # last row is the sum row - we want to make it more visible by - # using a red background - if self.row() == self.table().numRows()-1: - g.setColor(QColorGroup.Base, QColor("red")) - QTableItem.paint(self, p, g, cr, selected) - - -class ComboItem(QTableItem): - def __init__(self, t, et): - QTableItem.__init__(self, t, et, "Yes") - self.cb = None - # we do not want this item to be replaced - self.setReplaceable(FALSE) - - def createEditor(self): - # create an editor - a combobox in our case - self.cb = QComboBox(self.table().viewport()) - QObject.connect(self.cb, SIGNAL("activated(int)"), - self.table(), SLOT("doValueChanged()")) - self.cb.insertItem("Yes") - self.cb.insertItem("No") - # and initialize it - if str(self.text()) == "No": - self.cb.setCurrentItem(1) - else: - self.cb.setCurrentItem(0) - return self.cb - - def setContentFromEditor(self, w): - # the user changed the value of the combobox, so synchronize the - # value of the item (its text), with the value of the combobox - if w.inherits("QComboBox"): - self.setText(w.currentText()) - else: - QTableItem.setContentFromEditor(self, w) - - def setText(self, s): - # initialize the combobox from the text - if self.cb: - if str(s) == "No": - self.cb.setCurrentItem(1) - else: - self.cb.setCurrentItem(0) - QTableItem.setText(self, s) - - -if __name__ == '__main__': - app = QApplication(sys.argv) - - t = Table() - t.setCaption("Statistics") - t.show() - app.setMainWidget(t) - app.exec_loop() diff --git a/python/pyqt/examples3/tooltip.py b/python/pyqt/examples3/tooltip.py deleted file mode 100755 index 69de776c..00000000 --- a/python/pyqt/examples3/tooltip.py +++ /dev/null @@ -1,105 +0,0 @@ -#!/usr/bin/env python - -"""************************************************************************** -** $Id$ -** -** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. -** -** This file is part of an example program for Qt. This example -** program may be used, distributed and modified without limitation. -** -***************************************************************************""" - -import sys -from qt import * -from random import random - -class DynamicTip( QToolTip ): - def __init__( self, parent ): - QToolTip.__init__( self, parent ) - - def maybeTip( self, pos ): - #if not self.parent.inherits( "TellMe" ): - if QToolTip(self).parentWidget().inherits( "TellMe" ) : - return - r = QRect( QToolTip(self).parentWidget().tip(pos) ) - if not r.isValid(): - return - - s = QString( "position: %d,%d" % (r.center().x(), r.center().y()) ) - QToolTip(self).tip( r, s ) - - -class TellMe( QWidget ): - def __init__( self, parent=None, name=None ): - QWidget.__init__( self, parent, name ) - - self.setMinimumSize( 30, 30 ) - self.r1 = self.randomRect() - self.r2 = self.randomRect() - self.r3 = self.randomRect() - - self.t = DynamicTip( self ) - - QToolTip.add( self, self.r3, "this color is called red" ) # <- helpful - - def paintEvent( self, e ): - - p = QPainter( self ) - - # I try to be efficient here, and repaint only what's needed - if e.rect().intersects( self.r1 ): - p.setBrush( Qt.blue ) - p.drawRect( self.r1 ) - - if e.rect().intersects( self.r2 ): - p.setBrush( Qt.blue ) - p.drawRect( self.r2 ) - - if e.rect().intersects( self.r3 ): - p.setBrush( Qt.red ) - p.drawRect( self.r3 ) - - def mousePressEvent( self, e ): - - if self.r1.contains( e.pos() ): - self.r1 = self.randomRect() - if self.r2.contains( e.pos() ): - self.r2 = self.randomRect() - self.repaint() - - def resizeEvent( self, e ): - - if not self.rect().contains( self.r1 ): - self.r1 = self.randomRect() - if not self.rect().contains( self.r2 ): - self.r2 = self.randomRect() - - def randomRect( self ): - return QRect( random() * (self.width() - 20), random() * (self.height() - 20), 20, 20 ) - - def tip( self, p ): - - if self.r1.contains( p ): - return self.r1 - elif self.r2.contains( p ): - return self.r2 - else: - return QRect( 0,0, -1,-1 ) - - def __del__( self ): - del self.t - self.t = None - -def main( args ): - a = QApplication( args ) - - mw = TellMe() - mw.setCaption( "Qt Example - Dynamic Tool Tips" ) - a.setMainWidget( mw ) - mw.show() - - a.exec_loop() - -if __name__=="__main__": - main(sys.argv) diff --git a/python/pyqt/examples3/trolltech.bmp b/python/pyqt/examples3/trolltech.bmp deleted file mode 100644 index 220861e2..00000000 Binary files a/python/pyqt/examples3/trolltech.bmp and /dev/null differ diff --git a/python/pyqt/examples3/trolltech.gif b/python/pyqt/examples3/trolltech.gif deleted file mode 100644 index f674369e..00000000 Binary files a/python/pyqt/examples3/trolltech.gif and /dev/null differ diff --git a/python/pyqt/examples3/tt-logo.png b/python/pyqt/examples3/tt-logo.png deleted file mode 100644 index a0d9e340..00000000 Binary files a/python/pyqt/examples3/tt-logo.png and /dev/null differ diff --git a/python/pyqt/examples3/tut1.py b/python/pyqt/examples3/tut1.py deleted file mode 100755 index 982e984c..00000000 --- a/python/pyqt/examples3/tut1.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 1. - -import sys -import qt - - -a = qt.QApplication(sys.argv) - -hello = qt.QPushButton("Hello world!", None) -hello.resize(100, 30) - -a.setMainWidget(hello) -hello.show() -sys.exit(a.exec_loop()) diff --git a/python/pyqt/examples3/tut10.py b/python/pyqt/examples3/tut10.py deleted file mode 100755 index 182d04df..00000000 --- a/python/pyqt/examples3/tut10.py +++ /dev/null @@ -1,145 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 10. - -import sys -import qt - - -class LCDRange(qt.QVBox): - def __init__(self, parent=None, name=None): - qt.QVBox.__init__(self, parent, name) - - lcd = qt.QLCDNumber(2, self, "lcd") - self.slider = qt.QSlider(qt.Qt.Horizontal, self, "slider") - self.slider.setRange(0, 99) - self.slider.setValue(0) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)")) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), self, qt.PYSIGNAL("valueChanged(int)")) - - self.setFocusProxy(self.slider) - - def value(self): - return self.slider.value() - - def setValue(self, value): - self.slider.setValue(value) - - def setRange(self, minVal, maxVal): - if minVal < 0 or maxVal > 99 or minVal > maxVal: - raise ValueError, "LCDRange.setRange(): invalid range" - self.slider.setRange(minVal, maxVal) - - -class CannonField(qt.QWidget): - def __init__(self, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) - - self.ang = 45 - self.f = 0 - self.setPalette(qt.QPalette(qt.QColor(250, 250, 200))) - - def angle(self): - return self.ang - - def setAngle(self, degrees): - if degrees < 5: - degrees = 5 - if degrees > 70: - degrees = 70 - if self.ang == degrees: - return - self.ang = degrees - self.repaint(self.cannonRect(), 0) - self.emit(qt.PYSIGNAL("angleChanged(int)"), (self.ang, )) - - def force(self): - return self.f - - def setForce(self, newton): - if newton < 0: - newton = 0 - if self.f == newton: - return - self.f = newton - self.emit(qt.PYSIGNAL("forceChanged(int)"), (self.f, )) - - def paintEvent(self, ev): - if not ev.rect().intersects(self.cannonRect()): - return - - cr = self.cannonRect() - pix = qt.QPixmap(cr.size()) - pix.fill(self, cr.topLeft()) - - p = qt.QPainter(pix) - - p.setBrush(qt.Qt.blue) - p.setPen(qt.Qt.NoPen) - - p.translate(0, pix.height() - 1) - p.drawPie(qt.QRect(-35, -35, 70, 70), 0, 90 * 16) - p.rotate(-self.ang) - p.drawRect(qt.QRect(33, -4, 15, 8)) - p.end() - - p.begin(self) - p.drawPixmap(cr.topLeft(), pix) - - def cannonRect(self): - r = qt.QRect(0, 0, 50, 50) - r.moveBottomLeft(self.rect().bottomLeft()) - return r - - def sizePolicy(self): - return qt.QSizePolicy(qt.QSizePolicy.Expanding, qt.QSizePolicy.Expanding) - - -class MyWidget(qt.QWidget): - def __init__(self, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) - - quit = qt.QPushButton("&Quit", self, "quit") - quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()")) - - self.angle = LCDRange(self, "angle") - self.angle.setRange(5, 70) - - self.force = LCDRange(self, "force") - self.force.setRange(10, 50) - - self.cannonField = CannonField(self, "cannonField") - - self.connect(self.angle, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) - self.connect(self.cannonField, qt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) - - self.connect(self.force, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce) - self.connect(self.cannonField, qt.PYSIGNAL("forceChanged(int)"), self.force.setValue) - - grid = qt.QGridLayout(self, 2, 2, 10) - - grid.addWidget(quit, 0, 0) - grid.addWidget(self.cannonField, 1, 1) - grid.setColStretch(1, 10) - - leftBox = qt.QVBoxLayout() - - grid.addLayout(leftBox, 1, 0) - - leftBox.addWidget(self.angle) - leftBox.addWidget(self.force) - - self.angle.setValue(60) - self.force.setValue(25) - self.angle.setFocus() - - -qt.QApplication.setColorSpec(qt.QApplication.CustomColor) -a = qt.QApplication(sys.argv) - -w = MyWidget() -w.setGeometry(100, 100, 500, 355) -a.setMainWidget(w) -w.show() -sys.exit(a.exec_loop()) diff --git a/python/pyqt/examples3/tut11.py b/python/pyqt/examples3/tut11.py deleted file mode 100755 index 95d50663..00000000 --- a/python/pyqt/examples3/tut11.py +++ /dev/null @@ -1,213 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 11. - -import sys -import math -import qt - - -class LCDRange(qt.QVBox): - def __init__(self, parent=None, name=None): - qt.QVBox.__init__(self, parent, name) - - lcd = qt.QLCDNumber(2, self, "lcd") - self.slider = qt.QSlider(qt.Qt.Horizontal, self, "slider") - self.slider.setRange(0, 99) - self.slider.setValue(0) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)")) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), self, qt.PYSIGNAL("valueChanged(int)")) - - self.setFocusProxy(self.slider) - - def value(self): - return self.slider.value() - - def setValue(self, value): - self.slider.setValue(value) - - def setRange(self, minVal, maxVal): - if minVal < 0 or maxVal > 99 or minVal > maxVal: - raise ValueError, "LCDRange.setRange(): invalid range" - self.slider.setRange(minVal, maxVal) - - -class CannonField(qt.QWidget): - def __init__(self, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) - - self.ang = 45 - self.f = 0 - self.timerCount = 0 - - self.autoShootTimer = qt.QTimer(self, "movement handler") - self.connect(self.autoShootTimer, qt.SIGNAL("timeout()"), self.moveShot) - - self.shoot_ang = 0 - self.shoot_f = 0 - - self.setPalette(qt.QPalette(qt.QColor(250, 250, 200))) - - self.barrelRect = qt.QRect(33, -4, 15, 8) - - def angle(self): - return self.ang - - def setAngle(self, degrees): - if degrees < 5: - degrees = 5 - if degrees > 70: - degrees = 70 - if self.ang == degrees: - return - self.ang = degrees - self.repaint(self.cannonRect(), 0) - self.emit(qt.PYSIGNAL("angleChanged(int)"), (self.ang, )) - - def force(self): - return self.f - - def setForce(self, newton): - if newton < 0: - newton = 0 - if self.f == newton: - return - self.f = newton - self.emit(qt.PYSIGNAL("forceChanged(int)"), (self.f, )) - - def shoot(self): - if self.autoShootTimer.isActive(): - return - - self.timerCount = 0 - self.shoot_ang = self.ang - self.shoot_f = self.f - self.autoShootTimer.start(50) - - def moveShot(self): - r = qt.QRegion(self.shotRect()) - self.timerCount = self.timerCount + 1 - - shotR = self.shotRect() - - if shotR.x() > self.width() or shotR.y() > self.height(): - self.autoShootTimer.stop() - else: - r = r.unite(qt.QRegion(shotR)) - - self.repaint(r) - - def paintEvent(self, ev): - updateR = ev.rect() - p = qt.QPainter(self) - - if updateR.intersects(self.cannonRect()): - self.paintCannon(p) - - if self.autoShootTimer.isActive() and updateR.intersects(self.shotRect()): - self.paintShot(p) - - def paintShot(self, p): - p.setBrush(qt.Qt.black) - p.setPen(qt.Qt.NoPen) - p.drawRect(self.shotRect()) - - def paintCannon(self, p): - cr = self.cannonRect() - pix = qt.QPixmap(cr.size()) - pix.fill(self, cr.topLeft()) - - tmp = qt.QPainter(pix) - tmp.setBrush(qt.Qt.blue) - tmp.setPen(qt.Qt.NoPen) - - tmp.translate(0, pix.height() - 1) - tmp.drawPie(qt.QRect(-35, -35, 70, 70), 0, 90 * 16) - tmp.rotate(-self.ang) - tmp.drawRect(self.barrelRect) - tmp.end() - - p.drawPixmap(cr.topLeft(), pix) - - def cannonRect(self): - r = qt.QRect(0, 0, 50, 50) - r.moveBottomLeft(self.rect().bottomLeft()) - return r - - def shotRect(self): - gravity = 4.0 - - time = self.timerCount / 4.0 - velocity = self.shoot_f - radians = self.shoot_ang * 3.14159265 / 180 - - velx = velocity * math.cos(radians) - vely = velocity * math.sin(radians) - x0 = (self.barrelRect.right() + 5) * math.cos(radians) - y0 = (self.barrelRect.right() + 5) * math.sin(radians) - x = x0 + velx * time - y = y0 + vely * time - 0.5 * gravity * time * time - - r = qt.QRect(0, 0, 6, 6) - r.moveCenter(qt.QPoint(x, self.height() - 1 - y)) - return r - - def sizePolicy(self): - return qt.QSizePolicy(qt.QSizePolicy.Expanding, qt.QSizePolicy.Expanding) - - -class MyWidget(qt.QWidget): - def __init__(self, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) - - quit = qt.QPushButton("&Quit", self, "quit") - quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()")) - - self.angle = LCDRange(self, "angle") - self.angle.setRange(5, 70) - - self.force = LCDRange(self, "force") - self.force.setRange(10, 50) - - self.cannonField = CannonField(self, "cannonField") - - self.connect(self.angle, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) - self.connect(self.cannonField, qt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) - - self.connect(self.force, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce) - self.connect(self.cannonField, qt.PYSIGNAL("forceChanged(int)"), self.force.setValue) - - shoot = qt.QPushButton("&Shoot", self, "shoot") - shoot.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - self.connect(shoot, qt.SIGNAL("clicked()"), self.cannonField.shoot) - - grid = qt.QGridLayout(self, 2, 2, 10) - - grid.addWidget(quit, 0, 0) - grid.addWidget(self.cannonField, 1, 1) - grid.setColStretch(1, 10) - - leftBox = qt.QVBoxLayout() - grid.addLayout(leftBox, 1, 0) - leftBox.addWidget(self.angle) - leftBox.addWidget(self.force) - - topBox = qt.QHBoxLayout() - grid.addLayout(topBox, 0, 1) - topBox.addWidget(shoot) - topBox.addStretch(1) - - self.angle.setValue(60) - self.force.setValue(25) - self.angle.setFocus() - - -qt.QApplication.setColorSpec(qt.QApplication.CustomColor) -a = qt.QApplication(sys.argv) - -w = MyWidget() -w.setGeometry(100, 100, 500, 355) -a.setMainWidget(w) -w.show() -sys.exit(a.exec_loop()) diff --git a/python/pyqt/examples3/tut12.py b/python/pyqt/examples3/tut12.py deleted file mode 100755 index 818afd39..00000000 --- a/python/pyqt/examples3/tut12.py +++ /dev/null @@ -1,253 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 12. - -import sys -import math -import random -import qt - - -class LCDRange(qt.QVBox): - def __init__(self, s=None, parent=None, name=None): - qt.QVBox.__init__(self, parent, name) - - lcd = qt.QLCDNumber(2, self, "lcd") - self.slider = qt.QSlider(qt.Qt.Horizontal, self, "slider") - self.slider.setRange(0, 99) - self.slider.setValue(0) - - self.label = qt.QLabel(" ", self, "label") - self.label.setAlignment(qt.Qt.AlignCenter) - - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)")) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), self, qt.PYSIGNAL("valueChanged(int)")) - - self.setFocusProxy(self.slider) - - if s is not None: - self.setText(s) - - def value(self): - return self.slider.value() - - def setValue(self, value): - self.slider.setValue(value) - - def setRange(self, minVal, maxVal): - if minVal < 0 or maxVal > 99 or minVal > maxVal: - raise ValueError, "LCDRange.setRange(): invalid range" - - self.slider.setRange(minVal, maxVal) - - def text(self): - return self.label.text() - - def setText(self, s): - self.label.setText(s) - - -class CannonField(qt.QWidget): - def __init__(self, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) - - self.ang = 45 - self.f = 0 - self.timerCount = 0 - - self.autoShootTimer = qt.QTimer(self, "movement handler") - self.connect(self.autoShootTimer, qt.SIGNAL("timeout()"), self.moveShot) - - self.shoot_ang = 0 - self.shoot_f = 0 - self.target = qt.QPoint(0, 0) - - self.setPalette(qt.QPalette(qt.QColor(250, 250, 200))) - - self.barrelRect = qt.QRect(33, -4, 15, 8) - - self.newTarget() - - def angle(self): - return self.ang - - def setAngle(self, degrees): - if degrees < 5: - degrees = 5 - if degrees > 70: - degrees = 70 - if self.ang == degrees: - return - self.ang = degrees - self.repaint(self.cannonRect(), 0) - self.emit(qt.PYSIGNAL("angleChanged(int)"), (self.ang, )) - - def force(self): - return self.f - - def setForce(self, newton): - if newton < 0: - newton = 0 - if self.f == newton: - return - self.f = newton - self.emit(qt.PYSIGNAL("forceChanged(int)"), (self.f, )) - - def shoot(self): - if self.autoShootTimer.isActive(): - return - - self.timerCount = 0 - self.shoot_ang = self.ang - self.shoot_f = self.f - self.autoShootTimer.start(50) - - def newTarget(self): - r = qt.QRegion(self.targetRect()) - self.target = qt.QPoint(random.randint(200, 390), random.randint(10, 265)) - self.repaint(r.unite(qt.QRegion(self.targetRect()))) - - def moveShot(self): - r = qt.QRegion(self.shotRect()) - self.timerCount = self.timerCount + 1 - - shotR = self.shotRect() - - if shotR.intersects(self.targetRect()): - self.autoShootTimer.stop() - self.emit(qt.PYSIGNAL("hit()"), ()) - elif shotR.x() > self.width() or shotR.y() > self.height(): - self.autoShootTimer.stop() - self.emit(qt.PYSIGNAL("missed()"), ()) - else: - r = r.unite(qt.QRegion(shotR)) - - self.repaint(r) - - def paintEvent(self, ev): - updateR = ev.rect() - p = qt.QPainter(self) - - if updateR.intersects(self.cannonRect()): - self.paintCannon(p) - - if self.autoShootTimer.isActive() and updateR.intersects(self.shotRect()): - self.paintShot(p) - - if updateR.intersects(self.targetRect()): - self.paintTarget(p) - - def paintShot(self, p): - p.setBrush(qt.Qt.black) - p.setPen(qt.Qt.NoPen) - p.drawRect(self.shotRect()) - - def paintTarget(self, p): - p.setBrush(qt.Qt.red) - p.setPen(qt.Qt.black) - p.drawRect(self.targetRect()) - - def paintCannon(self, p): - cr = self.cannonRect() - pix = qt.QPixmap(cr.size()) - pix.fill(self, cr.topLeft()) - - tmp = qt.QPainter(pix) - tmp.setBrush(qt.Qt.blue) - tmp.setPen(qt.Qt.NoPen) - - tmp.translate(0, pix.height() - 1) - tmp.drawPie(qt.QRect(-35, -35, 70, 70), 0, 90 * 16) - tmp.rotate(-self.ang) - tmp.drawRect(self.barrelRect) - tmp.end() - - p.drawPixmap(cr.topLeft(), pix) - - def cannonRect(self): - r = qt.QRect(0, 0, 50, 50) - r.moveBottomLeft(self.rect().bottomLeft()) - return r - - def shotRect(self): - gravity = 4.0 - - time = self.timerCount / 4.0 - velocity = self.shoot_f - radians = self.shoot_ang * 3.14159265 / 180 - - velx = velocity * math.cos(radians) - vely = velocity * math.sin(radians) - x0 = (self.barrelRect.right() + 5) * math.cos(radians) - y0 = (self.barrelRect.right() + 5) * math.sin(radians) - x = x0 + velx * time - y = y0 + vely * time - 0.5 * gravity * time * time - - r = qt.QRect(0, 0, 6, 6) - r.moveCenter(qt.QPoint(x, self.height() - 1 - y)) - return r - - def targetRect(self): - r = qt.QRect(0, 0, 20, 10) - r.moveCenter(qt.QPoint(self.target.x(), self.height() - 1 - self.target.y())) - return r - - def sizePolicy(self): - return qt.QSizePolicy(qt.QSizePolicy.Expanding, qt.QSizePolicy.Expanding) - - -class MyWidget(qt.QWidget): - def __init__(self, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) - - quit = qt.QPushButton("&Quit", self, "quit") - quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()")) - - self.angle = LCDRange("ANGLE", self, "angle") - self.angle.setRange(5, 70) - - self.force = LCDRange("FORCE", self, "force") - self.force.setRange(10, 50) - - self.cannonField = CannonField(self, "cannonField") - - self.connect(self.angle, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) - self.connect(self.cannonField, qt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) - - self.connect(self.force, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce) - self.connect(self.cannonField, qt.PYSIGNAL("forceChanged(int)"), self.force.setValue) - - shoot = qt.QPushButton("&Shoot", self, "shoot") - shoot.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - self.connect(shoot, qt.SIGNAL("clicked()"), self.cannonField.shoot) - - grid = qt.QGridLayout(self, 2, 2, 10) - - grid.addWidget(quit, 0, 0) - grid.addWidget(self.cannonField, 1, 1) - grid.setColStretch(1, 10) - - leftBox = qt.QVBoxLayout() - grid.addLayout(leftBox, 1, 0) - leftBox.addWidget(self.angle) - leftBox.addWidget(self.force) - - topBox = qt.QHBoxLayout() - grid.addLayout(topBox, 0, 1) - topBox.addWidget(shoot) - topBox.addStretch(1) - - self.angle.setValue(60) - self.force.setValue(25) - self.angle.setFocus() - - -qt.QApplication.setColorSpec(qt.QApplication.CustomColor) -a = qt.QApplication(sys.argv) - -w = MyWidget() -w.setGeometry(100, 100, 500, 355) -a.setMainWidget(w) -w.show() -sys.exit(a.exec_loop()) diff --git a/python/pyqt/examples3/tut13.py b/python/pyqt/examples3/tut13.py deleted file mode 100755 index a973ea70..00000000 --- a/python/pyqt/examples3/tut13.py +++ /dev/null @@ -1,330 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 13. - -import sys -import math -import random -import qt - - -class LCDRange(qt.QWidget): - def __init__(self, s=None, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) - - lcd = qt.QLCDNumber(2, self, "lcd") - self.slider = qt.QSlider(qt.Qt.Horizontal, self, "slider") - self.slider.setRange(0, 99) - self.slider.setValue(0) - - self.label = qt.QLabel(" ", self, "label") - self.label.setAlignment(qt.Qt.AlignCenter) - - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)")) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), self, qt.PYSIGNAL("valueChanged(int)")) - - self.setFocusProxy(self.slider) - - l = qt.QVBoxLayout(self) - l.addWidget(lcd, 1) - l.addWidget(self.slider) - l.addWidget(self.label) - - if s is not None: - self.setText(s) - - def value(self): - return self.slider.value() - - def setValue(self, value): - self.slider.setValue(value) - - def setRange(self, minVal, maxVal): - if minVal < 0 or maxVal > 99 or minVal > maxVal: - raise ValueError, "LCDRange.setRange(): invalid range" - - self.slider.setRange(minVal, maxVal) - - def text(self): - return self.label.text() - - def setText(self, s): - self.label.setText(s) - - -class CannonField(qt.QWidget): - def __init__(self, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) - - self.ang = 45 - self.f = 0 - self.timerCount = 0 - - self.autoShootTimer = qt.QTimer(self, "movement handler") - self.connect(self.autoShootTimer, qt.SIGNAL("timeout()"), self.moveShot) - - self.shoot_ang = 0 - self.shoot_f = 0 - self.target = qt.QPoint(0, 0) - self.gameEnded = 0 - - self.setPalette(qt.QPalette(qt.QColor(250, 250, 200))) - - self.barrelRect = qt.QRect(33, -4, 15, 8) - - self.newTarget() - - def angle(self): - return self.ang - - def setAngle(self, degrees): - if degrees < 5: - degrees = 5 - if degrees > 70: - degrees = 70 - if self.ang == degrees: - return - self.ang = degrees - self.repaint(self.cannonRect(), 0) - self.emit(qt.PYSIGNAL("angleChanged(int)"), (self.ang, )) - - def force(self): - return self.f - - def setForce(self, newton): - if newton < 0: - newton = 0 - if self.f == newton: - return - self.f = newton - self.emit(qt.PYSIGNAL("forceChanged(int)"), (self.f, )) - - def shoot(self): - if self.isShooting(): - return - - self.timerCount = 0 - self.shoot_ang = self.ang - self.shoot_f = self.f - self.autoShootTimer.start(50) - self.emit(qt.PYSIGNAL("canShoot(bool)"), (0, )) - - def newTarget(self): - r = qt.QRegion(self.targetRect()) - self.target = qt.QPoint(random.randint(200, 390), random.randint(10, 265)) - self.repaint(r.unite(qt.QRegion(self.targetRect()))) - - def gameOver(self): - return self.gameEnded - - def setGameOver(self): - if self.gameEnded: - return - if self.isShooting(): - self.autoShootTime.stop() - self.gameEnded = 1 - self.repaint() - - def restartGame(self): - if self.isShooting(): - self.autoShootTime.stop() - self.gameEnded = 0 - self.repaint() - self.emit(qt.PYSIGNAL("canShoot(bool)"), (1, )) - - def moveShot(self): - r = qt.QRegion(self.shotRect()) - self.timerCount = self.timerCount + 1 - - shotR = self.shotRect() - - if shotR.intersects(self.targetRect()): - self.autoShootTimer.stop() - self.emit(qt.PYSIGNAL("hit()"), ()) - self.emit(qt.PYSIGNAL("canShoot(bool)"), (1, )) - elif shotR.x() > self.width() or shotR.y() > self.height(): - self.autoShootTimer.stop() - self.emit(qt.PYSIGNAL("missed()"), ()) - self.emit(qt.PYSIGNAL("canShoot(bool)"), (1, )) - else: - r = r.unite(qt.QRegion(shotR)) - - self.repaint(r) - - def paintEvent(self, ev): - updateR = ev.rect() - p = qt.QPainter(self) - - if self.gameEnded: - p.setPen(qt.Qt.black) - p.setFont(qt.QFont("Courier", 48, qt.QFont.Bold)) - p.drawText(self.rect(), qt.Qt.AlignCenter, "Game Over") - - if updateR.intersects(self.cannonRect()): - self.paintCannon(p) - - if self.isShooting() and updateR.intersects(self.shotRect()): - self.paintShot(p) - - if not self.gameEnded and updateR.intersects(self.targetRect()): - self.paintTarget(p) - - def paintShot(self, p): - p.setBrush(qt.Qt.black) - p.setPen(qt.Qt.NoPen) - p.drawRect(self.shotRect()) - - def paintTarget(self, p): - p.setBrush(qt.Qt.red) - p.setPen(qt.Qt.black) - p.drawRect(self.targetRect()) - - def paintCannon(self, p): - cr = self.cannonRect() - pix = qt.QPixmap(cr.size()) - pix.fill(self, cr.topLeft()) - - tmp = qt.QPainter(pix) - tmp.setBrush(qt.Qt.blue) - tmp.setPen(qt.Qt.NoPen) - - tmp.translate(0, pix.height() - 1) - tmp.drawPie(qt.QRect(-35, -35, 70, 70), 0, 90 * 16) - tmp.rotate(-self.ang) - tmp.drawRect(self.barrelRect) - tmp.end() - - p.drawPixmap(cr.topLeft(), pix) - - def cannonRect(self): - r = qt.QRect(0, 0, 50, 50) - r.moveBottomLeft(self.rect().bottomLeft()) - return r - - def shotRect(self): - gravity = 4.0 - - time = self.timerCount / 4.0 - velocity = self.shoot_f - radians = self.shoot_ang * 3.14159265 / 180 - - velx = velocity * math.cos(radians) - vely = velocity * math.sin(radians) - x0 = (self.barrelRect.right() + 5) * math.cos(radians) - y0 = (self.barrelRect.right() + 5) * math.sin(radians) - x = x0 + velx * time - y = y0 + vely * time - 0.5 * gravity * time * time - - r = qt.QRect(0, 0, 6, 6) - r.moveCenter(qt.QPoint(x, self.height() - 1 - y)) - return r - - def targetRect(self): - r = qt.QRect(0, 0, 20, 10) - r.moveCenter(qt.QPoint(self.target.x(), self.height() - 1 - self.target.y())) - return r - - def isShooting(self): - return self.autoShootTimer.isActive() - - def sizePolicy(self): - return qt.QSizePolicy(qt.QSizePolicy.Expanding, qt.QSizePolicy.Expanding) - - -class GameBoard(qt.QWidget): - def __init__(self, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) - - quit = qt.QPushButton("&Quit", self, "quit") - quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()")) - - self.angle = LCDRange("ANGLE", self, "angle") - self.angle.setRange(5, 70) - - self.force = LCDRange("FORCE", self, "force") - self.force.setRange(10, 50) - - self.cannonField = CannonField(self, "cannonField") - - self.connect(self.angle, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) - self.connect(self.cannonField, qt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) - - self.connect(self.force, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce) - self.connect(self.cannonField, qt.PYSIGNAL("forceChanged(int)"), self.force.setValue) - - self.connect(self.cannonField, qt.PYSIGNAL("hit()"), self.hit) - self.connect(self.cannonField, qt.PYSIGNAL("missed()"), self.missed) - - self.shoot = qt.QPushButton("&Shoot", self, "shoot") - self.shoot.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - self.connect(self.shoot, qt.SIGNAL("clicked()"), self.fire) - self.connect(self.cannonField, qt.PYSIGNAL("canShoot(bool)"), self.shoot, qt.SLOT("setEnabled(bool)")) - - restart = qt.QPushButton("&New Game", self, "newgame") - restart.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - self.connect(restart, qt.SIGNAL("clicked()"), self.newGame) - - self.hits = qt.QLCDNumber(2, self, "hits") - self.shotsLeft = qt.QLCDNumber(2, self, "shotsleft") - hitsL = qt.QLabel("HITS", self, "hitsLabel") - shotsLeftL = qt.QLabel("SHOTS LEFT", self, "shotsleftLabel") - - grid = qt.QGridLayout(self, 2, 2, 10) - grid.addWidget(quit, 0, 0) - grid.addWidget(self.cannonField, 1, 1) - grid.setColStretch(1, 10) - - leftBox = qt.QVBoxLayout() - grid.addLayout(leftBox, 1, 0) - leftBox.addWidget(self.angle) - leftBox.addWidget(self.force) - - topBox = qt.QHBoxLayout() - grid.addLayout(topBox, 0, 1) - topBox.addWidget(self.shoot) - topBox.addWidget(self.hits) - topBox.addWidget(hitsL) - topBox.addWidget(self.shotsLeft) - topBox.addWidget(shotsLeftL) - topBox.addStretch(1) - topBox.addWidget(restart) - - self.angle.setValue(60) - self.force.setValue(25) - self.angle.setFocus() - - self.newGame() - - def fire(self): - if self.cannonField.gameOver() or self.cannonField.isShooting(): - return - self.shotsLeft.display(self.shotsLeft.intValue() - 1) - self.cannonField.shoot() - - def hit(self): - self.hits.display(self.hits.intValue() + 1) - if self.shotsLeft.intValue() == 0: - self.cannonField.setGameOver() - else: - self.cannonField.newTarget() - - def missed(self): - if self.shotsLeft.intValue() == 0: - self.cannonField.setGameOver() - - def newGame(self): - self.shotsLeft.display(15) - self.hits.display(0) - self.cannonField.restartGame() - self.cannonField.newTarget() - - -qt.QApplication.setColorSpec(qt.QApplication.CustomColor) -a = qt.QApplication(sys.argv) - -gb = GameBoard() -gb.setGeometry(100, 100, 500, 355) -a.setMainWidget(gb) -gb.show() -sys.exit(a.exec_loop()) diff --git a/python/pyqt/examples3/tut14.py b/python/pyqt/examples3/tut14.py deleted file mode 100755 index f046757d..00000000 --- a/python/pyqt/examples3/tut14.py +++ /dev/null @@ -1,378 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 14. - -import sys -import math -import random -import qt - - -class LCDRange(qt.QWidget): - def __init__(self, s=None, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) - - lcd = qt.QLCDNumber(2, self, "lcd") - self.slider = qt.QSlider(qt.Qt.Horizontal, self, "slider") - self.slider.setRange(0, 99) - self.slider.setValue(0) - - self.label = qt.QLabel(" ", self, "label") - self.label.setAlignment(qt.Qt.AlignCenter) - - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)")) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), self, qt.PYSIGNAL("valueChanged(int)")) - - self.setFocusProxy(self.slider) - - l = qt.QVBoxLayout(self) - l.addWidget(lcd, 1) - l.addWidget(self.slider) - l.addWidget(self.label) - - if s is not None: - self.setText(s) - - def value(self): - return self.slider.value() - - def setValue(self, value): - self.slider.setValue(value) - - def setRange(self, minVal, maxVal): - if minVal < 0 or maxVal > 99 or minVal > maxVal: - raise ValueError, "LCDRange.setRange(): invalid range" - - self.slider.setRange(minVal, maxVal) - - def text(self): - return self.label.text() - - def setText(self, s): - self.label.setText(s) - - -class CannonField(qt.QWidget): - def __init__(self, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) - - self.ang = 45 - self.f = 0 - self.timerCount = 0 - - self.autoShootTimer = qt.QTimer(self, "movement handler") - self.connect(self.autoShootTimer, qt.SIGNAL("timeout()"), self.moveShot) - - self.shoot_ang = 0 - self.shoot_f = 0 - self.target = qt.QPoint(0, 0) - self.gameEnded = 0 - self.barrelPressed = 0 - - self.setPalette(qt.QPalette(qt.QColor(250, 250, 200))) - - self.barrelRect = qt.QRect(33, -4, 15, 8) - - self.newTarget() - - def angle(self): - return self.ang - - def setAngle(self, degrees): - if degrees < 5: - degrees = 5 - if degrees > 70: - degrees = 70 - if self.ang == degrees: - return - self.ang = degrees - self.repaint(self.cannonRect(), 0) - self.emit(qt.PYSIGNAL("angleChanged(int)"), (self.ang, )) - - def force(self): - return self.f - - def setForce(self, newton): - if newton < 0: - newton = 0 - if self.f == newton: - return - self.f = newton - self.emit(qt.PYSIGNAL("forceChanged(int)"), (self.f, )) - - def shoot(self): - if self.isShooting(): - return - - self.timerCount = 0 - self.shoot_ang = self.ang - self.shoot_f = self.f - self.autoShootTimer.start(50) - self.emit(qt.PYSIGNAL("canShoot(bool)"), (0, )) - - def newTarget(self): - r = qt.QRegion(self.targetRect()) - self.target = qt.QPoint(random.randint(200, 390), random.randint(10, 265)) - self.repaint(r.unite(qt.QRegion(self.targetRect()))) - - def gameOver(self): - return self.gameEnded - - def setGameOver(self): - if self.gameEnded: - return - if self.isShooting(): - self.autoShootTime.stop() - self.gameEnded = 1 - self.repaint() - - def restartGame(self): - if self.isShooting(): - self.autoShootTime.stop() - self.gameEnded = 0 - self.repaint() - self.emit(qt.PYSIGNAL("canShoot(bool)"), (1, )) - - def moveShot(self): - r = qt.QRegion(self.shotRect()) - self.timerCount = self.timerCount + 1 - - shotR = self.shotRect() - - if shotR.intersects(self.targetRect()): - self.autoShootTimer.stop() - self.emit(qt.PYSIGNAL("hit()"), ()) - self.emit(qt.PYSIGNAL("canShoot(bool)"), (1, )) - elif shotR.x() > self.width() or shotR.y() > self.height() or shotR.intersects(self.barrierRect()): - self.autoShootTimer.stop() - self.emit(qt.PYSIGNAL("missed()"), ()) - self.emit(qt.PYSIGNAL("canShoot(bool)"), (1, )) - else: - r = r.unite(qt.QRegion(shotR)) - - self.repaint(r) - - def mousePressEvent(self, ev): - if ev.button() != qt.Qt.LeftButton: - return - if self.barrelHit(ev.pos()): - self.barrelPressed = 1 - - def mouseMoveEvent(self, ev): - if not self.barrelPressed: - return - pnt = ev.pos() - if pnt.x() <= 0: - pnt.setX(1) - if pnt.y() >= self.height(): - pnt.setY(self.height() - 1) - rad = math.atan(float(self.rect().bottom() - pnt.y()) / pnt.x()) - self.setAngle(int(round(rad * 180 / math.pi))) - - def mouseReleaseEvent(self, ev): - if ev.button() == qt.Qt.LeftButton: - self.barrelPressed = 0 - - def paintEvent(self, ev): - updateR = ev.rect() - p = qt.QPainter(self) - - if self.gameEnded: - p.setPen(qt.Qt.black) - p.setFont(qt.QFont("Courier", 48, qt.QFont.Bold)) - p.drawText(self.rect(), qt.Qt.AlignCenter, "Game Over") - - if updateR.intersects(self.cannonRect()): - self.paintCannon(p) - - if updateR.intersects(self.barrierRect()): - self.paintBarrier(p) - - if self.isShooting() and updateR.intersects(self.shotRect()): - self.paintShot(p) - - if not self.gameEnded and updateR.intersects(self.targetRect()): - self.paintTarget(p) - - def paintShot(self, p): - p.setBrush(qt.Qt.black) - p.setPen(qt.Qt.NoPen) - p.drawRect(self.shotRect()) - - def paintTarget(self, p): - p.setBrush(qt.Qt.red) - p.setPen(qt.Qt.black) - p.drawRect(self.targetRect()) - - def paintBarrier(self, p): - p.setBrush(qt.Qt.yellow) - p.setPen(qt.Qt.black) - p.drawRect(self.barrierRect()) - - def paintCannon(self, p): - cr = self.cannonRect() - pix = qt.QPixmap(cr.size()) - pix.fill(self, cr.topLeft()) - - tmp = qt.QPainter(pix) - tmp.setBrush(qt.Qt.blue) - tmp.setPen(qt.Qt.NoPen) - - tmp.translate(0, pix.height() - 1) - tmp.drawPie(qt.QRect(-35, -35, 70, 70), 0, 90 * 16) - tmp.rotate(-self.ang) - tmp.drawRect(self.barrelRect) - tmp.end() - - p.drawPixmap(cr.topLeft(), pix) - - def cannonRect(self): - r = qt.QRect(0, 0, 50, 50) - r.moveBottomLeft(self.rect().bottomLeft()) - return r - - def shotRect(self): - gravity = 4.0 - - time = self.timerCount / 4.0 - velocity = self.shoot_f - radians = self.shoot_ang * math.pi / 180 - - velx = velocity * math.cos(radians) - vely = velocity * math.sin(radians) - x0 = (self.barrelRect.right() + 5) * math.cos(radians) - y0 = (self.barrelRect.right() + 5) * math.sin(radians) - x = x0 + velx * time - y = y0 + vely * time - 0.5 * gravity * time * time - - r = qt.QRect(0, 0, 6, 6) - r.moveCenter(qt.QPoint(x, self.height() - 1 - y)) - return r - - def targetRect(self): - r = qt.QRect(0, 0, 20, 10) - r.moveCenter(qt.QPoint(self.target.x(), self.height() - 1 - self.target.y())) - return r - - def barrierRect(self): - return qt.QRect(145, self.height() - 100, 15, 100) - - def barrelHit(self, p): - mtx = qt.QWMatrix() - mtx.translate(0, self.height() - 1) - mtx.rotate(-self.ang) - (mtx, invertable) = mtx.invert() - return self.barrelRect.contains(mtx.map(p)) - - def isShooting(self): - return self.autoShootTimer.isActive() - - def sizePolicy(self): - return qt.QSizePolicy(qt.QSizePolicy.Expanding, qt.QSizePolicy.Expanding) - - -class GameBoard(qt.QWidget): - def __init__(self, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) - - quit = qt.QPushButton("&Quit", self, "quit") - quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()")) - - self.angle = LCDRange("ANGLE", self, "angle") - self.angle.setRange(5, 70) - - self.force = LCDRange("FORCE", self, "force") - self.force.setRange(10, 50) - - box = qt.QVBox(self, "cannonFrame") - box.setFrameStyle(qt.QFrame.WinPanel | qt.QFrame.Sunken) - - self.cannonField = CannonField(box, "cannonField") - - self.connect(self.angle, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) - self.connect(self.cannonField, qt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) - - self.connect(self.force, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce) - self.connect(self.cannonField, qt.PYSIGNAL("forceChanged(int)"), self.force.setValue) - - self.connect(self.cannonField, qt.PYSIGNAL("hit()"), self.hit) - self.connect(self.cannonField, qt.PYSIGNAL("missed()"), self.missed) - - self.shoot = qt.QPushButton("&Shoot", self, "shoot") - self.shoot.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - self.connect(self.shoot, qt.SIGNAL("clicked()"), self.fire) - self.connect(self.cannonField, qt.PYSIGNAL("canShoot(bool)"), self.shoot, qt.SLOT("setEnabled(bool)")) - - restart = qt.QPushButton("&New Game", self, "newgame") - restart.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - self.connect(restart, qt.SIGNAL("clicked()"), self.newGame) - - self.hits = qt.QLCDNumber(2, self, "hits") - self.shotsLeft = qt.QLCDNumber(2, self, "shotsleft") - hitsL = qt.QLabel("HITS", self, "hitsLabel") - shotsLeftL = qt.QLabel("SHOTS LEFT", self, "shotsleftLabel") - - accel = qt.QAccel(self) - accel.connectItem(accel.insertItem(qt.Qt.Key_Enter), self.fire) - accel.connectItem(accel.insertItem(qt.Qt.Key_Return), self.fire) - accel.connectItem(accel.insertItem(qt.Qt.CTRL + qt.Qt.Key_Q), qt.qApp, qt.SLOT("quit()")) - - grid = qt.QGridLayout(self, 2, 2, 10) - grid.addWidget(quit, 0, 0) - grid.addWidget(box, 1, 1) - grid.setColStretch(1, 10) - - leftBox = qt.QVBoxLayout() - grid.addLayout(leftBox, 1, 0) - leftBox.addWidget(self.angle) - leftBox.addWidget(self.force) - - topBox = qt.QHBoxLayout() - grid.addLayout(topBox, 0, 1) - topBox.addWidget(self.shoot) - topBox.addWidget(self.hits) - topBox.addWidget(hitsL) - topBox.addWidget(self.shotsLeft) - topBox.addWidget(shotsLeftL) - topBox.addStretch(1) - topBox.addWidget(restart) - - self.angle.setValue(60) - self.force.setValue(25) - self.angle.setFocus() - - self.newGame() - - def fire(self): - if self.cannonField.gameOver() or self.cannonField.isShooting(): - return - self.shotsLeft.display(self.shotsLeft.intValue() - 1) - self.cannonField.shoot() - - def hit(self): - self.hits.display(self.hits.intValue() + 1) - if self.shotsLeft.intValue() == 0: - self.cannonField.setGameOver() - else: - self.cannonField.newTarget() - - def missed(self): - if self.shotsLeft.intValue() == 0: - self.cannonField.setGameOver() - - def newGame(self): - self.shotsLeft.display(15) - self.hits.display(0) - self.cannonField.restartGame() - self.cannonField.newTarget() - - -qt.QApplication.setColorSpec(qt.QApplication.CustomColor) -a = qt.QApplication(sys.argv) - -gb = GameBoard() -gb.setGeometry(100, 100, 500, 355) -a.setMainWidget(gb) -gb.show() -sys.exit(a.exec_loop()) diff --git a/python/pyqt/examples3/tut2.py b/python/pyqt/examples3/tut2.py deleted file mode 100755 index 8b6a0768..00000000 --- a/python/pyqt/examples3/tut2.py +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 2. - -import sys -import qt - - -a = qt.QApplication(sys.argv) - -quit = qt.QPushButton("Quit", None) -quit.resize(75, 30) -quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - -qt.QObject.connect(quit, qt.SIGNAL("clicked()"), a, qt.SLOT("quit()")) - -a.setMainWidget(quit) -quit.show() -sys.exit(a.exec_loop()) diff --git a/python/pyqt/examples3/tut3.py b/python/pyqt/examples3/tut3.py deleted file mode 100755 index 9b739548..00000000 --- a/python/pyqt/examples3/tut3.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 3. - -import sys -import qt - - -a = qt.QApplication(sys.argv) - -box = qt.QVBox() -box.resize(200, 120) - -quit = qt.QPushButton("Quit", box) -quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - -qt.QObject.connect(quit, qt.SIGNAL("clicked()"), a, qt.SLOT("quit()")) - -a.setMainWidget(box) -box.show() -sys.exit(a.exec_loop()) diff --git a/python/pyqt/examples3/tut4.py b/python/pyqt/examples3/tut4.py deleted file mode 100755 index 9ad05c7d..00000000 --- a/python/pyqt/examples3/tut4.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 4. - -import sys -import qt - - -class MyWidget(qt.QWidget): - def __init__(self, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) - - self.setMinimumSize(200, 120) - self.setMaximumSize(200, 120) - - quit = qt.QPushButton("Quit", self, "quit") - quit.setGeometry(62, 40, 75, 30) - quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - - self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()")) - - -a = qt.QApplication(sys.argv) - -w = MyWidget() -w.setGeometry(100, 100, 200, 120) -a.setMainWidget(w) -w.show() -sys.exit(a.exec_loop()) diff --git a/python/pyqt/examples3/tut5.py b/python/pyqt/examples3/tut5.py deleted file mode 100755 index 88a24475..00000000 --- a/python/pyqt/examples3/tut5.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 5. - -import sys -import qt - - -class MyWidget(qt.QVBox): - def __init__(self, parent=None, name=None): - qt.QVBox.__init__(self, parent, name) - - quit = qt.QPushButton("Quit", self, "quit") - quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - - self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()")) - - lcd = qt.QLCDNumber(2, self, "lcd") - - slider = qt.QSlider(qt.Qt.Horizontal, self, "slider") - slider.setRange(0, 99) - slider.setValue(0) - - self.connect(slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)")) - - -a = qt.QApplication(sys.argv) - -w = MyWidget() -a.setMainWidget(w) -w.show() -sys.exit(a.exec_loop()) diff --git a/python/pyqt/examples3/tut6.py b/python/pyqt/examples3/tut6.py deleted file mode 100755 index 785edfe4..00000000 --- a/python/pyqt/examples3/tut6.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 6. - -import sys -import qt - - -class LCDRange(qt.QVBox): - def __init__(self, parent=None, name=None): - qt.QVBox.__init__(self, parent, name) - - lcd = qt.QLCDNumber(2, self, "lcd") - slider = qt.QSlider(qt.Qt.Horizontal, self, "slider") - slider.setRange(0, 99) - slider.setValue(0) - self.connect(slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)")) - - -class MyWidget(qt.QVBox): - def __init__(self, parent=None, name=None): - qt.QVBox.__init__(self, parent, name) - - quit = qt.QPushButton("Quit", self, "quit") - quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - - self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()")) - - grid = qt.QGrid(4, self) - - for c in range(4): - for r in range(4): - LCDRange(grid) - - -a = qt.QApplication(sys.argv) - -w = MyWidget() -a.setMainWidget(w) -w.show() -sys.exit(a.exec_loop()) diff --git a/python/pyqt/examples3/tut7.py b/python/pyqt/examples3/tut7.py deleted file mode 100755 index 400505ea..00000000 --- a/python/pyqt/examples3/tut7.py +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 7. - -import sys -import qt - - -class LCDRange(qt.QVBox): - def __init__(self, parent=None, name=None): - qt.QVBox.__init__(self, parent, name) - - lcd = qt.QLCDNumber(2, self, "lcd") - self.slider = qt.QSlider(qt.Qt.Horizontal, self, "slider") - self.slider.setRange(0, 99) - self.slider.setValue(0) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)")) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), self, qt.PYSIGNAL("valueChanged(int)")) - - def value(self): - return self.slider.value() - - def setValue(self, value): - self.slider.setValue(value) - - -class MyWidget(qt.QVBox): - def __init__(self, parent=None, name=None): - qt.QVBox.__init__(self, parent, name) - - quit = qt.QPushButton("Quit", self, "quit") - quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - - self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()")) - - grid = qt.QGrid(4, self) - - self.lcdlist = [] - previous = None - - for r in range(4): - for c in range(4): - lr = LCDRange(grid) - - if previous: - self.connect(lr, qt.PYSIGNAL("valueChanged(int)"), previous.setValue) - - previous = lr - self.lcdlist.append(lr) - - -a = qt.QApplication(sys.argv) - -w = MyWidget() -a.setMainWidget(w) -w.show() -sys.exit(a.exec_loop()) diff --git a/python/pyqt/examples3/tut8.py b/python/pyqt/examples3/tut8.py deleted file mode 100755 index f7dd1567..00000000 --- a/python/pyqt/examples3/tut8.py +++ /dev/null @@ -1,97 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 8. - -import sys -import qt - - -class LCDRange(qt.QVBox): - def __init__(self, parent=None, name=None): - qt.QVBox.__init__(self, parent, name) - - lcd = qt.QLCDNumber(2, self, "lcd") - self.slider = qt.QSlider(qt.Qt.Horizontal, self, "slider") - self.slider.setRange(0, 99) - self.slider.setValue(0) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)")) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), self, qt.PYSIGNAL("valueChanged(int)")) - - self.setFocusProxy(self.slider) - - def value(self): - return self.slider.value() - - def setValue(self, value): - self.slider.setValue(value) - - def setRange(self, minVal, maxVal): - if minVal < 0 or maxVal > 99 or minVal > maxVal: - raise ValueError, "LCDRange.setRange(): invalid range" - - self.slider.setRange(minVal, maxVal) - - -class CannonField(qt.QWidget): - def __init__(self, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) - - self.ang = 45 - self.setPalette(qt.QPalette(qt.QColor(250, 250, 200))) - - def angle(self): - return self.ang - - def setAngle(self, degrees): - if degrees < 5: - degrees = 5 - if degrees > 70: - degrees = 70 - if self.ang == degrees: - return - self.ang = degrees - self.repaint() - self.emit(qt.PYSIGNAL("angleChanged(int)"), (self.ang, )) - - def paintEvent(self, ev): - p = qt.QPainter(self) - p.drawText(200, 200, "Angle = %d" % (self.ang)) - - def sizePolicy(self): - return qt.QSizePolicy(qt.QSizePolicy.Expanding, qt.QSizePolicy.Expanding) - - -class MyWidget(qt.QWidget): - def __init__(self, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) - - quit = qt.QPushButton("Quit", self, "quit") - quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()")) - - self.angle = LCDRange(self, "angle") - self.angle.setRange(5, 70) - - self.cannonField = CannonField(self, "cannonField") - - self.connect(self.angle, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) - self.connect(self.cannonField, qt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) - - grid = qt.QGridLayout(self, 2, 2, 10) - - grid.addWidget(quit, 0, 0) - grid.addWidget(self.angle, 1, 0, qt.Qt.AlignTop) - grid.addWidget(self.cannonField, 1, 1) - grid.setColStretch(1, 10) - - self.angle.setValue(60) - self.angle.setFocus() - - -a = qt.QApplication(sys.argv) - -w = MyWidget() -w.setGeometry(100, 100, 500, 355) -a.setMainWidget(w) -w.show() -sys.exit(a.exec_loop()) diff --git a/python/pyqt/examples3/tut9.py b/python/pyqt/examples3/tut9.py deleted file mode 100755 index aba7ddc1..00000000 --- a/python/pyqt/examples3/tut9.py +++ /dev/null @@ -1,104 +0,0 @@ -#!/usr/bin/env python - -# Qt tutorial 9. - -import sys -import qt - - -class LCDRange(qt.QVBox): - def __init__(self, parent=None, name=None): - qt.QVBox.__init__(self, parent, name) - - lcd = qt.QLCDNumber(2, self, "lcd") - self.slider = qt.QSlider(qt.Qt.Horizontal, self, "slider") - self.slider.setRange(0, 99) - self.slider.setValue(0) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)")) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), self, qt.PYSIGNAL("valueChanged(int)")) - - self.setFocusProxy(self.slider) - - def value(self): - return self.slider.value() - - def setValue(self, value): - self.slider.setValue(value) - - def setRange(self, minVal, maxVal): - if minVal < 0 or maxVal > 99 or minVal > maxVal: - raise ValueError, "LCDRange.setRange(): invalid range" - self.slider.setRange(minVal, maxVal) - - -class CannonField(qt.QWidget): - def __init__(self, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) - - self.ang = 45 - self.setPalette(qt.QPalette(qt.QColor(250, 250, 200))) - - def angle(self): - return self.ang - - def setAngle(self, degrees): - if degrees < 5: - degrees = 5 - if degrees > 70: - degrees = 70 - if self.ang == degrees: - return - self.ang = degrees - self.repaint() - self.emit(qt.PYSIGNAL("angleChanged(int)"), (self.ang, )) - - def paintEvent(self, ev): - p = qt.QPainter(self) - - p.setBrush(qt.Qt.blue) - p.setPen(qt.Qt.NoPen) - - p.translate(0, self.rect().bottom()) - p.drawPie(qt.QRect(-35, -35, 70, 70), 0, 90 * 16) - p.rotate(-self.ang) - p.drawRect(qt.QRect(33, -4, 15, 8)) - - def sizePolicy(self): - return qt.QSizePolicy(qt.QSizePolicy.Expanding, qt.QSizePolicy.Expanding) - - -class MyWidget(qt.QWidget): - def __init__(self, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) - - quit = qt.QPushButton("&Quit", self, "quit") - quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()")) - - self.angle = LCDRange(self, "angle") - self.angle.setRange(5, 70) - - self.cannonField = CannonField(self, "cannonField") - - self.connect(self.angle, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) - self.connect(self.cannonField, qt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) - - grid = qt.QGridLayout(self, 2, 2, 10) - - grid.addWidget(quit, 0, 0) - grid.addWidget(self.angle, 1, 0, qt.Qt.AlignTop) - grid.addWidget(self.cannonField, 1, 1) - grid.setColStretch(1, 10) - - self.angle.setValue(60) - self.angle.setFocus() - - -qt.QApplication.setColorSpec(qt.QApplication.CustomColor) -a = qt.QApplication(sys.argv) - -w = MyWidget() -w.setGeometry(100, 100, 500, 355) -a.setMainWidget(w) -w.show() -sys.exit(a.exec_loop()) diff --git a/python/pyqt/examples3/webbrowser/mainwindow.py b/python/pyqt/examples3/webbrowser/mainwindow.py deleted file mode 100644 index 6afdfc8b..00000000 --- a/python/pyqt/examples3/webbrowser/mainwindow.py +++ /dev/null @@ -1,1097 +0,0 @@ -# -*- coding: utf-8 -*- - -# Form implementation generated from reading ui file 'mainwindow.ui' -# -# Created: Sun Dec 5 14:50:47 2004 -# by: The PyQt User Interface Compiler (pyuic) snapshot-20041203 -# -# WARNING! All changes made in this file will be lost! - - -from qt import * -from qtaxcontainer import QAxWidget - -image0_data = [ -"32 32 3 1", -". c None", -"a c #000080", -"# c #808080", -"................................", -"................................", -"................................", -"................................", -"................................", -"................................", -"................................", -"................................", -".......#aaaaaaaaa...............", -"......#aaaaaaaaaaa.........a....", -".....#aaa.......aaa.......aa....", -"....#aaa.........aaaa....aaa....", -"....aaa...........aaaa..aaaa....", -"....aa..............aaaaaaaa....", -"....aa...............aaaaaaa....", -"....aa...............aaaaaaa....", -"....aa..............aaaaaaaa....", -"....aa.............aaaaaaaaa....", -"....#aa...........aaaaaaaaaa....", -".....#aa.........aaaaaaaaaaa....", -"......aa#.......................", -".......aa#......................", -"................................", -"................................", -"................................", -"................................", -"................................", -"................................", -"................................", -"................................", -"................................", -"................................" -] -image1_data = [ -"32 32 142 2", -"Qt c None", -"#O c #0010f7", -"#P c #0021ef", -"#R c #0021f7", -"#S c #0021ff", -"#T c #0029ff", -"ah c #0031ff", -"#N c #0829f7", -"#x c #0831ff", -"#C c #0839ff", -"#E c #1029e7", -"#r c #1039ff", -"#o c #1042ff", -"#Q c #1831de", -"ak c #1831e7", -"#k c #1842ff", -"#H c #184aff", -"aj c #2139e7", -"#s c #2142de", -"#G c #214aff", -".9 c #2152ff", -"#2 c #2939c6", -"ag c #2939d6", -"a# c #2942ce", -"#p c #2942de", -"#U c #2952ff", -"ae c #295aff", -"#y c #3152de", -".2 c #3152e7", -"#I c #315aff", -"#z c #3163ff", -"#1 c #394abd", -"#L c #394ade", -"#B c #3963ff", -"#w c #396bff", -"#V c #4252d6", -"#l c #4252de", -"#W c #4263ef", -"#q c #426bff", -".1 c #4273ff", -"#5 c #4a5ad6", -"#J c #4a73ff", -"#K c #4a7bff", -"ac c #4a84ff", -"ab c #5263c6", -".T c #5263ce", -".M c #5273d6", -".c c #5273e7", -".U c #527bde", -"#t c #527bf7", -"#A c #5284ff", -"#X c #5a63ad", -".V c #5a84ef", -"#F c #5a84ff", -"#v c #5a8cff", -"ad c #636bbd", -".e c #637bc6", -".W c #637bce", -".3 c #637bd6", -".Q c #6384de", -".5 c #638cef", -"#b c #638cff", -"#j c #6394ff", -"af c #6b73bd", -"#0 c #6b73c6", -".S c #6b84ce", -"#u c #6b94ff", -".C c #6b9cff", -"ai c #737bce", -".z c #7384b5", -".j c #7384c6", -"#6 c #738cce", -".4 c #738cd6", -".b c #739ce7", -".I c #73a5ff", -"#n c #73adff", -"#Z c #7b84b5", -".R c #7b8cbd", -".J c #7b94bd", -".n c #7ba5e7", -".P c #7badff", -"#c c #7bb5ff", -"#M c #84849c", -"#3 c #8484ad", -".i c #848cc6", -"al c #8494bd", -"aa c #849cc6", -".y c #84adff", -".O c #84b5ff", -"#a c #84bdff", -".t c #8c94ad", -".a c #8c94b5", -".D c #8c9cbd", -".m c #8c9cce", -".A c #8ca5ef", -".f c #8cadf7", -".H c #8cbdff", -"#D c #9494a5", -"#8 c #9494bd", -"#9 c #9494c6", -"a. c #949cbd", -".r c #94c6ff", -"#d c #94ceff", -"#4 c #9ca5ad", -"#7 c #9ca5b5", -".u c #9cbdf7", -".6 c #9cc6ff", -".0 c #9cceff", -".x c #9cd6ff", -".L c #a5a5b5", -"#Y c #a5a5bd", -"#e c #a5ceff", -"## c #a5d6ff", -".X c #adadb5", -".k c #adc6ff", -"#i c #add6ff", -".E c #b5b5b5", -".d c #b5b5bd", -".K c #b5bdc6", -".F c #b5ceff", -".N c #b5d6ff", -".B c #b5deff", -".s c #bdbdbd", -".# c #bdbdc6", -"#. c #bdd6ff", -".G c #bde7ff", -"#h c #c6e7ff", -"#f c #c6efff", -".w c #c6f7ff", -".h c #ced6ff", -".Y c #cee7ff", -".q c #ceefff", -".Z c #cef7ff", -".l c #d6efff", -".8 c #d6f7ff", -".o c #deefff", -".7 c #def7ff", -"#m c #deffff", -"#g c #e7ffff", -".v c #efffff", -".p c #f7ffff", -".g c #ffffff", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQt.#.a.b.c.aQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQt.d.e.f.g.h.iQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQt.d.j.k.g.g.l.mQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQt.a.n.o.g.p.q.r.mQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQt.s.t.u.g.g.v.w.x.y.mQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQt.z.A.g.g.v.B.x.r.C.DQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQt.E.a.F.g.g.v.G.r.H.H.I.JQtQtQtQtQtQtQtQtQtQt.s.s.K.K.KQtQt", -"QtQt.L.M.N.g.g.q.x.H.O.y.P.P.Q.LQtQtQt.s.s.K.a.R.S.T.U.V.V.Q.W.X", -"Qt.#.Q.Y.g.g.Z.0.O.y.P.P.P.P.1.2.3.4.S.e.c.5.f.6.N.l.7.8.Z.0.9.T", -".s.W#..g.p.Z###a.O.P.P.I.I.P#b#c#d#e.B#f#g.7.8.8.q#h#i.r.H#j#k#l", -".e#e.g#m.G#d.O.y.P.I.I.I.I.I.I.H.6####.0.r.H#a.O#c.I#n.I#j.1#o#p", -".5.p#f.x.0.O.y.P.I.I.I.I.I.I.I.I.I.I.I.I.I.I.I.I.I.C.C.C#b#q#r#s", -"#t##.r.H.O#c.P.I.I.I.I.I.I.C.I.C.C.I.C.I.C.C.C.C#u.C#j#j#v#w#x#p", -"#y#z#j.I.I.P.I.I.C.C.C.I.I.C.C#j#b#v#v#b#j#j#j#b#j#v#b#v#A#B#C#p", -"#D#E#k#q#A#j.C.I.C.I.C.C.C.I#F#G#k#k#H#G#I#B.1.1#J#K#K.1#q#z#x#L", -".s#M#N#r#z#K#b#u.C#u.C.C.I.I#B#O#P#Q#E#P#R#S#T#x#r#r#H.9#U#G#T#V", -"QtQt.z#N#r#I.1#v#j#u#j.C#u.I#W#X#D.s#Y#D#Z#0#1#2#Q#P#P#N#N#T#E#3", -"QtQt.s#4#5#x#H#B#K#v#j#j#j#j#6QtQtQtQtQtQtQt.s.s.d.X#7#8#9a..X.s", -"QtQtQtQt.da##S#k#z#J#v#b#j#vaaQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQt.Eab#x#o#I#K#v#vac.iQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQt.sad#E#rae#q#K#wafQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQt.#.Lagah#k#U#kafQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQt#4#Q#T#xahaiQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQt#4adajakalQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt" -] -image2_data = [ -"32 32 142 2", -"Qt c None", -"#Y c #0018e7", -"aa c #0018ef", -"#E c #0018ff", -"#Q c #0021ef", -"#K c #0021ff", -"a# c #0029ff", -"a. c #0829ff", -"#P c #0831ff", -"#4 c #1021d6", -"#R c #1021de", -"#L c #1029d6", -"#V c #1029e7", -"#n c #1039f7", -"#W c #1039ff", -"#O c #1042ff", -"ah c #1831ce", -"#y c #1842ff", -"aj c #2131c6", -"#S c #2131ce", -"#z c #2139de", -".0 c #2142de", -"ai c #2142e7", -".t c #214aef", -"#D c #214aff", -".x c #2152ff", -"al c #2939de", -"#d c #294ae7", -"#I c #2952ff", -"#J c #295aff", -"#T c #3142bd", -"#N c #315aff", -"#s c #3163ff", -"#F c #394ac6", -"#G c #3952d6", -"ag c #395ae7", -".B c #3963f7", -"ae c #3963ff", -".g c #396bff", -"#U c #424ab5", -"#2 c #4252b5", -".J c #425ace", -"#A c #4263de", -".b c #426be7", -"#p c #426bef", -"#x c #426bff", -".n c #4273ff", -".o c #4a63ce", -"#t c #4a6be7", -".Q c #4a73de", -"#3 c #4a73ff", -"#C c #4a7bff", -"#Z c #525abd", -".1 c #526bbd", -".W c #526bc6", -".R c #526bce", -".P c #527be7", -"#w c #5284ff", -"#m c #528cff", -"ac c #5a63bd", -"ak c #5a6bbd", -".O c #5a7bf7", -"#H c #5a84ff", -"#9 c #5a8cff", -"af c #636bb5", -".h c #636bbd", -"ab c #6384ef", -"#v c #638cff", -".w c #6394ff", -".s c #639cff", -"#M c #6b73b5", -".C c #6b73bd", -"#u c #6b9cff", -".c c #737bb5", -".S c #7384ce", -".N c #738ce7", -".a c #7394de", -".8 c #7394ef", -"#8 c #739cf7", -"#B c #739cff", -".A c #73a5ff", -"#0 c #7b84b5", -".T c #7b8cbd", -".9 c #7b94c6", -"#. c #7b94d6", -".7 c #7ba5ff", -".X c #7badff", -".I c #7bb5ff", -"#5 c #848ca5", -".y c #848cad", -".M c #8494b5", -"## c #849cd6", -"#c c #84adff", -".G c #84b5ff", -".Z c #84bdff", -"#o c #8c8cad", -"#a c #8ca5ce", -".Y c #8cb5ff", -".H c #8cbdff", -"#1 c #9494a5", -".U c #9494ad", -"#7 c #949cad", -"#b c #94ade7", -".z c #94c6ff", -".v c #94ceff", -".j c #9c9cad", -".u c #9ca5ad", -"#r c #9cc6ff", -".m c #9cceff", -".d c #a5a5a5", -"#6 c #a5a5ad", -".V c #a5a5b5", -".K c #a5adb5", -".2 c #a5ceff", -".r c #a5d6ff", -".L c #adadad", -".i c #adadb5", -".p c #adadbd", -".q c #addeff", -"#e c #ade7ff", -"#X c #b5b5b5", -".D c #b5b5bd", -".E c #b5b5c6", -".F c #b5bdc6", -".f c #b5deff", -"#q c #b5efff", -".# c #bdbdbd", -"ad c #bdbdc6", -".6 c #bddeff", -"#i c #bde7ff", -"#h c #bdefff", -"#g c #c6f7ff", -"#l c #cee7ff", -"#j c #cef7ff", -"#f c #ceffff", -".k c #d6efff", -"#k c #d6f7ff", -".l c #d6ffff", -".e c #deefff", -".5 c #e7ffff", -".4 c #efffff", -".3 c #f7ffff", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.a.b.c.#QtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.d.e.f.g.h.iQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.j.k.l.m.n.o.pQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.d.f.q.r.m.s.t.cQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.u.q.v.m.r.m.w.x.y.#QtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.u.z.z.z.z.m.m.A.B.C.DQtQtQtQt", -"QtQt.#.E.F.#.#QtQtQtQtQtQtQtQtQtQt.j.G.H.z.H.z.m.m.I.n.J.KQtQtQt", -".L.M.N.O.P.Q.R.S.T.U.E.#.#QtQtQt.V.W.X.H.Y.H.H.z.z.z.Z.g.0.VQtQt", -".1.2.3.4.5.k.6.2.Y.7.8.a.9#.###a#b.Y.G.G.G.G.Y.G.Y.H.z#c.n#d.u.#", -".b#e#f#g#h#i.f#h#g#g#j#k#k#k.e.4.4#l#c.X.G.G.G.G.G.G.G.H.H#m#n#o", -"#p.m#q.r.m.m.m.z#r.m.z.m.r.q.q.q.m.H.G.G.X#c.G.G.G.X.X.X.X.7#s.J", -"#t.v.q.m.z.H.H.H.H.H.Z.Y.G.G.G.G.G.G.G.X#c.I#c.X.X.X.A.A#u#u.n#d", -"#t.H.r.z.Y.G#c.X.X.X.7.X.X.X.X.X.X.X.X.X.X.X.X.X.7.A#u#v#w#x#y#z", -"#A.I.m.H.X.X.X.A.A#B.A#B#u#u#u#u#B.X#c.X.X.X.X.A.A#u.w#C.g#D#E#F", -"#G.s.G.A.w#v#H#w#C.n#x#s#I#y#y#y#J#H.X.7.X.X.7.A#u.w#w#J#y#K#L.U", -"#M.x.n#N#D#O#P#K#K#Q#Q#R#S#T#U#U#V#W.A.X.A.A#B#u.w.n#D#P#E#L.VQt", -"#X.h#V#Q#Y#R#S#U#Z#0#1.p.#.#.#.#.V#2.s.7.A#u#u.w#3#D#P#E#4#5QtQt", -"QtQt#6#1#7.D.#.#QtQtQtQtQtQtQtQtQt#6#8#B#u.w#9#s#ya.#E#F.V.#QtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.8#9#H#w#s#Wa#aa#2#XQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#ab#w#C#N#W#K#Eac.#QtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtad.Pae#J#Wa##Vaf#XQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#ag#W#P#Eah#6QtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#ai#K#Eaj.jQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#akalak.iQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt" -] -image3_data = [ -"25 25 2 1", -"# c #000000", -". c #ffffff", -".........................", -".........................", -".........................", -".........######..........", -".......##########........", -"......####....####.......", -".....###........###......", -"....#####........###.....", -"....##.###........##.....", -"...###..###.......###....", -"...##....###.......##....", -"...##.....###......##....", -"...##......###.....##....", -"...##.......###....##....", -"...###.......###..###....", -"....##........###.##.....", -"....###........#####.....", -".....###........###......", -"......####....####.......", -".......##########........", -".........######..........", -".........................", -".........................", -".........................", -"........................." -] -image4_data = [ -"32 32 3 1", -". c None", -"# c #000080", -"a c #808080", -"................................", -"................................", -"................................", -"................................", -"................................", -"................................", -"................................", -"................................", -"................................", -"...............#########a.......", -"....#.........###########a......", -"....##.......###.......###a.....", -"....###....####.........###a....", -"....####..####...........###....", -"....########..............##....", -"....#######...............##....", -"....#######...............##....", -"....########..............##....", -"....#########.............##....", -"....##########...........##a....", -"....###########.........##a.....", -".......................a##......", -"......................a##.......", -"................................", -"................................", -"................................", -"................................", -"................................", -"................................", -"................................", -"................................", -"................................" -] -image5_data = [ -"32 32 211 2", -"Qt c None", -"aJ c #000000", -"#W c #080800", -"#N c #100800", -"#V c #101000", -"#E c #101008", -"#M c #181000", -"#L c #181800", -"#D c #181808", -"#F c #181810", -"as c #211800", -"#K c #211808", -"#J c #212110", -"#G c #212118", -"#q c #212121", -"an c #292100", -"#I c #292110", -"aN c #292910", -"#H c #292918", -"#y c #292921", -"aF c #312900", -"#C c #312918", -"#i c #312929", -".0 c #313131", -"#7 c #393100", -"#U c #393108", -"aG c #393931", -".M c #393939", -"#u c #423939", -"#c c #424a42", -"aE c #4a4200", -"aY c #4a4210", -".V c #4a4239", -"#B c #4a4a39", -".m c #4a4a42", -"aP c #4a5218", -".G c #4a5252", -".z c #4a5a52", -"aO c #524200", -"am c #524a00", -"#T c #524a08", -"#p c #524a4a", -".s c #525252", -"#a c #525a52", -".7 c #52635a", -"#b c #526363", -"az c #5a4a00", -"#6 c #5a5208", -"aw c #5a5210", -".Z c #5a524a", -".L c #5a5a52", -".y c #5a5a5a", -".F c #5a635a", -"#S c #635208", -"ax c #635a10", -".U c #635a52", -".r c #635a5a", -"aZ c #636321", -"## c #63635a", -".A c #636363", -"#h c #636b6b", -"aL c #637329", -"af c #6b5a00", -".6 c #6b635a", -"#o c #6b6363", -".E c #6b6b63", -"a4 c #6b7321", -"aS c #6b7329", -"aR c #6b7331", -"aX c #736300", -"al c #736308", -"#R c #736b10", -".T c #736b63", -"a5 c #737329", -".i c #73736b", -".K c #737373", -"a7 c #737b29", -"#g c #737b73", -"a9 c #7b7318", -"#A c #7b7373", -"a8 c #7b7b21", -"aV c #7b7b29", -"aQ c #7b7b5a", -".J c #7b7b73", -".1 c #7b7b7b", -"b# c #7b8431", -"a3 c #7b844a", -".8 c #7b847b", -"ay c #847308", -"#5 c #847310", -"aT c #847b21", -"b. c #847b29", -".S c #847b73", -".d c #847b7b", -"aW c #848421", -"a1 c #848429", -"a0 c #848431", -"bq c #84844a", -".H c #848484", -"ae c #8c7b08", -"ak c #8c7b10", -"#j c #8c8484", -"ba c #8c8c63", -"a2 c #8c8c7b", -".x c #8c8c84", -".2 c #8c948c", -".9 c #8cada5", -"aC c #947b08", -".Y c #947b73", -"aK c #948c10", -"#Q c #948c18", -"a6 c #948c29", -"#m c #948c84", -"bp c #949442", -"aH c #949484", -".D c #94948c", -".n c #949494", -"bn c #949c4a", -"bl c #949c5a", -"bj c #949c63", -".u c #949c94", -".v c #94a59c", -"aI c #9c8c10", -"#4 c #9c8c18", -"#O c #9c8c29", -"aM c #9c9418", -"#r c #9c948c", -"bo c #9c9c4a", -"bm c #9c9c52", -"bk c #9c9c5a", -"bh c #9c9c6b", -".k c #9c9c94", -".a c #9c9c9c", -"bi c #9ca56b", -"bf c #9ca573", -".h c #9ca59c", -"#f c #9ca5a5", -".B c #9cbdb5", -"#P c #a59400", -"aB c #a59418", -"#k c #a5948c", -"ar c #a59c29", -".N c #a59c8c", -".P c #a59c94", -".W c #a59c9c", -"bg c #a5a573", -"bd c #a5a584", -".q c #a5a59c", -".c c #a5a5a5", -"be c #a5ad7b", -".o c #a5ada5", -".C c #a5adad", -".I c #a5b5ad", -"#d c #a5bdb5", -".w c #a5c6bd", -"ad c #ad9c10", -"aj c #ad9c18", -"#w c #ad9c94", -".f c #ada59c", -"bc c #adad7b", -"bb c #adad84", -".# c #adada5", -".t c #adadad", -".4 c #adb5ad", -"ai c #b5a518", -"aq c #b5a529", -"aD c #b5a542", -"ao c #b5a54a", -".O c #b5a594", -"#v c #b5a59c", -"at c #b5ad52", -"#z c #b5ad9c", -".5 c #b5ada5", -".j c #b5b5ad", -".e c #b5b5b5", -".3 c #b5bdb5", -".Q c #b5bdbd", -"#e c #b5cec6", -"#8 c #bda539", -"#x c #bda59c", -"#3 c #bdad29", -"#X c #bdad31", -"ag c #bdad42", -"#n c #bdb5ad", -".b c #bdbdbd", -".X c #bdcec6", -"aU c #c6b510", -"#. c #c6c6bd", -".p c #c6cece", -".g c #c6ded6", -"ac c #cebd31", -"#l c #ced6ce", -"#s c #ced6d6", -"#t c #cedede", -"#9 c #d6c610", -"#2 c #d6c631", -"ap c #dec608", -"ah c #dece10", -"ab c #dece31", -".l c #deefe7", -".R c #deefef", -"au c #e7ce08", -"a. c #e7d621", -"a# c #e7d631", -"aa c #e7d639", -"#1 c #e7de39", -"#Y c #efde10", -"av c #efde21", -"aA c #efde29", -"#Z c #f7e729", -"#0 c #f7e739", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.aQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQt.b.c.d.eQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQt.f.g.h.i.bQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQt.j.k.l.e.m.nQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQt.b.a.o.p.q.r.s.tQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQt.u.v.w.k.x.y.z.A.bQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQt.t.k.B.C.k.D.E.F.G.HQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQt.b.#.#.o.I.b.c.J.K.L.M.tQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQt.a.N.O.P.Q.R.o.S.T.U.V.s.bQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQt.t.N.P.W.k.X.R.P.Y.i.A.Z.0.1QtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQt.b.x.2.w.3.4.I.j.#.5.6.L.F.7.0.cQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQt.n.8.9.p#..o.4.x.x.x##.s#a#b.s#c.bQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQt.t.D.##d#e.h#f.o.P.2.2#g###h.A.z#i.KQtQtQtQtQtQtQt", -"QtQtQtQtQtQt.b#j.P.f.P#k.q.4.X#l#m#n.n#o.J.6#p#i#q.cQtQtQtQtQtQt", -"QtQtQtQtQtQt.W#m#k.O#m#r.5.k#s#t#m.q#r.U.E.T#p#u#i.M.eQtQtQtQtQt", -"QtQtQtQtQt.b.x#r.o.t#v.f.o.4.l#l#w#x.f.i#o.E###a.m#y.nQtQtQtQtQt", -"QtQtQtQtQt.b.e.c#d.o#z.u.q#f.I.q.#.#.2#A.U.m#B#h.h.j.bQtQtQtQtQt", -"QtQtQtQtQtQtQtQt.b#C#D#E#F#G#G#G#H#I#J#K#L#M#N.iQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQt.b#O#P#Q#R#S#T#U#L#M#V#W#N#V#V.iQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQt.b#X#Y#Z#0#0#1#2#3#4#5#6#7#M#V#AQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQt.b#8#9a.a#aaaaabac#3adaeaf#7#M.JQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQt.bagaha.a##1aaaa#2aiajakalaman#AQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtaoapa.a#aaaqaraq#3aj#5afamas.JQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtatauava#aw#V#W#Max#4ayafazan.JQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtatahaAaB#W#N#M#V#V#RaCalazas.JQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQt.baDap#Z#Q#N#M#V#M#N#6akafaEaFaG.E#h.JQtQtQtQtQt", -"QtQtQtQtQtQtQtQtaHaIahaAaB#W#W#N#WaJ#6aKalamaF#WaJaJ#yQtQtQtQtQt", -"QtQtQtQtQtQtQt.qaLaIahavaM#WaJ#W#DaN#RaealaOan#NaNaPaQQtQtQtQtQt", -"QtQtQtQtQtQt.jaRaSaTaUavaB#WaNaPaLaVaWaeaX#6aYaZa0a1a2QtQtQtQtQt", -"QtQtQtQtQt.ba3a4a5a5aVa6a1aZa7aSaSa5a8a9a4a5b.b#a5a5.kQtQtQtQtQt", -"QtQtQtQtQtbaa7a7aVa0b.b#a7b#a0a7a7a7aSaSa7b.aVa0aVaR.#QtQtQtQtQt", -"QtQtQtQtQtbbbcbdbebebfbgbhbhbibjbjbkbkblbmbmbnbobpbq.bQtQtQtQtQt" -] -image6_data = [ -"22 22 165 2", -"Qt c None", -".h c #000000", -".o c #010101", -"aF c #030303", -"#n c #060606", -".H c #080808", -".r c #0c0c0c", -".q c #121212", -"#V c #124e7f", -"#m c #131313", -".G c #161615", -"aI c #172cac", -".6 c #181818", -"aH c #1841b2", -".p c #191919", -"#8 c #1928ba", -"#W c #1929ba", -"aj c #192aba", -"av c #1a31c2", -"aE c #1b1b1b", -"aD c #1b2bc8", -"at c #1c79d2", -"ah c #1c7dd4", -"aA c #1d1d1d", -"aC c #1d7ad7", -"#6 c #1d7eda", -".5 c #1e1e1e", -"#7 c #1e8ae0", -"ai c #1e8de0", -"au c #1e90e0", -".g c #242424", -"#5 c #313b6c", -"aB c #343d8d", -"#3 c #393939", -".f c #3d3d3d", -"ak c #433967", -"#C c #434442", -"aw c #443c6e", -"#l c #454643", -"as c #454fa3", -".4 c #474845", -"#R c #474846", -".e c #484848", -"aG c #4856a0", -".d c #4a4a4a", -"#9 c #4c416a", -".c c #4c4c4c", -"ag c #4c5cae", -"#X c #4d4669", -"#z c #4dc2b2", -"#P c #4e445a", -"#G c #53504e", -".l c #545454", -".b c #555555", -"#Q c #595274", -"#i c #62b2a2", -".a c #676767", -"#j c #69b6a3", -".F c #6f6f6a", -".K c #6f8b89", -"ax c #747474", -"#a c #76a1a0", -".# c #797979", -"#A c #7bd7e8", -"ay c #7d7d7d", -"#U c #7e7d73", -".I c #808080", -".O c #81a3b8", -"az c #828282", -"#y c #82d1c0", -"#S c #848484", -"#O c #857e7c", -"#F c #86add2", -"#k c #86cdda", -"#N c #89b1bd", -"#h c #8acec3", -"#o c #8c8c8c", -"#L c #8cbbca", -"al c #8d8d8d", -".s c #8f8f8f", -"#H c #909090", -"#K c #90bac9", -"#M c #91c4cf", -"#t c #929292", -".X c #94c2cf", -".N c #94c2d0", -".W c #959595", -"#B c #96b9cb", -".3 c #97bede", -".L c #98c2ce", -".P c #9b9b9b", -"a. c #9c9c9c", -"am c #9d9d9d", -"#s c #9dbdc4", -"#b c #9e9e9e", -"#Y c #a0a0a0", -"an c #a6a6a6", -"#v c #a6d1d6", -".Z c #a7a1a1", -"#I c #a7a7a7", -"#D c #a7edde", -".M c #a8d8e5", -"#u c #aeaeae", -"ac c #b1b1b1", -"a# c #b2b2b2", -".2 c #b5cbd6", -".V c #b6b6b6", -"ar c #b7b7b7", -"#Z c #b8b8b8", -"#2 c #bababa", -".Q c #babbb9", -"aq c #bbbbbb", -"#c c #bcbcbc", -".8 c #bfbfbf", -"ap c #c0c0c0", -".1 c #c1d9d2", -"aa c #c8c8c8", -"ab c #cacaca", -"ao c #cbcbcb", -".Y c #ccf8f1", -"#J c #cdcdcd", -".R c #cecece", -"#p c #d1f9f4", -"#4 c #d5d5d5", -"#w c #d5ece4", -".9 c #d5f6f5", -"#0 c #d6d6d6", -".U c #d7d7d7", -"af c #d8d8d8", -".x c #dadada", -".y c #dbdbdb", -".w c #dcdcdc", -"#e c #dcf7f4", -"#1 c #dddddd", -"ae c #dedede", -".E c #dfdfdf", -".z c #e0e0e0", -"#g c #e0ebe4", -"#q c #e1edea", -"#d c #e2e2e2", -"#x c #e2ebe2", -".0 c #e2eee5", -".v c #e3e3e3", -"## c #e3e7d5", -"#r c #e4ebd9", -"#E c #e4f2ec", -".u c #e5e5e5", -".S c #e7e7e7", -".k c #e9e9e9", -".A c #ebebeb", -".D c #ededed", -".t c #f0f0f0", -"#T c #f4f4f4", -".n c #f6f6f6", -".C c #f7f7f7", -"#f c #f8f5f2", -".m c #f8f8f8", -".7 c #f9f9f9", -"ad c #fafafa", -"#. c #fbf0eb", -".J c #fbfbfb", -".T c #fcfcfc", -".B c #fdfdfd", -".j c #fefefe", -".i c #ffffff", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQt.#.a.b.c.d.d.e.f.g.hQtQtQtQtQtQtQt", -"QtQtQtQt.#.i.i.i.i.i.i.i.i.i.h.hQtQtQtQtQtQt", -"QtQtQtQt.a.j.j.j.j.j.j.i.i.i.h.k.hQtQtQtQtQt", -"QtQtQtQt.l.m.n.o.p.q.r.s.j.i.h.t.u.hQtQtQtQt", -"QtQtQtQt.e.v.w.x.y.z.A.n.B.B.h.C.D.E.hQtQtQt", -"QtQtQt.h.h.h.h.h.F.G.H.I.n.J.h.h.h.h.h.hQtQt", -"QtQt.h.K.L.M.N.O.h.P.Q.R.S.n.T.j.U.V.W.hQtQt", -"Qt.h.X.Y.Z.0.1.2.3.h.4.5.6.q.r.s.7.v.8.hQtQt", -"Qt.h.9#..###.F.F.F#a.h#b#c#d.m.j.7.v#c.hQtQt", -"Qt.h#e#f.a#g#h#i#j#k.h#l#m.r#n#o.7.v#c.hQtQt", -"Qt.h#p#q.a#r.F.F.F#s.h#t#u.x.n.j.7.v#c.hQtQt", -"Qt.h#v#w.##x#y#z#A#B.h#C#m#m.q#o.7.v#c.hQtQt", -"QtQt.h#D.Z#E.F.F#F.h#G#H#I#J.A.7.m.v#c.hQtQt", -"QtQtQt.h#K#L#M#N.h#O#P#Q#R#m.q#S#T#d#c.hQtQt", -"QtQtQtQt.h.h.h.h.Z#U#V#W#X#Y#Z#0.S#1#2.hQtQt", -"QtQtQtQt#3.t.v.x#4#5#6#7#8#9a.a#aaabac.hQtQt", -"QtQtQtQt.6ad.kae.yafagahaiajakalamana..oQtQt", -"QtQtQtQt.haeaoapaqaqarasatauavawaxayaz.oQtQt", -"QtQtQtQtQt.h.h.h.h.haA.oaBaCaiaD.HaEaFQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtaGaHaIQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt" -] - -class MainWindow(QMainWindow): - def __init__(self,parent = None,name = None,fl = 0): - QMainWindow.__init__(self,parent,name,fl) - self.statusBar() - - self.image0 = QPixmap(image0_data) - self.image1 = QPixmap(image1_data) - self.image2 = QPixmap(image2_data) - self.image3 = QPixmap(image3_data) - self.image4 = QPixmap(image4_data) - self.image5 = QPixmap(image5_data) - self.image6 = QPixmap(image6_data) - - if not name: - self.setName("MainWindow") - - - self.setCentralWidget(QWidget(self,"qt_central_widget")) - MainWindowLayout = QHBoxLayout(self.centralWidget(),0,6,"MainWindowLayout") - - self.Frame3 = QFrame(self.centralWidget(),"Frame3") - self.Frame3.setFrameShape(QFrame.StyledPanel) - self.Frame3.setFrameShadow(QFrame.Sunken) - Frame3Layout = QVBoxLayout(self.Frame3,1,0,"Frame3Layout") - - self.WebBrowser = QAxWidget(self.Frame3,"WebBrowser") - self.WebBrowser.setControl("{8856F961-340A-11D0-A96B-00C04FD705A2}") - self.WebBrowser.setFocusPolicy(QAxWidget.StrongFocus) - Frame3Layout.addWidget(self.WebBrowser) - MainWindowLayout.addWidget(self.Frame3) - - self.actionGo = QAction(self,"actionGo") - self.actionGo.setIconSet(QIconSet(self.image0)) - self.actionBack = QAction(self,"actionBack") - self.actionBack.setIconSet(QIconSet(self.image1)) - self.actionForward = QAction(self,"actionForward") - self.actionForward.setIconSet(QIconSet(self.image2)) - self.actionStop = QAction(self,"actionStop") - self.actionStop.setIconSet(QIconSet(self.image3)) - self.actionRefresh = QAction(self,"actionRefresh") - self.actionRefresh.setIconSet(QIconSet(self.image4)) - self.actionHome = QAction(self,"actionHome") - self.actionHome.setIconSet(QIconSet(self.image5)) - self.actionFileClose = QAction(self,"actionFileClose") - self.FileNewGroup = QActionGroup(self,"FileNewGroup") - self.FileNewGroup.setUsesDropDown(1) - self.actionNewWindow = QAction(self.FileNewGroup,"actionNewWindow") - self.actionSearch = QAction(self,"actionSearch") - self.actionSearch.setIconSet(QIconSet(self.image6)) - self.actionAbout = QAction(self,"actionAbout") - self.actionAboutQt = QAction(self,"actionAboutQt") - - - self.Toolbar = QToolBar(QString(""),self,Qt.DockTop) - - self.actionBack.addTo(self.Toolbar) - self.actionForward.addTo(self.Toolbar) - self.actionStop.addTo(self.Toolbar) - self.actionRefresh.addTo(self.Toolbar) - self.actionHome.addTo(self.Toolbar) - self.Toolbar.addSeparator() - self.actionSearch.addTo(self.Toolbar) - self.Toolbar_2 = QToolBar(QString(""),self,Qt.DockTop) - - self.Toolbar_2.setHorizontallyStretchable(1) - - self.lblAddress = QLabel(self.Toolbar_2,"lblAddress") - - self.addressEdit = QLineEdit(self.Toolbar_2,"addressEdit") - self.actionGo.addTo(self.Toolbar_2) - - - self.menubar = QMenuBar(self,"menubar") - - - self.PopupMenu = QPopupMenu(self) - self.FileNewGroup_2 = QPopupMenu(self) - self.PopupMenu.setAccel(QString.null,self.PopupMenu.insertItem(self.FileNewGroup.iconSet(),self.__tr("New"),self.FileNewGroup_2)) - self.actionNewWindow.addTo(self.FileNewGroup_2) - self.PopupMenu.insertSeparator() - self.actionFileClose.addTo(self.PopupMenu) - self.menubar.insertItem(QString(""),self.PopupMenu,1) - - self.unnamed = QPopupMenu(self) - self.actionAbout.addTo(self.unnamed) - self.actionAboutQt.addTo(self.unnamed) - self.menubar.insertItem(QString(""),self.unnamed,2) - - - self.languageChange() - - self.resize(QSize(812,605).expandedTo(self.minimumSizeHint())) - self.clearWState(Qt.WState_Polished) - - self.connect(self.actionHome,SIGNAL("activated()"),self.WebBrowser,SLOT("GoHome()")) - self.connect(self.actionRefresh,SIGNAL("activated()"),self.WebBrowser,SLOT("Refresh()")) - self.connect(self.actionStop,SIGNAL("activated()"),self.WebBrowser,SLOT("Stop()")) - self.connect(self.actionForward,SIGNAL("activated()"),self.WebBrowser,SLOT("GoForward()")) - self.connect(self.actionBack,SIGNAL("activated()"),self.WebBrowser,SLOT("GoBack()")) - self.connect(self.actionGo,SIGNAL("activated()"),self.go) - self.connect(self.actionFileClose,SIGNAL("activated()"),self.close) - self.connect(self.actionSearch,SIGNAL("activated()"),self.WebBrowser,SLOT("GoSearch()")) - self.connect(self.addressEdit,SIGNAL("returnPressed()"),self.go) - self.connect(self.WebBrowser,SIGNAL("NavigateComplete(const QString&)"),self.addressEdit.setText) - self.connect(self.WebBrowser,SIGNAL("TitleChange(const QString&)"),self.setTitle) - self.connect(self.WebBrowser,SIGNAL("NavigateComplete(const QString&)"),self.navigateComplete) - self.connect(self.WebBrowser,SIGNAL("CommandStateChange(int,bool)"),self.setCommandState) - self.connect(self.WebBrowser,SIGNAL("BeforeNavigate(const QString&,int,const QString&,const QVariant&,const QString&,bool&)"),self.navigateBegin) - self.connect(self.actionStop,SIGNAL("activated()"),self.navigateComplete) - self.connect(self.actionNewWindow,SIGNAL("activated()"),self.newWindow) - self.connect(self.actionAbout,SIGNAL("activated()"),self.aboutSlot) - self.connect(self.actionAboutQt,SIGNAL("activated()"),self.aboutQtSlot) - - self.init() - - - def languageChange(self): - self.setCaption(self.__tr("Qt WebBrowser")) - self.WebBrowser.setControl(self.__tr("{8856F961-340A-11D0-A96B-00C04FD705A2}")) - self.actionGo.setText(self.__tr("Go")) - self.actionGo.setMenuText(self.__tr("Go")) - self.actionBack.setText(self.__tr("Back")) - self.actionBack.setAccel(self.__tr("Backspace")) - self.actionBack.setMenuText(self.__tr("Back")) - self.actionForward.setText(self.__tr("Forward")) - self.actionForward.setMenuText(self.__tr("Forward")) - self.actionStop.setText(self.__tr("Stop")) - self.actionStop.setMenuText(self.__tr("Stop")) - self.actionRefresh.setText(self.__tr("Refresh")) - self.actionRefresh.setMenuText(self.__tr("Refresh")) - self.actionHome.setText(self.__tr("Home")) - self.actionHome.setMenuText(self.__tr("Home")) - self.actionFileClose.setText(self.__tr("Close")) - self.actionFileClose.setMenuText(self.__tr("C&lose")) - self.FileNewGroup.setText(self.__tr("New")) - self.actionNewWindow.setText(self.__tr("Window")) - self.actionNewWindow.setAccel(self.__tr("Ctrl+N")) - self.actionNewWindow.setMenuText(self.__tr("Window")) - self.FileNewGroup.setMenuText(self.__tr("New")) - self.actionSearch.setText(self.__tr("Search")) - self.actionSearch.setMenuText(self.__tr("Search")) - self.actionAbout.setText(self.__tr("About")) - self.actionAbout.setMenuText(self.__tr("About")) - self.actionAboutQt.setText(self.__tr("About Qt")) - self.actionAboutQt.setMenuText(self.__tr("About Qt")) - self.Toolbar.setLabel(self.__tr("Toolbar")) - self.Toolbar_2.setLabel(self.__tr("Toolbar_2")) - self.lblAddress.setText(self.__tr("Address")) - self.PopupMenu.changeItem(self.PopupMenu.idAt(0),self.__tr("New")) - if self.menubar.findItem(1): - self.menubar.findItem(1).setText(self.__tr("&File")) - if self.menubar.findItem(2): - self.menubar.findItem(2).setText(self.__tr("&Help")) - - - def go(self): - print "MainWindow.go(): Not implemented yet" - - def newWindow(self): - print "MainWindow.newWindow(): Not implemented yet" - - def setProgress(self,a0,a1): - print "MainWindow.setProgress(int,int): Not implemented yet" - - def init(self): - pass - - def setTitle(self,a0): - print "MainWindow.setTitle(const QString&): Not implemented yet" - - def setCommandState(self,a0,a1): - print "MainWindow.setCommandState(int,bool): Not implemented yet" - - def navigateComplete(self): - print "MainWindow.navigateComplete(): Not implemented yet" - - def navigateBegin(self): - print "MainWindow.navigateBegin(): Not implemented yet" - - def aboutSlot(self): - print "MainWindow.aboutSlot(): Not implemented yet" - - def aboutQtSlot(self): - print "MainWindow.aboutQtSlot(): Not implemented yet" - - def __tr(self,s,c = None): - return qApp.translate("MainWindow",s,c) diff --git a/python/pyqt/examples3/webbrowser/mainwindow.ui b/python/pyqt/examples3/webbrowser/mainwindow.ui deleted file mode 100644 index 1689e8ad..00000000 --- a/python/pyqt/examples3/webbrowser/mainwindow.ui +++ /dev/null @@ -1,410 +0,0 @@ - -MainWindow - - - MainWindow - - - - 0 - 0 - 812 - 605 - - - - Qt WebBrowser - - - - unnamed - - - 0 - - - 6 - - - - Frame3 - - - StyledPanel - - - Sunken - - - - unnamed - - - 1 - - - 0 - - - - WebBrowser - - - StrongFocus - - - {8856F961-340A-11D0-A96B-00C04FD705A2} - - - - - - - - - menubar - - - - - - - - - - - - - - - - - - Toolbar - - - Toolbar - - - - - - - - - - - - Toolbar_2 - - - true - - - Toolbar_2 - - - - lblAddress - - - Address - - - - - addressEdit - - - - - - - - - - - actionGo - - - image0 - - - Go - - - - - actionBack - - - image1 - - - Back - - - Backspace - - - - - actionForward - - - image2 - - - Forward - - - - - actionStop - - - image3 - - - Stop - - - - - actionRefresh - - - image4 - - - Refresh - - - - - actionHome - - - image5 - - - Home - - - - - actionFileClose - - - Close - - - C&lose - - - - - FileNewGroup - - - New - - - true - - - - actionNewWindow - - - Window - - - Ctrl+N - - - - - - actionSearch - - - image6 - - - Search - - - - - actionAbout - - - About - - - - - actionAboutQt - - - About Qt - - - - - - 789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade65232365200210543251d2e253d856405bffcbc54103b11c8563600020b03105719c4b530b08072f50880513560a09c080338d5209420294a4451a38c90426621ab5146d10de524a2aa417505445122861a547722bb0c971a3d2aa921c2ae446c6a9431fc85a9064551220e354009653dec00294e712a1ac4e97078a9a9b5e6020013b3f563 - - - 789ce596497332470c86effe15947573a5f4c1cc30cc542a07ef60bc808dd7540e3d9b6df006186c93ca7f8fba2535ce57be98dc9292313c487a2575f7ccf063a376d53baa6dfc589bbe9ad7fbbc96df99496da3983d3e7efcfec76f7faead87418dfe1a51500bd67f595befbfd6f2daf1f35369014e08a05e6fd4ab96e31e73d0282bc7a7cae23ff3ccfe8170ca6cee9843f51f3b4ec8cff9efccdebf2d2cf9b06bb9417a25c74f98bdff99390a84fb8e49af70f39891b2e40bfbf8b6b0917e87968346a8f5a6cc51c07ab02f2cf1983237552f709c86691e3bbd5be5821998a32067bd1765d13f67563d530a4b3df8b01c523d8ec74059faed086bfc82390e851b8ed3c86485e34365a9bfc5ece3df8433e10bcb5140f5dd3cf0e099f32f99e350cecb5858f2b1c1dc52fda663d334a277c0ecfd5d61c9373973120967969b548fd71b079e797d8e985b21eb63aecceb85e7c299f4ffaa2ce7739359ebc195631387c6ad1f5e302791ccbba72cf173e15cfa2d2cc7619cf1fa63c9dccaa4ff4bcfdc7fa82cfdf7999348f6bf299c4bfd4c59ea0f99535dafca71d60a65ffebca52ff8c3989e47cce98351fb785759e7bcbad65bf0be624ca9a8e87caac0fb1702ef191b2cc9731a7b9ec4f87d934659e27e142f8c671e6eb9d0ae7b2be07cc6924ccf999698a7e4f58f572e64cebb9f393444994e68e4365d9ff7be15caef70766ad678cb0f8f18359ebe109b3af27f199fadd794cf254eb196599774758e77d5496f5dd64a67959af122ef87c639b59eb81d34ba97fe3f4215196f3922acbbc28acf527cc792c7a857029ecf63bcded05efb8a52cf3cc9833ed2f66563dac0b8b1ebe3317ea77f73352173db8f6ccf54a66df0f30fb7c777d9bc214d2cf88d9cf73cfece3ddf3296b66da7fe199d7a32b5cc8feef31fbfe8f99bdde96b0faddf3272bac390665b99e90d9e7ef33972de9d73d7ff3d873255c49fc1b73257ee4f8d2eb5d336b3e8e8535ff86d9e7bbf35f2cf51366ef77cfeb6299df62563f3c0a8b1fdcf3d3569778773f756e66f7fcac967e175f797ffff5dfd9ff4103010d6698a35955030b2cb1c25bbcc3fbd5344861882352b8c5077c5c45836678c267ca7fc1314ebeaf81537cc599eb608e6ff88e1f2b682c705314b6486182dbb8f31d0ddca529f644619ff2db641d3cf82a8bfa9d62d7da670d3cc4233c760a63eaa08d2734478fac8f87ffc833788a6738c073bc20ebe3255eb1069d863e5e3b851bacfb7c6b0d0c30c488f24a3a2d4ddaf1986a3d600b13179be280ef597809e876e206000c69d8ec0e590f32c8a18012b7a0825b9799e018eee0de4e0b4318c103ff2ea2985b78c47d28a487ce276b634cca40356d1655801c3bf044af2136e0195ef8b711be4045ab50ff42e16bdbb6463d8e610253fe3d4855ec3ed80abd9f62397ef9c9e6cee835249bc31bbc731ff0010beacbcdbfaca29f2836a3e839fd1f3acb5cb6fd6e13b6605b34766097d6664cdf0d7faad9813dd827df08daf4de812ddaa7061c4017baf43ea6daef70c8fb0247704c932dc897b94e67da09553a811ef4a94a0f4ee10c069435216b630ae7a43b800b7fc6164ea543ea73ea75663b22a50e5cc215ec50956beaf606ead08080147b64c76403d20ebdc6142268528d3655ee3a1db6f88b535ee015b42081d4205ee1f4f335878501ea7644331dc81acecdb7ef63b86b32eae59956cff63237f92af7319c9a82669c989256bd0b6fa6fabe86bbfe0ecdadb9a399ce61b49a86355adfbedd45736756bc27b30afd161a9a9179585de33bf69fd2f8ebd7b5bf014644b906 - - - 789ce5965b4f23471085dff915d6d6db2aaac5e3b92aca037703cbc55c8c21ca43cf8c8d0dd85c6c307694ff9eeaaed3bd68771f968d14298a0a109fabebd4e99a9ef17cfad8e81d1f343e7e5a99cecc6c5435aaa1796a7cac9fc7e3c5ef7ffcf6e7ca8756d4909f661c35a20fbfac7ce8cc1a55e3f07ed2b7409702b4badaccfb996563020f5c7ecbf340b9a31c3591dff7ac7943e002cc8e73cf74acdcc27a8a2d37a5be4e1d9f04567f9fc105f25dcfea9726caad62a07c1158f58f94e3087e868ea57fa5fa0be590bfb11c3525affd4e03ebfa25b8507fbcaa1c47ca66e459fdf10c6c30af4dcfda8f5f9513dfffce71e1f5a956967adddfaeb25f4f7b60e8d199e596f42f6bc787ca213f554e5be06dc7a28ffdee282791cedb5c83d19fd795a55ecf4b3fb0ee07ebd312fae796e3283665e238524e2265de031bcc774d396d61be25b8c4fe1f02abfeab67f49f2867decfbd6393b6a03f03438f3bca19fa51cb33fc6f80fd7eae2c27e257e7cb4de5b4045f78d679f24960ddcfb172e6f73357ce63e88fc115ce43e558fcabbeb905fb7e47cae24ff5daca41af007bbd81e5b425f53aff6160d52f95f318f37d01a39ee7ca05f4790a469e0e1c97590bfa1b81f53c3e2bfbf5ecf697b532efe754398f31af437085eb65948b18e723f70cbf9e2bcc633db0f65b533609fcbafb372bf318fdcfc015e65b281731ee0ff6acf70767ca5e8f7be01abcab5cfa7e89e53cce2ba3fd1681b5df8172013f44e00acfbf4a39e8ef287b7dbe02234feefce795d727a36c12ccf75239d4b7c1bede9def42fcc0ef7960d5cbc05ebf543635aed752b94aa1ff02ee83ddf3b6a87c3d3f2b9b047a4fcaa17e0cf6f5eef928ab13f5476960d5eb7ac6f5dd07d7e04839e83d29d7be9ffbfe31b50dc723cfa87f08acf947e51a7ad457ee6760773ecaa4f47e36036bfd96673c3fb6c13578a01cf41f9505d5af3b2f655dc28fa93da33e550ef523e5e06f08861eb9e7b94cdfe7ddf753d50feb6f94437e00f67edcf3aa4e831ed8afe73bb05fefe655f7c37edcfd62bb81ddfb82935776cfeb41c87766ff2cfe7f1a4c6cb8e48ae91f68d4dce7015ff390473fad71c3b77cc7639ef03d3ffcb48f013ff293a84c79c6d54f693c8bc28b28589539bff2e2ed647e586389184bacf13a6ff0e6d71a32f92dde96bfdf9dbccc6387dba2d086caae4c668ff7bf68f0673ee0433ee263eef0099ff2199f8b62d0e32e5f704fea2fe5b70d3f57729556b91b349a1c718b634e64faa9fc7fc919e772220a91213254ca273b884bf72b4a54f1846ad925e93b1af56940d734a4110fe4efb5c40dddda907311734c7752d10b3a1ae289c634a17b7dafe331e995b3b124fbdfd25d85471763596fab7aa2a4f53d444653ded3773bb96e8faeae1de2ea8dff9da0b0ebfcd858e3357aa667bb1f68b4a5e7d256853559e8f56d64aefe85e6f44a0b5aea3bac5c2bebf74b8775fb6bfbb858771e7a6f1df09c36f89a36698bb6f53d5c4ef08ee4e6a2dd269b9d488729ed4a171b7bd40ece3228cce5d305edd3673ed7773139bd133a14d5233a96cff7a9237142a77446e7125dba900e70681564f5a6acdc1285ae9e0feaf150d675e8d2d59dd315ad52931fec2973d1a5489c6698e29c5a508829797bd629a52665bcf9fdd32ed95c1d50217b5c18b67390f34befb8e78873a9b6b39ad285216328a2de3bef5b32a59db5ccec42a6b565aaf7dffba6e663d3972b211ea86b065f3cbccbc7b53890399a21a55f677f5863e4f670c337df667f58e3d6dc99dbef3dd5ff6bdf73ff82c65fbfaefc0d4fb5b868 - - - 789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade65232325500210543251d2e25658564056503300071f540dc3430007371012a492a830156496538c094848922c9c2259134c099304914e3604c8424aa5e6449b0044216ca824ba2da8b4512218b4d122e8b55520fee5974072164511da487ea490c7f22cba249e20d3efc018f3fcae0d2702eb5d2106992b5d65c00b9a48974 - - - 789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade65232365200210543251d2e253d856405bffcbc54105b19c8563600020b03103711c4b530b08072f50880513524ab518681443435ca984ae08ae06a94114a10ac443435ca3043904d4c4453a38ca604ae11590d9a0ab80bd0d46078914c35c4d885a608871a547f61f81d5d117a1862018930e5b8d5c0950c741a1b1e6a6aadb90086a9d853 - - - 789ca5985973db480ec7dff3295cc15b6a0b2351a428d6d63ef83e255bbe647b6a1fd02465dd872d9f53f3dd076c005dc926ce6a32eed8553f37fadf7fa0c1a69cdfbe6cdc9cb537befcf6e97145ab61be910fe861e34bf1349dbefdfedffffcf1e97323dae07f51bdbe117dfed7a7cfddd546bed199cfca0ae888016afeab62e8796ef110ee545caf05be16ae5bfc6ee096e7b6e756983f51b6f53b81257ecfb8eee7e9b162f66af1c78125fe48987f23f3fb81657e691cd5bddecc7316d555efd058f7eb2867aa771058f4de8c55cffb6dd4a34cf5b68d357e681c6515634db81a7e3ef59c35cccf5560bf9ef6953389c77660af074f15c751e05c38a6d81f2ef9f3a848f4e9d658f2c36b635dbfa54cc2383556bd33e12492fc70df38f1f3f8ae4cc2745a711285fda7caa4f95e06967a2d8c63f27a8fc2a60fa4acfa980a371b898f0767dc6cf8fdbc9f84c27e4de124d2fabe186b3dee8c75ff1365dbef2db0ccef0987fd2f2a6632fd576552fd2b63d57b08ecd7d39d70b321fd0560acfb6d1a4b7e3050764de7d79f08a70de937ea7b7689e68f4de1e0776e2c7ab8abecb47eb170aa7ee822b0e89f1b4b7fd24dc529abe9794f02cbf99e2b3badc7a5b1ee97089b3e0e8d253f3c364e253e5576120ff7c63a9f7966d2e771d358e75bca4ef3bb0e2cf9758db5fe47c6b21eeb81bd3f07c2ad58ebd130d67e6a194b3cf97e62b2fa24c67a1f5d2aab3f8781a53e17c6eaa7082cfa3de156acf9d5034b7e3563f1eb96c6eaf7c0b815fbf8d2739e3aedefb1b1de9723618b77a49cebf946c6e20f5f8d251e753e8b5bb9e74c980a4afc7a7fbf66b1ed8fb7c67a9ec7c2ad5cfd74038bdfa6b1f6cbd458fd2e84b358efbb0363f5b71358fccd8c33596f9c4bfddcc458fac78d8cf5797b3296f5f82c4c49e6f5c9bf9fb23ce41307967e3935d6f36c0b67b1ce3f188b5f3757367f5363b98fdc38b0cc0f8cf5f90bf3ea97028bfe50981289777d63edcf81b1c4439897f3c52d615738cfe0df371c1deb7db265acf98d8d253f7a50d67a60c758cfcbf4cc7f2fb0f8bf1736bfae30d6f35f1a4b3ce6c6e2df95ca85f6f7dc58f3db0e5c783e14e6ebc533e87e963fbe0873f9fd3cc97c91693fd028b0d4e3c558f3eb0b9b5f972bab3fe78c353f3056bfabc0e2371636bfe4cf9b29d1e76b69acfdb863accfd33cb0dc2fa7c6e2179e03cb79ae940b7dffbf1b6bfd1363f53b12367f581a6b3d1bca56df6e60a9bfc6e765def4ecef6bc7eafaf9e8d558fbb7a15ce87d7263acf7ffbdb1e40f33e1e0cf29ebfea8eb6d7ff29f17f8f4137dfe51d8fa0117ca65ee3fbfe3bd705116b2de9f775e3af50313e1a229f1f0682cf1b052e6e1d9dfbf1cddd4fd2363cdcfef5fb05b7d1f0c944bed4f67ac9f5f27c265bf4c3d9f07eefb787f1f96695eaa1e0a174d7d7f81b1ee4f81a5fe75e552d9bf1fca7e617e9e8d556f33b0c4fbcf5ffdb44c956bc6a2d75dfd6c2020fd3ce2ff69a0c31c0b2cff91461fef71804374bfaa81231ce3044b9ce2ecd734380fc2392e70890ff888bfa6f184cff8c24e5ef10ddf71f3a37c3ed6c015afdec26dfeb983bbb887fb78f0f734380fe031c7437f3247788c27d8fe713e1f6a1076f014cfb08be7ac7481977885d75c951fe4f3630dcea3c3eb7b9cc70d6b9ce12d9fee26de610debeb69b0fb578cb89a0d8c399711e794609373d9c39455f2b53466d8c20c17809c45cc7a3c00f011081cffccff379fef35388f1d0428a0c401f459e58c3d45700f0003cee71d8678fc730d7430e2557d3c8331f7568c37308129cc7006733e9d262c6008cb6ff3f94ea3c72bc678ca3f1fb80a637884154c71c974c55d72c91a4feca4fdf553f8ad46554d8e9ee30a9eb1efab31611f2ff0ca346427bb9c11e114debe7e7ebed328318702e7f0ce9dbee47a1c724655b745b0c94ea6b0c55519f059b98f73d19a6cc30eecc21eecfb7100877004c770026de8e070bdfe805338832e9cc3055cc2955f7b0d3de8f0cfebb5356ee016eea0c6a30e11342086049a907aadcd35355a90111250f5e5288706bfdb4bea572a78b49e06ddd3a0d2807a2502110d6944639ad09466ebf9e8ae684e0bf5b1a4075ab28f11ffa1df678dc7f57cb0c68a9ee899355e7c2ddbf40a31bdb1c63bcdfe86c6803669cb9f4555c76b38a76dcee57d5d1f5c8f1d5af0b9745581bb029a5c8f3eedd21eed73b70ebe56fa91061dd061f05139e9d1116b1cfb9aee55c4fcf6330d5cd289d778a6b65fdd831dea702e256b9cf2b974a84367d4fd580347744e17744957acc13e7cfc095d538f356ed8cd2ddd518dea147da4c1956890ffcf295ed5e4c83b4a59f182b9455935e3b801ab791c7fa4e188d7a4bcbee66353feaef9df8852ca2f3e9ee3ef73840f359cabfec22979f4ddbd1bf018ba118f318f899bf298b9b95bb8e537cffe9ffffef4171c39a0bf - - - 789c8d96c9521c490c86ef3c458775734cc8ddd5b5c6c41c303b180cc60b66620eaacc2c9aa5599b7562de7da45fc5180c8e98fa39f091522e4a49c9bbb783bdedcdc1db77735733991d864198c8e5e06dbc9e4eeffffceb8fbfe7de64d9407f466531c8defc36f76667360883adb3d364c013051ae2039f8147266359068f4dc6740a2e4db05f05d726f0253898c017c6a3cc04ffafce79aa3af0143c36c17e055caa0aacbf06aeb2203e5f09ae4d185f75ce472de6e7737063c2fcb57356b702fed673e32c473d4bcf3760198f02e69325706b022f3a676df0f567e05035d1ed273dc79883e7c1d1045e70ae2456d84fd9738a589f0b703261bc72ae25e17ee4b0e7d8f3b5733374e603e32c37c11ff36970db12f193f7e07c1c6bec87c6e0c604ff0e1c4db03f36cec7e3a6f4fd2e38e779eee7bd05e7e350fa7e4fc0455ee6b84fb9eab913bfdf1c5ce5758efba54fffb1e75302d726f8af3817a5f8f922584cf06fc0211f951ebfd0b30afe07ce4510dfdf1e38e665e9f9f1e01c32cf1fda06a73c2f7c7eac5f8c8b61eef582f315b909dc82f1c17e07dc1459e5f1c77d953abb787e0ab832611cf957366dd9c707f556762a3fcf8673ddd6d8afdc1957b909fe98af2a65d4c787c08d09e3c8bfaad504f378de83a309e35fc049d9d747bda19c7dbe8f602d88d6fd11af3a33c1ffde398e02ec69178c0b04bb7fa12be03e08e7ab4b895e2f74ec1ca2e73f6d811b2d37df1feaa9969082f71ff4a73a98c01f9cdb3678fde27eea58f7f9cdc8bfba33c11efda2199ac01bcead048fd72678a4e9e3f6a86f6d172acc87fc69f290f9386f3d72f478a1bf348509fea8b7a66c9b80fec1a8b7a66a53f47cc2fe9b5ae77346fe35ad09e761703081d12f9b68c2fc57ce6d0c1e6fe463934ce0efc63234c11ffd5b4a13c66f9cb53d79fded832bcd27f47f5aeb59055e744eb1df3fe2251aeee4e7453f9264c27aa847b44f7f4f909fda3efb7ae30c5c84b65f1fef435b9a608ff7a4ad4c981ffb6b6b13d8fda5edfb37eff4dcb65e2f787f5a7cb0f7fd0413ecf13eb49d09f6783ff07cf97d8ec0a3f8d8df516f483faf07c45b1f27e9f30ff989e9fdbe11ff1034fd3c9eebe068c238fa9f6677f2fb27ac1f475dd3f97da25fc6c204be755673ef3f8db3360c1f1f824b13c651df2877c44fd0df511efe5ea39f44318151cf9a4e2ab0af870d63fee4dc55fdfe109f880ff3fb788a8ff98df733762630fa471aa6febda2839e5b3f0fe1bef4f18bc9fb01fa7dca4ce0bb9e5b671ef69c3cff18f99cc626d853cf551f3fe453ca531bbdde979cbb2c793e207f536102a39fa5ca0446bf4279f97b89feaabb5181511f38bedf2ffa47373461bdcfe0dc8471d46387860fc6fbaad155c11ef7a5d953747ede69cf2a30fe3fd06c5121fe88572726f8a37f68720ffbfdadf7ac02fb7e82098c7e85ebf2fde37dea92098cf7acc367bc33fbff7a6ecfc4c22d078eaac41d1ff0e4d7f66a7df84293e71ecfec858f9ee8d1fef8a9c733fb139ef2299ff1395ff0255fc167c233befee1f1cc3ef10ddff21ddff303cfabe77bd584177891971e3d7ed8db4e7b2df30aaff29a7aac3ff9ebe4a9bdf2067fe04ddee28ffafb36eff027de558fcfbaab2ffc95bf3db5578b3dfecefb3ce411673c56ceb9e0b23f47a5fbac7fb26f889988742f2a129e504b81a246e0c8ec293cb7a7441d0b1dd0840ee9883486744253bea4533a7bd5fe9c2ed4feb29fff4aff32a36b8dd5e92fe6bfa15bddcf1dddd303cd93c6911668aa2b5cbc363f3c16799f9630fbb2d20aadd21aadeb3d547a8617f6f0d8a00fb4495bfadb47daa61dfa84f977e933c597f64f6e6c9fbed057fa467bf49df669c8bb34a2eca53d8d35576ef88e722aa8a48a6a6a448320a20fd36bf3eb7f407c2c89efb5500f6422877224c77222533915e6b397fbd117f54ccee54275295732936bb9915bb9937b797869ff34e7649ecfe4bd2ce81a8bbc2a4bb2fc5a3dfe2c59915559fb75fdfe8f7affe7f7b97f011cdd9635 - - - - - actionHome - activated() - WebBrowser - GoHome() - - - actionRefresh - activated() - WebBrowser - Refresh() - - - actionStop - activated() - WebBrowser - Stop() - - - actionForward - activated() - WebBrowser - GoForward() - - - actionBack - activated() - WebBrowser - GoBack() - - - actionGo - activated() - MainWindow - go() - - - actionFileClose - activated() - MainWindow - close() - - - actionSearch - activated() - WebBrowser - GoSearch() - - - addressEdit - returnPressed() - MainWindow - go() - - - WebBrowser - NavigateComplete(const QString&) - addressEdit - setText(const QString&) - - - WebBrowser - TitleChange(const QString&) - MainWindow - setTitle(const QString&) - - - WebBrowser - NavigateComplete(const QString&) - MainWindow - navigateComplete() - - - WebBrowser - CommandStateChange(int,bool) - MainWindow - setCommandState(int,bool) - - - WebBrowser - BeforeNavigate(const QString&,int,const QString&,const QVariant&,const QString&,bool&) - MainWindow - navigateBegin() - - - actionStop - activated() - MainWindow - navigateComplete() - - - actionNewWindow - activated() - MainWindow - newWindow() - - - actionAbout - activated() - MainWindow - aboutSlot() - - - actionAboutQt - activated() - MainWindow - aboutQtSlot() - - - - class QProgressBar - - - QProgressBar *pb; - - - go() - newWindow() - setProgress( int a, int b ) - init() - setTitle( const QString & title ) - setCommandState( int cmd, bool on ) - navigateComplete() - navigateBegin() - aboutSlot() - aboutQtSlot() - - - - qaxwidget.h - - diff --git a/python/pyqt/examples3/webbrowser/webbrowser.py b/python/pyqt/examples3/webbrowser/webbrowser.py deleted file mode 100644 index bd1462e5..00000000 --- a/python/pyqt/examples3/webbrowser/webbrowser.py +++ /dev/null @@ -1,91 +0,0 @@ -# Copyright (C) 2001-2002 Trolltech AS. All rights reserved. -# Copyright (C) 2004 Riverbank Computing Ltd. All rights reserved. -# -# This file is part of an example program for the ActiveQt integration. -# This example program may be used, distributed and modified without -# limitation. - - -import sys -import qt -import qtaxcontainer - -import mainwindow - - -class MainWindowImpl(mainwindow.MainWindow): - def init(self): - self.pb = qt.QProgressBar(self.statusBar()) - self.pb.setPercentageVisible(False) - self.pb.hide() - self.statusBar().addWidget(self.pb, 0, True) - - self.connect(self.WebBrowser, qt.SIGNAL("ProgressChange(int,int)"), self.setProgress) - self.connect(self.WebBrowser, qt.SIGNAL("StatusTextChange(const QString&)"), self.statusBar(), qt.SLOT("message(const QString&)")) - - self.WebBrowser.dynamicCall("GoHome()"); - - self.subwindows = [] - - def go(self): - self.actionStop.setEnabled(True) - self.WebBrowser.dynamicCall("Navigate(const QString&)", qt.QVariant(self.addressEdit.text())) - - def setTitle(self, title): - self.setCaption("Qt WebBrowser - " + title.latin1()) - - def setProgress(self, a, b): - if a <= 0 or b <= 0: - self.pb.hide() - return - - self.pb.show() - self.pb.setTotalSteps(b) - self.pb.setProgress(a) - - def setCommandState(self, cmd, on): - if cmd == 1: - self.actionForward.setEnabled(on) - elif cmd == 2: - self.actionBack.setEnabled(on) - - def navigateBegin(self): - self.actionStop.setEnabled(True) - - def navigateComplete(self): - self.actionStop.setEnabled(False) - - def newWindow(self): - window = MainWindowImpl() - window.show() - - if self.addressEdit.text().isEmpty(): - return - - window.addressEdit.setText(self.addressEdit.text()) - window.actionStop.setEnabled(True) - window.go() - - self.subwindows += window - - def aboutSlot(self): - qt.QMessageBox.about(self, self.tr("About WebBrowser"), self.tr( -"""This Example has been created using the ActiveQt integration into Qt Designer. -It demonstrates the use of QAxWidget to embed the Internet Explorer ActiveX -control into a Qt application.""")) - - def aboutQtSlot(self): - qt.QMessageBox.aboutQt(self, self.tr("About Qt")) - - -def main(args): - a = qt.QApplication(args) - w = MainWindowImpl() - a.setMainWidget(w) - w.show() - - return a.exec_loop() - - -if __name__ == "__main__": - sys.exit(main(sys.argv)) diff --git a/python/pyqt/examples3/widgets.py b/python/pyqt/examples3/widgets.py deleted file mode 100755 index 470f24ec..00000000 --- a/python/pyqt/examples3/widgets.py +++ /dev/null @@ -1,500 +0,0 @@ -#!/usr/bin/env python - - -import sys, string -from qt import * - -# -## Constructs an analog clock widget that uses an internal QTimer. -# -def QMIN( x, y ): - if y > x: - return y - return x - -# -## Constructs an analog clock widget that uses an internal QTimer. -# - -class AnalogClock( QWidget ): - def __init__( self, *args ): - apply( QWidget.__init__, (self,) + args ) - self.time = QTime.currentTime() # get current time - internalTimer = QTimer( self ) # create internal timer - self.connect( internalTimer, SIGNAL("timeout()"), self.timeout ) - internalTimer.start( 5000 ) # emit signal every 5 seconds - -# -## The QTimer::timeout() signal is received by this slot. -# - - def timeout( self ): - new_time = QTime.currentTime() # get the current time - if new_time.minute() != self.time.minute(): # minute has changed - self.update() - -# -## The clock is painted using a 1000x1000 square coordinate system. -# - def paintEvent( self, qe ): # paint clock - if not self.isVisible(): # is is invisible - return - self.time = QTime.currentTime() # save current time - - pts = QPointArray() - paint = QPainter( self ) - paint.setBrush( self.foregroundColor() ) # fill with foreground color - - cp = QPoint( self.rect().center() ) # widget center point - d = QMIN( self.width(), self.height() ) # we want a circular clock - - matrix = QWMatrix() # setup transformation matrix - matrix.translate( cp.x(), cp.y() ) # origin at widget center - matrix.scale( d / 1000.0, d / 1000.0 ) # scale coordinate system - - h_angle = 30 * ( self.time.hour() % 12 - 3 ) + self.time.minute() / 2 - matrix.rotate( h_angle ) # rotate to draw hour hand - paint.setWorldMatrix( matrix ) - pts.setPoints( [ -20,0, 0,-20, 300,0, 0,20 ] ) - paint.drawPolygon( pts ) # draw hour hand - matrix.rotate( -h_angle ) # rotate back to zero - - m_angle = ( self.time.minute() - 15 ) * 6 - matrix.rotate( m_angle ) # rotate to draw minute hand - paint.setWorldMatrix( matrix ) - pts.setPoints( [ -10,0, 0,-10, 400,0, 0,10 ] ) - paint.drawPolygon( pts ) # draw minute hand - matrix.rotate( -m_angle ) # rotate back to zero - - for i in range( 0, 12 ): # draw hour lines - paint.setWorldMatrix( matrix ) - paint.drawLine( 450,0, 500,0 ) - matrix.rotate( 30 ) - - -class DigitalClock( QLCDNumber ): - def __init__( self, *args ): - apply( QLCDNumber.__init__,(self,) + args ) - self.showingColon = 0 - self.setFrameStyle(QFrame.Panel | QFrame.Raised) - self.setLineWidth( 2 ) - self.showTime() - self.normalTimer = self.startTimer( 500 ) - self.showDateTimer = -1 - - def timerEvent( self, e ): - if e.timerId() == self.showDateTimer: - self.stopDate() - else: - if self.showDateTimer == -1: - self.showTime() - - def mousePressEvent( self, e ): - if e.button() == Qt.LeftButton: - self.showDate() - - def showDate( self ): - if self.showDateTimer != -1: - return - d = QDate.currentDate() - self.display('%2d %2d' % (d.month(), d.day())) - self.showDateTimer = self.startTimer(2000) - - def stopDate( self ): - self.killTimer(self.showDateTimer) - self.showDateTimer = -1 - self.showTime() - - def showTime( self ): - self.showingColon = not self.showingColon - s = list(str(QTime.currentTime().toString())[:5]) #.left(5) - if not self.showingColon: - s[2] = ' ' - if s[0] == '0': - s[0] = ' ' - s = string.join(s,'') - self.display( s ) - - def QMIN( x, y ): - if y > x: - return y - return x - -TRUE = 1 -FALSE = 0 -MOVIEFILENAME = "trolltech.gif" - -# -# WidgetView contains lots of Qt widgets. -# - -class WidgetView ( QWidget ): - def __init__( self, *args ): - apply( QWidget.__init__, (self,) + args ) - - # Set the window caption/title - self.setCaption( "Qt Widgets Demo Application" ) - - # Install an application-global event filter - qApp.installEventFilter( self ) - - # Create a layout to position the widgets - self.topLayout = QVBoxLayout( self, 10 ) - - # Create a grid layout to hold most of the widgets - self.grid = QGridLayout( 6, 3 ) - - # This layout will get all of the stretch - self.topLayout.addLayout( self.grid, 10 ) - - # Create a menubar - self.menubar = QMenuBar( self ) - self.menubar.setSeparator( QMenuBar.InWindowsStyle ) - - # Create an easter egg - QToolTip.add( self.menubar, QRect( 0, 0, 2, 2 ), "easter egg" ) - - self.popup = QPopupMenu() - self.id = self.popup.insertItem( "&New" ) - self.popup.setItemEnabled( self.id, FALSE ) - self.id = self.popup.insertItem( "&Open" ) - self.popup.setItemEnabled( self.id, FALSE ) - self.popup.insertSeparator() - self.popup.insertItem( "&Quit", qApp, SLOT("quit()"), Qt.CTRL+Qt.Key_Q ) - - self.menubar.insertItem( "&File", self.popup ) - - # Must tell the layout about a menubar in a widget - self.topLayout.setMenuBar( self.menubar ) - - # Create an analog and a digital clock - self.aclock = AnalogClock( self ) - self.aclock.resize( 50, 50 ) - self.dclock = DigitalClock( self ) - self.dclock.setMaximumWidth( 200 ) - self.grid.addWidget( self.aclock, 0, 2 ) - self.grid.addWidget( self.dclock, 1, 2 ) - - # Give the dclock widget a blue palette - col = QColor() - col.setRgb( 0xaa, 0xbe, 0xff ) - self.dclock.setPalette( QPalette( col ) ) - - # make tool tips for both of them - QToolTip.add( self.aclock, "custom widget: analog clock" ) - QToolTip.add( self.dclock, "custom widget: digital clock" ) - - # Create a push button. - self.pb = QPushButton( self, "button1" ) # create button 1 - self.pb.setText( "Push button 1" ) - self.pb.setFixedHeight( self.pb.sizeHint().height() ) - self.grid.addWidget( self.pb, 0, 0, Qt.AlignVCenter ) - self.connect( self.pb, SIGNAL("clicked()"), self.button1Clicked ) - QToolTip.add( self.pb, "push button 1" ) - self.pm = QPixmap() - self.pix = self.pm.load( "qt.png" ) # load pixmap for button 2 - if not self.pix: - QMessageBox.information( None, "Qt Widgets Example", - "Could not load the file \"qt.png\", which\n" - "contains an icon used...\n\n" - "The text \"line 42\" will be substituted.", - QMessageBox.Ok + QMessageBox.Default ) - - # Create a label containing a QMovie - self.movielabel = QLabel( self, "label0" ) - self.movie = QMovie( MOVIEFILENAME ) - self.movie.connectStatus( self.movieStatus ) - self.movie.connectUpdate( self.movieUpdate ) - self.movielabel.setFrameStyle( QFrame.Box | QFrame.Plain ) - self.movielabel.setMovie( self.movie ) - self.movielabel.setMargin( 0 ) - self.movielabel.setFixedSize( 128 + self.movielabel.frameWidth() * 2, - 64 + self.movielabel.frameWidth() * 2 ) - self.grid.addWidget( self.movielabel, 0, 1, Qt.AlignCenter ) - QToolTip.add( self.movielabel, "movie" ) - - # Create a group of check boxes - self.bg = QButtonGroup( self, "checkGroup" ) - self.bg.setTitle( "Check Boxes" ) - self.grid.addWidget( self.bg, 1, 0 ) - - # Create a layout for the check boxes - self.vbox = QVBoxLayout(self.bg, 10) - - self.vbox.addSpacing( self.bg.fontMetrics().height() ) - - self.cb = range(3) - self.cb[0] = QCheckBox( self.bg ) - self.cb[0].setText( "Read" ) - self.vbox.addWidget( self.cb[0] ) - self.cb[0].setMinimumSize( self.cb[0].sizeHint() ) - self.cb[1] = QCheckBox( self.bg ) - self.cb[1].setText( "Write" ) - self.vbox.addWidget( self.cb[1] ) - self.cb[1].setMinimumSize( self.cb[1].sizeHint() ) - self.cb[2] = QCheckBox( self.bg ) - self.cb[2].setText( "Execute" ) - self.cb[2].setMinimumSize( self.cb[2].sizeHint() ) - self.vbox.addWidget( self.cb[2] ) - self.bg.setMinimumSize( self.bg.childrenRect().size() ) - self.vbox.activate() - - self.connect( self.bg, SIGNAL("clicked(int)"), self.checkBoxClicked ) - - QToolTip.add( self.cb[0], "check box 1" ) - QToolTip.add( self.cb[1], "check box 2" ) - QToolTip.add( self.cb[2], "check box 3" ) - - # Create a group of radio buttons - self.bg = QButtonGroup( self, "radioGroup" ) - self.bg.setTitle( "Radio buttons" ) - - self.grid.addWidget( self.bg, 1, 1 ) - - # Create a layout for the radio buttons - self.vbox = QVBoxLayout( self.bg, 10 ) - - self.vbox.addSpacing( self.bg.fontMetrics().height() ) - self.rb = QRadioButton( self.bg ) - self.rb.setText( "&AM" ) - self.rb.setChecked( TRUE ) - self.vbox.addWidget( self.rb ) - self.rb.setMinimumSize( self.rb.sizeHint() ) - QToolTip.add( self.rb, "radio button 1" ) - self.rb = QRadioButton( self.bg ) - self.rb.setText( "&FM" ) - self.vbox.addWidget( self.rb ) - self.rb.setMinimumSize( self.rb.sizeHint() ) - QToolTip.add( self.rb, "radio button 2" ) - self.rb = QRadioButton( self.bg ) - self.rb.setText( "&Short Wave" ) - self.vbox.addWidget( self.rb ) - self.rb.setMinimumSize( self.rb.sizeHint() ) - self.vbox.activate() - - self.connect( self.bg, SIGNAL("clicked(int)"), self.radioButtonClicked ) - QToolTip.add( self.rb, "radio button 3" ) - - # Create a list box - self.lb = QListBox( self, "listBox" ) - for i in range( 0, 100, 1 ): # fill list box - txt = QString() - txt = "line %d" % i - if i == 42 and self.pix: - self.lb.insertItem( self.pm ) - else: - self.lb.insertItem( txt ) - - self.grid.addMultiCellWidget( self.lb, 2, 4, 0, 0 ) - self.connect( self.lb, SIGNAL("selected(int)"), self.listBoxItemSelected ) - QToolTip.add( self.lb, "list box" ) - - self.vbox = QVBoxLayout( 8 ) - self.grid.addLayout( self.vbox, 2, 1 ) - - # Create a slider - self.sb = QSlider( 0, 300, 1, 100, QSlider.Horizontal, self, "Slider" ) - self.sb.setTickmarks( QSlider.Below ) - self.sb.setTickInterval( 10 ) - self.sb.setFocusPolicy( QWidget.TabFocus ) - self.sb.setFixedHeight( self.sb.sizeHint().height() ) - self.vbox.addWidget( self.sb ) - - self.connect( self.sb, SIGNAL("valueChanged(int)"), self.sliderValueChanged ) - QToolTip.add( self.sb, "slider" ) - - # Create a combo box - self.combo = QComboBox( FALSE, self, "comboBox" ) - self.combo.insertItem( "darkBlue" ) - self.combo.insertItem( "darkRed" ) - self.combo.insertItem( "darkGreen" ) - self.combo.insertItem( "blue" ) - self.combo.insertItem( "red" ) - self.combo.setFixedHeight( self.combo.sizeHint().height() ) - self.vbox.addWidget( self.combo ) - self.connect( self.combo, SIGNAL("activated(int)"), self.comboBoxItemActivated ) - QToolTip.add( self.combo, "read-only combo box" ) - - # Create an editable combo box - self.edCombo = QComboBox( TRUE, self, "edComboBox" ) - self.edCombo.insertItem( "Permutable" ) - self.edCombo.insertItem( "Malleable" ) - self.edCombo.insertItem( "Adaptable" ) - self.edCombo.insertItem( "Alterable" ) - self.edCombo.insertItem( "Inconstant" ) - self.edCombo.setFixedHeight( self.edCombo.sizeHint().height() ) - self.vbox.addWidget( self.edCombo ) - self.connect( self.edCombo, SIGNAL("activated(const QString &)"), self.edComboBoxItemActivated) - QToolTip.add( self.edCombo, "editable combo box" ) - - self.edCombo.setAutoCompletion( TRUE ) - - self.vbox.addStretch( 1 ) - - self.vbox = QVBoxLayout( 8 ) - self.grid.addLayout( self.vbox, 2, 2 ) - - # Create a spin box - self.spin = QSpinBox( 0, 10, 1, self, "spin" ) - self.spin.setSuffix( " mm" ) - self.spin.setSpecialValueText( "Auto" ) - self.spin.setMinimumSize( self.spin.sizeHint() ) - self.connect( self.spin, SIGNAL( "valueChanged(const QString &)" ), self.spinBoxValueChanged ) - QToolTip.add( self.spin, "spin box" ) - self.vbox.addWidget( self.spin ) - - self.vbox.addStretch( 1 ) - - # Create a multi line edit - self.mle = QMultiLineEdit( self, "multiLineEdit" ) - - self.grid.addMultiCellWidget( self.mle, 3, 3, 1, 2 ) - self.mle.setMinimumHeight( self.mle.fontMetrics().height() * 3 ) - self.mle.setText("This is a QMultiLineEdit widget,\n" - "useful for small multi-line\n" - "input fields.") - QToolTip.add( self.mle, "multi line editor" ) - - # Create a single line edit - self.le = QLineEdit( self, "lineEdit" ) - self.grid.addMultiCellWidget( self.le, 4, 4, 1, 2 ) - self.le.setFixedHeight( self.le.sizeHint().height() ) - self.connect( self.le, SIGNAL("textChanged(const QString &)"), self.lineEditTextChanged ) - QToolTip.add( self.le, "single line editor" ) - - # Create a horizontal line (sort of QFrame) above the message line - self.separator = QFrame( self, "separatorLine" ) - self.separator.setFrameStyle( QFrame.HLine | QFrame.Sunken ) - self.separator.setFixedHeight( self.separator.sizeHint().height() ) - self.grid.addMultiCellWidget( self.separator, 5, 5, 0, 2 ) - QToolTip.add( self.separator, "tool tips on a separator! wow!" ) - - self.grid.setRowStretch( 0, 0 ) - self.grid.setRowStretch( 1, 0 ) - self.grid.setRowStretch( 2, 0 ) - self.grid.setRowStretch( 3, 1 ) - self.grid.setRowStretch( 4, 1 ) - self.grid.setRowStretch( 5, 0 ) - - self.grid.setColStretch( 0, 1 ) - self.grid.setColStretch( 1, 1 ) - self.grid.setColStretch( 2, 1 ) - - # Create an label and a message in a plain widget - # The message is updated when buttons are clicked etc. - - self.hbox = QHBoxLayout() - self.topLayout.addLayout( self.hbox ) - self.msgLabel = QLabel( self, "msgLabel" ) - self.msgLabel.setText( "Message:" ) - self.msgLabel.setAlignment( Qt.AlignHCenter | Qt.AlignVCenter ) - self.msgLabel.setFixedSize( self.msgLabel.sizeHint() ) - self.hbox.addWidget( self.msgLabel ) - QToolTip.add( self.msgLabel, "label 1" ) - - self.msg = QLabel( self, "message" ) - self.msg.setFrameStyle( QFrame.Panel | QFrame.Sunken ) - self.msg.setAlignment( Qt.AlignCenter ) - self.msg.setFont( QFont( "times", 12, QFont.Bold ) ) - self.msg.setText( "Message" ) - self.msg.setFixedHeight( self.msg.sizeHint().height() ) - self.msg.setText( "" ) - self.hbox.addWidget( self.msg, 5 ) - QToolTip.add( self.msg, "label 2" ) - - self.topLayout.activate() - - def setStatus(self, text): - self.msg.setText( text ) - - def movieUpdate( self, r ): - # Uncomment this to test animated icons on your window manager - self.setIcon( self.movie.framePixmap() ) - - def movieStatus( self, s ): - if s == QMovie.SourceEmpty or s == QMovie.UnrecognizedFormat: - pm = QPixmap('tt-logo.png') - self.movielabel.setPixmap(pm) - self.movielabel.setFixedSize(pm.size()) - else: - if ( self.movielabel.movie() ): # for flicker-free animation: - self.movielabel.setBackgroundMode( QWidget.NoBackground ) - - def button1Clicked( self ): - self.msg.setText( "The first push button was clicked" ) - - def checkBoxClicked( self, id ): - txt = "Check box %s clicked : " % str(id) - chk = ["-","-","-"] - if self.cb[0].isChecked(): - chk[0] = "r" - if self.cb[1].isChecked(): - chk[1] = "w" - if self.cb[2].isChecked(): - chk[2] = "x" - txt = txt + str(chk[0]+chk[1]+chk[2]) - self.msg.setText( txt ) - - def edComboBoxItemActivated( self, text): - self.msg.setText( "Editable Combo Box set to %s" % text ) - - def radioButtonClicked( self, id ): - self.msg.setText( "Radio button #%d clicked" % id ) - - def listBoxItemSelected( self, index ): - self.msg.setText( "List box item %d selected" % index ) - - def sliderValueChanged( self, value ): - self.msg.setText( "Movie set to %d%% of normal speed" % value ) - self.movie.setSpeed( value ) - - def comboBoxItemActivated( self, index ): - self.msg.setText( "Combo box item %d activated" % index ) - p = QApplication.palette() - if index == 0: - p.setColor( QColorGroup.Highlight, Qt.darkBlue ) - elif index == 1: - p.setColor( QColorGroup.Highlight, Qt.darkRed ) - elif index == 2: - p.setColor( QColorGroup.Highlight, Qt.darkGreen ) - elif index == 3: - p.setColor( QColorGroup.Highlight, Qt.blue ) - elif index == 4: - p.setColor( QColorGroup.Highlight, Qt.red ) - QApplication.setPalette( p, TRUE ) - - def lineEditTextChanged( self, newText ): - self.msg.setText("Line edit text: " + unicode(newText)) - - def spinBoxValueChanged( self, valueText ): - self.msg.setText("Spin box value: " + unicode(valueText)) - - # All application events are passed throught this event filter. - # We're using it to display some information about a clicked - # widget (right mouse button + CTRL). - #def eventFilter( self, event ): - # identify_now = TRUE - # if event.type() == Event_MouseButtonPress and identify_now: - # e = QMouseEvent( event ) - # if (e.button() == Qt.RightButton) and (e.state() & Qt.ControlButton) != 0: - # txt = QString( "The clicked widget is a\n" ) - # txt = txt + QObect.className() - # txt = txt + "\nThe widget's name is\n" - # if QObject.name(): - # txt = txt + QObject.name() - # else: - # txt = txt + "" - # identify_now = FALSE # don't do it in message box - # QMessageBox.message( "Identify Widget", txt, 0, QObject ) - # identify_now = TRUE; # allow it again - # return FALSE # don't eat event - -################################################################################################ - -#QApplication.setColourSpec( QApplication.CustomColor ) -a = QApplication( sys.argv ) - -w = WidgetView() -a.setMainWidget( w ) -w.show() -a.exec_loop() diff --git a/python/pyqt/pylupdate3/LICENSE.GPL b/python/pyqt/pylupdate3/LICENSE.GPL deleted file mode 100644 index c7aea189..00000000 --- a/python/pyqt/pylupdate3/LICENSE.GPL +++ /dev/null @@ -1,280 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 675 Mass Ave, Cambridge, MA 02139, 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 diff --git a/python/pyqt/pylupdate3/fetchtr.cpp b/python/pyqt/pylupdate3/fetchtr.cpp deleted file mode 100644 index 600b3a07..00000000 --- a/python/pyqt/pylupdate3/fetchtr.cpp +++ /dev/null @@ -1,455 +0,0 @@ -/********************************************************************** -** Copyright (C) 2002 Detlev Offenbach -** -** This is a modified version of lupdate. The original is part of Qt-Linguist. -** The copyright of the original file can be found below. -** -** This version is modified to handle python sources. -** -** The file is provided AS IS with NO WARRANTY OF ANY KIND, -** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE. -** -**********************************************************************/ - - -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** fetchtr.cpp -** -** This file is part of Qt Linguist. -** -** See the file LICENSE included in the distribution for the usage -** and distribution terms. -** -** The file is provided AS IS with NO WARRANTY OF ANY KIND, -** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE. -** -**********************************************************************/ - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -/*#include */ - - -static const char MagicComment[] = "TRANSLATOR "; - -static TQMap needs_Q_OBJECT; -static TQMap lacks_Q_OBJECT; - -/* - The first part of this source file is the python tokenizer. We skip - most of python; the only tokens that interest us are defined here. -*/ - -enum { Tok_Eof, Tok_class, Tok_return, Tok_tr, - Tok_trUtf8, Tok_translate, Tok_Ident, - Tok_Comment, Tok_Dot, Tok_String, - Tok_LeftParen, Tok_RightParen, - Tok_Comma}; - -/* - The tokenizer maintains the following global variables. The names - should be self-explanatory. -*/ -static TQCString yyFileName; -static int yyCh; -static char yyIdent[128]; -static size_t yyIdentLen; -static char yyComment[65536]; -static size_t yyCommentLen; -static char yyString[16384]; -static size_t yyStringLen; -static int yyParenDepth; -static int yyLineNo; -static int yyCurLineNo; - -// the file to read from (if reading from a file) -static FILE *yyInFile; - -// the string to read from and current position in the string (otherwise) -static TQString yyInStr; -static int yyInPos; -static int buf; - -static int (*getChar)(); -static int (*peekChar)(); - -static int getCharFromFile() -{ - int c; - - if ( buf < 0 ) - c = getc( yyInFile ); - else { - c = buf; - buf = -1; - } - if ( c == '\n' ) - yyCurLineNo++; - return c; -} - -static int peekCharFromFile() -{ - int c = getc( yyInFile ); - buf = c; - return c; -} - -static void startTokenizer( const char *fileName, int (*getCharFunc)(), - int (*peekCharFunc)() ) -{ - yyInPos = 0; - buf = -1; - getChar = getCharFunc; - peekChar = peekCharFunc; - - yyFileName = fileName; - yyCh = getChar(); - yyParenDepth = 0; - yyCurLineNo = 1; -} - -static int getToken() -{ - const char tab[] = "abfnrtv"; - const char backTab[] = "\a\b\f\n\r\t\v"; - uint n; - - yyIdentLen = 0; - yyCommentLen = 0; - yyStringLen = 0; - - while ( yyCh != EOF ) { - yyLineNo = yyCurLineNo; - - if ( isalpha(yyCh) || yyCh == '_' ) { - do { - if ( yyIdentLen < sizeof(yyIdent) - 1 ) - yyIdent[yyIdentLen++] = (char) yyCh; - yyCh = getChar(); - } while ( isalnum(yyCh) || yyCh == '_' ); - yyIdent[yyIdentLen] = '\0'; - - switch ( yyIdent[0] ) { - case 'Q': - if ( strcmp(yyIdent + 1, "T_TR_NOOP") == 0 ) { - return Tok_tr; - } else if ( strcmp(yyIdent + 1, "T_TRANSLATE_NOOP") == 0 ) { - return Tok_translate; - } - break; - case 'c': - if ( strcmp(yyIdent + 1, "lass") == 0 ) - return Tok_class; - break; - case 'r': - if ( strcmp(yyIdent + 1, "eturn") == 0 ) - return Tok_return; - break; - case 't': - if ( strcmp(yyIdent + 1, "r") == 0 ) - return Tok_tr; - else if ( strcmp(yyIdent + 1, "rUtf8") == 0 ) - return Tok_trUtf8; - else if ( strcmp(yyIdent + 1, "ranslate") == 0 ) - return Tok_translate; - case '_': - if ( strcmp(yyIdent + 1, "_tr") == 0 ) - return Tok_tr; - else if ( strcmp(yyIdent + 1, "_trUtf8") == 0 ) - return Tok_trUtf8; - } - return Tok_Ident; - } else { - switch ( yyCh ) { - case '#': - yyCh = getChar(); - do { - yyCh = getChar(); - } while ( yyCh != EOF && yyCh != '\n' ); - break; - case '"': - case '\'': - int quoteChar; - int trippelQuote, singleQuote; - int in; - - quoteChar = yyCh; - trippelQuote = 0; - singleQuote = 1; - in = 0; - yyCh = getChar(); - - while ( yyCh != EOF ) { - if ( singleQuote && (yyCh == '\n' || (in && yyCh == quoteChar)) ) - break; - - if ( yyCh == quoteChar ) { - if (peekChar() == quoteChar) { - yyCh = getChar(); - if (!trippelQuote) { - trippelQuote = 1; - singleQuote = 0; - in = 1; - yyCh = getChar(); - } else { - yyCh = getChar(); - if (yyCh == quoteChar) { - trippelQuote = 0; - break; - } - } - } else if (trippelQuote) { - if ( yyStringLen < sizeof(yyString) - 1 ) - yyString[yyStringLen++] = (char) yyCh; - yyCh = getChar(); - continue; - } else - break; - } else - in = 1; - - if ( yyCh == '\\' ) { - yyCh = getChar(); - - if ( yyCh == 'x' ) { - TQCString hex = "0"; - - yyCh = getChar(); - while ( isxdigit(yyCh) ) { - hex += (char) yyCh; - yyCh = getChar(); - } - sscanf( hex, "%x", &n ); - if ( yyStringLen < sizeof(yyString) - 1 ) - yyString[yyStringLen++] = (char) n; - } else if ( yyCh >= '0' && yyCh < '8' ) { - TQCString oct = ""; - - do { - oct += (char) yyCh; - yyCh = getChar(); - } while ( yyCh >= '0' && yyCh < '8' ); - sscanf( oct, "%o", &n ); - if ( yyStringLen < sizeof(yyString) - 1 ) - yyString[yyStringLen++] = (char) n; - } else { - const char *p = strchr( tab, yyCh ); - if ( yyStringLen < sizeof(yyString) - 1 ) - yyString[yyStringLen++] = ( p == 0 ) ? - (char) yyCh : backTab[p - tab]; - yyCh = getChar(); - } - } else { - if ( yyStringLen < sizeof(yyString) - 1 ) - yyString[yyStringLen++] = (char) yyCh; - yyCh = getChar(); - } - } - yyString[yyStringLen] = '\0'; - - if ( yyCh != quoteChar ) { - printf("%c\n", yyCh); - qWarning( "%s:%d: Unterminated string", - (const char *) yyFileName, yyLineNo ); - } - - if ( yyCh == EOF ) { - return Tok_Eof; - } else { - yyCh = getChar(); - return Tok_String; - } - break; - case '(': - yyParenDepth++; - yyCh = getChar(); - return Tok_LeftParen; - case ')': - yyParenDepth--; - yyCh = getChar(); - return Tok_RightParen; - case ',': - yyCh = getChar(); - return Tok_Comma; - case '.': - yyCh = getChar(); - return Tok_Dot; - default: - yyCh = getChar(); - } - } - } - return Tok_Eof; -} - -/* - The second part of this source file is the parser. It accomplishes - a very easy task: It finds all strings inside a tr() or translate() - call, and possibly finds out the context of the call. It supports - three cases: - (1) the context is specified, as in FunnyDialog.tr("Hello") or - translate("FunnyDialog", "Hello"); - (2) the call appears within an inlined function; - (3) the call appears within a function defined outside the class definition. -*/ - -static int yyTok; - -static bool match( int t ) -{ - bool matches = ( yyTok == t ); - if ( matches ) - yyTok = getToken(); - return matches; -} - -static bool matchString( TQCString *s ) -{ - bool matches = ( yyTok == Tok_String ); - *s = ""; - while ( yyTok == Tok_String ) { - *s += yyString; - yyTok = getToken(); - } - return matches; -} - -static bool matchEncoding( bool *utf8 ) -{ - if ( yyTok == Tok_Ident ) { - if ( strcmp(yyIdent, "TQApplication") == 0 ) { - yyTok = getToken(); - } - *utf8 = TQString( yyIdent ).endsWith( TQString("UTF8") ); - yyTok = getToken(); - return TRUE; - } else { - return FALSE; - } -} - -static void parse( MetaTranslator *tor, const char *initialContext, - const char *defaultContext ) -{ - TQMap qualifiedContexts; - TQCString context; - TQCString text; - TQCString com; - TQCString functionContext = initialContext; - TQCString prefix; - bool utf8 = FALSE; - - yyTok = getToken(); - while ( yyTok != Tok_Eof ) { - switch ( yyTok ) { - case Tok_class: - yyTok = getToken(); - functionContext = yyIdent; - yyTok = getToken(); - break; - case Tok_tr: - case Tok_trUtf8: - utf8 = ( yyTok == Tok_trUtf8 ); - yyTok = getToken(); - if ( match(Tok_LeftParen) && matchString(&text) ) { - com = ""; - if ( match(Tok_RightParen) || (match(Tok_Comma) && - matchString(&com) && match(Tok_RightParen)) ) { - if ( prefix.isNull() ) { - context = defaultContext; - } else if ( qstrcmp(prefix, "self") == 0 ) { - context = functionContext; - } else { - context = prefix; - } - prefix = (const char *) 0; - - if ( qualifiedContexts.contains(context) ) - context = qualifiedContexts[context]; - tor->insert( MetaTranslatorMessage(context, text, com, - TQString::null, utf8) ); - } - } - break; - case Tok_translate: - utf8 = FALSE; - yyTok = getToken(); - if ( match(Tok_LeftParen) && - matchString(&context) && - match(Tok_Comma) && - matchString(&text) ) { - com = ""; - if ( match(Tok_RightParen) || - (match(Tok_Comma) && - matchString(&com) && - (match(Tok_RightParen) || - match(Tok_Comma) && - matchEncoding(&utf8) && - match(Tok_RightParen))) ) - tor->insert( MetaTranslatorMessage(context, text, com, - TQString::null, utf8) ); - } - break; - case Tok_Ident: - if ( !prefix.isNull() ) - prefix += "."; - prefix += yyIdent; - yyTok = getToken(); - if ( yyTok != Tok_Dot ) - prefix = (const char *) 0; - break; - case Tok_Comment: - com = yyComment; - com = com.simplifyWhiteSpace(); - if ( com.left(sizeof(MagicComment) - 1) == MagicComment ) { - com.remove( 0, sizeof(MagicComment) - 1 ); - int k = com.find( ' ' ); - if ( k == -1 ) { - context = com; - } else { - context = com.left( k ); - com.remove( 0, k + 1 ); - tor->insert( MetaTranslatorMessage(context, "", com, - TQString::null, FALSE) ); - } - } - yyTok = getToken(); - break; - default: - yyTok = getToken(); - } - } - - if ( yyParenDepth != 0 ) - qWarning( "%s: Unbalanced parentheses in Python code", - (const char *) yyFileName ); -} - -void fetchtr_py( const char *fileName, MetaTranslator *tor, - const char *defaultContext, bool mustExist ) -{ - yyInFile = fopen( fileName, "r" ); - if ( yyInFile == 0 ) { - if ( mustExist ) - qWarning( "pylupdate error: cannot open Python source file '%s': %s", - fileName, strerror(errno) ); - return; - } - - startTokenizer( fileName, getCharFromFile, peekCharFromFile ); - parse( tor, 0, defaultContext ); - fclose( yyInFile ); -} diff --git a/python/pyqt/pylupdate3/main.cpp b/python/pyqt/pylupdate3/main.cpp deleted file mode 100644 index bd3d7612..00000000 --- a/python/pyqt/pylupdate3/main.cpp +++ /dev/null @@ -1,155 +0,0 @@ -/********************************************************************** -** Copyright (C) 2002 Detlev Offenbach -** -** This is a modified version of lupdate. The original is part of Qt-Linguist. -** The copyright of the original file can be found below. -** -** This version is modified to handle python sources. -** -** The file is provided AS IS with NO WARRANTY OF ANY KIND, -** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE. -** -**********************************************************************/ - - -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** main.cpp -** -** This file is part of Qt Linguist. -** -** See the file LICENSE included in the distribution for the usage -** and distribution terms. -** -** The file is provided AS IS with NO WARRANTY OF ANY KIND, -** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE. -** -**********************************************************************/ - -#include -#include -#include -#include - -#include -#include -#include -#include - -// defined in fetchtr.cpp -extern void fetchtr_py( const char *fileName, MetaTranslator *tor, - const char *defaultContext, bool mustExist ); - -// defined in merge.cpp -extern void merge( MetaTranslator *tor, const MetaTranslator *virginTor, - bool verbose ); - -typedef TQValueList TML; - -static void printUsage() -{ - qWarning( "Usage: pylupdate [options] file.pro...\n" - "Options:\n" - " -help Display this information and exits\n" - " -noobsolete\n" - " Drop all obsolete strings\n" - " -verbose\n" - " Explain what is being done\n" - " -version\n" - " Display the version of pylupdate and exits" ); -} - -int main( int argc, char **argv ) -{ - bool verbose = FALSE; - bool noObsolete = FALSE; - bool metSomething = FALSE; - int numProFiles = 0; - - for ( int i = 1; i < argc; i++ ) { - if ( qstrcmp(argv[i], "-help") == 0 ) { - printUsage(); - return 0; - } else if ( qstrcmp(argv[i], "-noobsolete") == 0 ) { - noObsolete = TRUE; - continue; - } else if ( qstrcmp(argv[i], "-verbose") == 0 ) { - verbose = TRUE; - continue; - } else if ( qstrcmp(argv[i], "-version") == 0 ) { - qWarning( "pylupdate version %s", QT_VERSION_STR ); - return 0; - } - - numProFiles++; - TQFile f( argv[i] ); - if ( !f.open(IO_ReadOnly) ) { - qWarning( "pylupdate error: Cannot open project file '%s': %s", - argv[i], strerror(errno) ); - return 1; - } - - TQTextStream t( &f ); - TQString fullText = t.read(); - f.close(); - - MetaTranslator fetchedTor; - TQString defaultContext = "@default"; - TQCString codec; - TQStringList translatorFiles; - TQStringList::Iterator tf; - - TQMap tagMap = proFileTagMap( fullText ); - TQMap::Iterator it; - - for ( it = tagMap.begin(); it != tagMap.end(); ++it ) { - TQStringList toks = TQStringList::split( TQChar(' '), it.data() ); - TQStringList::Iterator t; - - for ( t = toks.begin(); t != toks.end(); ++t ) { - if ( it.key() == TQString("SOURCES") ) { - fetchtr_py( *t, &fetchedTor, - defaultContext, TRUE ); - metSomething = TRUE; - } else if ( it.key() == TQString("TRANSLATIONS") ) { - translatorFiles.append( *t ); - metSomething = TRUE; - } else if ( it.key() == TQString("CODEC") ) { - codec = (*t).latin1(); - } - } - } - - for ( tf = translatorFiles.begin(); tf != translatorFiles.end(); ++tf ) { - MetaTranslator tor; - tor.load( *tf ); - if ( !codec.isEmpty() ) - tor.setCodec( codec ); - if ( verbose ) - qWarning( "Updating '%s'...", (*tf).latin1() ); - merge( &tor, &fetchedTor, verbose ); - if ( noObsolete ) - tor.stripObsoleteMessages(); - tor.stripEmptyContexts(); - if ( !tor.save(*tf) ) - qWarning( "pylupdate error: Cannot save '%s': %s", (*tf).latin1(), - strerror(errno) ); - } - if ( !metSomething ) { - qWarning( "pylupdate warning: File '%s' does not look like a project" - " file", argv[i] ); - } else if ( translatorFiles.isEmpty() ) { - qWarning( "pylupdate warning: Met no 'TRANSLATIONS' entry in project" - " file '%s'", argv[i] ); - } - } - - if ( numProFiles == 0 ) { - printUsage(); - return 1; - } - return 0; -} diff --git a/python/pyqt/pylupdate3/merge.cpp b/python/pyqt/pylupdate3/merge.cpp deleted file mode 100644 index 6ae9673d..00000000 --- a/python/pyqt/pylupdate3/merge.cpp +++ /dev/null @@ -1,110 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** merge.cpp -** -** This file is part of Qt Linguist. -** -** See the file LICENSE included in the distribution for the usage -** and distribution terms. -** -** The file is provided AS IS with NO WARRANTY OF ANY KIND, -** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE. -** -**********************************************************************/ - -#include - -// defined in numberh.cpp -extern void applyNumberHeuristic( MetaTranslator *tor, bool verbose ); -// defined in sametexth.cpp -extern void applySameTextHeuristic( MetaTranslator *tor, bool verbose ); - -typedef TQValueList TML; - -/* - Merges two MetaTranslator objects into the first one. The first one is a set - of source texts and translations for a previous version of the - internationalized program; the second one is a set of fresh source text newly - extracted from the source code, without any translation yet. -*/ - -void merge( MetaTranslator *tor, const MetaTranslator *virginTor, bool verbose ) -{ - int known = 0; - int neww = 0; - int obsoleted = 0; - TML all = tor->messages(); - TML::Iterator it; - - /* - The types of all the messages from the vernacular translator are updated - according to the virgin translator. - */ - for ( it = all.begin(); it != all.end(); ++it ) { - MetaTranslatorMessage::Type newType = MetaTranslatorMessage::Unfinished; - MetaTranslatorMessage m = *it; - - // skip context comment - if ( !TQCString((*it).sourceText()).isEmpty() ) { - if ( !virginTor->contains((*it).context(), (*it).sourceText(), - (*it).comment()) ) { - newType = MetaTranslatorMessage::Obsolete; - if ( m.type() != MetaTranslatorMessage::Obsolete ) - obsoleted++; - } else { - switch ( m.type() ) { - case MetaTranslatorMessage::Finished: - newType = MetaTranslatorMessage::Finished; - known++; - break; - case MetaTranslatorMessage::Unfinished: - newType = MetaTranslatorMessage::Unfinished; - known++; - break; - case MetaTranslatorMessage::Obsolete: - newType = MetaTranslatorMessage::Unfinished; - neww++; - } - } - - if ( newType != m.type() ) { - m.setType( newType ); - tor->insert( m ); - } - } - } - - /* - Messages found only in the virgin translator are added to the - vernacular translator. Among these are all the context comments. - */ - all = virginTor->messages(); - - for ( it = all.begin(); it != all.end(); ++it ) { - if ( !tor->contains((*it).context(), (*it).sourceText(), - (*it).comment()) ) { - tor->insert( *it ); - if ( !TQCString((*it).sourceText()).isEmpty() ) - neww++; - } - } - - /* - The same-text heuristic handles cases where a message has an - obsolete counterpart with a different context or comment. - */ - applySameTextHeuristic( tor, verbose ); - - /* - The number heuristic handles cases where a message has an - obsolete counterpart with mostly numbers differing in the - source text. - */ - applyNumberHeuristic( tor, verbose ); - - if ( verbose ) - qWarning( " %d known, %d new and %d obsoleted messages", - known, neww, obsoleted ); -} diff --git a/python/pyqt/pylupdate3/metatranslator.cpp b/python/pyqt/pylupdate3/metatranslator.cpp deleted file mode 100644 index 24a23f4b..00000000 --- a/python/pyqt/pylupdate3/metatranslator.cpp +++ /dev/null @@ -1,557 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** metatranslator.cpp -** -** This file is part of Qt Linguist. -** -** See the file LICENSE included in the distribution for the usage -** and distribution terms. -** -** The file is provided AS IS with NO WARRANTY OF ANY KIND, -** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE. -** -**********************************************************************/ - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "metatranslator.h" - -static bool encodingIsUtf8( const TQXmlAttributes& atts ) -{ - for ( int i = 0; i < atts.length(); i++ ) { - // utf8="true" is a pre-3.0 syntax - if ( atts.qName(i) == TQString("utf8") ) { - return ( atts.value(i) == TQString("true") ); - } else if ( atts.qName(i) == TQString("encoding") ) { - return ( atts.value(i) == TQString("UTF-8") ); - } - } - return FALSE; -} - -class TsHandler : public QXmlDefaultHandler -{ -public: - TsHandler( MetaTranslator *translator ) - : tor( translator ), type( MetaTranslatorMessage::Finished ), - inMessage( FALSE ), ferrorCount( 0 ), contextIsUtf8( FALSE ), - messageIsUtf8( FALSE ) { } - - virtual bool startElement( const TQString& namespaceURI, - const TQString& localName, const TQString& qName, - const TQXmlAttributes& atts ); - virtual bool endElement( const TQString& namespaceURI, - const TQString& localName, const TQString& qName ); - virtual bool characters( const TQString& ch ); - virtual bool fatalError( const TQXmlParseException& exception ); - -private: - MetaTranslator *tor; - MetaTranslatorMessage::Type type; - bool inMessage; - TQString context; - TQString source; - TQString comment; - TQString translation; - - TQString accum; - int ferrorCount; - bool contextIsUtf8; - bool messageIsUtf8; -}; - -bool TsHandler::startElement( const TQString& /* namespaceURI */, - const TQString& /* localName */, - const TQString& qName, - const TQXmlAttributes& atts ) -{ - if ( qName == TQString("byte") ) { - for ( int i = 0; i < atts.length(); i++ ) { - if ( atts.qName(i) == TQString("value") ) { - TQString value = atts.value( i ); - int base = 10; - if ( value.startsWith("x") ) { - base = 16; - value = value.mid( 1 ); - } - int n = value.toUInt( 0, base ); - if ( n != 0 ) - accum += TQChar( n ); - } - } - } else { - if ( qName == TQString("context") ) { - context.truncate( 0 ); - source.truncate( 0 ); - comment.truncate( 0 ); - translation.truncate( 0 ); - contextIsUtf8 = encodingIsUtf8( atts ); - } else if ( qName == TQString("message") ) { - inMessage = TRUE; - type = MetaTranslatorMessage::Finished; - source.truncate( 0 ); - comment.truncate( 0 ); - translation.truncate( 0 ); - messageIsUtf8 = encodingIsUtf8( atts ); - } else if ( qName == TQString("translation") ) { - for ( int i = 0; i < atts.length(); i++ ) { - if ( atts.qName(i) == TQString("type") ) { - if ( atts.value(i) == TQString("unfinished") ) - type = MetaTranslatorMessage::Unfinished; - else if ( atts.value(i) == TQString("obsolete") ) - type = MetaTranslatorMessage::Obsolete; - else - type = MetaTranslatorMessage::Finished; - } - } - } - accum.truncate( 0 ); - } - return TRUE; -} - -bool TsHandler::endElement( const TQString& /* namespaceURI */, - const TQString& /* localName */, - const TQString& qName ) -{ - if ( qName == TQString("codec") || qName == TQString("defaultcodec") ) { - // "codec" is a pre-3.0 syntax - tor->setCodec( accum ); - } else if ( qName == TQString("name") ) { - context = accum; - } else if ( qName == TQString("source") ) { - source = accum; - } else if ( qName == TQString("comment") ) { - if ( inMessage ) { - comment = accum; - } else { - if ( contextIsUtf8 ) - tor->insert( MetaTranslatorMessage(context.utf8(), "", - accum.utf8(), TQString::null, TRUE, - MetaTranslatorMessage::Unfinished) ); - else - tor->insert( MetaTranslatorMessage(context.ascii(), "", - accum.ascii(), TQString::null, FALSE, - MetaTranslatorMessage::Unfinished) ); - } - } else if ( qName == TQString("translation") ) { - translation = accum; - } else if ( qName == TQString("message") ) { - if ( messageIsUtf8 ) - tor->insert( MetaTranslatorMessage(context.utf8(), source.utf8(), - comment.utf8(), translation, - TRUE, type) ); - else - tor->insert( MetaTranslatorMessage(context.ascii(), source.ascii(), - comment.ascii(), translation, - FALSE, type) ); - inMessage = FALSE; - } - return TRUE; -} - -bool TsHandler::characters( const TQString& ch ) -{ - TQString t = ch; - t.replace( TQRegExp(TQChar('\r')), "" ); - accum += t; - return TRUE; -} - -bool TsHandler::fatalError( const TQXmlParseException& exception ) -{ - if ( ferrorCount++ == 0 ) { - TQString msg; - msg.sprintf( "Parse error at line %d, column %d (%s).", - exception.lineNumber(), exception.columnNumber(), - exception.message().latin1() ); - if ( qApp == 0 ) - qWarning( "XML error: %s", msg.latin1() ); - else - TQMessageBox::information( qApp->mainWidget(), - TQObject::tr("Qt Linguist"), msg ); - } - return FALSE; -} - -static TQString numericEntity( int ch ) -{ - return TQString( ch <= 0x20 ? "" : "&#x%1;" ) - .arg( ch, 0, 16 ); -} - -static TQString protect( const TQCString& str ) -{ - TQString result; - int len = (int) str.length(); - for ( int k = 0; k < len; k++ ) { - switch( str[k] ) { - case '\"': - result += TQString( """ ); - break; - case '&': - result += TQString( "&" ); - break; - case '>': - result += TQString( ">" ); - break; - case '<': - result += TQString( "<" ); - break; - case '\'': - result += TQString( "'" ); - break; - default: - if ( (uchar) str[k] < 0x20 && str[k] != '\n' ) - result += numericEntity( (uchar) str[k] ); - else - result += str[k]; - } - } - return result; -} - -static TQString evilBytes( const TQCString& str, bool utf8 ) -{ - if ( utf8 ) { - return protect( str ); - } else { - TQString result; - TQCString t = protect( str ).latin1(); - int len = (int) t.length(); - for ( int k = 0; k < len; k++ ) { - if ( (uchar) t[k] >= 0x7f ) - result += numericEntity( (uchar) t[k] ); - else - result += TQChar( t[k] ); - } - return result; - } -} - -MetaTranslatorMessage::MetaTranslatorMessage() - : utfeight( FALSE ), ty( Unfinished ) -{ -} - -MetaTranslatorMessage::MetaTranslatorMessage( const char *context, - const char *sourceText, - const char *comment, - const TQString& translation, - bool utf8, Type type ) - : QTranslatorMessage( context, sourceText, comment, translation ), - utfeight( FALSE ), ty( type ) -{ - /* - Don't use UTF-8 if it makes no difference. UTF-8 should be - reserved for the real problematic case: non-ASCII (possibly - non-Latin-1) characters in .ui files. - */ - if ( utf8 ) { - if ( sourceText != 0 ) { - int i = 0; - while ( sourceText[i] != '\0' ) { - if ( (uchar) sourceText[i] >= 0x80 ) { - utfeight = TRUE; - break; - } - i++; - } - } - if ( !utfeight && comment != 0 ) { - int i = 0; - while ( comment[i] != '\0' ) { - if ( (uchar) comment[i] >= 0x80 ) { - utfeight = TRUE; - break; - } - i++; - } - } - } -} - -MetaTranslatorMessage::MetaTranslatorMessage( const MetaTranslatorMessage& m ) - : QTranslatorMessage( m ), utfeight( m.utfeight ), ty( m.ty ) -{ -} - -MetaTranslatorMessage& MetaTranslatorMessage::operator=( - const MetaTranslatorMessage& m ) -{ - QTranslatorMessage::operator=( m ); - utfeight = m.utfeight; - ty = m.ty; - return *this; -} - -bool MetaTranslatorMessage::operator==( const MetaTranslatorMessage& m ) const -{ - return qstrcmp( context(), m.context() ) == 0 && - qstrcmp( sourceText(), m.sourceText() ) == 0 && - qstrcmp( comment(), m.comment() ) == 0; -} - -bool MetaTranslatorMessage::operator<( const MetaTranslatorMessage& m ) const -{ - int delta = qstrcmp( context(), m.context() ); - if ( delta == 0 ) - delta = qstrcmp( sourceText(), m.sourceText() ); - if ( delta == 0 ) - delta = qstrcmp( comment(), m.comment() ); - return delta < 0; -} - -MetaTranslator::MetaTranslator() - : codecName( "ISO-8859-1" ), codec( 0 ) -{ -} - -MetaTranslator::MetaTranslator( const MetaTranslator& tor ) - : mm( tor.mm ), codecName( tor.codecName ), codec( tor.codec ) -{ - -} - -MetaTranslator& MetaTranslator::operator=( const MetaTranslator& tor ) -{ - mm = tor.mm; - codecName = tor.codecName; - codec = tor.codec; - return *this; -} - -bool MetaTranslator::load( const TQString& filename ) -{ - mm.clear(); - - TQFile f( filename ); - if ( !f.open(IO_ReadOnly) ) - return FALSE; - - TQTextStream t( &f ); - TQXmlInputSource in( t ); - TQXmlSimpleReader reader; - // don't click on these! - reader.setFeature( "http://xml.org/sax/features/namespaces", FALSE ); - reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", TRUE ); - reader.setFeature( "http://trolltech.com/xml/features/report-whitespace" - "-only-CharData", FALSE ); - TQXmlDefaultHandler *hand = new TsHandler( this ); - reader.setContentHandler( hand ); - reader.setErrorHandler( hand ); - - bool ok = reader.parse( in ); - reader.setContentHandler( 0 ); - reader.setErrorHandler( 0 ); - delete hand; - f.close(); - if ( !ok ) - mm.clear(); - return ok; -} - -bool MetaTranslator::save( const TQString& filename ) const -{ - TQFile f( filename ); - if ( !f.open(IO_WriteOnly) ) - return FALSE; - - TQTextStream t( &f ); - t.setCodec( TQTextCodec::codecForName("ISO-8859-1") ); - - t << "\n"; - if ( codecName != "ISO-8859-1" ) - t << "" << codecName << "\n"; - TMM::ConstIterator m = mm.begin(); - while ( m != mm.end() ) { - TMMInv inv; - TMMInv::Iterator i; - bool contextIsUtf8 = m.key().utf8(); - TQCString context = m.key().context(); - TQCString comment = ""; - - do { - if ( TQCString(m.key().sourceText()).isEmpty() ) { - if ( m.key().type() != MetaTranslatorMessage::Obsolete ) { - contextIsUtf8 = m.key().utf8(); - comment = TQCString( m.key().comment() ); - } - } else { - inv.insert( *m, m.key() ); - } - } while ( ++m != mm.end() && TQCString(m.key().context()) == context ); - - t << "\n"; - t << " " << evilBytes( context, contextIsUtf8 ) - << "\n"; - if ( !comment.isEmpty() ) - t << " " << evilBytes( comment, contextIsUtf8 ) - << "\n"; - - for ( i = inv.begin(); i != inv.end(); ++i ) { - t << " \n" - << " " << evilBytes( (*i).sourceText(), - (*i).utf8() ) - << "\n"; - if ( !TQCString((*i).comment()).isEmpty() ) - t << " " << evilBytes( (*i).comment(), - (*i).utf8() ) - << "\n"; - t << " " << protect( (*i).translation().utf8() ) - << "\n"; - t << " \n"; - } - t << "\n"; - } - t << "\n"; - f.close(); - return TRUE; -} - -bool MetaTranslator::release( const TQString& filename, bool verbose ) const -{ - QTranslator tor( 0 ); - int finished = 0; - int unfinished = 0; - int untranslated = 0; - TMM::ConstIterator m; - - for ( m = mm.begin(); m != mm.end(); ++m ) { - if ( m.key().type() != MetaTranslatorMessage::Obsolete ) { - if ( m.key().translation().isEmpty() ) { - untranslated++; - } else { - if ( m.key().type() == MetaTranslatorMessage::Unfinished ) - unfinished++; - else - finished++; - tor.insert( m.key() ); - } - } - } - - bool saved = tor.save( filename, QTranslator::Stripped ); - if ( saved && verbose ) - qWarning( " %d finished, %d unfinished and %d untranslated messages", - finished, unfinished, untranslated ); - - return saved; -} - -bool MetaTranslator::contains( const char *context, const char *sourceText, - const char *comment ) const -{ - return mm.find( MetaTranslatorMessage(context, sourceText, comment) ) != - mm.end(); -} - -void MetaTranslator::insert( const MetaTranslatorMessage& m ) -{ - int pos = mm.count(); - TMM::Iterator n = mm.find( m ); - if ( n != mm.end() ) - pos = *n; - mm.replace( m, pos ); -} - -void MetaTranslator::stripObsoleteMessages() -{ - TMM newmm; - - TMM::Iterator m = mm.begin(); - while ( m != mm.end() ) { - if ( m.key().type() != MetaTranslatorMessage::Obsolete ) - newmm.insert( m.key(), *m ); - ++m; - } - mm = newmm; -} - -void MetaTranslator::stripEmptyContexts() -{ - TMM newmm; - - TMM::Iterator m = mm.begin(); - while ( m != mm.end() ) { - if ( TQCString(m.key().sourceText()).isEmpty() ) { - TMM::Iterator n = m; - ++n; - // the context comment is followed by other messages - if ( n != newmm.end() && - qstrcmp(m.key().context(), n.key().context()) == 0 ) - newmm.insert( m.key(), *m ); - } else { - newmm.insert( m.key(), *m ); - } - ++m; - } - mm = newmm; -} - -void MetaTranslator::setCodec( const char *name ) -{ - const int latin1 = 4; - - codecName = name; - codec = TQTextCodec::codecForName( name ); - if ( codec == 0 || codec->mibEnum() == latin1 ) - codec = 0; -} - -TQString MetaTranslator::toUnicode( const char *str, bool utf8 ) const -{ - if ( utf8 ) - return TQString::fromUtf8( str ); - else if ( codec == 0 ) - return TQString( str ); - else - return codec->toUnicode( str ); -} - -TQValueList MetaTranslator::messages() const -{ - int n = mm.count(); - TMM::ConstIterator *t = new TMM::ConstIterator[n + 1]; - TMM::ConstIterator m; - for ( m = mm.begin(); m != mm.end(); ++m ) - t[*m] = m; - - TQValueList val; - for ( int i = 0; i < n; i++ ) - val.append( t[i].key() ); - - delete[] t; - return val; -} - -TQValueList MetaTranslator::translatedMessages() const -{ - TQValueList val; - TMM::ConstIterator m; - for ( m = mm.begin(); m != mm.end(); ++m ) { - if ( m.key().type() == MetaTranslatorMessage::Finished ) - val.append( m.key() ); - } - return val; -} diff --git a/python/pyqt/pylupdate3/metatranslator.h b/python/pyqt/pylupdate3/metatranslator.h deleted file mode 100644 index 378a462e..00000000 --- a/python/pyqt/pylupdate3/metatranslator.h +++ /dev/null @@ -1,95 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** metatranslator.h -** -** This file is part of Qt Linguist. -** -** See the file LICENSE included in the distribution for the usage -** and distribution terms. -** -** The file is provided AS IS with NO WARRANTY OF ANY KIND, -** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE. -** -**********************************************************************/ - -#ifndef METATRANSLATOR_H -#define METATRANSLATOR_H - -#include -#include -#include -#include - -class TQTextCodec; - -class MetaTranslatorMessage : public QTranslatorMessage -{ -public: - enum Type { Unfinished, Finished, Obsolete }; - - MetaTranslatorMessage(); - MetaTranslatorMessage( const char *context, const char *sourceText, - const char *comment, - const TQString& translation = TQString::null, - bool utf8 = FALSE, Type type = Unfinished ); - MetaTranslatorMessage( const MetaTranslatorMessage& m ); - - MetaTranslatorMessage& operator=( const MetaTranslatorMessage& m ); - - void setType( Type nt ) { ty = nt; } - Type type() const { return ty; } - bool utf8() const { return utfeight; } - - bool operator==( const MetaTranslatorMessage& m ) const; - bool operator!=( const MetaTranslatorMessage& m ) const - { return !operator==( m ); } - bool operator<( const MetaTranslatorMessage& m ) const; - bool operator<=( const MetaTranslatorMessage& m ) - { return !operator>( m ); } - bool operator>( const MetaTranslatorMessage& m ) const - { return this->operator<( m ); } - bool operator>=( const MetaTranslatorMessage& m ) const - { return !operator<( m ); } - -private: - bool utfeight; - Type ty; -}; - -class MetaTranslator -{ -public: - MetaTranslator(); - MetaTranslator( const MetaTranslator& tor ); - - MetaTranslator& operator=( const MetaTranslator& tor ); - - bool load( const TQString& filename ); - bool save( const TQString& filename ) const; - bool release( const TQString& filename, bool verbose = FALSE ) const; - - bool contains( const char *context, const char *sourceText, - const char *comment ) const; - void insert( const MetaTranslatorMessage& m ); - - void stripObsoleteMessages(); - void stripEmptyContexts(); - - void setCodec( const char *name ); - TQString toUnicode( const char *str, bool utf8 ) const; - - TQValueList messages() const; - TQValueList translatedMessages() const; - -private: - typedef TQMap TMM; - typedef TQMap TMMInv; - - TMM mm; - TQCString codecName; - TQTextCodec *codec; -}; - -#endif diff --git a/python/pyqt/pylupdate3/numberh.cpp b/python/pyqt/pylupdate3/numberh.cpp deleted file mode 100644 index 2280ba27..00000000 --- a/python/pyqt/pylupdate3/numberh.cpp +++ /dev/null @@ -1,230 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** numberh.cpp -** -** This file is part of Qt Linguist. -** -** See the file LICENSE included in the distribution for the usage -** and distribution terms. -** -** The file is provided AS IS with NO WARRANTY OF ANY KIND, -** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE. -** -**********************************************************************/ - -#include -#include -#include -#include - -#include -#include - -typedef TQMap TMM; -typedef TQValueList TML; - -static bool isDigitFriendly( int c ) -{ - return ispunct( c ) || isspace( c ); -} - -static int numberLength( const char *s ) -{ - int i = 0; - - if ( isdigit(s[0]) ) { - do { - i++; - } while ( isdigit(s[i]) || - (isDigitFriendly(s[i]) && - (isdigit(s[i + 1]) || - (isDigitFriendly(s[i + 1]) && isdigit(s[i + 2])))) ); - } - return i; -} - -/* - Returns a version of 'key' where all numbers have been replaced by zeroes. If - there were none, returns "". -*/ -static TQCString zeroKey( const char *key ) -{ - TQCString zeroed( strlen(key) + 1 ); - char *z = zeroed.data(); - int i = 0, j = 0; - int len; - bool metSomething = FALSE; - - while ( key[i] != '\0' ) { - len = numberLength( key + i ); - if ( len > 0 ) { - i += len; - z[j++] = '0'; - metSomething = TRUE; - } else { - z[j++] = key[i++]; - } - } - z[j] = '\0'; - - if ( metSomething ) - return zeroed; - else - return ""; -} - -static TQString translationAttempt( const TQString& oldTranslation, - const char *oldSource, - const char *newSource ) -{ - int p = zeroKey( oldSource ).contains( '0' ); - int oldSourceLen = qstrlen( oldSource ); - TQString attempt; - TQStringList oldNumbers; - TQStringList newNumbers; - TQMemArray met( p ); - TQMemArray matchedYet( p ); - int i, j; - int k = 0, ell, best; - int m, n; - int pass; - - /* - This algorithm is hard to follow, so we'll consider an example - all along: oldTranslation is "XeT 3.0", oldSource is "TeX 3.0" - and newSource is "XeT 3.1". - - First, we set up two tables: oldNumbers and newNumbers. In our - example, oldNumber[0] is "3.0" and newNumber[0] is "3.1". - */ - for ( i = 0, j = 0; i < oldSourceLen; i++, j++ ) { - m = numberLength( oldSource + i ); - n = numberLength( newSource + j ); - if ( m > 0 ) { - oldNumbers.append( TQCString(oldSource + i, m + 1) ); - newNumbers.append( TQCString(newSource + j, n + 1) ); - i += m; - j += n; - met[k] = FALSE; - matchedYet[k] = 0; - k++; - } - } - - /* - We now go over the old translation, "XeT 3.0", one letter at a - time, looking for numbers found in oldNumbers. Whenever such a - number is met, it is replaced with its newNumber equivalent. In - our example, the "3.0" of "XeT 3.0" becomes "3.1". - */ - for ( i = 0; i < (int) oldTranslation.length(); i++ ) { - attempt += oldTranslation[i]; - for ( k = 0; k < p; k++ ) { - if ( oldTranslation[i] == oldNumbers[k][matchedYet[k]] ) - matchedYet[k]++; - else - matchedYet[k] = 0; - } - - /* - Let's find out if the last character ended a match. We make - two passes over the data. In the first pass, we try to - match only numbers that weren't matched yet; if that fails, - the second pass does the trick. This is useful in some - suspicious cases, flagged below. - */ - for ( pass = 0; pass < 2; pass++ ) { - best = p; // an impossible value - for ( k = 0; k < p; k++ ) { - if ( (!met[k] || pass > 0) && - matchedYet[k] == (int) oldNumbers[k].length() && - numberLength(oldTranslation.latin1() + (i + 1) - - matchedYet[k]) == matchedYet[k] ) { - // the longer the better - if ( best == p || matchedYet[k] > matchedYet[best] ) - best = k; - } - } - if ( best != p ) { - attempt.truncate( attempt.length() - matchedYet[best] ); - attempt += newNumbers[best]; - met[best] = TRUE; - for ( k = 0; k < p; k++ ) - matchedYet[k] = 0; - break; - } - } - } - - /* - We flag two kinds of suspicious cases. They are identified as - such with comments such as "{2000?}" at the end. - - Example of the first kind: old source text "TeX 3.0" translated - as "XeT 2.0" is flagged "TeX 2.0 {3.0?}", no matter what the - new text is. - */ - for ( k = 0; k < p; k++ ) { - if ( !met[k] ) - attempt += TQString( " {" ) + newNumbers[k] + TQString( "?}" ); - } - - /* - Example of the second kind: "1 of 1" translated as "1 af 1", - with new source text "1 of 2", generates "1 af 2 {1 or 2?}" - because it's not clear which of "1 af 2" and "2 af 1" is right. - */ - for ( k = 0; k < p; k++ ) { - for ( ell = 0; ell < p; ell++ ) { - if ( k != ell && oldNumbers[k] == oldNumbers[ell] && - newNumbers[k] < newNumbers[ell] ) - attempt += TQString( " {" ) + newNumbers[k] + TQString( " or " ) + - newNumbers[ell] + TQString( "?}" ); - } - } - return attempt; -} - -/* - Augments a MetaTranslator with translations easily derived from - similar existing (probably obsolete) translations. - - For example, if "TeX 3.0" is translated as "XeT 3.0" and "TeX 3.1" - has no translation, "XeT 3.1" is added to the translator and is - marked Unfinished. -*/ -void applyNumberHeuristic( MetaTranslator *tor, bool verbose ) -{ - TMM translated, untranslated; - TMM::Iterator t, u; - TML all = tor->messages(); - TML::Iterator it; - int inserted = 0; - - for ( it = all.begin(); it != all.end(); ++it ) { - if ( (*it).type() == MetaTranslatorMessage::Unfinished ) { - if ( (*it).translation().isEmpty() ) - untranslated.insert( zeroKey((*it).sourceText()), *it ); - } else if ( !(*it).translation().isEmpty() ) { - translated.insert( zeroKey((*it).sourceText()), *it ); - } - } - - for ( u = untranslated.begin(); u != untranslated.end(); ++u ) { - t = translated.find( u.key() ); - if ( t != translated.end() && !t.key().isEmpty() && - qstrcmp((*t).sourceText(), (*u).sourceText()) != 0 ) { - MetaTranslatorMessage m( *u ); - m.setTranslation( translationAttempt((*t).translation(), - (*t).sourceText(), - (*u).sourceText()) ); - tor->insert( m ); - inserted++; - } - } - if ( verbose && inserted != 0 ) - qWarning( " number heuristic provided %d translation%s", - inserted, inserted == 1 ? "" : "s" ); -} diff --git a/python/pyqt/pylupdate3/proparser.cpp b/python/pyqt/pylupdate3/proparser.cpp deleted file mode 100644 index 6010cbeb..00000000 --- a/python/pyqt/pylupdate3/proparser.cpp +++ /dev/null @@ -1,78 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** proparser.cpp -** -** This file is part of Qt Linguist. -** -** See the file LICENSE included in the distribution for the usage -** and distribution terms. -** -** The file is provided AS IS with NO WARRANTY OF ANY KIND, -** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE. -** -**********************************************************************/ - -#include -#include - -#include "proparser.h" - -TQMap proFileTagMap( const TQString& text ) -{ - TQString t = text; - - /* - Strip comments, merge lines ending with backslash, add - spaces around '=' and '+=', replace '\n' with ';', and - simplify white spaces. - */ - t.replace( TQRegExp(TQString("#[^\n]$")), TQString(" ") ); - t.replace( TQRegExp(TQString("\\\\\\s*\n")), TQString(" ") ); - t.replace( TQRegExp(TQString("=")), TQString(" = ") ); - t.replace( TQRegExp(TQString("\\+ =")), TQString(" += ") ); - t.replace( TQRegExp(TQString("\n")), TQString(";") ); - t = t.simplifyWhiteSpace(); - - TQMap tagMap; - - TQStringList lines = TQStringList::split( TQChar(';'), t ); - TQStringList::Iterator line; - for ( line = lines.begin(); line != lines.end(); ++line ) { - TQStringList toks = TQStringList::split( TQChar(' '), *line ); - - if ( toks.count() >= 3 && - (toks[1] == TQString("=") || toks[1] == TQString("+=")) ) { - TQString tag = toks.first(); - int k = tag.findRev( TQChar(':') ); // as in 'unix:' - if ( k != -1 ) - tag = tag.mid( k + 1 ); - toks.remove( toks.begin() ); - - TQString action = toks.first(); - toks.remove( toks.begin() ); - - if ( tagMap.contains(tag) ) { - if ( action == TQString("=") ) - tagMap.replace( tag, toks.join(TQChar(' ')) ); - else - tagMap[tag] += TQChar( ' ' ) + toks.join( TQChar(' ') ); - } else { - tagMap[tag] = toks.join( TQChar(' ') ); - } - } - } - - TQRegExp var( "\\$\\$[a-zA-Z0-9_]+" ); - TQMap::Iterator it; - for ( it = tagMap.begin(); it != tagMap.end(); ++it ) { - int i = 0; - - while ( (i = var.search(it.data(), i)) != -1 ) { - int len = var.matchedLength(); - (*it).replace( i, len, tagMap[(*it).mid(i + 2, len - 2)] ); - } - } - return tagMap; -} diff --git a/python/pyqt/pylupdate3/proparser.h b/python/pyqt/pylupdate3/proparser.h deleted file mode 100644 index 7d0df31a..00000000 --- a/python/pyqt/pylupdate3/proparser.h +++ /dev/null @@ -1,25 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** proparser.h -** -** This file is part of Qt Linguist. -** -** See the file LICENSE included in the distribution for the usage -** and distribution terms. -** -** The file is provided AS IS with NO WARRANTY OF ANY KIND, -** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE. -** -**********************************************************************/ - -#ifndef PROPARSER_H -#define PROPARSER_H - -#include -#include - -TQMap proFileTagMap( const TQString& text ); - -#endif diff --git a/python/pyqt/pylupdate3/pylupdate-prof.sbf b/python/pyqt/pylupdate3/pylupdate-prof.sbf deleted file mode 100644 index 6f5bcc56..00000000 --- a/python/pyqt/pylupdate3/pylupdate-prof.sbf +++ /dev/null @@ -1,24 +0,0 @@ -# This is the build file for pylupdate for Qt v3 Professional Edition. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -target = pylupdate -sources = fetchtr.cpp main.cpp merge.cpp numberh.cpp sametexth.cpp metatranslator.cpp proparser.cpp qxml.cpp -headers = metatranslator.h proparser.h diff --git a/python/pyqt/pylupdate3/pylupdate.pro.in b/python/pyqt/pylupdate3/pylupdate.pro.in deleted file mode 100644 index c21725c6..00000000 --- a/python/pyqt/pylupdate3/pylupdate.pro.in +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright (c) 2002 -# Detlev Offenbach -# -# The project file pylupdate for Qt v3. - - -TEMPLATE = app -CONFIG += qt warn_on console release @PYQT_RBPROF@ -INCLUDEPATH = @BLX_INCLUDEPATH@ -DEFINES = QT_INTERNAL_XML @BLX_DEFINES@ - -DESTDIR = @PYQT_BINDIR@ -TARGET = pylupdate - -HEADERS = metatranslator.h \ - proparser.h - -SOURCES = fetchtr.cpp \ - main.cpp \ - merge.cpp \ - numberh.cpp \ - sametexth.cpp \ - metatranslator.cpp \ - proparser.cpp - -rbprof:exists($(QTDIR)/src/qt_professional.pri) { - QT_SOURCE_TREE = $(QTDIR) - include($(QTDIR)/src/qt_professional.pri) -} diff --git a/python/pyqt/pylupdate3/pylupdate.sbf b/python/pyqt/pylupdate3/pylupdate.sbf deleted file mode 100644 index 1d5325a9..00000000 --- a/python/pyqt/pylupdate3/pylupdate.sbf +++ /dev/null @@ -1,24 +0,0 @@ -# This is the build file for pylupdate for Qt v3 Professional Edition. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -target = pylupdate -sources = fetchtr.cpp main.cpp merge.cpp numberh.cpp sametexth.cpp metatranslator.cpp proparser.cpp -headers = metatranslator.h proparser.h diff --git a/python/pyqt/pylupdate3/sametexth.cpp b/python/pyqt/pylupdate3/sametexth.cpp deleted file mode 100644 index c007cfc3..00000000 --- a/python/pyqt/pylupdate3/sametexth.cpp +++ /dev/null @@ -1,78 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** sametexth.cpp -** -** This file is part of Qt Linguist. -** -** See the file LICENSE included in the distribution for the usage -** and distribution terms. -** -** The file is provided AS IS with NO WARRANTY OF ANY KIND, -** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE. -** -**********************************************************************/ - -#include -#include - -#include - -typedef TQMap TMM; -typedef TQValueList TML; - -/* - Augments a MetaTranslator with trivially derived translations. - - For example, if "Enabled:" is consistendly translated as "Eingeschaltet:" no - matter the context or the comment, "Eingeschaltet:" is added as the - translation of any untranslated "Enabled:" text and is marked Unfinished. -*/ - -void applySameTextHeuristic( MetaTranslator *tor, bool verbose ) -{ - TMM translated, avoid; - TMM::Iterator t; - TML untranslated; - TML::Iterator u; - TML all = tor->messages(); - TML::Iterator it; - int inserted = 0; - - for ( it = all.begin(); it != all.end(); ++it ) { - if ( (*it).type() == MetaTranslatorMessage::Unfinished ) { - if ( (*it).translation().isEmpty() ) - untranslated.append( *it ); - } else { - TQCString key = (*it).sourceText(); - t = translated.find( key ); - if ( t != translated.end() ) { - /* - The same source text is translated at least two - different ways. Do nothing then. - */ - if ( (*t).translation() != (*it).translation() ) { - translated.remove( key ); - avoid.insert( key, *it ); - } - } else if ( !avoid.contains(key) ) { - translated.insert( key, *it ); - } - } - } - - for ( u = untranslated.begin(); u != untranslated.end(); ++u ) { - TQCString key = (*u).sourceText(); - t = translated.find( key ); - if ( t != translated.end() ) { - MetaTranslatorMessage m( *u ); - m.setTranslation( (*t).translation() ); - tor->insert( m ); - inserted++; - } - } - if ( verbose && inserted != 0 ) - qWarning( " same-text heuristic provided %d translation%s", - inserted, inserted == 1 ? "" : "s" ); -} diff --git a/python/pyqt/pyqtconfig.py.in b/python/pyqt/pyqtconfig.py.in deleted file mode 100644 index 192cd741..00000000 --- a/python/pyqt/pyqtconfig.py.in +++ /dev/null @@ -1,187 +0,0 @@ -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; 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 PyQt modules. - - -import sipconfig - - -# These are installation specific values created when PyQt was configured. -# @SIP_CONFIGURATION@ - - -class Configuration(sipconfig.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) - - sipconfig.Configuration.__init__(self, cfg) - - -class QtModuleMakefile(sipconfig.SIPModuleMakefile): - """The Makefile class for modules that %Import qt. - """ - def __init__(self, *args, **kw): - """Initialise an instance of a module Makefile. - """ - kw["qt"] = 1 - apply(sipconfig.SIPModuleMakefile.__init__, (self, ) + args, kw) - - 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("qt")) - - sipconfig.SIPModuleMakefile.finalise(self) - - -class QtAxContainerModuleMakefile(QtModuleMakefile): - """The Makefile class for modules that %Import qtaxcontainer. - """ - def finalise(self): - """Finalise the macros. - """ - if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qtaxcontainer")) - - QtModuleMakefile.finalise(self) - - -class QtCanvasModuleMakefile(QtModuleMakefile): - """The Makefile class for modules that %Import qtcanvas. - """ - def finalise(self): - """Finalise the macros. - """ - if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qtcanvas")) - - QtModuleMakefile.finalise(self) - - -class QtExtModuleMakefile(QtModuleMakefile): - """The Makefile class for modules that %Import qtext. - """ - def finalise(self): - """Finalise the macros. - """ - if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qtext")) - - self.extra_defines.extend(self.config._pyqt_qscintilla_defines) - self.extra_include_dirs.append(self.config._pyqt_qscintilla_inc_dir) - self.extra_lib_dirs.append(self.config._pyqt_qscintilla_lib_dir) - self.extra_libs.append("qscintilla") - - QtModuleMakefile.finalise(self) - - -class QtGLModuleMakefile(QtModuleMakefile): - """The Makefile class for modules that %Import qtgl. - """ - def __init__(self, *args, **kw): - """Initialise an instance of a module Makefile. - """ - kw["opengl"] = 1 - apply(QtModuleMakefile.__init__, (self, ) + args, kw) - - def finalise(self): - """Finalise the macros. - """ - if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qtgl")) - - QtModuleMakefile.finalise(self) - - -class QtNetworkModuleMakefile(QtModuleMakefile): - """The Makefile class for modules that %Import qtnetwork. - """ - def finalise(self): - """Finalise the macros. - """ - if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qtnetwork")) - - QtModuleMakefile.finalise(self) - - -class QtTableModuleMakefile(QtModuleMakefile): - """The Makefile class for modules that %Import qttable. - """ - def finalise(self): - """Finalise the macros. - """ - if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qttable")) - - QtModuleMakefile.finalise(self) - - -class QtSQLModuleMakefile(QtTableModuleMakefile): - """The Makefile class for modules that %Import qtsql. - """ - def finalise(self): - """Finalise the macros. - """ - if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qtsql")) - - QtTableModuleMakefile.finalise(self) - - -class QtUIModuleMakefile(QtModuleMakefile): - """The Makefile class for modules that %Import qtui. - """ - def finalise(self): - """Finalise the macros. - """ - if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qtui")) - - QtModuleMakefile.finalise(self) - - -class QtXMLModuleMakefile(QtModuleMakefile): - """The Makefile class for modules that %Import qtxml. - """ - def finalise(self): - """Finalise the macros. - """ - if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qtxml")) - - QtModuleMakefile.finalise(self) diff --git a/python/pyqt/pyuic2/COPYING b/python/pyqt/pyuic2/COPYING deleted file mode 100644 index c7aea189..00000000 --- a/python/pyqt/pyuic2/COPYING +++ /dev/null @@ -1,280 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 675 Mass Ave, Cambridge, MA 02139, 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 diff --git a/python/pyqt/pyuic2/domtool.cpp b/python/pyqt/pyuic2/domtool.cpp deleted file mode 100644 index a1ffac47..00000000 --- a/python/pyqt/pyuic2/domtool.cpp +++ /dev/null @@ -1,260 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** Copyright (C) 2000, 2001 Phil Thompson -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#include "domtool.h" - -#include -#include -#include -#include -#include -#include - - -/*! - \class DomTool domtool.h - \brief Tools for the dom - - A collection of static functions used by Resource (part of the - designer) and Uic. - -*/ - - -/*! - Returns the contents of property \a name of object \a e as - variant or the variant passed as \a defValue if the property does - not exist. - - \sa hasProperty() - */ -TQVariant DomTool::readProperty( const TQDomElement& e, const TQString& name, const TQVariant& defValue ) -{ - TQDomElement n; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "property" ) { - TQDomElement n2 = n.firstChild().toElement(); - if ( n2.tagName() == "name" ) { - TQString prop = n2.firstChild().toText().data(); - if ( prop == name ) - return elementToVariant( n2.nextSibling().toElement(), defValue ); - } - } - } - return defValue; -} - -/*! - Returns wheter object \a e defines property \a name or not. - - \sa readProperty() - */ -bool DomTool::hasProperty( const TQDomElement& e, const TQString& name ) -{ - TQDomElement n; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "property" ) { - TQDomElement n2 = n.firstChild().toElement(); - if ( n2.tagName() == "name" ) { - TQString prop = n2.firstChild().toText().data(); - if ( prop == name ) - return TRUE; - } - } - } - return FALSE; -} - -TQVariant DomTool::elementToVariant( const TQDomElement& e, const TQVariant& defValue ) -{ - TQString dummy; - return elementToVariant( e, defValue, dummy ); -} - -/*! - Interprets element \a e as variant and returns the result of the interpretation. - */ -TQVariant DomTool::elementToVariant( const TQDomElement& e, const TQVariant& defValue, TQString &comment ) -{ - TQVariant v; - if ( e.tagName() == "rect" ) { - TQDomElement n3 = e.firstChild().toElement(); - int x = 0, y = 0, w = 0, h = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "x" ) - x = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "y" ) - y = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "width" ) - w = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "height" ) - h = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = TQVariant( TQRect( x, y, w, h ) ); - } else if ( e.tagName() == "point" ) { - TQDomElement n3 = e.firstChild().toElement(); - int x = 0, y = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "x" ) - x = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "y" ) - y = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = TQVariant( TQPoint( x, y ) ); - } else if ( e.tagName() == "size" ) { - TQDomElement n3 = e.firstChild().toElement(); - int w = 0, h = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "width" ) - w = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "height" ) - h = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = TQVariant( TQSize( w, h ) ); - } else if ( e.tagName() == "color" ) { - v = TQVariant( readColor( e ) ); - } else if ( e.tagName() == "font" ) { - TQDomElement n3 = e.firstChild().toElement(); - TQFont f( defValue.toFont() ); - while ( !n3.isNull() ) { - if ( n3.tagName() == "family" ) - f.setFamily( n3.firstChild().toText().data() ); - else if ( n3.tagName() == "pointsize" ) - f.setPointSize( n3.firstChild().toText().data().toInt() ); - else if ( n3.tagName() == "bold" ) - f.setBold( n3.firstChild().toText().data().toInt() ); - else if ( n3.tagName() == "italic" ) - f.setItalic( n3.firstChild().toText().data().toInt() ); - else if ( n3.tagName() == "underline" ) - f.setUnderline( n3.firstChild().toText().data().toInt() ); - else if ( n3.tagName() == "strikeout" ) - f.setStrikeOut( n3.firstChild().toText().data().toInt() ); - n3 = n3.nextSibling().toElement(); - } - v = TQVariant( f ); - } else if ( e.tagName() == "string" ) { - v = TQVariant( e.firstChild().toText().data() ); - TQDomElement n = e; - n = n.nextSibling().toElement(); - if ( n.tagName() == "comment" ) - comment = n.firstChild().toText().data(); - } else if ( e.tagName() == "cstring" ) { - v = TQVariant( TQCString( e.firstChild().toText().data() ) ); - } else if ( e.tagName() == "number" ) { - v = TQVariant( e.firstChild().toText().data().toInt() ); - } else if ( e.tagName() == "bool" ) { - TQString t = e.firstChild().toText().data(); - v = TQVariant( t == "true" || t == "1", 0 ); - } else if ( e.tagName() == "pixmap" ) { - v = TQVariant( e.firstChild().toText().data() ); - } else if ( e.tagName() == "iconset" ) { - v = TQVariant( e.firstChild().toText().data() ); - } else if ( e.tagName() == "image" ) { - v = TQVariant( e.firstChild().toText().data() ); - } else if ( e.tagName() == "enum" ) { - v = TQVariant( e.firstChild().toText().data() ); - } else if ( e.tagName() == "set" ) { - v = TQVariant( e.firstChild().toText().data() ); - } else if ( e.tagName() == "sizepolicy" ) { - TQDomElement n3 = e.firstChild().toElement(); - TQSizePolicy sp; - while ( !n3.isNull() ) { - if ( n3.tagName() == "hsizetype" ) - sp.setHorData( (TQSizePolicy::SizeType)n3.firstChild().toText().data().toInt() ); - else if ( n3.tagName() == "vsizetype" ) - sp.setVerData( (TQSizePolicy::SizeType)n3.firstChild().toText().data().toInt() ); - n3 = n3.nextSibling().toElement(); - } - v = TQVariant( sp ); - } else if ( e.tagName() == "cursor" ) { - v = TQVariant( TQCursor( e.firstChild().toText().data().toInt() ) ); - } - - return v; -} - - -/*! Returns the color which is returned in the dom element \a e. - */ - -TQColor DomTool::readColor( const TQDomElement &e ) -{ - TQDomElement n = e.firstChild().toElement(); - int r= 0, g = 0, b = 0; - while ( !n.isNull() ) { - if ( n.tagName() == "red" ) - r = n.firstChild().toText().data().toInt(); - else if ( n.tagName() == "green" ) - g = n.firstChild().toText().data().toInt(); - else if ( n.tagName() == "blue" ) - b = n.firstChild().toText().data().toInt(); - n = n.nextSibling().toElement(); - } - - return TQColor( r, g, b ); -} - -/*! - Returns the contents of attribute \a name of object \a e as - variant or the variant passed as \a defValue if the attribute does - not exist. - - \sa hasAttribute() - */ -TQVariant DomTool::readAttribute( const TQDomElement& e, const TQString& name, const TQVariant& defValue ) -{ - TQDomElement n; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "attribute" ) { - TQDomElement n2 = n.firstChild().toElement(); - if ( n2.tagName() == "name" ) { - TQString prop = n2.firstChild().toText().data(); - if ( prop == name ) - return elementToVariant( n2.nextSibling().toElement(), defValue ); - } - } - } - return defValue; -} - -/*! - Returns wheter object \a e defines attribute \a name or not. - - \sa readAttribute() - */ -bool DomTool::hasAttribute( const TQDomElement& e, const TQString& name ) -{ - TQDomElement n; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "attribute" ) { - TQDomElement n2 = n.firstChild().toElement(); - if ( n2.tagName() == "name" ) { - TQString prop = n2.firstChild().toText().data(); - if ( prop == name ) - return TRUE; - } - } - } - return FALSE; -} diff --git a/python/pyqt/pyuic2/domtool.h b/python/pyqt/pyuic2/domtool.h deleted file mode 100644 index 9d31897b..00000000 --- a/python/pyqt/pyuic2/domtool.h +++ /dev/null @@ -1,41 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Troll Tech AS. All rights reserved. -** Copyright (C) 2000, 2001 Phil Thompson -** -** This file is part of Qt GUI Designer. -** -** This file may be distributed under the terms of the GNU General -** Public License version 2 as published by the Free Software -** Foundation and appearing in the file COPYING included in the -** packaging of this file. If you did not get the file, send email -** to info@trolltech.com -** -** The file is provided AS IS with NO WARRANTY OF ANY KIND, -** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE. -** -**********************************************************************/ - -#ifndef DOMTOOL_H -#define DOMTOOL_H - -#include -#include -#include - - -class DomTool : public Qt -{ -public: - static TQVariant readProperty( const TQDomElement& e, const TQString& name, const TQVariant& defValue ); - static bool hasProperty( const TQDomElement& e, const TQString& name ); - static TQVariant elementToVariant( const TQDomElement& e, const TQVariant& defValue ); - static TQVariant elementToVariant( const TQDomElement& e, const TQVariant& defValue, TQString &comment ); - static TQVariant readAttribute( const TQDomElement& e, const TQString& name, const TQVariant& defValue ); - static bool hasAttribute( const TQDomElement& e, const TQString& name ); - static TQColor readColor( const TQDomElement &e ); - -}; - - -#endif // DOMTOOL_H diff --git a/python/pyqt/pyuic2/globaldefs.h b/python/pyqt/pyuic2/globaldefs.h deleted file mode 100644 index e436e5a6..00000000 --- a/python/pyqt/pyuic2/globaldefs.h +++ /dev/null @@ -1,33 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#ifndef GLOBALDEFS_H -#define GLOBALDEFS_H - -#include - -#define BOXLAYOUT_DEFAULT_MARGIN 11 -#define BOXLAYOUT_DEFAULT_SPACING 6 - -static TQColor backColor1( 226, 244, 216 ); -static TQColor backColor2( 235, 235, 235 ); -static TQColor selectedBack( 192, 192, 192 ); - -#endif diff --git a/python/pyqt/pyuic2/pyuic.pro.in b/python/pyqt/pyuic2/pyuic.pro.in deleted file mode 100644 index 8df15136..00000000 --- a/python/pyqt/pyuic2/pyuic.pro.in +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (c) 2000, 2001 -# Phil Thompson -# Copyright (c) 2002, 2003 -# Riverbank Computing Limited -# -# The project file for pyuic for Qt v2. - - -TEMPLATE = app -CONFIG = qt console warn_on release -INCLUDEPATH = @BLX_INCLUDEPATH@ $(QTDIR)/src/3rdparty/zlib -DEFINES = UIC @BLX_DEFINES@ - -DESTDIR = @PYQT_BINDIR@ -TARGET = pyuic - -HEADERS = domtool.h \ - globaldefs.h \ - uic.h \ - widgetdatabase.h - -SOURCES = domtool.cpp \ - uic.cpp \ - widgetdatabase.cpp diff --git a/python/pyqt/pyuic2/pyuic.sbf b/python/pyqt/pyuic2/pyuic.sbf deleted file mode 100644 index 1bec4ac3..00000000 --- a/python/pyqt/pyuic2/pyuic.sbf +++ /dev/null @@ -1,24 +0,0 @@ -# This is the build file for pyuic for Qt v2. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -target = pyuic -sources = uic.cpp widgetdatabase.cpp domtool.cpp -headers = uic.h widgetdatabase.h domtool.h globaldefs.h diff --git a/python/pyqt/pyuic2/uic.cpp b/python/pyqt/pyuic2/uic.cpp deleted file mode 100644 index 93c67f6b..00000000 --- a/python/pyqt/pyuic2/uic.cpp +++ /dev/null @@ -1,1601 +0,0 @@ -// Copyright (c) 2000 - 2001 Phil Thompson - -/********************************************************************** -** Copyright (C) 2000 Troll Tech AS. All rights reserved. -** -** This file is part of Qt GUI Designer. -** -** This file may be distributed under the terms of the GNU General -** Public License version 2 as published by the Free Software -** Foundation and appearing in the file COPYING included in the -** packaging of this file. If you did not get the file, send email -** to info@trolltech.com -** -** The file is provided AS IS with NO WARRANTY OF ANY KIND, -** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE. -** -**********************************************************************/ - -#include "uic.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -static TQString mkBool( bool b ) -{ - return b? "1" : "0"; -} - -static TQString mkBool( const TQString& s ) -{ - return mkBool( s == "true" || s == "1" ); -} - -static bool toBool( const TQString& s ) -{ - return s == "true" || s.toInt() != 0; -} - - -// fixString is only used in conjunction with tr(). We need to write out the -// string in utf8 and make sure it's converted from utf8 when created. -static TQString fixString( const TQString &str ) -{ - TQString s( str ); - s.replace( TQRegExp( "\\\\" ), "\\\\" ); - s.replace( TQRegExp( "\"" ), "\\\"" ); - s.replace( TQRegExp( "\n" ), "\\n\"\n\"" ); - s.replace( TQRegExp( "\r" ), "\\r" ); - - bool onlyAscii = TRUE; - unsigned int i; - for ( i = 0; i < s.length(); i++ ) { - if ( s.at(i).unicode() >= 0x80 ) { - onlyAscii = FALSE; - break; - } - } - if ( onlyAscii ) - s = "\"" + s + "\""; - else - s = "TQString.fromUtf8(\"" + s + "\")"; - return s; -} - -static TQString mkStdSet( const TQString& prop ) -{ - return TQString( "set" ) + prop[0].upper() + prop.mid(1); -} - - -/*! - \class Uic uic.h - \brief User Interface Compiler - - The class Uic encapsulates the user interface compiler (uic). - */ - -static TQString className; - -Uic::Uic( TQTextStream &outStream, TQDomDocument doc, const TQString &trm ) - : out( outStream ), trmacro( trm ) -{ - item_used = cg_used = pal_used = 0; - - initIndent(); - - layouts << "hbox" << "vbox" << "grid"; - tags = layouts; - tags << "widget"; - - nameOfClass = getClassName( doc.firstChild().toElement() ); - - TQDomElement firstWidget = doc.firstChild().firstChild().toElement(); - while ( firstWidget.tagName() != "widget" ) - firstWidget = firstWidget.nextSibling().toElement(); - - if ( nameOfClass.isEmpty() ) - nameOfClass = getObjectName( firstWidget ); - - // This is a hack. - className = nameOfClass; - - createFormImpl( firstWidget ); -} - - -/*! Extracts a class name from \a e - */ -TQString Uic::getClassName( const TQDomElement& e ) -{ - TQDomElement n; - TQString cn; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "class" ) { - TQString s = n.firstChild().toText().data(); - int i; - while ( ( i = s.find(' ' )) != -1 ) - s[i] = '_'; - cn = s; - } else if ( n.tagName() == "pixmapfunction" ) { - pixmapLoaderFunction = n.firstChild().toText().data(); - } - } - return cn; -} - -/*! Extracts an object name from \a e. It's stored in the 'name' - property. - */ -TQString Uic::getObjectName( const TQDomElement& e ) -{ - TQDomElement n; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "property" ) { - TQDomElement n2 = n.firstChild().toElement(); - if ( n2.tagName() == "name" && n2.firstChild().toText().data() == "name" ) { - return n2.nextSibling().toElement().firstChild().toText().data(); - } - } - } - return TQString::null; -} - -/*! Extracts an layout name from \a e. It's stored in the 'name' - property of the preceeding sibling (the first child of a QLayoutWidget). - */ -TQString Uic::getLayoutName( const TQDomElement& e ) -{ - TQDomElement p = e.parentNode().toElement(); - TQString tail = TQString::null; - - if (getClassName(p) != "QLayoutWidget") - tail = "Layout"; - - TQDomElement n; - for ( n = p.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "property" ) { - TQDomElement n2 = n.firstChild().toElement(); - if ( n2.tagName() == "name" && n2.firstChild().toText().data() == "name" ) { - return n2.nextSibling().toElement().firstChild().toText().data() + tail; - } - } - } - return e.tagName(); -} - -TQByteArray unzipXPM( TQString data, ulong& length ) -{ - char *ba = new char[ data.length() / 2 ]; - for ( int i = 0; i < (int)data.length() / 2; ++i ) { - char h = data[ 2 * i ].latin1(); - char l = data[ 2 * i + 1 ].latin1(); - uchar r = 0; - if ( h <= '9' ) - r += h - '0'; - else - r += h - 'a' + 10; - r = r << 4; - if ( l <= '9' ) - r += l - '0'; - else - r += l - 'a' + 10; - ba[ i ] = r; - } - if ( length < data.length() * 5 ) - length = data.length() * 5; - TQByteArray baunzip( length ); - ::uncompress( (uchar*) baunzip.data(), &length, (uchar*) ba, data.length()/2 ); - return baunzip; -} - - -/*! - Creates an implementation ( cpp-file ) for the form given in \a e - - \sa createFormDecl(), createObjectImpl() - */ -void Uic::createFormImpl( const TQDomElement &e ) -{ - TQStringList::Iterator it; - TQDomElement n; - TQDomNodeList nl; - int i; - TQString objClass = getClassName( e ); - if ( objClass.isEmpty() ) - return; - TQString objName = getObjectName( e ); - - // Handle custom widgets. - for (n = e; !n.isNull(); n = n.nextSibling().toElement()) - { - if (n.tagName() != "customwidgets") - continue; - - TQDomElement n2 = n.firstChild().toElement(); - - while (!n2.isNull()) - { - if (n2.tagName() == "customwidget") - { - TQDomElement n3 = n2.firstChild().toElement(); - TQString cname, header; - - while (!n3.isNull()) - { - if (n3.tagName() == "class") - cname = n3.firstChild().toText().data(); - else if (n3.tagName() == "header") - header = n3.firstChild().toText().data(); - - n3 = n3.nextSibling().toElement(); - } - - if (cname.isEmpty()) - cname = "UnnamedCustomClass"; - - int ext = header.findRev('.'); - - if (ext >= 0) - header.truncate(ext); - - if (header.isEmpty()) - header = cname.lower(); - - out << "from " << header << " import " << cname << endl; - } - - n2 = n2.nextSibling().toElement(); - } - } - - // find out what images are required - TQStringList requiredImages; - nl = e.elementsByTagName( "pixmap" ); - for ( int j = 0; j < (int) nl.length(); j++ ) { - requiredImages += nl.item(j).firstChild().toText().data(); - } - - TQStringList images; - TQStringList xpmImages; - if ( pixmapLoaderFunction.isEmpty() ) { - // create images - for ( n = e; !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "images" ) { - nl = n.elementsByTagName( "image" ); - for ( i = 0; i < (int) nl.length(); i++ ) { - TQDomElement tmp = nl.item(i).firstChild().toElement(); - TQString img = registerObject( tmp.firstChild().toText().data() ); - if ( !requiredImages.contains( img ) ) - continue; - tmp = tmp.nextSibling().toElement(); - TQString format = tmp.attribute("format", "PNG" ); - TQString data = tmp.firstChild().toText().data(); - - out << endl; - out << endl; - - if ( format == "XPM.GZ" ) { - xpmImages += img; - ulong length = tmp.attribute("length").toULong(); - TQByteArray baunzip = unzipXPM( data, length ); - int a = 0; - out << indent << img << "_data = [" << endl; - while ( baunzip[a] != '\"' ) - a++; - for ( ; a < (int) length; a++ ) - { - char ch; - - if ((ch = baunzip[a]) == '}') - { - out << endl << "]" << endl; - break; - } - - if (ch == '\"') - ch = '\''; - - out << ch; - } - } else { - images += img; - out << indent << img << "_data = \\" << endl; - pushIndent(); - out << indent << "'"; - int a ; - for ( a = 0; a < (int) (data.length()/2)-1; a++ ) { - out << "\\x" << TQString(data[2*a]) << TQString(data[2*a+1]); - if ( a % 12 == 11 ) - out << "' \\" << endl << indent << "'"; - } - out << "\\x" << TQString(data[2*a]) << TQString(data[2*a+1]) << "'" << endl; - popIndent(); - } - } - } - } - } - - // register the object and unify its name - objName = registerObject( objName ); - - - // constructor - - out << endl; - out << endl; - out << indent << "class " << nameOfClass << "(" << objClass << "):" << endl; - pushIndent(); - - if ( objClass == "TQDialog" || objClass == "TQWizard" ) { - out << indent << "def __init__(self,parent = None,name = None,modal = 0,fl = 0):" << endl; - pushIndent(); - out << indent << objClass << ".__init__(self,parent,name,modal,fl)" << endl; - } else if ( objClass == "TQWidget" ) { // standard QWidget - out << indent << "def __init__(self,parent = None,name = None,fl = 0):" << endl; - pushIndent(); - out << indent << objClass << ".__init__(self,parent,name,fl)" << endl; - } else { - out << indent << "def __init__(self,parent = None,name = None):" << endl; - pushIndent(); - out << indent << objClass << ".__init__(self,parent,name)" << endl; - } - - out << endl; - - // create pixmaps for all images - if ( !images.isEmpty() ) { - TQStringList::Iterator it; - for ( it = images.begin(); it != images.end(); ++it ) { - out << indent << (*it) << " = TQPixmap()" << endl; - out << indent << (*it) << ".loadFromData(" << (*it) << "_data,'PNG')" << endl; - } - - out << endl; - } - // create pixmaps for all images - if ( !xpmImages.isEmpty() ) { - for ( it = xpmImages.begin(); it != xpmImages.end(); ++it ) { - out << indent << (*it) << " = TQPixmap(" << (*it) << "_data)" << endl; - } - - out << endl; - } - - - // set the properties - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "property" ) { - bool stdset = toBool( n.attribute( "stdset" ) ); - TQDomElement n2 = n.firstChild().toElement(); - - if ( n2.tagName() == "name" ) { - TQString prop = n2.firstChild().toText().data(); - TQString value = setObjectProperty( objClass, TQString::null, prop, n2.nextSibling().toElement(), stdset ); - - if ( value.isEmpty() ) - continue; - - if ( prop == "name" ) { - out << indent << "if name == None:" << endl; - pushIndent(); - } - - out << indent; - - if ( prop == "geometry" && n2.nextSibling().toElement().tagName() == "rect") { - TQDomElement n3 = n2.nextSibling().toElement().firstChild().toElement(); - int w = 0, h = 0; - - while ( !n3.isNull() ) { - if ( n3.tagName() == "width" ) - w = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "height" ) - h = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - - out << "self.resize(" << w << "," << h << ")" << endl; - } else { - if ( stdset ) - out << "self." << mkStdSet(prop) << "(" << value << ")" << endl; - else - out << "self.setProperty('" << prop << "',TQVariant(" << value << "))" << endl; - } - - if (prop == "name") { - popIndent(); - out << endl; - } - } - } - } - - - // create all children, some forms have special requirements - - if ( objClass == "TQWizard" ) { - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( tags.contains( n.tagName() ) ) { - TQString page = createObjectImpl( n, objClass, "self" ); - TQString label = DomTool::readAttribute( n, "title", "" ).toString(); - out << indent << "self.addPage(" << page << ","<< trmacro << "(" << fixString( label ) << "))" << endl; - TQVariant def( FALSE, 0 ); - if ( DomTool::hasAttribute( n, "backEnabled" ) ) - out << indent << "self.setBackEnabled(" << page << "," << mkBool( DomTool::readAttribute( n, "backEnabled", def).toBool() ) << ")" << endl; - if ( DomTool::hasAttribute( n, "nextEnabled" ) ) - out << indent << "self.setNextEnabled(" << page << "," << mkBool( DomTool::readAttribute( n, "nextEnabled", def).toBool() ) << ")" << endl; - if ( DomTool::hasAttribute( n, "finishEnabled" ) ) - out << indent << "self.setFinishEnabled(" << page << "," << mkBool( DomTool::readAttribute( n, "finishEnabled", def).toBool() ) << ")" << endl; - if ( DomTool::hasAttribute( n, "helpEnabled" ) ) - out << indent << "self.setHelpEnabled(" << page << "," << mkBool( DomTool::readAttribute( n, "helpEnabled", def).toBool() ) << ")" << endl; - if ( DomTool::hasAttribute( n, "finish" ) ) - out << indent << "self.setFinish(" << page << "," << mkBool( DomTool::readAttribute( n, "finish", def).toBool() ) << ")" << endl; - } - } - } else { // standard widgets - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( tags.contains( n.tagName() ) ) - createObjectImpl( n, objName, "self" ); - } - } - - // Get the list of any user defined slots. - - TQStringList userSlots; - - for ( n = e; !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "connections" ) { - for ( TQDomElement n2 = n.firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) { - if ( n2.tagName() == "slot" ) { - userSlots += n2.firstChild().toText().data(); - } - } - } - } - - for ( n = e; !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "connections" ) { - // setup signals and slots connections - out << endl; - nl = n.elementsByTagName( "connection" ); - for ( i = 0; i < (int) nl.length(); i++ ) { - TQString sender, receiver, signal, slot; - for ( TQDomElement n2 = nl.item(i).firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) { - if ( n2.tagName() == "sender" ) - sender = n2.firstChild().toText().data(); - else if ( n2.tagName() == "receiver" ) - receiver = n2.firstChild().toText().data(); - else if ( n2.tagName() == "signal" ) - signal = n2.firstChild().toText().data(); - else if ( n2.tagName() == "slot" ) - slot = n2.firstChild().toText().data(); - } - if ( sender.isEmpty() || receiver.isEmpty() || signal.isEmpty() || slot.isEmpty() ) - continue; - - sender = registeredName( sender ); - receiver = registeredName( receiver ); - - // translate formwindow name to "self" - if ( sender == objName ) - sender = "self"; - else - sender = "self." + sender; - if ( receiver == objName ) - receiver = "self"; - else - receiver = "self." + receiver; - - // Note that we never use the TQT_SLOT() macro in case we have - // custom widgets implemented in Python. - out << indent << "self.connect(" << sender - << ",TQT_SIGNAL('" << signal << "'),self." - << slot.left(slot.find('(')) << ")" << endl; - } - } else if ( n.tagName() == "tabstops" ) { - // setup tab order - out << endl; - TQString lastName; - TQDomElement n2 = n.firstChild().toElement(); - while ( !n2.isNull() ) { - if ( n2.tagName() == "tabstop" ) { - TQString name = n2.firstChild().toText().data(); - name = registeredName( name ); - if ( !lastName.isEmpty() ) - out << indent << "self.setTabOrder(self." << lastName << ",self." << name << ")" << endl; - lastName = name; - } - n2 = n2.nextSibling().toElement(); - } - } - } - - - // buddies - bool firstBuddy = TRUE; - for ( TQValueList::Iterator buddy = buddies.begin(); buddy != buddies.end(); ++buddy ) { - if ( isObjectRegistered( (*buddy).buddy ) ) { - if ( firstBuddy ) { - out << endl; - } - out << indent << "self." << (*buddy).key << ".setBuddy(self." << registeredName( (*buddy).buddy ) << ")" << endl; - firstBuddy = FALSE; - } - - } - - // end of constructor - popIndent(); - - // handle application font changes if required - nl = e.elementsByTagName( "widget" ); - bool needEventHandler = FALSE; - for ( i = 0; i < (int) nl.length(); i++ ) { - if ( DomTool::hasProperty( nl.item(i).toElement() , "font" ) ) { - needEventHandler = TRUE; - break; - } - } - if ( needEventHandler ) { - out << endl; - out << indent << "def event(self,ev):" << endl; - pushIndent(); - out << indent << "ret = " << objClass << ".event(self,ev)" << endl; - out << endl; - out << indent << "if ev.type() == TQEvent.ApplicationFontChange:" << endl; - pushIndent(); - - for ( i = 0; i < (int) nl.length(); i++ ) { - n = nl.item(i).toElement(); - if ( DomTool::hasProperty( n, "font" ) ) - createExclusiveProperty( n, "font" ); - } - - out << endl; - popIndent(); - out << indent << "return ret" << endl; - popIndent(); - } - - - // Generate user defined slot hooks. - - for (it = userSlots.begin(); it != userSlots.end(); ++it) { - int astart = (*it).find('('); - - out << endl; - out << indent << "def " << (*it).left(astart) << "(self"; - - // We don't reproduce the argument names (if any) because we would have - // to remove the types - too complicated for the moment, so we just - // count them and give them names based on their position. - - TQString args = (*it).mid(astart + 1,(*it).find(')') - astart - 1).stripWhiteSpace(); - - if (!args.isEmpty()) { - int nrargs = args.contains(',') + 1; - - for (int i = 0; i < nrargs; ++i) - out << ",a" << i; - } - - out << "):" << endl; - pushIndent(); - out << indent << "print '" << nameOfClass << "." << *it << ": not implemented yet'" << endl; - popIndent(); - } - - popIndent(); -} - - -/*! - Creates an implementation for the object given in \a e. - - Traverses recursively over all children. - - Returns the name of the generated child object. - - \sa createObjectDecl() - */ -TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout ) -{ - - TQDomElement n; - TQString objClass, objName, fullObjName; - - if ( layouts.contains( e.tagName() ) ) - return createLayoutImpl( e, parentClass, parent, layout ); - - objClass = getClassName( e ); - if ( objClass.isEmpty() ) - return objName; - objName = getObjectName( e ); - - TQString definedName = objName; - bool isTmpObject = objName.isEmpty() || objClass == "QLayoutWidget"; - if ( isTmpObject ) { - if ( objClass[0] == 'Q' ) - objName = objClass.mid(1); - else - objName = objClass.lower(); - } - - bool isLine = objClass == "Line"; - if ( isLine ) - objClass = "TQFrame"; - - out << endl; - if ( objClass == "QLayoutWidget" ) { - if ( layout.isEmpty() ) { - // register the object and unify its name - objName = registerObject( objName ); - out << indent << objName << " = TQWidget(" << parent << ",'" << definedName << "')" << endl; - } else { - // the layout widget is not necessary, hide it by creating its child in the parent - TQString result; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if (tags.contains( n.tagName() ) ) - result = createObjectImpl( n, parentClass, parent, layout ); - } - return result; - } - - // Layouts don't go into the class instance dictionary. - fullObjName = objName; - } else { - // register the object and unify its name - objName = registerObject( objName ); - - // Temporary objects don't go into the class instance dictionary. - fullObjName = isTmpObject ? objName : "self." + objName; - - out << indent << fullObjName << " = " << createObjectInstance( objClass, parent, objName ) << endl; - } - - lastItem = "None"; - // set the properties and insert items - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "property" ) { - bool stdset = toBool( n.attribute( "stdset" ) ); - TQDomElement n2 = n.firstChild().toElement(); - - if ( n2.tagName() == "name" ) { - TQString prop = n2.firstChild().toText().data(); - TQString value = setObjectProperty( objClass, objName, prop, n2.nextSibling().toElement(), stdset ); - - if ( value.isEmpty() ) - continue; - if ( prop == "name" ) - continue; - if ( prop == "buddy" && value[0] == '\'' && value[(int)value.length()-1] == '\'' ) { - buddies << Buddy( objName, value.mid(1, value.length() - 2 ) ); - continue; - } - if ( isLine && prop == "orientation" ) { - prop = "frameStyle"; - if ( value.right(10) == "Horizontal" ) - value = "TQFrame.HLine | TQFrame.Sunken"; - else - value = "TQFrame.VLine | TQFrame.Sunken"; - } - if ( prop == "buttonGroupId" ) { - if ( parentClass == "TQButtonGroup" ) - out << indent << parent << ".insert(" << fullObjName << "," << value << ")" << endl; - continue; - } - if ( prop == "geometry") { - out << indent << fullObjName << ".setGeometry(" << value << ")" << endl; - } else { - if ( stdset ) - out << indent << fullObjName << "." << mkStdSet(prop) << "(" << value << ")" << endl; - else - out << indent << fullObjName << ".setProperty('" << prop << "',TQVariant(" << value << "))" << endl; - } - - } - } else if ( n.tagName() == "item" ) { - if ( objClass.mid(1) == "ListBox" ) { - TQString s = createListBoxItemImpl( n, fullObjName ); - if ( !s.isEmpty() ) - out << indent << s << endl; - } else if ( objClass.mid(1) == "ComboBox" ) { - TQString s = createListBoxItemImpl( n, fullObjName ); - if ( !s.isEmpty() ) - out << indent << s << endl; - } else if ( objClass.mid(1) == "IconView" ) { - TQString s = createIconViewItemImpl( n, fullObjName ); - if ( !s.isEmpty() ) - out << indent << s << endl; - } else if ( objClass.mid(1) == "ListView" ) { - TQString s = createListViewItemImpl( n, fullObjName, TQString::null ); - if ( !s.isEmpty() ) - out << s << endl; - } - } else if ( n.tagName() == "column" ) { - if ( objClass.mid(1) == "ListView" ) { - TQString s = createListViewColumnImpl( n, fullObjName ); - if ( !s.isEmpty() ) - out << s; - } - } - } - - // create all children, some widgets have special requirements - - if ( objClass == "TQTabWidget" ) { - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( tags.contains( n.tagName() ) ) { - TQString page = createObjectImpl( n, objClass, fullObjName ); - TQString label = DomTool::readAttribute( n, "title", "" ).toString(); - out << indent << fullObjName << ".insertTab(" << page << "," << trmacro << "(" << fixString( label ) << "))" << endl; - } - } - } else { // standard widgets - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( tags.contains( n.tagName() ) ) - createObjectImpl( n, objClass, fullObjName ); - } - } - - return fullObjName; -} - -/*! - Creates implementation of an listbox item tag. -*/ - -TQString Uic::createListBoxItemImpl( const TQDomElement &e, const TQString &parent ) -{ - TQDomElement n = e.firstChild().toElement(); - TQString txt; - TQString pix; - while ( !n.isNull() ) { - if ( n.tagName() == "property" ) { - TQDomElement n2 = n.firstChild().toElement(); - if ( n2.tagName() == "name" ) { - TQString attrib = n2.firstChild().toText().data(); - TQVariant v = DomTool::elementToVariant( n2.nextSibling().toElement(), TQVariant() ); - if ( attrib == "text" ) - txt = v.toString(); - else if ( attrib == "pixmap" ) { - pix = v.toString(); - if ( !pix.isEmpty() && !pixmapLoaderFunction.isEmpty() ) { - pix.prepend( pixmapLoaderFunction + "(" ); - pix.append( ")" ); - } - } - } - } - n = n.nextSibling().toElement(); - } - - return pix.isEmpty() ? - parent + ".insertItem(" + trmacro + "(" + fixString( txt ) + "))": - parent + ".insertItem(" + pix + "," + trmacro + "(" + fixString( txt ) + "))"; -} - -/*! - Creates implementation of an iconview item tag. -*/ - -TQString Uic::createIconViewItemImpl( const TQDomElement &e, const TQString &parent ) -{ - TQDomElement n = e.firstChild().toElement(); - TQString txt; - TQString pix; - while ( !n.isNull() ) { - if ( n.tagName() == "property" ) { - TQDomElement n2 = n.firstChild().toElement(); - if ( n2.tagName() == "name" ) { - TQString attrib = n2.firstChild().toText().data(); - TQVariant v = DomTool::elementToVariant( n2.nextSibling().toElement(), TQVariant() ); - if ( attrib == "text" ) - txt = v.toString(); - else if ( attrib == "pixmap" ) { - pix = v.toString(); - if ( !pix.isEmpty() && !pixmapLoaderFunction.isEmpty() ) { - pix.prepend( pixmapLoaderFunction + "( " ); - pix.append( " )" ); - } - } - } - } - n = n.nextSibling().toElement(); - } - - if ( pix.isEmpty() ) - return "TQIconViewItem(" + parent + "," + trmacro + "(" + fixString( txt ) + "))"; - return "TQIconViewItem(" + parent + "," + trmacro + "(" + fixString( txt ) + ")," + pix + ")"; - -} - -/*! - Creates implementation of an listview item tag. -*/ - -TQString Uic::createListViewItemImpl( const TQDomElement &e, const TQString &parent, - const TQString &parentItem ) -{ - TQString s; - - TQDomElement n = e.firstChild().toElement(); - - bool hasChildren = e.elementsByTagName( "item" ).count() > 0; - TQString item; - - if ( hasChildren ) { - item = registerObject( "item" ); - s = indent + item + " = "; - } else { - item = "item"; - if ( item_used ) - s = indent + item + " = "; - else - s = indent + item + " = "; - item_used = TRUE; - } - - if ( !parentItem.isEmpty() ) - s += "TQListViewItem(" + parentItem + "," + lastItem + ")\n"; - else - s += "TQListViewItem(" + parent + "," + lastItem + ")\n"; - - TQStringList textes; - TQStringList pixmaps; - while ( !n.isNull() ) { - if ( n.tagName() == "property" ) { - TQDomElement n2 = n.firstChild().toElement(); - if ( n2.tagName() == "name" ) { - TQString attrib = n2.firstChild().toText().data(); - TQVariant v = DomTool::elementToVariant( n2.nextSibling().toElement(), TQVariant() ); - if ( attrib == "text" ) - textes << v.toString(); - else if ( attrib == "pixmap" ) { - TQString pix = v.toString(); - if ( !pix.isEmpty() && !pixmapLoaderFunction.isEmpty() ) { - pix.prepend( pixmapLoaderFunction + "( " ); - pix.append( " )" ); - } - pixmaps << pix; - } - } - } else if ( n.tagName() == "item" ) { - s += indent + item + ".setOpen(1)\n"; - s += createListViewItemImpl( n, parent, item ); - } - n = n.nextSibling().toElement(); - } - - for ( int i = 0; i < (int)textes.count(); ++i ) { - if ( !textes[ i ].isEmpty() ) - s += indent + item + ".setText(" + TQString::number( i ) + "," + trmacro + "(" + fixString( textes[ i ] ) + "))\n"; - if ( !pixmaps[ i ].isEmpty() ) - s += indent + item + ".setPixmap(" + TQString::number( i ) + "," + pixmaps[ i ] + ")\n"; - } - - lastItem = item; - return s; -} - -/*! - Creates implementation of an listview column tag. -*/ - -TQString Uic::createListViewColumnImpl( const TQDomElement &e, const TQString &parent ) -{ - TQDomElement n = e.firstChild().toElement(); - TQString txt; - TQString pix; - bool clickable = FALSE, resizeable = FALSE; - while ( !n.isNull() ) { - if ( n.tagName() == "property" ) { - TQDomElement n2 = n.firstChild().toElement(); - if ( n2.tagName() == "name" ) { - TQString attrib = n2.firstChild().toText().data(); - TQVariant v = DomTool::elementToVariant( n2.nextSibling().toElement(), TQVariant() ); - if ( attrib == "text" ) - txt = v.toString(); - else if ( attrib == "pixmap" ) { - pix = v.toString(); - if ( !pix.isEmpty() && !pixmapLoaderFunction.isEmpty() ) { - pix.prepend( pixmapLoaderFunction + "( " ); - pix.append( " )" ); - } - } else if ( attrib == "clickable" ) - clickable = v.toBool(); - else if ( attrib == "resizeable" ) - resizeable = v.toBool(); - } - } - n = n.nextSibling().toElement(); - } - - TQString s; - s = indent + parent + ".addColumn(" + trmacro + "(" + fixString( txt ) + "))\n"; - if ( !pix.isEmpty() ) - s += indent + parent + ".header().setLabel(" + parent + ".header().count() - 1," + pix + "," + trmacro + "(" + fixString( txt ) + "))\n"; - if ( !clickable ) - s += indent + parent + ".header().setClickEnabled(0," + parent + ".header().count() - 1)\n"; - if ( !resizeable ) - s += indent + parent + ".header().setResizeEnabled(0," + parent + ".header().count() - 1)\n"; - - return s; -} - -/*! - Creates the implementation of a layout tag. Called from createObjectImpl(). - */ -TQString Uic::createLayoutImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout ) -{ - TQDomElement n; - TQString objClass, objName; - objClass = e.tagName(); - - TQString qlayout = "TQVBoxLayout"; - if ( objClass == "hbox" ) - qlayout = "TQHBoxLayout"; - else if ( objClass == "grid" ) - qlayout = "TQGridLayout"; - - bool isGrid = e.tagName() == "grid" ; - objName = registerObject( getLayoutName( e ) ); - layoutObjects += objName; - int margin = DomTool::readProperty( e, "margin", BOXLAYOUT_DEFAULT_MARGIN ).toInt(); - int spacing = DomTool::readProperty( e, "spacing", BOXLAYOUT_DEFAULT_SPACING ).toInt(); - - if ( (parentClass == "TQGroupBox" || parentClass == "TQButtonGroup") && layout.isEmpty() ) { - // special case for group box - out << indent << parent << ".setColumnLayout(0,Qt.Vertical)" << endl; - out << indent << parent << ".layout().setSpacing(0)" << endl; - out << indent << parent << ".layout().setMargin(0)" << endl; - out << indent << objName << " = " << qlayout << "(" << parent << ".layout())" << endl; - out << indent << objName << ".setAlignment(Qt.AlignTop)" << endl; - } else { - if ( layout.isEmpty() ) - out << indent << objName << " = " << qlayout << "(" << parent << ")" << endl; - else - out << indent << objName << " = " << qlayout << "()" << endl; - } - - out << indent << objName << ".setSpacing(" << spacing << ")" << endl; - out << indent << objName << ".setMargin(" << margin << ")" << endl; - - if ( !isGrid ) { - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "spacer" ) { - TQString child = createSpacerImpl( n, parentClass, parent, objName ); - out << indent << objName << ".addItem(" << child << ")" << endl; - } else if ( tags.contains( n.tagName() ) ) { - TQString child = createObjectImpl( n, parentClass, parent, objName ); - if ( isLayout( child ) ) - out << indent << objName << ".addLayout(" << child << ")" << endl; - else - out << indent << objName << ".addWidget(" << child << ")" << endl; - } - } - } else { - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - TQDomElement ae = n; - int row = ae.attribute( "row" ).toInt(); - int col = ae.attribute( "column" ).toInt(); - int rowspan = ae.attribute( "rowspan" ).toInt(); - int colspan = ae.attribute( "colspan" ).toInt(); - if ( rowspan < 1 ) - rowspan = 1; - if ( colspan < 1 ) - colspan = 1; - if ( n.tagName() == "spacer" ) { - TQString child = createSpacerImpl( n, parentClass, parent, objName ); - if ( rowspan * colspan != 1 ) - out << indent << objName << ".addMultiCell(" << child << "," - << row << "," << row + rowspan - 1 << "," << col << "," - << col + colspan - 1 << ")" << endl; - else - out << indent << objName << ".addItem(" << child << "," - << row << "," << col << ")" << endl; - } else if ( tags.contains( n.tagName() ) ) { - TQString child = createObjectImpl( n, parentClass, parent, objName ); - out << endl; - TQString o = "Widget"; - if ( isLayout( child ) ) - o = "Layout"; - if ( rowspan * colspan != 1 ) - out << indent << objName << ".addMultiCell" << o << "(" << child << "," - << row << "," << row + rowspan - 1 << "," << col << "," << col + colspan - 1 << ")" << endl; - else - out << indent << objName << ".add" << o << "(" << child << "," - << row << "," << col << ")" << endl; - } - } - } - - return objName; -} - - - -TQString Uic::createSpacerImpl( const TQDomElement &e, const TQString& /*parentClass*/, const TQString& /*parent*/, const TQString& /*layout*/) -{ - TQDomElement n; - TQString objClass, objName; - objClass = e.tagName(); - objName = registerObject( "spacer" ); - - TQSize size = DomTool::readProperty( e, "sizeHint", TQSize(0,0) ).toSize(); - TQString sizeType = DomTool::readProperty( e, "sizeType", "Expanding" ).toString(); - bool isVspacer = DomTool::readProperty( e, "orientation", "Horizontal" ) == "Vertical"; - - if ( sizeType != "Expanding" && sizeType != "MinimumExpanding" && - DomTool::hasProperty( e, "geometry" ) ) { // compatibility Qt 2.2 - TQRect geom = DomTool::readProperty( e, "geometry", TQRect(0,0,0,0) ).toRect(); - size = geom.size(); - } - - if ( isVspacer ) - out << indent << objName << " = TQSpacerItem(" - << size.width() << "," << size.height() - << ",TQSizePolicy.Minimum,TQSizePolicy." << sizeType << ")" << endl; - else - out << indent << objName << " = TQSpacerItem(" - << size.width() << "," << size.height() - << ",TQSizePolicy." << sizeType << ",TQSizePolicy.Minimum)" << endl; - - return objName; -} - -/*! - Creates a set-call for property \a exclusiveProp of the object - given in \a e. - - If the object does not have this property, the function does nothing. - - Exclusive properties are used to generate the implementation of - application font or palette change handlers in createFormImpl(). - - */ -void Uic::createExclusiveProperty( const TQDomElement & e, const TQString& exclusiveProp ) -{ - TQDomElement n; - TQString objClass = getClassName( e ); - if ( objClass.isEmpty() ) - return; - TQString objName = getObjectName( e ); - if ( objClass.isEmpty() ) - return; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "property" ) { - bool stdset = toBool( n.attribute( "stdset" ) ); - TQDomElement n2 = n.firstChild().toElement(); - if ( n2.tagName() == "name" ) { - TQString prop = n2.firstChild().toText().data(); - if ( prop != exclusiveProp ) - continue; - TQString value = setObjectProperty( objClass, objName, prop, n2.nextSibling().toElement(), stdset ); - if ( value.isEmpty() ) - continue; - out << indent << objName << ".setProperty('" << prop << "',TQVariant(" << value << "))" << endl; - } - } - } - -} - - -const char* const ColorRole[] = { - "Foreground", "Button", "Light", "Midlight", "Dark", "Mid", - "Text", "BrightText", "ButtonText", "Base", "Background", "Shadow", - "Highlight", "HighlightedText", 0 -}; - - -/*! - Attention: this function has to be in sync with Resource::setWidgetProperty(). If you change one, change both. - */ -TQString Uic::setObjectProperty( const TQString& objClass, const TQString& obj, const TQString &prop, const TQDomElement &e, bool stdset ) -{ - TQString v; - if ( e.tagName() == "rect" ) { - TQDomElement n3 = e.firstChild().toElement(); - int x = 0, y = 0, w = 0, h = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "x" ) - x = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "y" ) - y = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "width" ) - w = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "height" ) - h = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = "TQRect(%1,%2,%3,%4)"; - v = v.arg(x).arg(y).arg(w).arg(h); - - } else if ( e.tagName() == "point" ) { - TQDomElement n3 = e.firstChild().toElement(); - int x = 0, y = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "x" ) - x = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "y" ) - y = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = "TQPoint(%1,%2)"; - v = v.arg(x).arg(y); - } else if ( e.tagName() == "size" ) { - TQDomElement n3 = e.firstChild().toElement(); - int w = 0, h = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "width" ) - w = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "height" ) - h = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = "TQSize(%1,%2)"; - v = v.arg(w).arg(h); - } else if ( e.tagName() == "color" ) { - TQDomElement n3 = e.firstChild().toElement(); - int r= 0, g = 0, b = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "red" ) - r = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "green" ) - g = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "blue" ) - b = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = "TQColor(%1,%2,%3)"; - v = v.arg(r).arg(g).arg(b); - } else if ( e.tagName() == "font" ) { - TQDomElement n3 = e.firstChild().toElement(); - TQString fontname = "f"; - if ( !obj.isEmpty() ) { - fontname = obj + "_font"; - out << indent << fontname << " = TQFont(self." << obj << ".font())" << endl; - } else { - out << indent << fontname << " = TQFont(self.font())" << endl; - } - while ( !n3.isNull() ) { - if ( n3.tagName() == "family" ) - out << indent << fontname << ".setFamily('" << n3.firstChild().toText().data() << "')" << endl; - else if ( n3.tagName() == "pointsize" ) - out << indent << fontname << ".setPointSize(" << n3.firstChild().toText().data() << ")" << endl; - else if ( n3.tagName() == "bold" ) - out << indent << fontname << ".setBold(" << mkBool( n3.firstChild().toText().data() ) << ")" << endl; - else if ( n3.tagName() == "italic" ) - out << indent << fontname << ".setItalic(" << mkBool( n3.firstChild().toText().data() ) << ")" << endl; - else if ( n3.tagName() == "underline" ) - out << indent << fontname << ".setUnderline(" << mkBool( n3.firstChild().toText().data() ) << ")" << endl; - else if ( n3.tagName() == "strikeout" ) - out << indent << fontname << ".setStrikeOut(" << mkBool( n3.firstChild().toText().data() ) << ")" << endl; - n3 = n3.nextSibling().toElement(); - } - - if ( prop == "font" ) { - if ( !obj.isEmpty() ) - out << indent << "self." << obj << ".setFont(" << fontname << ")" << endl; - else - out << indent << "self.setFont(" << fontname << ")" << endl; - } else { - v = fontname; - } - } else if ( e.tagName() == "string" ) { - if ( prop == "toolTip" ) { - if ( !obj.isEmpty() ) - out << indent << "TQToolTip.add(self." << obj << "," + trmacro + "(" << fixString( e.firstChild().toText().data() ) << "))" << endl; - else - out << indent << "TQToolTip.add(self," + trmacro + "(" << fixString( e.firstChild().toText().data() ) << "))" << endl; - } else if ( prop == "whatsThis" ) { - if ( !obj.isEmpty() ) - out << indent << "TQWhatsThis.add(self." << obj << "," << trmacro << "(" << fixString( e.firstChild().toText().data() ) << "))" << endl; - else - out << indent << "TQWhatsThis.add(self," << trmacro << "(" << fixString( e.firstChild().toText().data() ) << "))" << endl; - } else { - v = trmacro + "(%1)"; - v = v.arg( fixString( e.firstChild().toText().data() ) ); - } - } else if ( e.tagName() == "cstring" ) { - v = "'%1'"; - v = v.arg( e.firstChild().toText().data() ); - } else if ( e.tagName() == "number" ) { - v = "%1"; - v = v.arg( e.firstChild().toText().data() ); - } else if ( e.tagName() == "bool" ) { - if ( stdset ) - v = "%1"; - else - v = "%1,0"; - v = v.arg( mkBool( e.firstChild().toText().data() ) ); - } else if ( e.tagName() == "pixmap" ) { - v = e.firstChild().toText().data(); - if ( !pixmapLoaderFunction.isEmpty() ) { - v.prepend( pixmapLoaderFunction + "( " ); - v.append( " )" ); - } - } else if ( e.tagName() == "iconset" ) { - v = "TQIconSet(%1)"; - v = v.arg( e.firstChild().toText().data() ); - } else if ( e.tagName() == "image" ) { - v = e.firstChild().toText().data() + ".convertToImage()"; - } else if ( e.tagName() == "enum" ) { - v = "%1.%2"; - TQString oc = objClass; - TQString ev = e.firstChild().toText().data(); - if ( oc == "TQListView" && ev == "Manual" ) // #### workaround, rename TQListView::Manual of WithMode enum in 3.0 - oc = "TQScrollView"; - v = v.arg( oc ).arg( ev ); - } else if ( e.tagName() == "set" ) { - TQString keys( e.firstChild().toText().data() ); - TQStringList lst = TQStringList::split( '|', keys ); - v = ""; - for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) { - v += objClass + "." + *it; - if ( it != lst.fromLast() ) - v += " | "; - } - } else if ( e.tagName() == "sizepolicy" ) { - TQDomElement n3 = e.firstChild().toElement(); - TQSizePolicy sp; - while ( !n3.isNull() ) { - if ( n3.tagName() == "hsizetype" ) - sp.setHorData( (TQSizePolicy::SizeType)n3.firstChild().toText().data().toInt() ); - else if ( n3.tagName() == "vsizetype" ) - sp.setVerData( (TQSizePolicy::SizeType)n3.firstChild().toText().data().toInt() ); - n3 = n3.nextSibling().toElement(); - } - TQString tmp; - if ( !obj.isEmpty() ) - tmp = "self." + obj; - else - tmp = "self"; - v = "TQSizePolicy(%1,%2," + tmp + ".sizePolicy().hasHeightForWidth())"; - v = v.arg( (int)sp.horData() ).arg( (int)sp.verData() ); - } else if ( e.tagName() == "palette" ) { - TQPalette pal; - bool no_pixmaps = e.elementsByTagName( "pixmap" ).count() == 0; - TQDomElement n; - if ( no_pixmaps ) { - n = e.firstChild().toElement(); - while ( !n.isNull() ) { - TQColorGroup cg; - if ( n.tagName() == "active" ) { - cg = loadColorGroup( n ); - pal.setActive( cg ); - } else if ( n.tagName() == "inactive" ) { - cg = loadColorGroup( n ); - pal.setInactive( cg ); - } else if ( n.tagName() == "disabled" ) { - cg = loadColorGroup( n ); - pal.setDisabled( cg ); - } - n = n.nextSibling().toElement(); - } - } - if ( no_pixmaps && pal == TQPalette( pal.active().button(), pal.active().background() ) ) { - v = "TQPalette(TQColor(%1,%2,%3),TQColor(%1,%2,%3))"; - v = v.arg( pal.active().button().red() ).arg( pal.active().button().green() ).arg( pal.active().button().blue() ); - v = v.arg( pal.active().background().red() ).arg( pal.active().background().green() ).arg( pal.active().background().blue() ); - } else { - TQString palette = "pal"; - if ( !pal_used ) { - out << indent << palette << " = TQPalette()" << endl; - pal_used = TRUE; - } - TQString cg = "cg"; - if ( !cg_used ) { - out << indent << cg << " = TQColorGroup()" << endl; - cg_used = TRUE; - } - n = e.firstChild().toElement(); - while ( !n.isNull() && n.tagName() != "active") - n = n.nextSibling().toElement(); - createColorGroupImpl( cg, n ); - out << indent << palette << ".setActive(" << cg << ")" << endl; - - n = e.firstChild().toElement(); - while ( !n.isNull() && n.tagName() != "inactive") - n = n.nextSibling().toElement(); - createColorGroupImpl( cg, n ); - out << indent << palette << ".setInactive(" << cg << ")" << endl; - - n = e.firstChild().toElement(); - while ( !n.isNull() && n.tagName() != "disabled") - n = n.nextSibling().toElement(); - createColorGroupImpl( cg, n ); - out << indent << palette << ".setDisabled(" << cg << ")" << endl; - v = palette; - } - } else if ( e.tagName() == "cursor" ) { - v = "TQCursor(%1)"; - v = v.arg( e.firstChild().toText().data() ); - } - return v; -} - - - -/*! - Creates a colorgroup with name \a name from the color group \a cg - */ -void Uic::createColorGroupImpl( const TQString& name, const TQDomElement& e ) -{ - TQColorGroup cg; - int r = -1; - TQDomElement n = e.firstChild().toElement(); - TQString color; - while ( !n.isNull() ) { - if ( n.tagName() == "color" ) { - r++; - TQColor col = DomTool::readColor( n ); - color = "TQColor(%1,%2,%3)"; - color = color.arg( col.red() ).arg( col.green() ).arg( col.blue() ); - if ( col == white ) - color = "Qt.white"; - else if ( col == black ) - color = "Qt.black"; - if ( n.nextSibling().toElement().tagName() != "pixmap" ) { - out << indent << name << ".setColor(TQColorGroup." << ColorRole[r] << "," << color << ")" << endl; - } - } else if ( n.tagName() == "pixmap" ) { - TQString pixmap = n.firstChild().toText().data(); - if ( !pixmapLoaderFunction.isEmpty() ) { - pixmap.prepend( pixmapLoaderFunction + "(" ); - pixmap.append( ")" ); - } - out << indent << name << ".setBrush(TQColorGroup." - << ColorRole[r] << ",TQBrush(" << color << "," << pixmap << "))" << endl; - } - n = n.nextSibling().toElement(); - } -} - -/*! - Auxiliary function to load a color group. The colorgroup must not - contain pixmaps. - */ -TQColorGroup Uic::loadColorGroup( const TQDomElement &e ) -{ - TQColorGroup cg; - int r = -1; - TQDomElement n = e.firstChild().toElement(); - TQColor col; - while ( !n.isNull() ) { - if ( n.tagName() == "color" ) { - r++; - cg.setColor( (TQColorGroup::ColorRole)r, (col = DomTool::readColor( n ) ) ); - } - n = n.nextSibling().toElement(); - } - return cg; -} - - - -/*! - Registers an object with name \a name. - - The returned name is a valid variable identifier, as similar to \a - name as possible and guaranteed to be unique within the form. - - \sa registeredName(), isObjectRegistered() - */ -TQString Uic::registerObject( const TQString& name ) -{ - if ( objectNames.isEmpty() ) { - // some temporary variables we need - objectNames += "img"; - objectNames += "item"; - objectNames += "cg"; - objectNames += "pal"; - } - - TQString result = name; - int i; - while ( ( i = result.find(' ' )) != -1 ) { - result[i] = '_'; - } - - if ( objectNames.contains( result ) ) { - int i = 2; - while ( objectNames.contains( result + "_" + TQString::number(i) ) ) - i++; - result += "_"; - result += TQString::number(i); - } - objectNames += result; - objectMapper.insert( name, result ); - return result; -} - -/*! - Returns the registered name for the original name \a name - or \a name if \a name wasn't registered. - - \sa registerObject(), isObjectRegistered() - */ -TQString Uic::registeredName( const TQString& name ) -{ - if ( !objectMapper.contains( name ) ) - return name; - return objectMapper[name]; -} - -/*! - Returns whether the object \a name was registered yet or not. - */ -bool Uic::isObjectRegistered( const TQString& name ) -{ - return objectMapper.contains( name ); -} - - -/*! - Unifies the entries in stringlist \a list. Should really be a TQStringList feature. - */ -TQStringList Uic::unique( const TQStringList& list ) -{ - TQStringList result; - if (list.isEmpty() ) - return result; - TQStringList l = list; - l.sort(); - result += l.first(); - for ( TQStringList::Iterator it = l.begin(); it != l.end(); ++it ) { - if ( *it != result.last() ) - result += *it; - } - return result; -} - - - -/*! - Creates an instance of class \a objClass, with parent \a parent and name \a objName - */ -TQString Uic::createObjectInstance( const TQString& objClass, const TQString& parent, const TQString& objName ) -{ - - if ( objClass.mid(1) == "ComboBox" ) { - return objClass + "(0," + parent + ",'" + objName + "')"; - } - return objClass + "(" + parent + ",'" + objName + "')"; -} - -bool Uic::isLayout( const TQString& name ) const -{ - return layoutObjects.contains( name ); -} - - -#if defined(BLACKADDER) -#include "ba.h" - -int BA::compilePython(const TQString &fileName,const TQString &outputFile, - const TQString &trmacro,bool execCode) -{ -#else -int main( int argc, char * argv[] ) -{ - const char *error = 0; - TQString fileName; - TQString outputFile; - TQString trmacro; - bool execCode = FALSE; - - for ( int n = 1; n < argc && error == 0; n++ ) { - TQCString arg = argv[n]; - if ( arg[0] == '-' ) { // option - TQCString opt = &arg[1]; - if ( opt[0] == 'o' ) { // output redirection - if ( opt[1] == '\0' ) { - if ( !(n < argc-1) ) { - error = "Missing output-file name"; - break; - } - outputFile = argv[++n]; - } else - outputFile = &opt[1]; - } else if ( opt == "tr" ) { - if ( opt == "tr" || opt[1] == '\0' ) { - if ( !(n < argc-1) ) { - error = "Missing tr macro."; - break; - } - trmacro = argv[++n]; - } else { - trmacro = &opt[1]; - } - } else if ( opt == "x" ) { - execCode = TRUE; - } - } else { - if (!fileName.isEmpty()) // can handle only one file - error = "Too many input files specified"; - else - fileName = argv[n]; - } - } - - if ( argc < 2 || error || fileName.isEmpty() ) { - fprintf( stderr, "PyQt user interface compiler\n" ); - if ( error ) - fprintf( stderr, "pyuic: %s\n", error ); - - fprintf( stderr, "Usage: %s [options] \n" - "\nGenerate PyQt implementation:\n" - " %s [options] \n" - "Options:\n" - "\t-o file Write output to file rather than stdout\n" - "\t-tr func Use func(...) rather than tr(...) for i18n\n" - "\t-x Generate extra code to test the class\n" - , argv[0], argv[0]); - exit( 1 ); - } -#endif - - TQFile file( fileName ); - if ( !file.open( IO_ReadOnly ) ) - qFatal( "pyuic: Could not open file '%s' ", (const char *)fileName ); - - TQFile fileOut; - if (!outputFile.isEmpty()) { - fileOut.setName( outputFile ); - if (!fileOut.open( IO_WriteOnly ) ) - qFatal( "pyuic: Could not open output file '%s'", (const char *)outputFile ); - } else { - fileOut.open( IO_WriteOnly, stdout ); - } - TQTextStream out( &fileOut ); - out.setEncoding( TQTextStream::UnicodeUTF8 ); - - TQDomDocument doc; - if ( !doc.setContent( &file ) ) - qFatal( "pyuic: Failed to parse %s\n", (const char *)fileName ); - - out << "# Form implementation generated from reading ui file '" << fileName << "'" << endl; - out << "#" << endl; - out << "# Created: " << TQDateTime::currentDateTime().toString() << endl; - out << "# by: The Python User Interface Compiler (pyuic) " << PYQT_VERSION << endl; - out << "#" << endl; - out << "# WARNING! All changes made in this file will be lost!" << endl; - out << endl; - out << endl; - - if (execCode) - out << "import sys" << endl; - - out << "from qt import *" << endl; - - Uic( out, doc, trmacro.isEmpty() ? TQString("self.tr") : trmacro ); - - if (execCode) { - out << endl; - out << endl; - out << "if __name__ == '__main__':" << endl; - out << " a = TQApplication(sys.argv)" << endl; - out << " TQObject.connect(a,TQT_SIGNAL('lastWindowClosed()'),a,TQT_SLOT('quit()'))" << endl; - out << " w = " << className << "()" << endl; - out << " a.setMainWidget(w)" << endl; - out << " w.show()" << endl; - out << " a.exec_loop()" << endl; - } - - return 0; -} diff --git a/python/pyqt/pyuic2/uic.h b/python/pyqt/pyuic2/uic.h deleted file mode 100644 index 50e1d7a3..00000000 --- a/python/pyqt/pyuic2/uic.h +++ /dev/null @@ -1,133 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Troll Tech AS. All rights reserved. -** Copyright (C) 2000, 2001 Phil Thompson -** -** This file is part of Qt GUI Designer. -** -** This file may be distributed under the terms of the GNU General -** Public License version 2 as published by the Free Software -** Foundation and appearing in the file COPYING included in the -** packaging of this file. If you did not get the file, send email -** to info@trolltech.com -** -** The file is provided AS IS with NO WARRANTY OF ANY KIND, -** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE. -** -**********************************************************************/ - -#ifndef UIC_H -#define UIC_H - -#include -#include -#include -#include -#include -#include -#include - - -#define PYQT_VERSION "3.17.2" - - -class Uic : public Qt -{ -public: - Uic( TQTextStream& out, TQDomDocument doc, const TQString &trm ); - - void createFormImpl( const TQDomElement &e ); - - TQString createObjectImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout = TQString::null ); - TQString createLayoutImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout = TQString::null ); - TQString createObjectInstance( const TQString& objClass, const TQString& parent, const TQString& objName ); - TQString createSpacerImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout = TQString::null ); - void createExclusiveProperty( const TQDomElement & e, const TQString& exclusiveProp ); - TQString createListBoxItemImpl( const TQDomElement &e, const TQString &parent ); - TQString createIconViewItemImpl( const TQDomElement &e, const TQString &parent ); - TQString createListViewColumnImpl( const TQDomElement &e, const TQString &parent ); - TQString createListViewItemImpl( const TQDomElement &e, const TQString &parent, - const TQString &parentItem ); - void createColorGroupImpl( const TQString& cg, const TQDomElement& e ); - TQColorGroup loadColorGroup( const TQDomElement &e ); - - TQString getClassName( const TQDomElement& e ); - TQString getObjectName( const TQDomElement& e ); - TQString getLayoutName( const TQDomElement& e ); - - TQString setObjectProperty( const TQString& objClass, const TQString& obj, const TQString &prop, const TQDomElement &e, bool stdset ); - - TQString registerObject( const TQString& name ); - TQString registeredName( const TQString& name ); - bool isObjectRegistered( const TQString& name ); - TQStringList unique( const TQStringList& ); - -private: - void pushIndent() - { - ++nrindents; - setIndent(); - } - - void popIndent() - { - --nrindents; - setIndent(); - } - - void setIndent() - { - indent = ""; - - for (int i = 0; i < nrindents; ++i) - indent += newindent; - } - - void initIndent() - { - newindent = " "; - indent = ""; - nrindents = 0; - } - - TQString indent, newindent; - int nrindents; - - TQTextStream& out; - TQStringList objectNames; - TQMap objectMapper; - TQStringList tags; - TQStringList layouts; - TQString formName; - TQString lastItem; - TQString trmacro; - - struct Buddy - { - Buddy( const TQString& k, const TQString& b ) - : key( k ), buddy( b ) {} - Buddy(){}; // for valuelist - TQString key; - TQString buddy; - bool operator==( const Buddy& other ) const - { return (key == other.key); } - }; - struct CustomInclude - { - TQString header; - TQString location; - }; - TQValueList buddies; - - TQStringList layoutObjects; - bool isLayout( const TQString& name ) const; - - uint item_used : 1; - uint cg_used : 1; - uint pal_used : 1; - - TQString pixmapLoaderFunction; - TQString nameOfClass; -}; - -#endif diff --git a/python/pyqt/pyuic2/widgetdatabase.cpp b/python/pyqt/pyuic2/widgetdatabase.cpp deleted file mode 100644 index db5158e9..00000000 --- a/python/pyqt/pyuic2/widgetdatabase.cpp +++ /dev/null @@ -1,640 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#include // HP-UX compiler needs this here - -#include "widgetdatabase.h" - -#if defined(DESIGNER) -#include "../designer/formwindow.h" -#include "../designer/pixmapchooser.h" -#endif - -//#include "../integration/kdevelop/kdewidgets.h" - -#include -#include -#include -#include -#include - -#include - -const int dbsize = 300; -const int dbcustom = 200; -const int dbdictsize = 211; -static WidgetDatabaseRecord* db[ dbsize ]; -static TQDict *className2Id = 0; -static int dbcount = 0; -static int dbcustomcount = 200; -static TQStrList *wGroups; -static TQStrList *invisibleGroups; -static bool whatsThisLoaded = FALSE; - - -WidgetDatabaseRecord::WidgetDatabaseRecord() -{ - isContainer = FALSE; - icon = 0; - nameCounter = 0; -} - -WidgetDatabaseRecord::~WidgetDatabaseRecord() -{ - delete icon; -} - - -/*! - \class WidgetDatabase widgetdatabase.h - \brief The WidgetDatabase class holds information about widgets - - The WidgetDatabase holds information about widgets like toolTip(), - iconSet(), ... It works Id-based, so all access functions take the - widget id as parameter. To get the id for a widget (classname), use - idFromClassName(). - - All access functions are static. Having multiple widgetdatabases in - one application doesn't make sense anyway and so you don't need more - than an instance of the widgetdatabase. - - For creating widgets, layouts, etc. see WidgetFactory. -*/ - -/*! - Creatse widget database. Does nothing -*/ - -WidgetDatabase::WidgetDatabase() -{ -} - -/*! Sets up the widget database. If the static widgetdatabase already - exists, the functions returns immediately. -*/ - -void WidgetDatabase::setupDataBase() -{ - if ( dbcount ) - return; - - wGroups = new TQStrList; - invisibleGroups = new TQStrList; - invisibleGroups->append( "Forms" ); - invisibleGroups->append( "Temp" ); - className2Id = new TQDict( dbdictsize ); - className2Id->setAutoDelete( TRUE ); - - WidgetDatabaseRecord *r = 0; - - r = new WidgetDatabaseRecord; - r->iconSet = "pushbutton.xpm"; - r->name = "TQPushButton"; - r->group = widgetGroup( "Buttons" ); - r->toolTip = "Push Button"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "toolbutton.xpm"; - r->name = "TQToolButton"; - r->group = widgetGroup( "Buttons" ); - r->toolTip = "Tool Button"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "radiobutton.xpm"; - r->name = "TQRadioButton"; - r->group = widgetGroup( "Buttons" ); - r->toolTip = "Radio Button"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "checkbox.xpm"; - r->name = "TQCheckBox"; - r->group = widgetGroup( "Buttons" ); - r->toolTip = "Check Box"; - - - - - append( r ); - r = new WidgetDatabaseRecord; - r->iconSet = "groupbox.xpm"; - r->name = "TQGroupBox"; - r->group = widgetGroup( "Containers" ); - r->toolTip = "Group Box"; - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "buttongroup.xpm"; - r->name = "TQButtonGroup"; - r->group = widgetGroup( "Containers" ); - r->toolTip = "Button Group"; - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "frame.xpm"; - r->name = "TQFrame"; - r->group = widgetGroup( "Containers" ); - r->toolTip = "Frame"; - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "tabwidget.xpm"; - r->name = "TQTabWidget"; - r->group = widgetGroup( "Containers" ); - r->toolTip = "Tabwidget"; - r->isContainer = TRUE; - - append( r ); - - - r = new WidgetDatabaseRecord; - r->iconSet = "listbox.xpm"; - r->name = "TQListBox"; - r->group = widgetGroup( "Views" ); - r->toolTip = "List Box"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "listview.xpm"; - r->name = "TQListView"; - r->group = widgetGroup( "Views" ); - r->toolTip = "List View"; - - append( r ); - -#if defined(QT_MODULE_ICONVIEW) || defined(UIC) - r = new WidgetDatabaseRecord; - r->iconSet = "iconview.xpm"; - r->name = "TQIconView"; - r->group = widgetGroup( "Views" ); - r->toolTip = "Icon View"; - - append( r ); -#endif - -#if defined(QT_MODULE_TABLE) - r = new WidgetDatabaseRecord; - r->iconSet = "table.xpm"; - r->name = "TQTable"; - r->group = widgetGroup( "Views" ); - r->toolTip = "Table"; - - append( r ); -#endif - - - r = new WidgetDatabaseRecord; - r->iconSet = "lineedit.xpm"; - r->name = "TQLineEdit"; - r->group = widgetGroup( "Input" ); - r->toolTip = "Line Edit"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "spinbox.xpm"; - r->name = "TQSpinBox"; - r->group = widgetGroup( "Input" ); - r->toolTip = "Spin Box"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "multilineedit.xpm"; - r->name = "TQMultiLineEdit"; - r->group = widgetGroup( "Input" ); - r->toolTip = "Multi Line Edit"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "combobox.xpm"; - r->name = "TQComboBox"; - r->group = widgetGroup( "Input" ); - r->toolTip = "Combo Box"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "slider.xpm"; - r->name = "TQSlider"; - r->group = widgetGroup( "Input" ); - r->toolTip = "Slider"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "dial.xpm"; - r->name = "TQDial"; - r->group = widgetGroup( "Input" ); - r->toolTip = "Dial"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "label.xpm"; - r->name = "TQLabel"; - r->group = widgetGroup( "Temp" ); - r->toolTip = "Label"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "label.xpm"; - r->name = "TextLabel"; - r->group = widgetGroup( "Display" ); - r->toolTip = "Text Label"; - r->whatsThis = "The Text Label provides a widget to display static text."; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "pixlabel.xpm"; - r->name = "PixmapLabel"; - r->group = widgetGroup( "Display" ); - r->toolTip = "Pixmap Label"; - r->whatsThis = "The Pixmap Label provides a widget to display pixmaps."; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "lcdnumber.xpm"; - r->name = "TQLCDNumber"; - r->group = widgetGroup( "Display" ); - r->toolTip = "LCD Number"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "line.xpm"; - r->name = "Line"; - r->group = widgetGroup( "Display" ); - r->toolTip = "Line"; - r->includeFile = "tqframe.h"; - r->whatsThis = "The Line widget provides horizontal and vertical lines."; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "progress.xpm"; - r->name = "TQProgressBar"; - r->group = widgetGroup( "Display" ); - r->toolTip = "Progress Bar"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "textview.xpm"; - r->name = "TQTextView"; - r->group = widgetGroup( "Display" ); - r->toolTip = "Text View"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "textbrowser.xpm"; - r->name = "TQTextBrowser"; - r->group = widgetGroup( "Display" ); - r->toolTip = "Text Browser"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "spacer.xpm"; - r->name = "Spacer"; - r->group = widgetGroup( "Temp" ); - r->toolTip = "Spacer"; - r->whatsThis = "The Spacer provides horizontal and vertical spacing to be able to manipulate the bahviour of layouts."; - - append( r ); - - r = new WidgetDatabaseRecord; - r->name = "TQWidget"; - r->isContainer = FALSE; - r->group = widgetGroup( "Forms" ); - - append( r ); - - r = new WidgetDatabaseRecord; - r->name = "TQDialog"; - r->group = widgetGroup( "Forms" ); - r->isContainer = FALSE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->name = "TQWizard"; - r->group = widgetGroup( "Forms" ); - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->name = "QDesignerWizard"; - r->group = widgetGroup( "Forms" ); - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->name = "QLayoutWidget"; - r->group = widgetGroup( "Temp" ); - r->includeFile = ""; - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "tabwidget.xpm"; - r->name = "QDesignerTabWidget"; - r->group = widgetGroup( "Temp" ); - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "tabwidget.xpm"; - r->name = "QDesignerWidget"; - r->group = widgetGroup( "Temp" ); - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "tabwidget.xpm"; - r->name = "QDesignerDialog"; - r->group = widgetGroup( "Temp" ); - r->isContainer = TRUE; - - append( r ); - -// qt_init_kde_widget_database(); -} - -/*! - Returns the number of elements in the widget database. -*/ - -int WidgetDatabase::count() -{ - setupDataBase(); - return dbcount; -} - -/*! - Returns the id at which the ids of custom widgets start. -*/ - -int WidgetDatabase::startCustom() -{ - setupDataBase(); - return dbcustom; -} - -/*! Returns the iconset which represents the class registered as \a - id. -*/ - -TQIconSet WidgetDatabase::iconSet( int id ) -{ - setupDataBase(); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return TQIconSet(); -#if defined(DESIGNER) - if ( !r->icon ) - r->icon = new TQIconSet( PixmapChooser::loadPixmap( r->iconSet, PixmapChooser::Small ), - PixmapChooser::loadPixmap( r->iconSet, PixmapChooser::Large ) ); - return *r->icon; -#endif - - return TQIconSet(); -} - -/*! - Returns the classname of the widget which is registered as \a id. -*/ - -TQString WidgetDatabase::className( int id ) -{ - setupDataBase(); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return TQString::null; - return r->name; -} - -/*! - Returns the group to which the widget registered as \a id belongs. -*/ - -TQString WidgetDatabase::group( int id ) -{ - setupDataBase(); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return TQString::null; - return r->group; -} - -/*! Returns the tooltip text of the widget which is registered as \a - id. -*/ - -TQString WidgetDatabase::toolTip( int id ) -{ - setupDataBase(); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return TQString::null; - return r->toolTip; -} - -/*! Returns the what's this? test of the widget which is registered - as \a id. -*/ - -TQString WidgetDatabase::whatsThis( int id ) -{ - setupDataBase(); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return TQString::null; - return r->whatsThis; -} - -/*! - Returns the include file if the widget which is registered as \a id. -*/ - -TQString WidgetDatabase::includeFile( int id ) -{ - setupDataBase(); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return TQString::null; - if ( r->includeFile.isNull() ) - return r->name.lower() + ".h"; - return r->includeFile; -} - -/*! Returns wheather the widget registered as \a id is a container - (can have children) or not. -*/ - -bool WidgetDatabase::isContainer( int id ) -{ - setupDataBase(); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return FALSE; - return r->isContainer; -} - -TQString WidgetDatabase::createWidgetName( int id ) -{ - setupDataBase(); - TQString n = className( id ); - if ( n == "QLayoutWidget" ) - n = "Layout"; - if ( n[ 0 ] == 'Q' ) - n = n.mid( 1 ); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return n; - n += TQString::number( ++r->nameCounter ); - return n; -} - -/*! Returns the id for \a name or -1 if \a name is unknown. - */ -int WidgetDatabase::idFromClassName( const TQString &name ) -{ - setupDataBase(); - if ( name.isEmpty() ) - return 0; - int *i = className2Id->find( name ); - if ( i ) - return *i; - if ( name == "FormWindow" ) - return idFromClassName( "QLayoutWidget" ); - return -1; -} - -WidgetDatabaseRecord *WidgetDatabase::at( int index ) -{ - if ( index < 0 ) - return 0; - if ( index >= dbcustom && index < dbcustomcount ) - return db[ index ]; - if ( index < dbcount ) - return db[ index ]; - return 0; -} - -void WidgetDatabase::insert( int index, WidgetDatabaseRecord *r ) -{ - if ( index < 0 || index >= dbsize ) - return; - db[ index ] = r; - className2Id->insert( r->name, new int( index ) ); - if ( index < dbcustom ) - dbcount = QMAX( dbcount, index ); -} - -void WidgetDatabase::append( WidgetDatabaseRecord *r ) -{ - insert( dbcount++, r ); -} - -TQString WidgetDatabase::widgetGroup( const TQString &g ) -{ - if ( wGroups->find( g ) == -1 ) - wGroups->append( g ); - return g; -} - -TQString WidgetDatabase::widgetGroup( int i ) -{ - setupDataBase(); - if ( i >= 0 && i < (int)wGroups->count() ) - return wGroups->at( i ); - return TQString::null; -} - -int WidgetDatabase::numWidgetGroups() -{ - setupDataBase(); - return wGroups->count(); -} - -bool WidgetDatabase::isGroupVisible( const TQString &g ) -{ - setupDataBase(); - return invisibleGroups->find( g ) == -1; -} - -int WidgetDatabase::addCustomWidget( WidgetDatabaseRecord *r ) -{ - insert( dbcustomcount++, r ); - return dbcustomcount - 1; -} - -bool WidgetDatabase::isCustomWidget( int id ) -{ - if ( id >= dbcustom && id < dbcustomcount ) - return TRUE; - return FALSE; -} - -bool WidgetDatabase::isWhatsThisLoaded() -{ - return whatsThisLoaded; -} - -void WidgetDatabase::loadWhatsThis( const TQString &docPath ) -{ - TQString whatsthisFile = docPath + "/whatsthis"; - TQFile f( whatsthisFile ); - if ( !f.open( IO_ReadOnly ) ) - return; - TQTextStream ts( &f ); - while ( !ts.atEnd() ) { - TQString s = ts.readLine(); - TQStringList l = TQStringList::split( " | ", s ); - int id = idFromClassName( l[ 1 ] ); - WidgetDatabaseRecord *r = at( id ); - if ( r ) - r->whatsThis = l[ 0 ]; - } - whatsThisLoaded = TRUE; -} diff --git a/python/pyqt/pyuic2/widgetdatabase.h b/python/pyqt/pyuic2/widgetdatabase.h deleted file mode 100644 index dd327d7a..00000000 --- a/python/pyqt/pyuic2/widgetdatabase.h +++ /dev/null @@ -1,75 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#ifndef WIDGETDATABASE_H -#define WIDGETDATABASE_H - -#include -#include -#include - -struct WidgetDatabaseRecord -{ - WidgetDatabaseRecord(); - ~WidgetDatabaseRecord(); - TQString iconSet, name, group, toolTip, whatsThis, includeFile; - uint isContainer : 1; - TQIconSet *icon; - int nameCounter; -}; - -class WidgetDatabase : public Qt -{ -public: - WidgetDatabase(); - static void setupDataBase(); - - static int count(); - static int startCustom(); - - static TQIconSet iconSet( int id ); - static TQString className( int id ); - static TQString group( int id ); - static TQString toolTip( int id ); - static TQString whatsThis( int id ); - static TQString includeFile( int id ); - static bool isContainer( int id ); - - static int idFromClassName( const TQString &name ); - static TQString createWidgetName( int id ); - - static WidgetDatabaseRecord *at( int index ); - static void insert( int index, WidgetDatabaseRecord *r ); - static void append( WidgetDatabaseRecord *r ); - - static TQString widgetGroup( const TQString &g ); - static TQString widgetGroup( int i ); - static int numWidgetGroups(); - static bool isGroupVisible( const TQString &g ); - - static int addCustomWidget( WidgetDatabaseRecord *r ); - static bool isCustomWidget( int id ); - - static bool isWhatsThisLoaded(); - static void loadWhatsThis( const TQString &docPath ); - -}; - -#endif diff --git a/python/pyqt/pyuic3/LICENSE.GPL b/python/pyqt/pyuic3/LICENSE.GPL deleted file mode 100644 index c7aea189..00000000 --- a/python/pyqt/pyuic3/LICENSE.GPL +++ /dev/null @@ -1,280 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 675 Mass Ave, Cambridge, MA 02139, 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 diff --git a/python/pyqt/pyuic3/domtool.cpp b/python/pyqt/pyuic3/domtool.cpp deleted file mode 100644 index d083aaae..00000000 --- a/python/pyqt/pyuic3/domtool.cpp +++ /dev/null @@ -1,447 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#include "domtool.h" - -#include -#include -#include -#include -#include -#include -#include -#include - -/*! - \class DomTool domtool.h - \brief Tools for the dom - - A collection of static functions used by Resource (part of the - designer) and Uic. - -*/ - -/*! - Returns the contents of property \a name of object \a e as - variant or the variant passed as \a defValue if the property does - not exist. - - \sa hasProperty() -*/ -TQVariant DomTool::readProperty( const TQDomElement& e, const TQString& name, const TQVariant& defValue, TQString& comment ) -{ - TQDomElement n; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "property" ) { - if ( n.attribute( "name" ) != name ) - continue; - return elementToVariant( n.firstChild().toElement(), defValue, comment ); - } - } - return defValue; -} - - -/*! - \overload - */ -TQVariant DomTool::readProperty( const TQDomElement& e, const TQString& name, const TQVariant& defValue ) -{ - TQString comment; - return readProperty( e, name, defValue, comment ); -} - -/*! - Returns wheter object \a e defines property \a name or not. - - \sa readProperty() - */ -bool DomTool::hasProperty( const TQDomElement& e, const TQString& name ) -{ - TQDomElement n; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "property" ) { - if ( n.attribute( "name" ) != name ) - continue; - return TRUE; - } - } - return FALSE; -} - -TQStringList DomTool::propertiesOfType( const TQDomElement& e, const TQString& type ) -{ - TQStringList result; - TQDomElement n; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "property" ) { - TQDomElement n2 = n.firstChild().toElement(); - if ( n2.tagName() == type ) - result += n.attribute( "name" ); - } - } - return result; -} - - -TQVariant DomTool::elementToVariant( const TQDomElement& e, const TQVariant& defValue ) -{ - TQString dummy; - return elementToVariant( e, defValue, dummy ); -} - -/*! - Interprets element \a e as variant and returns the result of the interpretation. - */ -TQVariant DomTool::elementToVariant( const TQDomElement& e, const TQVariant& defValue, TQString &comment ) -{ - TQVariant v; - if ( e.tagName() == "rect" ) { - TQDomElement n3 = e.firstChild().toElement(); - int x = 0, y = 0, w = 0, h = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "x" ) - x = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "y" ) - y = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "width" ) - w = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "height" ) - h = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = TQVariant( TQRect( x, y, w, h ) ); - } else if ( e.tagName() == "point" ) { - TQDomElement n3 = e.firstChild().toElement(); - int x = 0, y = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "x" ) - x = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "y" ) - y = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = TQVariant( TQPoint( x, y ) ); - } else if ( e.tagName() == "size" ) { - TQDomElement n3 = e.firstChild().toElement(); - int w = 0, h = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "width" ) - w = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "height" ) - h = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = TQVariant( TQSize( w, h ) ); - } else if ( e.tagName() == "color" ) { - v = TQVariant( readColor( e ) ); - } else if ( e.tagName() == "font" ) { - TQDomElement n3 = e.firstChild().toElement(); - TQFont f( defValue.toFont() ); - while ( !n3.isNull() ) { - if ( n3.tagName() == "family" ) - f.setFamily( n3.firstChild().toText().data() ); - else if ( n3.tagName() == "pointsize" ) - f.setPointSize( n3.firstChild().toText().data().toInt() ); - else if ( n3.tagName() == "bold" ) - f.setBold( n3.firstChild().toText().data().toInt() ); - else if ( n3.tagName() == "italic" ) - f.setItalic( n3.firstChild().toText().data().toInt() ); - else if ( n3.tagName() == "underline" ) - f.setUnderline( n3.firstChild().toText().data().toInt() ); - else if ( n3.tagName() == "strikeout" ) - f.setStrikeOut( n3.firstChild().toText().data().toInt() ); - n3 = n3.nextSibling().toElement(); - } - v = TQVariant( f ); - } else if ( e.tagName() == "string" ) { - v = TQVariant( e.firstChild().toText().data() ); - TQDomElement n = e; - n = n.nextSibling().toElement(); - if ( n.tagName() == "comment" ) - comment = n.firstChild().toText().data(); - } else if ( e.tagName() == "cstring" ) { - v = TQVariant( TQCString( e.firstChild().toText().data() ) ); - } else if ( e.tagName() == "number" ) { - bool ok = TRUE; - v = TQVariant( e.firstChild().toText().data().toInt( &ok ) ); - if ( !ok ) - v = TQVariant( e.firstChild().toText().data().toDouble() ); - } else if ( e.tagName() == "bool" ) { - TQString t = e.firstChild().toText().data(); - v = TQVariant( t == "true" || t == "1", 0 ); - } else if ( e.tagName() == "pixmap" ) { - v = TQVariant( e.firstChild().toText().data() ); - } else if ( e.tagName() == "iconset" ) { - v = TQVariant( e.firstChild().toText().data() ); - } else if ( e.tagName() == "image" ) { - v = TQVariant( e.firstChild().toText().data() ); - } else if ( e.tagName() == "enum" ) { - v = TQVariant( e.firstChild().toText().data() ); - } else if ( e.tagName() == "set" ) { - v = TQVariant( e.firstChild().toText().data() ); - } else if ( e.tagName() == "sizepolicy" ) { - TQDomElement n3 = e.firstChild().toElement(); - TQSizePolicy sp; - while ( !n3.isNull() ) { - if ( n3.tagName() == "hsizetype" ) - sp.setHorData( (TQSizePolicy::SizeType)n3.firstChild().toText().data().toInt() ); - else if ( n3.tagName() == "vsizetype" ) - sp.setVerData( (TQSizePolicy::SizeType)n3.firstChild().toText().data().toInt() ); - else if ( n3.tagName() == "horstretch" ) - sp.setHorStretch( n3.firstChild().toText().data().toInt() ); - else if ( n3.tagName() == "verstretch" ) - sp.setVerStretch( n3.firstChild().toText().data().toInt() ); - n3 = n3.nextSibling().toElement(); - } - v = TQVariant( sp ); - } else if ( e.tagName() == "cursor" ) { - v = TQVariant( TQCursor( e.firstChild().toText().data().toInt() ) ); - } else if ( e.tagName() == "stringlist" ) { - TQStringList lst; - TQDomElement n; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) - lst << n.firstChild().toText().data(); - v = TQVariant( lst ); - } else if ( e.tagName() == "date" ) { - TQDomElement n3 = e.firstChild().toElement(); - int y, m, d; - y = m = d = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "year" ) - y = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "month" ) - m = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "day" ) - d = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = TQVariant( TQDate( y, m, d ) ); - } else if ( e.tagName() == "time" ) { - TQDomElement n3 = e.firstChild().toElement(); - int h, m, s; - h = m = s = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "hour" ) - h = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "minute" ) - m = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "second" ) - s = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = TQVariant( TQTime( h, m, s ) ); - } else if ( e.tagName() == "datetime" ) { - TQDomElement n3 = e.firstChild().toElement(); - int h, mi, s, y, mo, d ; - h = mi = s = y = mo = d = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "hour" ) - h = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "minute" ) - mi = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "second" ) - s = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "year" ) - y = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "month" ) - mo = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "day" ) - d = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = TQVariant( TQDateTime( TQDate( y, mo, d ), TQTime( h, mi, s ) ) ); - } - return v; -} - - -/*! Returns the color which is returned in the dom element \a e. - */ - -TQColor DomTool::readColor( const TQDomElement &e ) -{ - TQDomElement n = e.firstChild().toElement(); - int r= 0, g = 0, b = 0; - while ( !n.isNull() ) { - if ( n.tagName() == "red" ) - r = n.firstChild().toText().data().toInt(); - else if ( n.tagName() == "green" ) - g = n.firstChild().toText().data().toInt(); - else if ( n.tagName() == "blue" ) - b = n.firstChild().toText().data().toInt(); - n = n.nextSibling().toElement(); - } - - return TQColor( r, g, b ); -} - -/*! - Returns the contents of attribute \a name of object \a e as - variant or the variant passed as \a defValue if the attribute does - not exist. - - \sa hasAttribute() - */ -TQVariant DomTool::readAttribute( const TQDomElement& e, const TQString& name, const TQVariant& defValue, TQString& comment ) -{ - TQDomElement n; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "attribute" ) { - if ( n.attribute( "name" ) != name ) - continue; - return elementToVariant( n.firstChild().toElement(), defValue, comment ); - } - } - return defValue; -} - -/*! - \overload -*/ -TQVariant DomTool::readAttribute( const TQDomElement& e, const TQString& name, const TQVariant& defValue ) -{ - TQString comment; - return readAttribute( e, name, defValue, comment ); -} - -/*! - Returns wheter object \a e defines attribute \a name or not. - - \sa readAttribute() - */ -bool DomTool::hasAttribute( const TQDomElement& e, const TQString& name ) -{ - TQDomElement n; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "attribute" ) { - if ( n.attribute( "name" ) != name ) - continue; - return TRUE; - } - } - return FALSE; -} - -static bool toBool( const TQString& s ) -{ - return s == "true" || s.toInt() != 0; -} - -/*! - Convert Qt 2.x format to Qt 3.0 format if necessary -*/ -void DomTool::fixDocument( TQDomDocument& doc ) -{ - TQDomElement e; - TQDomNode n; - TQDomNodeList nl; - int i = 0; - - e = doc.firstChild().toElement(); - if ( e.tagName() != "UI" ) - return; - - // latest version, don't do anything - if ( e.hasAttribute("version") && e.attribute("version").toDouble() > 3.0 ) - return; - - nl = doc.elementsByTagName( "property" ); - - // in 3.0, we need to fix a spelling error - if ( e.hasAttribute("version") && e.attribute("version").toDouble() == 3.0 ) { - for ( i = 0; i < (int) nl.length(); i++ ) { - TQDomElement el = nl.item(i).toElement(); - TQString s = el.attribute( "name" ); - if ( s == "resizeable" ) { - el.removeAttribute( "name" ); - el.setAttribute( "name", "resizable" ); - } - } - return; - } - - - // in versions smaller than 3.0 we need to change more - e.setAttribute( "version", 3.0 ); - - e.setAttribute("stdsetdef", 1 ); - for ( i = 0; i < (int) nl.length(); i++ ) { - e = nl.item(i).toElement(); - TQString name; - TQDomElement n2 = e.firstChild().toElement(); - if ( n2.tagName() == "name" ) { - name = n2.firstChild().toText().data(); - if ( name == "resizeable" ) - e.setAttribute( "name", "resizable" ); - else - e.setAttribute( "name", name ); - e.removeChild( n2 ); - } - bool stdset = toBool( e.attribute( "stdset" ) ); - if ( stdset || name == "toolTip" || name == "whatsThis" || - name == "buddy" || - e.parentNode().toElement().tagName() == "item" || - e.parentNode().toElement().tagName() == "spacer" || - e.parentNode().toElement().tagName() == "column" - ) - e.removeAttribute( "stdset" ); - else - e.setAttribute( "stdset", 0 ); - } - - nl = doc.elementsByTagName( "attribute" ); - for ( i = 0; i < (int) nl.length(); i++ ) { - e = nl.item(i).toElement(); - TQString name; - TQDomElement n2 = e.firstChild().toElement(); - if ( n2.tagName() == "name" ) { - name = n2.firstChild().toText().data(); - e.setAttribute( "name", name ); - e.removeChild( n2 ); - } - } - - nl = doc.elementsByTagName( "image" ); - for ( i = 0; i < (int) nl.length(); i++ ) { - e = nl.item(i).toElement(); - TQString name; - TQDomElement n2 = e.firstChild().toElement(); - if ( n2.tagName() == "name" ) { - name = n2.firstChild().toText().data(); - e.setAttribute( "name", name ); - e.removeChild( n2 ); - } - } - - nl = doc.elementsByTagName( "widget" ); - for ( i = 0; i < (int) nl.length(); i++ ) { - e = nl.item(i).toElement(); - TQString name; - TQDomElement n2 = e.firstChild().toElement(); - if ( n2.tagName() == "class" ) { - name = n2.firstChild().toText().data(); - e.setAttribute( "class", name ); - e.removeChild( n2 ); - } - } - -} - diff --git a/python/pyqt/pyuic3/domtool.h b/python/pyqt/pyuic3/domtool.h deleted file mode 100644 index d88e32eb..00000000 --- a/python/pyqt/pyuic3/domtool.h +++ /dev/null @@ -1,47 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#ifndef DOMTOOL_H -#define DOMTOOL_H - -#include -#include - -class TQDomElement; -class TQDomDocument; - -class DomTool : public Qt -{ -public: - static TQVariant readProperty( const TQDomElement& e, const TQString& name, const TQVariant& defValue ); - static TQVariant readProperty( const TQDomElement& e, const TQString& name, const TQVariant& defValue, TQString& comment ); - static bool hasProperty( const TQDomElement& e, const TQString& name ); - static TQStringList propertiesOfType( const TQDomElement& e, const TQString& type ); - static TQVariant elementToVariant( const TQDomElement& e, const TQVariant& defValue ); - static TQVariant elementToVariant( const TQDomElement& e, const TQVariant& defValue, TQString &comment ); - static TQVariant readAttribute( const TQDomElement& e, const TQString& name, const TQVariant& defValue ); - static TQVariant readAttribute( const TQDomElement& e, const TQString& name, const TQVariant& defValue, TQString& comment ); - static bool hasAttribute( const TQDomElement& e, const TQString& name ); - static TQColor readColor( const TQDomElement &e ); - static void fixDocument( TQDomDocument& ); -}; - - -#endif // DOMTOOL_H diff --git a/python/pyqt/pyuic3/embed.cpp b/python/pyqt/pyuic3/embed.cpp deleted file mode 100644 index da1c1d5c..00000000 --- a/python/pyqt/pyuic3/embed.cpp +++ /dev/null @@ -1,323 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** Copyright (c) 2001 Phil Thompson -** Copyright (c) 2002 Riverbank Computing Limited -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#include "uic.h" -#include -#include -#include -#include -#include -#include -#include - -// on embedded, we do not compress image data. Rationale: by mapping -// the ready-only data directly into memory we are both faster and -// more memory efficient -#if (QT_VERSION < 0x030100 || defined(Q_WS_QWS)) && !defined(QT_NO_IMAGE_COLLECTION_COMPRESSION) -#define QT_NO_IMAGE_COLLECTION_COMPRESSION -#endif - -struct EmbedImage -{ - ~EmbedImage() { delete[] colorTable; } - int width, height, depth; - int numColors; - QRgb* colorTable; - TQString name; - TQString cname; - bool alpha; -#ifndef QT_NO_IMAGE_COLLECTION_COMPRESSION - ulong compressed; -#endif -}; - -static TQString convertToCIdentifier( const char *s ) -{ - TQString r = s; - int len = r.length(); - if ( len > 0 && !isalpha( (char)r[0].latin1() ) ) - r[0] = '_'; - for ( int i=1; i> 4) & 15]; - s += hexdigits[v & 15]; - if ( i == len-1 ) - s += "\"\n"; - } - if ( s.length() ) - out << (const char*)s; - return (ulong)len; -} - -static void embedData( TQTextStream& out, const QRgb* input, int n ) -{ - out << hex; - const QRgb *v = input; - for ( int i=0; i list_image; - list_image.setAutoDelete( TRUE ); - int image_count = 0; - for ( it = images.begin(); it != images.end(); ++it ) { - TQImage img; - if ( !img.load( *it ) ) { - fprintf( stderr, "pyuic: cannot load image file %s\n", (*it).latin1() ); - continue; - } - EmbedImage *e = new EmbedImage; - e->width = img.width(); - e->height = img.height(); - e->depth = img.depth(); - e->numColors = img.numColors(); - e->colorTable = new QRgb[e->numColors]; - e->alpha = img.hasAlphaBuffer(); - memcpy(e->colorTable, img.colorTable(), e->numColors*sizeof(QRgb)); - TQFileInfo fi( *it ); - e->name = fi.fileName(); - e->cname = TQString("image_%1").arg( image_count++); - list_image.append( e ); - out << "# " << *it << "\n"; - TQString s; - if ( e->depth == 1 ) - img = img.convertBitOrder(TQImage::BigEndian); - out << s.sprintf( "%s_data =", - (const char *)e->cname ); -#ifndef QT_NO_IMAGE_COLLECTION_COMPRESSION - e->compressed = -#endif - embedData( out, img.bits(), img.numBytes() ); - out << "\n"; - if ( e->numColors ) { - out << s.sprintf( "%s_ctable = [", - (const char *)e->cname ); - embedData( out, e->colorTable, e->numColors ); - out << "\n]\n\n"; - } - } - - if ( !list_image.isEmpty() ) { - out << indent << "embed_image_vec = [\n"; - ++indent; - EmbedImage *e = list_image.first(); - while ( e ) { - out << indent << "[" - << e->width << "," - << e->height << "," - << e->depth << "," - << e->cname << "_data," -#ifndef QT_NO_IMAGE_COLLECTION_COMPRESSION - << e->compressed << "," -#endif - << e->numColors << ","; - if ( e->numColors ) - out << e->cname << "_ctable,"; - else - out << "None,"; - if ( e->alpha ) - out << "1,"; - else - out << "0,"; - out << "\"" << e->name << "\"],\n"; - e = list_image.next(); - } - --indent; - out << indent << "]\n"; - - out << "\n" - "\n" - "def uic_findImage(name):\n"; - ++indent; - out << indent << "global embed_image_vec\n"; - out << "\n"; -#ifndef QT_NO_IMAGE_COLLECTION_COMPRESSION - out << indent << "for (w,h,depth,data,comp,nrCol,colTab,alpha,iname) in embed_image_vec:" << endl; -#else - out << indent << "for (w,h,depth,data,nrCol,colTab,alpha,iname) in embed_image_vec:" << endl; -#endif - ++indent; - out << indent << "if iname == str(name):" << endl; - ++indent; -#ifndef QT_NO_IMAGE_COLLECTION_COMPRESSION - // Keep the data object alive until we have a deep copy of the image. - out << indent << "data = qUncompress(data).data()\n"; -#endif - out << indent << "img = TQImage(data,w,h,depth,colTab,nrCol,TQImage.BigEndian).copy()\n"; - out << "\n"; - out << indent << "if alpha:\n"; - ++indent; - out << indent << "img.setAlphaBuffer(1)\n"; - --indent; - out << "\n"; - out << indent << "return img\n"; - --indent; - --indent; - out << endl; - out << indent << "return TQImage()\n"; - --indent; - out << "\n"; - out << "\n"; - - out << indent << "class MimeSourceFactory_" << cProject << "(TQMimeSourceFactory):\n"; - ++indent; - out << indent << "def __init__(self):\n"; - ++indent; - out << indent << "TQMimeSourceFactory.__init__(self)\n"; - out << "\n"; - --indent; - out << indent << "def data(self,abs_name):\n"; - ++indent; - out << indent << "d = TQMimeSourceFactory.data(self,abs_name)\n"; - out << indent << "if d or abs_name.isNull():\n"; - ++indent; - out << indent << "return d\n"; - --indent; - out << "\n"; - out << indent << "img = uic_findImage(abs_name)\n"; - out << indent << "if not img.isNull():\n"; - ++indent; - out << indent << "self.setImage(abs_name,img)\n"; - --indent; - out << "\n"; - out << indent << "return TQMimeSourceFactory.data(self,abs_name)\n"; - --indent; - --indent; - out << "\n"; - out << "\n"; - - out << indent << "factory = None\n"; - out << "\n"; - - out << indent << "def qInitImages_" << cProject << "():\n"; - ++indent; - out << indent << "global factory\n"; - out << "\n"; - out << indent << "if factory is None:\n"; - ++indent; - out << indent << "factory = MimeSourceFactory_" << cProject << "()\n"; - out << indent << "TQMimeSourceFactory.defaultFactory().addFactory(factory)\n"; - --indent; - --indent; - out << "\n"; - out << "\n"; - - out << indent << "def qCleanupImages_" << cProject << "():\n"; - ++indent; - out << indent << "global factory\n"; - out << "\n"; - out << indent << "if factory is not None:\n"; - ++indent; - out << indent << "TQMimeSourceFactory.defaultFactory().removeFactory(factory)\n"; - out << indent << "factory = None\n"; - --indent; - --indent; - out << "\n"; - out << "\n"; - - out << indent << "class StaticInitImages_" << cProject << ":\n"; - ++indent; - out << indent << "def __init__(self):\n"; - ++indent; - out << indent << "self.cleanup = qCleanupImages_" << cProject << "\n"; - out << indent << "qInitImages_" << cProject << "()\n"; - --indent; - out << "\n"; - out << indent << "def __del__(self):\n"; - ++indent; - out << indent << "self.cleanup()\n"; - --indent; - --indent; - out << "\n"; - out << "\n"; - - out << "staticImages = StaticInitImages_" << cProject << "()\n"; - } -} diff --git a/python/pyqt/pyuic3/form.cpp b/python/pyqt/pyuic3/form.cpp deleted file mode 100644 index ca68db39..00000000 --- a/python/pyqt/pyuic3/form.cpp +++ /dev/null @@ -1,938 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#include -#include "uic.h" -#include "parser.h" -#include "widgetdatabase.h" -#include "domtool.h" -#include -#include -#include -#include -#define NO_STATIC_COLORS -#include - -#if QT_VERSION < 0x030100 -#include -#endif - -static TQByteArray unzipXPM( TQString data, ulong& length ) -{ -#if QT_VERSION >= 0x030100 - const int lengthOffset = 4; - int baSize = data.length() / 2 + lengthOffset; - uchar *ba = new uchar[ baSize ]; - for ( int i = lengthOffset; i < baSize; ++i ) { - char h = data[ 2 * (i-lengthOffset) ].latin1(); - char l = data[ 2 * (i-lengthOffset) + 1 ].latin1(); - uchar r = 0; - if ( h <= '9' ) - r += h - '0'; - else - r += h - 'a' + 10; - r = r << 4; - if ( l <= '9' ) - r += l - '0'; - else - r += l - 'a' + 10; - ba[ i ] = r; - } - // qUncompress() expects the first 4 bytes to be the expected length of the - // uncompressed data - ba[0] = ( length & 0xff000000 ) >> 24; - ba[1] = ( length & 0x00ff0000 ) >> 16; - ba[2] = ( length & 0x0000ff00 ) >> 8; - ba[3] = ( length & 0x000000ff ); - TQByteArray baunzip = qUncompress( ba, baSize ); - delete[] ba; - return baunzip; -#else - uchar *ba = new uchar[ data.length() / 2 ]; - for ( int i = 0; i < (int)data.length() / 2; ++i ) { - char h = data[ 2 * i ].latin1(); - char l = data[ 2 * i + 1 ].latin1(); - uchar r = 0; - if ( h <= '9' ) - r += h - '0'; - else - r += h - 'a' + 10; - r = r << 4; - if ( l <= '9' ) - r += l - '0'; - else - r += l - 'a' + 10; - ba[ i ] = r; - } - // I'm not sure this makes sense. Why couldn't the compressed data be - // less than 20% of the original data? Maybe it's enough to trust the - // `length' passed as an argument. Quoting the zlib header: - // Upon entry, destLen is the total size of the destination - // buffer, which must be large enough to hold the entire - // uncompressed data. (The size of the uncompressed data must - // have been saved previously by the compressor and transmitted - // to the decompressor by some mechanism outside the scope of - // this compression library.) - // Which is the role of `length'. On the other hand this could prevent - // crashes in some cases of slightly corrupt UIC files. - if ( length < data.length() * 5 ) - length = data.length() * 5; - TQByteArray baunzip( length ); - ::uncompress( (uchar*) baunzip.data(), &length, ba, data.length()/2 ); - delete[] ba; - return baunzip; -#endif -} - - - -/*! - Creates an implementation ( cpp-file ) for the form given in \a e - - \sa createFormDecl(), createObjectImpl() - */ -void Uic::createFormImpl( const TQDomElement &e ) -{ - TQDomElement n; - TQDomNodeList nl; - int i; - TQString objClass = getClassName( e ); - if ( objClass.isEmpty() ) - return; - TQString objName = getObjectName( e ); - - // generate local and local includes required - TQStringList globalIncludes; - TQStringList::Iterator it; - TQStringList sqlClasses; - TQStringList axwidgets, databrowsers; - - TQMap customWidgetIncludes; - TQMap functionImpls; - // find additional slots and functions - TQStringList extraSlots; - TQStringList extraSlotTypes; - nl = e.parentNode().toElement().elementsByTagName( "slot" ); - for ( i = 0; i < (int) nl.length(); i++ ) { - n = nl.item(i).toElement(); - if ( n.parentNode().toElement().tagName() != "slots" - && n.parentNode().toElement().tagName() != "connections" ) - continue; - if ( n.attribute( "language", "C++" ) != "C++" ) - continue; - TQString slotName = n.firstChild().toText().data().stripWhiteSpace(); - if ( slotName.endsWith( ";" ) ) - slotName = slotName.left( slotName.length() - 1 ); - - extraSlots += Parser::cleanArgs(slotName); - extraSlotTypes += n.attribute( "returnType", "void" ); - } - - for ( n = e; !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "functions" ) { // compatibility - for ( TQDomElement n2 = n.firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) { - if ( n2.tagName() == "function" ) { - TQString fname = n2.attribute( "name" ); - fname = Parser::cleanArgs( fname ); - functionImpls.insert( fname, n2.firstChild().toText().data() ); - } - } - } - } - - // additional includes (local or global ) and forward declaractions - nl = e.parentNode().toElement().elementsByTagName( "include" ); - for ( i = 0; i < (int) nl.length(); i++ ) { - TQDomElement n2 = nl.item(i).toElement(); - - TQString s = n2.firstChild().toText().data(); - if ( n2.attribute( "location" ) != "local" ) { - if ( s.right( 5 ) == ".ui.h" && !TQFile::exists( s ) ) - continue; - if ( n2.attribute( "impldecl", "in implementation" ) != "in implementation" ) - continue; - globalIncludes += s; - } - } - - // do the local includes afterwards, since global includes have priority on clashes - TQFileInfo fi(fileName); - - for ( i = 0; i < (int) nl.length(); i++ ) { - TQDomElement n2 = nl.item(i).toElement(); - TQString s = n2.firstChild().toText().data(); - if ( n2.attribute( "location" ) == "local" &&!globalIncludes.contains( s ) ) { - if ( s.right( 5 ) != ".ui.h" ) - continue; - - if ( !TQFile::exists( s ) ) - { - s = fi.dirPath() + "/" + s; - - if ( !TQFile::exists( s ) ) - continue; - } - - if ( TQFile::exists( s ) ) - { - TQFile f(s); - f.open(IO_ReadOnly); - TQTextStream headerStream(&f); - TQString line; - TQString functionText; - TQString functionName; - TQRegExp rx("void .*::(.*\\(.*\\))"); - int pos, inFunction = 0; - - while (line = headerStream.readLine()) - { - pos = rx.search(line); - - if (pos > -1) - { - if (inFunction) - functionImpls.insert(Parser::cleanArgs(functionName),functionText); - - functionName = rx.cap(1); - functionText = ""; - inFunction = 1; - } - functionText += line + "\n"; - } - - if (inFunction) - functionImpls.insert(Parser::cleanArgs(functionName),functionText); - } - } - } - - // additional custom widget headers - nl = e.parentNode().toElement().elementsByTagName( "header" ); - for ( i = 0; i < (int) nl.length(); i++ ) { - TQDomElement n2 = nl.item(i).toElement(); - TQString s = n2.firstChild().toText().data(); - if ( n2.attribute( "location" ) != "local" ) - globalIncludes += s; - } - - // includes for child widgets - for ( it = tags.begin(); it != tags.end(); ++it ) { - nl = e.parentNode().toElement().elementsByTagName( *it ); - for ( i = 1; i < (int) nl.length(); i++ ) { // start at 1, 0 is the toplevel widget - TQString name = getClassName( nl.item(i).toElement() ); - if ( name == "Spacer" ) { - globalIncludes += "tqlayout.h"; - globalIncludes += "tqapplication.h"; - continue; - } - if ( name.mid( 1 ) == "ListView" ) - globalIncludes += "tqheader.h"; - else if ( name == "QAxWidget" ) - axwidgets += getObjectName(nl.item(i).toElement()); - else if ( name == "TQDataBrowser" ) - databrowsers += getObjectName(nl.item(i).toElement()); - if ( name != objClass ) { - int wid = WidgetDatabase::idFromClassName( name ); - TQMap::Iterator it = customWidgetIncludes.find( name ); - if ( it == customWidgetIncludes.end() ) - globalIncludes += WidgetDatabase::includeFile( wid ); - } - } - } - - if (globalIncludes.findIndex("tqtable.h") >= 0) - out << indent << "from qttable import TQTable" << endl; - - if (!axwidgets.empty()) - out << indent << "from qtaxcontainer import QAxWidget" << endl; - - if (globalIncludes.findIndex("qextscintilla.h") >= 0) - out << indent << "from qtext import QextScintilla" << endl; - - registerDatabases( e ); - dbConnections = unique( dbConnections ); - if ( dbConnections.count() ) - sqlClasses += "TQSqlDatabase"; - if ( dbCursors.count() ) - sqlClasses += "TQSqlCursor"; - bool dbForm = FALSE; - if ( dbForms[ "(default)" ].count() ) - dbForm = TRUE; - bool subDbForms = FALSE; - for ( it = dbConnections.begin(); it != dbConnections.end(); ++it ) { - if ( !(*it).isEmpty() && (*it) != "(default)" ) { - if ( dbForms[ (*it) ].count() ) { - subDbForms = TRUE; - break; - } - } - } - if ( dbForm || subDbForms ) { - sqlClasses += "TQSqlForm"; - sqlClasses += "TQSqlRecord"; - } - - if (globalIncludes.findIndex("tqdatatable.h") >= 0) - sqlClasses += "TQDataTable"; - - if (globalIncludes.findIndex("qtableview.h") >= 0) - sqlClasses += "QTableView"; - - if (globalIncludes.findIndex("tqdatabrowser.h") >= 0) - sqlClasses += "TQDataBrowser"; - - if (globalIncludes.findIndex("tqdataview.h") >= 0) - sqlClasses += "TQDataView"; - - if ( !sqlClasses.empty() ) { - out << indent << "from qtsql import"; - const char *sep = " "; - - for ( it = sqlClasses.begin(); it != sqlClasses.end(); ++it ) { - out << sep << (*it); - sep = ", "; - } - - out << endl; - } - - // Add any code from the comments. - if (!pyCode.isEmpty()) - out << pyCode; - - out << endl; - - // find out what images are required - TQStringList requiredImages; - static const char *imgTags[] = { "pixmap", "iconset", 0 }; - for ( i = 0; imgTags[i] != 0; i++ ) { - nl = e.parentNode().toElement().elementsByTagName( imgTags[i] ); - for ( int j = 0; j < (int) nl.length(); j++ ) { - TQDomNode nn = nl.item(j); - while ( nn.parentNode() != e.parentNode() ) - nn = nn.parentNode(); - if ( nn.nodeName() != "customwidgets" ) - requiredImages += nl.item(j).firstChild().toText().data(); - } - } - - // register the object and unify its name - objName = registerObject( objName ); - - TQStringList images; - TQStringList xpmImages; - if ( pixmapLoaderFunction.isEmpty() && !externPixmaps ) { - // create images - for ( n = e; !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "images" ) { - nl = n.elementsByTagName( "image" ); - for ( i = 0; i < (int) nl.length(); i++ ) { - TQString img = registerObject( nl.item(i).toElement().attribute( "name" ) ); - if ( !requiredImages.contains( img ) ) - continue; - TQDomElement tmp = nl.item(i).firstChild().toElement(); - if ( tmp.tagName() != "data" ) - continue; - TQString format = tmp.attribute("format", "PNG" ); - TQString data = tmp.firstChild().toText().data(); - if ( format == "XPM.GZ" ) { - xpmImages += img; - ulong length = tmp.attribute("length").toULong(); - TQByteArray baunzip = unzipXPM( data, length ); - length = baunzip.size(); - // shouldn't we test the initial `length' against the - // resulting `length' to catch corrupt UIC files? - int a = 0; - out << indent << img << "_data = [" << endl; - while ( baunzip[a] != '\"' ) - a++; - for ( ; a < (int) length; a++ ) - { - char ch; - - if ((ch = baunzip[a]) == '}') - { - out << endl << "]"; - break; - } - - out << ch; - } - out << endl; - } else { - images += img; - out << indent << img << "_data = \\" << endl; - ++indent; - out << indent << "\""; - int a ; - for ( a = 0; a < (int) (data.length()/2)-1; a++ ) { - out << "\\x" << TQString(data[2*a]) << TQString(data[2*a+1]); - if ( a % 12 == 11 ) - out << "\" \\" << endl << indent << "\""; - } - out << "\\x" << TQString(data[2*a]) << TQString(data[2*a+1]) << "\"" << endl; - --indent; - } - } - } - } - out << endl; - } else if ( externPixmaps ) { -#if QT_VERSION >= 0x030100 - pixmapLoaderFunction = "TQPixmap.fromMimeSource"; -#else - out << indent << "def uic_load_pixmap_" << objName << "(name):" << endl; - ++indent; - out << indent << "pix = TQPixmap()" << endl; - out << indent << "m = TQMimeSourceFactory.defaultFactory().data(name)" << endl; - out << endl; - out << indent << "if m:" << endl; - ++indent; - out << indent << "TQImageDrag.decode(m,pix)" << endl; - --indent; - out << endl; - out << indent << "return pix" << endl; - --indent; - out << endl; - out << endl; - pixmapLoaderFunction = "uic_load_pixmap_" + objName; -#endif - } - - - // constructor(s) - - out << indent << "class " << nameOfClass << "(" << objClass << "):" << endl; - ++indent; - - if ( objClass == "TQDialog" || objClass == "TQWizard" ) { - out << indent << "def __init__(self,parent = None,name = None,modal = 0,fl = 0):" << endl; - ++indent; - out << indent << objClass << ".__init__(self,parent,name,modal,fl)" << endl; - } else if ( objClass == "TQWidget" ) { - out << indent << "def __init__(self,parent = None,name = None,fl = 0):" << endl; - ++indent; - out << indent << objClass << ".__init__(self,parent,name,fl)" << endl; - } else if ( objClass == "TQMainWindow" ) { - out << indent << "def __init__(self,parent = None,name = None,fl = 0):" << endl; - ++indent; - out << indent << objClass << ".__init__(self,parent,name,fl)" << endl; - out << indent << "self.statusBar()" << endl; - isMainWindow = TRUE; - } else { - out << indent << "def __init__(self,parent = None,name = None):" << endl; - ++indent; - out << indent << objClass << ".__init__(self,parent,name)" << endl; - } - - out << endl; - - // create pixmaps for all images - if ( !images.isEmpty() ) { - TQStringList::Iterator it; - for ( it = images.begin(); it != images.end(); ++it ) { - out << indent << "self." << (*it) << " = TQPixmap()" << endl; - out << indent << "self." << (*it) << ".loadFromData(" << (*it) << "_data,\"PNG\")" << endl; - } - } - // create pixmaps for all images - if ( !xpmImages.isEmpty() ) { - for ( it = xpmImages.begin(); it != xpmImages.end(); ++it ) { - out << indent << "self." << (*it) << " = TQPixmap(" << (*it) << "_data)" << endl; - } - out << endl; - } - - - // set the properties - TQSize geometry( 0, 0 ); - - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "property" ) { - bool stdset = stdsetdef; - if ( n.hasAttribute( "stdset" ) ) - stdset = toBool( n.attribute( "stdset" ) ); - TQString prop = n.attribute("name"); - TQDomElement n2 = n.firstChild().toElement(); - TQString value = setObjectProperty( objClass, TQString::null, prop, n2, stdset ); - if ( value.isEmpty() ) - continue; - - if ( prop == "geometry" && n2.tagName() == "rect") { - TQDomElement n3 = n2.firstChild().toElement(); - while ( !n3.isNull() ) { - if ( n3.tagName() == "width" ) - geometry.setWidth( n3.firstChild().toText().data().toInt() ); - else if ( n3.tagName() == "height" ) - geometry.setHeight( n3.firstChild().toText().data().toInt() ); - n3 = n3.nextSibling().toElement(); - } - } else { - TQString call; - if ( stdset ) - call = "self." + mkStdSet( prop ) + "(" + value + ")"; - else - call = "self.setProperty(\"" + prop + "\",TQVariant(" + value + "))"; - - if ( n2.tagName() == "string" ) { - trout << trindent << call << endl; - } else if ( prop == "name" ) { - out << indent << "if not name:" << endl; - ++indent; - out << indent << call << endl; - --indent; - out << endl; - } else { - out << indent << call << endl; - } - } - } - } - - out << endl; - - // create all children, some forms have special requirements - - if ( objClass == "TQWizard" ) { - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( tags.contains( n.tagName() ) ) { - TQString page = createObjectImpl( n, objClass, "self" ); - TQString comment; - TQString label = DomTool::readAttribute( n, "title", "", comment ).toString(); - out << indent << "self.addPage(" << page << ",TQString(\"\"))" << endl; - trout << trindent << "self.setTitle(" << page << ","<< trcall( label, comment ) << ")" << endl; - TQVariant def( FALSE, 0 ); - if ( DomTool::hasAttribute( n, "backEnabled" ) ) - out << indent << "self.setBackEnabled(" << page << "," << mkBool( DomTool::readAttribute( n, "backEnabled", def).toBool() ) << ")" << endl; - if ( DomTool::hasAttribute( n, "nextEnabled" ) ) - out << indent << "self.setNextEnabled(" << page << "," << mkBool( DomTool::readAttribute( n, "nextEnabled", def).toBool() ) << ")" << endl; - if ( DomTool::hasAttribute( n, "finishEnabled" ) ) - out << indent << "self.setFinishEnabled(" << page << "," << mkBool( DomTool::readAttribute( n, "finishEnabled", def).toBool() ) << ")" << endl; - if ( DomTool::hasAttribute( n, "helpEnabled" ) ) - out << indent << "self.setHelpEnabled(" << page << "," << mkBool( DomTool::readAttribute( n, "helpEnabled", def).toBool() ) << ")" << endl; - if ( DomTool::hasAttribute( n, "finish" ) ) - out << indent << "self.setFinish( " << page << "," << mkBool( DomTool::readAttribute( n, "finish", def).toBool() ) << ")" << endl; - } - } - } else { // standard widgets - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( tags.contains( n.tagName() ) ) - createObjectImpl( n, objName, "self" ); - } - } - - // database support - dbConnections = unique( dbConnections ); - if ( dbConnections.count() ) - out << endl; - for ( it = dbConnections.begin(); it != dbConnections.end(); ++it ) { - if ( !(*it).isEmpty() && (*it) != "(default)") { - out << indent << "self." << (*it) << "Connection = TQSqlDatabase.database(\"" <<(*it) << "\")" << endl; - } - } - - nl = e.parentNode().toElement().elementsByTagName( "widget" ); - for ( i = 1; i < (int) nl.length(); i++ ) { // start at 1, 0 is the toplevel widget - n = nl.item(i).toElement(); - TQString s = getClassName( n ); - if ( (dbForm || subDbForms) && (s == "TQDataBrowser" || s == "TQDataView") ) { - TQString objName = getObjectName( n ); - TQString tab = getDatabaseInfo( n, "table" ); - TQString con = getDatabaseInfo( n, "connection" ); - out << indent << objName << "Form = TQSqlForm(self,\"" << objName << "Form\")" << endl; - TQDomElement n2; - for ( n2 = n.firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) - createFormImpl( n2, objName, con, tab ); - out << indent << "self." << objName << ".setForm(" << objName << "Form)" << endl; - } - } - - // actions, toolbars, menubar - bool needEndl = FALSE; - for ( n = e; !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "actions" ) { - if ( !needEndl ) - out << endl; - createActionImpl( n.firstChild().toElement(), "self" ); - needEndl = TRUE; - } - } - if ( needEndl ) - out << endl; - needEndl = FALSE; - for ( n = e; !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "toolbars" ) { - if ( !needEndl ) - out << endl; - createToolbarImpl( n, objClass, objName ); - needEndl = TRUE; - } - } - if ( needEndl ) - out << endl; - needEndl = FALSE; - for ( n = e; !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "menubar" ) { - if ( !needEndl ) - out << endl; - createMenuBarImpl( n, objClass, objName ); - needEndl = TRUE; - } - } - if ( needEndl ) - out << endl; - - out << endl; - out << indent << "self.languageChange()" << endl; - out << endl; - - // take minimumSizeHint() into account, for height-for-width widgets - if ( !geometry.isNull() ) { - out << indent << "self.resize(TQSize(" << geometry.width() << "," - << geometry.height() <<").expandedTo(self.minimumSizeHint()))" << endl; - out << indent << "self.clearWState(Qt.WState_Polished)" << endl; - } - - for ( n = e; !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "connections" ) { - // setup signals and slots connections - out << endl; - nl = n.elementsByTagName( "connection" ); - for ( i = 0; i < (int) nl.length(); i++ ) { - TQString sender, receiver, signal, slot; - for ( TQDomElement n2 = nl.item(i).firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) { - if ( n2.tagName() == "sender" ) - sender = n2.firstChild().toText().data(); - else if ( n2.tagName() == "receiver" ) - receiver = n2.firstChild().toText().data(); - else if ( n2.tagName() == "signal" ) - signal = n2.firstChild().toText().data(); - else if ( n2.tagName() == "slot" ) - slot = n2.firstChild().toText().data(); - } - if ( sender.isEmpty() || - receiver.isEmpty() || - signal.isEmpty() || - slot.isEmpty() ) - continue; - if ( sender[0] == '<' || - receiver[0] == '<' || - signal[0] == '<' || - slot[0] == '<' ) - continue; - - sender = registeredName( sender ); - receiver = registeredName( receiver ); - - // translate formwindow name to "self" - if ( sender == objName ) - sender = "self"; - else - sender = "self." + sender; - - bool isaxwidget = (axwidgets.findIndex(receiver) >= 0); - bool isdatabrowser = (databrowsers.findIndex(receiver) >= 0); - - if ( receiver == objName ) - receiver = "self"; - else - receiver = "self." + receiver; - - out << indent << "self.connect(" << sender - << ",TQT_SIGNAL(\"" << signal << "\")," << receiver; - - // Normally we never use the TQT_SLOT() macro in case the - // connection is to a method of a Python custom widget. The - // exception is if the receiver is a QAxWidget where it must be - // used because the slots are dynamic. - if (isaxwidget) - out << ",TQT_SLOT(\"" << slot << "\")"; - else - { - TQString mname = slot.left(slot.find('(')); - - // Rename slots that have different names in PyQt. - if (isdatabrowser && mname == "del") - mname = "delOnCursor"; - - out << "." << mname; - } - - out << ")" << endl; - } - } else if ( n.tagName() == "tabstops" ) { - // setup tab order - out << endl; - TQString lastName; - TQDomElement n2 = n.firstChild().toElement(); - while ( !n2.isNull() ) { - if ( n2.tagName() == "tabstop" ) { - TQString name = n2.firstChild().toText().data(); - name = registeredName( name ); - if ( !lastName.isEmpty() ) - out << indent << "self.setTabOrder(self." << lastName << ",self." << name << ")" << endl; - lastName = name; - } - n2 = n2.nextSibling().toElement(); - } - } - } - - // buddies - bool firstBuddy = TRUE; - for ( TQValueList::Iterator buddy = buddies.begin(); buddy != buddies.end(); ++buddy ) { - if ( isObjectRegistered( (*buddy).buddy ) ) { - if ( firstBuddy ) { - out << endl; - } - out << indent << "self." << (*buddy).key << ".setBuddy(self." << registeredName( (*buddy).buddy ) << ")" << endl; - firstBuddy = FALSE; - } - - } - - if ( extraSlots.find( "init()" ) != extraSlots.end() ) - out << endl << indent << "self.init()" << endl; - - // end of constructor - --indent; - - // destructor - if ( extraSlots.find( "destroy()" ) != extraSlots.end() ) { - out << endl; - out << indent << "def __del__(self):" << endl; - ++indent; - out << indent << "self.destroy()" << endl; - --indent; - } - - // handle application events if required - bool needFontEventHandler = FALSE; - bool needSqlTableEventHandler = FALSE; - bool needSqlDataBrowserEventHandler = FALSE; - nl = e.elementsByTagName( "widget" ); - for ( i = 0; i < (int) nl.length(); i++ ) { - if ( !DomTool::propertiesOfType( nl.item(i).toElement() , "font" ).isEmpty() ) - needFontEventHandler = TRUE; - TQString s = getClassName( nl.item(i).toElement() ); - if ( s == "TQDataTable" || s == "TQDataBrowser" ) { - if ( !isFrameworkCodeGenerated( nl.item(i).toElement() ) ) - continue; - if ( s == "TQDataTable" ) - needSqlTableEventHandler = TRUE; - if ( s == "TQDataBrowser" ) - needSqlDataBrowserEventHandler = TRUE; - } - if ( needFontEventHandler && needSqlTableEventHandler && needSqlDataBrowserEventHandler ) - break; - } - if ( needFontEventHandler && FALSE ) { - // indent = "\t"; // increase indentation for if-clause below - out << "/* " << endl; - out << " * Main event handler. Reimplemented to handle" << endl; - out << " * application font changes"; - out << " */" << endl; - out << "bool " << nameOfClass << "::event( TQEvent* ev )" << endl; - out << "{" << endl; - out << " bool ret = " << objClass << "::event( ev ); " << endl; - if ( needFontEventHandler ) { - ++indent; - out << " if ( ev->type() == TQEvent::ApplicationFontChange ) {" << endl; - for ( i = 0; i < (int) nl.length(); i++ ) { - n = nl.item(i).toElement(); - TQStringList list = DomTool::propertiesOfType( n, "font" ); - for ( it = list.begin(); it != list.end(); ++it ) - createExclusiveProperty( n, *it ); - } - out << " }" << endl; - --indent; - } - out << "}" << endl; - out << endl; - } - - if ( needSqlTableEventHandler || needSqlDataBrowserEventHandler ) { - out << endl; - out << indent << "# Widget polish. Reimplemented to handle default data" << endl; - if ( needSqlTableEventHandler ) - out << indent << "# table initialization." << endl; - if ( needSqlDataBrowserEventHandler ) - out << indent << "# browser initialization." << endl; - out << indent << "def polish(self):" << endl; - ++indent; - if ( needSqlTableEventHandler ) { - for ( i = 0; i < (int) nl.length(); i++ ) { - TQString s = getClassName( nl.item(i).toElement() ); - if ( s == "TQDataTable" ) { - n = nl.item(i).toElement(); - TQString c = getObjectName( n ); - TQString conn = getDatabaseInfo( n, "connection" ); - TQString tab = getDatabaseInfo( n, "table" ); - if ( !( conn.isEmpty() || tab.isEmpty() || !isFrameworkCodeGenerated( nl.item(i).toElement() ) ) ) { - out << indent << "if self." << c << ":" << endl; - ++indent; - out << indent << "cursor = self." << c << ".sqlCursor()" << endl; - out << endl; - out << indent << "if not cursor:" << endl; - ++indent; - if ( conn == "(default)" ) - out << indent << "cursor = TQSqlCursor(\"" << tab << "\")" << endl; - else - out << indent << "cursor = TQSqlCursor(\"" << tab << "\",1,self." << conn << "Connection)" << endl; - out << indent << "if self." << c << ".isReadOnly():" << endl; - ++indent; - out << indent << "cursor.setMode(TQSqlCursor.ReadOnly)" << endl; - --indent; - out << indent << "self." << c << ".setSqlCursor(cursor,0,1)" << endl; - --indent; - out << endl; - out << indent << "if not cursor.isActive():" << endl; - ++indent; - out << indent << "self." << c << ".refresh(TQDataTable.RefreshAll)" << endl; - --indent; - --indent; - } - } - } - } - if ( needSqlDataBrowserEventHandler ) { - nl = e.elementsByTagName( "widget" ); - for ( i = 0; i < (int) nl.length(); i++ ) { - TQString s = getClassName( nl.item(i).toElement() ); - if ( s == "TQDataBrowser" ) { - TQString obj = getObjectName( nl.item(i).toElement() ); - TQString tab = getDatabaseInfo( nl.item(i).toElement(), - "table" ); - TQString conn = getDatabaseInfo( nl.item(i).toElement(), - "connection" ); - if ( !(tab.isEmpty() || !isFrameworkCodeGenerated( nl.item(i).toElement() ) ) ) { - out << indent << "if self." << obj << ":" << endl; - ++indent; - out << indent << "if not self." << obj << ".sqlCursor():" << endl; - ++indent; - if ( conn == "(default)" ) - out << indent << "cursor = TQSqlCursor(\"" << tab << "\")" << endl; - else - out << indent << "cursor = TQSqlCursor(\"" << tab << "\",1,self." << conn << "Connection)" << endl; - out << indent << "self." << obj << ".setSqlCursor(cursor,1)" << endl; - out << indent << "self." << obj << ".refresh()" << endl; - out << indent << "self." << obj << ".first()" << endl; - --indent; - --indent; - } - } - } - } - out << indent << objClass << ".polish(self)" << endl; - --indent; - } - - out << endl; - out << endl; - out << indent << "def languageChange(self):" << endl; - uint old = indent.setIndent(0); - out << languageChangeBody << endl; - indent.setIndent(old); - - // create stubs for additional slots if necessary - if ( !extraSlots.isEmpty() && writeFunctImpl ) { - TQStringList::ConstIterator cit; - - for ( cit = extraSlots.begin(); cit != extraSlots.end(); ++cit ) { - pySlot(cit); - - bool createWarning = TRUE; - TQString fname = Parser::cleanArgs( *cit ); - TQMap::Iterator fit = functionImpls.find( fname ); - if ( fit != functionImpls.end() ) { - int begin = (*fit).find( "{" ); - TQString body = (*fit).mid( begin + 1, (*fit).findRev( "}" ) - begin - 1 ); - createWarning = body.simplifyWhiteSpace().isEmpty(); - if ( !createWarning ) - { - ++indent; - TQString formatted_body = body.replace(TQRegExp("\n"), TQString("\n") + TQString(indent)); - out << formatted_body << endl; - --indent; - } - } - if ( createWarning ) { - out << endl; - ++indent; - if ( *cit != "init()" && *cit != "destroy()" ) - out << indent << "print \"" << nameOfClass << "." << (*cit) << ": Not implemented yet\"" << endl; - else - out << indent << "pass" << endl; - --indent; - } - } - } - - --indent; -} - - -/*! Creates form support implementation code for the widgets given - in \a e. - - Traverses recursively over all children. - */ - -void Uic::createFormImpl( const TQDomElement& e, const TQString& form, const TQString& connection, const TQString& table ) -{ - if ( e.tagName() == "widget" && - e.attribute( "class" ) != "TQDataTable" ) { - TQString field = getDatabaseInfo( e, "field" ); - if ( !field.isEmpty() ) { - if ( isWidgetInTable( e, connection, table ) ) - out << indent << form << "Form.insert(self." << getObjectName( e ) << "," << fixString( field ) << ")" << endl; - } - } - TQDomElement n; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - createFormImpl( n, form, connection, table ); - } -} - - -// Generate a Python slot definition. - -void Uic::pySlot(TQStringList::ConstIterator &it) -{ - out << endl; - - int astart = (*it).find('('); - out << indent << "def " << (*it).left(astart) << "(self"; - - // We don't reproduce the argument names (if any) because we would have to - // remove the types - too complicated for the moment, so we just count them - // and give them names based on their position. - - TQString args = (*it).mid(astart + 1,(*it).find(')') - astart - 1).stripWhiteSpace(); - - if (!args.isEmpty()) { - int nrargs = args.contains(',') + 1; - - for (int i = 0; i < nrargs; ++i) - out << ",a" << i; - } - - out << "):"; -} diff --git a/python/pyqt/pyuic3/globaldefs.h b/python/pyqt/pyuic3/globaldefs.h deleted file mode 100644 index 87fafbef..00000000 --- a/python/pyqt/pyuic3/globaldefs.h +++ /dev/null @@ -1,56 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#ifndef GLOBALDEFS_H -#define GLOBALDEFS_H - -#include -#include - -#define BOXLAYOUT_DEFAULT_MARGIN 11 -#define BOXLAYOUT_DEFAULT_SPACING 6 - -#ifndef NO_STATIC_COLORS -static TQColor *backColor1 = 0; -static TQColor *backColor2 = 0; -static TQColor *selectedBack = 0; - -static void init_colors() -{ - if ( backColor1 ) - return; - -#if 0 // a calculated alternative for backColor1 - TQColorGroup myCg = qApp->palette().active(); - int h1, s1, v1; - int h2, s2, v2; - myCg.color( TQColorGroup::Base ).hsv( &h1, &s1, &v1 ); - myCg.color( TQColorGroup::Background ).hsv( &h2, &s2, &v2 ); - TQColor c( h1, s1, ( v1 + v2 ) / 2, TQColor::Hsv ); -#endif - - backColor1 = new TQColor( 250, 248, 235 ); - backColor2 = new TQColor( 255, 255, 255 ); - selectedBack = new TQColor( 230, 230, 230 ); -} - -#endif - -#endif diff --git a/python/pyqt/pyuic3/main.cpp b/python/pyqt/pyuic3/main.cpp deleted file mode 100644 index fa93b9e3..00000000 --- a/python/pyqt/pyuic3/main.cpp +++ /dev/null @@ -1,245 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** Copyright (c) 2001 Phil Thompson -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#include "uic.h" -#include "parser.h" -#include "widgetdatabase.h" -#include "domtool.h" -#include -#include -#include -#include -#define NO_STATIC_COLORS -#include -#include -#include -#include - -int main( int argc, char * argv[] ) -{ - PyIndent indent; - bool testCode = FALSE, execCode = FALSE; - bool subcl = FALSE; - bool imagecollection = FALSE; - TQStringList images; - const char *error = 0; - const char* fileName = 0; - TQCString outputFile; - const char* projectName = 0; - const char* trmacro = 0; - bool fix = FALSE; - TQApplication app(argc, argv, FALSE); - TQString className, uicClass; - - for ( int n = 1; n < argc && error == 0; n++ ) { - TQCString arg = argv[n]; - if ( arg[0] == '-' ) { // option - TQCString opt = &arg[1]; - if ( opt[0] == 'o' ) { // output redirection - if ( opt[1] == '\0' ) { - if ( !(n < argc-1) ) { - error = "Missing output-file name"; - break; - } - outputFile = argv[++n]; - } else - outputFile = &opt[1]; - } else if ( opt[0] == 'e' || opt == "embed" ) { - imagecollection = TRUE; - if ( opt == "embed" || opt[1] == '\0' ) { - if ( !(n < argc-1) ) { - error = "Missing name of project"; - break; - } - projectName = argv[++n]; - } else - projectName = &opt[1]; - } else if ( opt == "subimpl" ) { - subcl = TRUE; - if ( !(n < argc-1) ) { - error = "Missing class name"; - break; - } - className = argv[++n]; - } else if ( opt == "tr" ) { - if ( opt == "tr" || opt[1] == '\0' ) { - if ( !(n < argc-1) ) { - error = "Missing tr macro"; - break; - } - trmacro = argv[++n]; - } else { - trmacro = &opt[1]; - } - } else if ( opt == "version" ) { - fprintf( stderr, - "Python User Interface Compiler %s for Qt version %s\n", - PYQT_VERSION, QT_VERSION_STR ); - return 1; - } else if ( opt == "help" ) { - break; - } else if ( opt == "fix" ) { - fix = TRUE; - } else if ( opt[0] == 'p' ) { - uint tabstop; - bool ok; - - if ( opt[1] == '\0' ) { - if ( !(n < argc-1) ) { - error = "Missing Python indent"; - break; - } - tabstop = TQCString(argv[++n]).toUInt(&ok); - } else - tabstop = opt.mid(1).toUInt(&ok); - - if (ok) - indent.setTabStop(tabstop); - else - error = "Invalid Python indent"; - } else if ( opt == "test" ) { - testCode = TRUE; - } else if ( opt == "x" ) { - execCode = TRUE; - } else { - error = "Unrecognized option"; - } - } else { - if ( imagecollection ) - images << argv[n]; - else if ( fileName ) // can handle only one file - error = "Too many input files specified"; - else - fileName = argv[n]; - } - } - - if ( argc < 2 || error || (!fileName && !imagecollection ) ) { - fprintf( stderr, "PyQt user interface compiler.\n" ); - if ( error ) - fprintf( stderr, "pyuic: %s\n", error ); - - fprintf( stderr, "Usage: %s [options] [mode] \n" - "\nGenerate implementation:\n" - " %s [options] \n" - "Generate image collection:\n" - " %s [options] -embed ...\n" - "\t\tproject name\n" - "\t\timage files\n" - "Generate subclass implementation:\n" - " %s [options] -subimpl \n" - "\t\tname of the subclass to generate\n" - "Options:\n" - "\t-o file\t\tWrite output to file rather than stdout\n" - "\t-p indent\tSet the Python indent in spaces (0 to use a tab)\n" - "\t-tr func\tUse func() rather than TQApplication.translate() for i18n\n" - "\t-x\t\tGenerate extra code to test and display the class\n" - "\t-test\t\tGenerate extra code to test but not display the class\n" - "\t-version\tDisplay version of pyuic\n" - "\t-help\t\tDisplay this information\n" - , argv[0], argv[0], argv[0], argv[0]); - return 1; - } - - Uic::setIndent(indent); - - TQFile fileOut; - if ( !outputFile.isEmpty() ) { - fileOut.setName( outputFile ); - if (!fileOut.open( IO_WriteOnly ) ) - qFatal( "pyuic: Could not open output file '%s'", outputFile.data() ); - } else { - fileOut.open( IO_WriteOnly, stdout ); - } - TQTextStream out( &fileOut ); - - if ( imagecollection ) { - out.setEncoding( TQTextStream::Latin1 ); - out << "# -*- coding: latin-1 -*-\n\n"; - Uic::embed( out, projectName, images ); - return 0; - } - - - out.setEncoding( TQTextStream::UnicodeUTF8 ); - TQFile file( fileName ); - if ( !file.open( IO_ReadOnly ) ) - qFatal( "pyuic: Could not open file '%s' ", fileName ); - - TQDomDocument doc; - TQString errMsg; - int errLine; - if ( !doc.setContent( &file, &errMsg, &errLine ) ) - qFatal( TQString("pyuic: Failed to parse %s: ") + errMsg + TQString (" in line %d\n"), fileName, errLine ); - - TQDomElement e = doc.firstChild().toElement(); - if ( e.hasAttribute("version") && e.attribute("version").toDouble() > 3.3 ) { - qWarning( TQString("pyuic: File generated with too recent version of Qt Designer (%s vs. %s)"), - e.attribute("version").latin1(), QT_VERSION_STR ); - return 1; - } - - DomTool::fixDocument( doc ); - - if ( fix ) { - out << doc.toString(); - return 0; - } - - out << "# -*- coding: utf-8 -*-\n\n"; - - if ( !subcl ) { - out << "# Form implementation generated from reading ui file '" << fileName << "'" << endl; - out << "#" << endl; - out << "# Created: " << TQDateTime::currentDateTime().toString() << endl; - out << "# by: The PyQt User Interface Compiler (pyuic) " << PYQT_VERSION << endl; - out << "#" << endl; - out << "# WARNING! All changes made in this file will be lost!" << endl; - out << endl; - out << endl; - } - - if (testCode || execCode) - out << "import sys" << endl; - - out << "from qt import *" << endl; - - Uic( fileName, outputFile, out, doc, subcl, trmacro, className, uicClass ); - - if (testCode || execCode) { - out << endl; - out << indent << "if __name__ == \"__main__\":" << endl; - ++indent; - out << indent << "a = TQApplication(sys.argv)" << endl; - out << indent << "TQObject.connect(a,TQT_SIGNAL(\"lastWindowClosed()\"),a,TQT_SLOT(\"quit()\"))" << endl; - out << indent << "w = " << (subcl ? className : uicClass) << "()" << endl; - out << indent << "a.setMainWidget(w)" << endl; - - if (execCode) { - out << indent << "w.show()" << endl; - out << indent << "a.exec_loop()" << endl; - } - - --indent; - } - - return 0; -} diff --git a/python/pyqt/pyuic3/object.cpp b/python/pyqt/pyuic3/object.cpp deleted file mode 100644 index 335bce9b..00000000 --- a/python/pyqt/pyuic3/object.cpp +++ /dev/null @@ -1,704 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#include "uic.h" -#include "parser.h" -#include "domtool.h" -#include -#include -#include -#define NO_STATIC_COLORS -#include - - -/*! - Creates an implementation for the object given in \a e. - - Traverses recursively over all children. - - Returns the name of the generated child object. - */ - -static bool createdCentralWidget = FALSE; - -TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentClass, const TQString& par, const TQString& layout ) -{ - TQString parent( par ); - if ( parent == "self" && isMainWindow ) { - if ( !createdCentralWidget ) - out << indent << "self.setCentralWidget(TQWidget(self,\"qt_central_widget\"))" << endl; - createdCentralWidget = TRUE; - parent = "self.centralWidget()"; - } - TQDomElement n; - TQString objClass, objName, fullObjName; - int numItems = 0; - int numColumns = 0; - int numRows = 0; - - if ( layouts.contains( e.tagName() ) ) - return createLayoutImpl( e, parentClass, parent, layout ); - - objClass = getClassName( e ); - if ( objClass.isEmpty() ) - return objName; - objName = getObjectName( e ); - - TQString definedName = objName; - bool isTmpObject = objName.isEmpty() || objClass == "QLayoutWidget"; - if ( isTmpObject ) { - if ( objClass[0] == 'Q' ) - objName = objClass.mid(1); - else - objName = objClass.lower(); - } - - bool isLine = objClass == "Line"; - if ( isLine ) - objClass = "TQFrame"; - - out << endl; - if ( objClass == "QLayoutWidget" ) { - if ( layout.isEmpty() ) { - // register the object and unify its name - objName = registerObject( objName ); - out << indent << objName << " = TQWidget(" << parent << ",\"" << definedName << "\")" << endl; - } else { - // the layout widget is not necessary, hide it by creating its child in the parent - TQString result; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if (tags.contains( n.tagName() ) ) - result = createObjectImpl( n, parentClass, parent, layout ); - } - return result; - } - - // Layouts don't go into the class instance dictionary. - fullObjName = objName; - } else if ( objClass != "TQToolBar" && objClass != "TQMenuBar" ) { - // register the object and unify its name - objName = registerObject( objName ); - - // Temporary objects don't go into the class instance dictionary. - fullObjName = isTmpObject ? objName : "self." + objName; - - out << indent << fullObjName << " = " << createObjectInstance( objClass, parent, objName ) << endl; - } - else - fullObjName = "self." + objName; - - if ( objClass == "QAxWidget" ) { - TQString controlId; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "property" && n.attribute( "name" ) == "control" ) { - controlId = n.firstChild().toElement().text(); - } - } - out << indent << fullObjName << ".setControl(\"" << controlId << "\")" << endl; - } - - lastItem = "None"; - // set the properties and insert items - bool hadFrameShadow = FALSE; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "property" ) { - bool stdset = stdsetdef; - if ( n.hasAttribute( "stdset" ) ) - stdset = toBool( n.attribute( "stdset" ) ); - TQString prop = n.attribute( "name" ); - if ( prop == "database" ) - continue; - TQString value = setObjectProperty( objClass, objName, prop, n.firstChild().toElement(), stdset ); - if ( value.isEmpty() ) - continue; - if ( prop == "name" ) - continue; - if ( isLine && prop == "frameShadow" ) - hadFrameShadow = TRUE; - if ( prop == "buddy" && value.startsWith("\"") && value.endsWith("\"") ) { - buddies << Buddy( objName, value.mid(1, value.length() - 2 ) ); - continue; - } - if ( isLine && prop == "orientation" ) { - prop = "frameShape"; - if ( value.right(10) == "Horizontal" ) - value = "TQFrame.HLine"; - else - value = "TQFrame.VLine"; - if ( !hadFrameShadow ) { - prop = "frameStyle"; - value += " | TQFrame.Sunken"; - } - } - if ( prop == "buttonGroupId" ) { - if ( parentClass == "TQButtonGroup" ) - out << indent << parent << ".insert( " << fullObjName << "," << value << ")" << endl; - continue; - } - if ( prop == "frameworkCode" ) - continue; - if ( objClass == "TQMultiLineEdit" && - TQRegExp("echoMode|hMargin|maxLength|maxLines|undoEnabled").exactMatch(prop) ) - continue; - TQString call = fullObjName + "."; - TQString tail; - if ( stdset ) { - call += mkStdSet( prop ) + "("; - tail = ")"; - } else { - call += "setProperty(\"" + prop + "\",TQVariant("; - tail = "))"; - } - if ( prop == "accel" ) { - call += "TQKeySequence("; - tail += ")"; - } - call += value + tail; - - if ( n.firstChild().toElement().tagName() == "string" || - prop == "currentItem" ) { - trout << trindent << call << endl; - } else { - out << indent << call << endl; - } - } else if ( n.tagName() == "item" ) { - TQString call; - TQString value; - - if ( objClass.contains( "ListBox" ) ) { - call = createListBoxItemImpl( n, fullObjName ); - if ( !call.isEmpty() ) { - if ( numItems == 0 ) - trout << trindent << fullObjName << ".clear()" << endl; - trout << trindent << call << endl; - } - } else if ( objClass.contains( "ComboBox" ) ) { - call = createListBoxItemImpl( n, fullObjName, &value ); - if ( !call.isEmpty() ) { - if ( numItems == 0 ) - trout << trindent << fullObjName << ".clear()" << endl; - trout << trindent << call << endl; - } - } else if ( objClass.contains( "IconView" ) ) { - call = createIconViewItemImpl( n, fullObjName ); - if ( !call.isEmpty() ) { - if ( numItems == 0 ) - trout << trindent << fullObjName << ".clear()" << endl; - trout << trindent << call << endl; - } - } else if ( objClass.contains( "ListView" ) ) { - call = createListViewItemImpl( n, fullObjName, TQString::null ); - if ( !call.isEmpty() ) { - if ( numItems == 0 ) - trout << trindent << fullObjName << ".clear()" << endl; - trout << call << endl; - } - } - if ( !call.isEmpty() ) - numItems++; - } else if ( n.tagName() == "column" || n.tagName() == "row" ) { - TQString call; - TQString value; - - if ( objClass.contains( "ListView" ) ) { - call = createListViewColumnImpl( n, fullObjName, &value ); - if ( !call.isEmpty() ) { - out << call; - trout << trindent << fullObjName << ".header().setLabel(" - << numColumns++ << "," << value << ")\n"; - } - } else if ( objClass == "TQTable" || objClass == "TQDataTable" ) { - bool isCols = ( n.tagName() == "column" ); - call = createTableRowColumnImpl( n, fullObjName, &value ); - if ( !call.isEmpty() ) { - out << call; - trout << trindent << fullObjName << "." - << ( isCols ? "horizontalHeader" : "verticalHeader" ) - << "().setLabel(" - << ( isCols ? numColumns++ : numRows++ ) - << "," << value << ")\n"; - } - } - } - } - - // create all children, some widgets have special requirements - - if ( objClass == "TQTabWidget" ) { - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( tags.contains( n.tagName() ) ) { - TQString page = createObjectImpl( n, objClass, fullObjName ); - TQString comment; - TQString label = DomTool::readAttribute( n, "title", "", comment ).toString(); - out << indent << fullObjName << ".insertTab(" << page << ",TQString.fromLatin1(\"\"))" << endl; - trout << trindent << fullObjName << ".changeTab(" << page << "," << trcall( label, comment ) << ")" << endl; - } - } - } else if ( objClass == "TQWidgetStack" ) { - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( tags.contains( n.tagName() ) ) { - TQString page = createObjectImpl( n, objClass, fullObjName ); - int id = DomTool::readAttribute( n, "id", "" ).toInt(); - out << indent << fullObjName << ".addWidget(" << page << "," << id << ")" << endl; - } - } - } else if ( objClass == "TQToolBox" ) { - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( tags.contains( n.tagName() ) ) { - TQString page = createObjectImpl( n, objClass, fullObjName ); - TQString comment; - TQString label = DomTool::readAttribute( n, "label", "", comment ).toString(); - out << indent << fullObjName << ".addItem(" << page << ",TQString.fromLatin1(\"\"))" << endl; - trout << trindent << fullObjName << ".setItemLabel(" << fullObjName - << ".indexOf(" << page << ")," << trcall( label, comment ) - << ")" << endl; - } - } - } else if ( objClass != "TQToolBar" && objClass != "TQMenuBar" ) { // standard widgets - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( tags.contains( n.tagName() ) ) - createObjectImpl( n, objClass, fullObjName ); - } - } - - return fullObjName; -} - - - -/*! - Creates a set-call for property \a exclusiveProp of the object - given in \a e. - - If the object does not have this property, the function does nothing. - - Exclusive properties are used to generate the implementation of - application font or palette change handlers in createFormImpl(). - - */ -void Uic::createExclusiveProperty( const TQDomElement & e, const TQString& exclusiveProp ) -{ - TQDomElement n; - TQString objClass = getClassName( e ); - if ( objClass.isEmpty() ) - return; - TQString objName = getObjectName( e ); -#if 0 // it's not clear whether this check should be here or not - if ( objName.isEmpty() ) - return; -#endif - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "property" ) { - bool stdset = stdsetdef; - if ( n.hasAttribute( "stdset" ) ) - stdset = toBool( n.attribute( "stdset" ) ); - TQString prop = n.attribute( "name" ); - if ( prop != exclusiveProp ) - continue; - TQString value = setObjectProperty( objClass, objName, prop, n.firstChild().toElement(), stdset ); - if ( value.isEmpty() ) - continue; - out << indent << indent << objName << ".setProperty(\"" << prop << "\",TQVariant(" << value << "))" << endl; - } - } -} - - -/* Convert a TQSizePolicy::SizeType to text. */ -static TQString mapSizeType(TQSizePolicy::SizeType st) -{ - const char *txt; - - switch (st) - { - case TQSizePolicy::Fixed: - txt = "TQSizePolicy.Fixed"; - break; - - case TQSizePolicy::Minimum: - txt = "TQSizePolicy.Minimum"; - break; - - case TQSizePolicy::Maximum: - txt = "TQSizePolicy.Maximum"; - break; - - case TQSizePolicy::Preferred: - txt = "TQSizePolicy.Preferred"; - break; - - case TQSizePolicy::MinimumExpanding: - txt = "TQSizePolicy.MinimumExpanding"; - break; - - case TQSizePolicy::Expanding: - txt = "TQSizePolicy.Expanding"; - break; - - case TQSizePolicy::Ignored: - txt = "TQSizePolicy.Ignored"; - break; - - default: - txt = "Invalid TQSizePolicy::SizeType"; - } - - return txt; -} - - -/*! Attention: this function has to be in sync with - Resource::saveProperty() and DomTool::elementToVariant. If you - change one, change all. - */ -TQString Uic::setObjectProperty( const TQString& objClass, const TQString& obj, const TQString &prop, const TQDomElement &e, bool stdset ) -{ - TQString v; - if ( e.tagName() == "rect" ) { - TQDomElement n3 = e.firstChild().toElement(); - int x = 0, y = 0, w = 0, h = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "x" ) - x = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "y" ) - y = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "width" ) - w = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "height" ) - h = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = "TQRect(%1,%2,%3,%4)"; - v = v.arg(x).arg(y).arg(w).arg(h); - - } else if ( e.tagName() == "point" ) { - TQDomElement n3 = e.firstChild().toElement(); - int x = 0, y = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "x" ) - x = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "y" ) - y = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = "TQPoint(%1,%2)"; - v = v.arg(x).arg(y); - } else if ( e.tagName() == "size" ) { - TQDomElement n3 = e.firstChild().toElement(); - int w = 0, h = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "width" ) - w = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "height" ) - h = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = "TQSize(%1,%2)"; - v = v.arg(w).arg(h); - } else if ( e.tagName() == "color" ) { - TQDomElement n3 = e.firstChild().toElement(); - int r = 0, g = 0, b = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "red" ) - r = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "green" ) - g = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "blue" ) - b = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = "TQColor(%1,%2,%3)"; - v = v.arg(r).arg(g).arg(b); - } else if ( e.tagName() == "font" ) { - TQDomElement n3 = e.firstChild().toElement(); - TQString attrname = e.parentNode().toElement().attribute( "name", "font" ); - TQString fontname; - if ( !obj.isEmpty() ) { - fontname = registerObject( obj + "_" + attrname ); - out << indent << fontname << " = TQFont(self." << obj << ".font())" << endl; - } else { - fontname = registerObject( "f" ); - out << indent << fontname << " = TQFont(self.font())" << endl; - } - while ( !n3.isNull() ) { - if ( n3.tagName() == "family" ) - out << indent << fontname << ".setFamily(\"" << n3.firstChild().toText().data() << "\")" << endl; - else if ( n3.tagName() == "pointsize" ) - out << indent << fontname << ".setPointSize(" << n3.firstChild().toText().data() << ")" << endl; - else if ( n3.tagName() == "bold" ) - out << indent << fontname << ".setBold(" << mkBool( n3.firstChild().toText().data() ) << ")" << endl; - else if ( n3.tagName() == "italic" ) - out << indent << fontname << ".setItalic(" << mkBool( n3.firstChild().toText().data() ) << ")" << endl; - else if ( n3.tagName() == "underline" ) - out << indent << fontname << ".setUnderline(" << mkBool( n3.firstChild().toText().data() ) << ")" << endl; - else if ( n3.tagName() == "strikeout" ) - out << indent << fontname << ".setStrikeOut(" << mkBool( n3.firstChild().toText().data() ) << ")" << endl; - n3 = n3.nextSibling().toElement(); - } - - if ( prop == "font" ) { - if ( !obj.isEmpty() ) - out << indent << "self." << obj << ".setFont(" << fontname << ")" << endl; - else - out << indent << "self.setFont(" << fontname << ")" << endl; - } else { - v = fontname; - } - } else if ( e.tagName() == "string" ) { - TQString txt = e.firstChild().toText().data(); - TQString com = getComment( e.parentNode() ); - - if ( prop == "toolTip" && objClass != "TQAction" && objClass != "TQActionGroup" ) { - if ( !obj.isEmpty() ) - trout << trindent << "TQToolTip.add(self." << obj << "," - << trcall( txt, com ) << ")" << endl; - else - trout << trindent << "TQToolTip.add(self," - << trcall( txt, com ) << ")" << endl; - } else if ( prop == "whatsThis" && objClass != "TQAction" && objClass != "TQActionGroup" ) { - if ( !obj.isEmpty() ) - trout << trindent << "TQWhatsThis.add(self." << obj << "," - << trcall( txt, com ) << ")" << endl; - else - trout << trindent << "TQWhatsThis.add(self," - << trcall( txt, com ) << ")" << endl; - } else { - v = trcall( txt, com ); - } - } else if ( e.tagName() == "cstring" ) { - v = "\"%1\""; - v = v.arg( e.firstChild().toText().data() ); - } else if ( e.tagName() == "number" ) { - v = "%1"; - v = v.arg( e.firstChild().toText().data() ); - } else if ( e.tagName() == "bool" ) { - if ( stdset ) - v = "%1"; - else - v = "TQVariant(%1,0)"; - v = v.arg( mkBool( e.firstChild().toText().data() ) ); - } else if ( e.tagName() == "pixmap" ) { - v = e.firstChild().toText().data(); - if ( !v.isEmpty() ) { - if ( pixmapLoaderFunction.isEmpty() ) { - v.prepend( "self." ); - } else { - v.prepend( pixmapLoaderFunction + "(" + TQString( externPixmaps ? "\"" : "" ) ); - v.append( TQString( externPixmaps ? "\"" : "" ) + ")" ); - } - } - } else if ( e.tagName() == "iconset" ) { - v = "TQIconSet(%1)"; - TQString s = e.firstChild().toText().data(); - if ( !s.isEmpty() ) { - if ( pixmapLoaderFunction.isEmpty() ) { - s.prepend( "self." ); - } else { - s.prepend( pixmapLoaderFunction + "(" + TQString( externPixmaps ? "\"" : "" ) ); - s.append( TQString( externPixmaps ? "\"" : "" ) + ")" ); - } - } - v = v.arg( s ); - } else if ( e.tagName() == "image" ) { - v = e.firstChild().toText().data() + ".convertToImage()"; - } else if ( e.tagName() == "enum" ) { - v = "%1.%2"; - TQString oc = objClass; - TQString ev = e.firstChild().toText().data(); - if ( oc == "TQListView" && ev == "Manual" ) // #### workaround, rename TQListView::Manual in 4.0 - oc = "TQScrollView"; - v = v.arg( oc ).arg( ev ); - } else if ( e.tagName() == "set" ) { - TQString keys( e.firstChild().toText().data() ); - TQStringList lst = TQStringList::split( '|', keys ); - v = ""; - TQStringList::Iterator it = lst.begin(); - while ( it != lst.end() ) { - v += objClass + "." + *it; - if ( it != lst.fromLast() ) - v += " | "; - ++it; - } - } else if ( e.tagName() == "sizepolicy" ) { - TQDomElement n3 = e.firstChild().toElement(); - TQSizePolicy sp; - while ( !n3.isNull() ) { - if ( n3.tagName() == "hsizetype" ) - sp.setHorData( (TQSizePolicy::SizeType)n3.firstChild().toText().data().toInt() ); - else if ( n3.tagName() == "vsizetype" ) - sp.setVerData( (TQSizePolicy::SizeType)n3.firstChild().toText().data().toInt() ); - else if ( n3.tagName() == "horstretch" ) - sp.setHorStretch( n3.firstChild().toText().data().toInt() ); - else if ( n3.tagName() == "verstretch" ) - sp.setVerStretch( n3.firstChild().toText().data().toInt() ); - n3 = n3.nextSibling().toElement(); - } - TQString tmp = "self."; - if ( !obj.isEmpty() ) - tmp += obj + "."; - v = "TQSizePolicy(%1,%2,%3,%4," + tmp + "sizePolicy().hasHeightForWidth())"; - v = v.arg( mapSizeType(sp.horData()) ).arg( mapSizeType(sp.verData()) ).arg( sp.horStretch() ).arg( sp.verStretch() ); - } else if ( e.tagName() == "palette" ) { - TQPalette pal; - bool no_pixmaps = e.elementsByTagName( "pixmap" ).count() == 0; - TQDomElement n; - if ( no_pixmaps ) { - n = e.firstChild().toElement(); - while ( !n.isNull() ) { - TQColorGroup cg; - if ( n.tagName() == "active" ) { - cg = loadColorGroup( n ); - pal.setActive( cg ); - } else if ( n.tagName() == "inactive" ) { - cg = loadColorGroup( n ); - pal.setInactive( cg ); - } else if ( n.tagName() == "disabled" ) { - cg = loadColorGroup( n ); - pal.setDisabled( cg ); - } - n = n.nextSibling().toElement(); - } - } - if ( no_pixmaps && pal == TQPalette( pal.active().button(), pal.active().background() ) ) { - v = "TQPalette(TQColor(%1,%2,%3),TQColor(%1,%2,%3))"; - v = v.arg( pal.active().button().red() ).arg( pal.active().button().green() ).arg( pal.active().button().blue() ); - v = v.arg( pal.active().background().red() ).arg( pal.active().background().green() ).arg( pal.active().background().blue() ); - } else { - TQString palette = "pal"; - if ( !pal_used ) { - out << indent << palette << " = TQPalette()" << endl; - pal_used = TRUE; - } - TQString cg = "cg"; - if ( !cg_used ) { - out << indent << cg << " = TQColorGroup()" << endl; - cg_used = TRUE; - } - n = e.firstChild().toElement(); - while ( !n.isNull() && n.tagName() != "active" ) - n = n.nextSibling().toElement(); - createColorGroupImpl( cg, n ); - out << indent << palette << ".setActive(" << cg << ")" << endl; - - n = e.firstChild().toElement(); - while ( !n.isNull() && n.tagName() != "inactive" ) - n = n.nextSibling().toElement(); - createColorGroupImpl( cg, n ); - out << indent << palette << ".setInactive(" << cg << ")" << endl; - - n = e.firstChild().toElement(); - while ( !n.isNull() && n.tagName() != "disabled" ) - n = n.nextSibling().toElement(); - createColorGroupImpl( cg, n ); - out << indent << palette << ".setDisabled(" << cg << ")" << endl; - v = palette; - } - } else if ( e.tagName() == "cursor" ) { - v = "TQCursor(%1)"; - v = v.arg( e.firstChild().toText().data() ); - } else if ( e.tagName() == "date" ) { - TQDomElement n3 = e.firstChild().toElement(); - int y, m, d; - y = m = d = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "year" ) - y = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "month" ) - m = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "day" ) - d = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = "TQDate(%1,%2,%3)"; - v = v.arg(y).arg(m).arg(d); - } else if ( e.tagName() == "time" ) { - TQDomElement n3 = e.firstChild().toElement(); - int h, m, s; - h = m = s = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "hour" ) - h = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "minute" ) - m = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "second" ) - s = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = "TQTime(%1,%2,%3)"; - v = v.arg(h).arg(m).arg(s); - } else if ( e.tagName() == "datetime" ) { - TQDomElement n3 = e.firstChild().toElement(); - int h, mi, s, y, mo, d; - h = mi = s = y = mo = d = 0; - while ( !n3.isNull() ) { - if ( n3.tagName() == "hour" ) - h = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "minute" ) - mi = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "second" ) - s = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "year" ) - y = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "month" ) - mo = n3.firstChild().toText().data().toInt(); - else if ( n3.tagName() == "day" ) - d = n3.firstChild().toText().data().toInt(); - n3 = n3.nextSibling().toElement(); - } - v = "TQDateTime(TQDate(%1,%2,%3),TQTime(%4,%5,%6))"; - v = v.arg(y).arg(mo).arg(d).arg(h).arg(mi).arg(s); - } else if ( e.tagName() == "stringlist" ) { - TQStringList l; - TQDomElement n3 = e.firstChild().toElement(); - TQString listname = "l"; - if ( !obj.isEmpty() ) { - listname = obj + "_stringlist"; - listname = registerObject( listname ); - out << indent << listname << " = TQStringList()" << endl; - } else { - out << indent << listname << " = TQStringList()" << endl; - } - while ( !n3.isNull() ) { - if ( n3.tagName() == "string" ) - out << indent << listname << ".append(\"" << n3.firstChild().toText().data().simplifyWhiteSpace() << "\")" << endl; - n3 = n3.nextSibling().toElement(); - } - v = listname; - } - return v; -} - - - - -/*! Extracts a named object property from \a e. - */ -TQDomElement Uic::getObjectProperty( const TQDomElement& e, const TQString& name ) -{ - TQDomElement n; - for ( n = e.firstChild().toElement(); - !n.isNull(); - n = n.nextSibling().toElement() ) { - if ( n.tagName() == "property" && n.toElement().attribute("name") == name ) - return n; - } - return n; -} - diff --git a/python/pyqt/pyuic3/parser.cpp b/python/pyqt/pyuic3/parser.cpp deleted file mode 100644 index 15374aa5..00000000 --- a/python/pyqt/pyuic3/parser.cpp +++ /dev/null @@ -1,66 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#include "parser.h" -#include -#include - -class NormalizeObject : public QObject -{ -public: - NormalizeObject() : TQObject() {} - static TQCString normalizeSignalSlot( const char *signalSlot ) { return TQObject::normalizeSignalSlot( signalSlot ); } -}; - -TQString Parser::cleanArgs( const TQString &func ) -{ - TQString slot( func ); - int begin = slot.find( "(" ) + 1; - TQString args = slot.mid( begin ); - args = args.left( args.find( ")" ) ); - TQStringList lst = TQStringList::split( ',', args ); - TQString res = slot.left( begin ); - for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) { - if ( it != lst.begin() ) - res += ","; - TQString arg = *it; - int pos = 0; - if ( ( pos = arg.find( "&" ) ) != -1 ) { - arg = arg.left( pos + 1 ); - } else if ( ( pos = arg.find( "*" ) ) != -1 ) { - arg = arg.left( pos + 1 ); - } else { - arg = arg.simplifyWhiteSpace(); - if ( ( pos = arg.find( ':' ) ) != -1 ) - arg = arg.left( pos ).simplifyWhiteSpace() + ":" + arg.mid( pos + 1 ).simplifyWhiteSpace(); - TQStringList l = TQStringList::split( ' ', arg ); - if ( l.count() == 2 ) { - if ( l[ 0 ] != "const" && l[ 0 ] != "unsigned" && l[ 0 ] != "var" ) - arg = l[ 0 ]; - } else if ( l.count() == 3 ) { - arg = l[ 0 ] + " " + l[ 1 ]; - } - } - res += arg; - } - res += ")"; - - return TQString::fromLatin1( NormalizeObject::normalizeSignalSlot( res.latin1() ) ); -} diff --git a/python/pyqt/pyuic3/parser.h b/python/pyqt/pyuic3/parser.h deleted file mode 100644 index ace96d9e..00000000 --- a/python/pyqt/pyuic3/parser.h +++ /dev/null @@ -1,33 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#ifndef PARSER_H -#define PARSER_H - -#include - -class Parser -{ -public: - static TQString cleanArgs( const TQString &func ); - -}; - -#endif diff --git a/python/pyqt/pyuic3/pyuic-prof.sbf b/python/pyqt/pyuic3/pyuic-prof.sbf deleted file mode 100644 index 3080263d..00000000 --- a/python/pyqt/pyuic3/pyuic-prof.sbf +++ /dev/null @@ -1,24 +0,0 @@ -# This is the build file for pyuic for Qt v3 Professional Edition. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -target = pyuic -sources = main.cpp uic.cpp form.cpp object.cpp subclassing.cpp embed.cpp widgetdatabase.cpp domtool.cpp parser.cpp qdom.cpp qxml.cpp -headers = domtool.h globaldefs.h parser.h uic.h widgetdatabase.h widgetinterface.h diff --git a/python/pyqt/pyuic3/pyuic.pro.in b/python/pyqt/pyuic3/pyuic.pro.in deleted file mode 100644 index faebbd6f..00000000 --- a/python/pyqt/pyuic3/pyuic.pro.in +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) 2001 -# Phil Thompson -# Copyright (c) 2002, 2003 -# Riverbank Computing Limited -# -# The project file for pyuic for Qt v3. - - -TEMPLATE = app -CONFIG += qt console warn_on release @PYQT_RBPROF@ -INCLUDEPATH += @BLX_INCLUDEPATH@ $(QTDIR)/src/3rdparty/zlib -DEFINES += UIC QT_INTERNAL_XML @BLX_DEFINES@ - -DESTDIR = @PYQT_BINDIR@ -TARGET = pyuic - -HEADERS = uic.h \ - widgetdatabase.h \ - domtool.h \ - parser.h \ - widgetinterface.h - -SOURCES = main.cpp \ - uic.cpp \ - form.cpp \ - object.cpp \ - subclassing.cpp \ - embed.cpp \ - widgetdatabase.cpp \ - domtool.cpp \ - parser.cpp - -rbprof:exists($(QTDIR)/src/qt_professional.pri) { - QT_SOURCE_TREE = $(QTDIR) - include($(QTDIR)/src/qt_professional.pri) -} diff --git a/python/pyqt/pyuic3/pyuic.sbf b/python/pyqt/pyuic3/pyuic.sbf deleted file mode 100644 index 736b60ac..00000000 --- a/python/pyqt/pyuic3/pyuic.sbf +++ /dev/null @@ -1,24 +0,0 @@ -# This is the build file for pyuic for Qt v3. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -target = pyuic -sources = main.cpp uic.cpp form.cpp object.cpp subclassing.cpp embed.cpp widgetdatabase.cpp domtool.cpp parser.cpp -headers = domtool.h globaldefs.h parser.h uic.h widgetdatabase.h widgetinterface.h diff --git a/python/pyqt/pyuic3/subclassing.cpp b/python/pyqt/pyuic3/subclassing.cpp deleted file mode 100644 index 251d704f..00000000 --- a/python/pyqt/pyuic3/subclassing.cpp +++ /dev/null @@ -1,185 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#include "uic.h" -#include "parser.h" -#include "widgetdatabase.h" -#include "domtool.h" -#include -#include -#include -#define NO_STATIC_COLORS -#include -#include -#include -#include - - -/*! - Creates an implementation for a subclass \a subClass of the form - given in \a e - - \sa createSubDecl() - */ -void Uic::createSubImpl( const TQDomElement &e, const TQString& subClass ) -{ - TQDomElement n; - TQDomNodeList nl; - int i; - - TQString objClass = getClassName( e ); - if ( objClass.isEmpty() ) - return; - - TQString supClsMod = fileName; - int tail = supClsMod.findRev('.',-1); - if (tail >= 0) - supClsMod.truncate(tail); - - out << indent << "from " << supClsMod << " import " << nameOfClass << endl; - out << endl; - out << endl; - - out << indent << "class " << subClass << "(" << nameOfClass << "):" << endl; - ++indent; - out << endl; - - // constructor - if ( objClass == "TQDialog" || objClass == "TQWizard" ) { - out << indent << "def __init__(self,parent = None,name = None,modal = 0,fl = 0):" << endl; - ++indent; - out << indent << nameOfClass << ".__init__(self,parent,name,modal,fl)" << endl; - } else { // standard QWidget - out << indent << "def __init__(self,parent = None,name = None,fl = 0):" << endl; - ++indent; - out << indent << nameOfClass << ".__init__(self,parent,name,fl)" << endl; - } - --indent; - - // find additional functions - TQStringList publicSlots, protectedSlots, privateSlots; - TQStringList publicSlotTypes, protectedSlotTypes, privateSlotTypes; - TQStringList publicSlotSpecifier, protectedSlotSpecifier, privateSlotSpecifier; - TQStringList publicFuncts, protectedFuncts, privateFuncts; - TQStringList publicFunctRetTyp, protectedFunctRetTyp, privateFunctRetTyp; - TQStringList publicFunctSpec, protectedFunctSpec, privateFunctSpec; - - nl = e.parentNode().toElement().elementsByTagName( "slot" ); - for ( i = 0; i < (int) nl.length(); i++ ) { - n = nl.item(i).toElement(); - if ( n.parentNode().toElement().tagName() != "slots" - && n.parentNode().toElement().tagName() != "connections" ) - continue; - if ( n.attribute( "language", "C++" ) != "C++" ) - continue; - TQString returnType = n.attribute( "returnType", "void" ); - TQString functionName = n.firstChild().toText().data().stripWhiteSpace(); - if ( functionName.endsWith( ";" ) ) - functionName = functionName.left( functionName.length() - 1 ); - TQString specifier = n.attribute( "specifier" ); - TQString access = n.attribute( "access" ); - if ( access == "protected" ) { - protectedSlots += functionName; - protectedSlotTypes += returnType; - protectedSlotSpecifier += specifier; - } else if ( access == "private" ) { - privateSlots += functionName; - privateSlotTypes += returnType; - privateSlotSpecifier += specifier; - } else { - publicSlots += functionName; - publicSlotTypes += returnType; - publicSlotSpecifier += specifier; - } - } - - nl = e.parentNode().toElement().elementsByTagName( "function" ); - for ( i = 0; i < (int) nl.length(); i++ ) { - n = nl.item(i).toElement(); - if ( n.parentNode().toElement().tagName() != "functions" ) - continue; - if ( n.attribute( "language", "C++" ) != "C++" ) - continue; - TQString returnType = n.attribute( "returnType", "void" ); - TQString functionName = n.firstChild().toText().data().stripWhiteSpace(); - if ( functionName.endsWith( ";" ) ) - functionName = functionName.left( functionName.length() - 1 ); - TQString specifier = n.attribute( "specifier" ); - TQString access = n.attribute( "access" ); - if ( access == "protected" ) { - protectedFuncts += functionName; - protectedFunctRetTyp += returnType; - protectedFunctSpec += specifier; - } else if ( access == "private" ) { - privateFuncts += functionName; - privateFunctRetTyp += returnType; - privateFunctSpec += specifier; - } else { - publicFuncts += functionName; - publicFunctRetTyp += returnType; - publicFunctSpec += specifier; - } - } - - if ( !publicFuncts.isEmpty() ) - writeFunctionsSubImpl( publicFuncts, publicFunctRetTyp, publicFunctSpec, subClass, "public function" ); - - // create stubs for public additional slots - if ( !publicSlots.isEmpty() ) - writeFunctionsSubImpl( publicSlots, publicSlotTypes, publicSlotSpecifier, subClass, "public slot" ); - - if ( !protectedFuncts.isEmpty() ) - writeFunctionsSubImpl( protectedFuncts, protectedFunctRetTyp, protectedFunctSpec, subClass, "protected function" ); - - // create stubs for protected additional slots - if ( !protectedSlots.isEmpty() ) - writeFunctionsSubImpl( protectedSlots, protectedSlotTypes, protectedSlotSpecifier, subClass, "protected slot" ); - - if ( !privateFuncts.isEmpty() ) - writeFunctionsSubImpl( privateFuncts, privateFunctRetTyp, privateFunctSpec, subClass, "private function" ); - - // create stubs for private additional slots - if ( !privateSlots.isEmpty() ) - writeFunctionsSubImpl( privateSlots, privateSlotTypes, privateSlotSpecifier, subClass, "private slot" ); - - --indent; -} - -void Uic::writeFunctionsSubImpl( const TQStringList &fuLst, const TQStringList &typLst, const TQStringList &specLst, - const TQString &subClass, const TQString &descr ) -{ - TQValueListConstIterator it, it2, it3; - for ( it = fuLst.begin(), it2 = typLst.begin(), it3 = specLst.begin(); - it != fuLst.end(); ++it, ++it2, ++it3 ) { - TQString type = *it2; - if ( type.isEmpty() ) - type = "void"; - if ( *it3 == "non virtual" ) - continue; - out << endl; - out << indent << "# " << descr << endl; - pySlot(it); - ++indent; - out << endl; - out << indent << "print \"" << subClass << "." << (*it) << ": Not implemented yet\"" << endl; - --indent; - } - out << endl; -} diff --git a/python/pyqt/pyuic3/uic.cpp b/python/pyqt/pyuic3/uic.cpp deleted file mode 100644 index b9e046c5..00000000 --- a/python/pyqt/pyuic3/uic.cpp +++ /dev/null @@ -1,1145 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** Copyright (c) 2004 Phil Thompson -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#include "uic.h" -#include "parser.h" -#include "widgetdatabase.h" -#include "domtool.h" -#include -#include -#include -#define NO_STATIC_COLORS -#include -#include -#include -#include - -bool Uic::isMainWindow = FALSE; -PyIndent Uic::indent; -PyIndent Uic::trindent; - - -// Re-calculate the indent string based on the current number and nature of the -// indent. -void PyIndent::calc() -{ - indstr.truncate(0); - - for (uint i = current; i > 0; --i) - if (tabStop == 0) - indstr += '\t'; - else - for (uint t = 0; t < tabStop; ++t) - indstr += ' '; -} - - -TQString Uic::getComment( const TQDomNode& n ) -{ - TQDomNode child = n.firstChild(); - while ( !child.isNull() ) { - if ( child.toElement().tagName() == "comment" ) - return child.toElement().firstChild().toText().data(); - child = child.nextSibling(); - } - return TQString::null; -} - -TQString Uic::mkBool( bool b ) -{ - return b? "1" : "0"; -} - -TQString Uic::mkBool( const TQString& s ) -{ - return mkBool( s == "true" || s == "1" ); -} - -bool Uic::toBool( const TQString& s ) -{ - return s == "true" || s.toInt() != 0; -} - -TQString Uic::fixString( const TQString &str, bool encode ) -{ -#if QT_VERSION >= 0x030100 - TQString s; - if ( !encode ) { - s = str; - s.replace( "\\", "\\\\" ); - s.replace( "\"", "\\\"" ); - s.replace( "\r", "" ); - s.replace( "\n", "\\n\"\n\"" ); - } else { - TQCString utf8 = str.utf8(); - const int l = utf8.length(); - - for ( int i = 0; i < l; ++i ) { - uchar ch = (uchar)utf8[i]; - - if (ch != 0x0d) { // skip \r - s += "\\x"; - - if (ch <= 0x0f) - s += "0"; - - s += TQString::number( ch, 16 ); - } - } - } -#else - TQString s( str ); - s.replace( TQRegExp( "\\\\" ), "\\\\" ); - s.replace( TQRegExp( "\"" ), "\\\"" ); - s.replace( TQRegExp( "\r?\n" ), "\\n\"\n\"" ); -#endif - return "\"" + s + "\""; -} - -TQString Uic::trcall( const TQString& sourceText, const TQString& comment ) -{ - if ( sourceText.isEmpty() && comment.isEmpty() ) - return "TQString.null"; - - TQString t = trmacro; - bool encode = FALSE; - if ( t.isNull() ) { - t = "self.__tr"; - for ( int i = 0; i < (int) sourceText.length(); i++ ) { - if ( sourceText[i].unicode() >= 0x80 ) { - t = "self.__trUtf8"; - encode = TRUE; - break; - } - } - - if (encode) - pyNeedTrUtf8 = TRUE; - else - pyNeedTr = TRUE; - } - - if ( comment.isEmpty() ) { - return t + "(" + fixString( sourceText, encode ) + ")"; - } else { - return t + "(" + fixString( sourceText, encode ) + "," + - fixString( comment, encode ) + ")"; - } -} - -TQString Uic::mkStdSet( const TQString& prop ) -{ - return TQString( "set" ) + prop[0].upper() + prop.mid(1); -} - - - -/*! - \class Uic uic.h - \brief User Interface Compiler - - The class Uic encapsulates the user interface compiler (uic). - */ -Uic::Uic( const TQString &fn, const char *outputFn, TQTextStream &outStream, - TQDomDocument doc, bool subcl, const TQString &trm, - const TQString& subClass, TQString &uicClass ) - : out( outStream ), trout (&languageChangeBody ), - outputFileName( outputFn ), trmacro( trm ), - pyNeedTr(FALSE), pyNeedTrUtf8(FALSE) -{ - fileName = fn; - writeFunctImpl = TRUE; - defMargin = BOXLAYOUT_DEFAULT_MARGIN; - defSpacing = BOXLAYOUT_DEFAULT_SPACING; - externPixmaps = FALSE; - - trindent.setIndent(2); - - item_used = cg_used = pal_used = 0; - - layouts << "hbox" << "vbox" << "grid"; - tags = layouts; - tags << "widget"; - - pixmapLoaderFunction = getPixmapLoaderFunction( doc.firstChild().toElement() ); - nameOfClass = getFormClassName( doc.firstChild().toElement() ); - -#if QT_VERSION >= 0x030300 - uiFileVersion = doc.firstChild().toElement().attribute("version"); -#endif - stdsetdef = toBool( doc.firstChild().toElement().attribute("stdsetdef") ); - - if ( doc.firstChild().isNull() || doc.firstChild().firstChild().isNull() ) - return; - - // Extract any Python code in the comments. - TQStringList comm = TQStringList::split('\n',getComment(doc.firstChild())); - - for (TQStringList::Iterator it = comm.begin(); it != comm.end(); ++it) - if ((*it).startsWith("Python:")) - pyCode += (*it).mid(7) + "\n"; - - TQDomElement e = doc.firstChild().firstChild().toElement(); - TQDomElement widget; - while ( !e.isNull() ) { - if ( e.tagName() == "widget" ) { - widget = e; - } else if ( e.tagName() == "pixmapinproject" ) { - externPixmaps = TRUE; - } else if ( e.tagName() == "layoutdefaults" ) { - defSpacing = e.attribute( "spacing", defSpacing.toString() ); - defMargin = e.attribute( "margin", defMargin.toString() ); - } else if ( e.tagName() == "layoutfunctions" ) { - defSpacing = e.attribute( "spacing", defSpacing.toString() ); - - bool ok; - defSpacing.toInt( &ok ); - if ( !ok ) { - TQString buf = defSpacing.toString(); - defSpacing = buf.append( "()" ); - } - defMargin = e.attribute( "margin", defMargin.toString() ); - defMargin.toInt( &ok ); - if ( !ok ) { - TQString buf = defMargin.toString(); - defMargin = buf.append( "()" ); - } - } - e = e.nextSibling().toElement(); - } - e = widget; - - if ( nameOfClass.isEmpty() ) - nameOfClass = getObjectName( e ); - - uicClass = nameOfClass; - - namespaces = TQStringList::split( "::", nameOfClass ); - bareNameOfClass = namespaces.last(); - namespaces.remove( namespaces.fromLast() ); - - if ( subcl ) { - createSubImpl( e, subClass ); - } else { - createFormImpl( e ); - } - - ++indent; - - if (pyNeedTr) - { - out << "\n"; - out << indent << "def __tr(self,s,c = None):\n"; - ++indent; - out << indent << "return qApp.translate(\"" << nameOfClass << "\",s,c)\n"; - --indent; - } - - if (pyNeedTrUtf8) - { - out << "\n"; - out << indent << "def __trUtf8(self,s,c = None):\n"; - ++indent; - out << indent << "return qApp.translate(\"" << nameOfClass << "\",s,c,TQApplication.UnicodeUTF8)\n"; - --indent; - } - - --indent; -} - -/*! Extracts a pixmap loader function from \a e - */ -TQString Uic::getPixmapLoaderFunction( const TQDomElement& e ) -{ - TQDomElement n; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "pixmapfunction" ) - return n.firstChild().toText().data(); - } - return TQString::null; -} - - -/*! Extracts the forms class name from \a e - */ -TQString Uic::getFormClassName( const TQDomElement& e ) -{ - TQDomElement n; - TQString cn; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "class" ) { - TQString s = n.firstChild().toText().data(); - int i; - while ( ( i = s.find(' ' )) != -1 ) - s[i] = '_'; - cn = s; - } - } - return cn; -} - -/*! Extracts a class name from \a e. - */ -TQString Uic::getClassName( const TQDomElement& e ) -{ - TQString s = e.attribute( "class" ); - if ( s.isEmpty() && e.tagName() == "toolbar" ) - s = "TQToolBar"; - else if ( s.isEmpty() && e.tagName() == "menubar" ) - s = "TQMenuBar"; - return s; -} - -/*! Returns TRUE if database framework code is generated, else FALSE. -*/ - -bool Uic::isFrameworkCodeGenerated( const TQDomElement& e ) -{ - TQDomElement n = getObjectProperty( e, "frameworkCode" ); - if ( n.attribute("name") == "frameworkCode" && - !DomTool::elementToVariant( n.firstChild().toElement(), TQVariant( TRUE, 0 ) ).toBool() ) - return FALSE; - return TRUE; -} - -/*! Extracts an object name from \a e. It's stored in the 'name' - property. - */ -TQString Uic::getObjectName( const TQDomElement& e ) -{ - TQDomElement n = getObjectProperty( e, "name" ); - if ( n.firstChild().toElement().tagName() == "cstring" ) - return n.firstChild().toElement().firstChild().toText().data(); - return TQString::null; -} - -/*! Extracts an layout name from \a e. It's stored in the 'name' - property of the preceeding sibling (the first child of a QLayoutWidget). - */ -TQString Uic::getLayoutName( const TQDomElement& e ) -{ - TQDomElement p = e.parentNode().toElement(); - TQString name; - - if ( getClassName(p) != "QLayoutWidget" ) - name = "Layout"; - - TQDomElement n = getObjectProperty( p, "name" ); - if ( n.firstChild().toElement().tagName() == "cstring" ) { - name.prepend( n.firstChild().toElement().firstChild().toText().data() ); - return TQStringList::split( "::", name ).last(); - } - return e.tagName(); -} - - -TQString Uic::getDatabaseInfo( const TQDomElement& e, const TQString& tag ) -{ - TQDomElement n; - TQDomElement n1; - int child = 0; - // database info is a stringlist stored in this order - if ( tag == "connection" ) - child = 0; - else if ( tag == "table" ) - child = 1; - else if ( tag == "field" ) - child = 2; - else - return TQString::null; - n = getObjectProperty( e, "database" ); - if ( n.firstChild().toElement().tagName() == "stringlist" ) { - // find correct stringlist entry - TQDomElement n1 = n.firstChild().firstChild().toElement(); - for ( int i = 0; i < child && !n1.isNull(); ++i ) - n1 = n1.nextSibling().toElement(); - if ( n1.isNull() ) - return TQString::null; - return n1.firstChild().toText().data(); - } - return TQString::null; -} - - -/*! - Returns include file for class \a className or a null string. - */ -TQString Uic::getInclude( const TQString& className ) -{ - int wid = WidgetDatabase::idFromClassName( className ); - if ( wid != -1 ) - return WidgetDatabase::includeFile( wid ); - return TQString::null; -} - - -void Uic::createActionImpl( const TQDomElement &n, const TQString &parent ) -{ - for ( TQDomElement ae = n; !ae.isNull(); ae = ae.nextSibling().toElement() ) { - TQString objName = registerObject( getObjectName( ae ) ); - if ( ae.tagName() == "action" ) - out << indent << "self." << objName << " = TQAction(" << parent << ",\"" << objName << "\")" << endl; - else if ( ae.tagName() == "actiongroup" ) - out << indent << "self." << objName << " = TQActionGroup(" << parent << ",\"" << objName << "\")" << endl; - else - continue; - bool subActionsDone = FALSE; -#if QT_VERSION >= 0x030300 - bool hasMenuText = FALSE; - TQString actionText; -#endif - for ( TQDomElement n2 = ae.firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) { - if ( n2.tagName() == "property" ) { - bool stdset = stdsetdef; - if ( n2.hasAttribute( "stdset" ) ) - stdset = toBool( n2.attribute( "stdset" ) ); - TQString prop = n2.attribute("name"); - if ( prop == "name" ) - continue; - TQString value = setObjectProperty( "TQAction", objName, prop, n2.firstChild().toElement(), stdset ); - if ( value.isEmpty() ) - continue; - - TQString call = "self." + objName + "."; - if ( stdset ) - call += mkStdSet( prop ) + "(" + value + ")"; - else - call += "setProperty(\"" + prop + "\",TQVariant(" + value + "))"; - -#if QT_VERSION >= 0x030300 - if (prop == "menuText") - hasMenuText = TRUE; - else if (prop == "text") - actionText = value; -#endif - - if ( n2.firstChild().toElement().tagName() == "string" ) { - trout << trindent << call << endl; - } else { - out << indent << call << endl; - } - } else if ( !subActionsDone && ( n2.tagName() == "actiongroup" || n2.tagName() == "action" ) ) { - createActionImpl( n2, "self." + objName ); - subActionsDone = TRUE; - } - } -#if QT_VERSION >= 0x030300 - // workaround for loading pre-3.3 files expecting bogus TQAction behavior - if (!hasMenuText && !actionText.isEmpty() && uiFileVersion < "3.3") - trout << indent << "self." << objName << ".setMenuText(" << actionText << ")" << endl; -#endif - } -} - -TQString get_dock( const TQString &d ) -{ - if ( d == "0" ) - return "Qt.DockUnmanaged"; - if ( d == "1" ) - return "Qt.DockTornOff"; - if ( d == "2" ) - return "Qt.DockTop"; - if ( d == "3" ) - return "Qt.DockBottom"; - if ( d == "4" ) - return "Qt.DockRight"; - if ( d == "5" ) - return "Qt.DockLeft"; - if ( d == "6" ) - return "Qt.DockMinimized"; - return ""; -} - -void Uic::createToolbarImpl( const TQDomElement &n, const TQString &parentClass, const TQString &parent ) -{ - TQDomNodeList nl = n.elementsByTagName( "toolbar" ); - for ( int i = 0; i < (int) nl.length(); i++ ) { - TQDomElement ae = nl.item( i ).toElement(); - TQString dock = get_dock( ae.attribute( "dock" ) ); - TQString objName = getObjectName( ae ); - out << indent << "self." << objName << " = TQToolBar(TQString(\"\"),self," << dock << ")" << endl; - createObjectImpl( ae, parentClass, parent ); - for ( TQDomElement n2 = ae.firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) { - if ( n2.tagName() == "action" ) { - out << indent << "self." << n2.attribute( "name" ) << ".addTo(self." << objName << ")" << endl; - } else if ( n2.tagName() == "separator" ) { - out << indent << "self." << objName << ".addSeparator()" << endl; - } else if ( n2.tagName() == "widget" ) { - if ( n2.attribute( "class" ) != "Spacer" ) { - createObjectImpl( n2, "TQToolBar", "self." + objName ); - } else { - TQString child = createSpacerImpl( n2, parentClass, parent, objName ); - out << indent << "TQApplication.sendPostedEvents(self." << objName - << ",TQEvent.ChildInserted)" << endl; - out << indent << "self." << objName << ".boxLayout().addItem(" << child << ")" << endl; - } - } - } - } -} - -void Uic::createMenuBarImpl( const TQDomElement &n, const TQString &parentClass, const TQString &parent ) -{ - TQString objName = getObjectName( n ); - out << indent << "self." << objName << " = TQMenuBar(self,\"" << objName << "\")" << endl; - createObjectImpl( n, parentClass, parent ); - - int i = 0; - TQDomElement c = n.firstChild().toElement(); - while ( !c.isNull() ) { - if ( c.tagName() == "item" ) { - TQString itemName = "self." + c.attribute( "name" ); - out << endl; - out << indent << itemName << " = TQPopupMenu(self)" << endl; - createPopupMenuImpl( c, parentClass, itemName ); - out << indent << "self." << objName << ".insertItem(TQString(\"\")," << itemName << "," << i << ")" << endl; - TQString findItem("self." + objName + ".findItem(%1)"); - findItem = findItem.arg(i); - trout << indent << "if " << findItem << ":" << endl; - ++indent; - trout << indent << findItem << ".setText(" << trcall( c.attribute( "text" ) ) << ")" << endl; - --indent; - } else if ( c.tagName() == "separator" ) { - out << endl; - out << indent << "self." << objName << ".insertSeparator(" << i << ")" << endl; - } - c = c.nextSibling().toElement(); - i++; - } -} - -void Uic::createPopupMenuImpl( const TQDomElement &e, const TQString &parentClass, const TQString &parent ) -{ - int i = 0; - for ( TQDomElement n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "action" || n.tagName() == "actiongroup" ) { - TQDomElement n2 = n.nextSibling().toElement(); - if ( n2.tagName() == "item" ) { // the action has a sub menu - TQString itemName = "self." + n2.attribute( "name" ); - TQString itemText = n2.attribute( "text" ); - out << indent << itemName << " = TQPopupMenu(self)" << endl; - out << indent << parent << ".setAccel(" << trcall( n2.attribute( "accel" ) ) << ","; - out << parent << ".insertItem(" << "self." << n.attribute( "name" ) << ".iconSet(),"; - out << trcall( itemText ) << "," << itemName << "))" << endl; - trout << indent << parent << ".changeItem(" << parent << ".idAt(" << i << "),"; - trout << trcall( itemText ) << ")" << endl; - createPopupMenuImpl( n2, parentClass, itemName ); - n = n2; - } else { - out << indent << "self." << n.attribute( "name" ) << ".addTo(" << parent << ")" << endl; - } - } else if ( n.tagName() == "separator" ) { - out << indent << parent << ".insertSeparator()" << endl; - } - ++i; - } -} - -/*! - Creates implementation of an listbox item tag. -*/ - -TQString Uic::createListBoxItemImpl( const TQDomElement &e, const TQString &parent , - TQString *value ) -{ - TQDomElement n = e.firstChild().toElement(); - TQString txt; - TQString com; - TQString pix; - while ( !n.isNull() ) { - if ( n.tagName() == "property" ) { - TQString attrib = n.attribute( "name" ); - TQVariant v = DomTool::elementToVariant( n.firstChild().toElement(), TQVariant() ); - if ( attrib == "text" ) { - txt = v.toString(); - com = getComment( n ); - } else if ( attrib == "pixmap" ) { - pix = v.toString(); - if ( !pix.isEmpty() ) { - if ( pixmapLoaderFunction.isEmpty() ) { - pix.prepend( "self." ); - } else { - pix.prepend( pixmapLoaderFunction + "( " + TQString( externPixmaps ? "\"" : "self." ) ); - pix.append( TQString( externPixmaps ? "\"" : "" ) + ")" ); - } - } - } - } - n = n.nextSibling().toElement(); - } - - if ( value ) - *value = trcall( txt, com ); - - if ( pix.isEmpty() ) - return parent + ".insertItem(" + trcall( txt, com ) + ")"; - - return parent + ".insertItem(" + pix + "," + trcall( txt, com ) + ")"; -} - -/*! - Creates implementation of an iconview item tag. -*/ - -TQString Uic::createIconViewItemImpl( const TQDomElement &e, const TQString &parent ) -{ - TQDomElement n = e.firstChild().toElement(); - TQString txt; - TQString com; - TQString pix; - while ( !n.isNull() ) { - if ( n.tagName() == "property" ) { - TQString attrib = n.attribute( "name" ); - TQVariant v = DomTool::elementToVariant( n.firstChild().toElement(), TQVariant() ); - if ( attrib == "text" ) { - txt = v.toString(); - com = getComment( n ); - } else if ( attrib == "pixmap" ) { - pix = v.toString(); - if ( !pix.isEmpty() ) { - if ( pixmapLoaderFunction.isEmpty() ) { - pix.prepend( "self." ); - } else { - pix.prepend( pixmapLoaderFunction + "( " + TQString( externPixmaps ? "\"" : "self." ) ); - pix.append( TQString( externPixmaps ? "\"" : "" ) + ")" ); - } - } - } - } - n = n.nextSibling().toElement(); - } - - if ( pix.isEmpty() ) - return "TQIconViewItem(" + parent + "," + trcall( txt, com ) + ")"; - else - return "TQIconViewItem(" + parent + "," + trcall( txt, com ) + "," + pix + ")"; -} - -/*! - Creates implementation of an listview item tag. -*/ - -TQString Uic::createListViewItemImpl( const TQDomElement &e, const TQString &parent, - const TQString &parentItem ) -{ - TQString s; - - TQDomElement n = e.firstChild().toElement(); - - bool hasChildren = e.elementsByTagName( "item" ).count() > 0; - TQString item; - - if ( hasChildren ) { - item = registerObject( "item" ); - } else { - item = "item"; - item_used = TRUE; - } - s = trindent + item + " = "; - - if ( !parentItem.isEmpty() ) - s += "TQListViewItem(" + parentItem + "," + lastItem + ")\n"; - else - s += "TQListViewItem(" + parent + "," + lastItem + ")\n"; - - TQStringList texts; - TQStringList pixmaps; - while ( !n.isNull() ) { - if ( n.tagName() == "property" ) { - TQString attrib = n.attribute("name"); - TQVariant v = DomTool::elementToVariant( n.firstChild().toElement(), TQVariant() ); - if ( attrib == "text" ) - texts << v.toString(); - else if ( attrib == "pixmap" ) { - TQString pix = v.toString(); - if ( !pix.isEmpty() ) { - if ( pixmapLoaderFunction.isEmpty() ) { - pix.prepend( "self." ); - } else { - pix.prepend( pixmapLoaderFunction + "( " + TQString( externPixmaps ? "\"" : "self." ) ); - pix.append( TQString( externPixmaps ? "\"" : "" ) + ")" ); - } - } - pixmaps << pix; - } - } else if ( n.tagName() == "item" ) { - s += trindent + item + ".setOpen(1)\n"; - s += createListViewItemImpl( n, parent, item ); - } - n = n.nextSibling().toElement(); - } - - for ( int i = 0; i < (int)texts.count(); ++i ) { - if ( !texts[ i ].isEmpty() ) - s += trindent + item + ".setText(" + TQString::number( i ) + "," + trcall( texts[ i ] ) + ")\n"; - if ( !pixmaps[ i ].isEmpty() ) - s += trindent + item + ".setPixmap(" + TQString::number( i ) + "," + pixmaps[ i ] + ")\n"; - } - - lastItem = item; - return s; -} - -/*! - Creates implementation of an listview column tag. -*/ - -TQString Uic::createListViewColumnImpl( const TQDomElement &e, const TQString &parent, - TQString *value ) -{ - TQDomElement n = e.firstChild().toElement(); - TQString txt; - TQString com; - TQString pix; - bool clickable = FALSE, resizable = FALSE; - while ( !n.isNull() ) { - if ( n.tagName() == "property" ) { - TQString attrib = n.attribute("name"); - TQVariant v = DomTool::elementToVariant( n.firstChild().toElement(), TQVariant() ); - if ( attrib == "text" ) { - txt = v.toString(); - com = getComment( n ); - } else if ( attrib == "pixmap" ) { - pix = v.toString(); - if ( !pix.isEmpty() ) { - if ( pixmapLoaderFunction.isEmpty() ) { - pix.prepend( "self." ); - } else { - pix.prepend( pixmapLoaderFunction + "( " + TQString( externPixmaps ? "\"" : "self." ) ); - pix.append( TQString( externPixmaps ? "\"" : "" ) + ")" ); - } - } - } else if ( attrib == "clickable" ) - clickable = v.toBool(); - else if ( attrib == "resizable" || attrib == "resizeable" ) - resizable = v.toBool(); - } - n = n.nextSibling().toElement(); - } - - if ( value ) - *value = trcall( txt, com ); - - TQString s; - s = indent + parent + ".addColumn(" + trcall( txt, com ) + ")\n"; - if ( !pix.isEmpty() ) - s += indent + parent + ".header().setLabel(" + parent + ".header().count() - 1,TQIconSet(" + pix + ")," + trcall( txt, com ) + ")\n"; - if ( !clickable ) - s += indent + parent + ".header().setClickEnabled(0," + parent + ".header().count() - 1)\n"; - if ( !resizable ) - s += indent + parent + ".header().setResizeEnabled(0," + parent + ".header().count() - 1)\n"; - return s; -} - -TQString Uic::createTableRowColumnImpl( const TQDomElement &e, const TQString &parent, - TQString *value ) -{ - TQString objClass = getClassName( e.parentNode().toElement() ); - TQDomElement n = e.firstChild().toElement(); - TQString txt; - TQString com; - TQString pix; - TQString field; - bool isRow = e.tagName() == "row"; - while ( !n.isNull() ) { - if ( n.tagName() == "property" ) { - TQString attrib = n.attribute("name"); - TQVariant v = DomTool::elementToVariant( n.firstChild().toElement(), TQVariant() ); - if ( attrib == "text" ) { - txt = v.toString(); - com = getComment( n ); - } else if ( attrib == "pixmap" ) { - pix = v.toString(); - if ( !pix.isEmpty() ) { - if ( pixmapLoaderFunction.isEmpty() ) { - pix.prepend( "self." ); - } else { - pix.prepend( pixmapLoaderFunction + "( " + TQString( externPixmaps ? "\"" : "self." ) ); - pix.append( TQString( externPixmaps ? "\"" : "" ) + ")" ); - } - } - } else if ( attrib == "field" ) - field = v.toString(); - } - n = n.nextSibling().toElement(); - } - - if ( value ) - *value = trcall( txt, com ); - - // ### This generated code sucks! We have to set the number of - // rows/cols before and then only do setLabel/() - // ### careful, though, since TQDataTable has an API which makes this code pretty good - - TQString s; - if ( isRow ) { - s = indent + parent + ".setNumRows(" + parent + ".numRows() + 1)\n"; - if ( pix.isEmpty() ) - s += indent + parent + ".verticalHeader().setLabel(" + parent + ".numRows() - 1," - + trcall( txt, com ) + ")\n"; - else - s += indent + parent + ".verticalHeader().setLabel(" + parent + ".numRows() - 1,TQIconSet(" - + pix + ")," + trcall( txt, com ) + ")\n"; - } else { - if ( objClass == "TQTable" ) { - s = indent + parent + ".setNumCols(" + parent + ".numCols() + 1)\n"; - if ( pix.isEmpty() ) - s += indent + parent + ".horizontalHeader().setLabel(" + parent + ".numCols() - 1," - + trcall( txt, com ) + ")\n"; - else - s += indent + parent + ".horizontalHeader().setLabel(" + parent + ".numCols() - 1,TQIconSet(" - + pix + ")," + trcall( txt, com ) + ")\n"; - } else if ( objClass == "TQDataTable" ) { - if ( !txt.isEmpty() && !field.isEmpty() ) { - if ( pix.isEmpty() ) - out << indent << parent << ".addColumn(" << fixString( field ) << "," << trcall( txt, com ) << ")" << endl; - else - out << indent << parent << ".addColumn(" << fixString( field ) << "," << trcall( txt, com ) << ",TQIconSet(" << pix << "))" << endl; - } - } - } - return s; -} - -/*! - Creates the implementation of a layout tag. Called from createObjectImpl(). - */ -TQString Uic::createLayoutImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout ) -{ - TQDomElement n; - TQString objClass, objName; - objClass = e.tagName(); - - TQString qlayout = "TQVBoxLayout"; - if ( objClass == "hbox" ) - qlayout = "TQHBoxLayout"; - else if ( objClass == "grid" ) - qlayout = "TQGridLayout"; - - bool isGrid = e.tagName() == "grid" ; - objName = registerObject( getLayoutName( e ) ); - layoutObjects += objName; - - TQString margin = DomTool::readProperty( e, "margin", defMargin ).toString(); - TQString spacing = DomTool::readProperty( e, "spacing", defSpacing ).toString(); - TQString resizeMode = DomTool::readProperty( e, "resizeMode", TQString::null ).toString(); - - TQString optcells; - if ( isGrid ) - optcells = "1,1,"; - if ( (parentClass == "TQGroupBox" || parentClass == "TQButtonGroup") && layout.isEmpty() ) { - // special case for group box - out << indent << parent << ".setColumnLayout(0,Qt.Vertical)" << endl; - out << indent << parent << ".layout().setSpacing(" << spacing << ")" << endl; - out << indent << parent << ".layout().setMargin(" << margin << ")" << endl; - out << indent << objName << " = " << qlayout << "(" << parent << ".layout())" << endl; - out << indent << objName << ".setAlignment(Qt.AlignTop)" << endl; - } else { - out << indent << objName << " = " << qlayout << "("; - if ( layout.isEmpty() ) - out << parent; - else { - out << "None"; - if ( !DomTool::hasProperty( e, "margin" ) ) - margin = "0"; - } - out << "," << optcells << margin << "," << spacing << ",\"" << objName << "\")" << endl; - } - if ( !resizeMode.isEmpty() ) - out << indent << objName << ".setResizeMode(TQLayout." << resizeMode << ")" << endl; - - if ( !isGrid ) { - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "spacer" ) { - TQString child = createSpacerImpl( n, parentClass, parent, objName ); - out << indent << objName << ".addItem(" << child << ")" << endl; - } else if ( tags.contains( n.tagName() ) ) { - TQString child = createObjectImpl( n, parentClass, parent, objName ); - if ( isLayout( child ) ) - out << indent << objName << ".addLayout(" << child << ")" << endl; - else - out << indent << objName << ".addWidget(" << child << ")" << endl; - } - } - } else { - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - TQDomElement ae = n; - int row = ae.attribute( "row" ).toInt(); - int col = ae.attribute( "column" ).toInt(); - int rowspan = ae.attribute( "rowspan" ).toInt(); - int colspan = ae.attribute( "colspan" ).toInt(); - if ( rowspan < 1 ) - rowspan = 1; - if ( colspan < 1 ) - colspan = 1; - if ( n.tagName() == "spacer" ) { - TQString child = createSpacerImpl( n, parentClass, parent, objName ); - if ( rowspan * colspan != 1 ) - out << indent << objName << ".addMultiCell(" << child << "," - << row << "," << ( row + rowspan - 1 ) << "," << col << "," << ( col + colspan - 1 ) << ")" << endl; - else - out << indent << objName << ".addItem(" << child << "," - << row << "," << col << ")" << endl; - } else if ( tags.contains( n.tagName() ) ) { - TQString child = createObjectImpl( n, parentClass, parent, objName ); - out << endl; - TQString o = "Widget"; - if ( isLayout( child ) ) - o = "Layout"; - if ( rowspan * colspan != 1 ) - out << indent << objName << ".addMultiCell" << o << "(" << child << "," - << row << "," << ( row + rowspan - 1 ) << "," << col << "," << ( col + colspan - 1 ) << ")" << endl; - else - out << indent << objName << ".add" << o << "(" << child << "," - << row << "," << col << ")" << endl; - } - } - } - - return objName; -} - - - -TQString Uic::createSpacerImpl( const TQDomElement &e, const TQString& /*parentClass*/, const TQString& /*parent*/, const TQString& /*layout*/) -{ - TQDomElement n; - TQString objClass, objName; - objClass = e.tagName(); - objName = registerObject( getObjectName( e ) ); - - TQSize size = DomTool::readProperty( e, "sizeHint", TQSize( 0, 0 ) ).toSize(); - TQString sizeType = DomTool::readProperty( e, "sizeType", "Expanding" ).toString(); - bool isVspacer = DomTool::readProperty( e, "orientation", "Horizontal" ) == "Vertical"; - - if ( sizeType != "Expanding" && sizeType != "MinimumExpanding" && - DomTool::hasProperty( e, "geometry" ) ) { // compatibility Qt 2.2 - TQRect geom = DomTool::readProperty( e, "geometry", TQRect(0,0,0,0) ).toRect(); - size = geom.size(); - } - - if ( isVspacer ) - out << indent << objName << " = TQSpacerItem(" - << size.width() << "," << size.height() - << ",TQSizePolicy.Minimum,TQSizePolicy." << sizeType << ")" << endl; - else - out << indent << objName << " = TQSpacerItem(" - << size.width() << "," << size.height() - << ",TQSizePolicy." << sizeType << ",TQSizePolicy.Minimum)" << endl; - - return objName; -} - -static const char* const ColorRole[] = { - "Foreground", "Button", "Light", "Midlight", "Dark", "Mid", - "Text", "BrightText", "ButtonText", "Base", "Background", "Shadow", - "Highlight", "HighlightedText", "Link", "LinkVisited", 0 -}; - - -/*! - Creates a colorgroup with name \a name from the color group \a cg - */ -void Uic::createColorGroupImpl( const TQString& name, const TQDomElement& e ) -{ - TQColorGroup cg; - int r = -1; - TQDomElement n = e.firstChild().toElement(); - TQString color; - while ( !n.isNull() ) { - if ( n.tagName() == "color" ) { - r++; - TQColor col = DomTool::readColor( n ); - color = "TQColor(%1,%2,%3)"; - color = color.arg( col.red() ).arg( col.green() ).arg( col.blue() ); - if ( col == white ) - color = "Qt.white"; - else if ( col == black ) - color = "Qt.black"; - if ( n.nextSibling().toElement().tagName() != "pixmap" ) { - out << indent << name << ".setColor(TQColorGroup." << ColorRole[r] << "," << color << ")" << endl; - } - } else if ( n.tagName() == "pixmap" ) { - TQString pixmap = n.firstChild().toText().data(); - if ( pixmapLoaderFunction.isEmpty() ) { - pixmap.prepend( "self." ); - } else { - pixmap.prepend( pixmapLoaderFunction + "(" + TQString( externPixmaps ? "\"" : "self." ) ); - pixmap.append( TQString( externPixmaps ? "\"" : "" ) + ")" ); - } - out << indent << name << ".setBrush(TQColorGroup." - << ColorRole[r] << ",TQBrush(" << color << "," << pixmap << "))" << endl; - } - n = n.nextSibling().toElement(); - } -} - -/*! - Auxiliary function to load a color group. The colorgroup must not - contain pixmaps. - */ -TQColorGroup Uic::loadColorGroup( const TQDomElement &e ) -{ - TQColorGroup cg; - int r = -1; - TQDomElement n = e.firstChild().toElement(); - TQColor col; - while ( !n.isNull() ) { - if ( n.tagName() == "color" ) { - r++; - cg.setColor( (TQColorGroup::ColorRole)r, (col = DomTool::readColor( n ) ) ); - } - n = n.nextSibling().toElement(); - } - return cg; -} - -/*! Returns TRUE if the widget properties specify that it belongs to - the database \a connection and \a table. -*/ - -bool Uic::isWidgetInTable( const TQDomElement& e, const TQString& connection, const TQString& table ) -{ - TQString conn = getDatabaseInfo( e, "connection" ); - TQString tab = getDatabaseInfo( e, "table" ); - if ( conn == connection && tab == table ) - return TRUE; - return FALSE; -} - -/*! - Registers all database connections, cursors and forms. -*/ - -void Uic::registerDatabases( const TQDomElement& e ) -{ - TQDomElement n; - TQDomNodeList nl; - int i; - nl = e.parentNode().toElement().elementsByTagName( "widget" ); - for ( i = 0; i < (int) nl.length(); ++i ) { - n = nl.item(i).toElement(); - TQString conn = getDatabaseInfo( n, "connection" ); - TQString tab = getDatabaseInfo( n, "table" ); - TQString fld = getDatabaseInfo( n, "field" ); - if ( !conn.isNull() ) { - dbConnections += conn; - if ( !tab.isNull() ) { - dbCursors[conn] += tab; - if ( !fld.isNull() ) - dbForms[conn] += tab; - } - } - } -} - -/*! - Registers an object with name \a name. - - The returned name is a valid variable identifier, as similar to \a - name as possible and guaranteed to be unique within the form. - - \sa registeredName(), isObjectRegistered() - */ -TQString Uic::registerObject( const TQString& name ) -{ - if ( objectNames.isEmpty() ) { - // some temporary variables we need - objectNames += "img"; - objectNames += "item"; - objectNames += "cg"; - objectNames += "pal"; - } - - TQString result = name; - int i; - while ( ( i = result.find(' ' )) != -1 ) { - result[i] = '_'; - } - - if ( objectNames.contains( result ) ) { - int i = 2; - while ( objectNames.contains( result + "_" + TQString::number(i) ) ) - i++; - result += "_"; - result += TQString::number(i); - } - objectNames += result; - objectMapper.insert( name, result ); - return result; -} - -/*! - Returns the registered name for the original name \a name - or \a name if \a name wasn't registered. - - \sa registerObject(), isObjectRegistered() - */ -TQString Uic::registeredName( const TQString& name ) -{ - if ( !objectMapper.contains( name ) ) - return name; - return objectMapper[name]; -} - -/*! - Returns whether the object \a name was registered yet or not. - */ -bool Uic::isObjectRegistered( const TQString& name ) -{ - return objectMapper.contains( name ); -} - - -/*! - Unifies the entries in stringlist \a list. Should really be a TQStringList feature. - */ -TQStringList Uic::unique( const TQStringList& list ) -{ - if ( list.isEmpty() ) - return list; - - TQStringList result; - for ( TQStringList::ConstIterator it = list.begin(); it != list.end(); ++it ) { - if ( !result.contains(*it) ) - result += *it; - } - return result; -} - - - -/*! - Creates an instance of class \a objClass, with parent \a parent and name \a objName - */ -TQString Uic::createObjectInstance( const TQString& objClass, const TQString& parent, const TQString& objName ) -{ - - if ( objClass.mid( 1 ) == "ComboBox" ) { - return objClass + "(0," + parent + ",\"" + objName + "\")"; - } - return objClass + "(" + parent + ",\"" + objName + "\")"; -} - -bool Uic::isLayout( const TQString& name ) const -{ - return layoutObjects.contains( name ); -} diff --git a/python/pyqt/pyuic3/uic.h b/python/pyqt/pyuic3/uic.h deleted file mode 100644 index 0fceff50..00000000 --- a/python/pyqt/pyuic3/uic.h +++ /dev/null @@ -1,183 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** Copyright (c) 2001 Phil Thompson -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#ifndef UIC_H -#define UIC_H -#include -#include -#include -#include -#include -#include -#include - - -#define PYQT_VERSION "3.17.2" - - -class PyIndent -{ -public: - PyIndent() : tabStop(4), current(0) {calc();} - - void setTabStop(uint n) {tabStop = n; calc();} - uint setIndent(uint i) {uint old = current; current = i; calc(); return old;} - void operator++() {++current; calc();} - void operator--() {--current; calc();} - operator TQString() {return indstr;} - -private: - uint tabStop; - uint current; - TQString indstr; - - void calc(); -}; - - -class Uic : public Qt -{ -public: - Uic( const TQString &fn, const char *outputFn, TQTextStream& out, - TQDomDocument doc, bool subcl, const TQString &trm, - const TQString& subclname, TQString &uicClass ); - - static void setIndent(const PyIndent &pyind) {indent = pyind; trindent = pyind;} - - void createFormImpl( const TQDomElement &e ); - - void createSubImpl( const TQDomElement &e, const TQString& subclname ); - - void createActionImpl( const TQDomElement& e, const TQString &parent ); - void createToolbarImpl( const TQDomElement &e, const TQString &parentClass, const TQString &parent ); - void createMenuBarImpl( const TQDomElement &e, const TQString &parentClass, const TQString &parent ); - void createPopupMenuImpl( const TQDomElement &e, const TQString &parentClass, const TQString &parent ); - TQString createObjectImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout = TQString::null ); - TQString createLayoutImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout = TQString::null ); - TQString createObjectInstance( const TQString& objClass, const TQString& parent, const TQString& objName ); - TQString createSpacerImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout = TQString::null ); - void createExclusiveProperty( const TQDomElement & e, const TQString& exclusiveProp ); - TQString createListBoxItemImpl( const TQDomElement &e, const TQString &parent, TQString *value = 0 ); - TQString createIconViewItemImpl( const TQDomElement &e, const TQString &parent ); - TQString createListViewColumnImpl( const TQDomElement &e, const TQString &parent, TQString *value = 0 ); - TQString createTableRowColumnImpl( const TQDomElement &e, const TQString &parent, TQString *value = 0 ); - TQString createListViewItemImpl( const TQDomElement &e, const TQString &parent, - const TQString &parentItem ); - void createColorGroupImpl( const TQString& cg, const TQDomElement& e ); - TQColorGroup loadColorGroup( const TQDomElement &e ); - - TQDomElement getObjectProperty( const TQDomElement& e, const TQString& name ); - TQString getPixmapLoaderFunction( const TQDomElement& e ); - TQString getFormClassName( const TQDomElement& e ); - TQString getClassName( const TQDomElement& e ); - TQString getObjectName( const TQDomElement& e ); - TQString getLayoutName( const TQDomElement& e ); - TQString getInclude( const TQString& className ); - - TQString setObjectProperty( const TQString& objClass, const TQString& obj, const TQString &prop, const TQDomElement &e, bool stdset ); - - TQString registerObject( const TQString& name ); - TQString registeredName( const TQString& name ); - bool isObjectRegistered( const TQString& name ); - TQStringList unique( const TQStringList& ); - - TQString trcall( const TQString& sourceText, const TQString& comment = "" ); - - static void embed( TQTextStream& out, const char* project, const TQStringList& images ); - -private: - TQTextStream& out; - TQTextOStream trout; - TQString languageChangeBody; - TQCString outputFileName; - TQStringList objectNames; - TQMap objectMapper; - TQStringList tags; - TQStringList layouts; - TQString formName; - TQString lastItem; - TQString trmacro; - static PyIndent indent, trindent; - - struct Buddy - { - Buddy( const TQString& k, const TQString& b ) - : key( k ), buddy( b ) {} - Buddy(){} // for valuelist - TQString key; - TQString buddy; - bool operator==( const Buddy& other ) const - { return (key == other.key); } - }; - struct CustomInclude - { - TQString header; - TQString location; - }; - TQValueList buddies; - - TQStringList layoutObjects; - bool isLayout( const TQString& name ) const; - - uint item_used : 1; - uint cg_used : 1; - uint pal_used : 1; - uint stdsetdef : 1; - uint externPixmaps : 1; - -#if QT_VERSION >= 0x030300 - TQString uiFileVersion; -#endif - TQString nameOfClass; - TQStringList namespaces; - TQString bareNameOfClass; - TQString pixmapLoaderFunction; - - void registerDatabases( const TQDomElement& e ); - bool isWidgetInTable( const TQDomElement& e, const TQString& connection, const TQString& table ); - bool isFrameworkCodeGenerated( const TQDomElement& e ); - TQString getDatabaseInfo( const TQDomElement& e, const TQString& tag ); - void createFormImpl( const TQDomElement& e, const TQString& form, const TQString& connection, const TQString& table ); - void writeFunctionsSubImpl( const TQStringList &fuLst, const TQStringList &typLst, const TQStringList &specLst, - const TQString &subClass, const TQString &descr ); - TQStringList dbConnections; - TQMap< TQString, TQStringList > dbCursors; - TQMap< TQString, TQStringList > dbForms; - - static bool isMainWindow; - static TQString mkBool( bool b ); - static TQString mkBool( const TQString& s ); - bool toBool( const TQString& s ); - static TQString fixString( const TQString &str, bool encode = FALSE ); - static bool onlyAscii; - static TQString mkStdSet( const TQString& prop ); - static TQString getComment( const TQDomNode& n ); - TQVariant defSpacing, defMargin; - TQString fileName; - bool writeFunctImpl; - - void pySlot(TQStringList::ConstIterator &it); - - TQString pyCode; - bool pyNeedTr, pyNeedTrUtf8; -}; - -#endif diff --git a/python/pyqt/pyuic3/widgetdatabase.cpp b/python/pyqt/pyuic3/widgetdatabase.cpp deleted file mode 100644 index 0b1720a8..00000000 --- a/python/pyqt/pyuic3/widgetdatabase.cpp +++ /dev/null @@ -1,953 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition -** licenses may use this file in accordance with the Qt Commercial License -** Agreement provided with the Software. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for -** information about Qt Commercial License Agreements. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#include "widgetdatabase.h" -#include "widgetinterface.h" - -#include -#define NO_STATIC_COLORS -#include -#include -#include -#include -#include -#include -#include - -#include - -const int dbsize = 300; -const int dbcustom = 200; -const int dbdictsize = 211; -static WidgetDatabaseRecord* db[ dbsize ]; -static TQDict *className2Id = 0; -static int dbcount = 0; -static int dbcustomcount = 200; -static TQStrList *wGroups; -static TQStrList *invisibleGroups; -static bool whatsThisLoaded = FALSE; -static QPluginManager *widgetPluginManager = 0; -static bool plugins_set_up = FALSE; -static bool was_in_setup = FALSE; - -TQCleanupHandler > cleanup_manager; - -WidgetDatabaseRecord::WidgetDatabaseRecord() -{ - isForm = FALSE; - isContainer = FALSE; - icon = 0; - nameCounter = 0; - isCommon = FALSE; - isPlugin = FALSE; -} - -WidgetDatabaseRecord::~WidgetDatabaseRecord() -{ - delete icon; -} - - -/*! - \class WidgetDatabase widgetdatabase.h - \brief The WidgetDatabase class holds information about widgets - - The WidgetDatabase holds information about widgets like toolTip(), - iconSet(), ... It works Id-based, so all access functions take the - widget id as parameter. To get the id for a widget (classname), use - idFromClassName(). - - All access functions are static. Having multiple widgetdatabases in - one application doesn't make sense anyway and so you don't need more - than an instance of the widgetdatabase. - - For creating widgets, layouts, etc. see WidgetFactory. -*/ - -/*! - Creates widget database. Does nothing. -*/ - -WidgetDatabase::WidgetDatabase() -{ -} - -/*! Sets up the widget database. If the static widgetdatabase already - exists, the functions returns immediately. -*/ - -void WidgetDatabase::setupDataBase( int id ) -{ - was_in_setup = TRUE; -#ifndef UIC - Q_UNUSED( id ) - if ( dbcount ) - return; -#else - if ( dbcount && id != -2 ) - return; - if ( dbcount && !plugins_set_up ) { - setupPlugins(); - return; - } - if ( dbcount && plugins_set_up) - return; -#endif - - wGroups = new TQStrList; - invisibleGroups = new TQStrList; - invisibleGroups->append( "Forms" ); - invisibleGroups->append( "Temp" ); - className2Id = new TQDict( dbdictsize ); - className2Id->setAutoDelete( TRUE ); - - WidgetDatabaseRecord *r = 0; - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_pushbutton.png"; - r->name = "TQPushButton"; - r->group = widgetGroup( "Buttons" ); - r->toolTip = "Push Button"; - r->isCommon = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_toolbutton.png"; - r->name = "TQToolButton"; - r->group = widgetGroup( "Buttons" ); - r->toolTip = "Tool Button"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_radiobutton.png"; - r->name = "TQRadioButton"; - r->group = widgetGroup( "Buttons" ); - r->toolTip = "Radio Button"; - r->isCommon = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_checkbox.png"; - r->name = "TQCheckBox"; - r->group = widgetGroup( "Buttons" ); - r->toolTip = "Check Box"; - r->isCommon = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_groupbox.png"; - r->name = "TQGroupBox"; - r->group = widgetGroup( "Containers" ); - r->toolTip = "Group Box"; - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_buttongroup.png"; - r->name = "TQButtonGroup"; - r->group = widgetGroup( "Containers" ); - r->toolTip = "Button Group"; - r->isContainer = TRUE; - r->isCommon = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_frame.png"; - r->name = "TQFrame"; - r->group = widgetGroup( "Containers" ); - r->toolTip = "Frame"; - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_tabwidget.png"; - r->name = "TQTabWidget"; - r->group = widgetGroup( "Containers" ); - r->toolTip = "Tabwidget"; - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_widgetstack.png"; - r->name = "TQWidgetStack"; - r->group = widgetGroup( "Containers" ); - r->toolTip = "Widget Stack"; - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_toolbox.png"; - r->name = "TQToolBox"; - r->group = widgetGroup( "Containers" ); - r->toolTip = "Tool Box"; - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_listbox.png"; - r->name = "TQListBox"; - r->group = widgetGroup( "Views" ); - r->toolTip = "List Box"; - r->isCommon = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_listview.png"; - r->name = "TQListView"; - r->group = widgetGroup( "Views" ); - r->toolTip = "List View"; - - append( r ); - -#if !defined(QT_NO_ICONVIEW) || defined(UIC) - r = new WidgetDatabaseRecord; - r->iconSet = "designer_iconview.png"; - r->name = "TQIconView"; - r->group = widgetGroup( "Views" ); - r->toolTip = "Icon View"; - - append( r ); -#endif - -#if !defined(QT_NO_TABLE) - r = new WidgetDatabaseRecord; - r->iconSet = "designer_table.png"; - r->name = "TQTable"; - r->group = widgetGroup( "Views" ); - r->toolTip = "Table"; - - append( r ); -#endif - -#if !defined(QT_NO_SQL) - r = new WidgetDatabaseRecord; - r->iconSet = "designer_datatable.png"; - r->includeFile = "tqdatatable.h"; - r->name = "TQDataTable"; - r->group = widgetGroup( "Database" ); - r->toolTip = "Data Table"; - - append( r ); -#endif - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_lineedit.png"; - r->name = "TQLineEdit"; - r->group = widgetGroup( "Input" ); - r->toolTip = "Line Edit"; - r->isCommon = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_spinbox.png"; - r->name = "TQSpinBox"; - r->group = widgetGroup( "Input" ); - r->toolTip = "Spin Box"; - r->isCommon = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_dateedit.png"; - r->name = "QDateEdit"; - r->group = widgetGroup( "Input" ); - r->toolTip = "Date Edit"; - r->includeFile = "tqdatetimeedit.h"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_timeedit.png"; - r->name = "QTimeEdit"; - r->group = widgetGroup( "Input" ); - r->toolTip = "Time Edit"; - r->includeFile = "tqdatetimeedit.h"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_datetimeedit.png"; - r->name = "QDateTimeEdit"; - r->group = widgetGroup( "Input" ); - r->toolTip = "Date-Time Edit"; - r->includeFile = "tqdatetimeedit.h"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_multilineedit.png"; - r->name = "TQMultiLineEdit"; - r->group = widgetGroup( "Temp" ); - r->toolTip = "Multi Line Edit"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_richtextedit.png"; - r->name = "TQTextEdit"; - r->group = widgetGroup( "Input" ); - r->toolTip = "Rich Text Edit"; - r->isCommon = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_combobox.png"; - r->name = "TQComboBox"; - r->group = widgetGroup( "Input" ); - r->toolTip = "Combo Box"; - r->isCommon = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_slider.png"; - r->name = "TQSlider"; - r->group = widgetGroup( "Input" ); - r->toolTip = "Slider"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_scrollbar.png"; - r->name = "TQScrollBar"; - r->group = widgetGroup( "Input" ); - r->toolTip = "Scrollbar"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_dial.png"; - r->name = "TQDial"; - r->group = widgetGroup( "Input" ); - r->toolTip = "Dial"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_label.png"; - r->name = "TQLabel"; - r->group = widgetGroup( "Temp" ); - r->toolTip = "Label"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_label.png"; - r->name = "TextLabel"; - r->group = widgetGroup( "Display" ); - r->toolTip = "Text Label"; - r->whatsThis = "The Text Label provides a widget to display static text."; - r->isCommon = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_pixlabel.png"; - r->name = "PixmapLabel"; - r->group = widgetGroup( "Display" ); - r->toolTip = "Pixmap Label"; - r->whatsThis = "The Pixmap Label provides a widget to display pixmaps."; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_lcdnumber.png"; - r->name = "TQLCDNumber"; - r->group = widgetGroup( "Display" ); - r->toolTip = "LCD Number"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_line.png"; - r->name = "Line"; - r->group = widgetGroup( "Display" ); - r->toolTip = "Line"; - r->includeFile = "tqframe.h"; - r->whatsThis = "The Line widget provides horizontal and vertical lines."; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_progress.png"; - r->name = "TQProgressBar"; - r->group = widgetGroup( "Display" ); - r->toolTip = "Progress Bar"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_textview.png"; - r->name = "TQTextView"; - r->group = widgetGroup( "Temp" ); - r->toolTip = "Text View"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_textbrowser.png"; - r->name = "TQTextBrowser"; - r->group = widgetGroup( "Display" ); - r->toolTip = "Text Browser"; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_spacer.png"; - r->name = "Spacer"; - r->group = widgetGroup( "Temp" ); - r->toolTip = "Spacer"; - r->whatsThis = "The Spacer provides horizontal and vertical spacing to be able to manipulate the behaviour of layouts."; - - append( r ); - - r = new WidgetDatabaseRecord; - r->name = "TQWidget"; - r->isForm = TRUE; - r->group = widgetGroup( "Forms" ); - - append( r ); - - r = new WidgetDatabaseRecord; - r->name = "TQDialog"; - r->group = widgetGroup( "Forms" ); - r->isForm = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->name = "TQWizard"; - r->group = widgetGroup( "Forms" ); - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->name = "QDesignerWizard"; - r->group = widgetGroup( "Forms" ); - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->name = "QLayoutWidget"; - r->group = widgetGroup( "Temp" ); - r->includeFile = ""; - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->name = "TQSplitter"; - r->group = widgetGroup( "Temp" ); - r->includeFile = "tqsplitter.h"; - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_tabwidget.png"; - r->name = "QDesignerTabWidget"; - r->group = widgetGroup( "Temp" ); - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_tabwidget.png"; - r->name = "QDesignerWidget"; - r->group = widgetGroup( "Temp" ); - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = "designer_tabwidget.png"; - r->name = "QDesignerDialog"; - r->group = widgetGroup( "Temp" ); - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = ""; - r->name = "TQMainWindow"; - r->includeFile = "tqmainwindow.h"; - r->group = widgetGroup( "Temp" ); - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = ""; - r->name = "QDesignerAction"; - r->includeFile = "tqaction.h"; - r->group = widgetGroup( "Temp" ); - r->isContainer = FALSE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = ""; - r->name = "QDesignerActionGroup"; - r->includeFile = "tqaction.h"; - r->group = widgetGroup( "Temp" ); - r->isContainer = FALSE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = ""; - r->name = "TQScrollView"; - r->includeFile = "tqscrollview.h"; - r->group = widgetGroup( "Temp" ); - r->isContainer = TRUE; - - append( r ); - -#ifndef QT_NO_SQL - r = new WidgetDatabaseRecord; - r->iconSet = ""; - r->name = "TQDataBrowser"; - r->includeFile = "tqdatabrowser.h"; - r->group = widgetGroup( "Database" ); - r->toolTip = "Data Browser"; - r->iconSet = "designer_databrowser.png"; - r->isContainer = TRUE; - - append( r ); - - r = new WidgetDatabaseRecord; - r->iconSet = ""; - r->name = "TQDataView"; - r->includeFile = "tqdataview.h"; - r->group = widgetGroup( "Database" ); - r->toolTip = "Data View"; - r->iconSet = "designer_dataview.png"; - r->isContainer = TRUE; - - append( r ); -#endif - -#ifndef UIC - setupPlugins(); -#endif -} - -void WidgetDatabase::setupPlugins() -{ - if ( plugins_set_up ) - return; - plugins_set_up = TRUE; - TQStringList widgets = widgetManager()->featureList(); - for ( TQStringList::Iterator it = widgets.begin(); it != widgets.end(); ++it ) { - if ( hasWidget( *it ) ) - continue; - WidgetDatabaseRecord *r = new WidgetDatabaseRecord; - WidgetInterface *iface = 0; - widgetManager()->queryInterface( *it, &iface ); - if ( !iface ) - continue; - -#ifndef UIC - TQIconSet icon = iface->iconSet( *it ); - if ( !icon.pixmap().isNull() ) - r->icon = new TQIconSet( icon ); -#endif - TQString grp = iface->group( *it ); - if ( grp.isEmpty() ) - grp = "3rd party widgets"; - r->group = widgetGroup( grp ); - r->toolTip = iface->toolTip( *it ); - r->whatsThis = iface->whatsThis( *it ); - r->includeFile = iface->includeFile( *it ); - r->isContainer = iface->isContainer( *it ); - r->name = *it; - r->isPlugin = TRUE; - append( r ); - iface->release(); - } -} - -/*! - Returns the number of elements in the widget database. -*/ - -int WidgetDatabase::count() -{ - setupDataBase( -1 ); - return dbcount; -} - -/*! - Returns the id at which the ids of custom widgets start. -*/ - -int WidgetDatabase::startCustom() -{ - setupDataBase( -1 ); - return dbcustom; -} - -/*! - Returns the iconset which represents the class registered as \a id. -*/ - -TQIconSet WidgetDatabase::iconSet( int id ) -{ - setupDataBase( id ); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return TQIconSet(); -#if !defined(UIC) && !defined(RESOURCE) - if ( !r->icon ) { - if ( r->iconSet.isEmpty() ) - return TQIconSet(); - TQPixmap pix = TQPixmap::fromMimeSource( r->iconSet ); - if ( pix.isNull() ) - pix = TQPixmap( r->iconSet ); - r->icon = new TQIconSet( pix ); - } - return *r->icon; -#else - return TQIconSet(); -#endif -} - -/*! - Returns the classname of the widget which is registered as \a id. -*/ - -TQString WidgetDatabase::className( int id ) -{ - setupDataBase( id ); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return TQString::null; - return r->name; -} - -/*! - Returns the group the widget registered as \a id belongs to. -*/ - -TQString WidgetDatabase::group( int id ) -{ - setupDataBase( id ); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return TQString::null; - return r->group; -} - -/*! - Returns the tooltip text of the widget which is registered as \a id. -*/ - -TQString WidgetDatabase::toolTip( int id ) -{ - setupDataBase( id ); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return TQString::null; - return r->toolTip; -} - -/*! - Returns the what's this? text of the widget which is registered as \a id. -*/ - -TQString WidgetDatabase::whatsThis( int id ) -{ - setupDataBase( id ); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return TQString::null; - return r->whatsThis; -} - -/*! - Returns the include file if the widget which is registered as \a id. -*/ - -TQString WidgetDatabase::includeFile( int id ) -{ - setupDataBase( id ); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return TQString::null; - if ( r->includeFile.isNull() ) - return r->name.lower() + ".h"; - return r->includeFile; -} - -/*! Returns whether the widget registered as \a id is a form. -*/ -bool WidgetDatabase::isForm( int id ) -{ - setupDataBase( id ); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return FALSE; - return r->isForm; -} - -/*! Returns whether the widget registered as \a id can have children. -*/ - -bool WidgetDatabase::isContainer( int id ) -{ - setupDataBase( id ); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return FALSE; - return r->isContainer || r->isForm; -} - -bool WidgetDatabase::isCommon( int id ) -{ - setupDataBase( id ); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return FALSE; - return r->isCommon; -} - -TQString WidgetDatabase::createWidgetName( int id ) -{ - setupDataBase( id ); - TQString n = className( id ); - if ( n == "QLayoutWidget" ) - n = "Layout"; - if ( n[ 0 ] == 'Q' && n[ 1 ].lower() != n[ 1 ] ) - n = n.mid( 1 ); - int colonColon = n.findRev( "::" ); - if ( colonColon != -1 ) - n = n.mid( colonColon + 2 ); - - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return n; - n += TQString::number( ++r->nameCounter ); - n[0] = n[0].lower(); - return n; -} - -/*! Returns the id for \a name or -1 if \a name is unknown. - */ -int WidgetDatabase::idFromClassName( const TQString &name ) -{ - setupDataBase( -1 ); - if ( name.isEmpty() ) - return 0; - int *i = className2Id->find( name ); - if ( i ) - return *i; - if ( name == "FormWindow" ) - return idFromClassName( "QLayoutWidget" ); -#ifdef UIC - setupDataBase( -2 ); - i = className2Id->find( name ); - if ( i ) - return *i; -#endif - return -1; -} - -bool WidgetDatabase::hasWidget( const TQString &name ) -{ - return className2Id->find( name ) != 0; -} - -WidgetDatabaseRecord *WidgetDatabase::at( int index ) -{ - if ( index < 0 ) - return 0; - if ( index >= dbcustom && index < dbcustomcount ) - return db[ index ]; - if ( index < dbcount ) - return db[ index ]; - return 0; -} - -void WidgetDatabase::insert( int index, WidgetDatabaseRecord *r ) -{ - if ( index < 0 || index >= dbsize ) - return; - db[ index ] = r; - className2Id->insert( r->name, new int( index ) ); - if ( index < dbcustom ) - dbcount = QMAX( dbcount, index ); -} - -void WidgetDatabase::append( WidgetDatabaseRecord *r ) -{ - if ( !was_in_setup ) - setupDataBase( -1 ); - insert( dbcount++, r ); -} - -TQString WidgetDatabase::widgetGroup( const TQString &g ) -{ - if ( wGroups->find( g ) == -1 ) - wGroups->append( g ); - return g; -} - -bool WidgetDatabase::isGroupEmpty( const TQString &grp ) -{ - WidgetDatabaseRecord *r = 0; - for ( int i = 0; i < dbcount; ++i ) { - if ( !( r = db[ i ] ) ) - continue; - if ( r->group == grp ) - return FALSE; - } - return TRUE; -} - -TQString WidgetDatabase::widgetGroup( int i ) -{ - setupDataBase( -1 ); - if ( i >= 0 && i < (int)wGroups->count() ) - return wGroups->at( i ); - return TQString::null; -} - -int WidgetDatabase::numWidgetGroups() -{ - setupDataBase( -1 ); - return wGroups->count(); -} - -bool WidgetDatabase::isGroupVisible( const TQString &g ) -{ - setupDataBase( -1 ); - return invisibleGroups->find( g ) == -1; -} - -int WidgetDatabase::addCustomWidget( WidgetDatabaseRecord *r ) -{ - insert( dbcustomcount++, r ); - return dbcustomcount - 1; -} - -void WidgetDatabase::customWidgetClassNameChanged( const TQString &oldName, - const TQString &newName ) -{ - int id = idFromClassName( oldName ); - if ( id == -1 ) - return; - WidgetDatabaseRecord *r = db[ id ]; - r->name = newName; - className2Id->remove( oldName ); - className2Id->insert( newName, new int( id ) ); -} - -bool WidgetDatabase::isCustomWidget( int id ) -{ - if ( id >= dbcustom && id < dbcustomcount ) - return TRUE; - return FALSE; -} - -bool WidgetDatabase::isCustomPluginWidget( int id ) -{ - setupDataBase( id ); - WidgetDatabaseRecord *r = at( id ); - if ( !r ) - return FALSE; - return r->isPlugin; -} - -bool WidgetDatabase::isWhatsThisLoaded() -{ - return whatsThisLoaded; -} - -void WidgetDatabase::loadWhatsThis( const TQString &docPath ) -{ - TQString whatsthisFile = docPath + "/whatsthis"; - TQFile f( whatsthisFile ); - if ( !f.open( IO_ReadOnly ) ) - return; - TQTextStream ts( &f ); - while ( !ts.atEnd() ) { - TQString s = ts.readLine(); - TQStringList l = TQStringList::split( " | ", s ); - int id = idFromClassName( l[ 1 ] ); - WidgetDatabaseRecord *r = at( id ); - if ( r ) - r->whatsThis = l[ 0 ]; - } - whatsThisLoaded = TRUE; -} - - -// ### Qt 3.1: make these publically accessible via QWidgetDatabase API -#if defined(UIC) -bool dbnounload = FALSE; -TQStringList *dbpaths = 0; -#else -extern TQString *qwf_plugin_dir; -#endif - - -QPluginManager *widgetManager() -{ - if ( !widgetPluginManager ) { - TQString pluginDir = "/designer"; -#if !defined(UIC) - if ( qwf_plugin_dir ) - pluginDir = *qwf_plugin_dir; -#endif - widgetPluginManager = new QPluginManager( IID_Widget, TQApplication::libraryPaths(), pluginDir ); - cleanup_manager.add( &widgetPluginManager ); -#if defined(UIC) - if ( dbnounload ) - widgetPluginManager->setAutoUnload( FALSE ); - if ( dbpaths ) { - TQStringList::ConstIterator it = dbpaths->begin(); - for ( ; it != dbpaths->end(); ++it ) - widgetPluginManager->addLibraryPath( *it ); - } -#endif - } - return widgetPluginManager; -} diff --git a/python/pyqt/pyuic3/widgetdatabase.h b/python/pyqt/pyuic3/widgetdatabase.h deleted file mode 100644 index c75c2a59..00000000 --- a/python/pyqt/pyuic3/widgetdatabase.h +++ /dev/null @@ -1,96 +0,0 @@ -/********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition -** licenses may use this file in accordance with the Qt Commercial License -** Agreement provided with the Software. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for -** information about Qt Commercial License Agreements. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#ifndef WIDGETDATABASE_H -#define WIDGETDATABASE_H - -#include -#include -#include "widgetinterface.h" // up here for GCC 2.7.* compatibility -#include - - -extern QPluginManager *widgetManager(); - -struct WidgetDatabaseRecord -{ - WidgetDatabaseRecord(); - ~WidgetDatabaseRecord(); - TQString iconSet, name, group, toolTip, whatsThis, includeFile; - uint isContainer : 1; - uint isForm : 1; - uint isCommon : 1; - uint isPlugin : 1; - TQIconSet *icon; - int nameCounter; -}; - -class WidgetDatabase : public Qt -{ -public: - WidgetDatabase(); - static void setupDataBase( int id ); - static void setupPlugins(); - - static int count(); - static int startCustom(); - - static TQIconSet iconSet( int id ); - static TQString className( int id ); - static TQString group( int id ); - static TQString toolTip( int id ); - static TQString whatsThis( int id ); - static TQString includeFile( int id ); - static bool isForm( int id ); - static bool isContainer( int id ); - static bool isCommon( int id ); - - static int idFromClassName( const TQString &name ); - static TQString createWidgetName( int id ); - - static WidgetDatabaseRecord *at( int index ); - static void insert( int index, WidgetDatabaseRecord *r ); - static void append( WidgetDatabaseRecord *r ); - - static TQString widgetGroup( const TQString &g ); - static TQString widgetGroup( int i ); - static int numWidgetGroups(); - static bool isGroupVisible( const TQString &g ); - static bool isGroupEmpty( const TQString &grp ); - - static int addCustomWidget( WidgetDatabaseRecord *r ); - static bool isCustomWidget( int id ); - static bool isCustomPluginWidget( int id ); - - static bool isWhatsThisLoaded(); - static void loadWhatsThis( const TQString &docPath ); - - static bool hasWidget( const TQString &name ); - static void customWidgetClassNameChanged( const TQString &oldName, const TQString &newName ); - -}; - -#endif diff --git a/python/pyqt/pyuic3/widgetinterface.h b/python/pyqt/pyuic3/widgetinterface.h deleted file mode 100644 index bf6bcd55..00000000 --- a/python/pyqt/pyuic3/widgetinterface.h +++ /dev/null @@ -1,29 +0,0 @@ - /********************************************************************** -** Copyright (C) 2000-2001 Trolltech AS. All rights reserved. -** -** This file is part of Qt Designer. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.trolltech.com/gpl/ for GPL licensing information. -** -** Contact info@trolltech.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - -#ifndef WIDGETINTERFACE_H -#define WIDGETINTERFACE_H - -#include - -#define WidgetInterface QWidgetFactoryInterface -#define IID_Widget IID_QWidgetFactory - -#endif diff --git a/python/pyqt/sip/pyqt-gpl.sip b/python/pyqt/sip/pyqt-gpl.sip deleted file mode 100644 index bec8f9e3..00000000 --- a/python/pyqt/sip/pyqt-gpl.sip +++ /dev/null @@ -1 +0,0 @@ -%License /Type="gpl"/ diff --git a/python/pyqt/sip/qt/copying.sip b/python/pyqt/sip/qt/copying.sip deleted file mode 100644 index 21c27d4e..00000000 --- a/python/pyqt/sip/qt/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited - -This file is part of PyQt. - -This copy of PyQt is free software; you can redistribute 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. - -PyQt 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 -PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -%End - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/python/pyqt/sip/qt/qaccel.sip b/python/pyqt/sip/qt/qaccel.sip deleted file mode 100644 index dfab728e..00000000 --- a/python/pyqt/sip/qt/qaccel.sip +++ /dev/null @@ -1,104 +0,0 @@ -// This is the SIP interface definition for QAccel. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QAccel - -QAccel is fully implemented. - - -%End - - -class QAccel : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QAccel(QWidget * /TransferThis/,char * = 0); -%If (Qt_2_1_0 -) - QAccel(QWidget *,QObject * /TransferThis/,char * = 0); -%End - - bool isEnabled(); - void setEnabled(bool); - - uint count(); - -%If (- Qt_3_0_0) - int insertItem(int,int = -1); -%End -%If (Qt_3_0_0 -) - int insertItem(const QKeySequence &,int = -1); -%End - void removeItem(int); - void clear(); - -%If (- Qt_3_0_0) - int key(int); - int findKey(int) const; -%End -%If (Qt_3_0_0 -) - QKeySequence key(int); - int findKey(const QKeySequence &) const; -%End - - bool isItemEnabled(int) const; - void setItemEnabled(int,bool); - - bool connectItem(int,SIP_RXOBJ_CON,SIP_SLOT_CON(int)); - bool disconnectItem(int,SIP_RXOBJ_DIS,SIP_SLOT_DIS(int)); - - void repairEventFilter(); - -%If (Qt_2_00 -) - void setWhatsThis(int,const QString &); - QString whatsThis(int) const; - void setIgnoreWhatsThis(bool); - bool ignoreWhatsThis() const; -%End - -%If (Qt_2_00 - Qt_3_0_0) - static int shortcutKey(const QString &); - static QString keyToString(int); - static int stringToKey(const QString &); -%End -%If (Qt_3_0_0 -) - static QKeySequence shortcutKey(const QString &); - static QString keyToString(QKeySequence); - static QKeySequence stringToKey(const QString &); -%End - -signals: - void activated(int); -%If (Qt_3_1_0 -) - void activatedAmbiguously(int); -%End - -protected: - bool eventFilter(QObject *,QEvent *); - -private: - QAccel(const QAccel &); -}; diff --git a/python/pyqt/sip/qt/qaction.sip b/python/pyqt/sip/qt/qaction.sip deleted file mode 100644 index b6f17e64..00000000 --- a/python/pyqt/sip/qt/qaction.sip +++ /dev/null @@ -1,210 +0,0 @@ -// This is the SIP interface definition for QAction and QActionGroup. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QAction (Qt v2.2+) - -QAction is fully implemented. - - - -QActionGroup (Qt v2.2+) - -QActionGroup is fully implemented. - - -%End - - -%If (Qt_ACTION) -%If (Qt_2_2_0 -) - -class QAction : QObject -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_3_0_0) - QAction(QObject * /TransferThis/ = 0,const char * = 0,bool = 0); - QAction(const QString &,const QIconSet &,const QString &,int, - QObject * /TransferThis/,const char * = 0,bool = 0); - QAction(const QString &,const QString &,int,QObject * /TransferThis/, - const char * = 0,bool = 0); -%End -%If (Qt_3_0_0 - Qt_3_2_0) - QAction(QObject * /TransferThis/,const char * = 0,bool = 0); -%End -%If (Qt_3_2_0 -) - QAction(QObject * /TransferThis/,const char * = 0); - QAction(const QString &,QKeySequence,QObject * /TransferThis/, - const char * = 0); - QAction(const QIconSet &,const QString &,QKeySequence, - QObject * /TransferThis/,const char * = 0); -%End -%If (Qt_3_0_0 -) - // Obsolete. - QAction(const QString &,const QIconSet &,const QString &,QKeySequence, - QObject * /TransferThis/,const char * = 0,bool = 0); - // Obsolete. - QAction(const QString &,const QString &,QKeySequence, - QObject * /TransferThis/,const char * = 0,bool = 0); -%End -%If (Qt_3_2_0 -) - // Obsolete. - QAction(QObject * /TransferThis/,const char *,bool); -%End - - virtual void setIconSet(const QIconSet &); - QIconSet iconSet() const; - virtual void setText(const QString &); - QString text() const; - virtual void setMenuText(const QString &); - QString menuText() const; - virtual void setToolTip(const QString &); - QString toolTip() const; - virtual void setStatusTip(const QString &); - QString statusTip() const; - virtual void setWhatsThis(const QString &); - QString whatsThis() const; -%If (- Qt_3_0_0) - virtual void setAccel(int); - int accel() const; -%End -%If (Qt_3_0_0 -) - virtual void setAccel(const QKeySequence &); - QKeySequence accel() const; -%End - virtual void setToggleAction(bool); - bool isToggleAction() const; -%If (- Qt_3_0_0) - virtual void setOn(bool); -%End - bool isOn() const; - bool isEnabled() const; -%If (Qt_3_1_0 -) - bool isVisible() const; -%End - virtual bool addTo(QWidget *); - virtual bool removeFrom(QWidget *); - -protected: -%If (Qt_3_0_0 -) - virtual void addedTo(QWidget *,QWidget *); - virtual void addedTo(int,QPopupMenu *); -%End - -public slots: -%If (Qt_3_3_0 -) - void activate(); -%End -%If (Qt_3_0_0 -) - void toggle(); - virtual void setOn(bool); -%End - virtual void setEnabled(bool); -%If (Qt_3_3_0 -) - void setDisabled(bool); -%End -%If (Qt_3_1_0 -) - void setVisible(bool); -%End - -signals: - void activated(); - void toggled(bool); - -private: -%If (Qt_3_1_0 -) - QAction(const QAction &); -%End -}; - - -class QActionGroup : QAction -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_3_0_0) - QActionGroup(QWidget * /TransferThis/,const char * = 0,bool = 1); -%End -%If (Qt_3_0_0 - Qt_3_2_0) - QActionGroup(QObject * /TransferThis/,const char * = 0,bool = 1); -%End -%If (Qt_3_2_0 -) - QActionGroup(QObject * /TransferThis/,const char * = 0); - // Obsolete. - QActionGroup(QObject * /TransferThis/,const char *,bool); -%End - - void setExclusive(bool); - bool isExclusive() const; -%If (- Qt_3_0_0) - void insert(QAction *); -%End -%If (Qt_3_0_0 -) - void add(QAction *); - void addSeparator(); -%End - bool addTo(QWidget *); - bool removeFrom(QWidget *); - void setEnabled(bool); -%If (Qt_3_2_0 -) - void setToggleAction(bool); - void setOn(bool); -%End - -%If (Qt_3_0_0 -) - void setUsesDropDown(bool); - bool usesDropDown() const; - - void setIconSet(const QIconSet &); - void setText(const QString &); - void setMenuText(const QString &); - void setToolTip(const QString &); - void setWhatsThis(const QString &); -%End - -protected: -%If (Qt_3_0_0 -) - void childEvent(QChildEvent *); - virtual void addedTo(QWidget *,QWidget *,QAction *); - virtual void addedTo(int,QPopupMenu *,QAction *); - virtual void addedTo(QWidget *,QWidget *); - virtual void addedTo(int,QPopupMenu *); -%End - -signals: - void selected(QAction *); - -private: -%If (Qt_3_1_0 -) - QActionGroup(const QActionGroup &); -%End -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qapplication.sip b/python/pyqt/sip/qt/qapplication.sip deleted file mode 100644 index e32725de..00000000 --- a/python/pyqt/sip/qt/qapplication.sip +++ /dev/null @@ -1,574 +0,0 @@ -// This is the SIP interface definition for QApplication. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QApplication - - QApplication - int &argc - char **argv - - -This takes one parameter which is a list of argument strings. Arguments -used by Qt are removed from the list. - - - - QApplication - int &argc - char **argv - bool GUIenabled - - -This takes two parameters, the first of which is a list of argument strings. -Arguments used by Qt are removed from the list. - - - - QApplication - int &argc - char **argv - Type type - - -This takes two parameters, the first of which is a list of argument strings. -Arguments used by Qt are removed from the list. (Qt v2.2+) - - - - int exec - - - -This has been renamed to exec_loop in Python. - - -%End - - -QApplication *qApp; - - -class QApplication : QObject -{ -%TypeHeaderCode -#include -#include -%End - -public: - QApplication(SIP_PYLIST) /PostHook=__pyQtQAppHook__/ [(int &,char **)]; -%MethodCode - // The Python interface is a list of argument strings that is - // modified. - - int argc; - char **argv; - - // Convert the list. - if ((argv = pyArgvToC(a0,argc)) == NULL) - sipIsErr = 1; - else - { - // Create it now the arguments are right. - static int nargc; - nargc = argc; - - Py_BEGIN_ALLOW_THREADS - sipCpp = new sipQApplication(nargc,argv); - Py_END_ALLOW_THREADS - - // Now modify the original list. - updatePyArgv(a0,argc,argv); - } -%End - - QApplication(SIP_PYLIST,bool) /PostHook=__pyQtQAppHook__/ [(int &,char **,bool)]; -%MethodCode - // The Python interface is a list of argument strings that is - // modified. - - int argc; - char **argv; - - // Convert the list. - if ((argv = pyArgvToC(a0,argc)) == NULL) - sipIsErr = 1; - else - { - // Create it now the arguments are right. - static int nargc; - nargc = argc; - - Py_BEGIN_ALLOW_THREADS - sipCpp = new sipQApplication(nargc,argv,a1); - Py_END_ALLOW_THREADS - - // Now modify the original list. - updatePyArgv(a0,argc,argv); - } -%End - -%If (Qt_2_2_0 -) - enum Type { - Tty, - GuiClient, - GuiServer - }; - - QApplication(SIP_PYLIST,Type) /PostHook=__pyQtQAppHook__/ [(int &,char **,Type)]; -%MethodCode - // The Python interface is a list of argument strings that is - // modified. - - int argc; - char **argv; - - // Convert the list. - if ((argv = pyArgvToC(a0,argc)) == NULL) - sipIsErr = 1; - else - { - // Create it now the arguments are right. - static int nargc; - nargc = argc; - - Py_BEGIN_ALLOW_THREADS - sipCpp = new sipQApplication(nargc,argv,(QApplication::Type)a1); - Py_END_ALLOW_THREADS - - // Now modify the original list. - updatePyArgv(a0,argc,argv); - } -%End -%End - - ~QApplication(); -%MethodCode - // Make sure all remaining top level widgets are not owned by - // Python. When a PyQt script terminates we have no control - // over the order in which the QApplication instance and the - // top level widgets are destroyed. If the former happens - // first then we get a seg. fault. We could take the approach - // of only pretending to delete the QApplication instance, but - // Qt seems to allow an application to delete the QApplication - // instance and then create another one. The approach we take - // is to transfer ownership of all top level widgets away from - // Python so that the C++ dtor is not called if they are - // destroyed after the QApplication instance. This might be - // seen as a memory leak - but if we really are terminating - // then it doesn't matter, and if we are just deleting the - // QApplication instance then (I think) we should have already - // deleted the top level widgets manually. In any event, the X - // server resources will be freed. - - QWidgetList *tlw = QApplication::topLevelWidgets(); - QWidgetListIt it(*tlw); - QWidget *w; - - while ((w = it.current()) != 0) - { - PyObject *sw; - - if ((sw = sipGetWrapper(w,sipClass_QWidget)) != NULL) - sipTransferTo(sw,NULL); - - ++it; - } - - delete tlw; -%End - - int argc() const; - SIP_PYLIST argv() const; -%MethodCode - // The Python interface returns a list of strings. - - int argc = sipCpp -> argc(); - - if ((sipRes = PyList_New(argc)) == NULL) - sipIsErr = 1; - else - for (int a = 0; a < argc; ++a) - if (PyList_SetItem(sipRes,a,PyString_FromString(sipCpp -> argv()[a])) < 0) - { - Py_DECREF(sipRes); - sipIsErr = 1; - break; - } -%End - -%If (Qt_2_3_0 -) - Type type() const; -%End -%If (- Qt_2_00) - static GUIStyle style(); - static void setStyle(GUIStyle); -%End -%If (Qt_2_00 -) - static QStyle &style(); - static void setStyle(QStyle * /Transfer/); -%End -%If (Qt_3_0_0 -) - static QStyle *setStyle(const QString &); -%End - -%If (- Qt_2_00) - enum ColorSpec - { - NormalColor = 0, - CustomColor = 1, - PrivateColor = 4, - ManyColor = 4, - TrueColor = 4 - }; -%End -%If (Qt_2_00 -) - enum ColorSpec - { - NormalColor = 0, - CustomColor = 1, - ManyColor = 2 - }; -%End - - static int colorSpec(); - static void setColorSpec(int); - static QCursor *overrideCursor(); - static void setOverrideCursor(QCursor &,bool = 0); - static void restoreOverrideCursor(); - static bool hasGlobalMouseTracking(); - static void setGlobalMouseTracking(bool); -%If (- Qt_2_00) - static QPalette *palette(); - static void setPalette(QPalette &,bool = 0); - static QFont *font(); - static void setFont(const QFont &,bool = 0); -%End -%If (Qt_2_00 -) - static QPalette palette(const QWidget * = 0); - static void setPalette(QPalette &,bool = 0,const char * = 0); - static QFont font(const QWidget * = 0); - static void setFont(const QFont &,bool = 0,const char * = 0); -%End - static QFontMetrics fontMetrics(); - QWidget *mainWidget() const; -%If (- Qt_2_00) - // We may not need the /Transfer/ now that the QApplication dtor is - // instrumented, but we'll leave it in so as not to break old programs - // needlessly. - void setMainWidget(QWidget * /Transfer/); -%End -%If (Qt_2_00 -) - virtual void setMainWidget(QWidget *); - virtual void polish(QWidget *); -%End - static QWidgetList *allWidgets(); - static QWidgetList *topLevelWidgets(); -%If (- Qt_3_0_0) - static QWidget *desktop(); -%End -%If (Qt_3_0_0 -) - static QDesktopWidget *desktop(); -%End - static QWidget *activePopupWidget(); - static QWidget *activeModalWidget(); - static QClipboard *clipboard(); - QWidget *focusWidget() const; -%If (Qt_2_00 -) - QWidget *activeWindow() const; -%End - static QWidget *widgetAt(int,int,bool = 0); - static QWidget *widgetAt(const QPoint &,bool = 0); - -%If (Qt_3_1_0 -) - static QEventLoop *eventLoop(); -%End - - int exec() /PyName=exec_loop, ReleaseGIL, - PreHook=__pyQtPreEventLoopHook__, - PostHook=__pyQtPostEventLoopHook__/; - void processEvents() /ReleaseGIL/; - void processEvents(int) /ReleaseGIL/; - void processOneEvent() /ReleaseGIL/; -%If (Qt_3_0_0 -) - bool hasPendingEvents(); -%End - int enter_loop() /ReleaseGIL/; - void exit_loop(); -%If (Qt_2_00 -) - int loopLevel() const; -%End - static void exit(int = 0); - static bool sendEvent(QObject *,QEvent *) /ReleaseGIL/; - static void postEvent(QObject *,QEvent * /Transfer/) /ReleaseGIL/; - static void sendPostedEvents(QObject *,int) /ReleaseGIL/; -%If (Qt_2_00 -) - static void sendPostedEvents() /ReleaseGIL/; - static void removePostedEvents(QObject *); -%End - virtual bool notify(QObject *,QEvent *) /ReleaseGIL/; - static bool startingUp(); - static bool closingDown(); - static void flushX(); -%If (Qt_3_0_0 -) - static void flush(); -%End - static void syncX(); - static void beep(); -%If (Qt_2_00 -) - void setDefaultCodec(QTextCodec *); - QTextCodec *defaultCodec() const; - void installTranslator(QTranslator *); - void removeTranslator(QTranslator *); -%End -%If (Qt_2_00 - Qt_3_0_0) - QString translate(const char *,const char *) const; -%End -%If (Qt_2_2_0 - Qt_3_0_0) - QString translate(const char *,const char *,const char *) const; -%End -%If (Qt_3_0_0 -) - enum Encoding { - DefaultCodec, - UnicodeUTF8 - }; - - QString translate(const char *,const char *,const char * = 0, - Encoding = DefaultCodec) const; -%End -%If (Qt_3_2_0 -) - QString applicationDirPath(); - QString applicationFilePath(); -%End -%If (- Qt_3_0_0) - static void setWinStyleHighlightColor(const QColor &); - static const QColor &winStyleHighlightColor(); -%End -%If (Qt_2_00 -) - static void setDesktopSettingsAware(bool); - static bool desktopSettingsAware(); - static void setCursorFlashTime(int); - static int cursorFlashTime(); -%End - static void setDoubleClickInterval(int); - static int doubleClickInterval(); -%If (Qt_2_1_0 -) - static void setWheelScrollLines(int); - static int wheelScrollLines(); -%If (Qt_2_2_0 -) - static void setGlobalStrut(const QSize &); - static QSize globalStrut(); -%End -%If (Qt_3_0_0 -) - static void setLibraryPaths(const QStringList &); - static QStringList libraryPaths(); - static void addLibraryPath(const QString &); - static void removeLibraryPath(const QString &); -%End - static void setStartDragTime(int); - static int startDragTime(); - static void setStartDragDistance(int); - static int startDragDistance(); -%If (Qt_3_0_0 -) - static void setReverseLayout(bool); - static bool reverseLayout(); - - static int horizontalAlignment(int); -%End -%If (Qt_2_2_0 -) - static bool isEffectEnabled(Qt::UIEffect); - static void setEffectEnabled(Qt::UIEffect,bool = 1); -%End -%End - - -%If (Qt_2_00 -) - bool isSessionRestored() const; - QString sessionId() const; -%If (Qt_3_1_0 -) - QString sessionKey() const; -%End - virtual void commitData(QSessionManager &); - virtual void saveState(QSessionManager &); -%End -%If (Qt_2_1_0 -) - void wakeUpGuiThread(); -%End -%If (Qt_THREAD_SUPPORT) -%If (Qt_2_2_0 -) - void lock() /ReleaseGIL/; - void unlock(bool = 1); - bool locked(); -%End -%If (Qt_3_0_0 -) - bool tryLock(); -%End -%End - -signals: - void lastWindowClosed(); -%If (Qt_2_00 -) - void aboutToQuit(); -%End -%If (Qt_2_1_0 -) - void guiThreadAwake(); -%End - -public slots: - void quit(); -%If (Qt_2_00 -) - void closeAllWindows(); -%End -%If (Qt_3_2_0 -) - void aboutQt(); -%End - -protected: -%If (Qt_3_1_0 -) - bool event(QEvent *); -%End - -private: - QApplication(const QApplication &); - - -%TypeCode -#include - - -// Convert a Python argv list to a conventional C argc count and argv array. -static char **pyArgvToC(PyObject *argvlist,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; - - return argv; -} - - -// Remove arguments from the Python argv list that have been removed from the -// C argv array. -static 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 - -}; - - -enum QtMsgType { - QtDebugMsg, - QtWarningMsg, - QtFatalMsg -}; - - -SIP_PYCALLABLE qInstallMsgHandler(SIP_PYCALLABLE /AllowNone/); -%MethodCode - void (*old)(QtMsgType, const char *); - - // Treat None as the default handler. - old = qInstallMsgHandler((a0 != Py_None) ? pyqtMsgHandler : 0); - - // If we recognise the old handler, then return it. Otherwise return - // the default handler. This doesn't exactly mimic the Qt behaviour - // but it is probably close enough for the way it will be used. - sipRes = (old == pyqtMsgHandler) ? pyqtPyMsgHandler : Py_None; - Py_INCREF(sipRes); - - // Save the new Python handler. - Py_XDECREF(pyqtPyMsgHandler); - pyqtPyMsgHandler = a0; - Py_INCREF(pyqtPyMsgHandler); -%End - -%ModuleCode -// The user supplied Python handler. -static PyObject *pyqtPyMsgHandler = 0; - -// The C++ wrapper around the Python handler. -static void pyqtMsgHandler(QtMsgType type, const char *msg) -{ - PyObject *res; - - SIP_BLOCK_THREADS - -#if SIP_VERSION >= 0x040200 - res = sipCallMethod(0, pyqtPyMsgHandler, "Es", type, sipEnum_QtMsgType, msg); -#elif SIP_VERSION >= 0x040000 - res = sipCallMethod(0, pyqtPyMsgHandler, "es", type, msg); -#else - PyObject *args = Py_BuildValue("is", type, msg); - - if (args != NULL) - { - res = PyEval_CallObject(pyqtPyMsgHandler, args); - Py_DECREF(args); - } -#endif - - Py_XDECREF(res); - - if (res != NULL && res != Py_None) - { - PyErr_SetString(PyExc_TypeError, "invalid result type from PyQt message handler"); - res = NULL; - } - - if (res == NULL) - PyErr_Print(); - - SIP_UNBLOCK_THREADS -} -%End diff --git a/python/pyqt/sip/qt/qarray.sip b/python/pyqt/sip/qt/qarray.sip deleted file mode 100644 index 9e309fd0..00000000 --- a/python/pyqt/sip/qt/qarray.sip +++ /dev/null @@ -1,94 +0,0 @@ -// This is the SIP interface definition for all types based on the QArray -// template. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QArray<type> (Qt 1.x, 2.x) - -Types based on the QArray template are automatically -converted to and from Python lists of the type. - - -%End - - -%If (- Qt_3_0_0) - -%MappedType QArray -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - // Convert to a Python list of integers. - - 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,PyInt_FromLong((long)(sipCpp -> at(i)))) < 0) - { - Py_DECREF(l); - - return NULL; - } - - return l; -%End - -%ConvertToTypeCode - // Convert a Python list of integers to a QArray on the heap. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QArray *qa = new QArray(PyList_GET_SIZE(sipPy)); - - PyErr_Clear(); - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - { - qa[i] = (int)PyInt_AsLong(PyList_GET_ITEM(sipPy,i)); - - if (PyErr_Occurred() != NULL) - { - delete qa; - *sipIsErr = 1; - - return 0; - } - } - - *sipCppPtr = qa; - - return sipGetState(sipTransferObj); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qassistantclient.sip b/python/pyqt/sip/qt/qassistantclient.sip deleted file mode 100644 index c9134b80..00000000 --- a/python/pyqt/sip/qt/qassistantclient.sip +++ /dev/null @@ -1,63 +0,0 @@ -// This is the SIP interface definition for QAssistantClient. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QAssistantClient (Qt v3.1+) - -QAssistantClient is fully implemented. - - -%End - - -%If (Qt_ASSISTANTCLIENT) -%If (Qt_3_1_0 -) - -class QAssistantClient : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QAssistantClient(const QString &,QObject * /TransferThis/ = 0, - const char * = 0); - - bool isOpen() const; - -%If (Qt_3_2_0 -) - void setArguments(const QStringList &); -%End - -public slots: - virtual void openAssistant() /ReleaseGIL/; - virtual void closeAssistant(); - virtual void showPage(const QString &); - -signals: - void assistantOpened(); - void assistantClosed(); - void error(const QString &); -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qbitmap.sip b/python/pyqt/sip/qt/qbitmap.sip deleted file mode 100644 index 4348ff40..00000000 --- a/python/pyqt/sip/qt/qbitmap.sip +++ /dev/null @@ -1,59 +0,0 @@ -// This is the SIP interface definition for QBitmap. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QBitmap - -QBitmap is fully implemented. - - -%End - - -class QBitmap : QPixmap -{ -%TypeHeaderCode -#include -%End - -public: - QBitmap(); -%If (- Qt_2_00) - QBitmap(int,int,bool = 0); - QBitmap(const QSize &,bool = 0); -%End -%If (Qt_2_00 -) - QBitmap(int,int,bool = 0,QPixmap::Optimization = QPixmap::DefaultOptim); - QBitmap(const QSize &,bool = 0,QPixmap::Optimization = QPixmap::DefaultOptim); -%End - QBitmap(int,int,uchar *,bool = 0); - QBitmap(const QSize &,uchar *,bool = 0); - QBitmap(const QBitmap &); -%If (- Qt_2_00) - QBitmap(const char *,const char * = 0); -%End -%If (Qt_2_00 -) - QBitmap(const QString &,const char * = 0); -%End - - QBitmap xForm(const QWMatrix &) const; -}; diff --git a/python/pyqt/sip/qt/qbrush.sip b/python/pyqt/sip/qt/qbrush.sip deleted file mode 100644 index ccd067f1..00000000 --- a/python/pyqt/sip/qt/qbrush.sip +++ /dev/null @@ -1,105 +0,0 @@ -// This is the SIP interface definition for QBrush. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QBrush - -QBrush is fully implemented, including the Python -== and != operators. - - -%End - - -%If (- Qt_2_00) - -enum BrushStyle { - NoBrush, - SolidPattern, - Dense1Pattern, - Dense2Pattern, - Dense3Pattern, - Dense4Pattern, - Dense5Pattern, - Dense6Pattern, - Dense7Pattern, - HorPattern, - VerPattern, - CrossPattern, - BDiagPattern, - FDiagPattern, - DiagCrossPattern, - CustomPattern = 24 -}; - - -class QBrush -{ -%TypeHeaderCode -#include -%End - -public: - QBrush(); - QBrush(BrushStyle); - QBrush(const QColor &,BrushStyle = SolidPattern); - QBrush(const QColor &,const QPixmap &); - QBrush(const QBrush &); - - BrushStyle style() const; - void setStyle(BrushStyle); - const QColor &color() const; - void setColor(const QColor &); - QPixmap *pixmap() const; - void setPixmap(const QPixmap &); -}; - -%End - - -%If (Qt_2_00 -) - -class QBrush : Qt -{ -%TypeHeaderCode -#include -%End - -public: - QBrush(); - QBrush(BrushStyle); - QBrush(const QColor &,BrushStyle = SolidPattern); - QBrush(const QColor &,const QPixmap &); - QBrush(const QBrush &); - - BrushStyle style() const; - void setStyle(BrushStyle); - const QColor &color() const; - void setColor(const QColor &); - QPixmap *pixmap() const; - void setPixmap(const QPixmap &); - - bool operator==(const QBrush &) const; - bool operator!=(const QBrush &) const; -}; - -%End diff --git a/python/pyqt/sip/qt/qbutton.sip b/python/pyqt/sip/qt/qbutton.sip deleted file mode 100644 index bbaca260..00000000 --- a/python/pyqt/sip/qt/qbutton.sip +++ /dev/null @@ -1,184 +0,0 @@ -// This is the SIP interface definition for QButton. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QButton - -QButton is fully implemented. - - -%End - - -class QButton : QWidget -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QButton(QWidget * /TransferThis/ = 0,const char * = 0); -%End -%If (Qt_2_00 -) - QButton(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); -%End - -%If (- Qt_2_00) - const char *text() const; - void setText(const char *); -%End -%If (Qt_2_00 -) - QString text() const; - virtual void setText(const QString &); -%End - const QPixmap *pixmap() const; -%If (- Qt_2_00) - void setPixmap(const QPixmap &); -%End -%If (Qt_2_00 -) - virtual void setPixmap(const QPixmap &); -%End - -%If (- Qt_3_0_0) - int accel() const; -%End -%If (Qt_3_0_0 -) - QKeySequence accel() const; -%End -%If (- Qt_2_00) - void setAccel(int); -%End -%If (Qt_2_00 - Qt_3_0_0) - virtual void setAccel(int); -%End -%If (Qt_3_0_0 -) - virtual void setAccel(const QKeySequence &); -%End - - bool isToggleButton() const; - -%If (Qt_2_00 -) - enum ToggleType - { - SingleShot, - Toggle, - Tristate - }; - - ToggleType toggleType() const; -%End - -%If (- Qt_2_00) - void setDown(bool); -%End -%If (Qt_2_00 -) - virtual void setDown(bool); -%End - bool isDown() const; - - bool isOn() const; - -%If (Qt_2_00 -) - enum ToggleState - { - Off, - NoChange, - On - }; - - ToggleState state() const; -%End - -%If (- Qt_3_0_0) - bool autoResize() const; -%End -%If (- Qt_2_00) - void setAutoResize(bool); -%End -%If (Qt_2_00 - Qt_3_0_0) - virtual void setAutoResize(bool); -%End - - bool autoRepeat() const; -%If (- Qt_2_00) - void setAutoRepeat(bool); -%End -%If (Qt_2_00 -) - virtual void setAutoRepeat(bool); -%End - -%If (Qt_2_00 -) - bool isExclusiveToggle() const; -%End - -%If (Qt_2_00 - Qt_3_0_0) - bool focusNextPrevChild(bool); -%End - -%If (Qt_2_00 -) - QButtonGroup *group() const; -%End - -public slots: - void animateClick(); - void toggle(); - -signals: - void pressed(); - void released(); - void clicked(); - void toggled(bool); -%If (Qt_2_00 -) - void stateChanged(int); -%End - -protected: - void setToggleButton(bool); -%If (Qt_2_00 -) - virtual void setToggleType(ToggleType); -%End - void setOn(bool); -%If (Qt_2_00 -) - virtual void setState(ToggleState); -%End - - virtual bool hitButton(const QPoint &) const; - virtual void drawButton(QPainter *); - virtual void drawButtonLabel(QPainter *); - - void keyPressEvent(QKeyEvent *); -%If (Qt_2_1_0 -) - void keyReleaseEvent(QKeyEvent *); -%End - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - void paintEvent(QPaintEvent *); - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); - - void enabledChange(bool); - -private: - QButton(const QButton &); -}; diff --git a/python/pyqt/sip/qt/qbuttongroup.sip b/python/pyqt/sip/qt/qbuttongroup.sip deleted file mode 100644 index 15221315..00000000 --- a/python/pyqt/sip/qt/qbuttongroup.sip +++ /dev/null @@ -1,104 +0,0 @@ -// This is the SIP interface definition for QButtonGroup. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QButtonGroup - -QButtonGroup is fully implemented. - - -%End - - -class QButtonGroup : QGroupBox -{ -%TypeHeaderCode -#include -%End - -public: - QButtonGroup(QWidget * /TransferThis/ = 0,const char * = 0); -%If (- Qt_2_00) - QButtonGroup(const char *,QWidget * /TransferThis/ = 0, - const char * = 0); -%End -%If (Qt_2_00 -) - QButtonGroup(const QString &,QWidget * /TransferThis/ = 0, - const char * = 0); - QButtonGroup(int,Orientation,QWidget * /TransferThis/ = 0, - const char * = 0); - QButtonGroup(int,Orientation,const QString &, - QWidget * /TransferThis/ = 0,const char * = 0); -%End - - bool isExclusive() const; -%If (- Qt_2_00) - void setExclusive(bool); - void setButton(int); -%End -%If (Qt_2_00 -) - bool isRadioButtonExclusive() const; - virtual void setExclusive(bool); - virtual void setRadioButtonExclusive(bool); -%End - - int insert(QButton *,int = -1); - void remove(QButton *); - QButton *find(int) const; -%If (Qt_2_00 -) - int id(QButton *) const; - int count() const; - - virtual void setButton(int); - - virtual void moveFocus(int); -%End - -%If (Qt_2_00 - Qt_3_0_0) - QButton *selected(); -%End -%If (Qt_3_0_0 -) - QButton *selected() const; -%End -%If (Qt_3_2_0 -) - int selectedId() const; -%End - -signals: - void pressed(int); - void released(int); - void clicked(int); - -protected slots: - void buttonPressed(); - void buttonReleased(); - void buttonClicked(); - void buttonToggled(bool); - -protected: -%If (Qt_3_1_0 -) - bool event(QEvent *); -%End - -private: - QButtonGroup(const QButtonGroup &); -}; diff --git a/python/pyqt/sip/qt/qbytearray.sip b/python/pyqt/sip/qt/qbytearray.sip deleted file mode 100644 index eab5bb99..00000000 --- a/python/pyqt/sip/qt/qbytearray.sip +++ /dev/null @@ -1,203 +0,0 @@ -// This is the SIP interface definition for QByteArray. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QByteArray - -A Python string can be used whenever a QByteArray can be -used. A QByteArray can be converted to a Python string -using the Python str() function. - - - - QByteArray &assign - const char *data - uint size - - -Not implemented. - - - - char &at - uint i - - -Not yet implemented. - - - - int contains - const char &d - - -Not yet implemented. - - - - bool fill - const char &d - int size = -1 - - -Not yet implemented. - - - - int find - const char &d - uint i = 0 - - -Not yet implemented. - - - - void resetRawData - const char *data - uintsize - - -Not implemented. - - - - QByteArray &setRawData - const char *data - uintsize - - -Not implemented. - - -%End - - -class QByteArray -{ -%TypeHeaderCode -#include -%End - -public: - QByteArray(); - QByteArray(int); - QByteArray(const QByteArray &); - - SIP_PYOBJECT data() const; -%MethodCode - // QByteArrays aren't '\0' terminated so set the size - // explicitly. - - char *res; - uint len; - - Py_BEGIN_ALLOW_THREADS - res = sipCpp -> data(); - len = sipCpp -> size(); - Py_END_ALLOW_THREADS - - if (res) - { - if ((sipRes = PyString_FromStringAndSize(res,len)) == NULL) - sipIsErr = 1; - } - else - { - Py_INCREF(Py_None); - sipRes = Py_None; - } -%End - - // These are actually in QMemArray, which isn't implemented so pretend - // they are here. - - uint nrefs() const; - bool isEmpty() const; - bool isNull() const; - bool resize(uint); - bool truncate(uint); -// bool fill(const char &,int = -1); - void detach(); - QByteArray copy() const; - QByteArray &assign(const QByteArray &); -// QByteArray &assign(const char *,uint); - QByteArray &duplicate(const QByteArray &); - QByteArray &duplicate(const char *,uint); -// QByteArray &setRawData(const char *,uint); -// void resetRawData(const char *,uint); -// int find(const char &,uint = 0) const; -// int contains(const char &) const; -// char &at(uint) const; - - SIP_PYOBJECT __str__(); -%MethodCode - // QByteArrays aren't '\0' terminated so set the size - // explicitly. - - char *data; - uint len; - - Py_BEGIN_ALLOW_THREADS - data = sipCpp -> data(); - len = sipCpp -> size(); - Py_END_ALLOW_THREADS - - if (data == NULL) - sipRes = PyString_FromString(""); - else - sipRes = PyString_FromStringAndSize(data,len); -%End - -%ConvertToTypeCode - // Allow a Python string whenever a QByteArray is expected. - - if (sipIsErr == NULL) - return (PyString_Check(sipPy) || - sipCanConvertToInstance(sipPy,sipClass_QByteArray,SIP_NO_CONVERTORS)); - - if (PyString_Check(sipPy)) - { - Py_BEGIN_ALLOW_THREADS - QByteArray *ba = new QByteArray(); - - ba -> duplicate(PyString_AS_STRING(sipPy),PyString_GET_SIZE(sipPy)); - - *sipCppPtr = ba; - Py_END_ALLOW_THREADS - - return sipGetState(sipTransferObj); - } - - *sipCppPtr = reinterpret_cast(sipConvertToInstance(sipPy,sipClass_QByteArray,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr)); - - return 0; -%End -}; - - -%If (Qt_3_1_0 -) -QByteArray qCompress(const uchar * /Array/,int /ArraySize/); -QByteArray qCompress(const QByteArray &); -QByteArray qUncompress(const uchar * /Array/,int /ArraySize/); -QByteArray qUncompress(const QByteArray &); -%End diff --git a/python/pyqt/sip/qt/qcdestyle.sip b/python/pyqt/sip/qt/qcdestyle.sip deleted file mode 100644 index 6eb6690f..00000000 --- a/python/pyqt/sip/qt/qcdestyle.sip +++ /dev/null @@ -1,68 +0,0 @@ -// This is the SIP interface definition for QCDEStyle. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QCDEStyle (Qt v2+) - -QCDEStyle is fully implemented. - - -%End - - -%If (Qt_STYLE_CDE) -%If (Qt_2_00 -) - -class QCDEStyle : QMotifStyle -{ -%TypeHeaderCode -#include -%End - -public: - QCDEStyle(bool = 0); - -%If (- Qt_3_0_0) - int defaultFrameWidth() const; - void drawArrow(QPainter *,ArrowType,bool,int,int,int,int, - const QColorGroup &,bool,const QBrush * = 0); - void drawIndicator(QPainter *,int,int,int,int,const QColorGroup &,int, - bool = 0,bool = 1); - void drawExclusiveIndicator(QPainter *,int,int,int,int, - const QColorGroup &,bool,bool = 0,bool = 1); -%End -%If (Qt_3_0_0 -) - int pixelMetric(PixelMetric,const QWidget * = 0) const; - - void drawControl(ControlElement,QPainter *,const QWidget *, - const QRect &,const QColorGroup &, - SFlags = Style_Default, - const QStyleOption & = QStyleOption()) const; - - void drawPrimitive(PrimitiveElement,QPainter *,const QRect &, - const QColorGroup &,SFlags = Style_Default, - const QStyleOption & = QStyleOption()) const; -%End -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qcheckbox.sip b/python/pyqt/sip/qt/qcheckbox.sip deleted file mode 100644 index 4f2f5a1f..00000000 --- a/python/pyqt/sip/qt/qcheckbox.sip +++ /dev/null @@ -1,88 +0,0 @@ -// This is the SIP interface definition for QCheckBox. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QCheckBox - -QCheckBox is fully implemented. - - -%End - - -class QCheckBox : QButton -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QCheckBox(QWidget * /TransferThis/ = 0,const char * = 0); - QCheckBox(const char *,QWidget * /TransferThis/,const char * = 0); -%End -%If (Qt_2_00 -) - QCheckBox(QWidget * /TransferThis/,const char * = 0); - QCheckBox(const QString &,QWidget * /TransferThis/,const char * = 0); -%End - - bool isChecked() const; - -%If (Qt_2_00 -) - void setNoChange(); - - void setTristate(bool = 1); -%End -%If (Qt_2_2_0 -) - bool isTristate() const; -%End - - QSize sizeHint() const; -%If (Qt_2_00 - Qt_3_0_0) - QSizePolicy sizePolicy() const; -%End - -%If (- Qt_3_0_0) - void setChecked(bool); -%End - -public slots: -%If (Qt_3_0_0 -) - void setChecked(bool); -%End - -protected: -%If (Qt_2_00 -) - void resizeEvent(QResizeEvent *); -%End - void drawButton(QPainter *); - void drawButtonLabel(QPainter *); -%If (Qt_2_00 -) - void updateMask(); -%End -%If (Qt_3_2_0 -) - bool hitButton(const QPoint &) const; -%End - -private: - QCheckBox(const QCheckBox &); -}; diff --git a/python/pyqt/sip/qt/qclipboard.sip b/python/pyqt/sip/qt/qclipboard.sip deleted file mode 100644 index 4b662f21..00000000 --- a/python/pyqt/sip/qt/qclipboard.sip +++ /dev/null @@ -1,152 +0,0 @@ -// This is the SIP interface definition for QClipboard. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QClipboard - - void *data const - const char *format - - -Not yet implemented (Qt v1.x). - - - - void setData - const char *format - void * - - -Not yet implemented (Qt v1.x). - - -%End - - -%If (Qt_CLIPBOARD) - -class QClipboard : QObject -{ -%TypeHeaderCode -#include -%End - -private: - QClipboard(QObject * /TransferThis/ = 0,const char * = 0); - ~QClipboard(); - -public: -%If (Qt_3_1_0 -) - enum Mode { - Clipboard, - Selection - }; - - void clear(Mode); -%End - void clear(); - -%If (Qt_3_0_0 -) - bool supportsSelection() const; - bool ownsSelection() const; - bool ownsClipboard() const; - - void setSelectionMode(bool); - bool selectionModeEnabled() const; -%End - -%If (Qt_3_1_0 -) - QString text(Mode) const; - QString text(QCString &,Mode) const; - void setText(const QString &,Mode); - -%If (Qt_MIMECLIPBOARD) - QMimeSource *data(Mode) const; - void setData(QMimeSource * /GetWrapper/,Mode); -%MethodCode - sipCpp->setData(a0, a1); - - // Transfer ownership to C++ and make sure the Python object - // stays alive by giving it a reference to itself. The cycle - // will be broken by QMimeSource's virtual dtor. - sipTransferTo(a0Wrapper, a0Wrapper); -%End - - QImage image(Mode) const; - QPixmap pixmap(Mode) const; - void setImage(const QImage &,Mode); - void setPixmap(const QPixmap &,Mode); -%End -%End - -%If (- Qt_2_00) -// void *data(const char *) const; -// void setData(const char *,void *); - const char *text() const; - void setText(const char *); - QPixmap *pixmap() const; -%End - -%If (Qt_2_00 -) -%If (Qt_MIMECLIPBOARD) - QMimeSource *data() const; - void setData(QMimeSource * /GetWrapper/); -%MethodCode - sipCpp->setData(a0); - - // Transfer ownership to C++ and make sure the Python object - // stays alive by giving it a reference to itself. The cycle - // will be broken by QMimeSource's virtual dtor. - sipTransferTo(a0Wrapper, a0Wrapper); -%End -%End - QString text() const; -%If (Qt_2_2_0 -) - QString text(QCString &) const; -%End - void setText(const QString &); -%If (Qt_MIMECLIPBOARD) - QImage image() const; - QPixmap pixmap() const; - void setImage(const QImage &); -%End -%End - -%If (Qt_MIMECLIPBOARD) - void setPixmap(const QPixmap &); -%End - -signals: -%If (Qt_3_0_0 -) - void selectionChanged(); -%End - void dataChanged(); - -protected: - void connectNotify(const char *); - bool event(QEvent *); - -private: - QClipboard(const QClipboard &); -}; - -%End diff --git a/python/pyqt/sip/qt/qcolor.sip b/python/pyqt/sip/qt/qcolor.sip deleted file mode 100644 index 235c559b..00000000 --- a/python/pyqt/sip/qt/qcolor.sip +++ /dev/null @@ -1,207 +0,0 @@ -// This is the SIP interface definition for QColor. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QColor - -The Python == and != operators are -supported. - - - - void getHsv - int *h - int *s - int *v - - -This takes no parameters and returns the h, -s and v values as a tuple. - - - - void getRgb - int *r - int *g - int *b - - -This takes no parameters and returns the r, -g and b values as a tuple. - - - - void hsv - int *h - int *s - int *v - - -This takes no parameters and returns the h, -s and v values as a tuple. - - - - void rgb - int *r - int *g - int *b - - -This takes no parameters and returns the r, -g and b values as a tuple. - - -%End - - -%ModuleHeaderCode -#include -%End - - -%If (- Qt_2_00) -// The global colours. - -QColor color0; -QColor color1; -QColor black; -QColor white; -QColor darkGray; -QColor gray; -QColor lightGray; -QColor red; -QColor green; -QColor blue; -QColor cyan; -QColor magenta; -QColor yellow; -QColor darkRed; -QColor darkGreen; -QColor darkBlue; -QColor darkCyan; -QColor darkMagenta; -QColor darkYellow; -%End - - -// Related functions. - -int qRed(QRgb); -int qGreen(QRgb); -int qBlue(QRgb); -QRgb qRgb(int,int,int); -int qGray(int,int,int); -int qGray(QRgb); - -%If (Qt_2_00 -) -int qAlpha(QRgb); -QRgb qRgba(int,int,int,int); -%End - - -class QColor -{ -%TypeHeaderCode -#include -%End - -public: - enum Spec { - Rgb, - Hsv - }; - - QColor(); - QColor(int,int,int); - QColor(int,int,int,Spec); - QColor(QRgb,uint = 0xffffffff); -%If (Qt_2_00 -) - QColor(const QString &); -%End - QColor(const char *); - QColor(const QColor &); - - bool isValid() const; - bool isDirty() const; -%If (- Qt_2_00) - void setNamedColor(const char *); -%End -%If (Qt_2_1_0 -) - QString name() const; -%End -%If (Qt_2_00 -) - void setNamedColor(const QString &); -%End - - QRgb rgb() const; - void setRgb(int,int,int); - void setRgb(QRgb); -%If (Qt_3_2_0 -) - void getRgb(int *,int *,int *) const; -%End - - // Obsolete and is hidden anyway by the overload above. - //void rgb(int *,int *,int *) const; - - int red() const; - int green() const; - int blue() const; - - void setHsv(int,int,int); - -%If (Qt_3_2_0 -) - void getHsv(int *,int *,int *) const; -%End -%If (- Qt_3_2_0) - void getHsv(int &,int &,int &) const; -%End - - // Obsolete. - void hsv(int *,int *,int *) const; - - QColor light(int = 150) const; - QColor dark(int = 200) const; -%If (- Qt_3_0_0) - static bool lazyAlloc(); - static void setLazyAlloc(bool); -%End - - bool operator==(const QColor &) const; - bool operator!=(const QColor &) const; - - uint alloc(); - uint pixel() const; - static int maxColors(); - static int numBitPlanes(); - static int enterAllocContext(); - static void leaveAllocContext(); - static int currentAllocContext(); - static void destroyAllocContext(int); -%If (Qt_3_0_0 -) -%End - static void initialize(); - static void cleanup(); -%If (Qt_3_2_0 -) - static QStringList colorNames(); -%End -}; diff --git a/python/pyqt/sip/qt/qcolordialog.sip b/python/pyqt/sip/qt/qcolordialog.sip deleted file mode 100644 index cdf590b7..00000000 --- a/python/pyqt/sip/qt/qcolordialog.sip +++ /dev/null @@ -1,77 +0,0 @@ -// This is the SIP interface definition for QColorDialog. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QColorDialog (Qt v2+) - - static QRgb getRgba - QRgb initial - bool *ok - QWidget *parent = 0 - const char *name = 0 - - -This takes the initial, parent and -name parameters and returns a tuple containing the -QRgb result and the ok value. - - -%End - - -%If (Qt_2_00 -) -%If (Qt_COLORDIALOG) - -class QColorDialog : QDialog -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_3_0_0) - static QColor getColor(QColor,QWidget * = 0,const char * = 0) /ReleaseGIL/; -%End -%If (Qt_3_0_0 -) - static QColor getColor(const QColor & = Qt::white,QWidget * = 0, - const char * = 0) /ReleaseGIL/; -%End -%If (Qt_2_1_0 -) - static QRgb getRgba(QRgb,bool * = 0,QWidget * = 0,const char * = 0) /ReleaseGIL/; - static int customCount(); - static QRgb customColor(int); - static void setCustomColor(int,QRgb); -%End -%If (Qt_3_1_0 -) - static void setStandardColor(int,QRgb); -%End - -private: -%If (Qt_2_1_0 -) - QColorDialog(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0); - QColorDialog(const QColorDialog &); - ~QColorDialog(); -%End -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qcolorgroup.sip b/python/pyqt/sip/qt/qcolorgroup.sip deleted file mode 100644 index d13e316d..00000000 --- a/python/pyqt/sip/qt/qcolorgroup.sip +++ /dev/null @@ -1,125 +0,0 @@ -// This is the SIP interface definition for QColorGroup. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QColorGroup - -QColorGroup is fully implemented. - - -%End - - -class QColorGroup -{ -%TypeHeaderCode -#include -%End - -public: - QColorGroup(); - QColorGroup(const QColor &,const QColor &,const QColor &,const QColor &, - const QColor &,const QColor &,const QColor &); -%If (Qt_2_00 -) - QColorGroup(const QBrush &,const QBrush &,const QBrush &,const QBrush &, - const QBrush &,const QBrush &,const QBrush &,const QBrush &, - const QBrush &); -%End - QColorGroup(QColorGroup&); - -%If (- Qt_2_00) - QColor midlight() const; -%End - -%If (Qt_2_00 - Qt_3_0_0) - enum ColorRole - { - Foreground, - Button, - Light, - Midlight, - Dark, - Mid, - Text, - BrightText, - ButtonText, - Base, - Background, - Shadow, - Highlight, - HighlightedText, - NColorRoles - }; -%End -%If (Qt_3_0_0 -) - enum ColorRole - { - Foreground, - Button, - Light, - Midlight, - Dark, - Mid, - Text, - BrightText, - ButtonText, - Base, - Background, - Shadow, - Highlight, - HighlightedText, - Link, - LinkVisited, - NColorRoles - }; -%End - -%If (Qt_2_00 -) - const QColor &color(ColorRole) const; - const QBrush &brush(ColorRole) const; - void setColor(ColorRole,const QColor &); - void setBrush(ColorRole,const QBrush &); -%End - - const QColor &foreground() const; -%If (Qt_2_00 -) - const QColor &button() const; -%End - const QColor &light() const; - const QColor &dark() const; - const QColor &mid() const; - const QColor &text() const; - const QColor &base() const; - const QColor &background() const; -%If (Qt_2_00 -) - const QColor &midlight() const; - const QColor &brightText() const; - const QColor &buttonText() const; - const QColor &shadow() const; - const QColor &highlight() const; - const QColor &highlightedText() const; -%End -%If (Qt_3_0_0 -) - const QColor &link() const; - const QColor &linkVisited() const; -%End -}; diff --git a/python/pyqt/sip/qt/qcombobox.sip b/python/pyqt/sip/qt/qcombobox.sip deleted file mode 100644 index 53240547..00000000 --- a/python/pyqt/sip/qt/qcombobox.sip +++ /dev/null @@ -1,277 +0,0 @@ -// This is the SIP interface definition for QComboBox. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QComboBox - -QComboBox is fully implemented. - - -%End - - -class QComboBox : QWidget -{ -%TypeHeaderCode -#include -%End - -public: - QComboBox(QWidget * /TransferThis/ = 0,char * = 0); - QComboBox(bool,QWidget * /TransferThis/ = 0,char * = 0); - - int count() const; - -%If (Qt_2_00 -) - void insertStringList(QStringList &,int = -1); -%End - void insertStrList(const QStrList *,int = -1); -// void insertStrList(const QStrList &,int = -1); -// void insertStrList(const char **,int = -1,int = -1); - -%If (- Qt_2_00) - void insertItem(const char *,int = -1); -%End -%If (Qt_2_00 -) - void insertItem(const QString &,int = -1); -%End - void insertItem(const QPixmap &,int = -1); -%If (Qt_2_1_0 -) - void insertItem(const QPixmap &,const QString &,int = -1); -%End - - void removeItem(int); - -%If (- Qt_3_0_0) - void clear(); -%End - - int currentItem() const; -%If (- Qt_2_00) - void setCurrentItem(int); -%End -%If (Qt_2_00 -) - virtual void setCurrentItem(int); -%End - -%If (- Qt_2_00) - const char *currentText() const; -%End -%If (Qt_2_00 -) - QString currentText() const; -%End -%If (Qt_3_0_0 -) - virtual void setCurrentText(const QString &); -%End - -%If (- Qt_2_00) - const char *text(int) const; -%End -%If (Qt_2_00 -) - QString text(int) const; -%End - const QPixmap *pixmap(int) const; - -%If (- Qt_2_00) - void changeItem(const char *,int); -%End -%If (Qt_2_00 -) - void changeItem(const QString &,int); -%End - void changeItem(const QPixmap &,int); -%If (Qt_2_1_0 -) - void changeItem(const QPixmap &,const QString &,int); -%End - - bool autoResize() const; -%If (- Qt_2_00) - void setAutoResize(bool); -%End -%If (Qt_2_00 -) - virtual void setAutoResize(bool); -%End - QSize sizeHint() const; -%If (Qt_2_00 - Qt_3_0_0) - virtual QSizePolicy sizePolicy() const; -%End - -%If (- Qt_2_00) - void setBackgroundColor(const QColor &); - void setStyle(GUIStyle); -%End -%If (Qt_2_00 - Qt_3_0_0) - virtual void setBackgroundColor(const QColor &); -%End -%If (- Qt_2_00) - void setPalette(const QPalette &); - void setFont(const QFont &); - void setEnabled(bool); -%End -%If (Qt_2_00 - Qt_3_0_0) - virtual void setPalette(const QPalette &); - virtual void setFont(const QFont &); - virtual void setEnabled(bool); -%End -%If (Qt_3_0_0 -) - void setPalette(const QPalette &); - void setFont(const QFont &); - void setEnabled(bool); -%End - -%If (- Qt_2_00) - void setSizeLimit(int); -%End -%If (Qt_2_00 -) - virtual void setSizeLimit(int); -%End - int sizeLimit() const; - -%If (- Qt_2_00) - void setMaxCount(int); -%End -%If (Qt_2_00 -) - virtual void setMaxCount(int); -%End - int maxCount() const; - - enum Policy { - NoInsertion, - AtTop, - AtCurrent, - AtBottom, - AfterCurrent, - BeforeCurrent - }; - -%If (- Qt_2_00) - void setInsertionPolicy(Policy); -%End -%If (Qt_2_00 -) - virtual void setInsertionPolicy(Policy); -%End - Policy insertionPolicy() const; - -%If (- Qt_2_00) - void setValidator(QValidator *); - QValidator *validator() const; -%End -%If (Qt_2_00 -) - virtual void setValidator(const QValidator *); - const QValidator *validator() const; -%End - -%If (- Qt_2_00) - void setListBox(QListBox *); -%End -%If (Qt_2_00 -) - virtual void setListBox(QListBox *); -%End - QListBox *listBox() const; - -%If (Qt_3_0_0 -) - virtual void setLineEdit(QLineEdit *); -%End -%If (Qt_2_1_0 -) - QLineEdit *lineEdit() const; -%End - -%If (- Qt_2_00) - void setAutoCompletion(bool); -%End -%If (Qt_2_00 -) - virtual void setAutoCompletion(bool); -%End - bool autoCompletion() const; - - bool eventFilter(QObject *,QEvent *); - -%If (Qt_2_1_0 -) - void setDuplicatesEnabled(bool); - bool duplicatesEnabled() const; -%End - -%If (Qt_2_2_0 -) - bool editable() const; - void setEditable(bool); -%End - -%If (Qt_3_0_0 -) - virtual void popup(); -%End - -%If (Qt_3_3_0 -) - void hide(); -%End - -public slots: -%If (Qt_3_0_0 -) - void clear(); -%End - void clearValidator(); - void clearEdit(); -%If (- Qt_2_00) - void setEditText(const char *); -%End -%If (Qt_2_00 -) - virtual void setEditText(const QString &); -%End - -signals: - void activated(int); - void highlighted(int); -%If (- Qt_2_00) - void activated(const char *); - void highlighted(const char *); -%End -%If (Qt_2_00 -) - void activated(const QString &); - void highlighted(const QString &); - void textChanged(const QString &); -%End - -protected: - void paintEvent(QPaintEvent *); - void resizeEvent(QResizeEvent *); - void mousePressEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseDoubleClickEvent(QMouseEvent *); - void keyPressEvent(QKeyEvent *); - void focusInEvent(QFocusEvent *); -%If (Qt_3_1_1 -) - void focusOutEvent(QFocusEvent *); -%End -%If (Qt_3_1_0 -) - void wheelEvent(QWheelEvent *); -%End -%If (- Qt_3_0_0) - void popup(); -%End -%If (Qt_2_00 -) - void styleChange(QStyle &); - - void updateMask(); -%End - -private: - QComboBox(const QComboBox &); -}; diff --git a/python/pyqt/sip/qt/qcommonstyle.sip b/python/pyqt/sip/qt/qcommonstyle.sip deleted file mode 100644 index b9730a09..00000000 --- a/python/pyqt/sip/qt/qcommonstyle.sip +++ /dev/null @@ -1,137 +0,0 @@ -// This is the SIP interface definition for QCommonStyle. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QCommonStyle (Qt v2+) - - virtual void getButtonShift - int &x - int &y - - -This takes no parameters and returns a tuple of the x and -y values. (Qt v2) - - - - virtual void tabbarMetrics - const QTabBar *t - int &hframe - int &vframe - int &overlap - - -This takes only the t parameter and returns a tuple of the -hframe, vframe and -overlap values. (Qt v2) - - -%End - - -%If (Qt_2_00 -) - -class QCommonStyle : QStyle -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_3_0_0) - 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); - void drawComboButtonMask(QPainter *,int,int,int,int); - void drawPushButtonLabel(QPushButton *,QPainter *); - void getButtonShift(int &,int &); - int defaultFrameWidth() const; - void tabbarMetrics(const QTabBar *,int &,int &,int &); - void drawTab(QPainter *,const QTabBar *,QTab *,bool); - void drawTabMask(QPainter *,const QTabBar *,QTab *,bool); - ScrollControl scrollBarPointOver(const QScrollBar *,int,const QPoint &); - void drawSliderMask(QPainter *,int,int,int,int,Orientation,bool,bool); - void drawSliderGrooveMask(QPainter *,int,int,int,int,QCOORD,Orientation); - int maximumSliderDragDistance() const; - int popupSubmenuIndicatorWidth(const QFontMetrics &); -%End - -%If (Qt_3_0_0 -) - QCommonStyle(); - - void drawPrimitive(PrimitiveElement,QPainter *,const QRect &, - const QColorGroup &,SFlags = Style_Default, - const QStyleOption& = QStyleOption()) const; - - void drawControl(ControlElement,QPainter *,const QWidget *, - const QRect &,const QColorGroup &, - SFlags = Style_Default, - const QStyleOption & = QStyleOption()) const; - - void drawControlMask(ControlElement,QPainter *,const QWidget *, - const QRect &, - const QStyleOption & = QStyleOption()) const; - - QRect subRect(SubRect,const QWidget *) const; - - void drawComplexControl(ComplexControl,QPainter *,const QWidget *, - const QRect &,const QColorGroup &, - SFlags = Style_Default,SCFlags = SC_All, - SCFlags = SC_None, - const QStyleOption & = QStyleOption()) const; - - void drawComplexControlMask(ComplexControl,QPainter *,const QWidget *, - const QRect &, - const QStyleOption & = QStyleOption()) const; - - QRect querySubControlMetrics(ComplexControl,const QWidget *,SubControl, - const QStyleOption & = QStyleOption()) const; - - SubControl querySubControl(ComplexControl,const QWidget *, - const QPoint &, - const QStyleOption & = QStyleOption()) const; - - int pixelMetric(PixelMetric,const QWidget * = 0) const; - - QSize sizeFromContents(ContentsType,const QWidget *,const QSize &, - const QStyleOption & = QStyleOption()) const; - - int styleHint(StyleHint,const QWidget *,const QStyleOption &, - QStyleHintReturn *) const; - - QPixmap stylePixmap(StylePixmap,const QWidget * = 0, - const QStyleOption & = QStyleOption()) const; - -%End - -private: -%If (- Qt_3_0_0) - QCommonStyle(GUIStyle); - ~QCommonStyle(); -%End -%If (Qt_3_0_0 -) - QCommonStyle(const QCommonStyle &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qcstring.sip b/python/pyqt/sip/qt/qcstring.sip deleted file mode 100644 index 35bc1708..00000000 --- a/python/pyqt/sip/qt/qcstring.sip +++ /dev/null @@ -1,223 +0,0 @@ -// This is the SIP interface definition for QCString. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QCString (Qt v2+) - -A Python string can be used whenever a QCString can be used. -A QCString can be converted to a Python string using the -Python str() function. - - - - QCString &sprintf - const char *format - ... - - -Not implemented. - - - - short toShort - bool *ok = 0 - - -This returns a tuple of the short result and the -ok value. - - - - ushort toUShort - bool *ok = 0 - - -This returns a tuple of the ushort result and the -ok value. - - - - int toInt - bool *ok = 0 - - -This returns a tuple of the int result and the -ok value. - - - - uint toUInt - bool *ok = 0 - - -This returns a tuple of the uint result and the -ok value. - - - - long toLong - bool *ok = 0 - - -This returns a tuple of the long result and the -ok value. - - - - ulong toULong - bool *ok = 0 - - -This returns a tuple of the ulong result and the -ok value. - - - - float toFloat - bool *ok = 0 - - -This returns a tuple of the float result and the -ok value. - - - - double toDouble - bool *ok = 0 - - -This returns a tuple of the double result and the -ok value. - - -%End - - -%If (Qt_2_00 -) - -class QCString : QByteArray -{ -%TypeHeaderCode -#include -%End - -public: - QCString(); - QCString(int); - QCString(const QCString &); - QCString(const char *); - QCString(const char *,uint); - - bool isNull() const; - bool isEmpty() const; - uint length() const; - bool resize(uint); - bool truncate(uint); - bool fill(char,int = -1); - QCString copy() const; -// QCString &sprintf(const char *,...); -// int find(char,int = 0,bool = 1) const; - int find(const char *,int = 0,bool = 1) const; - int find(const QRegExp &,int = 0) const; -// int findRev(char,int = -1,bool = 1) const; - int findRev(const char *,int = -1,bool = 1) const; - int findRev(const QRegExp &,int = -1) const; -// int contains(char,bool = 1) const; - int contains(const char *,bool = 1) const; - int contains(const QRegExp &) const; - QCString left(uint) const; - QCString right(uint) const; - QCString mid(uint,uint = 0xffffffff) const; - QCString leftJustify(uint,char = ' ',bool = 0) const; - QCString rightJustify(uint,char = ' ',bool = 0) const; - QCString lower() const; - QCString upper() const; - QCString stripWhiteSpace() const; - QCString simplifyWhiteSpace() const; - QCString &insert(uint,const char *); -// QCString &insert(uint,char); - QCString &append(const char *); - QCString &prepend(const char *); - QCString &remove(uint,uint); - QCString &replace(uint,uint,const char *); - QCString &replace(const QRegExp &,const char *); -%If (Qt_3_1_0 -) -// QCString &replace(char,const char *); - QCString &replace(const char *,const char *); -// QCString &replace(char,char); -%End - - short toShort(bool * = 0) const; - ushort toUShort(bool * = 0) const; - int toInt(bool * = 0) const; - uint toUInt(bool * = 0) const; - long toLong(bool * = 0) const; - ulong toULong(bool * = 0) const; - float toFloat(bool * = 0) const; - double toDouble(bool * = 0) const; - - QCString &setStr(const char *); -// QCString &setNum(short); -// QCString &setNum(ushort); - QCString &setNum(int /Constrained/); -// QCString &setNum(uint); -// QCString &setNum(long); -// QCString &setNum(ulong); -// QCString &setNum(float,char = 'g',int = 6); - QCString &setNum(double,char = 'g',int = 6); - bool setExpand(uint,char); - - SIP_PYOBJECT __str__(); -%MethodCode - const char *s; - - Py_BEGIN_ALLOW_THREADS - s = *sipCpp; - Py_END_ALLOW_THREADS - - if (s == NULL) - s = ""; - - sipRes = PyString_FromString(s); -%End - -%ConvertToTypeCode - // Allow a Python string whenever a QCString is expected. - - if (sipIsErr == NULL) - return (PyString_Check(sipPy) || - sipCanConvertToInstance(sipPy,sipClass_QCString,SIP_NO_CONVERTORS)); - - if (PyString_Check(sipPy)) - { - *sipCppPtr = new QCString(PyString_AS_STRING(sipPy)); - - return sipGetState(sipTransferObj); - } - - *sipCppPtr = reinterpret_cast(sipConvertToInstance(sipPy,sipClass_QCString,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr)); - - return 0; -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qcursor.sip b/python/pyqt/sip/qt/qcursor.sip deleted file mode 100644 index 191bedcf..00000000 --- a/python/pyqt/sip/qt/qcursor.sip +++ /dev/null @@ -1,144 +0,0 @@ -// This is the SIP interface definition for QCursor. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QCursor - -QCursor is fully implemented. - - -%End - - -%ModuleHeaderCode -#include -%End - - -%If (- Qt_2_00) -// Global cursors. - -const QCursor arrowCursor; -const QCursor upArrowCursor; -const QCursor crossCursor; -const QCursor waitCursor; -const QCursor ibeamCursor; -const QCursor sizeVerCursor; -const QCursor sizeHorCursor; -const QCursor sizeBDiagCursor; -const QCursor sizeFDiagCursor; -const QCursor sizeAllCursor; -const QCursor blankCursor; -%End - - -%If (- Qt_3_0_0) -enum QCursorShape { - ArrowCursor, - UpArrowCursor, - CrossCursor, - WaitCursor, - IbeamCursor, - SizeVerCursor, - SizeHorCursor, - SizeBDiagCursor, - SizeFDiagCursor, - SizeAllCursor, - BlankCursor, - LastCursor = BlankCursor, - BitmapCursor = 24 -}; - - -class QCursor -{ -%TypeHeaderCode -#include -%End - -public: - QCursor(); - QCursor(int); - QCursor(const QBitmap &,const QBitmap &,int = -1,int = -1); -%If (Qt_2_00 -) - QCursor(const QPixmap &,int = -1,int = -1); -%End - QCursor(const QCursor &); - - int shape() const; - void setShape(int); - const QBitmap *bitmap() const; - const QBitmap *mask() const; - QPoint hotSpot() const; -%If (- Qt_2_00) - HANDLE handle() const; -%End -%If (Qt_2_00 -) -%If (WS_X11) - HANDLE handle() const; -%End -%End - static QPoint pos(); - static void setPos(int,int); - static void setPos(const QPoint &); - static void initialize(); - static void cleanup(); -}; -%End - -%If (Qt_3_0_0 -) -class QCursor : Qt -{ -%TypeHeaderCode -#include -%End - -public: - QCursor(); - QCursor(int); - QCursor(const QBitmap &,const QBitmap &,int = -1,int = -1); - QCursor(const QPixmap &,int = -1,int = -1); - QCursor(const QCursor &); - - int shape() const; - void setShape(int); - const QBitmap *bitmap() const; - const QBitmap *mask() const; - QPoint hotSpot() const; - -%If (WS_X11) - HANDLE handle() const; -%If (Qt_3_3_0 -) - // This would have the same Python signature as QCursor(int). - //QCursor(HANDLE); -%End -%End - static QPoint pos(); - static void setPos(int,int); - static void setPos(const QPoint &); - static void initialize(); - static void cleanup(); -%If (WS_X11) - static int x11Screen(); -%End -}; -%End diff --git a/python/pyqt/sip/qt/qdatastream.sip b/python/pyqt/sip/qt/qdatastream.sip deleted file mode 100644 index f5c09079..00000000 --- a/python/pyqt/sip/qt/qdatastream.sip +++ /dev/null @@ -1,224 +0,0 @@ -// This is the SIP interface definition for QDataStream. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QDataStream - - QDataStream &readBytes - const char *&s - uint &l - - -This takes no parameters. The QDataStream result and the -data read are returned as a tuple. - - - - QDataStream &readRawBytes - const char *s - uint l - - -This takes only the l parameter. The -QDataStream result and the data read are returned as a -tuple. - - - - QDataStream &writeBytes - const char *s - uint len - - -len is derived from s and not passed as a -parameter. - - - - QDataStream &writeRawBytes - const char *s - uint len - - -len is derived from s and not passed as a -parameter. - - -%End - - -class QDataStream -{ -%TypeHeaderCode -#include -%End - -public: - QDataStream(); - QDataStream(QIODevice *); - QDataStream(QByteArray,int); - - QIODevice *device() const; - void setDevice(QIODevice *); - void unsetDevice(); -%If (Qt_2_00 -) - bool atEnd() const; -%End - bool eof() const; - - enum ByteOrder { - BigEndian, - LittleEndian - }; - - int byteOrder() const; - void setByteOrder(int); - bool isPrintableData() const; - void setPrintableData(bool); - int version() const; - void setVersion(int); - - SIP_PYTUPLE readBytes() /ReleaseGIL/; -%MethodCode - char *c; - uint l; - - Py_BEGIN_ALLOW_THREADS - sipCpp -> QDataStream::readBytes(c,l); - Py_END_ALLOW_THREADS - - sipRes = sipBuildResult(&sipIsErr,"(Sa)",sipSelf,c,l); - - if (c) - delete[] c; -%End - - SIP_PYTUPLE readRawBytes(uint) /ReleaseGIL/; -%MethodCode - char *buf; - - if ((buf = (char *)sipMalloc(a0)) == NULL) - sipIsErr = 1; - else - { - Py_BEGIN_ALLOW_THREADS - sipCpp -> QDataStream::readRawBytes(buf,a0); - Py_END_ALLOW_THREADS - - sipRes = sipBuildResult(&sipIsErr,"(Sa)",sipSelf,buf,a0); - - sipFree((ANY *)buf); - } -%End - - QDataStream &writeBytes(const char * /Array/, - uint /ArraySize/) /ReleaseGIL/; - QDataStream &writeRawBytes(const char * /Array/, - uint /ArraySize/) /ReleaseGIL/; - -%If (Qt_3_0_0 -) - // These are taken from the corresponding class definitions. We limit - // them to Qt v3.0.0 and later just to avoid checking earlier versions. - - QDataStream &operator<<(const QBrush &); - QDataStream &operator>>(QBrush & /Constrained/); - - QDataStream &operator<<(const QColor &); - QDataStream &operator>>(QColor & /Constrained/); - - QDataStream &operator<<(const QByteArray &); - QDataStream &operator>>(QByteArray & /Constrained/); - - QDataStream &operator<<(const QCString &); - QDataStream &operator>>(QCString & /Constrained/); - - QDataStream &operator<<(const QCursor &); - QDataStream &operator>>(QCursor & /Constrained/); - - QDataStream &operator<<(const QDate &); - QDataStream &operator>>(QDate & /Constrained/); - - QDataStream &operator<<(const QTime &); - QDataStream &operator>>(QTime & /Constrained/); - - QDataStream &operator<<(const QDateTime &); - QDataStream &operator>>(QDateTime & /Constrained/); - - QDataStream &operator<<(const QFont &); - QDataStream &operator>>(QFont & /Constrained/); - - QDataStream &operator<<(const QImage &); - QDataStream &operator>>(QImage & /Constrained/); - - QDataStream &operator<<(const QKeySequence &); - QDataStream &operator>>(QKeySequence & /Constrained/); - - QDataStream &operator<<(const QColorGroup &); - QDataStream &operator>>(QColorGroup & /Constrained/); - - QDataStream &operator<<(const QPalette &); - QDataStream &operator>>(QPalette & /Constrained/); - - QDataStream &operator<<(const QPen &); - QDataStream &operator>>(QPen & /Constrained/); - - QDataStream &operator<<(const QPicture &); - QDataStream &operator>>(QPicture & /Constrained/); - - QDataStream &operator<<(const QPixmap &); - QDataStream &operator>>(QPixmap & /Constrained/); - - QDataStream &operator<<(const QPointArray &); - QDataStream &operator>>(QPointArray & /Constrained/); - - QDataStream &operator<<(const QPoint &); - QDataStream &operator>>(QPoint & /Constrained/); - - QDataStream &operator<<(const QRect &); - QDataStream &operator>>(QRect & /Constrained/); - - QDataStream &operator<<(const QRegion &); - QDataStream &operator>>(QRegion & /Constrained/); - - QDataStream &operator<<(const QSize &); - QDataStream &operator>>(QSize & /Constrained/); - - QDataStream &operator<<(const QString &); - QDataStream &operator>>(QString & /Constrained/); - - QDataStream &operator<<(const QStringList &); - QDataStream &operator>>(QStringList & /Constrained/); - - QDataStream &operator<<(const QVariant &); - QDataStream &operator>>(QVariant & /Constrained/); - - QDataStream &operator<<(const QWMatrix &); - QDataStream &operator>>(QWMatrix & /Constrained/); -%End -%If (Qt_3_1_0 -) - QDataStream &operator<<(const QUuid &); - QDataStream &operator>>(QUuid & /Constrained/); -%End - -private: - QDataStream(const QDataStream &); -}; diff --git a/python/pyqt/sip/qt/qdatetime.sip b/python/pyqt/sip/qt/qdatetime.sip deleted file mode 100644 index 10918255..00000000 --- a/python/pyqt/sip/qt/qdatetime.sip +++ /dev/null @@ -1,280 +0,0 @@ -// This is the SIP interface definition for QDate, QDateTime and QTime. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QDate - -The Python -==, !=, -<, <=, ->, >= -and __nonzero__ -operators are supported. - - - - int weekNumber - int *yearNum = 0 - - -This takes no parameters and returns the week number and the year number as a -tuple. (Qt v3.1+) - - - -QDateTime - -QDateTime is fully implemented, including the Python -==, !=, -<, <=, ->, >= -and __nonzero__ -operators. - - - -QTime - -QTime is fully implemented, including the Python -==, !=, -<, <=, ->, >= -and __nonzero__ -operators. - - -%End - - -class QDate -{ -%TypeHeaderCode -#include -%End - -public: - QDate(); - QDate(int,int,int); - - bool isNull() const; - bool isValid() const; - - int year() const; - int month() const; - int day() const; - int dayOfWeek() const; - int dayOfYear() const; - int daysInMonth() const; - int daysInYear() const; - -%If (Qt_3_1_0 -) - int weekNumber(int * = 0) const; -%End - -%If (- Qt_2_00) - virtual const char *monthName(int) const; - virtual const char *dayName(int) const; -%End -%If (Qt_2_00 - Qt_3_0_0) - virtual QString monthName(int) const; - virtual QString dayName(int) const; -%End -%If (Qt_3_0_0 -) - static QString shortMonthName(int); - static QString shortDayName(int); - static QString longMonthName(int); - static QString longDayName(int); -%End - -%If (- Qt_3_0_0) - QString toString() const; -%End -%If (Qt_3_0_0 -) - QString toString(Qt::DateFormat = Qt::TextDate) const; - QString toString(const QString &) const; -%End - bool setYMD(int,int,int); - QDate addDays(int) const; -%If (Qt_3_0_0 -) - QDate addMonths(int) const; - QDate addYears(int) const; -%End - int daysTo(const QDate &) const; - - int __nonzero__() const; -%MethodCode - sipRes = !sipCpp -> isNull(); -%End - - bool operator==(const QDate &) const; - bool operator!=(const QDate &) const; - bool operator<(const QDate &) const; - bool operator<=(const QDate &) const; - bool operator>(const QDate &) const; - bool operator>=(const QDate &) const; - - static QDate currentDate(); -%If (Qt_3_1_0 -) - static QDate currentDate(Qt::TimeSpec); -%End -%If (Qt_3_0_0 -) - static QDate fromString(const QString &,Qt::DateFormat = Qt::TextDate); -%End - static bool isValid(int,int,int); - static bool leapYear(int); - -%If (Qt_3_0_0 -) - // These are defined in Qt3 but not documented. - //static uint gregorianToJulian(int,int,int); - //static void julianToGregorian(uint,int &,int &,int &); -%End -}; - - -class QTime -{ -%TypeHeaderCode -#include -%End - -public: - QTime(); - QTime(int,int,int = 0,int = 0); - - bool isNull() const; - bool isValid() const; - int hour() const; - int minute() const; - int second() const; - int msec() const; - -%If (- Qt_3_0_0) - QString toString() const; -%End -%If (Qt_3_0_0 -) - QString toString(Qt::DateFormat = Qt::TextDate) const; - QString toString(const QString &) const; -%End - - bool setHMS(int,int,int,int = 0); - - QTime addSecs(int) const; - int secsTo(const QTime &) const; - QTime addMSecs(int) const; - int msecsTo(const QTime &) const; - - int __nonzero__() const; -%MethodCode - sipRes = !sipCpp -> isNull(); -%End - - bool operator==(const QTime &) const; - bool operator!=(const QTime &) const; - bool operator<(const QTime &) const; - bool operator<=(const QTime &) const; - bool operator>(const QTime &) const; - bool operator>=(const QTime &) const; - - static QTime currentTime(); -%If (Qt_3_1_0 -) - static QTime currentTime(Qt::TimeSpec); -%End -%If (Qt_3_0_0 -) - static QTime fromString(const QString &,Qt::DateFormat = Qt::TextDate); -%End - static bool isValid(int,int,int,int = 0); - - void start(); - int restart(); -%If (- Qt_3_0_0) - int elapsed(); -%End -%If (Qt_3_0_0 -) - int elapsed() const; -%End -}; - - -class QDateTime -{ -%TypeHeaderCode -#include -%End - -public: - QDateTime(); - QDateTime(const QDate &); - QDateTime(const QDate &,const QTime &); - - bool isNull() const; - bool isValid() const; - - QDate date() const; - QTime time() const; -%If (Qt_3_1_0 -) - uint toTime_t() const; -%End - void setDate(const QDate &); - void setTime(const QTime &); - void setTime_t(uint); -%If (Qt_3_1_0 -) - void setTime_t(uint,Qt::TimeSpec); -%End - -%If (- Qt_3_0_0) - QString toString() const; -%End -%If (Qt_3_0_0 -) - QString toString(Qt::DateFormat = Qt::TextDate) const; - QString toString(const QString &) const; -%End - - QDateTime addDays(int) const; -%If (Qt_3_0_0 -) - QDateTime addMonths(int) const; - QDateTime addYears(int) const; -%End - QDateTime addSecs(int) const; - int daysTo(const QDateTime &) const; - int secsTo(const QDateTime &) const; - - int __nonzero__() const; -%MethodCode - sipRes = !sipCpp -> isNull(); -%End - - bool operator==(const QDateTime &) const; - bool operator!=(const QDateTime &) const; - bool operator<(const QDateTime &) const; - bool operator<=(const QDateTime &) const; - bool operator>(const QDateTime &) const; - bool operator>=(const QDateTime &) const; - - static QDateTime currentDateTime(); -%If (Qt_3_1_0 -) - static QDateTime currentDateTime(Qt::TimeSpec); -%End -%If (Qt_3_0_0 -) - static QDateTime fromString(const QString &, - Qt::DateFormat = Qt::TextDate); -%End -}; diff --git a/python/pyqt/sip/qt/qdatetimeedit.sip b/python/pyqt/sip/qt/qdatetimeedit.sip deleted file mode 100644 index 5c09530e..00000000 --- a/python/pyqt/sip/qt/qdatetimeedit.sip +++ /dev/null @@ -1,256 +0,0 @@ -// This is the SIP interface definition for QDateEdit, QDateTimeEdit and -// QTimeEdit. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QDateEdit (Qt v3+) - -QDateEdit is fully implemented. - - - -QTimeEdit (Qt v3+) - -QTimeEdit is fully implemented. - - - -QDateTimeEdit (Qt v3+) - -QDateTimeEdit is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -// QDateEdit actually inherits QDateTimeEditBase but that's an internal class -// and isn't exported under Windows in all versions. - -class QDateEdit : QWidget -{ -%TypeHeaderCode -#include -%End - -public: - QDateEdit(QWidget * /TransferThis/ = 0,const char * = 0); - QDateEdit(const QDate &,QWidget * /TransferThis/ = 0,const char * = 0); - - enum Order { - DMY, - MDY, - YMD, - YDM - }; - - QSize sizeHint() const; - QSize minimumSizeHint() const; -%If (- Qt_3_1_0) - virtual void setDate(const QDate &); -%End - QDate date() const; - virtual void setOrder(Order); - Order order() const; - virtual void setAutoAdvance(bool); - bool autoAdvance() const; - - virtual void setMinValue(const QDate &); - QDate minValue() const; - virtual void setMaxValue(const QDate &); - QDate maxValue() const; - virtual void setRange(const QDate &,const QDate &); - QString separator() const; - virtual void setSeparator(const QString &); - -%If (Qt_3_2_0 -) - void removeFirstNumber(int); -%End - -public slots: -%If (Qt_3_1_0 -) - virtual void setDate(const QDate &); -%End - -signals: - void valueChanged(const QDate &); - -protected: - bool event(QEvent *); - void timerEvent(QTimerEvent *); - void resizeEvent(QResizeEvent *); - void stepUp(); - void stepDown(); - QString sectionFormattedText(int); - void addNumber(int,int); - void removeLastNumber(int); - bool setFocusSection(int); - - virtual void setYear(int); - virtual void setMonth(int); - virtual void setDay(int); - virtual void fix(); - virtual bool outOfRange(int,int,int) const; - -protected slots: - void updateButtons(); - -private: -%If (Qt_3_1_0 -) - QDateEdit(const QDateEdit &); -%End -}; - - -// QDateEdit actually inherits QDateTimeEditBase but that's an internal class -// and isn't exported under Windows in all versions. - -class QTimeEdit : QWidget -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_1_0 -) - enum Display { - Hours, - Minutes, - Seconds, - AMPM - }; -%End - - QTimeEdit(QWidget * /TransferThis/ = 0,const char * = 0); - QTimeEdit(const QTime &,QWidget * /TransferThis/ = 0,const char * = 0); - - QSize sizeHint() const; - QSize minimumSizeHint() const; -%If (- Qt_3_1_0) - virtual void setTime(const QTime &); -%End - QTime time() const; - virtual void setAutoAdvance(bool); - bool autoAdvance() const; - - virtual void setMinValue(const QTime &); - QTime minValue() const; - virtual void setMaxValue(const QTime &); - QTime maxValue() const; - virtual void setRange(const QTime &,const QTime &); - QString separator() const; - virtual void setSeparator(const QString &); - -%If (Qt_3_1_0 -) - uint display() const; - void setDisplay(uint); -%End - -%If (Qt_3_2_0 -) - void removeFirstNumber(int); -%End - -public slots: -%If (Qt_3_1_0 -) - virtual void setTime(const QTime &); -%End - -signals: - void valueChanged(const QTime &); - -protected: - bool event(QEvent *); - void timerEvent(QTimerEvent *); - void resizeEvent(QResizeEvent *); - void stepUp(); - void stepDown(); - QString sectionFormattedText(int); - void addNumber(int,int); - void removeLastNumber(int); - bool setFocusSection(int); - - virtual bool outOfRange(int,int,int) const; - virtual void setHour(int); - virtual void setMinute(int); - virtual void setSecond(int); - -protected slots: - void updateButtons(); - -private: -%If (Qt_3_1_0 -) - QTimeEdit(const QTimeEdit &); -%End -}; - - -class QDateTimeEdit : QWidget -{ -%TypeHeaderCode -#include -%End - -public: - QDateTimeEdit(QWidget * /TransferThis/ = 0,const char * = 0); - QDateTimeEdit(const QDateTime &,QWidget * /TransferThis/ = 0, - const char * = 0); - - QSize sizeHint() const; - QSize minimumSizeHint() const; -%If (- Qt_3_1_0) - virtual void setDateTime(const QDateTime &); -%End - QDateTime dateTime() const; - - QDateEdit* dateEdit(); - QTimeEdit* timeEdit(); - - virtual void setAutoAdvance(bool); - bool autoAdvance() const; - -public slots: -%If (Qt_3_1_0 -) - virtual void setDateTime(const QDateTime &); -%End - -signals: - void valueChanged(const QDateTime &); - -protected: - void init(); - void resizeEvent(QResizeEvent *); -%If (- Qt_3_1_2) - void layoutEditors(); -%End - -protected slots: - void newValue(const QDate &); - void newValue(const QTime &); - -private: -%If (Qt_3_1_0 -) - QDateTimeEdit(const QDateTimeEdit &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qdesktopwidget.sip b/python/pyqt/sip/qt/qdesktopwidget.sip deleted file mode 100644 index 079aaf01..00000000 --- a/python/pyqt/sip/qt/qdesktopwidget.sip +++ /dev/null @@ -1,84 +0,0 @@ -// This is the SIP interface definition for QDesktopWidget. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QDesktopWidget (Qt v3+) - -QDesktopWidget is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QDesktopWidget : QWidget -{ -%TypeHeaderCode -#include -%End - -public: - QDesktopWidget(); - - 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; -%If (Qt_3_1_0 -) - const QRect &screenGeometry(QWidget *) const; - const QRect &screenGeometry(const QPoint &) const; - - const QRect &availableGeometry(int = -1) const; - const QRect &availableGeometry(QWidget *) const; - const QRect &availableGeometry(const QPoint &) const; - - void insertChild(QObject *); -%End - -signals: -%If (Qt_3_2_0 -) - void resized(int); -%End -%If (Qt_3_3_0 -) - void workAreaResized(int); -%End - -protected: -%If (Qt_3_1_0 -) - void resizeEvent(QResizeEvent *); -%End - -private: -%If (Qt_3_1_0 -) - QDesktopWidget(const QDesktopWidget &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qdial.sip b/python/pyqt/sip/qt/qdial.sip deleted file mode 100644 index cab40b6b..00000000 --- a/python/pyqt/sip/qt/qdial.sip +++ /dev/null @@ -1,112 +0,0 @@ -// This is the SIP interface definition for QDial. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QDial (Qt v2.2+) - -QDial is fully implemented. - - -%End - - -%If (Qt_2_2_0 -) -%If (Qt_DIAL) - -class QDial : QWidget, QRangeControl -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_3_0_0) - QDial(QWidget * /TransferThis/ = 0,const char * = 0); -%End -%If (Qt_3_0_0 -) - QDial(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); -%End - QDial(int,int,int,int,QWidget * /TransferThis/ = 0,const char * = 0); - - bool tracking() const; - - bool wrapping() const; - - int notchSize() const; - - virtual void setNotchTarget(double); - double notchTarget() const; - - bool notchesVisible() const; - - QSize sizeHint() const; - QSize minimumSizeHint() const; - - int minValue() const; - int maxValue() const; - void setMinValue(int); - void setMaxValue(int); - int lineStep() const; - int pageStep() const; - void setLineStep(int); - void setPageStep(int); - int value() const; - -public slots: - virtual void setValue(int); - void addLine(); - void subtractLine(); - void addPage(); - void subtractPage(); - virtual void setNotchesVisible(bool); - virtual void setWrapping(bool); - virtual void setTracking(bool); - -signals: - void valueChanged(int); - void dialPressed(); - void dialMoved(int); - void dialReleased(); - -protected: - void resizeEvent(QResizeEvent *); - void paintEvent(QPaintEvent *); - - void keyPressEvent(QKeyEvent *); - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - void wheelEvent(QWheelEvent *); - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); - - void valueChange(); - void rangeChange(); - - virtual void repaintScreen(const QRect * = 0); - -private: - QDial(const QDial &); -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qdialog.sip b/python/pyqt/sip/qt/qdialog.sip deleted file mode 100644 index 49888adf..00000000 --- a/python/pyqt/sip/qt/qdialog.sip +++ /dev/null @@ -1,158 +0,0 @@ -// This is the SIP interface definition for QDialog. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QDialog - - int exec - - - -This has been renamed to exec_loop in Python. - - -This method also causes ownership of the underlying C++ dialog to be transfered -to Python. This means that the C++ dialog will be deleted when the Python -wrapper is garbage collected. Although this is a little inconsistent, it -ensures that the dialog is deleted without having to explicity code it using -QObject.deleteLater() or other techniques. - - -%End - - -class QDialog : QWidget -{ -%TypeHeaderCode -#include -%End - -public: - QDialog(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0,WFlags = 0); - - enum DialogCode { - Rejected, - Accepted - }; - -%If (- Qt_3_0_0) - int exec() /PyName=exec_loop, ReleaseGIL, - PreHook=__pyQtPreEventLoopHook__, - PostHook=__pyQtPostEventLoopHook__/; -%MethodCode - // Transfer ownership back to Python (a modal dialog will - // probably have the main window as it's parent). This means - // the Qt dialog will be deleted when the Python wrapper is - // garbage collected. Although this is a little inconsistent, - // it saves having to code it explicitly to avoid the memory - // leak. - sipTransferBack(sipSelf); - - Py_BEGIN_ALLOW_THREADS - sipRes = sipCpp->QDialog::exec(); - Py_END_ALLOW_THREADS -%End -%End - - int result() const; - - void show(); -%If (Qt_2_00 -) - void hide(); -%End - void move(int,int); - void move(const QPoint &); - void resize(int,int); - void resize(const QSize &); - void setGeometry(int,int,int,int); - void setGeometry(const QRect &); - -%If (Qt_2_2_0 -) - void setOrientation(Orientation); - Orientation orientation() const; - - void setExtension(QWidget *); - QWidget *extension() const; - - QSize sizeHint() const; - QSize minimumSizeHint() const; - - void setSizeGripEnabled(bool); - bool isSizeGripEnabled() const; -%End - -%If (Qt_3_2_0 -) - void setModal(bool); - bool isModal() const; -%End - -public slots: -%If (Qt_3_0_0 -) - int exec() /PyName=exec_loop, ReleaseGIL, - PreHook=__pyQtPreEventLoopHook__, - PostHook=__pyQtPostEventLoopHook__/; -%MethodCode - // Transfer ownership back to Python (a modal dialog will - // probably have the main window as it's parent). This means - // the Qt dialog will be deleted when the Python wrapper is - // garbage collected. Although this is a little inconsistent, - // it saves having to code it explicitly to avoid the memory - // leak. - sipTransferBack(sipSelf); - - Py_BEGIN_ALLOW_THREADS - sipRes = sipCpp->QDialog::exec(); - Py_END_ALLOW_THREADS -%End -%End - -protected slots: - virtual void done(int); -%If (- Qt_2_00) - void accept(); - void reject(); -%End -%If (Qt_2_00 -) - virtual void accept(); - virtual void reject(); -%End - -%If (Qt_2_2_0 -) - void showExtension(bool); -%End - -protected: - void setResult(int); - void keyPressEvent(QKeyEvent *); - void closeEvent(QCloseEvent *); -%If (Qt_2_2_0 -) - void resizeEvent(QResizeEvent *); -%End -%If (Qt_3_0_0 -) - void contextMenuEvent(QContextMenuEvent *); - bool eventFilter(QObject *,QEvent *); - void adjustPosition(QWidget *); -%End - -private: - QDialog(const QDialog &); -}; diff --git a/python/pyqt/sip/qt/qdir.sip b/python/pyqt/sip/qt/qdir.sip deleted file mode 100644 index 214d5cce..00000000 --- a/python/pyqt/sip/qt/qdir.sip +++ /dev/null @@ -1,384 +0,0 @@ -// This is the SIP interface definition for QDir and QFileInfoList. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QDir - -QDir is fully implemented, including the Python -len, [] (for reading slices and -individual elements), ==, != and -in operators - - - -QFileInfoList - -This class isn't implemented. Whenever a QFileInfoList is -the return type of a function or the type of an argument, a Python list of -QFileInfo instances is used instead. - - -%End - - -%MappedType QFileInfoList -{ -%TypeHeaderCode -#include -#include "sipqtQFileInfo.h" -%End - -%ConvertFromTypeCode - PyObject *pl; - QFileInfo *obj; - - // Convert the list. - - if ((pl = PyList_New(0)) == NULL) - return NULL; - - for (QFileInfoListIterator it(*sipCpp); (obj = it.current()) != NULL; ++it) - { - PyObject *inst; - - if ((inst = sipConvertFromInstance(obj,sipClass_QFileInfo,sipTransferObj)) == NULL || PyList_Append(pl,inst) < 0) - { - Py_XDECREF(inst); - Py_DECREF(pl); - - return NULL; - } - - Py_DECREF(inst); - } - - return pl; -%End - -%ConvertToTypeCode - // Convert a Python list of QFileInfo instances to a QFileInfoList on - // the heap. - - if (sipIsErr == NULL) - { - if (!PyList_Check(sipPy)) - return 0; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QFileInfo,0)) - return 0; - - return 1; - } - - QFileInfoList *qfil = new QFileInfoList; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - { - QFileInfo *qfi; - - // We apply the transfer to the list itself, not the elements. - // Note that any temporary element will never be destroyed. - // There is nothing that can be done about this. - qfi = reinterpret_cast(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QFileInfo,0,0,0,sipIsErr)); - - if (*sipIsErr) - { - delete qfil; - return 0; - } - - qfil -> append(qfi); - } - - *sipCppPtr = qfil; - - return sipGetState(sipTransferObj); -%End -}; - - -class QDir -{ -%TypeHeaderCode -#include -%End - -public: - enum FilterSpec { - Dirs, - Files, - Drives, - NoSymLinks, - All, - TypeMask, - - Readable, - Writable, - Executable, - RWEMask, - - Modified, - Hidden, - System, - AccessMask, - - DefaultFilter - }; - - enum SortSpec { - Name, - Time, - Size, - Unsorted, - SortByMask, - - DirsFirst, - Reversed, - IgnoreCase, - DefaultSort - }; - - QDir(); -%If (- Qt_2_00) - QDir(const char *,const char * = 0,int = Name | IgnoreCase,int = All); -%End -%If (Qt_2_00 -) - QDir(const QString &,const QString & = QString::null, - int = Name | IgnoreCase,int = All); -%End - QDir(const QDir &); - -%If (- Qt_2_00) - void setPath(const char *); - const char *path() const; - QString absPath() const; - QString canonicalPath() const; - - QString dirName() const; - QString filePath(const char *,bool = 1) const; - QString absFilePath(const char *,bool = 1) const; - - static QString convertSeparators(const char *); - - bool cd(const char *,bool = 1); - bool cdUp(); - - const char *nameFilter() const; - void setNameFilter(const char *); -%End -%If (Qt_2_00 -) - virtual void setPath(const QString &); - virtual QString path() const; - virtual QString absPath() const; - virtual QString canonicalPath() const; - - virtual QString dirName() const; - virtual QString filePath(const QString &,bool = 1) const; - virtual QString absFilePath(const QString &,bool = 1) const; - - static QString convertSeparators(const QString &); - - virtual bool cd(const QString &,bool = 1); - virtual bool cdUp(); - - QString nameFilter() const; - virtual void setNameFilter(const QString &); -%End - FilterSpec filter() const; -%If (- Qt_2_00) - void setFilter(int); -%End -%If (Qt_2_00 -) - virtual void setFilter(int); -%End - SortSpec sorting() const; -%If (- Qt_2_00) - void setSorting(int); -%End -%If (Qt_2_00 -) - virtual void setSorting(int); -%End - - bool matchAllDirs() const; -%If (- Qt_2_00) - void setMatchAllDirs(bool); -%End -%If (Qt_2_00 -) - virtual void setMatchAllDirs(bool); -%End - - uint count() const; - - int __len__() const; -%MethodCode - Py_BEGIN_ALLOW_THREADS - sipRes = sipCpp -> count(); - Py_END_ALLOW_THREADS -%End - - QString operator[](int) const; -%MethodCode - int len; - - Py_BEGIN_ALLOW_THREADS - len = sipCpp -> count(); - Py_END_ALLOW_THREADS - - if ((a0 = (int)sipConvertFromSequenceIndex(a0,len)) < 0) - sipIsErr = 1; - else - { - Py_BEGIN_ALLOW_THREADS - sipRes = new QString((*sipCpp)[a0]); - Py_END_ALLOW_THREADS - } -%End - - QStringList operator[](SIP_PYSLICE) const; -%MethodCode -#if PY_VERSION_HEX >= 0x02050000 - Py_ssize_t len, start, stop, step, slicelength, i; -#else - int len, start, stop, step, slicelength, i; -#endif - - Py_BEGIN_ALLOW_THREADS - len = sipCpp -> count(); - Py_END_ALLOW_THREADS - - if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0) - sipIsErr = 1; - else - { - Py_BEGIN_ALLOW_THREADS - sipRes = new QStringList(); - - for (i = 0; i < slicelength; ++i) - { - (*sipRes) += (*sipCpp)[start]; - start += step; - } - Py_END_ALLOW_THREADS - } -%End - - int __contains__(const QString &) const; -%MethodCode - Py_BEGIN_ALLOW_THREADS - sipRes = (sipCpp -> entryList().findIndex(*a0) >= 0); - Py_END_ALLOW_THREADS -%End - -%If (- Qt_2_00) - const QStrList *entryList(int = DefaultFilter,int = DefaultSort) const; - const QStrList *entryList(const char *,int = DefaultFilter, - int = DefaultSort) const; - const QFileInfoList *entryInfoList(int = DefaultFilter, - int = DefaultSort) const; - const QFileInfoList *entryInfoList(const char *,int = DefaultFilter, - int = DefaultSort) const; -%End -%If (Qt_2_00 -) - virtual QStrList encodedEntryList(int = DefaultFilter, - int = DefaultSort) const; - virtual QStrList encodedEntryList(const QString &,int = DefaultFilter, - int = DefaultSort) const; - virtual QStringList entryList(int = DefaultFilter, - int = DefaultSort) const; - virtual QStringList entryList(const QString &,int = DefaultFilter, - int = DefaultSort) const; - virtual const QFileInfoList *entryInfoList(int = DefaultFilter, - int = DefaultSort) const; - virtual const QFileInfoList *entryInfoList(const QString &, - int = DefaultFilter, - int = DefaultSort) const; -%End - - static const QFileInfoList *drives(); - -%If (- Qt_2_00) - bool mkdir(const char *,bool = 1) const; - bool rmdir(const char *,bool = 1) const; - - bool isReadable() const; - bool exists() const; - bool isRoot() const; - - bool isRelative() const; - void convertToAbs(); - - bool operator==(const QDir &) const; - bool operator!=(const QDir &) const; - - bool remove(const char *,bool = 1); - bool rename(const char *,const char *,bool = 1); - bool exists(const char *,bool = 1); -%End -%If (Qt_2_00 -) - virtual bool mkdir(const QString &,bool = 1) const; - virtual bool rmdir(const QString &,bool = 1) const; - - virtual bool isReadable() const; - virtual bool exists() const; - virtual bool isRoot() const; - - virtual bool isRelative() const; - virtual void convertToAbs(); - - virtual bool remove(const QString &,bool = 1); - virtual bool rename(const QString &,const QString &,bool = 1); - virtual bool exists(const QString &,bool = 1); -%End - - static char separator(); - -%If (- Qt_2_00) - static bool setCurrent(const char *); -%End -%If (Qt_2_00 -) - static bool setCurrent(const QString &); -%End - static QDir current(); - static QDir home(); - static QDir root(); - static QString currentDirPath(); - static QString homeDirPath(); - static QString rootDirPath(); - -%If (- Qt_2_00) - static bool match(const char *,const char *); - static QString cleanDirPath(const char *); - static bool isRelativePath(const char *); -%End -%If (Qt_2_1_0 -) - static bool match(const QStringList &,const QString &); -%End -%If (Qt_2_00 -) - static bool match(const QString &,const QString &); - static QString cleanDirPath(const QString &); - static bool isRelativePath(const QString &); -%End -%If (Qt_3_1_0 -) - void refresh() const; -%End -}; diff --git a/python/pyqt/sip/qt/qdockarea.sip b/python/pyqt/sip/qt/qdockarea.sip deleted file mode 100644 index 255ebc9c..00000000 --- a/python/pyqt/sip/qt/qdockarea.sip +++ /dev/null @@ -1,88 +0,0 @@ -// This is the SIP interface definition for QDockArea. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QDockArea (Qt v3+) - - bool hasDockWindow const - QDockWindow *w - int *index = 0 - - -This takes the w parameter and returns the index of the -QDockWIndow or -1 if the QDockArea does not contain the QDockWindow. - - -%End - - -%If (Qt_3_0_0 -) - -class QDockArea : QWidget -{ -%TypeHeaderCode -#include -%End - -public: - enum HandlePosition { - Normal, - Reverse - }; - - QDockArea(Orientation,HandlePosition = Normal, - QWidget * /TransferThis/ = 0,const char * = 0); - - void moveDockWindow(QDockWindow *,const QPoint &,const QRect &,bool); - void removeDockWindow(QDockWindow *,bool,bool,bool = 1); - void moveDockWindow(QDockWindow *,int = -1); - - int hasDockWindow(QDockWindow *); -%MethodCode - // The Python interface returns the index. - - Py_BEGIN_ALLOW_THREADS - sipCpp -> QDockArea::hasDockWindow(a0,&sipRes); - Py_END_ALLOW_THREADS -%End - - void invalidNextOffset(QDockWindow *); - - Orientation orientation() const; - HandlePosition handlePosition() const; - - bool eventFilter(QObject *,QEvent *); - bool isEmpty() const; - int count() const; - QPtrList dockWindowList() const; - - bool isDockWindowAccepted(QDockWindow *); - void setAcceptDockWindow(QDockWindow *,bool); - -public slots: - void lineUp(bool); - -private: - QDockArea(const QDockArea &); -}; - -%End diff --git a/python/pyqt/sip/qt/qdockwindow.sip b/python/pyqt/sip/qt/qdockwindow.sip deleted file mode 100644 index 230660da..00000000 --- a/python/pyqt/sip/qt/qdockwindow.sip +++ /dev/null @@ -1,135 +0,0 @@ -// This is the SIP interface definition for QDockWindow. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QDockWindow (Qt v3+) - -QDockWindow is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QDockWindow : QFrame -{ -%TypeHeaderCode -#include -%End - -public: - enum Place { - InDock, - OutsideDock - }; - - enum CloseMode { - Never, - Docked, - Undocked, - Always - }; - - QDockWindow(Place = InDock,QWidget * /TransferThis/ = 0, - const char * = 0,WFlags = 0); -%If (Qt_3_1_0 -) - QDockWindow(QWidget * /TransferThis/,const char * = 0,WFlags = 0); -%End - - virtual void setWidget(QWidget *); - QWidget *widget() const; - - Place place() const; - - QDockArea *area() const; - - virtual void setCloseMode(int); - bool isCloseEnabled() const; - int closeMode() const; - - virtual void setResizeEnabled(bool); - virtual void setMovingEnabled(bool); - bool isResizeEnabled() const; - bool isMovingEnabled() const; - - virtual void setHorizontallyStretchable(bool); - virtual void setVerticallyStretchable(bool); - bool isHorizontallyStretchable() const; - bool isVerticallyStretchable() const; - bool isStretchable() const; - - virtual void setOffset(int); - int offset() const; - - virtual void setFixedExtentWidth(int); - virtual void setFixedExtentHeight(int); - QSize fixedExtent() const; - - virtual void setNewLine(bool); - bool newLine() const; - - Qt::Orientation orientation() const; - - QSize sizeHint() const; - QSize minimumSize() const; - QSize minimumSizeHint() const; - - QBoxLayout *boxLayout(); - - virtual void setOpaqueMoving(bool); - bool opaqueMoving() const; - - bool eventFilter(QObject *,QEvent *); - -signals: - void orientationChanged(Orientation); - void placeChanged(QDockWindow::Place); - void visibilityChanged(bool); - -public slots: - virtual void undock(QWidget *); - virtual void undock(); - virtual void dock(); - virtual void setOrientation(Orientation); - void setCaption(const QString &); - -protected: - void resizeEvent(QResizeEvent *); - void showEvent(QShowEvent *); - void hideEvent(QHideEvent *); - void contextMenuEvent(QContextMenuEvent *); - -%If (Qt_3_0_1 -) - void drawFrame(QPainter *); -%End -%If (Qt_3_1_0 -) - void drawContents(QPainter *); -%End - - bool event(QEvent *); - -private: - QDockWindow(const QDockWindow &); -}; - -%End diff --git a/python/pyqt/sip/qt/qdragobject.sip b/python/pyqt/sip/qt/qdragobject.sip deleted file mode 100644 index 813dddfd..00000000 --- a/python/pyqt/sip/qt/qdragobject.sip +++ /dev/null @@ -1,374 +0,0 @@ -// This is the SIP interface definition for QDragObject, QImageDrag, -// QStoredDrag, QTextDrag, QUriDrag, QUrlDrag, QColorDrag. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QColorDrag (Qt v2.1+) - -QColorDrag is fully implemented. - - - -QDragObject - -QDragObject is fully implemented. - - - -QImageDrag - -QImageDrag is fully implemented. - - - -QStoredDrag - -QStoredDrag is fully implemented. - - - -QTextDrag - -QTextDrag is fully implemented. - - - -QUriDrag (Qt v2+) - -QUriDrag is fully implemented. - - - -QUrlDrag (Qt v1.x) - -QUrlDrag is fully implemented. - - -%End - - -%If (- Qt_2_00) - -class QDragObject : QObject -{ -%TypeHeaderCode -#include -%End - -public: - enum DragMode { - DragDefault, - DragCopy, - DragMove, - DragCopyOrMove - }; - - QDragObject(QWidget * /TransferThis/ = 0,const char * = 0); - - bool drag(); - bool dragMove(); - void dragCopy(); - virtual bool provides(const char *) const; - virtual const char *format(int) const = 0; - virtual QByteArray encodedData(const char *) const = 0; - void setPixmap(QPixmap); - void setPixmap(QPixmap,QPoint); - QPixmap pixmap() const; - QPoint pixmapHotSpot() const; - QWidget *source(); - -protected: - virtual bool drag(DragMode); -}; - -%End - -%If (Qt_2_00 -) - -class QDragObject : QObject, QMimeSource -{ -%TypeHeaderCode -#include -%End - -public: - QDragObject(QWidget * /TransferThis/ = 0,const char * = 0); - -%If (Qt_DRAGANDDROP) - bool drag(); - bool dragMove(); - void dragCopy(); -%If (Qt_3_0_0 -) - void dragLink(); -%End - - virtual void setPixmap(QPixmap); -%If (- Qt_3_0_0) - virtual void setPixmap(QPixmap,QPoint); -%End -%If (Qt_3_0_0 -) - virtual void setPixmap(QPixmap,const QPoint &); -%End - QPixmap pixmap() const; - QPoint pixmapHotSpot() const; -%End - - QWidget *source(); - static QWidget *target(); - - static void setTarget(QWidget *); - -%If (Qt_DRAGANDDROP) -%If (- Qt_3_0_0) - enum DragMode { - DragDefault, - DragCopy, - DragMove, - DragCopyOrMove - }; -%End -%If (Qt_3_0_0 -) - enum DragMode { - DragDefault, - DragCopy, - DragMove, - DragLink, - DragCopyOrMove - }; -%End -%End - -protected: -%If (Qt_DRAGANDDROP) - virtual bool drag(DragMode); -%End - -private: -%If (Qt_3_1_0 -) - QDragObject(const QDragObject &); -%End -}; - -%End - - -class QStoredDrag : QDragObject -{ -%TypeHeaderCode -#include -%End - -public: - QStoredDrag(const char *,QWidget * /TransferThis/ = 0,const char * = 0); - -%If (- Qt_2_00) - void setEncodedData(const QByteArray&); -%End -%If (Qt_2_00 -) - virtual void setEncodedData(const QByteArray&); -%End - - const char *format(int) const; - virtual QByteArray encodedData(const char *) const; - -private: -%If (Qt_3_1_0 -) - QStoredDrag(const QStoredDrag &); -%End -}; - - -%If (- Qt_2_00) - -class QTextDrag : QStoredDrag -{ -%TypeHeaderCode -#include -%End - -public: - QTextDrag(const char *,QWidget * /TransferThis/ = 0,const char * = 0); - QTextDrag(QWidget * /TransferThis/ = 0,const char * = 0); - - void setText(const char *); - static bool canDecode(QDragMoveEvent *); - static bool decode(QDropEvent *,QString &); -}; - -%End - -%If (Qt_2_00 -) - -class QTextDrag : QDragObject -{ -%TypeHeaderCode -#include -%End - -public: - QTextDrag(const QString &,QWidget * /TransferThis/ = 0, - const char * = 0); - QTextDrag(QWidget * /TransferThis/ = 0,const char * = 0); - - virtual void setText(const QString &); - virtual void setSubtype(const QCString &); - - const char *format(int) const; - virtual QByteArray encodedData(const char *) const; - - static bool canDecode(const QMimeSource *); - static bool decode(const QMimeSource *,QString &); - static bool decode(const QMimeSource *,QString &,QCString &); - -private: -%If (Qt_3_1_0 -) - QTextDrag(const QTextDrag &); -%End -}; - -%End - - -class QImageDrag : QDragObject -{ -%TypeHeaderCode -#include -%End - -public: - QImageDrag(QImage,QWidget * /TransferThis/ = 0,const char * = 0); - QImageDrag(QWidget * /TransferThis/ = 0,const char * = 0); - -%If (- Qt_2_00) - void setImage(QImage); -%End -%If (Qt_2_00 -) - virtual void setImage(QImage); -%End - - const char *format(int) const; - virtual QByteArray encodedData(const char *) const; - -%If (- Qt_2_00) - static bool canDecode(QDragMoveEvent *); - static bool decode(QDropEvent *,QImage &); - static bool decode(QDropEvent *,QPixmap &); -%End -%If (Qt_2_00 -) - static bool canDecode(const QMimeSource *); - static bool decode(const QMimeSource *,QImage &); - static bool decode(const QMimeSource *,QPixmap &); -%End - -private: -%If (Qt_3_1_0 -) - QImageDrag(const QImageDrag &); -%End -}; - - -%If (- Qt_2_00) - -class QUrlDrag : QStoredDrag -{ -%TypeHeaderCode -#include -%End - -public: - QUrlDrag(QStrList,QWidget * /TransferThis/ = 0,const char * = 0); - QUrlDrag(QWidget * /TransferThis/ = 0,const char * = 0); - - void setUrls(QStrList); - static QString urlToLocalFile(const char *); - static bool canDecode(QDragMoveEvent *); - static bool decode(QDropEvent *,QStrList &); - static bool decodeLocalFiles(QDropEvent *,QStrList &); -}; - -%End - -%If (Qt_2_00 -) - -class QUriDrag : QStoredDrag -{ -%TypeHeaderCode -#include -%End - -public: - QUriDrag(QStrList,QWidget * /TransferThis/ = 0,const char * = 0); - QUriDrag(QWidget * /TransferThis/ = 0,const char * = 0); - -%If (- Qt_3_0_0) - void setFilenames(QStringList); - void setUnicodeUris(QStringList); -%End -%If (Qt_3_0_0 -) - void setFileNames(const QStringList &); - void setUnicodeUris(const QStringList &); -%End - virtual void setUris(QStrList); - - static QString uriToLocalFile(const char *); - static QCString localFileToUri(const QString &); - static QString uriToUnicodeUri(const char *); - static QCString unicodeUriToUri(const QString &); - static bool canDecode(const QMimeSource *); - static bool decode(const QMimeSource *,QStrList &); - static bool decodeToUnicodeUris(const QMimeSource *,QStringList &); - static bool decodeLocalFiles(const QMimeSource *,QStringList &); - -private: -%If (Qt_3_1_0 -) - QUriDrag(const QUriDrag &); -%End -}; - -%End - - -%If (Qt_2_1_0 -) - -class QColorDrag : QStoredDrag -{ -%TypeHeaderCode -#include -%End - -public: - QColorDrag(const QColor &,QWidget * /TransferThis/ = 0, - const char * = 0); - QColorDrag(QWidget * /TransferThis/ = 0,const char * = 0); - - void setColor(const QColor &); - - static bool canDecode(QMimeSource *); - static bool decode(QMimeSource *,QColor &); - -private: -%If (Qt_3_1_0 -) - QColorDrag(const QColorDrag &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qdrawutil.sip b/python/pyqt/sip/qt/qdrawutil.sip deleted file mode 100644 index 8daf4f63..00000000 --- a/python/pyqt/sip/qt/qdrawutil.sip +++ /dev/null @@ -1,74 +0,0 @@ -// This is the SIP interface definition for the Qt drawing utilities. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ModuleHeaderCode -#include -%End - - -void qDrawShadeLine(QPainter *,int,int,int,int,const QColorGroup &,bool = 1, - int = 1,int = 0); -void qDrawShadeLine(QPainter *,const QPoint &,const QPoint &, - const QColorGroup &,bool = 1,int = 1,int = 0); - -void qDrawShadeRect(QPainter *,int,int,int,int,const QColorGroup &,bool = 0, - int = 1,int = 0,const QBrush * = 0); -void qDrawShadeRect(QPainter *,const QRect &,const QColorGroup &,bool = 0, - int = 1,int = 0,const QBrush * = 0); - -void qDrawShadePanel(QPainter *,int,int,int,int,const QColorGroup &,bool = 0, - int = 1,const QBrush * = 0); -void qDrawShadePanel(QPainter *,const QRect &,const QColorGroup &,bool = 0, - int = 1,const QBrush * = 0); - -void qDrawWinButton(QPainter *,int,int,int,int,const QColorGroup &,bool = 0, - const QBrush * = 0); -void qDrawWinButton(QPainter *,const QRect &,const QColorGroup &,bool = 0, - const QBrush * = 0); - -void qDrawWinPanel(QPainter *,int,int,int,int,const QColorGroup &,bool = 0, - const QBrush * = 0); -void qDrawWinPanel(QPainter *,const QRect &,const QColorGroup &,bool = 0, - const QBrush * = 0); - -void qDrawPlainRect(QPainter *,int,int,int,int,const QColor &,int = 1, - const QBrush * = 0); -void qDrawPlainRect(QPainter *,const QRect &,const QColor &,int = 1, - const QBrush * = 0); - -%If (- Qt_2_00) -QRect qItemRect(QPainter *,GUIStyle,int,int,int,int,int,bool,const QPixmap *, - const char *,int = -1); - -void qDrawItem(QPainter *,GUIStyle,int,int,int,int,int,const QColorGroup &,bool, - const QPixmap *,const char *,int = -1); - -enum ArrowType { - UpArrow, - DownArrow, - LeftArrow, - RightArrow -}; - -void qDrawArrow(QPainter *,ArrowType,GUIStyle,bool,int,int,int,int, - const QColorGroup &,bool); -%End diff --git a/python/pyqt/sip/qt/qdropsite.sip b/python/pyqt/sip/qt/qdropsite.sip deleted file mode 100644 index 7e4132e4..00000000 --- a/python/pyqt/sip/qt/qdropsite.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP interface definition for QDropSite. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QDropSite - -QDropSite is fully implemented. - - -%End - - -%If (Qt_DRAGANDDROP) - -class QDropSite -{ -%TypeHeaderCode -#include -%End - -public: - QDropSite(QWidget *); - -%If (- Qt_2_00) - virtual void dragEnterEvent(QDragEnterEvent *); - virtual void dragMoveEvent(QDragMoveEvent *); - virtual void dragLeaveEvent(QDragLeaveEvent *); - virtual void dropEvent(QDropEvent *); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qerrormessage.sip b/python/pyqt/sip/qt/qerrormessage.sip deleted file mode 100644 index d8fb8cad..00000000 --- a/python/pyqt/sip/qt/qerrormessage.sip +++ /dev/null @@ -1,57 +0,0 @@ -// This is the SIP interface definition for QErrorMessage. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QErrorMessage (Qt v3+) - -QErrorMessage is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QErrorMessage : QDialog -{ -%TypeHeaderCode -#include -%End - -public: - QErrorMessage(QWidget * /TransferThis/,const char * = 0); - - static QErrorMessage *qtHandler(); - -public slots: - void message(const QString &); - -protected: - void done(int); - -private: -%If (Qt_3_1_0 -) - QErrorMessage(const QErrorMessage &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qevent.sip b/python/pyqt/sip/qt/qevent.sip deleted file mode 100644 index 965077f8..00000000 --- a/python/pyqt/sip/qt/qevent.sip +++ /dev/null @@ -1,1235 +0,0 @@ -// This is the SIP interface definition for QEvent, QChildEvent, QCloseEvent, -// QIconDragEvent, QContextMenuEvent, QCustomEvent, QDragEnterEvent, -// QDragLeaveEvent, QDragMoveEvent, QDropEvent, QFocusEvent, QHideEvent, -// QIMEvent, QIMComposeEvent, QKeyEvent, QMouseEvent, QMoveEvent, QPaintEvent, -// QResizeEvent, QShowEvent, QTabletEvent, QTimerEvent, QWheelEvent. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QEvent - -QEvent is fully implemented. - - -Instances of QEvents are automatically converted to the -correct sub-class. - - - -QChildEvent - -QChildEvent is fully implemented. - - - -QCloseEvent - -QCloseEvent is fully implemented. - - - -QIconDragEvent (Qt v3.3+) - -QIconDragEvent is fully implemented. - - - -QContextMenuEvent (Qt v3+) - -QContextMenuEvent is fully implemented. - - - -QCustomEvent - -QCustomEvent is fully implemented. Any Python object can be -passed as the event data and its reference count is increased. - - - -QDragEnterEvent - -QDragEnterEvent is fully implemented. - - - -QDragLeaveEvent - -QDragLeaveEvent is fully implemented. - - - -QDragMoveEvent - -QDragMoveEvent is fully implemented. - - - -QDropEvent - -QDropEvent is fully implemented. - - - -QFocusEvent - -QFocusEvent is fully implemented. - - - -QHideEvent - -QHideEvent is fully implemented. - - - -QIMComposeEvent (Qt v3.1+) - -QIMComposeEvent is fully implemented. - - - -QIMEvent (Qt v3+) - -QIMEvent is fully implemented. - - - -QKeyEvent - -QKeyEvent is fully implemented. - - - -QMouseEvent - -QMouseEvent is fully implemented. - - - -QMoveEvent - -QMoveEvent is fully implemented. - - - -QPaintEvent - -QPaintEvent is fully implemented. - - - -QResizeEvent - -QResizeEvent is fully implemented. - - - -QShowEvent - -QShowEvent is fully implemented. - - - -QTabletEvent (Qt v3+) - -QTabletEvent is fully implemented. - - - -QTimerEvent - -QTimerEvent is fully implemented. - - - -QWheelEvent (Qt v2+) - -QWheelEvent is fully implemented. - - -%End - - -%ModuleHeaderCode -#include -%End - - -%If (- Qt_2_00) - -const int Event_None; -const int Event_Timer; -const int Event_MouseButtonPress; -const int Event_MouseButtonRelease; -const int Event_MouseButtonDblClick; -const int Event_MouseMove; -const int Event_KeyPress; -const int Event_KeyRelease; -const int Event_FocusIn; -const int Event_FocusOut; -const int Event_Enter; -const int Event_Leave; -const int Event_Paint; -const int Event_Move; -const int Event_Resize; -const int Event_Create; -const int Event_Destroy; -const int Event_Show; -const int Event_Hide; -const int Event_Close; -const int Event_Quit; -const int Event_Accel; -const int Event_Clipboard; -const int Event_SockAct; -const int Event_DragEnter; -const int Event_DragMove; -const int Event_DragLeave; -const int Event_Drop; -const int Event_DragResponse; -const int Event_ChildInserted; -const int Event_ChildRemoved; -const int Event_LayoutHint; -const int Event_ActivateControl; -const int Event_DeactivateControl; -const int Event_User; - - -enum ButtonState { - NoButton = 0x00, - LeftButton = 0x01, - RightButton = 0x02, - MidButton = 0x04, - MouseButtonMask = 0x07, - ShiftButton = 0x08, - ControlButton = 0x10, - AltButton = 0x20, - KeyButtonMask = 0x38 -}; - - -class QEvent -{ -%TypeHeaderCode -#include -%End - -public: - QEvent(int); - QEvent(QEvent&); - - int type() const; - -%ConvertToSubClassCode - switch (sipCpp -> type()) - { - case Event_Timer: - sipClass = sipClass_QTimerEvent; - break; - - case Event_MouseButtonPress: - case Event_MouseButtonRelease: - case Event_MouseButtonDblClick: - case Event_MouseMove: - sipClass = sipClass_QMouseEvent; - break; - - case Event_KeyPress: - case Event_KeyRelease: - sipClass = sipClass_QKeyEvent; - break; - - case Event_FocusIn: - case Event_FocusOut: - sipClass = sipClass_QFocusEvent; - break; - - case Event_Paint: - sipClass = sipClass_QPaintEvent; - break; - - case Event_Move: - sipClass = sipClass_QMoveEvent; - break; - - case Event_Resize: - sipClass = sipClass_QResizeEvent; - break; - - case Event_Close: - sipClass = sipClass_QCloseEvent; - break; - - case Event_Show: - sipClass = sipClass_QShowEvent; - break; - - case Event_Hide: - sipClass = sipClass_QHideEvent; - break; - - case Event_DragMove: - sipClass = sipClass_QDragMoveEvent; - break; - - case Event_DragEnter: - sipClass = sipClass_QDragEnterEvent; - break; - - case Event_DragLeave: - sipClass = sipClass_QDragLeaveEvent; - break; - - case Event_Drop: - sipClass = sipClass_QDropEvent; - break; - - case Event_ChildInserted: - case Event_ChildRemoved: - sipClass = sipClass_QChildEvent; - break; - - default: - sipClass = NULL; - } -%End -}; - -%End - -%If (Qt_2_00 -) - -class QEvent : Qt -{ -%TypeHeaderCode -#include -%End - -public: - enum Type - { - None, - Timer, - MouseButtonPress, - MouseButtonRelease, - MouseButtonDblClick, - MouseMove, - KeyPress, - KeyRelease, - FocusIn, - FocusOut, - Enter, - Leave, - Paint, - Move, - Resize, - Create, - Destroy, - Show, - Hide, - Close, - Quit, -%If (Qt_2_1_0 -) - Reparent, - ShowMinimized, - ShowNormal, - WindowActivate, - WindowDeactivate, - ShowToParent, - HideToParent, - ShowMaximized, -%End -%If (Qt_3_0_0 -) - ShowFullScreen, -%End - Accel, - Wheel, - AccelAvailable, -%If (Qt_2_1_0 -) - CaptionChange, - IconChange, - ParentFontChange, - ApplicationFontChange, - ParentPaletteChange, - ApplicationPaletteChange, -%End -%If (Qt_3_0_0 -) - PaletteChange, -%End - Clipboard, -%If (Qt_2_2_0 -) - Speech, -%End - SockAct, -%If (Qt_2_2_0 -) - AccelOverride, -%End -%If (Qt_3_0_0 -) - DeferredDelete, -%End - DragEnter, - DragMove, - DragLeave, - Drop, - DragResponse, - ChildInserted, - ChildRemoved, - LayoutHint, -%If (Qt_2_2_0 -) - ShowWindowRequest, -%End -%If (Qt_3_3_0 -) - WindowBlocked, - WindowUnblocked, -%End - ActivateControl, - DeactivateControl, -%If (Qt_2_1_0 - Qt_2_2_0) - Configure, - ConfigureLayout, -%End -%If (Qt_3_0_0 -) - ContextMenu, - IMStart, - IMCompose, - IMEnd, - Accessibility, -%End -%If (Qt_3_0_0 - Qt_3_1_0) - Tablet, -%End -%If (Qt_3_1_0 -) - TabletMove, - LocaleChange, - LanguageChange, - LayoutDirectionChange, - Style, - TabletPress, - TabletRelease, -%End -%If (Qt_3_3_0 -) - OkRequest, - HelpRequest, - IconDrag, - WindowStateChange, -%End - User, -%If (Qt_3_0_0 -) - MaxUser, -%End - }; - - QEvent(Type); - QEvent(QEvent&); - virtual ~QEvent(); - - Type type() const; -%If (Qt_3_0_0 -) - bool spontaneous() const; -%End - -%ConvertToSubClassCode - switch (sipCpp -> type()) - { - case QEvent::Timer: - sipClass = sipClass_QTimerEvent; - break; - - case QEvent::MouseButtonPress: - case QEvent::MouseButtonRelease: - case QEvent::MouseButtonDblClick: - case QEvent::MouseMove: - sipClass = sipClass_QMouseEvent; - break; - - case QEvent::Accel: -#if QT_VERSION >= 220 - case QEvent::AccelOverride: -#endif - case QEvent::KeyPress: - case QEvent::KeyRelease: - sipClass = sipClass_QKeyEvent; - break; - - case QEvent::FocusIn: - case QEvent::FocusOut: - sipClass = sipClass_QFocusEvent; - break; - - case QEvent::Paint: - sipClass = sipClass_QPaintEvent; - break; - - case QEvent::Move: - sipClass = sipClass_QMoveEvent; - break; - - case QEvent::Resize: - sipClass = sipClass_QResizeEvent; - break; - - case QEvent::Close: - sipClass = sipClass_QCloseEvent; - break; - -#if QT_VERSION >= 0x030300 - case QEvent::IconDrag: - sipClass = sipClass_QIconDragEvent; - break; -#endif - - case QEvent::Wheel: - sipClass = sipClass_QWheelEvent; - break; - - case QEvent::Show: - sipClass = sipClass_QShowEvent; - break; - - case QEvent::Hide: - sipClass = sipClass_QHideEvent; - break; - -#if defined(SIP_FEATURE_Qt_DRAGANDDROP) - case QEvent::DragMove: - sipClass = sipClass_QDragMoveEvent; - break; - - case QEvent::DragEnter: - sipClass = sipClass_QDragEnterEvent; - break; - - case QEvent::DragLeave: - sipClass = sipClass_QDragLeaveEvent; - break; - - case QEvent::Drop: - sipClass = sipClass_QDropEvent; - break; -#endif - - case QEvent::ChildInserted: - case QEvent::ChildRemoved: - sipClass = sipClass_QChildEvent; - break; - -#if QT_VERSION >= 0x030000 - case QEvent::ContextMenu: - sipClass = sipClass_QContextMenuEvent; - break; - - case QEvent::IMStart: - case QEvent::IMEnd: - sipClass = sipClass_QIMEvent; - break; -#endif - -#if QT_VERSION >= 0x030000 && QT_VERSION < 0x030100 - case QEvent::IMCompose: - sipClass = sipClass_QIMEvent; - break; - - case QEvent::Tablet: - sipClass = sipClass_QTabletEvent; - break; -#endif - -#if QT_VERSION >= 0x030100 - case QEvent::IMCompose: - sipClass = sipClass_QIMComposeEvent; - break; - - case QEvent::TabletMove: - case QEvent::TabletPress: - case QEvent::TabletRelease: - sipClass = sipClass_QTabletEvent; - break; -#endif - - default: - sipClass = (sipCpp -> type() < QEvent::User ? - sipClass_QEvent : - sipClass_QCustomEvent); - } -%End -}; - -%End - - -class QTimerEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: - QTimerEvent(int); - - int timerId() const; -}; - - -class QMouseEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QMouseEvent(int,const QPoint &,int,int); - QMouseEvent(int,const QPoint &,const QPoint &,int,int); -%End -%If (Qt_2_00 -) - QMouseEvent(Type,const QPoint &,int,int); - QMouseEvent(Type,const QPoint &,const QPoint &,int,int); -%End - - const QPoint &pos() const; - const QPoint &globalPos() const; - int x() const; - int y() const; - int globalX() const; - int globalY() const; -%If (- Qt_2_00) - int button() const; - int state() const; -%End -%If (Qt_2_00 -) - ButtonState button() const; - ButtonState state() const; - ButtonState stateAfter() const; -%End -%If (Qt_3_0_0 -) - bool isAccepted() const; - void accept(); - void ignore(); -%End -}; - - -%If (Qt_2_00 -) - -class QWheelEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_3_0_0) - QWheelEvent(const QPoint &,int,int); - QWheelEvent(const QPoint &,const QPoint &,int,int); -%End -%If (Qt_3_0_0 -) - QWheelEvent(const QPoint &,int,int,Orientation = Vertical); - QWheelEvent(const QPoint &,const QPoint &,int,int, - Orientation = Vertical); -%End - - int delta() const; - const QPoint &pos() const; - const QPoint &globalPos() const; - int x() const; - int y() const; - int globalX() const; - int globalY() const; - ButtonState state() const; -%If (Qt_3_0_0 -) - Orientation orientation() const; -%End - bool isAccepted() const; - void accept(); - void ignore(); -}; - -%End - - -%If (Qt_3_0_0 -) - -class QTabletEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: - enum TabletDevice { - NoDevice, - Puck, - Stylus, - Eraser - }; - -%If (- Qt_3_1_0) - QTabletEvent(const QPoint &,int,int,int,int,const QPair &); -%End -%If (Qt_3_1_0 -) - QTabletEvent(Type,const QPoint &,const QPoint &,int,int,int,int, - const QPair &); -%End - QTabletEvent(const QPoint &,const QPoint &,int,int,int,int, - const QPair &); - - int pressure() const; - int xTilt() const; - int yTilt() const; - const QPoint &pos() const; - const QPoint &globalPos() const; - int x() const; - int y() const; - int globalX() const; - int globalY() const; - TabletDevice device() const; - int isAccepted() const; - void accept(); - void ignore(); - QPair uniqueId(); -}; - -%End - - -class QKeyEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QKeyEvent(int,int,int,int); -%End -%If (Qt_2_00 -) - QKeyEvent(Type,int,int,int,const QString & = QString::null,bool = 0, - ushort = 1); -%End - - int key() const; - int ascii() const; - bool isAccepted() const; - void accept(); - void ignore(); - -%If (- Qt_2_00) - int state() const; -%End - -%If (Qt_2_00 -) - ButtonState state() const; - ButtonState stateAfter() const; - QString text() const; - bool isAutoRepeat() const; - int count() const; -%End -}; - - -class QFocusEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QFocusEvent(int); -%End -%If (Qt_2_00 -) - QFocusEvent(Type); -%End - - bool gotFocus() const; - bool lostFocus() const; - -%If (Qt_2_1_0 -) -%If (- Qt_3_0_0) - enum Reason { - Mouse, - Tab, - ActiveWindow, - Popup, - Shortcut, - Other - }; -%End -%If (Qt_3_0_0 -) - enum Reason { - Mouse, - Tab, - Backtab, - ActiveWindow, - Popup, - Shortcut, - Other - }; -%End - - static Reason reason(); - static void setReason(Reason); - static void resetReason(); -%End -}; - - -class QPaintEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QPaintEvent(const QRect &); -%End -%If (Qt_2_00 -) - QPaintEvent(const QRegion &,bool = 1); - QPaintEvent(const QRect &,bool = 1); -%End -%If (Qt_3_3_0 -) - QPaintEvent(const QRegion &,const QRect &,bool = 1); -%End - - const QRect &rect() const; -%If (Qt_2_00 -) - const QRegion ®ion() const; - bool erased() const; -%End -}; - - -class QMoveEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: - QMoveEvent(const QPoint &,const QPoint &); - - const QPoint &pos() const; - const QPoint &oldPos() const; -}; - - -class QResizeEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: - QResizeEvent(const QSize &,const QSize &); - - const QSize &size() const; - const QSize &oldSize() const; -}; - - -class QCloseEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: - QCloseEvent(); - - bool isAccepted() const; - void accept(); - void ignore(); -}; - - -%If (Qt_3_3_0 -) - -class QIconDragEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: - QIconDragEvent(); - - bool isAccepted() const; - void accept(); - void ignore(); -}; - -%End - - -class QShowEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_3_0_0) - QShowEvent(bool); - - bool spontaneous() const; -%End -%If (Qt_3_0_0 -) - QShowEvent(); -%End -}; - - -class QHideEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_3_0_0) - QHideEvent(bool); - - bool spontaneous() const; -%End -%If (Qt_3_0_0 -) - QHideEvent(); -%End -}; - - -%If (Qt_3_0_0 -) - -class QContextMenuEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: - enum Reason { - Mouse, - Keyboard, - Other - }; - - QContextMenuEvent(Reason,const QPoint &,const QPoint &,int); - QContextMenuEvent(Reason,const QPoint &,int); - - int x() const; - int y() const; - int globalX() const; - int globalY() const; - - const QPoint &pos() const; - const QPoint &globalPos() const; - - ButtonState state() const; - bool isAccepted() const; - bool isConsumed() const; - void consume(); - void accept(); - void ignore(); - Reason reason() const; -}; - -%End - - -%If (Qt_3_0_0 -) - -class QIMEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: - QIMEvent(Type,const QString &,int); - - const QString &text() const; - int cursorPos() const; - bool isAccepted() const; - void accept(); - void ignore(); -%If (Qt_3_1_0 -) - int selectionLength() const; -%End -}; - -%End - - -%If (Qt_3_1_0 -) - -class QIMComposeEvent : QIMEvent -{ -%TypeHeaderCode -#include -%End - -public: - QIMComposeEvent(Type,const QString &,int,int); -}; - -%End - - -%If (- Qt_2_00) - -class QDropEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: - QDropEvent(const QPoint &); - - const QPoint &pos() const; - bool isAccepted() const; - void accept(); - void ignore(); - QByteArray data(const char *); -}; - -%End - - -%If (Qt_2_00 -) -%If (Qt_DRAGANDDROP) - -class QDropEvent : QEvent, QMimeSource -{ -%TypeHeaderCode -#include -%End - -public: - QDropEvent(const QPoint &,Type = Drop); - - const QPoint &pos() const; - bool isAccepted() const; - void accept(bool = 1); - void ignore(); - bool isActionAccepted() const; - void acceptAction(bool = 1); - - enum Action - { - Copy, - Link, - Move, - Private, - UserAction = 100 - }; - - void setAction(Action); - Action action() const; - QWidget *source() const; - const char *format(int = 0) const; - QByteArray encodedData(const char *) const; - bool provides(const char *) const; - QByteArray data(const char *) const; - void setPoint(const QPoint &); -}; - -%End -%End - - -%If (- Qt_2_00) - -class QDragMoveEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: - QDragMoveEvent(const QPoint &); - - const QPoint &pos() const; - bool isAccepted() const; - void accept(); - void ignore(); - void accept(const QRect &); - void ignore(const QRect &); - QRect answerRect() const; - const char *format(int = 0); - bool provides(const char *); - QByteArray data(const char *); - -protected: - QDragMoveEvent(const QPoint &,int); -}; - -%End - - -%If (Qt_DRAGANDDROP) -%If (Qt_2_00 -) - -class QDragMoveEvent : QDropEvent -{ -%TypeHeaderCode -#include -%End - -public: - QDragMoveEvent(const QPoint &,Type = DragMove); - - QRect answerRect() const; - void accept(bool = 1); - void accept(const QRect &); - void ignore(const QRect &); - void ignore(); -}; - -%End - - -class QDragEnterEvent : QDragMoveEvent -{ -%TypeHeaderCode -#include -%End - -public: - QDragEnterEvent(const QPoint &); -}; - - -class QDragLeaveEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: - QDragLeaveEvent(); -}; - -%End - - -class QChildEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QChildEvent(int,QWidget *); -%End -%If (Qt_2_00 -) - QChildEvent(Type,QObject *); -%End - -%If (- Qt_2_00) - QWidget *child() const; -%End -%If (Qt_2_00 -) - QObject *child() const; -%End - bool inserted() const; - bool removed() const; -}; - - -class QCustomEvent : QEvent -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QCustomEvent(int,SIP_PYOBJECT /Transfer/); -%End -%If (Qt_2_00 -) - QCustomEvent(Type,SIP_PYOBJECT /Transfer/); -%End -%If (Qt_2_1_0 -) - QCustomEvent(int); -%End - ~QCustomEvent(); -%VirtualCatcherCode - // We need to garbage collect any current data. - - PyObject *old = reinterpret_cast(data()); - - SIP_BLOCK_THREADS - Py_XDECREF(old); - SIP_UNBLOCK_THREADS -%End - - SIP_PYOBJECT data() const; -%MethodCode - // We need to cast the result. - - sipRes = reinterpret_cast(sipCpp -> QCustomEvent::data()); - - // In case the event has been created from C++ code. - if (!sipRes) - sipRes = Py_None; - - Py_INCREF(sipRes); -%End - -%If (Qt_2_1_0 -) - void setData(SIP_PYOBJECT /Transfer/); -%MethodCode - // We need to garbage collect any current data. - - PyObject *old = reinterpret_cast(sipCpp -> QCustomEvent::data()); - sipCpp -> QCustomEvent::setData(a0); - - Py_XDECREF(old); -%End -%End - -%GCTraverseCode - // Support the Python garbage collector. Although it's not obviously - // documented, we can't release the GIL in traverse code. - - PyObject *obj = reinterpret_cast(sipCpp -> QCustomEvent::data()); - - if (obj) - sipRes = sipVisit(obj, sipArg); - else - sipRes = 0; -%End - -%GCClearCode - // Support the Python garbage collector. - - PyObject *obj = reinterpret_cast(sipCpp -> QCustomEvent::data()); - - sipCpp -> QCustomEvent::setData(0); - - Py_XDECREF(obj); - - sipRes = 0; -%End -}; diff --git a/python/pyqt/sip/qt/qeventloop.sip b/python/pyqt/sip/qt/qeventloop.sip deleted file mode 100644 index d1c540e0..00000000 --- a/python/pyqt/sip/qt/qeventloop.sip +++ /dev/null @@ -1,89 +0,0 @@ -// This is the SIP interface definition for QEventLoop. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QEventLoop (Qt v3.1+) - - virtual int exec - - - -This has been renamed to exec_loop in Python. - - -%End - - -%If (Qt_3_1_0 -) - -class QEventLoop : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QEventLoop(QObject * /TransferThis/ = 0,const char * = 0); - - enum ProcessEvents { - AllEvents, - ExcludeUserInput, - ExcludeSocketNotifiers, - WaitForMore - }; - - typedef uint ProcessEventsFlags; - - void processEvents(ProcessEventsFlags,int) /ReleaseGIL/; - virtual bool processEvents(ProcessEventsFlags) /ReleaseGIL/; - - virtual bool hasPendingEvents() const; - - virtual void registerSocketNotifier(QSocketNotifier *); - virtual void unregisterSocketNotifier(QSocketNotifier *); -%If (Qt_3_1_1 -) - // These were present in the X11 version of Qt v3.1.0 but didn't make - // it to the Windows version until Qt v3.1.1. - void setSocketNotifierPending(QSocketNotifier *); - int activateSocketNotifiers(); - - int activateTimers(); - int timeToWait() const; -%End - - virtual int exec() /PyName=exec_loop, ReleaseGIL, - PreHook=__pyQtPreEventLoopHook__, - PostHook=__pyQtPostEventLoopHook__/; - virtual void exit(int = 0); - - virtual int enterLoop(); - virtual void exitLoop(); - virtual int loopLevel() const; - - virtual void wakeUp(); - -signals: - void awake(); - void aboutToBlock(); -}; - -%End diff --git a/python/pyqt/sip/qt/qfile.sip b/python/pyqt/sip/qt/qfile.sip deleted file mode 100644 index 3252b852..00000000 --- a/python/pyqt/sip/qt/qfile.sip +++ /dev/null @@ -1,310 +0,0 @@ -// This is the SIP interface definition for QFile. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QFile - - bool open - int m - FILE *f - - -Not implemented. - - - - Q_LONG readBlock - char *data - Q_ULONG len - - -This takes a single len parameter. The -data is returned if there was no error, otherwise -None is returned. - - - - Q_LONG readLine - char *data - Q_ULONG maxlen - - -This takes a single maxlen parameter. The -data is returned if there was no error, otherwise -None is returned. - - - - static void setDecodingFunction - EncoderFn f - - -Not yet implemented. (Qt v2+) - - - - static void setEncodingFunction - EncoderFn f - - -Not yet implemented. (Qt v2+) - - - - Q_LONG writeBlock - const char *data - Q_ULONG len - - -len is derived from data and not passed -as a parameter. - - -%End - - -class QFile : QIODevice -{ -%TypeHeaderCode -#include -%End - -public: - QFile(); -%If (- Qt_2_00) - QFile(const char *); -%End -%If (Qt_2_00 -) - QFile(const QString &); -%End - -%If (- Qt_2_00) - const char *name() const; - void setName(const char *); -%End -%If (Qt_2_00 -) - QString name() const; - void setName(const QString &); -%End - -%If (Qt_2_00 -) - static QCString encodeName(const QString &); - static QString decodeName(const QCString &); -// static void setEncodingFunction(EncoderFn); -// static void setDecodingFunction(DecoderFn); -%End - - bool exists() const; -%If (- Qt_2_00) - static bool exists(const char *); -%End -%If (Qt_2_00 -) - static bool exists(const QString &); -%End - - bool remove(); -%If (- Qt_2_00) - static bool remove(const char *); -%End -%If (Qt_2_00 -) - static bool remove(const QString &); -%End - - bool open(int) /ReleaseGIL/; -// bool open(int,FILE *) /ReleaseGIL/; - bool open(int,int) /ReleaseGIL/; - void close(); - void flush() /ReleaseGIL/; - -%If (- Qt_3_0_0) - uint size() const; - int at() const; - bool at(int); -%End -%If (Qt_3_0_0 -) - Offset size() const; - Offset at() const; - bool at(Offset); -%End - bool atEnd() const; - -%If (- Qt_3_0_0) - SIP_PYOBJECT readBlock(uint) /ReleaseGIL/ [int (char *,uint)]; -%MethodCode - char *buf; - - if ((buf = (char *)sipMalloc(a0)) == NULL) - sipIsErr = 1; - else - { - int actlen; - - Py_BEGIN_ALLOW_THREADS - actlen = sipSelfWasArg ? sipCpp -> QFile::readBlock(buf,a0) : sipCpp -> readBlock(buf,a0); - Py_END_ALLOW_THREADS - - if (actlen < 0) - { - Py_INCREF(Py_None); - sipRes = Py_None; - } - else if ((sipRes = PyString_FromStringAndSize(buf,actlen)) == NULL) - sipIsErr = 1; - - sipFree((ANY *)buf); - } -%End - - int writeBlock(const char * /Array/,uint /ArraySize/) /ReleaseGIL/; -%End -%If (Qt_3_0_0 -) - SIP_PYOBJECT readBlock(Q_ULONG) /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)]; -%MethodCode - char *buf; - - if ((buf = (char *)sipMalloc(a0)) == NULL) - sipIsErr = 1; - else - { - Q_LONG actlen; - - Py_BEGIN_ALLOW_THREADS - actlen = sipSelfWasArg ? sipCpp -> QFile::readBlock(buf,a0) : sipCpp -> readBlock(buf,a0); - Py_END_ALLOW_THREADS - - if (actlen < 0) - { - Py_INCREF(Py_None); - sipRes = Py_None; - } - else if ((sipRes = PyString_FromStringAndSize(buf,actlen)) == NULL) - sipIsErr = 1; - - sipFree((ANY *)buf); - } -%End - - - Q_LONG writeBlock(const char * /Array/, - Q_ULONG /ArraySize/) /ReleaseGIL/; -%End -%If (Qt_2_00 - Qt_3_0_0) - int writeBlock(const QByteArray &) /ReleaseGIL/; -%End -%If (Qt_3_0_0 -) - Q_LONG writeBlock(const QByteArray &) /ReleaseGIL/; -%End - -%If (- Qt_3_0_0) - SIP_PYOBJECT readLine(uint) /ReleaseGIL/ [int (char *,uint)]; -%MethodCode - char *buf; - - if ((buf = (char *)sipMalloc(a0)) == NULL) - sipIsErr = 1; - else - { - int actlen; - - Py_BEGIN_ALLOW_THREADS - actlen = sipSelfWasArg ? sipCpp -> QFile::readLine(buf,a0) : sipCpp -> readLine(buf,a0); - Py_END_ALLOW_THREADS - - if (actlen < 0) - { - sipFree((ANY *)buf); - - Py_INCREF(Py_None); - sipRes = Py_None; - } - else - { - sipRes = PyString_FromStringAndSize(buf,actlen); - - sipFree((ANY *)buf); - - if (sipRes == NULL) - sipIsErr = 1; - } - } -%End -%End -%If (Qt_3_0_0 -) - SIP_PYOBJECT readLine(Q_ULONG) /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)]; -%MethodCode - char *buf; - - if ((buf = (char *)sipMalloc(a0)) == NULL) - sipIsErr = 1; - else - { - Q_LONG actlen; - - Py_BEGIN_ALLOW_THREADS - actlen = sipSelfWasArg ? sipCpp -> QFile::readLine(buf,a0) : sipCpp -> readLine(buf,a0); - Py_END_ALLOW_THREADS - - if (actlen < 0) - { - sipFree((ANY *)buf); - - Py_INCREF(Py_None); - sipRes = Py_None; - } - else - { - sipRes = PyString_FromStringAndSize(buf,actlen); - - sipFree((ANY *)buf); - - if (sipRes == NULL) - sipIsErr = 1; - } - } -%End -%End - -%If (Qt_2_00 - Qt_3_0_0) - int readLine(QString &,uint) /ReleaseGIL/; -%End -%If (Qt_3_0_0 -) - Q_LONG readLine(QString &,Q_ULONG) /ReleaseGIL/; -%End - - int getch(); - int putch(int); - int ungetch(int); - - int handle() const; - -%If (Qt_3_2_0 -) - QString errorString() const; -%End - -protected: -%If (Qt_3_2_0 -) - void setErrorString(const QString &); -%End - -private: - QFile(const QFile &); -}; diff --git a/python/pyqt/sip/qt/qfiledialog.sip b/python/pyqt/sip/qt/qfiledialog.sip deleted file mode 100644 index 3e1df963..00000000 --- a/python/pyqt/sip/qt/qfiledialog.sip +++ /dev/null @@ -1,361 +0,0 @@ -// This is the SIP interface definition for QFileDialog, QFileIconProvider and -// QFilePreview. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QFileDialog - -QFileDialog is fully implemented. - - - -QFileIconProvider - -QFileIconProvider is fully implemented. - - - -QFilePreview - -QFilePreview is fully implemented. However it cannot be -used from Python in the same way as it is used from C++ because PyQt does not -support multiple inheritance involving more than one wrapped class. A trick -that seems to work is to use composition rather than inheritance as in the -following code fragment. - - -class FilePreview(QFilePreview): - pass - -class Preview(QLabel): - def __init__(self, parent=None): - QLabel.__init__(self, parent) - self.preview = FilePreview() - self.preview.previewUrl = self.previewUrl - - -Note that QFilePreview cannot be instantiated directly because it is abstract. -Thanks to Hans-Peter Jansen for this trick. - - -%End - - -%If (Qt_FILEDIALOG) - -class QFileIconProvider : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QFileIconProvider(QObject * /TransferThis/ = 0,const char * = 0); - - virtual const QPixmap *pixmap(const QFileInfo &); - -private: -%If (Qt_2_1_0 -) - QFileIconProvider(const QFileIconProvider &); -%End -}; - - -%If (Qt_2_1_0 -) -class QFilePreview -{ -%TypeHeaderCode -#include -%End - -public: - QFilePreview(); - - virtual void previewUrl(const QUrl &) = 0; -}; -%End - - -class QFileDialog : QDialog -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QFileDialog(const char *,const char * = 0,QWidget * /TransferThis/ = 0, - const char * = 0,bool = 0); -%End -%If (Qt_2_00 -) - QFileDialog(const QString &,const QString & = QString::null, - QWidget * /TransferThis/ = 0,const char * = 0,bool = 0); -%End - QFileDialog(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0); - -%If (- Qt_2_00) - static QString getOpenFileName(const char * = 0,const char * = 0, - QWidget * = 0, - const char * = 0) /ReleaseGIL/; - static QString getSaveFileName(const char * = 0,const char * = 0, - QWidget * = 0, - const char * = 0) /ReleaseGIL/; - static QString getExistingDirectory(const char * = 0,QWidget * = 0, - const char * = 0) /ReleaseGIL/; - static QStrList getOpenFileNames(const char * = 0,const char * = 0, - QWidget * = 0, - const char * = 0) /ReleaseGIL/; -%End -%If (Qt_2_00 - Qt_3_0_0) - static QString getOpenFileName(const QString & = QString::null, - const QString & = QString::null, - QWidget * = 0, - const char * = 0) /ReleaseGIL/; - static QString getSaveFileName(const QString & = QString::null, - const QString & = QString::null, - QWidget * = 0, - const char * = 0) /ReleaseGIL/; - static QString getExistingDirectory(const QString & = QString::null, - QWidget * = 0, - const char * = 0) /ReleaseGIL/; - static QStringList getOpenFileNames(const QString & = QString::null, - const QString & = QString::null, - QWidget * = 0, - const char * = 0) /ReleaseGIL/; -%End -%If (Qt_2_1_0 - Qt_3_0_0) - static QString getOpenFileName(const QString &,const QString &, - QWidget *,const char *, - const QString &) /ReleaseGIL/; - static QString getSaveFileName(const QString &,const QString &, - QWidget *,const char *, - const QString &) /ReleaseGIL/; - static QString getExistingDirectory(const QString &,QWidget *, - const char *, - const QString &) /ReleaseGIL/; - static QStringList getOpenFileNames(const QString &,const QString &, - QWidget *,const char *, - const QString &) /ReleaseGIL/; -%End -%If (Qt_2_2_0 - Qt_3_0_0) - static QString getExistingDirectory(const QString &,QWidget *, - const char *, - const QString &,bool) /ReleaseGIL/; -%End -%If (Qt_3_0_0 -) - static QString getOpenFileName(const QString & = QString::null, - const QString & = QString::null, - QWidget * = 0,const char * = 0, - const QString & = QString::null, - QString * = 0,bool = 1) /ReleaseGIL/; - - static QString getSaveFileName(const QString & = QString::null, - const QString & = QString::null, - QWidget * = 0,const char * = 0, - const QString & = QString::null, - QString * = 0,bool = 1) /ReleaseGIL/; - - static QString getExistingDirectory(const QString & = QString::null, - QWidget * = 0,const char * = 0, - const QString & = QString::null, - bool = 1,bool = 1) /ReleaseGIL/; - - static QStringList getOpenFileNames(const QString & = QString::null, - const QString & = QString::null, - QWidget * = 0,const char * = 0, - const QString & = QString::null, - QString * = 0, - bool = 1) /ReleaseGIL/; - -%End - - static void setIconProvider(QFileIconProvider *); - static QFileIconProvider *iconProvider(); - - QString selectedFile() const; -%If (Qt_2_1_0 -) - QString selectedFilter() const; -%End -%If (Qt_3_0_0 -) - virtual void setSelectedFilter(const QString &); - virtual void setSelectedFilter(int); -%End - -%If (- Qt_2_00) - void setSelection(const char *); -%End -%If (Qt_2_00 -) - void setSelection(const QString &); -%End - -%If (Qt_2_1_0 -) - void selectAll(bool); - - QStringList selectedFiles() const; -%End - -%If (- Qt_2_00) - const char *dirPath() const; -%End -%If (Qt_2_00 -) - QString dirPath() const; -%End - - void setDir(const QDir &); - const QDir* dir() const; - -%If (Qt_2_1_0 -) - void setShowHiddenFiles(bool); - bool showHiddenFiles() const; -%End - - void rereadDir() /ReleaseGIL/; -%If (Qt_2_1_0 -) - void resortDir(); -%End - -%If (- Qt_2_2_0) - enum Mode { - AnyFile, - ExistingFile, - Directory, - ExistingFiles - }; -%End -%If (Qt_2_2_0 -) - enum Mode { - AnyFile, - ExistingFile, - Directory, - ExistingFiles, - DirectoryOnly - }; -%End - - void setMode(Mode); - Mode mode() const; - -%If (Qt_2_1_0 -) - enum ViewMode { - Detail, - List - }; - - enum PreviewMode { - NoPreview, - Contents, - Info - }; - - void setViewMode(ViewMode); - ViewMode viewMode() const; - void setPreviewMode(PreviewMode); - PreviewMode previewMode() const; -%End - - bool eventFilter(QObject *,QEvent *); - -%If (Qt_2_1_0 -) - bool isInfoPreviewEnabled() const; - bool isContentsPreviewEnabled() const; - void setInfoPreviewEnabled(bool); - void setContentsPreviewEnabled(bool); - - void setInfoPreview(QWidget *,QFilePreview *); - void setContentsPreview(QWidget *,QFilePreview *); - - QUrl url() const; -%End - -%If (Qt_3_0_0 -) - void addFilter(const QString &); -%End - -public slots: -%If (Qt_2_2_0 -) - void done(int); -%End -%If (- Qt_2_00) - void setDir(const char *); -%End -%If (Qt_2_00 -) - void setDir(const QString &); -%End -%If (Qt_2_1_0 -) - void setUrl(const QUrlOperator &); -%End -%If (- Qt_2_00) - void setFilter(const char *); -%End -%If (Qt_2_00 -) - void setFilter(const QString &); -%End -%If (Qt_2_1_0 -) - void setFilters(const QString &); -%End -// void setFilters(const char **); -%If (- Qt_2_00) - void setFilters(const QStrList &); -%End -%If (Qt_2_00 -) - void setFilters(const QStringList &); -%End - -signals: -%If (- Qt_2_00) - void fileHighlighted(const char *); - void fileSelected(const char *); - void dirEntered(const char *); -%End -%If (Qt_2_00 -) - void fileHighlighted(const QString &); - void fileSelected(const QString &); -%End -%If (Qt_3_0_0 -) - void filesSelected(const QStringList &); -%End -%If (Qt_2_00 -) - void dirEntered(const QString &); -%End -%If (Qt_3_0_0 -) - void filterSelected(const QString &); -%End - -protected: - void resizeEvent(QResizeEvent *); - void keyPressEvent(QKeyEvent *); - - void addWidgets(QLabel *,QWidget *,QPushButton *); -%If (Qt_2_1_0 -) - void addToolButton(QButton *,bool = 0); - void addLeftWidget(QWidget *); - void addRightWidget(QWidget *); -%End -%If (Qt_2_1_0 - Qt_3_0_0) - void addFilter(const QString &); -%End - -private: - QFileDialog(const QFileDialog &); -}; - -%End diff --git a/python/pyqt/sip/qt/qfileinfo.sip b/python/pyqt/sip/qt/qfileinfo.sip deleted file mode 100644 index 7a014f7b..00000000 --- a/python/pyqt/sip/qt/qfileinfo.sip +++ /dev/null @@ -1,145 +0,0 @@ -// This is the SIP interface definition for QFileInfo. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QFileInfo - -QFileInfo is fully implemented. - - -%End - - -class QFileInfo -{ -%TypeHeaderCode -#include -%End - -public: - enum PermissionSpec { -%If (Qt_3_2_0 -) - ReadOwner, WriteOwner, ExeOwner, -%End - ReadUser, WriteUser, ExeUser, - ReadGroup, WriteGroup, ExeGroup, - ReadOther, WriteOther, ExeOther - }; - - QFileInfo(); -%If (- Qt_2_00) - QFileInfo(const char *); -%End -%If (Qt_2_00 -) - QFileInfo(const QString &); -%End - QFileInfo(const QFile &); -%If (- Qt_2_00) - QFileInfo(const QDir &,const char *); -%End -%If (Qt_2_00 -) - QFileInfo(const QDir &,const QString &); -%End - QFileInfo(const QFileInfo &); - -%If (- Qt_2_00) - void setFile(const char *); -%End -%If (Qt_2_00 -) - void setFile(const QString &); -%End - void setFile(const QFile &); -%If (- Qt_2_00) - void setFile(const QDir &,const char *); -%End -%If (Qt_2_00 -) - void setFile(const QDir &,const QString &); -%End - bool exists() const; - void refresh() const; - bool caching() const; - void setCaching(bool); - -%If (- Qt_2_00) - const char *filePath() const; -%End -%If (Qt_2_00 -) - const QString filePath() const; -%End - QString fileName() const; - QString absFilePath() const; -%If (- Qt_3_0_0) - QString baseName() const; -%End -%If (Qt_3_0_0 -) - QString baseName(bool = 1) const; -%End -%If (- Qt_2_00) - QString extension() const; -%End -%If (Qt_2_00 -) - QString extension(bool = 1) const; -%End - - QString dirPath(bool = 0) const; - QDir dir(bool = 0) const; - bool isReadable() const; - bool isWritable() const; - bool isExecutable() const; -%If (Qt_3_1_0 -) - bool isHidden() const; -%End - - bool isRelative() const; - bool convertToAbs(); - - bool isFile() const; - bool isDir() const; - bool isSymLink() const; - - QString readLink() const /ReleaseGIL/; - -%If (- Qt_2_00) - const char *owner() const; -%End -%If (Qt_2_00 -) - QString owner() const; -%End - uint ownerId() const; -%If (- Qt_2_00) - const char *group() const; -%End -%If (Qt_2_00 -) - QString group() const; -%End - uint groupId() const; - - bool permission(int) const; - - uint size() const; - -%If (Qt_3_0_0 -) - QDateTime created() const; -%End - QDateTime lastModified() const; - QDateTime lastRead() const; -}; diff --git a/python/pyqt/sip/qt/qfont.sip b/python/pyqt/sip/qt/qfont.sip deleted file mode 100644 index 4a10b0e1..00000000 --- a/python/pyqt/sip/qt/qfont.sip +++ /dev/null @@ -1,441 +0,0 @@ -// This is the SIP interface definition for QFont. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QFont - -QFont is fully implemented, including the Python -== and != operators. - - -%End - - -class QFont -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - enum CharSet { - Latin1, ISO_8859_1 = Latin1, AnyCharSet, - Latin2, ISO_8859_2 = Latin2, - Latin3, ISO_8859_3 = Latin3, - Latin4, ISO_8859_4 = Latin4, - Latin5, ISO_8859_5 = Latin5, - Latin6, ISO_8859_6 = Latin6, - Latin7, ISO_8859_7 = Latin7, - Latin8, ISO_8859_8 = Latin8, - Latin9, ISO_8859_9 = Latin9, - KOI8R - }; -%End -%If (Qt_2_00 - Qt_2_1_0) - enum CharSet { - ISO_8859_1, Latin1 = ISO_8859_1, AnyCharSet, - ISO_8859_2, Latin2 = ISO_8859_2, - ISO_8859_3, Latin3 = ISO_8859_3, - ISO_8859_4, Latin4 = ISO_8859_4, - ISO_8859_5, - ISO_8859_6, - ISO_8859_7, - ISO_8859_8, - ISO_8859_9, Latin5 = ISO_8859_9, - ISO_8859_10, Latin6 = ISO_8859_10, - ISO_8859_11, - ISO_8859_12, - ISO_8859_13, Latin7 = ISO_8859_13, - ISO_8859_14, Latin8 = ISO_8859_14, - ISO_8859_15, Latin9 = ISO_8859_15, - KOI8R, - Set_Ja, Set_1 = Set_Ja, - Set_Ko, - Set_Th_TH, - Set_Zh, - Set_Zh_TW, Set_N = Set_Zh_TW, - Unicode - }; -%End -%If (Qt_2_1_0 - Qt_2_2_0) - enum CharSet { - ISO_8859_1, Latin1 = ISO_8859_1, AnyCharSet, - ISO_8859_2, Latin2 = ISO_8859_2, - ISO_8859_3, Latin3 = ISO_8859_3, - ISO_8859_4, Latin4 = ISO_8859_4, - ISO_8859_5, - ISO_8859_6, - ISO_8859_7, - ISO_8859_8, - ISO_8859_9, Latin5 = ISO_8859_9, - ISO_8859_10, Latin6 = ISO_8859_10, - ISO_8859_11, - ISO_8859_12, - ISO_8859_13, Latin7 = ISO_8859_13, - ISO_8859_14, Latin8 = ISO_8859_14, - ISO_8859_15, Latin9 = ISO_8859_15, - KOI8R, - Set_Ja, Set_1 = Set_Ja, - Set_Ko, - Set_Th_TH, - Set_Zh, - Set_Zh_TW, Set_N = Set_Zh_TW, - Unicode, - Set_GBK, - Set_Big5 - }; -%End -%If (Qt_2_2_0 - Qt_3_0_0) - enum CharSet { - ISO_8859_1, Latin1 = ISO_8859_1, AnyCharSet, - ISO_8859_2, Latin2 = ISO_8859_2, - ISO_8859_3, Latin3 = ISO_8859_3, - ISO_8859_4, Latin4 = ISO_8859_4, - ISO_8859_5, - ISO_8859_6, - ISO_8859_7, - ISO_8859_8, - ISO_8859_9, Latin5 = ISO_8859_9, - ISO_8859_10, Latin6 = ISO_8859_10, - ISO_8859_11, - ISO_8859_12, - ISO_8859_13, Latin7 = ISO_8859_13, - ISO_8859_14, Latin8 = ISO_8859_14, - ISO_8859_15, Latin9 = ISO_8859_15, - KOI8R, - Set_Ja, Set_1 = Set_Ja, - Set_Ko, - Set_Th_TH, - Set_Zh, - Set_Zh_TW, Set_N = Set_Zh_TW, - Unicode, - Set_GBK, - Set_Big5, - JIS_X_0201 = 0xa0, - JIS_X_0208 = 0xc0, Enc16 = JIS_X_0208, - KSC_5601, - GB_2312, - Big5, - TSCII - }; -%End - - enum StyleHint { - Helvetica, - Times, - Courier, - OldEnglish, - System, - AnyStyle, - SansSerif, - Serif, - TypeWriter, - Decorative - }; - -%If (Qt_2_2_0 -) - enum StyleStrategy { - PreferDefault, - PreferBitmap, - PreferDevice, - PreferOutline, - ForceOutline, - PreferMatch, - PreferQuality, -%If (Qt_3_0_0 -) - PreferAntialias, - NoAntialias, -%End -%If (Qt_3_2_0 -) - OpenGLCompatible, -%End - }; -%End - - enum Weight { - Light, - Normal, - DemiBold, - Bold, - Black - }; - -%If (Qt_3_2_0 -) - enum Stretch { - UltraCondensed, - ExtraCondensed, - Condensed, - SemiCondensed, - Unstretched, - SemiExpanded, - Expanded, - ExtraExpanded, - UltraExpanded - }; -%End - - QFont(); -%If (- Qt_2_00) - QFont(const char *,int = 12,int = Normal,bool = 0); - QFont(const char *,int,int,bool,CharSet); -%End -%If (Qt_2_00 - Qt_3_2_0) - QFont(const QString &,int = 12,int = Normal,bool = 0); -%End -%If (Qt_3_2_0 -) - QFont(const QString &,int = 12,int = -1,bool = 0); -%End -%If (Qt_2_00 - Qt_3_0_0) - QFont(const QString &,int,int,bool,CharSet); -%End - QFont(const QFont &); - -%If (- Qt_2_00) - const char *family() const; - void setFamily(const char *); -%End -%If (Qt_2_00 -) - QString family() const; - void setFamily(const QString &); - - float pointSizeFloat() const; - void setPointSizeFloat(float); - - int pixelSize() const; - void setPixelSize(int); - void setPixelSizeFloat(float); -%End - int pointSize() const; - void setPointSize(int); - - int weight() const; - void setWeight(int); - - bool bold() const; - void setBold(bool); - - bool italic() const; - void setItalic(bool); - - bool underline() const; - void setUnderline(bool); - -%If (Qt_3_2_0 -) - bool overline() const; - void setOverline(bool); -%End - - bool strikeOut() const; - void setStrikeOut(bool); - - bool fixedPitch() const; - void setFixedPitch(bool); - - StyleHint styleHint() const; -%If (Qt_2_2_0 -) - StyleStrategy styleStrategy() const; -%End -%If (- Qt_3_0_0) - void setStyleHint(StyleHint); -%End -%If (Qt_2_2_0 - Qt_3_0_0) - void setStyleHint(StyleHint,StyleStrategy); -%End -%If (Qt_3_0_0 -) - void setStyleHint(StyleHint,StyleStrategy = PreferDefault); - void setStyleStrategy(StyleStrategy); -%End - -%If (- Qt_3_0_0) - CharSet charSet() const; - void setCharSet(CharSet); -%End - -%If (Qt_3_2_0 -) - int stretch() const; - void setStretch(int); -%End - - bool rawMode() const; - void setRawMode(bool); - - bool exactMatch() const; - - bool operator==(const QFont &) const; - bool operator!=(const QFont &) const; - - bool isCopyOf(const QFont &) const; - -%If (- Qt_2_00) - HANDLE handle(HANDLE = 0); - const char *rawName() const; - static const QFont &defaultFont(); - static const char *substitute(const char *); - static void insertSubstitution(const char *,const char *); - static void removeSubstitution(const char *); - static void listSubstitutions(QStrList *); -%End - -%If (Qt_2_00 - Qt_3_0_0) - static CharSet charSetForLocale(); -%End - -%If (Qt_2_00 -) -%If (- Qt_3_0_0) -%If (WS_X11) - HANDLE handle() const; -%End -%End -%If (Qt_3_0_0 -) -%If (WS_X11) - Qt::HANDLE handle() const; -%End -%End - void setRawName(const QString &); - QString rawName() const; -%End - QString key() const; -%If (Qt_3_0_0 -) - QString toString() const; - bool fromString(const QString &); -%End -%If (Qt_2_00 - Qt_3_0_0) - static QString encodingName(CharSet); -%End -%If (Qt_2_00 -) - static QString substitute(const QString &); -%If (Qt_3_0_0 -) - static QStringList substitutes(const QString &); -%End - static QStringList substitutions(); - static void insertSubstitution(const QString &,const QString &); -%If (Qt_3_0_0 -) - static void insertSubstitutions(const QString &,const QStringList &); -%End - static void removeSubstitution(const QString &); -%If (- Qt_3_0_0) - static void locale_init(); -%End -%End - - static void initialize(); - static void cleanup(); - static void cacheStatistics(); - -%If (Qt_3_0_0 -) - enum Script { - Latin, - Greek, - Cyrillic, - Armenian, - Georgian, - Runic, - Ogham, - SpacingModifiers, - CombiningMarks, - - Hebrew, - Arabic, - Syriac, - Thaana, - - Devanagari, - Bengali, - Gurmukhi, - Gujarati, - Oriya, - Tamil, - Telugu, - Kannada, - Malayalam, - Sinhala, - Thai, - Lao, - Tibetan, - Myanmar, - Khmer, - - Han, - Hiragana, - Katakana, - Hangul, - Bopomofo, - Yi, - - Ethiopic, - Cherokee, - CanadianAboriginal, - Mongolian, - - CurrencySymbols, - LetterlikeSymbols, - NumberForms, - MathematicalOperators, - TechnicalSymbols, - GeometricSymbols, - MiscellaneousSymbols, - EnclosedAndSquare, - Braille, - - Unicode, - -%If (Qt_3_2_0 -) - Tagalog, - Hanunoo, - Buhid, - Tagbanwa, - - KatakanaHalfWidth, -%End - -%If (Qt_3_3_0 -) - Limbu, - TaiLe, -%End - }; - - QString defaultFamily() const; - QString lastResortFamily() const; - QString lastResortFont() const; -%End - -%If (Qt_2_00 - Qt_3_0_0) - static QFont defaultFont(); -%End -%If (- Qt_3_0_0) - static void setDefaultFont(const QFont &); -%End - -%If (Qt_3_2_0 -) - QFont resolve(const QFont &) const; -%End - -protected: - bool dirty() const; -%If (- Qt_3_0_0) - QString defaultFamily() const; - QString lastResortFamily() const; - QString lastResortFont() const; -%End - int deciPointSize() const; -}; diff --git a/python/pyqt/sip/qt/qfontdatabase.sip b/python/pyqt/sip/qt/qfontdatabase.sip deleted file mode 100644 index fc48f9be..00000000 --- a/python/pyqt/sip/qt/qfontdatabase.sip +++ /dev/null @@ -1,121 +0,0 @@ -// This is the SIP interface definition for QFontDatabase. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QFontDatabase (Qt v2.1+) - -QFontDatabase is fully implemented. - - -%End - - -%If (Qt_FONTDATABASE) -%If (Qt_2_1_0 -) - -class QFontDatabase -{ -%TypeHeaderCode -#include -%End - -public: - QFontDatabase(); - - static QValueList standardSizes(); - -%If (- Qt_3_0_0) - QStringList charSets(const QString &,bool = 1 ) const; - QStringList families(bool = 1) const; - QStringList styles(const QString &, - const QString & = QString::null) const; - QValueList pointSizes(const QString &, - const QString & = QString::null, - const QString & = QString::null); - QValueList smoothSizes(const QString &,const QString &, - const QString & = QString::null); -%End -%If (Qt_3_0_0 -) - QStringList families() const; -%If (Qt_3_2_0 -) - QStringList families(QFont::Script) const; -%End - QStringList styles(const QString &) const; - QValueList pointSizes(const QString &, - const QString & = QString::null); - QValueList smoothSizes(const QString &,const QString &); -%End - QString styleString(const QFont &); - -%If (- Qt_3_0_0) - QFont font(const QString,const QString &,int, - const QString = QString::null); - - bool isBitmapScalable(const QString &,const QString & = QString::null, - const QString & = QString::null) const; - bool isSmoothlyScalable(const QString &, - const QString & = QString::null, - const QString & = QString::null) const; - bool isScalable(const QString &,const QString & = QString::null, - const QString & = QString::null) const; -%End -%If (Qt_3_0_0 -) - QFont font(const QString,const QString &,int); - - bool isBitmapScalable(const QString &, - const QString & = QString::null) const; - bool isSmoothlyScalable(const QString &, - const QString & = QString::null) const; - bool isScalable(const QString &,const QString & = QString::null) const; -%End -%If (Qt_2_3_0 - Qt_3_0_0) - bool isFixedPitch(const QString &,const QString & = QString::null, - const QString & = QString::null) const; -%End -%If (Qt_3_0_0 -) - bool isFixedPitch(const QString &, - const QString & = QString::null) const; -%End - -%If (- Qt_3_0_0) - bool italic(const QString &,const QString &, - const QString & = QString::null) const; - bool bold(const QString &,const QString &, - const QString & = QString::null) const; - int weight(const QString &,const QString &, - const QString & = QString::null) const; - - static QString verboseCharSetName(const QString &); - static QString charSetSample(const QString &); -%End -%If (Qt_3_0_0 -) - bool italic(const QString &,const QString &) const; - bool bold(const QString &,const QString &) const; - int weight(const QString &,const QString &) const; - - static QString scriptName(QFont::Script); - static QString scriptSample(QFont::Script); -%End -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qfontdialog.sip b/python/pyqt/sip/qt/qfontdialog.sip deleted file mode 100644 index a2e9b800..00000000 --- a/python/pyqt/sip/qt/qfontdialog.sip +++ /dev/null @@ -1,105 +0,0 @@ -// This is the SIP interface definition for QFontDialog. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QFontDialog (Qt v2+) - - static QFont getFont - bool *ok - const QFont &def - QWidget *parent = 0 - const char *name = 0 - - -This takes the def, parent and -name parameters and returns a tuple containing the -QFont result and the ok value. - - - - static QFont getFont - bool *ok - QWidget *parent = 0 - const char *name = 0 - - -This takes the parent and name parameters -and returns a tuple containing the QFont result and the -ok value. - - -%End - - -%If (Qt_2_00 -) -%If (Qt_FONTDIALOG) - -class QFontDialog : QDialog -{ -%TypeHeaderCode -#include -%End - -public: - static QFont getFont(bool *,const QFont &,QWidget * = 0, - const char * = 0); - static QFont getFont(bool *,QWidget * = 0,const char * = 0); - -signals: -%If (- Qt_3_2_0) - void fontSelected(const QFont &); - void fontHighlighted(const QFont &); -%End - -protected: -%If (- Qt_3_2_0) - bool eventFilter(QObject *,QEvent *); - - QListBox *familyListBox() const; - virtual void updateFamilies(); - - QListBox *styleListBox() const; - virtual void updateStyles(); - - QListBox *sizeListBox() const; - virtual void updateSizes(); - - QComboBox *scriptCombo() const; - virtual void updateScripts(); -%End - -protected slots: -%If (- Qt_3_2_0) - void sizeChanged(const QString &); -%End - -private: - QFontDialog(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0, - WFlags = 0); -%If (Qt_2_1_0 -) - QFontDialog(const QFontDialog &); -%End - ~QFontDialog(); -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qfontinfo.sip b/python/pyqt/sip/qt/qfontinfo.sip deleted file mode 100644 index 0976e34d..00000000 --- a/python/pyqt/sip/qt/qfontinfo.sip +++ /dev/null @@ -1,70 +0,0 @@ -// This is the SIP interface definition for QFontInfo. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QFontInfo - -QFontInfo is fully implemented. - - -%End - - -class QFontInfo -{ -%TypeHeaderCode -#include -%End - -public: - QFontInfo(const QFont &); -%If (Qt_3_2_0 -) - QFontInfo(const QFont &,QFont::Script); -%End - QFontInfo(const QFontInfo &); - -%If (- Qt_2_00) - const char *family() const; -%End -%If (Qt_2_00 -) - QString family() const; -%End -%If (Qt_3_0_0 -) - int pixelSize() const; -%End - int pointSize() const; - bool italic() const; - int weight() const; - bool bold() const; - bool underline() const; -%If (Qt_3_2_0 -) - bool overline() const; -%End - bool strikeOut() const; - bool fixedPitch() const; - QFont::StyleHint styleHint() const; -%If (- Qt_3_0_0) - QFont::CharSet charSet() const; -%End - bool rawMode() const; - bool exactMatch() const; -}; diff --git a/python/pyqt/sip/qt/qfontmetrics.sip b/python/pyqt/sip/qt/qfontmetrics.sip deleted file mode 100644 index 388a29d9..00000000 --- a/python/pyqt/sip/qt/qfontmetrics.sip +++ /dev/null @@ -1,220 +0,0 @@ -// This is the SIP interface definition for QFontMetrics. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QFontMetrics - - QRect boundingRect - int x - int y - int w - int h - int flags - const QString &str - int len = -1 - int tabstops = 0 - int *tabarray = 0 - - -The tabarray parameter is a Python list of integers. - - - - QSize size - int flags - const QString &str - int len = -1 - int tabstops = 0 - int *tabarray = 0 - - -The tabarray parameter is a Python list of integers. - - -%End - - -class QFontMetrics -{ -%TypeHeaderCode -#include -%End - -public: - QFontMetrics(const QFont &); -%If (Qt_3_2_0 -) - QFontMetrics(const QFont &,QFont::Script); -%End - QFontMetrics(const QFontMetrics &); - - int ascent() const; - int descent() const; - int height() const; - int leading() const; - int lineSpacing() const; - int minLeftBearing() const; - int minRightBearing() const; - int maxWidth() const; -%If (- Qt_2_00) - bool inFont(char) const; - int leftBearing(char) const; - int rightBearing(char) const; - int width(const char *,int = -1) const; - int width(char) const; - QRect boundingRect(const char *,int = -1) const; - QRect boundingRect(char) const; - - QRect boundingRect(int,int,int,int,int,const char *,int = -1, - SIP_PYLIST /AllowNone/ = 0) const; -%MethodCode - int *tabarray; - - if (intListToArray(a8,&tabarray) < 0) - sipIsErr = 1; - else - { - Py_BEGIN_ALLOW_THREADS - sipRes = new QRect(sipCpp -> QFontMetrics::boundingRect(a0,a1,a2,a3,a4,a5,a6,a7,tabarray)); - Py_END_ALLOW_THREADS - - if (tabarray) - sipFree((ANY *)tabarray); - } -%End - - QSize size(int,const char *,int = -1,int = 0, - SIP_PYLIST /AllowNone/ = 0) const; -%MethodCode - int *tabarray; - - if (intListToArray(a4,&tabarray) < 0) - sipIsErr = 1; - else - { - Py_BEGIN_ALLOW_THREADS - sipRes = new QSize(sipCpp -> QFontMetrics::size(a0,a1,a2,a3,tabarray)); - Py_END_ALLOW_THREADS - - if (tabarray) - sipFree((ANY *)tabarray); - } -%End -%End -%If (Qt_2_00 -) - bool inFont(QChar) const; - int leftBearing(QChar) const; - int rightBearing(QChar) const; - int width(const QString &,int = -1) const; - int width(QChar) const; -%If (Qt_3_0_0 -) - int charWidth(const QString &,int) const; -%End - QRect boundingRect(const QString &,int = -1) const; - QRect boundingRect(QChar) const; - - QRect boundingRect(int,int,int,int,int,const QString &,int = -1, - int = 0,SIP_PYLIST /AllowNone/ = 0) const; -%MethodCode - int *tabarray; - - if (intListToArray(a8,&tabarray) < 0) - sipIsErr = 1; - else - { - Py_BEGIN_ALLOW_THREADS - sipRes = new QRect(sipCpp -> QFontMetrics::boundingRect(a0,a1,a2,a3,a4,*a5,a6,a7,tabarray)); - Py_END_ALLOW_THREADS - - if (tabarray) - sipFree((ANY *)tabarray); - } -%End - - QSize size(int,const QString &,int = -1,int = 0, - SIP_PYLIST /AllowNone/ = 0) const; -%MethodCode - int *tabarray; - - if (intListToArray(a4,&tabarray) < 0) - sipIsErr = 1; - else - { - Py_BEGIN_ALLOW_THREADS - sipRes = new QSize(sipCpp -> QFontMetrics::size(a0,*a1,a2,a3,tabarray)); - Py_END_ALLOW_THREADS - - if (tabarray) - sipFree((ANY *)tabarray); - } -%End -%End - - int underlinePos() const; -%If (Qt_3_2_0 -) - int overlinePos() const; -%End - int strikeOutPos() const; - int lineWidth() const; - -%TypeCode -// Convert an optional Python list of integers to a zero terminated array. -// Return a negative value if there was an error. -static int intListToArray(PyObject *pl,int **ap) -{ - int i, nint, *ip; - - // The trivial case. - if (!pl || pl == Py_None) - { - *ap = 0; - return 0; - } - - nint = PyList_Size(pl); - - if ((*ap = (int *)sipMalloc((nint + 1) * sizeof (int))) == NULL) - return -1; - - // Convert the list. - PyErr_Clear(); - - ip = *ap; - - for (i = 0; i < nint; ++i) - { - *ip++ = PyInt_AsLong(PyList_GetItem(pl,i)); - - if (PyErr_Occurred()) - { - sipFree((ANY *)*ap); - return -1; - } - } - - // Terminate the list. - *ip = 0; - - return 0; -} -%End - -}; diff --git a/python/pyqt/sip/qt/qframe.sip b/python/pyqt/sip/qt/qframe.sip deleted file mode 100644 index 166373fa..00000000 --- a/python/pyqt/sip/qt/qframe.sip +++ /dev/null @@ -1,180 +0,0 @@ -// This is the SIP interface definition for QFrame. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QFrame - -QFrame is fully implemented. - - -%End - - -class QFrame : QWidget -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_3_0_0) - QFrame(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0, - bool = 1); -%End -%If (Qt_3_0_0 -) - QFrame(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); -%End - - int frameStyle() const; -%If (- Qt_2_00) - void setFrameStyle(int); -%End -%If (Qt_2_00 -) - virtual void setFrameStyle(int); -%End - - int frameWidth() const; - QRect contentsRect() const; - -%If (- Qt_2_00) - bool lineShapesOk() const; -%End - - QSize sizeHint() const; -%If (Qt_2_00 - Qt_3_0_0) - QSizePolicy sizePolicy() const; -%End - -%If (- Qt_2_00) - enum { - NoFrame, - Box, - Panel, - WinPanel, - HLine, - VLine, - MShape, - Plain, - Raised, - Sunken, - MShadow - }; -%End -%If (Qt_2_00 -) - enum Shape { - NoFrame, - Box, - Panel, - WinPanel, - HLine, - VLine, - StyledPanel, - PopupPanel, -%If (Qt_3_0_0 -) - MenuBarPanel, - ToolBarPanel, -%End -%If (Qt_3_0_1 -) - LineEditPanel, - TabWidgetPanel, -%End -%If (Qt_3_1_0 -) - GroupBoxPanel, -%End - MShape - }; -%End - -%If (Qt_2_00 -) - enum Shadow { - Plain, - Raised, - Sunken, - MShadow - }; -%End - -%If (- Qt_2_00) - int frameShape() const; -%End -%If (Qt_2_00 -) - Shape frameShape() const; - void setFrameShape(Shape); -%End -%If (- Qt_2_00) - int frameShadow() const; -%End -%If (Qt_2_00 -) - Shadow frameShadow() const; - void setFrameShadow(Shadow); -%End - - int lineWidth() const; -%If (- Qt_2_00) - void setLineWidth(int); -%End -%If (Qt_2_00 -) - virtual void setLineWidth(int); -%End - - int margin() const; -%If (- Qt_2_00) - void setMargin(int); -%End -%If (Qt_2_00 -) - virtual void setMargin(int); -%End - - int midLineWidth() const; -%If (- Qt_2_00) - void setMidLineWidth(int); -%End -%If (Qt_2_00 -) - virtual void setMidLineWidth(int); -%End - - QRect frameRect() const; -%If (Qt_2_00 -) - virtual void setFrameRect(const QRect &); -%End - -protected: -%If (- Qt_2_00) - void setFrameRect(const QRect &); -%End - void paintEvent(QPaintEvent *); - void resizeEvent(QResizeEvent *); - virtual void drawFrame(QPainter *); - virtual void drawContents(QPainter *); - virtual void frameChanged(); -%If (Qt_2_00 - Qt_3_0_0) - void updateMask(); - virtual void drawFrameMask(QPainter *); - virtual void drawContentsMask(QPainter *); -%End -%If (Qt_3_1_0 -) - void styleChange(QStyle &); -%End - -private: - QFrame(const QFrame &); -}; diff --git a/python/pyqt/sip/qt/qglobal.sip b/python/pyqt/sip/qt/qglobal.sip deleted file mode 100644 index 16199c33..00000000 --- a/python/pyqt/sip/qt/qglobal.sip +++ /dev/null @@ -1,74 +0,0 @@ -// This is the SIP interface definition for some Qt globals. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ModuleHeaderCode -#include -%End - - -const int QT_VERSION; -const char *QT_VERSION_STR; - -typedef unsigned char uchar; -typedef unsigned short ushort; -typedef unsigned uint; -typedef unsigned long ulong; -typedef char * pchar; -typedef uchar * puchar; -typedef const char * pcchar; - -typedef char Q_INT8; -typedef unsigned char Q_UINT8; -typedef short Q_INT16; -typedef unsigned short Q_UINT16; -typedef int Q_INT32; -typedef unsigned Q_UINT32; - -%If (Qt_Q_LONG_IS_long) -typedef long Q_LONG; -typedef unsigned long Q_ULONG; -%End -%If (!Qt_Q_LONG_IS_long) -typedef long long Q_LONG; -typedef unsigned long long Q_ULONG; -%End - -const char *qVersion(); - -%If (Qt_3_0_0 -) -%End - -%If (Qt_3_1_0 -) -const char *qInstallPath(); -const char *qInstallPathDocs(); -const char *qInstallPathHeaders(); -const char *qInstallPathLibs(); -const char *qInstallPathBins(); -const char *qInstallPathPlugins(); -const char *qInstallPathData(); -%End -%If (Qt_3_2_0 -) -const char *qInstallPathTranslations(); -%If (!WS_WIN) -const char *qInstallPathSysconf(); -%End -%End diff --git a/python/pyqt/sip/qt/qgmanager.sip b/python/pyqt/sip/qt/qgmanager.sip deleted file mode 100644 index 3a3ca573..00000000 --- a/python/pyqt/sip/qt/qgmanager.sip +++ /dev/null @@ -1,88 +0,0 @@ -// This is the SIP interface definition for QGManager. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QGManager (Qt v1.x) - -QGManager is fully implemented. - - - -QChain (Qt v1.x) - -QChain is implemented as an opaque class. - - -%End - - -%If (- Qt_2_00) - -class QChain; - - -class QGManager : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QGManager(QWidget *,const char * = 0); - - enum Direction { - LeftToRight, - RightToLeft, - Down, - Up - }; - - enum { - unlimited = QCOORD_MAX - }; - - void setBorder(int); - QChain *newSerChain(Direction); - QChain *newParChain(Direction); - bool add(QChain *,QChain *,int = 0); - bool addWidget(QChain *,QWidget *,int = 0); - bool addSpacing(QChain *,int,int = 0,int = unlimited); - bool addBranch(QChain *,QChain *,int,int); - void setStretch(QChain *,int); - bool activate(); - void freeze(int = 0,int = 0); - void unFreeze(); - QChain *xChain(); - QChain *yChain(); - void setMenuBar(QWidget *); - QWidget *mainWidget(); - void remove(QWidget *); - void setName(QChain *,const char *); - -protected: - bool eventFilter(QObject *,QEvent *); - -private: - QGManager(const QGManager &); -}; - -%End diff --git a/python/pyqt/sip/qt/qgrid.sip b/python/pyqt/sip/qt/qgrid.sip deleted file mode 100644 index 89802ad1..00000000 --- a/python/pyqt/sip/qt/qgrid.sip +++ /dev/null @@ -1,72 +0,0 @@ -// This is the SIP interface definition for QGrid. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QGrid (Qt v2+) - -QGrid is fully implemented. - - -%End - - -%If (Qt_2_00 -) - -class QGrid : QFrame -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_3_0_0) - enum Direction { - Horizontal, - Vertical - }; -%End - - QGrid(int,QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); -%If (- Qt_3_0_0) - QGrid(int,Direction,QWidget * /TransferThis/ = 0,const char * = 0, - WFlags = 0); -%End -%If (Qt_3_0_0 -) - QGrid(int,Orientation,QWidget * /TransferThis/ = 0,const char * = 0, - WFlags = 0); -%End - - void setSpacing(int); -%If (Qt_2_1_0 -) - QSize sizeHint() const; -%End - -protected: - void frameChanged(); - -private: -%If (Qt_2_1_0 -) - QGrid(const QGrid &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qgridview.sip b/python/pyqt/sip/qt/qgridview.sip deleted file mode 100644 index 6e316e81..00000000 --- a/python/pyqt/sip/qt/qgridview.sip +++ /dev/null @@ -1,76 +0,0 @@ -// This is the SIP interface definition for QGridView. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QGridView (Qt v3+) - -QGridView is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QGridView : QScrollView -{ -%TypeHeaderCode -#include -%End - -public: - QGridView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - - int numRows() const; - virtual void setNumRows(int); - int numCols() const; - virtual void setNumCols(int); - - int cellWidth() const; - virtual void setCellWidth(int); - int cellHeight() const; - virtual void setCellHeight(int); - - QRect cellRect() const; - QRect cellGeometry(int,int); - QSize gridSize() const; - - int rowAt(int) const; - int columnAt(int) const; - - void repaintCell(int,int,bool = 1); - void updateCell(int,int); - void ensureCellVisible(int,int); - -protected: - virtual void paintCell(QPainter *,int,int) = 0; - virtual void paintEmptyArea(QPainter *,int,int,int,int); - - void drawContents(QPainter *,int,int,int,int); - - virtual void dimensionChange(int,int); - -private: - QGridView(const QGridView &); -}; - -%End diff --git a/python/pyqt/sip/qt/qgroupbox.sip b/python/pyqt/sip/qt/qgroupbox.sip deleted file mode 100644 index 49c371f7..00000000 --- a/python/pyqt/sip/qt/qgroupbox.sip +++ /dev/null @@ -1,135 +0,0 @@ -// This is the SIP interface definition for QGroupBox. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QGroupBox - -QGroupBox is fully implemented. - - -%End - - -class QGroupBox : QFrame -{ -%TypeHeaderCode -#include -%End - -public: - QGroupBox(QWidget * /TransferThis/ = 0,const char * = 0); -%If (- Qt_2_00) - QGroupBox(const char *,QWidget * /TransferThis/ = 0,const char * = 0); -%End -%If (Qt_2_00 -) - QGroupBox(const QString &,QWidget * /TransferThis/ = 0, - const char * = 0); - QGroupBox(int,Orientation,QWidget * /TransferThis/ = 0, - const char * = 0); - QGroupBox(int,Orientation,const QString &,QWidget * /TransferThis/ = 0, - const char * = 0); -%End - -%If (Qt_2_00 -) - virtual void setColumnLayout(int,Orientation); -%End - -%If (- Qt_2_00) - const char *title() const; - void setTitle(const char *); -%End -%If (Qt_2_00 -) - QString title() const; - virtual void setTitle(const QString &); -%End - - int alignment() const; -%If (- Qt_2_00) - void setAlignment(int); -%End -%If (Qt_2_00 -) - virtual void setAlignment(int); -%End - -%If (Qt_2_1_0 -) - int columns() const; - void setColumns(int); - - Orientation orientation() const; - void setOrientation(Orientation); -%End - -%If (Qt_3_0_0 -) - int insideMargin() const; - int insideSpacing() const; - void setInsideMargin(int); - void setInsideSpacing(int); -%End - -%If (Qt_2_1_0 -) - void addSpace(int); -%End -%If (Qt_2_2_0 -) - QSize sizeHint() const; -%End - -%If (Qt_3_1_0 -) - bool isFlat() const; - void setFlat(bool); -%End -%If (Qt_3_2_0 -) - bool isCheckable() const; - void setCheckable(bool); - bool isChecked() const; - void setEnabled(bool); -%End - -public slots: -%If (Qt_3_2_0 -) - void setChecked(bool); -%End - -signals: -%If (Qt_3_2_0 -) - void toggled(bool); -%End - -protected: -%If (Qt_2_2_0 -) - bool event(QEvent *); -%End -%If (Qt_2_00 -) - void childEvent(QChildEvent *); - void resizeEvent(QResizeEvent *); -%End - void paintEvent(QPaintEvent *); -%If (Qt_2_00 - Qt_3_0_0) - void updateMask(); -%End -%If (Qt_2_1_0 -) - void focusInEvent(QFocusEvent *); - void fontChange(const QFont &); -%End - -private: - QGroupBox(const QGroupBox &); -}; diff --git a/python/pyqt/sip/qt/qhbox.sip b/python/pyqt/sip/qt/qhbox.sip deleted file mode 100644 index 2b3a8ec0..00000000 --- a/python/pyqt/sip/qt/qhbox.sip +++ /dev/null @@ -1,75 +0,0 @@ -// This is the SIP interface definition for QHBox. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QHBox (Qt v2+) - -QHBox is fully implemented. - - -%End - - -%If (Qt_2_00 -) - -class QHBox : QFrame -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_3_0_0) - QHBox(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0, - bool = 1); -%End -%If (Qt_3_0_0 -) - QHBox(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); -%End - - void setSpacing(int); -%If (Qt_2_1_0 -) - bool setStretchFactor(QWidget *,int); - QSize sizeHint() const; -%End - -protected: -%If (- Qt_3_0_0) - QHBox(bool,QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0, - bool = 1); -%End -%If (Qt_3_0_0 - Qt_3_2_0) - QHBox(bool,QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); -%End -%If (Qt_3_2_0 -) - QHBox(bool,QWidget * /TransferThis/,const char *,WFlags = 0); -%End - - void frameChanged(); - -private: -%If (Qt_3_1_0 -) - QHBox(const QHBox &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qhbuttongroup.sip b/python/pyqt/sip/qt/qhbuttongroup.sip deleted file mode 100644 index b1f15a34..00000000 --- a/python/pyqt/sip/qt/qhbuttongroup.sip +++ /dev/null @@ -1,48 +0,0 @@ -// This is the SIP interface definition for QHButtonGroup. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QHButtonGroup (Qt v2+) - -QHButtonGroup is fully implemented. - - -%End - - -%If (Qt_2_00 -) - -class QHButtonGroup : QButtonGroup -{ -%TypeHeaderCode -#include -%End - -public: - QHButtonGroup(QWidget * /TransferThis/ = 0,const char * = 0); - QHButtonGroup(const QString &,QWidget * /TransferThis/ = 0,const char * = 0); - -private: - QHButtonGroup(const QHButtonGroup &); -}; - -%End diff --git a/python/pyqt/sip/qt/qheader.sip b/python/pyqt/sip/qt/qheader.sip deleted file mode 100644 index 896f2709..00000000 --- a/python/pyqt/sip/qt/qheader.sip +++ /dev/null @@ -1,268 +0,0 @@ -// This is the SIP interface definition for QHeader. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QHeader - -QHeader is fully implemented. - - -%End - - -%If (- Qt_2_00) - -class QHeader : QTableView -{ -%TypeHeaderCode -#include -%End - -public: - QHeader(QWidget * /TransferThis/ = 0,const char * = 0); - QHeader(int,QWidget * /TransferThis/ = 0,const char * = 0); - - enum Orientation { - Horizontal, - Vertical - }; - - int addLabel(const char *,int = -1); - void setLabel(int,const char *,int = -1); - const char *label(int); - void setOrientation(Orientation); - Orientation orientation() const; - void setTracking(bool); - bool tracking() const; - void setClickEnabled(bool,int = -1); - void setResizeEnabled(bool,int = -1); - void setMovingEnabled(bool); - void setCellSize(int,int); - int cellSize(int) const; - int cellPos(int) const; - int cellAt(int) const; - int count() const; - int offset() const; - QSize sizeHint() const; - int mapToLogical(int) const; - int mapToActual(int) const; - -public slots: - void setOffset(int); - -signals: - void sectionClicked(int); - void sizeChange(int,int,int); - void moved(int,int); - -protected: - void resizeEvent(QResizeEvent *); - QRect sRect(int); - void paintCell(QPainter *,int,int); - void setupPainter(QPainter *); - int cellHeight(int); - int cellWidth(int); - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - -private: - QHeader(const QHeader &); -}; - -%End - - -%If (Qt_2_00 -) - -class QHeader : QWidget -{ -%TypeHeaderCode -#include -%End - -public: - QHeader(QWidget * /TransferThis/ = 0,const char * = 0); - QHeader(int,QWidget * /TransferThis/ = 0,const char * = 0); - - int addLabel(const QString &,int = -1); - int addLabel(const QIconSet &,const QString &,int = -1); -%If (Qt_2_1_0 -) - void removeLabel(int); -%End - virtual void setLabel(int,const QString &,int = -1); - virtual void setLabel(int,const QIconSet &,const QString &,int = -1); - - QString label(int) const; - QIconSet *iconSet(int) const; - - virtual void setOrientation(Orientation); - Orientation orientation() const; - virtual void setTracking(bool); - bool tracking() const; - - virtual void setClickEnabled(bool,int = -1); - virtual void setResizeEnabled(bool,int = -1); - virtual void setMovingEnabled(bool); -%If (Qt_3_0_0 -) - virtual void setStretchEnabled(bool,int); -%End -%If (Qt_2_1_0 -) - bool isClickEnabled(int = -1) const; - bool isResizeEnabled(int = -1) const; - bool isMovingEnabled() const; -%End -%If (Qt_3_0_0 -) - bool isStretchEnabled() const; - bool isStretchEnabled(int) const; -%End - -%If (Qt_2_1_0 -) - void resizeSection(int,int); - int sectionSize(int) const; - int sectionPos(int) const; - int sectionAt(int) const; -%End - int count() const; -%If (Qt_3_0_0 -) - int headerWidth() const; - QRect sectionRect(int) const; -%End - -%If (- Qt_3_0_0) - virtual void setCellSize(int,int); - int cellSize(int) const; - int cellPos(int) const; - int cellAt(int) const; -%End - - int offset() const; - - QSize sizeHint() const; -%If (- Qt_3_0_0) - QSizePolicy sizePolicy() const; -%End - -%If (Qt_2_1_0 -) - int mapToSection(int) const; - int mapToIndex(int) const; -%End -%If (- Qt_3_0_0) - int mapToLogical(int) const; - int mapToActual(int) const; -%End - -%If (Qt_2_1_0 -) - void moveSection(int,int); -%End -%If (- Qt_3_0_0) - virtual void moveCell(int,int); -%End - -%If (Qt_3_2_0 -) - // This is placed before the obsolete version below so that it has - // precedence. It may still cause problems with old code until SIP - // distinguishes between bools and enums. - void setSortIndicator(int,SortOrder); - int sortIndicatorSection() const; - SortOrder sortIndicatorOrder() const; -%End -%If (Qt_2_1_0 -) - // Obsolete. - void setSortIndicator(int,bool = 1); -%End - -%If (Qt_3_0_0 -) - void adjustHeaderSize(); -%End - -public slots: -%If (Qt_2_2_0 -) - void setUpdatesEnabled(bool); -%End - virtual void setOffset(int); - -signals: -%If (Qt_2_1_0 -) - void clicked(int); - void pressed(int); - void released(int); -%End - void sizeChange(int,int,int); -%If (Qt_2_1_0 -) - void indexChange(int,int,int); -%End -%If (- Qt_3_0_0) - void sectionClicked(int); - void moved(int,int); -%End -%If (Qt_3_2_0 -) - void sectionHandleDoubleClicked(int); -%End - -protected: -%If (Qt_2_1_0 -) - void paintEvent(QPaintEvent *); -%End -%If (Qt_2_2_0 -) - void showEvent(QShowEvent *); -%End -%If (- Qt_2_1_0) - void resizeEvent(QResizeEvent *); -%End -%If (Qt_3_0_0 -) - void resizeEvent(QResizeEvent *); -%End - QRect sRect(int); - -%If (- Qt_3_0_0) - void paintSection(QPainter *,int,QRect); -%End -%If (Qt_2_1_0 - Qt_3_0_0) - void paintSectionLabel(QPainter *,int,const QRect &); -%End -%If (Qt_3_0_0 -) - virtual void paintSection(QPainter *,int,const QRect &); - virtual void paintSectionLabel(QPainter *,int,const QRect &); -%End - -%If (Qt_3_1_0 -) - void fontChange(const QFont &); -%End - - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); -%If (Qt_3_2_0 -) - void mouseDoubleClickEvent(QMouseEvent *); -%End - -%If (Qt_3_1_0 -) - void keyPressEvent(QKeyEvent *); - void keyReleaseEvent(QKeyEvent *); -%End - -private: - QHeader(const QHeader &); -}; - -%End diff --git a/python/pyqt/sip/qt/qhgroupbox.sip b/python/pyqt/sip/qt/qhgroupbox.sip deleted file mode 100644 index 9428e5e2..00000000 --- a/python/pyqt/sip/qt/qhgroupbox.sip +++ /dev/null @@ -1,48 +0,0 @@ -// This is the SIP interface definition for QHGroupBox. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QHGroupBox (Qt v2+) - -QHGroupBox is fully implemented. - - -%End - - -%If (Qt_2_00 -) - -class QHGroupBox : QGroupBox -{ -%TypeHeaderCode -#include -%End - -public: - QHGroupBox(QWidget * /TransferThis/ = 0,const char * = 0); - QHGroupBox(const QString &,QWidget * /TransferThis/ = 0,const char * = 0); - -private: - QHGroupBox(const QHGroupBox &); -}; - -%End diff --git a/python/pyqt/sip/qt/qiconset.sip b/python/pyqt/sip/qt/qiconset.sip deleted file mode 100644 index a5ea2d13..00000000 --- a/python/pyqt/sip/qt/qiconset.sip +++ /dev/null @@ -1,146 +0,0 @@ -// This is the SIP interface definition for QIconSet and QIconFactory. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QIconSet - -QIconSet is fully implemented. - - - -QIconFactory (Qt v3.1+) - -QIconFactory is fully implemented. - - -%End - - -class QIconSet -{ -%TypeHeaderCode -#include -%End - -public: - enum Size { - Automatic, - Small, - Large - }; - - enum Mode { - Normal, - Disabled, - Active - }; - -%If (Qt_3_0_0 -) - enum State { - On, - Off - }; -%End - -%If (Qt_2_1_0 -) - QIconSet(); -%End - QIconSet(const QPixmap &,Size = Automatic); -%If (Qt_2_2_0 -) - QIconSet(const QPixmap &,const QPixmap &); -%End - QIconSet(const QIconSet &); - - void reset(const QPixmap &,Size); - -%If (- Qt_2_00) - void setPixmap(const QPixmap &,Size,Mode = Normal); - void setPixmap(const char *,Size,Mode = Normal); -%End -%If (Qt_2_00 - Qt_3_0_0) - virtual void setPixmap(const QPixmap &,Size,Mode = Normal); - virtual void setPixmap(const QString &,Size,Mode = Normal); -%End -%If (Qt_3_0_0 -) - virtual void setPixmap(const QPixmap &,Size,Mode = Normal,State = Off); - virtual void setPixmap(const QString &,Size,Mode = Normal,State = Off); -%End -%If (- Qt_3_0_0) - QPixmap pixmap(Size,Mode) const; -%If (Qt_2_1_0 -) -// QPixmap pixmap(Size,bool) const; -%End -%End -%If (Qt_3_0_0 -) - QPixmap pixmap(Size,Mode,State = Off) const; -// QPixmap pixmap(Size,bool,State = Off) const; -%End - QPixmap pixmap() const; -%If (- Qt_3_0_0) - bool isGenerated(Size,Mode) const; -%End -%If (Qt_3_0_0 -) - bool isGenerated(Size,Mode,State = Off) const; - void clearGenerated(); -%End -%If (Qt_3_1_0 -) - void installIconFactory(QIconFactory *); -%End - -%If (Qt_2_1_0 -) - bool isNull() const; -%End - - void detach(); - -%If (Qt_3_0_0 -) - static void setIconSize(Size,const QSize &); - static const QSize &iconSize(Size); -%End -}; - - -%If (Qt_3_1_0 -) - -class QIconFactory -{ -%TypeHeaderCode -#include -%End - -public: - QIconFactory(); - - virtual QPixmap *createPixmap(const QIconSet &,QIconSet::Size, - QIconSet::Mode, - QIconSet::State) /Factory/; - void setAutoDelete(bool); - bool autoDelete() const; - - static QIconFactory *defaultFactory(); - static void installDefaultFactory(QIconFactory * /Transfer/); - -private: - QIconFactory(const QIconFactory &); -}; - -%End diff --git a/python/pyqt/sip/qt/qiconview.sip b/python/pyqt/sip/qt/qiconview.sip deleted file mode 100644 index 3c7763d2..00000000 --- a/python/pyqt/sip/qt/qiconview.sip +++ /dev/null @@ -1,457 +0,0 @@ -// This is the SIP interface definition for QIconView, QIconViewItem, QIconDrag -// and QIconDragItem. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QIconView (Qt v2.1+) - - QIconViewItem *makeRowLayout - QIconViewItem *begin - int &y - - -Not yet implemented. - - - -QIconViewItem (Qt v2.1+) - -QIconViewItem is fully implemented. - - - -QIconDrag (Qt v2.1+) - -QIconDrag is fully implemented. - - - -QIconDragItem (Qt v2.1+) - -QIconDragItem is fully implemented. - - -%End - - -%If (Qt_ICONVIEW) -%If (Qt_2_1_0 -) - -%If (Qt_DRAGANDDROP) - -class QIconDragItem -{ -%TypeHeaderCode -#include -%End - -public: - QIconDragItem(); - - virtual QByteArray data() const; - virtual void setData(const QByteArray &); -}; - - -class QIconDrag : QDragObject -{ -%TypeHeaderCode -#include -%End - -public: - QIconDrag(QWidget * /TransferThis/,const char * = 0); - - void append(const QIconDragItem &,const QRect &,const QRect &); - - virtual const char* format(int) const; - static bool canDecode(QMimeSource *); - virtual QByteArray encodedData(const char *) const; - -private: -%If (Qt_3_1_0 -) - QIconDrag(const QIconDrag &); -%End -}; - -%End - - -class QIconViewItem : Qt -{ -%TypeHeaderCode -#include -%End - -public: - QIconViewItem(QIconView * /TransferThis/); - QIconViewItem(QIconView * /TransferThis/,QIconViewItem *); - QIconViewItem(QIconView * /TransferThis/,const QString &); - QIconViewItem(QIconView * /TransferThis/,QIconViewItem *, - const QString &); - QIconViewItem(QIconView * /TransferThis/,const QString &, - const QPixmap &); - QIconViewItem(QIconView * /TransferThis/,QIconViewItem *, - const QString &,const QPixmap &); -%If (Qt_3_0_0 -) - QIconViewItem(QIconView * /TransferThis/,const QString &, - const QPicture &); - QIconViewItem(QIconView * /TransferThis/,QIconViewItem *, - const QString &,const QPicture &); -%End - - virtual void setRenameEnabled(bool); - virtual void setDragEnabled(bool); - virtual void setDropEnabled(bool); - - virtual QString text() const; - virtual QPixmap *pixmap() const; -%If (Qt_3_0_0 -) - virtual QPicture *picture() const; -%End - virtual QString key() const; - - bool renameEnabled() const; - bool dragEnabled() const; - bool dropEnabled() const; - - QIconView *iconView() const; - QIconViewItem *prevItem() const; - QIconViewItem *nextItem() const; - - int index() const; - - virtual void setSelected(bool,bool); - virtual void setSelected(bool); - virtual void setSelectable(bool); - - bool isSelected() const; - bool isSelectable() const; - - virtual void repaint(); - -%If (- Qt_3_0_0) - virtual void move(int,int); -%End -%If (Qt_3_0_0 -) - virtual bool move(int,int); -%End - virtual void moveBy(int,int); -%If (- Qt_3_0_0) - virtual void move(const QPoint &); -%End -%If (Qt_3_0_0 -) - virtual bool move(const QPoint &); -%End - virtual void moveBy(const QPoint &); - - QRect rect() const; - int x() const; - int y() const; - int width() const; - int height() const; - QSize size() const; - QPoint pos() const; - QRect textRect(bool = 1) const; - QRect pixmapRect(bool = 1) const; -%If (- Qt_3_0_0) - bool contains(QPoint) const; - bool intersects(QRect) const; -%End -%If (Qt_3_0_0 -) - bool contains(const QPoint &) const; - bool intersects(const QRect &) const; -%End - - virtual bool acceptDrop(const QMimeSource *) const; - - void rename(); - - virtual int compare(QIconViewItem *) const; - - virtual void setText(const QString &); - virtual void setPixmap(const QPixmap &); -%If (Qt_3_0_0 -) - virtual void setPicture(const QPicture &); -%End - virtual void setText(const QString &,bool,bool = 1); - virtual void setPixmap(const QPixmap &,bool,bool = 1); - virtual void setKey(const QString &); - -%If (Qt_3_0_0 -) - virtual int rtti() const; -%End - -protected: - virtual void removeRenameBox(); - virtual void calcRect(const QString & = QString::null); - virtual void paintItem(QPainter *,const QColorGroup &); - virtual void paintFocus(QPainter *,const QColorGroup &); -%If (Qt_DRAGANDDROP) - virtual void dropped(QDropEvent *,const QValueList &); -%End - virtual void dragEntered(); - virtual void dragLeft(); - void setItemRect(const QRect &); - void setTextRect(const QRect &); - void setPixmapRect(const QRect &); - void calcTmpText(); -%If (Qt_3_1_0 -) - QString tempText() const; -%End -}; - - -class QIconView : QScrollView -{ -%TypeHeaderCode -#include -%End - -public: - enum SelectionMode { - Single, - Multi, - Extended, - NoSelection - }; - - enum Arrangement { - LeftToRight, - TopToBottom - }; - - enum ResizeMode { - Fixed, - Adjust - }; - - enum ItemTextPos { - Bottom, - Right - }; - - QIconView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - - virtual void insertItem(QIconViewItem *,QIconViewItem * = 0); - virtual void takeItem(QIconViewItem *); - - int index(const QIconViewItem *) const; - - QIconViewItem *firstItem() const; - QIconViewItem *lastItem() const; - QIconViewItem *currentItem() const; - virtual void setCurrentItem(QIconViewItem *); - virtual void setSelected(QIconViewItem *,bool,bool = 0); - - uint count() const; - - virtual void showEvent(QShowEvent *); - - virtual void setSelectionMode(SelectionMode); - SelectionMode selectionMode() const; - - QIconViewItem *findItem(const QPoint &) const; -%If (- Qt_3_0_0) - QIconViewItem *findItem(const QString &) const; -%End -%If (Qt_3_0_0 -) - QIconViewItem *findItem(const QString &, - ComparisonFlags = BeginsWith) const; -%End - virtual void selectAll(bool); - virtual void clearSelection(); - virtual void invertSelection(); - - virtual void repaintItem(QIconViewItem *); -%If (Qt_3_1_0 -) - void repaintSelectedItems(); -%End - - void ensureItemVisible(QIconViewItem *); - QIconViewItem* findFirstVisibleItem(const QRect &) const; - QIconViewItem* findLastVisibleItem(const QRect &) const; - - virtual void clear(); - - virtual void setGridX(int); - virtual void setGridY(int); - int gridX() const; - int gridY() const; - virtual void setSpacing(int); - int spacing() const; - virtual void setItemTextPos(ItemTextPos); - ItemTextPos itemTextPos() const; - virtual void setItemTextBackground(const QBrush &); - QBrush itemTextBackground() const; - virtual void setArrangement(Arrangement); - Arrangement arrangement() const; - virtual void setResizeMode(ResizeMode); - ResizeMode resizeMode() const; - virtual void setMaxItemWidth(int); - int maxItemWidth() const; - virtual void setMaxItemTextLength(int); - int maxItemTextLength() const; - virtual void setAutoArrange(bool); - bool autoArrange() const; - virtual void setShowToolTips(bool); - bool showToolTips() const; - - void setSorting(bool,bool = 1); - bool sorting() const; - bool sortDirection() const; - - virtual void setItemsMovable(bool); - bool itemsMovable() const; - virtual void setWordWrapIconText(bool); - bool wordWrapIconText() const; - - bool eventFilter(QObject *,QEvent *); - - QSize minimumSizeHint() const; -%If (- Qt_3_0_0) - QSizePolicy sizePolicy() const; -%End - QSize sizeHint() const; - - virtual void sort(bool = 1); - - virtual void setFont(const QFont &); - virtual void setPalette(const QPalette &); - -%If (Qt_3_0_0 -) - bool isRenaming() const; -%End - -public slots: - virtual void arrangeItemsInGrid(const QSize &,bool = 1); - virtual void arrangeItemsInGrid(bool = 1); - virtual void setContentsPos(int,int); - virtual void updateContents(); - -signals: - void selectionChanged(); - void selectionChanged(QIconViewItem *); - void currentChanged(QIconViewItem *); - void clicked(QIconViewItem *); - void clicked(QIconViewItem *,const QPoint &); - void pressed(QIconViewItem *); - void pressed(QIconViewItem *,const QPoint &); - - void doubleClicked(QIconViewItem *); - void returnPressed(QIconViewItem *); - void rightButtonClicked(QIconViewItem *,const QPoint &); - void rightButtonPressed(QIconViewItem *,const QPoint &); - void mouseButtonPressed(int,QIconViewItem *,const QPoint &); - void mouseButtonClicked(int,QIconViewItem *,const QPoint &); -%If (Qt_3_0_0 -) - void contextMenuRequested(QIconViewItem *,const QPoint &); -%End -%If (Qt_DRAGANDDROP) - void dropped(QDropEvent *,const QValueList &); -%End - void moved(); - void onItem(QIconViewItem *); - void onViewport(); - void itemRenamed(QIconViewItem *,const QString &); - void itemRenamed(QIconViewItem *); - -protected slots: - virtual void doAutoScroll(); - virtual void adjustItems(); - virtual void slotUpdate(); - -protected: -%If (- Qt_3_0_0) - virtual void drawContents(QPainter *,int,int,int,int); - virtual void contentsMousePressEvent(QMouseEvent *); - virtual void contentsMouseReleaseEvent(QMouseEvent *); - virtual void contentsMouseMoveEvent(QMouseEvent *); - virtual void contentsMouseDoubleClickEvent(QMouseEvent *); -%End -%If (Qt_3_0_0 -) - void drawContents(QPainter *,int,int,int,int); - void contentsMousePressEvent(QMouseEvent *); - void contentsMouseReleaseEvent(QMouseEvent *); - void contentsMouseMoveEvent(QMouseEvent *); - void contentsMouseDoubleClickEvent(QMouseEvent *); - void contentsContextMenuEvent(QContextMenuEvent *); -%End - -%If (- Qt_3_0_0) -%If (Qt_DRAGANDDROP) - virtual void contentsDragEnterEvent(QDragEnterEvent *); - virtual void contentsDragMoveEvent(QDragMoveEvent *); - virtual void contentsDragLeaveEvent(QDragLeaveEvent *); - virtual void contentsDropEvent(QDropEvent *); -%End - - virtual void resizeEvent(QResizeEvent *); - virtual void keyPressEvent(QKeyEvent *); - virtual void focusInEvent(QFocusEvent *); - virtual void focusOutEvent(QFocusEvent *); - virtual void enterEvent(QEvent *); -%End -%If (Qt_3_0_0 -) -%If (Qt_DRAGANDDROP) - void contentsDragEnterEvent(QDragEnterEvent *); - void contentsDragMoveEvent(QDragMoveEvent *); - void contentsDragLeaveEvent(QDragLeaveEvent *); - void contentsDropEvent(QDropEvent *); -%End - - void resizeEvent(QResizeEvent *); - void keyPressEvent(QKeyEvent *); - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); - void enterEvent(QEvent *); -%End - - virtual void drawRubber(QPainter *); -%If (Qt_DRAGANDDROP) - virtual QDragObject *dragObject(); - virtual void startDrag(); -%End - virtual void insertInGrid(QIconViewItem *); - virtual void drawBackground(QPainter *,const QRect &); - - void emitSelectionChanged(QIconViewItem * = 0); - void emitRenamed(QIconViewItem *); - -%If (- Qt_3_0_0) -// QIconViewItem *makeRowLayout(QIconViewItem *,int &); -%End -%If (Qt_3_0_0 -) -// QIconViewItem *makeRowLayout(QIconViewItem *,int &,bool &); -%End - - void styleChange(QStyle &); -%If (Qt_3_0_0 -) - void windowActivationChange(bool); -%End - -private: - QIconView(const QIconView &); -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qimage.sip b/python/pyqt/sip/qt/qimage.sip deleted file mode 100644 index ba8b118f..00000000 --- a/python/pyqt/sip/qt/qimage.sip +++ /dev/null @@ -1,544 +0,0 @@ -// This is the SIP interface definition for QImage, QImageIO and -// QImageTextKeyLang. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QImage - -The Python == and != operators are -supported. - - - - QImage - const char *xpm[] - - -This takes a list of strings as its parameter. - - - - QImage - uchar *data - int w - int h - int depth - QRgb *colorTable - int numColors - Endian bitOrder - - -The colorTable parameter is a list of QRgb instances or -None. (Qt v2.1+) - - - - uchar *bits - - - -The return value is a sip.voidptr object which is only -useful if passed to another Python module. - - - - QRgb *colorTable - - - -The return value is a sip.voidptr object which is only -useful if passed to another Python module. - - - - QImage convertDepthWithPalette - int - QRgb *p - int pc - int cf = 0 - - -Not implemented. - - - - uchar **jumpTable - - - -The return value is a sip.voidptr object which is only -useful if passed to another Python module. - - - - bool loadFromData - const uchar *buf - uint len - const char *format = 0 - ColorMode mode = Auto - - -len is derived from buf and not passed as -a parameter. - - - - uchar *scanLine - int i - - -The return value is a sip.voidptr object which is only -useful if passed to another Python module. - - - -QImageIO - - static void defineIOHandler - const char *format - const char *header - const char *flags - image_io_handler read_image - image_io_handler write_image - - -Not implemented. - - - -QImageTextKeyLang - -QImageTextKeyLang is fully implemented. - - -%End - - -class QImage -{ -%TypeHeaderCode -#include -%End - -public: - enum Endian { - IgnoreEndian, - BigEndian, - LittleEndian - }; - - QImage(); - QImage(int,int,int,int = 0,Endian = IgnoreEndian); - QImage(const QSize &,int,int = 0,Endian = IgnoreEndian); -%If (- Qt_2_00) - QImage(const char *,char * = 0); -%End -%If (Qt_2_00 -) - QImage(const QString &,char * = 0); -%End - - QImage(SIP_PYLIST) [(const char **)]; -%MethodCode - // The Python interface is a list of strings that make up the - // image. - - const char **str; - - if ((str = PyQt_qt_ListToArray(a0)) == NULL) - sipIsErr = 1; - else - { - // There is no wrapper class for QImage. - - Py_BEGIN_ALLOW_THREADS - sipCpp = new QImage(str); - Py_END_ALLOW_THREADS - - sipFree((ANY *)str); - } -%End - -%If (Qt_2_00 -) - QImage(const QByteArray &); -%End - -%If (Qt_2_1_0 -) - QImage(uchar *,int,int,int,SIP_PYLIST /AllowNone/,int,Endian) [(uchar *,int,int,int,int,QRgb *,int,Endian)]; -%MethodCode - // The Python interface takes a list of QRgb instances. - - QRgb *coltab; - - if (a4 == Py_None) - coltab = 0; - else - { - int len = PyList_Size(a4); - - if (a5 > len) - a5 = len; - - coltab = new QRgb[len]; - - PyErr_Clear(); - - for (int i = 0; i < a5; ++i) - { - coltab[i] = PyLong_AsLong(PyList_GetItem(a4,i)); - - if (PyErr_Occurred()) - { - delete[] coltab; - sipIsErr = 1; - break; - } - } - } - - if (!sipIsErr) - { - // There is no wrapper class for QImage. - - Py_BEGIN_ALLOW_THREADS - sipCpp = new QImage(a0,a1,a2,a3,0,a5,(QImage::Endian)a6); - - if (coltab) - { - // Now set the colours using the QImage's self - // allocated colour table. If we had passed in - // coltab as the colour table then we couldn't - // have freed it and it would leak. - for (int i = 0; i < a5; ++i) - sipCpp -> setColor(i,coltab[i]); - - delete[] coltab; - } - Py_END_ALLOW_THREADS - } -%End -%End - - QImage(const QImage &); - - bool operator==(const QImage &) const; - bool operator!=(const QImage &) const; - - void detach(); - QImage copy() const; - QImage copy(int,int,int,int,int = 0) const; -%If (- Qt_3_0_0) - QImage copy(QRect &) const; -%End -%If (Qt_3_0_0 -) - QImage copy(const QRect &) const; -%End -%If (Qt_3_1_0 -) - static QImage fromMimeSource(const QString &); -%End - bool isNull() const; - - int width() const; - int height() const; - QSize size() const; - QRect rect() const; - int depth() const; - int numColors() const; - Endian bitOrder() const; - - QRgb color(int) const; - void setColor(int,QRgb); - void setNumColors(int); - - bool hasAlphaBuffer() const; - void setAlphaBuffer(bool); - - bool allGray() const; - bool isGrayscale() const; - - // Actually returns uchar *. - void *bits() const; - // Actually returns uchar *. - void *scanLine(int) const; - // Actually returns uchar **. - void *jumpTable() const; - // Actually returns QRgb *. - void *colorTable() const; - int numBytes() const; - int bytesPerLine() const; - - bool create(int,int,int,int = 0,Endian = IgnoreEndian); - bool create(const QSize &,int,int = 0,Endian = IgnoreEndian); - void reset(); - - void fill(uint); -%If (Qt_2_00 -) - void invertPixels(bool = 1); -%End - - QImage convertDepth(int) const; -// QImage convertDepthWithPalette(int,QRgb *,int,int = 0) const; - QImage convertDepth(int,int) const; - QImage convertBitOrder(Endian) const; - -%If (- Qt_3_0_0) - QImage smoothScale(int,int) const; -%End -%If (Qt_3_0_0 -) - enum ScaleMode { - ScaleFree, - ScaleMin, - ScaleMax - }; - - QImage smoothScale(int,int,ScaleMode = ScaleFree) const; - QImage smoothScale(const QSize &,ScaleMode = ScaleFree) const; - QImage scale(int,int,ScaleMode = ScaleFree) const; - QImage scale(const QSize &,ScaleMode = ScaleFree) const; - QImage scaleWidth(int) const; - QImage scaleHeight(int) const; - QImage xForm(const QWMatrix &) const; -%End - -%If (- Qt_2_00) - QImage createAlphaMask(bool = 0) const; - QImage createAlphaMask(int) const; -%End -%If (Qt_2_00 -) - QImage createAlphaMask(int = 0) const; -%End - QImage createHeuristicMask(bool = 1) const; -%If (Qt_2_00 -) - QImage mirror() const; -%End -%If (Qt_2_1_0 -) - QImage mirror(bool,bool) const; -%End -%If (Qt_2_00 -) - QImage swapRGB() const; -%End - - static Endian systemBitOrder(); - static Endian systemByteOrder(); - -%If (- Qt_2_00) - static const char *imageFormat(const char *); -%End -%If (Qt_2_00 -) - static const char *imageFormat(const QString &); -%End - static QStrList inputFormats(); - static QStrList outputFormats(); -%If (Qt_2_1_0 -) - static QStringList inputFormatList(); - static QStringList outputFormatList(); -%End -%If (- Qt_2_00) - bool load(const char *,const char * = 0); -%End -%If (Qt_2_00 -) - bool load(const QString &,const char * = 0); -%End - bool loadFromData(const uchar * /Array/,uint /ArraySize/, - const char * = 0); - bool loadFromData(QByteArray,char * = 0); -%If (- Qt_2_00) - bool save(const char *,const char *) const; -%End -%If (Qt_2_00 - Qt_3_0_0) - bool save(const QString &,const char *) const; -%End -%If (Qt_2_2_0 - Qt_3_0_0) - bool save(const QString &,const char *,int) const; -%End -%If (Qt_3_0_0 -) - bool save(const QString &,const char *,int = -1) const; -%End -%If (Qt_3_2_0 -) - bool save(QIODevice *,const char *,int = -1) const; -%End - - bool valid(int,int) const; - int pixelIndex(int,int) const; - QRgb pixel(int,int) const; - void setPixel(int,int,uint); - -%If (Qt_2_1_0 -) - int dotsPerMeterX() const; - int dotsPerMeterY() const; - void setDotsPerMeterX(int); - void setDotsPerMeterY(int); - QPoint offset() const; - void setOffset(const QPoint &); -%If (Qt_IMAGE_TEXT) - QValueList textList() const; - QStringList textLanguages() const; - QStringList textKeys() const; - QString text(const char *,const char * = 0) const; - QString text(const QImageTextKeyLang &) const; - void setText(const char *,const char *,const QString &); -%End -%End -}; - - -void bitBlt(QImage *,int,int,const QImage *,int = 0,int = 0,int = -1,int = -1, - int = 0); - - -class QImageIO -{ -%TypeHeaderCode -#include -%End - -public: - QImageIO(); - QImageIO(QIODevice *,const char *); -%If (Qt_2_00 -) - QImageIO(const QString &,const char *); -%End -%If (- Qt_2_00) - QImageIO(const char *,const char *); -%End - - const QImage &image() const; - int status() const; - const char *format() const; - QIODevice *ioDevice() const; -%If (Qt_2_00 -) - QString fileName() const; -%End -%If (- Qt_2_00) - const char *fileName() const; -%End -%If (Qt_3_0_0 -) - int quality() const; -%End -%If (Qt_2_00 -) - QString description() const; -%End -%If (- Qt_2_00) - const char *description() const; -%End - const char *parameters() const; -%If (Qt_3_0_0 -) - float gamma() const; -%End - - void setImage(const QImage &); - void setStatus(int); - void setFormat(const char *); - void setIODevice(QIODevice *); -%If (Qt_2_00 -) - void setFileName(const QString &); -%End -%If (- Qt_2_00) - void setFileName(const char *); -%End -%If (Qt_3_0_0 -) - void setQuality(int); -%End -%If (Qt_2_00 -) - void setDescription(const QString &); -%End -%If (- Qt_2_00) - void setDescription(const char *); -%End - void setParameters(const char *); -%If (Qt_3_0_0 -) - void setGamma(float); -%End - - bool read(); - bool write(); - - static const char *imageFormat(const QString &); - static const char *imageFormat(QIODevice *); - static QStrList inputFormats(); - static QStrList outputFormats(); - -// static void defineIOHandler(const char *,const char *,const char *, -// image_io_handler,image_io_handler); - -private: - QImageIO(const QImageIO &); -}; - - -%If (Qt_2_1_0 -) -%If (Qt_IMAGE_TEXT) - -class QImageTextKeyLang -{ -%TypeHeaderCode -#include -%End - -public: - QImageTextKeyLang(const char *,const char *); - QImageTextKeyLang(); - - QCString key; - QCString lang; -}; - -%End -%End - - -%ModuleHeaderCode -const char **PyQt_qt_ListToArray(PyObject *lst); -%End - - -%ModuleCode -// Convert a list of strings to an array of strings on the heap. Also used by -// QPixmap. -const char **PyQt_qt_ListToArray(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/python/pyqt/sip/qt/qinputdialog.sip b/python/pyqt/sip/qt/qinputdialog.sip deleted file mode 100644 index 04d323e4..00000000 --- a/python/pyqt/sip/qt/qinputdialog.sip +++ /dev/null @@ -1,174 +0,0 @@ -// This is the SIP interface definition for QInputDialog. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QInputDialog (Qt v2.1+) - - static QString getText - const QString &caption - const QString &label - const QString &text = QString::null - bool *ok = 0 - QWidget *parent = 0 - const char *name = 0 - - -The ok is not passed and the returned value is a tuple of -the QString result and the ok flag. -(Qt v2.1 - v2.3.1) - - - - static QString getText - const QString &caption - const QString &label - QLineEdit::EchoModeecho - const QString &text = QString::null - bool *ok = 0 - QWidget *parent = 0 - const char *name = 0 - - -The ok is not passed and the returned value is a tuple of -the QString result and the ok flag. -(Qt v2.2 - v2.3.1) - - - - static QString getText - const QString &caption - const QString &label - QLineEdit::EchoModeecho = QLineEdit::Normal - const QString &text = QString::null - bool *ok = 0 - QWidget *parent = 0 - const char *name = 0 - - -The ok is not passed and the returned value is a tuple of -the QString result and the ok flag. -(Qt v3+) - - - - static int getInteger - const QString &caption - const QString &label - int num = 0 - int from = -2147483647 - int to = 2147483647 - int step = 1 - bool *ok = 0 - QWidget *parent = 0 - const char *name = 0 - - -The ok is not passed and the returned value is a tuple of -the int result and the ok flag. - - - - static double getDouble - const QString &caption - const QString &label - double num = 0 - double from = -2147483647 - double to = 2147483647 - int step = 1 - bool *ok = 0 - QWidget *parent = 0 - const char *name = 0 - - -The ok is not passed and the returned value is a tuple of -the double result and the ok flag. - - - - static QString getItem - const QString &caption - const QString &label - const QStringList &list - int current = 0 - bool editable = TRUE - bool *ok = 0 - QWidget *parent = 0 - const char *name = 0 - - -The ok is not passed and the returned value is a tuple of -the QString result and the ok flag. - - -%End - - -%If (Qt_2_1_0 -) -%If (Qt_INPUTDIALOG) - -class QInputDialog : QDialog -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_0_0 -) - static QString getText(const QString &,const QString &, - QLineEdit::EchoMode = QLineEdit::Normal, - const QString & = QString::null, - bool * = 0,QWidget * = 0,const char * = 0); -%End - -%If (- Qt_3_0_0) - static QString getText(const QString &,const QString &, - const QString & = QString::null, - bool * = 0,QWidget * = 0,const char * = 0); -%End - -%If (Qt_2_2_0 - Qt_3_0_0) - static QString getText(const QString &,const QString &, - QLineEdit::EchoMode, - const QString & = QString::null, - bool * = 0,QWidget * = 0,const char * = 0); -%End - - static int getInteger(const QString &,const QString &,int = 0, - int = -2147483647,int = 2147483647,int = 1, - bool * = 0,QWidget * = 0,const char * = 0); - - static double getDouble(const QString &,const QString &, - double = 0,double = -2147483647, - double = 2147483647,int = 1, - bool * = 0,QWidget * = 0,const char * = 0); - - static QString getItem(const QString &,const QString &, - const QStringList &,int = 0,bool = TRUE, - bool * = 0,QWidget * = 0,const char * = 0); - -private: - QInputDialog(const QInputDialog &); - ~QInputDialog(); -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qinterlacestyle.sip b/python/pyqt/sip/qt/qinterlacestyle.sip deleted file mode 100644 index dbd84797..00000000 --- a/python/pyqt/sip/qt/qinterlacestyle.sip +++ /dev/null @@ -1,103 +0,0 @@ -// This is the SIP interface definition for QInterlaceStyle. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QInterlaceStyle (Qt v2.3.1+) - - void scrollBarMetrics - const QTabBar *sb - int &sliderMin - int &sliderMax - int &sliderLength - int &buttonDim - - -This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. - - -%End - - -// Temporary until it is ported to Qt3. -%If (Qt_STYLE_INTERLACE) -%If (Qt_2_3_1 - Qt_3_0_0) - -class QInterlaceStyle : QMotifStyle -{ -%TypeHeaderCode -#include -%End - -public: - QInterlaceStyle(); - - void polish(QApplication *); - void unPolish(QApplication *); - void polish(QWidget *); - void unPolish(QWidget *); - int defaultFrameWidth() const; - QRect pushButtonContentsRect(QPushButton *); - void drawFocusRect(QPainter *,const QRect &,const QColorGroup &, - const QColor * = 0,bool = 0); - void drawButton(QPainter *,int,int,int,int,const QColorGroup &, - bool = 0,const QBrush * = 0); - void drawButtonMask(QPainter *,int,int,int,int); - void drawBevelButton(QPainter *,int,int,int,int,const QColorGroup &, - bool = 0,const QBrush * = 0); - - void drawPushButton(QPushButton *,QPainter *); - 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); - QRect comboButtonRect(int,int,int,int); - void drawComboButton(QPainter *,int,int,int,int,const QColorGroup &, - bool,bool,bool,const QBrush *); - void drawPushButtonLabel(QPushButton *,QPainter *); - void drawPanel(QPainter *,int,int,int,int,const QColorGroup &,bool,int, - const QBrush *); - - void scrollBarMetrics(const QScrollBar *,int &,int &,int &,int &); - - void drawScrollBarControls(QPainter *,const QScrollBar *,int,uint, - uint); - void drawSlider(QPainter *,int,int,int,int,const QColorGroup &, - Orientation,bool,bool); - void drawSliderMask(QPainter *,int,int,int,int,Orientation,bool,bool); - void drawSliderGroove(QPainter *,int,int,int,int,const QColorGroup &, - QCOORD,Orientation); - void drawSliderGrooveMask(QPainter *,int,int,int,int,QCOORD, - Orientation); - int splitterWidth() const; - void drawSplitter(QPainter *,int,int,int,int,const QColorGroup &, - Orientation); -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qiodevice.sip b/python/pyqt/sip/qt/qiodevice.sip deleted file mode 100644 index 83d9c67a..00000000 --- a/python/pyqt/sip/qt/qiodevice.sip +++ /dev/null @@ -1,408 +0,0 @@ -// This is the SIP interface definition for QIODevice. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QIODevice - -QIODevice is fully implemented. - - -%End - - -%ModuleHeaderCode -#include -%End - - -// Device access types. - -const int IO_Direct; -const int IO_Sequential; -const int IO_Combined; -const int IO_TypeMask; - -// Handling modes. - -const int IO_Raw; -const int IO_Async; - -// Device open modes. - -const int IO_ReadOnly; -const int IO_WriteOnly; -const int IO_ReadWrite; -const int IO_Append; -const int IO_Truncate; -const int IO_Translate; -const int IO_ModeMask; - -// Device state. - -const int IO_Open; -const int IO_StateMask; - -// Device status. - -const int IO_Ok; -const int IO_ReadError; -const int IO_WriteError; -const int IO_FatalError; -const int IO_ResourceError; -const int IO_OpenError; -const int IO_ConnectError; -const int IO_AbortError; -const int IO_TimeOutError; -%If (Qt_2_00 -) -const int IO_UnspecifiedError; -%End - - -class QIODevice -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_0_0 -) - typedef Q_ULONG Offset; -%End - - QIODevice(); - - int flags() const; - int mode() const; - int state() const; - bool isDirectAccess() const; - bool isSequentialAccess() const; - bool isCombinedAccess() const; - bool isBuffered() const; - bool isRaw() const; - bool isSynchronous() const; - bool isAsynchronous() const; - bool isTranslated() const; - bool isReadable() const; - bool isWritable() const; - bool isReadWrite() const; - bool isInactive() const; - bool isOpen() const; - - int status() const; - void resetStatus(); - - virtual bool open(int) = 0 /ReleaseGIL/; - virtual void close() = 0; - virtual void flush() = 0 /ReleaseGIL/; - -%If (- Qt_3_0_0) - virtual uint size() const = 0; - virtual int at() const; - virtual bool at(int); -%End -%If (Qt_3_0_0 -) - virtual Offset size() const = 0; - virtual Offset at() const; - virtual bool at(Offset); -%End - virtual bool atEnd() const; - bool reset(); - -%If (- Qt_3_0_0) - virtual SIP_PYOBJECT readBlock(uint) = 0 /ReleaseGIL/ [int (char *,uint)]; -%MethodCode - char *buf; - - if ((buf = (char *)sipMalloc(a0)) == NULL) - sipIsErr = 1; - else - { - int actlen; - - Py_BEGIN_ALLOW_THREADS - actlen = sipCpp -> readBlock(buf,a0); - Py_END_ALLOW_THREADS - - if (actlen < 0) - { - sipFree((ANY *)buf); - - Py_INCREF(Py_None); - sipRes = Py_None; - } - else - { - sipRes = PyString_FromStringAndSize(buf,actlen); - - sipFree((ANY *)buf); - - if (sipRes == NULL) - sipIsErr = 1; - } - } -%End -%VirtualCatcherCode - PyObject *result = sipCallMethod(&sipIsErr,sipMethod,"i",a1); - - if (result != NULL) - { - PyObject *buf; - - sipParseResult(&sipIsErr,sipMethod,result,"O",&buf); - - if (buf == Py_None) - sipRes = -1; - else if (!PyString_Check(buf)) - { - sipBadCatcherResult(sipMethod); - sipIsErr = 1; - } - else - { - memcpy(a0,PyString_AS_STRING(buf),PyString_GET_SIZE(buf)); - sipRes = PyString_GET_SIZE(buf); - } - - Py_DECREF(buf); - Py_DECREF(result); - } -%End -%End -%If (Qt_3_0_0 -) - virtual SIP_PYOBJECT readBlock(Q_ULONG) = 0 /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)]; -%MethodCode - char *buf; - - if ((buf = (char *)sipMalloc(a0)) == NULL) - sipIsErr = 1; - else - { - Q_LONG actlen; - - Py_BEGIN_ALLOW_THREADS - actlen = sipCpp -> readBlock(buf,a0); - Py_END_ALLOW_THREADS - - if (actlen < 0) - { - sipFree((ANY *)buf); - - Py_INCREF(Py_None); - sipRes = Py_None; - } - else - { - sipRes = PyString_FromStringAndSize(buf,actlen); - - sipFree((ANY *)buf); - - if (sipRes == NULL) - sipIsErr = 1; - } - } -%End -%VirtualCatcherCode - PyObject *result = sipCallMethod(&sipIsErr,sipMethod,"l",a1); - - if (result != NULL) - { - PyObject *buf; - - sipParseResult(&sipIsErr,sipMethod,result,"O",&buf); - - if (buf == Py_None) - sipRes = -1L; - else if (!PyString_Check(buf)) - { - sipBadCatcherResult(sipMethod); - sipIsErr = 1; - } - else - { - memcpy(a0,PyString_AS_STRING(buf),PyString_GET_SIZE(buf)); - sipRes = PyString_GET_SIZE(buf); - } - - Py_DECREF(buf); - Py_DECREF(result); - } -%End -%End - -%If (- Qt_3_0_0) - virtual int writeBlock(const char * /Array/, - uint /ArraySize/) = 0 /ReleaseGIL/; -%End -%If (Qt_3_0_0 -) - virtual Q_LONG writeBlock(const char * /Array/, - Q_ULONG /ArraySize/) = 0 /ReleaseGIL/; -%End - -%If (- Qt_3_0_0) - virtual SIP_PYOBJECT readLine(uint) /ReleaseGIL/ [int (char *,uint)]; -%MethodCode - char *buf; - - if ((buf = (char *)sipMalloc(a0)) == NULL) - sipIsErr = 1; - else - { - int actlen; - - Py_BEGIN_ALLOW_THREADS - actlen = sipSelfWasArg ? sipCpp->QIODevice::readLine(buf, a0) : sipCpp->readLine(buf, a0); - Py_END_ALLOW_THREADS - - if (actlen < 0) - { - sipFree((ANY *)buf); - - Py_INCREF(Py_None); - sipRes = Py_None; - } - else - { - sipRes = PyString_FromStringAndSize(buf,actlen); - - sipFree((ANY *)buf); - - if (sipRes == NULL) - sipIsErr = 1; - } - } -%End -%VirtualCatcherCode - PyObject *result = sipCallMethod(&sipIsErr,sipMethod,"i",a1); - - if (result != NULL) - { - PyObject *buf; - - sipParseResult(&sipIsErr,sipMethod,result,"O",&buf); - - if (buf == Py_None) - sipRes = -1; - else if (!PyString_Check(buf)) - { - sipBadCatcherResult(sipMethod); - sipIsErr = 1; - } - else - { - memcpy(a0,PyString_AS_STRING(buf),PyString_GET_SIZE(buf)); - sipRes = PyString_GET_SIZE(buf); - } - - Py_DECREF(buf); - Py_DECREF(result); - } -%End -%End -%If (Qt_3_0_0 -) - virtual SIP_PYOBJECT readLine(Q_ULONG) /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)]; -%MethodCode - char *buf; - - if ((buf = (char *)sipMalloc(a0)) == NULL) - sipIsErr = 1; - else - { - Q_LONG actlen; - - Py_BEGIN_ALLOW_THREADS - actlen = sipSelfWasArg ? sipCpp->QIODevice::readLine(buf, a0) : sipCpp->readLine(buf, a0); - Py_END_ALLOW_THREADS - - if (actlen < 0) - { - sipFree((ANY *)buf); - - Py_INCREF(Py_None); - sipRes = Py_None; - } - else - { - sipRes = PyString_FromStringAndSize(buf,actlen); - - sipFree((ANY *)buf); - - if (sipRes == NULL) - sipIsErr = 1; - } - } -%End -%VirtualCatcherCode - PyObject *result = sipCallMethod(&sipIsErr,sipMethod,"l",a1); - - if (result != NULL) - { - PyObject *buf; - - sipParseResult(&sipIsErr,sipMethod,result,"O",&buf); - - if (buf == Py_None) - sipRes = -1L; - else if (!PyString_Check(buf)) - { - sipBadCatcherResult(sipMethod); - sipIsErr = 1; - } - else - { - memcpy(a0,PyString_AS_STRING(buf),PyString_GET_SIZE(buf)); - sipRes = PyString_GET_SIZE(buf); - } - - Py_DECREF(buf); - Py_DECREF(result); - } -%End -%End - -%If (Qt_2_00 - Qt_3_0_0) - int writeBlock(const QByteArray &) /ReleaseGIL/; -%End -%If (Qt_3_0_0 -) - Q_LONG writeBlock(const QByteArray &) /ReleaseGIL/; -%End - -%If (Qt_2_00 - Qt_3_0_0) - QByteArray readAll() /ReleaseGIL/; -%End -%If (Qt_3_0_0 -) - virtual QByteArray readAll() /ReleaseGIL/; -%End - - virtual int getch() = 0 /ReleaseGIL/; - virtual int putch(int) = 0 /ReleaseGIL/; - virtual int ungetch(int) = 0; - -protected: - void setFlags(int); - void setType(int); - void setMode(int); - void setState(int); - void setStatus(int); - -private: - QIODevice(const QIODevice &); -}; diff --git a/python/pyqt/sip/qt/qkeycode.sip b/python/pyqt/sip/qt/qkeycode.sip deleted file mode 100644 index dcd6d1b4..00000000 --- a/python/pyqt/sip/qt/qkeycode.sip +++ /dev/null @@ -1,286 +0,0 @@ -// This is the SIP interface definition for the key code definitions. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If (- Qt_2_00) - -%ModuleHeaderCode -#include -%End - -// Accelerator modifiers. -const uint SHIFT; -const uint CTRL; -const uint ALT; -const uint ASCII_ACCEL; - -// Miscellaneous keys. -const int Key_Escape; -const int Key_Tab; -const int Key_Backtab; -const int Key_Backspace; -const int Key_Return; -const int Key_Enter; -const int Key_Insert; -const int Key_Delete; -const int Key_Pause; -const int Key_Print; -const int Key_SysReq; - -// Cursor keys. -const int Key_Home; -const int Key_End; -const int Key_Left; -const int Key_Up; -const int Key_Right; -const int Key_Down; -const int Key_Prior; -const int Key_PageUp; -const int Key_Next; -const int Key_PageDown; - -// Modifiers. -const int Key_Shift; -const int Key_Control; -const int Key_Meta; -const int Key_Alt; -const int Key_CapsLock; -const int Key_NumLock; -const int Key_ScrollLock; - -// Function keys. -const int Key_F1; -const int Key_F2; -const int Key_F3; -const int Key_F4; -const int Key_F5; -const int Key_F6; -const int Key_F7; -const int Key_F8; -const int Key_F9; -const int Key_F10; -const int Key_F11; -const int Key_F12; -const int Key_F13; -const int Key_F14; -const int Key_F15; -const int Key_F16; -const int Key_F17; -const int Key_F18; -const int Key_F19; -const int Key_F20; -const int Key_F21; -const int Key_F22; -const int Key_F23; -const int Key_F24; -const int Key_F25; -const int Key_F26; -const int Key_F27; -const int Key_F28; -const int Key_F29; -const int Key_F30; -const int Key_F31; -const int Key_F32; -const int Key_F33; -const int Key_F34; -const int Key_F35; - -// Extra keys. -const int Key_Super_L; -const int Key_Super_R; -const int Key_Menu; -%If (Qt_1_43 -) -const int Key_Hyper_L; -const int Key_Hyper_R; -%End - -// The 7 bit printable ASCII keys. -const int Key_Space; -const int Key_Exclam; -const int Key_QuoteDbl; -const int Key_NumberSign; -const int Key_Dollar; -const int Key_Percent; -const int Key_Ampersand; -const int Key_Apostrophe; -const int Key_ParenLeft; -const int Key_ParenRight; -const int Key_Asterisk; -const int Key_Plus; -const int Key_Comma; -const int Key_Minus; -const int Key_Period; -const int Key_Slash; -const int Key_0; -const int Key_1; -const int Key_2; -const int Key_3; -const int Key_4; -const int Key_5; -const int Key_6; -const int Key_7; -const int Key_8; -const int Key_9; -const int Key_Colon; -const int Key_Semicolon; -const int Key_Less; -const int Key_Equal; -const int Key_Greater; -const int Key_Question; -const int Key_At; -const int Key_A; -const int Key_B; -const int Key_C; -const int Key_D; -const int Key_E; -const int Key_F; -const int Key_G; -const int Key_H; -const int Key_I; -const int Key_J; -const int Key_K; -const int Key_L; -const int Key_M; -const int Key_N; -const int Key_O; -const int Key_P; -const int Key_Q; -const int Key_R; -const int Key_S; -const int Key_T; -const int Key_U; -const int Key_V; -const int Key_W; -const int Key_X; -const int Key_Y; -const int Key_Z; -const int Key_BracketLeft; -const int Key_Backslash; -const int Key_BracketRight; -const int Key_AsciiCircum; -const int Key_Underscore; -const int Key_QuoteLeft; -const int Key_BraceLeft; -const int Key_Bar; -const int Key_BraceRight; -const int Key_AsciiTilde; - -// Latin 1 codes. -const int Key_nobreakspace; -const int Key_exclamdown; -const int Key_cent; -const int Key_sterling; -const int Key_currency; -const int Key_yen; -const int Key_brokenbar; -const int Key_section; -const int Key_diaeresis; -const int Key_copyright; -const int Key_ordfeminine; -const int Key_guillemotleft; -const int Key_notsign; -const int Key_hyphen; -const int Key_registered; -const int Key_macron; -const int Key_degree; -const int Key_plusminus; -const int Key_twosuperior; -const int Key_threesuperior; -const int Key_acute; -const int Key_mu; -const int Key_paragraph; -const int Key_periodcentered; -const int Key_cedilla; -const int Key_onesuperior; -const int Key_masculine; -const int Key_guillemotright; -const int Key_onequarter; -const int Key_onehalf; -const int Key_threequarters; -const int Key_questiondown; -const int Key_Agrave; -const int Key_Aacute; -const int Key_Acircumflex; -const int Key_Atilde; -const int Key_Adiaeresis; -const int Key_Aring; -const int Key_AE; -const int Key_Ccedilla; -const int Key_Egrave; -const int Key_Eacute; -const int Key_Ecircumflex; -const int Key_Ediaeresis; -const int Key_Igrave; -const int Key_Iacute; -const int Key_Icircumflex; -const int Key_Idiaeresis; -const int Key_ETH; -const int Key_Ntilde; -const int Key_Ograve; -const int Key_Oacute; -const int Key_Ocircumflex; -const int Key_Otilde; -const int Key_Odiaeresis; -const int Key_multiply; -const int Key_Ooblique; -const int Key_Ugrave; -const int Key_Uacute; -const int Key_Ucircumflex; -const int Key_Udiaeresis; -const int Key_Yacute; -const int Key_THORN; -const int Key_ssharp; -const int Key_agrave; -const int Key_aacute; -const int Key_acircumflex; -const int Key_atilde; -const int Key_adiaeresis; -const int Key_aring; -const int Key_ae; -const int Key_ccedilla; -const int Key_egrave; -const int Key_eacute; -const int Key_ecircumflex; -const int Key_ediaeresis; -const int Key_igrave; -const int Key_iacute; -const int Key_icircumflex; -const int Key_idiaeresis; -const int Key_eth; -const int Key_ntilde; -const int Key_ograve; -const int Key_oacute; -const int Key_ocircumflex; -const int Key_otilde; -const int Key_odiaeresis; -const int Key_division; -const int Key_oslash; -const int Key_ugrave; -const int Key_uacute; -const int Key_ucircumflex; -const int Key_udiaeresis; -const int Key_yacute; -const int Key_thorn; -const int Key_ydiaeresis; - -const int Key_unknown; - -%End diff --git a/python/pyqt/sip/qt/qkeysequence.sip b/python/pyqt/sip/qt/qkeysequence.sip deleted file mode 100644 index e3de0bb9..00000000 --- a/python/pyqt/sip/qt/qkeysequence.sip +++ /dev/null @@ -1,119 +0,0 @@ -// This is the SIP interface definition for QKeySequence. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QKeySequence (Qt v3+) - -QKeySequence is fully implemented including the operators -==, !=, QString() and -int(). A QString instance or a Python -integer may be used whenever a QKeySequence can be used. - - -%End - - -%If (Qt_3_0_0 -) - -class QKeySequence : Qt -{ -%TypeHeaderCode -#include -%End - -public: - QKeySequence(); - QKeySequence(const QString &); - QKeySequence(int); -%If (Qt_3_1_0 -) - QKeySequence(int,int,int = 0,int = 0); - - bool operator==(const QKeySequence &) const; - bool operator!=(const QKeySequence &) const; - - uint count() const; - bool isEmpty() const; - Qt::SequenceMatch matches(const QKeySequence &) const; -%End - - int __int__() const; - -%ConvertToTypeCode - // Allow a QString or a Python integer whenever a QKeySequence is - // expected. - - if (sipIsErr == NULL) - { - if (sipCanConvertToInstance(sipPy,sipClass_QKeySequence,SIP_NO_CONVERTORS)) - return 1; - - if (sipCanConvertToInstance(sipPy,sipClass_QString,0)) - return 1; - - PyErr_Clear(); - - PyInt_AsLong(sipPy); - - return !PyErr_Occurred(); - } - - // We do this case before the int case because, otherwise, - // PyInt_AsLong() would achieve the same result but less efficiently. - - if (sipCanConvertToInstance(sipPy,sipClass_QKeySequence,SIP_NO_CONVERTORS)) - { - *sipCppPtr = reinterpret_cast(sipConvertToInstance(sipPy,sipClass_QKeySequence,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr)); - - return 0; - } - - if (sipCanConvertToInstance(sipPy,sipClass_QString,0)) - { - int state; - QString *s = reinterpret_cast(sipConvertToInstance(sipPy,sipClass_QString,0,0,&state,sipIsErr)); - - if (*sipIsErr) - { - sipReleaseInstance(s,sipClass_QString,state); - return 0; - } - - Py_BEGIN_ALLOW_THREADS - *sipCppPtr = new QKeySequence(*s); - Py_END_ALLOW_THREADS - - sipReleaseInstance(s,sipClass_QString,state); - - return sipGetState(sipTransferObj); - } - - int key = PyInt_AsLong(sipPy); - - Py_BEGIN_ALLOW_THREADS - *sipCppPtr = new QKeySequence(key); - Py_END_ALLOW_THREADS - - return sipGetState(sipTransferObj); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qlabel.sip b/python/pyqt/sip/qt/qlabel.sip deleted file mode 100644 index f7f19ef9..00000000 --- a/python/pyqt/sip/qt/qlabel.sip +++ /dev/null @@ -1,157 +0,0 @@ -// This is the SIP interface definition for QLabel. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QLabel - -QLabel is fully implemented. - - -%End - - -class QLabel : QFrame -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QLabel(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - QLabel(const char *,QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - QLabel(QWidget *,const char *,QWidget * /TransferThis/,const char * = 0,WFlags = 0); -%End -%If (Qt_2_00 -) - QLabel(QWidget * /TransferThis/,const char * = 0,WFlags = 0); - QLabel(const QString &,QWidget * /TransferThis/,const char * = 0,WFlags = 0); - QLabel(QWidget *,const QString &,QWidget * /TransferThis/,const char * = 0,WFlags = 0); -%End - -%If (- Qt_2_00) - const char *text() const; -%End -%If (Qt_2_00 -) - QString text() const; -%End - QPixmap *pixmap() const; -%If (Qt_3_0_0 -) - QPicture *picture() const; -%End - QMovie *movie() const; - -%If (Qt_2_00 -) - TextFormat textFormat() const; - void setTextFormat(TextFormat); -%End - - int alignment() const; -%If (- Qt_2_00) - void setAlignment(int); -%End -%If (Qt_2_00 -) - virtual void setAlignment(int); -%End -%If (- Qt_2_00) - int margin() const; - void setMargin(int); -%End -%If (Qt_2_00 -) - int indent() const; - void setIndent(int); -%End - - bool autoResize() const; -%If (- Qt_2_00) - void setAutoResize(bool); -%End -%If (Qt_2_00 -) - virtual void setAutoResize(bool); -%End -%If (Qt_2_2_0 -) - bool hasScaledContents() const; - void setScaledContents(bool); -%End -%If (Qt_2_00 - Qt_3_0_0) - QSizePolicy sizePolicy() const; -%End - QSize sizeHint() const; -%If (Qt_2_1_0 -) - QSize minimumSizeHint() const; -%End -%If (- Qt_2_00) - void setBuddy(QWidget *); -%End -%If (Qt_2_00 -) - virtual void setBuddy(QWidget *); -%End - QWidget *buddy() const; -%If (Qt_2_00 - Qt_3_0_0) - void setAutoMask(bool); -%End -%If (Qt_2_00 -) - int heightForWidth(int) const; -%End - -%If (Qt_3_0_0 -) - void setFont(const QFont &); -%End - -public slots: -%If (- Qt_2_00) - void setText(const char *); - void setPixmap(const QPixmap &); -%End -%If (Qt_2_00 -) - virtual void setText(const QString &); - virtual void setPixmap(const QPixmap &); -%End -%If (Qt_3_0_0 -) - virtual void setPicture(const QPicture &); -%End -%If (- Qt_2_00) - void setMovie(const QMovie &); - void setNum(int /Constrained/); - void setNum(double); -%End -%If (Qt_2_00 -) - virtual void setMovie(const QMovie &); - virtual void setNum(int /Constrained/); - virtual void setNum(double); -%End - void clear(); - -protected: - void drawContents(QPainter *); -%If (Qt_2_00 - Qt_3_0_0) - void drawContentsMask(QPainter *); -%End -%If (Qt_2_1_0 -) - void fontChange(const QFont &); -%End -%If (Qt_2_2_0 -) - void resizeEvent(QResizeEvent *); -%End - -private: - QLabel(const QLabel &); -}; diff --git a/python/pyqt/sip/qt/qlayout.sip b/python/pyqt/sip/qt/qlayout.sip deleted file mode 100644 index bff01d35..00000000 --- a/python/pyqt/sip/qt/qlayout.sip +++ /dev/null @@ -1,597 +0,0 @@ -// This is the SIP interface definition for QBoxLayout, QGLayoutIterator, -// QGridLayout, QHBoxLayout, QLayout, QLayoutItem, QLayoutIterator, -// QSpacerItem, QVBoxLayout and QWidgetItem. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QLayout - -QLayout is fully implemented. - - - -QBoxLayout - -QBoxLayout is fully implemented. - - - -QGLayoutIterator (Qt v2+) - -QGLayoutIterator is fully implemented. - - - -QGridLayout - - bool findWidget - QWidget *w - int *row - int *col - - -This takes the w parameter and returns a tuple containing -the bool result, row and -col. (Qt v2+) - - - -QHBoxLayout - -QHBoxLayout is fully implemented. - - - -QLayoutItem (Qt v2+) - -QLayoutItem is fully implemented. - - - -QLayoutIterator (Qt v2+) - - QLayoutItem *next - - - -This is a wrapper around the QLayoutIterator -++ operator. - - - -QSpacerItem (Qt v2+) - -QSpacerItem is fully implemented. - - - -QVBoxLayout - -QVBoxLayout is fully implemented. - - - -QWidgetItem (Qt v2+) - -QWidgetItem is fully implemented. - - -%End - - -%If (- Qt_2_00) - -class QLayout : QObject -{ -%TypeHeaderCode -#include -%End - -public: - enum - { - unlimited = QCOORD_MAX - }; - - int defaultBorder() const; - virtual bool activate(); - void freeze(int,int); - void freeze(); - void setMenuBar(QMenuBar *); - QWidget *mainWidget(); - -protected: - QLayout(QWidget * /TransferThis/,int,int,const char *); - QLayout(int = -1,const char * = 0); - - QGManager *basicManager(); - virtual QChain *mainVerticalChain() = 0; - virtual QChain *mainHorizontalChain() = 0; - virtual void initGM() = 0; - void addChildLayout(QLayout *); - -private: - QLayout(const QLayout &); -}; - -%End - - -%If (Qt_2_00 -) - -class QGLayoutIterator -{ -%TypeHeaderCode -#include -%End - -public: - virtual QLayoutItem *next() = 0; - virtual QLayoutItem *current() = 0; - virtual QLayoutItem *takeCurrent() = 0 /TransferBack/; -}; - - -class QLayoutIterator -{ -%TypeHeaderCode -#include -%End - -public: - QLayoutIterator(QGLayoutIterator *) /Default/; - QLayoutIterator(const QLayoutIterator &); - - QLayoutItem *next(); -%MethodCode - Py_BEGIN_ALLOW_THREADS - sipRes = ++(*sipCpp); - Py_END_ALLOW_THREADS -%End - - QLayoutItem *current(); - QLayoutItem *takeCurrent() /TransferBack/; - void deleteCurrent(); -}; - - -class QLayoutItem -{ -%TypeHeaderCode -#include -%End - -public: - QLayoutItem(int = 0 ); - -%ConvertToSubClassCode - // Note that we let the QObject sub-class code handle QLayout and it's - // sub-classes. - if (sipCpp->widget()) - sipClass = sipClass_QWidgetItem; - else if (sipCpp->spacerItem()) - sipClass = sipClass_QSpacerItem; - else - sipClass = NULL; -%End - - virtual QSize sizeHint() const = 0; - virtual QSize minimumSize() const = 0; - virtual QSize maximumSize() const = 0; - virtual QSizePolicy::ExpandData expanding() const = 0; - virtual void setGeometry(const QRect &) = 0; - virtual QRect geometry() const = 0; - virtual bool isEmpty() const = 0; - virtual bool hasHeightForWidth() const; - virtual int heightForWidth(int) const; - virtual void invalidate(); - - virtual QWidget *widget(); - virtual QLayoutIterator iterator(); - virtual QLayout *layout(); - virtual QSpacerItem *spacerItem(); - - int alignment() const; - virtual void setAlignment(int); -}; - - -class QSpacerItem : QLayoutItem -{ -%TypeHeaderCode -#include -%End - -public: - QSpacerItem(int,int,QSizePolicy::SizeType = QSizePolicy::Minimum, - QSizePolicy::SizeType = QSizePolicy::Minimum); - - void changeSize(int,int,QSizePolicy::SizeType = QSizePolicy::Minimum, - QSizePolicy::SizeType = QSizePolicy::Minimum); - QSize sizeHint() const; - QSize minimumSize() const; - QSize maximumSize() const; - QSizePolicy::ExpandData expanding() const; - bool isEmpty() const; - void setGeometry(const QRect &); - QRect geometry() const; - QSpacerItem *spacerItem(); -}; - - -class QWidgetItem : QLayoutItem -{ -%TypeHeaderCode -#include -%End - -public: - QWidgetItem(QWidget *); - - QSize sizeHint() const; - QSize minimumSize() const; - QSize maximumSize() const; - QSizePolicy::ExpandData expanding() const; - bool isEmpty() const; - void setGeometry(const QRect &) ; - QRect geometry() const; - virtual QWidget *widget(); - - bool hasHeightForWidth() const; - int heightForWidth(int) const; -}; - - -class QLayout : QObject, QLayoutItem -{ -%TypeHeaderCode -#include -%End - -public: - enum ResizeMode { - FreeResize, - Minimum, - Fixed, -%If (Qt_3_1_0 -) - Auto -%End - }; - - QLayout(QWidget * /TransferThis/,int = 0,int = -1,const char * = 0); - QLayout(QLayout * /TransferThis/,int = -1,const char * = 0); - QLayout(int = -1,const char * = 0); - - int margin() const; - int spacing() const; - - virtual void setMargin(int); - virtual void setSpacing(int); - -%If (- Qt_3_1_0) - enum { - unlimited - }; -%End - -%If (Qt_3_0_0 -) - int defaultBorder() const; - void freeze(int,int); - void freeze(); -%End - - void setResizeMode(ResizeMode); - ResizeMode resizeMode() const; - - virtual void setMenuBar(QMenuBar *); - QMenuBar *menuBar() const; - - QWidget *mainWidget(); - bool isTopLevel() const; - - virtual void setAutoAdd(bool); - bool autoAdd() const; - -%If (Qt_2_1_0 -) - void invalidate(); -%End - QRect geometry() const; - bool activate(); - - void add(QWidget *); - virtual void addItem(QLayoutItem * /Transfer/) = 0; - -%If (Qt_3_1_0 -) - void remove(QWidget *); - void removeItem(QLayoutItem * /TransferBack/); -%End - - QSizePolicy::ExpandData expanding() const; - QSize minimumSize() const; - QSize maximumSize() const; - void setGeometry(const QRect &) = 0; - QLayoutIterator iterator() = 0; - bool isEmpty() const; - - int totalHeightForWidth(int) const; - QSize totalMinimumSize() const; - QSize totalMaximumSize() const; - QSize totalSizeHint() const; - QLayout *layout(); - -%If (Qt_2_1_0 -) - bool supportsMargin() const; -%End - -%If (Qt_2_2_0 -) - void setEnabled(bool); - bool isEnabled() const; -%End - -protected: - bool eventFilter(QObject *,QEvent *); -%If (Qt_3_0_0 -) - void childEvent(QChildEvent *); -%End - void addChildLayout(QLayout *); - void deleteAllItems(); - -%If (Qt_2_1_0 -) - void setSupportsMargin(bool); - QRect alignmentRect(const QRect &) const; -%End - -private: - QLayout(const QLayout &); -}; - -%End - - -class QGridLayout : QLayout -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_1_0) - QGridLayout(QWidget * /TransferThis/,int,int,int = 0,int = -1,const char * = 0); - QGridLayout(int,int,int = -1,const char * = 0); -%End -%If (Qt_2_00 - Qt_2_1_0) - QGridLayout(QLayout * /TransferThis/,int,int,int = -1,const char * = 0); -%End -%If (Qt_2_1_0 -) - QGridLayout(QWidget * /TransferThis/,int = 1,int = 1,int = 0,int = -1,const char * = 0); - QGridLayout(int = 1,int = 1,int = -1,const char * = 0); - QGridLayout(QLayout * /TransferThis/,int = 1,int = 1,int = -1,const char * = 0); -%End - -%If (Qt_2_00 -) - QSize sizeHint() const; - QSize minimumSize() const; - QSize maximumSize() const; -%End - -%If (- Qt_2_00) - void setRowStretch(int,int); - void setColStretch(int,int); -%End -%If (Qt_2_00 -) - virtual void setRowStretch(int,int); - virtual void setColStretch(int,int); -%End -%If (Qt_2_1_0 -) - int rowStretch(int) const; - int colStretch(int) const; -%End - -%If (Qt_3_2_0 -) - void setRowSpacing(int,int); - void setColSpacing(int,int); - int rowSpacing(int) const; - int colSpacing(int) const; -%End - - int numRows() const; - int numCols() const; -%If (Qt_2_1_0 -) - QRect cellGeometry(int,int) const; -%End - -%If (Qt_2_00 -) - bool hasHeightForWidth() const; - int heightForWidth(int) const; -%If (Qt_3_1_0 -) - int minimumHeightForWidth(int) const; -%End - - QSizePolicy::ExpandData expanding() const; - void invalidate(); - - void addItem(QLayoutItem * /Transfer/); -%End -%If (Qt_2_1_0 -) - void addItem(QLayoutItem * /Transfer/,int,int); -%End -%If (Qt_2_00 -) - void addMultiCell(QLayoutItem * /Transfer/,int,int,int,int,int = 0); -%End - - void addWidget(QWidget *,int,int,int = 0); - void addMultiCellWidget(QWidget *,int,int,int,int,int = 0); - void addLayout(QLayout * /Transfer/,int,int); -%If (Qt_2_2_0 -) - void addMultiCellLayout(QLayout * /Transfer/,int,int,int,int,int = 0); -%End - void addRowSpacing(int,int); - void addColSpacing(int,int); - void expand(int,int); - -%If (Qt_2_00 -) - enum Corner { - TopLeft, - TopRight, - BottomLeft, - BottomRight - }; - - void setOrigin(Corner); -%End -%If (Qt_3_0_0 -) - Corner origin() const; -%End -%If (Qt_2_00 -) - QLayoutIterator iterator(); - void setGeometry(const QRect &); -%End - -protected: -%If (- Qt_2_00) - QChain *mainVerticalChain(); - QChain *mainHorizontalChain(); - void initGM(); -%End - -%If (Qt_2_00 -) - bool findWidget(QWidget *,int *,int *); - void add(QLayoutItem * /Transfer/,int,int); -%End - -private: - QGridLayout(const QGridLayout &); -}; - - -class QBoxLayout : QLayout -{ -%TypeHeaderCode -#include -%End - -public: - enum Direction { - LeftToRight, - RightToLeft, - TopToBottom, - BottomToTop, - Down = TopToBottom, - Up = BottomToTop - }; - - QBoxLayout(QWidget * /TransferThis/,Direction,int = 0,int = -1,const char * = 0); -%If (Qt_2_00 -) - QBoxLayout(QLayout * /TransferThis/,Direction,int = -1,const char * = 0); -%End - QBoxLayout(Direction,int = -1,const char * = 0); - - Direction direction() const; -%If (Qt_2_1_0 -) - void setDirection(Direction); -%End - void addSpacing(int); - void addStretch(int = 0); -%If (- Qt_2_00) - void addWidget(QWidget *,int = 0,int = AlignCenter); -%End - void addLayout(QLayout * /Transfer/,int = 0); - void addStrut(int); -%If (Qt_2_00 -) - void addItem(QLayoutItem * /Transfer/); - void addWidget(QWidget *,int = 0,int = 0); -%If (Qt_2_1_0 -) - void insertSpacing(int,int); - void insertStretch(int,int = 0); - void insertWidget(int,QWidget *,int = 0,int = 0); - void insertLayout(int,QLayout * /Transfer/,int = 0); - int findWidget(QWidget *); -%End - bool setStretchFactor(QWidget *,int); - QSize sizeHint() const; - QSize minimumSize() const; - QSize maximumSize() const; - bool hasHeightForWidth() const; - int heightForWidth(int) const; -%If (Qt_3_1_0 -) - int minimumHeightForWidth(int) const; -%End - - QSizePolicy::ExpandData expanding() const; - void invalidate(); - QLayoutIterator iterator(); - void setGeometry(const QRect &); -%End - -protected: -%If (- Qt_2_00) - QChain *mainVerticalChain(); - QChain *mainHorizontalChain(); - void initGM(); -%End -%If (Qt_2_1_0 -) - void insertItem(int,QLayoutItem * /Transfer/); -%End - -private: - QBoxLayout(const QBoxLayout &); -}; - - -class QHBoxLayout : QBoxLayout -{ -%TypeHeaderCode -#include -%End - -public: - QHBoxLayout(QWidget * /TransferThis/,int = 0,int = -1,const char * = 0); -%If (Qt_2_00 -) - QHBoxLayout(QLayout * /TransferThis/,int = -1,const char * = 0); -%End - QHBoxLayout(int = -1,const char * = 0); - -private: -%If (Qt_3_1_0 -) - QHBoxLayout(const QHBoxLayout &); -%End -}; - - -class QVBoxLayout : QBoxLayout -{ -%TypeHeaderCode -#include -%End - -public: - QVBoxLayout(QWidget * /TransferThis/,int = 0,int = -1,const char * = 0); -%If (Qt_2_00 -) - QVBoxLayout(QLayout * /TransferThis/,int = -1,const char * = 0); -%End - QVBoxLayout(int = -1,const char * = 0); - -private: -%If (Qt_3_1_0 -) - QVBoxLayout(const QVBoxLayout &); -%End -}; diff --git a/python/pyqt/sip/qt/qlcdnumber.sip b/python/pyqt/sip/qt/qlcdnumber.sip deleted file mode 100644 index 71e96222..00000000 --- a/python/pyqt/sip/qt/qlcdnumber.sip +++ /dev/null @@ -1,137 +0,0 @@ -// This is the SIP interface definition for QLCDNumber. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QLCDNumber - -QLCDNumber is fully implemented. - - -%End - - -class QLCDNumber : QFrame -{ -%TypeHeaderCode -#include -%End - -public: - QLCDNumber(QWidget * /TransferThis/ = 0,const char * = 0); - QLCDNumber(uint,QWidget * /TransferThis/ = 0,const char * = 0); - -%If (- Qt_2_00) - enum Mode { - HEX, - DEC, - OCT, - BIN - }; -%End -%If (Qt_2_00 -) - enum Mode { - Hex, HEX = Hex, - Dec, DEC = Dec, - Oct, OCT = Oct, - Bin, BIN = Bin - }; -%End - - enum SegmentStyle { - Outline, - Filled, - Flat - }; - - bool smallDecimalPoint() const; - - int numDigits() const; -%If (- Qt_2_00) - void setNumDigits(int); -%End -%If (Qt_2_00 -) - virtual void setNumDigits(int); -%End - - bool checkOverflow(int /Constrained/) const; - bool checkOverflow(double) const; - - Mode mode() const; -%If (- Qt_2_00) - void setMode(Mode); -%End -%If (Qt_2_00 -) - virtual void setMode(Mode); -%End - - SegmentStyle segmentStyle() const; -%If (- Qt_2_00) - void setSegmentStyle(SegmentStyle); -%End -%If (Qt_2_00 -) - virtual void setSegmentStyle(SegmentStyle); -%End - - double value() const; - int intValue() const; - - QSize sizeHint() const; -%If (Qt_2_00 - Qt_3_0_0) - QSizePolicy sizePolicy() const; -%End - -public slots: -%If (- Qt_2_00) - void display(const char *); -%End -%If (Qt_2_00 -) - void display(const QString &); -%End - void display(int /Constrained/); - void display(double); -%If (- Qt_2_00) - void setHexMode(); - void setDecMode(); - void setOctMode(); - void setBinMode(); - void setSmallDecimalPoint(bool); -%End -%If (Qt_2_00 -) - virtual void setHexMode(); - virtual void setDecMode(); - virtual void setOctMode(); - virtual void setBinMode(); - virtual void setSmallDecimalPoint(bool); -%End - -signals: - void overflow(); - -protected: -%If (- Qt_2_00) - void resizeEvent(QResizeEvent *); -%End - void drawContents(QPainter *); - -private: - QLCDNumber(const QLCDNumber &); -}; diff --git a/python/pyqt/sip/qt/qlibrary.sip b/python/pyqt/sip/qt/qlibrary.sip deleted file mode 100644 index 9bbe77c0..00000000 --- a/python/pyqt/sip/qt/qlibrary.sip +++ /dev/null @@ -1,59 +0,0 @@ -// This is the SIP interface definition for QLibrary. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QLibrary (Qt v3+) - -QLibrary is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QLibrary -{ -%TypeHeaderCode -#include -%End - -public: - QLibrary(const QString &); - - void *resolve(const char *); - static void *resolve(const QString &,const char *); - - bool load(); - virtual bool unload(); - bool isLoaded() const; - - bool autoUnload() const; - void setAutoUnload(bool); - - QString library() const; - -private: - QLibrary(const QLibrary &); -}; - -%End diff --git a/python/pyqt/sip/qt/qlineedit.sip b/python/pyqt/sip/qt/qlineedit.sip deleted file mode 100644 index 626f8e49..00000000 --- a/python/pyqt/sip/qt/qlineedit.sip +++ /dev/null @@ -1,427 +0,0 @@ -// This is the SIP interface definition for QLineEdit. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QLineEdit - - int characterAt - int xpos - QChar *chr - - -This takes only the xpos parameter and returns the int -result and the chr value as a tuple. (Qt v3+) - - - - void del - - - -This has been renamed delChar in Python. (Qt v2+) - - - - bool getSelection - int *start - int *end - - -This takes no parameters and returns the bool result and the -start and end values as a tuple. -(Qt v3+) - - -%End - - -%If (Qt_3_0_0 -) - -class QLineEdit : QFrame -{ -%TypeHeaderCode -#include -%End - -public: - QLineEdit(QWidget * /TransferThis/,const char * = 0); - QLineEdit(const QString &,QWidget * /TransferThis/,const char * = 0); -%If (Qt_3_2_0 -) - QLineEdit(const QString &,const QString &,QWidget * /TransferThis/, - const char * = 0); -%End - - QString text() const; - - QString displayText() const; - - int maxLength() const; - - bool frame() const; - - enum EchoMode { - Normal, - NoEcho, - Password - }; - - EchoMode echoMode() const; - - bool isReadOnly() const; - - const QValidator *validator() const; - - QSize sizeHint() const; - QSize minimumSizeHint() const; - - int cursorPosition() const; - // Obsolete. - bool validateAndSet(const QString &,int,int,int); - - int alignment() const; - - void cursorForward(bool,int = 1); - void cursorBackward(bool,int = 1); - void cursorWordForward(bool); - void cursorWordBackward(bool); - void backspace(); - void del() /PyName=delChar/; - void home(bool); - void end(bool); - -%If (Qt_3_2_0 -) - bool isModified() const; - void clearModified(); -%End - - // Obsolete. - bool edited() const; - // Obsolete. - void setEdited(bool); - - bool hasSelectedText() const; - QString selectedText() const; -%If (Qt_3_2_0 -) - int selectionStart() const; -%End - - bool isUndoAvailable() const; - bool isRedoAvailable() const; - - bool dragEnabled() const; - -%If (Qt_3_2_0 -) - QString inputMask() const; - void setInputMask(const QString &); - bool hasAcceptableInput() const; -%End - -public slots: - virtual void setText(const QString &); - virtual void selectAll(); - virtual void deselect(); - virtual void clearValidator(); - virtual void insert(const QString &); - virtual void clear(); - virtual void undo(); - virtual void redo(); - virtual void setMaxLength(int); - virtual void setFrame(bool); - virtual void setEchoMode(EchoMode); - virtual void setReadOnly(bool); - virtual void setValidator(const QValidator *); - virtual void setFont(const QFont &); - virtual void setPalette(const QPalette &); - virtual void setSelection(int,int); - virtual void setCursorPosition(int); - virtual void setAlignment(int); -%If (Qt_CLIPBOARD) - virtual void cut(); - virtual void copy() const; - virtual void paste(); -%End - virtual void setDragEnabled(bool); - -signals: - void textChanged(const QString &); - void returnPressed(); -%If (Qt_3_1_0 -) - void lostFocus(); -%End - void selectionChanged(); - -protected: - bool event(QEvent *); - void mousePressEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseDoubleClickEvent(QMouseEvent *); - void keyPressEvent(QKeyEvent *); - void imStartEvent(QIMEvent *); - void imComposeEvent(QIMEvent *); - void imEndEvent(QIMEvent *); - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); - void resizeEvent(QResizeEvent *); - void drawContents(QPainter *); -%If (Qt_DRAGANDDROP) - void dragEnterEvent(QDragEnterEvent *); - void dragMoveEvent(QDragMoveEvent *); - void dragLeaveEvent(QDragLeaveEvent *); - void dropEvent(QDropEvent *); -%End - void contextMenuEvent(QContextMenuEvent *); - virtual QPopupMenu *createPopupMenu() /Factory/; - void windowActivationChange(bool); - -public: - // These appeared in v3.0.2 but defined as incompatible 3.0 addons, - // until v3.1.0. v3.2.0 then defined them as internal and obsolete. -%If (Qt_3_1_0 -) - void setPasswordChar(QChar); - QChar passwordChar() const; -%End - - // Obsolete. - SIP_PYTUPLE characterAt(int) const; -%MethodCode - int res; - QChar *chr; - - Py_BEGIN_ALLOW_THREADS - chr = new QChar(); - res = sipCpp -> characterAt(a0,chr); - Py_END_ALLOW_THREADS - - sipRes = sipBuildResult(&sipIsErr,"(iB)",res,chr,sipClass_QChar,NULL); -%End - - // Obsolete. - bool getSelection(int *,int *); - -private: - QLineEdit(const QLineEdit &); -}; - -%End - - -%If (- Qt_3_0_0) - -class QLineEdit : QWidget -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QLineEdit(QWidget * /TransferThis/ = 0,const char * = 0); -%End -%If (Qt_2_00 -) - QLineEdit(QWidget * /TransferThis/,const char * = 0); - QLineEdit(const QString &,QWidget * /TransferThis/,const char * = 0); -%End - -%If (- Qt_2_00) - const char *text() const; -%End -%If (Qt_2_00 -) - QString text() const; - - QString displayText() const; -%End - -%If (- Qt_2_00) - void setMaxLength(int); -%End -%If (Qt_2_00 -) - virtual void setMaxLength(int); -%End - int maxLength() const; - -%If (- Qt_2_00) - void setFrame(bool); -%End -%If (Qt_2_00 -) - virtual void setFrame(bool); -%End - bool frame() const; - - enum EchoMode { - Normal, - NoEcho, - Password - }; - -%If (- Qt_2_00) - void setEchoMode(EchoMode); -%End -%If (Qt_2_00 -) - virtual void setEchoMode(EchoMode); -%End - EchoMode echoMode() const; - -%If (Qt_2_1_0 -) - void setReadOnly(bool); -%End -%If (Qt_2_1_0 -) - bool isReadOnly() const; -%End - -%If (- Qt_2_00) - void setValidator(QValidator *); - QValidator *validator() const; -%End -%If (Qt_2_00 -) - virtual void setValidator(QValidator *); -%End -%If (Qt_2_00 -) - const QValidator *validator() const; -%End - - QSize sizeHint() const; -%If (Qt_2_00 -) - QSize minimumSizeHint() const; -%End -%If (Qt_2_00 -) - QSizePolicy sizePolicy() const; -%End - -%If (- Qt_2_00) - void setCursorPosition(int); -%End -%If (Qt_2_00 -) - virtual void setCursorPosition(int); -%End - int cursorPosition() const; -%If (- Qt_2_00) - bool validateAndSet(const char *,int,int,int); -%End -%If (Qt_2_00 -) - bool validateAndSet(const QString &,int,int,int); -%End - -%If (Qt_2_00 -) - int alignment() const; -%End - -%If (Qt_2_00 -) - void cursorLeft(bool,int = 1); - void cursorRight(bool,int = 1); - void cursorWordForward(bool); - void cursorWordBackward(bool); - void backspace(); - void del() /PyName=delChar/; - void home(bool); - void end(bool); - - void setEdited(bool); - bool edited() const; -%End - -%If (Qt_2_00 -) - bool hasMarkedText() const; - QString markedText() const; -%End - -%If (Qt_CLIPBOARD) - void cut(); - void copy() const; - void paste(); -%End - -%If (- Qt_2_00) - void setEnabled(bool); - void setFont(const QFont &); - void setPalette(const QPalette &); - void setSelection(int,int); -%End -%If (Qt_2_00 -) - virtual void setEnabled(bool); - virtual void setFont(const QFont &); - virtual void setPalette(const QPalette &); - virtual void setSelection(int,int); - - void setAlignment(int); -%End - -public slots: -%If (- Qt_2_00) - void setText(const char *); -%End -%If (Qt_2_00 -) - virtual void setText(const QString &); -%End - void selectAll(); - void deselect(); - void clearValidator(); -%If (- Qt_2_00) - void insert(const char *); -%End -%If (Qt_2_00 -) - void insert(const QString &); -%End - void clear(); - -signals: -%If (- Qt_2_00) - void textChanged(const char *); -%End -%If (Qt_2_00 -) - void textChanged(const QString &); -%End - void returnPressed(); - -protected: -%If (Qt_2_2_0 -) - bool event(QEvent *); -%End - void mousePressEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseDoubleClickEvent(QMouseEvent *); - void keyPressEvent(QKeyEvent *); - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); - void paintEvent(QPaintEvent *); - void resizeEvent(QResizeEvent *); - void leaveEvent(QEvent *); - void repaintArea(int,int); -%If (- Qt_2_00) - void timerEvent(QTimerEvent *); - bool event(QEvent *); - bool hasMarkedText() const; - QString markedText() const; -%End -%If (Qt_2_00 -) -%If (Qt_DRAGANDDROP) - void dragEnterEvent(QDragEnterEvent *); - void dropEvent(QDropEvent *); -%End -%End - -private: - QLineEdit(const QLineEdit &); -}; - -%End diff --git a/python/pyqt/sip/qt/qlist.sip b/python/pyqt/sip/qt/qlist.sip deleted file mode 100644 index a9ae91c0..00000000 --- a/python/pyqt/sip/qt/qlist.sip +++ /dev/null @@ -1,111 +0,0 @@ -// This is the SIP interface definition for all types based on the QList -// template. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QList<type> (Qt v2) - -Types based on the QList template are automatically -converted to and from Python lists of the type. - - -%End - - -%If (Qt_2_1_0 - Qt_3_0_0) - -template -%MappedType QList -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - Type *tb; - int i; - PyObject *l; - - // Create the list. - - if ((l = PyList_New(sipCpp -> count())) == NULL) - return NULL; - - // Get it. - - i = 0; - - for (tb = sipCpp -> first(); tb != NULL; tb = sipCpp -> next()) - { - PyObject *tbobj; - - if ((tbobj = sipConvertFromInstance(tb,sipClass_Type,sipTransferObj)) == NULL || PyList_SetItem(l,i,tbobj) < 0) - { - Py_XDECREF(tbobj); - Py_DECREF(l); - - return NULL; - } - - ++i; - } - - return l; -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - { - if (!PyList_Check(sipPy)) - return 0; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_Type,0)) - return 0; - - return 1; - } - - QList *ql = new QList; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - { - // We apply the transfer to the list itself, not the elements. - // Note that any temporary element will never be destroyed. - // There is nothing that can be done about this. - ql -> append(reinterpret_cast(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_Type,0,0,0,sipIsErr))); - - if (*sipIsErr) - { - delete ql; - - return 0; - } - } - - *sipCppPtr = ql; - - return sipGetState(sipTransferObj); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qlistbox.sip b/python/pyqt/sip/qt/qlistbox.sip deleted file mode 100644 index 4986cc3a..00000000 --- a/python/pyqt/sip/qt/qlistbox.sip +++ /dev/null @@ -1,571 +0,0 @@ -// This is the SIP interface definition for QListBox, QListBoxItem, -// QListBoxPixmap and QListBoxText. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QListBox - - bool itemYPos - int index - int *yPos - - -This takes the index parameter and returns a tuple -containing the bool result and yPos. -(Qt v1.x) - - - -QListBoxItem - -QListBoxItem is fully implemented. - - - -QListBoxPixmap - -QListBoxPixmap is fully implemented. - - - -QListBoxText - -QListBoxText is fully implemented. - - -%End - - -%If (- Qt_2_00) - -%ModuleHeaderCode -#include -%End - -// List box item types. -const int LBI_Undefined; -const int LBI_Text; -const int LBI_Pixmap; -const int LBI_UserDefined; - - -class QListBox : QTableView -{ -%TypeHeaderCode -#include -%End - -public: - QListBox(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - - void setFont(const QFont &); - uint count() const; - void insertStrList(const QStrList *,int = -1); -// void insertStrList(const char **,int = -1,int = -1); - void insertItem(const QListBoxItem * /Transfer/,int = -1); - void insertItem(const char *,int = -1); - void insertItem(const QPixmap &,int = -1); - void inSort(const QListBoxItem *); - void inSort(const char *); - void removeItem(int); - void clear(); - const char *text(int) const; - const QPixmap *pixmap(int) const; - void changeItem(const QListBoxItem * /Transfer/,int); - void changeItem(const char *,int); - void changeItem(const QPixmap &,int); - bool autoUpdate() const; - void setAutoUpdate(bool); - int numItemsVisible() const; - void setFixedVisibleLines(int); - int currentItem() const; - void setCurrentItem(int); - void centerCurrentItem(); - int topItem() const; - void setTopItem(int); - void setBottomItem(int); - bool dragSelect() const; - void setDragSelect(bool); - bool autoScroll() const; - void setAutoScroll(bool); - bool autoScrollBar() const; - void setAutoScrollBar(bool); - bool scrollBar() const; - void setScrollBar(bool); - bool autoBottomScrollBar() const; - void setAutoBottomScrollBar(bool); - bool bottomScrollBar() const; - void setBottomScrollBar(bool); - bool smoothScrolling() const; - void setSmoothScrolling(bool); - int itemHeight() const; - int itemHeight(int) const; - long maxItemWidth() const; - bool isMultiSelection() const; - void setMultiSelection(bool); - void setSelected(int,bool); - bool isSelected(int) const; - QSize sizeHint() const; - -public slots: - void clearSelection(); - -signals: - void highlighted(int); - void selected(int); - void highlighted(const char *); - void selected(const char *); - void selectionChanged(); - -protected: - QListBoxItem *item(int) const; - bool itemVisible(int); - int cellHeight(int = 0); - void paintCell(QPainter *,int,int); - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseDoubleClickEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - void keyPressEvent(QKeyEvent *); - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); - void resizeEvent(QResizeEvent *); - void timerEvent(QTimerEvent *); - int findItem(int) const; - bool itemYPos(int,int *) const; - void updateItem(int,bool = 1); - void clearList(); - void updateCellWidth(); - void toggleCurrentItem(); - -private: - QListBox(const QListBox &); -}; - -%End - -%If (Qt_2_00 -) - -class QListBox : QScrollView -{ -%TypeHeaderCode -#include -%End - -public: - QListBox(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - - virtual void setFont(const QFont &); - - uint count() const; - - void insertStringList(const QStringList &,int = -1); - void insertStrList(const QStrList *,int = -1); -// void insertStrList(const QStrList &,int = -1); -// void insertStrList(const char **,int = -1,int = -1); - - void insertItem(const QListBoxItem * /Transfer/,int = -1); -%If (Qt_2_1_0 -) - void insertItem(const QListBoxItem * /Transfer/,const QListBoxItem *); -%End - void insertItem(const QString &,int = -1); - void insertItem(const QPixmap &,int = -1); -%If (Qt_2_1_0 -) - void insertItem(const QPixmap &,const QString &,int = -1); -%End - - void removeItem(int); - -%If (- Qt_3_0_0) - void clear(); -%End - - QString text(int) const; - const QPixmap *pixmap(int) const; - - void changeItem(const QListBoxItem * /Transfer/,int); - void changeItem(const QString &,int); - void changeItem(const QPixmap &,int); -%If (Qt_2_1_0 -) - void changeItem(const QPixmap &,const QString &,int); -%End - - void takeItem(const QListBoxItem * /TransferBack/); - - int numItemsVisible() const; - - int currentItem() const; -%If (Qt_2_1_0 -) - QString currentText() const; -%End - virtual void setCurrentItem(int); - virtual void setCurrentItem(QListBoxItem *); - void centerCurrentItem(); - int topItem() const; - virtual void setTopItem(int); - virtual void setBottomItem(int); - - long maxItemWidth() const; - -%If (- Qt_2_1_0) - enum SelectionMode { - Single, - Multi, - Extended - }; -%End -%If (Qt_2_1_0 -) - enum SelectionMode { - Single, - Multi, - Extended, - NoSelection - }; -%End - - virtual void setSelectionMode(SelectionMode); - SelectionMode selectionMode() const; - - void setMultiSelection(bool); - bool isMultiSelection() const; - - virtual void setSelected(QListBoxItem *,bool); - void setSelected(int,bool); - bool isSelected(int) const; - bool isSelected(QListBoxItem *) const; -%If (Qt_3_1_0 -) - QListBoxItem *selectedItem() const; -%End - - QSize sizeHint() const; - QSize minimumSizeHint() const; - - QListBoxItem *item(int) const; - int index(const QListBoxItem *) const; -%If (Qt_2_1_0 - Qt_3_0_0) - QListBoxItem *findItem(const QString &) const; -%End -%If (Qt_3_0_0 -) - QListBoxItem *findItem(const QString &, - ComparisonFlags = BeginsWith) const; -%End - - void triggerUpdate(bool); - - bool itemVisible(int); - bool itemVisible(const QListBoxItem *); - - enum LayoutMode { - FixedNumber, - FitToWidth, - FitToHeight = FitToWidth, - Variable - }; - - virtual void setColumnMode(LayoutMode); - virtual void setColumnMode(int); - virtual void setRowMode(LayoutMode); - virtual void setRowMode(int); - - LayoutMode columnMode() const; - LayoutMode rowMode() const; - - int numColumns() const; - int numRows() const; - - bool variableWidth() const; - virtual void setVariableWidth(bool); - - bool variableHeight() const; - virtual void setVariableHeight(bool); - - void viewportPaintEvent(QPaintEvent *); - - int itemHeight(int = 0) const; - QListBoxItem *itemAt(QPoint) const; - - QRect itemRect(QListBoxItem *) const; - -%If (Qt_2_1_0 -) - QListBoxItem *firstItem() const; - - void sort(bool = 1); -%End - -public slots: -%If (Qt_3_0_0 -) - void clear(); -%End - virtual void ensureCurrentVisible(); - virtual void clearSelection(); -%If (Qt_2_1_0 - Qt_3_0_0) - void selectAll(bool); - void invertSelection(); -%End -%If (Qt_3_0_0 -) - virtual void selectAll(bool); - virtual void invertSelection(); -%End - -signals: - void highlighted(int); - void selected(int); - void highlighted(const QString &); - void selected(const QString &); - void highlighted(QListBoxItem *); - void selected(QListBoxItem *); - - void selectionChanged(); -%If (Qt_2_1_0 -) - void selectionChanged(QListBoxItem *); - void currentChanged(QListBoxItem *); - void clicked(QListBoxItem *); - void clicked(QListBoxItem *,const QPoint &); - void pressed(QListBoxItem *); - void pressed(QListBoxItem *,const QPoint &); - - void doubleClicked(QListBoxItem *); - void returnPressed(QListBoxItem *); - void rightButtonClicked(QListBoxItem *,const QPoint &); - void rightButtonPressed(QListBoxItem *,const QPoint &); - void mouseButtonPressed(int,QListBoxItem *,const QPoint &); - void mouseButtonClicked(int,QListBoxItem *,const QPoint &); -%End - -%If (Qt_3_0_0 -) - void contextMenuRequested(QListBoxItem *,const QPoint &); -%End - -%If (Qt_2_1_0 -) - void onItem(QListBoxItem *); - void onViewport(); -%End - -protected: -%If (- Qt_3_0_0) - void viewportMousePressEvent(QMouseEvent *); - void viewportMouseReleaseEvent(QMouseEvent *); - void viewportMouseDoubleClickEvent(QMouseEvent *); - void viewportMouseMoveEvent(QMouseEvent *); -%End - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseDoubleClickEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); -%If (Qt_3_0_0 -) - void contentsContextMenuEvent(QContextMenuEvent *); -%End - - void keyPressEvent(QKeyEvent *); - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); - void resizeEvent(QResizeEvent *); - void showEvent(QShowEvent *); - -%If (Qt_3_0_0 -) - bool eventFilter(QObject *,QEvent *); -%End - - void updateItem(int); - void updateItem(QListBoxItem *); - - virtual void paintCell(QPainter *,int,int); - - void toggleCurrentItem(); -%If (Qt_2_2_0 -) - bool isRubberSelecting() const; -%End - - void doLayout() const; - -%If (Qt_3_0_0 -) - void windowActivationChange(bool); -%End - -protected slots: -%If (Qt_2_1_0 -) - void clearInputString(); -%End - -private: - QListBox(const QListBox &); -}; - -%End - - -class QListBoxItem -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QListBoxItem(); -%End -%If (Qt_2_00 -) - QListBoxItem(QListBox * /TransferThis/ = 0); -%End -%If (Qt_2_1_0 -) - QListBoxItem(QListBox * /TransferThis/,QListBoxItem *); -%End - -%If (- Qt_2_00) - virtual const char *text() const; -%End -%If (Qt_2_00 -) - virtual QString text() const; -%End - virtual const QPixmap *pixmap() const; - -%If (- Qt_2_00) - virtual int height(const QListBox *) const = 0; - virtual int width(const QListBox *) const = 0; -%End -%If (Qt_2_00 -) - virtual int height(const QListBox *) const; - virtual int width(const QListBox *) const; -%End - -%If (Qt_2_00 - Qt_3_0_0) - bool selected() const; -%End -%If (Qt_2_1_0 - Qt_3_0_0) - bool current() const; -%End -%If (Qt_3_0_0 -) - bool isSelected() const; - bool isCurrent() const; -%End - -%If (Qt_2_00 -) - QListBox *listBox() const; -%End - -%If (Qt_2_1_0 -) - void setSelectable(bool); - bool isSelectable() const; - - QListBoxItem *next() const; - QListBoxItem *prev() const; -%End - -%If (Qt_3_0_0 -) - virtual int rtti() const; -%End - -protected: - virtual void paint(QPainter *) = 0; -%If (- Qt_2_00) - void setText(const char *); -%End -%If (Qt_2_00 -) - virtual void setText(const QString &); -%End -%If (Qt_2_1_0 -) - void setCustomHighlighting(bool); -%End - -private: - QListBoxItem(const QListBoxItem &); -}; - -class QListBoxText : QListBoxItem -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QListBoxText(const char * = 0); -%End -%If (Qt_2_00 -) - QListBoxText(QListBox * /TransferThis/, - const QString & = QString::null); - QListBoxText(const QString & = QString::null); -%End -%If (Qt_2_1_0 -) - QListBoxText(QListBox * /TransferThis/,const QString &,QListBoxItem *); -%End - -%If (- Qt_2_00) - void paint(QPainter *); -%End - int height(const QListBox *) const; - int width(const QListBox *) const; - -%If (Qt_3_0_0 -) - int rtti() const; -%End - -protected: -%If (Qt_2_00 -) - void paint(QPainter *); -%End - -private: - QListBoxText(const QListBoxText &); -}; - -class QListBoxPixmap : QListBoxItem -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_2_00 -) - QListBoxPixmap(QListBox * /TransferThis/,const QPixmap &); -%End - QListBoxPixmap(const QPixmap &); -%If (Qt_2_1_0 -) - QListBoxPixmap(QListBox * /TransferThis/,const QPixmap &, - QListBoxItem *); - QListBoxPixmap(QListBox * /TransferThis/,const QPixmap &, - const QString &); - QListBoxPixmap(const QPixmap &,const QString &); - QListBoxPixmap(QListBox * /TransferThis/,const QPixmap &, - const QString &,QListBoxItem *); -%End - - const QPixmap *pixmap() const; -%If (Qt_2_00 -) - int height(const QListBox *) const; - int width(const QListBox *) const; -%End - -%If (Qt_3_0_0 -) - int rtti() const; -%End - -protected: - void paint(QPainter *); -%If (- Qt_2_00) - int height(const QListBox *) const; - int width(const QListBox *) const; -%End - -private: - QListBoxPixmap(const QListBoxPixmap &); -}; diff --git a/python/pyqt/sip/qt/qlistview.sip b/python/pyqt/sip/qt/qlistview.sip deleted file mode 100644 index e2b8f18d..00000000 --- a/python/pyqt/sip/qt/qlistview.sip +++ /dev/null @@ -1,770 +0,0 @@ -// This is the SIP interface definition for QListView, QListViewItem, -// QCheckListItem and QListViewItemIterator. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QListView - -QListView is fully implemented. - - -Note that to remove a child QListViewItem you must first -call takeItem() and then del(). - - - -QListViewItem - -QListViewItem is fully implemented. - - -Note that to remove a child QListViewItem you must first -call takeItem() and then del(). - - - -QCheckListItem - -QCheckListItem is fully implemented. - - - -QListViewItemIterator (Qt v2+) - -QListViewItemIterator is fully implemented. - - -%End - - -%If (- Qt_2_00) - -class QListViewItem -{ -%TypeHeaderCode -#include -%End - -public: - QListViewItem(QListView * /TransferThis/); - QListViewItem(QListViewItem * /TransferThis/); - QListViewItem(QListView * /TransferThis/,QListViewItem *); - QListViewItem(QListViewItem * /TransferThis/,QListViewItem *); - - QListViewItem(QListView * /TransferThis/, - const char *,const char * = 0, - const char * = 0,const char * = 0, - const char * = 0,const char * = 0, - const char * = 0,const char * = 0); - - QListViewItem(QListViewItem * /TransferThis/, - const char *,const char * = 0, - const char * = 0,const char * = 0, - const char * = 0,const char * = 0, - const char * = 0,const char * = 0); - - QListViewItem(QListView * /TransferThis/,QListViewItem *, - const char *,const char * = 0, - const char * = 0,const char * = 0, - const char * = 0,const char * = 0, - const char * = 0,const char * = 0); - - QListViewItem(QListViewItem * /TransferThis/,QListViewItem *, - const char *,const char * = 0, - const char * = 0,const char * = 0, - const char * = 0,const char * = 0, - const char * = 0,const char * = 0); - - virtual void insertItem(QListViewItem * /Transfer/); - virtual void removeItem(QListViewItem * /TransferBack/); - int height() const; - virtual void invalidateHeight(); - int totalHeight() const; - virtual int width(const QFontMetrics &,const QListView *,int) const; - void widthChanged(int = -1) const; - int depth() const; - virtual void setText(int,const char *); - virtual const char *text(int) const; - virtual void setPixmap(int,const QPixmap &); - virtual const QPixmap *pixmap(int) const; - virtual const char *key(int,bool) const; - virtual void sortChildItems(int,bool); - int childCount() const; - bool isOpen() const; - virtual void setOpen(bool); - virtual void setup(); - virtual void setSelected(bool); - bool isSelected() const; - virtual void paintCell(QPainter *,const QColorGroup &,int,int,int); - virtual void paintBranches(QPainter *,const QColorGroup &,int,int,int, - GUIStyle); - virtual void paintFocus(QPainter *,const QColorGroup &,const QRect &); - QListViewItem *firstChild() const; - QListViewItem *nextSibling() const; - QListViewItem *parent() const; - QListViewItem *itemAbove(); - QListViewItem *itemBelow(); - int itemPos() const; - QListView *listView() const; - virtual void setSelectable(bool); - bool isSelectable() const; - virtual void setExpandable(bool); - bool isExpandable(); - void repaint() const; - -protected: - virtual void enforceSortOrder() const; - virtual void setHeight(int); - virtual void activate(); -}; - -%End - -%If (Qt_2_00 -) - -class QListViewItem : Qt -{ -%TypeHeaderCode -#include -%End - -public: - QListViewItem(QListView * /TransferThis/); - QListViewItem(QListViewItem * /TransferThis/); - QListViewItem(QListView * /TransferThis/,QListViewItem *); - QListViewItem(QListViewItem * /TransferThis/,QListViewItem *); - - QListViewItem(QListView * /TransferThis/, - QString,QString = QString::null, - QString = QString::null,QString = QString::null, - QString = QString::null,QString = QString::null, - QString = QString::null,QString = QString::null); - - QListViewItem(QListViewItem * /TransferThis/, - QString,QString = QString::null, - QString = QString::null,QString = QString::null, - QString = QString::null,QString = QString::null, - QString = QString::null,QString = QString::null); - - QListViewItem(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); - - QListViewItem(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); - - virtual void insertItem(QListViewItem * /Transfer/); - virtual void takeItem(QListViewItem * /TransferBack/); - - int height() const; - virtual void invalidateHeight(); - int totalHeight() const; - virtual int width(const QFontMetrics &,const QListView *,int) const; - void widthChanged(int = -1) const; - int depth() const; - - virtual void setText(int,const QString &); - virtual QString text(int) const; - - virtual void setPixmap(int,const QPixmap &); - virtual const QPixmap *pixmap(int) const; - - virtual QString key(int,bool) const; -%If (Qt_3_0_0 -) - virtual int compare(QListViewItem *,int,bool) const; -%End - virtual void sortChildItems(int,bool); - - int childCount() const; - - bool isOpen() const; - virtual void setOpen(bool); - virtual void setup(); - - virtual void setSelected(bool); - bool isSelected() const; - - virtual void paintCell(QPainter *,const QColorGroup &,int,int,int); -%If (- Qt_3_0_0) - virtual void paintBranches(QPainter *,const QColorGroup &,int,int,int, - GUIStyle); -%End -%If (Qt_3_0_0 -) - virtual void paintBranches(QPainter *,const QColorGroup &,int,int,int); -%End - virtual void paintFocus(QPainter *,const QColorGroup &,const QRect &); - - QListViewItem *firstChild() const; - QListViewItem *nextSibling() const; - QListViewItem *parent() const; - - QListViewItem *itemAbove(); - QListViewItem *itemBelow(); - - int itemPos() const; - - QListView *listView() const; - - virtual void setSelectable(bool); - bool isSelectable() const; - - virtual void setExpandable(bool); - bool isExpandable(); - - void repaint() const; - -%If (Qt_2_1_0 - Qt_3_0_0) - void sort(); -%End -%If (Qt_3_0_0 -) - virtual void sort(); -%End -%If (Qt_2_2_0 -) - void moveItem(QListViewItem *); -%End - -%If (Qt_3_0_0 -) - virtual void setDragEnabled(bool); - virtual void setDropEnabled(bool); - bool dragEnabled() const; - bool dropEnabled() const; - virtual bool acceptDrop(const QMimeSource *) const; - - void setVisible(bool); - bool isVisible() const; - - virtual void setRenameEnabled(int,bool); - bool renameEnabled(int) const; - virtual void startRename(int); - - virtual void setEnabled(bool); - bool isEnabled() const; - - virtual int rtti() const; - - virtual void setMultiLinesEnabled(bool); - bool multiLinesEnabled() const; -%End - -protected: - virtual void enforceSortOrder() const; - virtual void setHeight(int); - virtual void activate(); - -%If (Qt_2_1_0 -) - bool activatedPos(QPoint &); -%End -%If (Qt_3_0_0 -) - virtual void dropped(QDropEvent *); - virtual void dragEntered(); - virtual void dragLeft(); - virtual void okRename(int); - virtual void cancelRename(int); - - void ignoreDoubleClick(); -%End -}; - -%End - - -class QListView : QScrollView -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_2_2_0 - Qt_3_0_0) - QListView(QWidget * /TransferThis/,const char *,WFlags); -%End -%If (- Qt_3_0_0) - QListView(QWidget * /TransferThis/ = 0,const char * = 0); -%End -%If (Qt_3_0_0 -) - QListView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); -%End - - int treeStepSize() const; - virtual void setTreeStepSize(int); - - virtual void insertItem(QListViewItem * /Transfer/); -%If (Qt_2_00 -) - virtual void takeItem(QListViewItem * /TransferBack/); -%End - -%If (- Qt_3_0_0) - virtual void clear(); -%End - QHeader *header() const; - -%If (- Qt_2_00) - virtual int addColumn(const char *,int = -1); - virtual void setColumnText(int,const char *); - const char *columnText(int) const; -%End -%If (Qt_2_00 -) - virtual int addColumn(const QString &,int = -1); - virtual int addColumn(const QIconSet &,const QString &,int = -1); -%If (Qt_2_1_0 -) - void removeColumn(int); -%End - virtual void setColumnText(int,const QString &); - virtual void setColumnText(int,const QIconSet &,const QString &); - QString columnText(int) const; -%End - virtual void setColumnWidth(int,int); - int columnWidth(int) const; - - enum WidthMode - { - Manual, - Maximum - }; - - virtual void setColumnWidthMode(int,WidthMode); - WidthMode columnWidthMode(int) const; -%If (Qt_2_1_0 -) - int columns() const; -%End - - virtual void setColumnAlignment(int,int); - int columnAlignment(int) const; - - void show(); - - QListViewItem *itemAt(const QPoint &) const; - QRect itemRect(const QListViewItem *) const; - int itemPos(const QListViewItem *); - - void ensureItemVisible(const QListViewItem *); - - void repaintItem(const QListViewItem *) const; - - virtual void setMultiSelection(bool); - bool isMultiSelection() const; - -%If (Qt_2_1_0 -) - enum SelectionMode { - Single, - Multi, - Extended, - NoSelection - }; - - void setSelectionMode(SelectionMode); - SelectionMode selectionMode() const; -%End - -%If (Qt_2_1_0 -) - virtual void clearSelection(); -%End - virtual void setSelected(QListViewItem *,bool); -%If (Qt_3_2_0 -) - void setSelectionAnchor(QListViewItem *); -%End - bool isSelected(QListViewItem *) const; -%If (Qt_2_1_0 -) - QListViewItem *selectedItem() const; -%End - virtual void setOpen(QListViewItem *,bool); - bool isOpen(QListViewItem *) const; - - virtual void setCurrentItem(QListViewItem *); - QListViewItem *currentItem() const; - - QListViewItem *firstChild() const; -%If (Qt_3_0_0 -) - QListViewItem *lastItem() const; -%End - - int childCount() const; - - virtual void setAllColumnsShowFocus(bool); - bool allColumnsShowFocus() const; - - virtual void setItemMargin(int); - int itemMargin() const; - - virtual void setRootIsDecorated(bool); - bool rootIsDecorated() const; - - virtual void setSorting(int,bool = 1); -%If (Qt_3_1_0 -) - int sortColumn() const; -%End -%If (Qt_3_2_0 -) - void setSortColumn(int); - SortOrder sortOrder() const; - void setSortOrder(SortOrder); -%End -%If (Qt_3_0_0 -) - virtual void sort(); -%End -%If (Qt_2_1_0 - Qt_3_0_0) - void sort(); -%End - -%If (- Qt_2_00) - void setStyle(GUIStyle); - void setFont(const QFont &); - void setPalette(const QPalette &); -%End -%If (Qt_2_00 -) - virtual void setFont(const QFont &); - virtual void setPalette(const QPalette &); -%End - - bool eventFilter(QObject *,QEvent *); - - QSize sizeHint() const; -%If (Qt_2_00 -) - QSize minimumSizeHint() const; -%End - -%If (Qt_2_1_0 -) - void setShowSortIndicator(bool); - bool showSortIndicator() const; -%End -%If (Qt_3_0_0 -) - virtual void setShowToolTips(bool); - bool showToolTips() const; - - enum ResizeMode { - NoColumn, - AllColumns, - LastColumn - }; - - virtual void setResizeMode(ResizeMode); - ResizeMode resizeMode() const; - - QListViewItem *findItem(const QString &,int, - ComparisonFlags = ExactMatch | CaseSensitive) const; - - enum RenameAction { - Accept, - Reject - }; - - virtual void setDefaultRenameAction(RenameAction); - RenameAction defaultRenameAction() const; - bool isRenaming() const; -%End - -%If (Qt_3_2_0 -) - void hideColumn(int); -%End - -public slots: -%If (Qt_3_0_0 -) - virtual void clear(); -%End -%If (Qt_2_1_0 -) - void invertSelection(); - void selectAll(bool); - void setContentsPos(int,int); -%End - void triggerUpdate(); -%If (Qt_3_2_0 -) - void adjustColumn(int); -%End - -signals: - void selectionChanged(); - void selectionChanged(QListViewItem *); - void currentChanged(QListViewItem *); -%If (Qt_2_1_0 -) - void clicked(QListViewItem *); - void clicked(QListViewItem *,const QPoint &,int); - void pressed(QListViewItem *); - void pressed(QListViewItem *,const QPoint &,int); -%End - - void doubleClicked(QListViewItem *); -%If (Qt_3_2_0 -) - void doubleClicked(QListViewItem *,const QPoint &,int); -%End - void returnPressed(QListViewItem *); -%If (Qt_3_0_0 -) - void spacePressed(QListViewItem *); -%End - void rightButtonClicked(QListViewItem *,const QPoint &,int); - void rightButtonPressed(QListViewItem *,const QPoint &,int); -%If (Qt_2_1_0 -) - void mouseButtonPressed(int,QListViewItem *,const QPoint &,int); - void mouseButtonClicked(int,QListViewItem *,const QPoint &,int); -%End - -%If (Qt_3_0_0 -) - void contextMenuRequested(QListViewItem *,const QPoint &,int); -%End - -%If (Qt_2_1_0 -) - void onItem(QListViewItem *); - void onViewport(); - - void expanded(QListViewItem *); - void collapsed(QListViewItem *); -%End -%If (Qt_3_0_0 -) - void dropped(QDropEvent *); - void itemRenamed(QListViewItem *,int,const QString &); - void itemRenamed(QListViewItem *,int); -%End - -protected: -%If (- Qt_2_00) - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - void mouseDoubleClickEvent(QMouseEvent *); -%End -%If (Qt_2_00 -) - void contentsMousePressEvent(QMouseEvent *); - void contentsMouseReleaseEvent(QMouseEvent *); - void contentsMouseMoveEvent(QMouseEvent *); - void contentsMouseDoubleClickEvent(QMouseEvent *); -%End -%If (Qt_3_0_0 -) - void contentsContextMenuEvent(QContextMenuEvent *); - void contentsDragEnterEvent(QDragEnterEvent *); - void contentsDragMoveEvent(QDragMoveEvent *); - void contentsDragLeaveEvent(QDragLeaveEvent *); - void contentsDropEvent(QDropEvent *); - virtual QDragObject *dragObject(); - virtual void startDrag(); -%End - - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); - - void keyPressEvent(QKeyEvent *); - - void resizeEvent(QResizeEvent *); -%If (Qt_3_0_0 -) - void viewportResizeEvent(QResizeEvent *); -%End - -%If (Qt_2_00 -) - void showEvent(QShowEvent *); -%End - - void drawContentsOffset(QPainter *,int,int,int,int,int,int); - - virtual void paintEmptyArea(QPainter *,const QRect &); -%If (Qt_2_00 -) - void styleChange(QStyle &); -%End -%If (- Qt_3_0_0) - void enabledChange(bool); -%End -%If (Qt_3_0_0 -) - void windowActivationChange(bool); -%End - -protected slots: - void updateContents(); -%If (Qt_2_00 -) - void doAutoScroll(); -%End - -private: -%If (Qt_2_1_0 -) - QListView(const QWidget &); -%End -}; - - -class QCheckListItem : QListViewItem -{ -%TypeHeaderCode -#include -%End - -public: - enum Type { - RadioButton, - CheckBox, - Controller, -%If (Qt_3_2_0 -) - RadioButtonController, - CheckBoxController, -%End - }; - -%If (Qt_3_2_0 -) - enum ToggleState { - Off, - NoChange, - On - }; -%End - -%If (Qt_3_2_0 -) - QCheckListItem(QCheckListItem * /TransferThis/,const QString &, - Type = RadioButtonController); - QCheckListItem(QCheckListItem * /TransferThis/,QListViewItem *, - const QString &,Type = RadioButtonController); - QCheckListItem(QListViewItem * /TransferThis/,const QString &, - Type = RadioButtonController); - QCheckListItem(QListViewItem * /TransferThis/,QListViewItem *, - const QString &,Type = RadioButtonController); - QCheckListItem(QListView * /TransferThis/,const QString &, - Type = RadioButtonController); - QCheckListItem(QListView * /TransferThis/,QListViewItem *, - const QString &,Type = RadioButtonController); -%End -%If (Qt_2_00 - Qt_3_2_0) - QCheckListItem(QCheckListItem * /TransferThis/,const QString &, - Type = Controller); -%If (Qt_3_1_0 -) - QCheckListItem(QCheckListItem * /TransferThis/,QListViewItem *, - const QString &,Type = Controller); -%End - QCheckListItem(QListViewItem * /TransferThis/,const QString &, - Type = Controller); -%If (Qt_3_1_0 -) - QCheckListItem(QListViewItem * /TransferThis/,QListViewItem *, - const QString &,Type = Controller); -%End - QCheckListItem(QListView * /TransferThis/,const QString &, - Type = Controller); -%If (Qt_3_1_0 -) - QCheckListItem(QListView * /TransferThis/,QListViewItem *, - const QString &,Type = Controller); -%End -%End -%If (Qt_2_00 -) - QCheckListItem(QListViewItem * /TransferThis/,const QString &, - const QPixmap &); - QCheckListItem(QListView * /TransferThis/,const QString &, - const QPixmap &); -%End -%If (- Qt_2_00) - QCheckListItem(QCheckListItem * /TransferThis/,const char *, - Type = Controller); - QCheckListItem(QListView * /TransferThis/,const char *, - Type = Controller); - QCheckListItem(QListViewItem * /TransferThis/,const char *, - const QPixmap &); - QCheckListItem(QListView * /TransferThis/,const char *, - const QPixmap &); -%End - - void paintCell(QPainter *,const QColorGroup &,int,int,int); -%If (Qt_2_00 -) - virtual void paintFocus(QPainter *,const QColorGroup &,const QRect &); -%End - int width(const QFontMetrics &,const QListView *,int) const; - void setup(); - -%If (- Qt_2_00) - void setOn(bool); -%End -%If (Qt_2_00 -) - virtual void setOn(bool); -%End - bool isOn() const; - Type type() const; -%If (- Qt_2_00) - const char *text() const; - const char *text(int) const; -%End -%If (Qt_2_00 -) - QString text() const; - QString text(int) const; -%End - -%If (Qt_3_2_0 -) - void setTristate(bool); - bool isTristate() const; - ToggleState state() const; - void setState(ToggleState); -%End - -%If (Qt_3_0_0 -) - int rtti() const; -%End - -protected: -%If (- Qt_3_0_0) - void paintBranches(QPainter *,const QColorGroup &,int,int,int,GUIStyle); -%End - void activate(); - void turnOffChild(); - virtual void stateChange(bool); -}; - - -%If (Qt_2_00 -) - -class QListViewItemIterator -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_2_0 -) - enum IteratorFlag { - Visible, - Invisible, - Selected, - Unselected, - Selectable, - NotSelectable, - DragEnabled, - DragDisabled, - DropEnabled, - DropDisabled, - Expandable, - NotExpandable, - Checked, - NotChecked - }; -%End - - QListViewItemIterator(); - QListViewItemIterator(QListViewItem *); -%If (Qt_3_2_0 -) - QListViewItemIterator(QListViewItem *,int); -%End - - QListViewItemIterator(const QListViewItemIterator &); - QListViewItemIterator(QListView *); -%If (Qt_3_2_0 -) - QListViewItemIterator(QListView *,int); -%End - - QListViewItemIterator &operator+=(int); - QListViewItemIterator &operator-=(int); - - QListViewItem *current() const; -}; - -%End diff --git a/python/pyqt/sip/qt/qlocale.sip b/python/pyqt/sip/qt/qlocale.sip deleted file mode 100644 index 8572002d..00000000 --- a/python/pyqt/sip/qt/qlocale.sip +++ /dev/null @@ -1,537 +0,0 @@ -// This is the SIP interface definition for QLocale. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QLocale (Qt v3.3+) - - short toShort - bool *ok = 0 - - -This returns a tuple of the short result and the -ok value. - - - - ushort toUShort - bool *ok = 0 - - -This returns a tuple of the ushort result and the -ok value. - - - - int toInt - bool *ok = 0 - - -This returns a tuple of the int result and the -ok value. - - - - uint toUInt - bool *ok = 0 - - -This returns a tuple of the uint result and the -ok value. - - - - Q_LONG toLong - bool *ok = 0 - - -This returns a tuple of the long result and the -ok value. - - - - Q_ULONG toULong - bool *ok = 0 - - -This returns a tuple of the ulong result and the -ok value. - - - - float toFloat - bool *ok = 0 - - -This returns a tuple of the float result and the -ok value. - - - - double toDouble - bool *ok = 0 - - -This returns a tuple of the double result and the -ok value. - - -%End - - -%If (Qt_3_3_0 -) - -class QLocale -{ -%TypeHeaderCode -#include -%End - -public: - enum Language { - C, - Abkhazian, - Afan, - Afar, - Afrikaans, - Albanian, - Amharic, - Arabic, - Armenian, - Assamese, - Aymara, - Azerbaijani, - Bashkir, - Basque, - Bengali, - Bhutani, - Bihari, - Bislama, - Breton, - Bulgarian, - Burmese, - Byelorussian, - Cambodian, - Catalan, - Chinese, - Corsican, - Croatian, - Czech, - Danish, - Dutch, - English, - Esperanto, - Estonian, - Faroese, - FijiLanguage, - Finnish, - French, - Frisian, - Gaelic, - Galician, - Georgian, - German, - Greek, - Greenlandic, - Guarani, - Gujarati, - Hausa, - Hebrew, - Hindi, - Hungarian, - Icelandic, - Indonesian, - Interlingua, - Interlingue, - Inuktitut, - Inupiak, - Irish, - Italian, - Japanese, - Javanese, - Kannada, - Kashmiri, - Kazakh, - Kinyarwanda, - Kirghiz, - Korean, - Kurdish, - Kurundi, - Laothian, - Latin, - Latvian, - Lingala, - Lithuanian, - Macedonian, - Malagasy, - Malay, - Malayalam, - Maltese, - Maori, - Marathi, - Moldavian, - Mongolian, - NauruLanguage, - Nepali, - Norwegian, - Occitan, - Oriya, - Pashto, - Persian, - Polish, - Portuguese, - Punjabi, - Quechua, - RhaetoRomance, - Romanian, - Russian, - Samoan, - Sangho, - Sanskrit, - Serbian, - SerboCroatian, - Sesotho, - Setswana, - Shona, - Sindhi, - Singhalese, - Siswati, - Slovak, - Slovenian, - Somali, - Spanish, - Sundanese, - Swahili, - Swedish, - Tagalog, - Tajik, - Tamil, - Tatar, - Telugu, - Thai, - Tibetan, - Tigrinya, - TongaLanguage, - Tsonga, - Turkish, - Turkmen, - Twi, - Uigur, - Ukrainian, - Urdu, - Uzbek, - Vietnamese, - Volapuk, - Welsh, - Wolof, - Xhosa, - Yiddish, - Yoruba, - Zhuang, - Zulu, - LastLanguage - }; - - enum Country { - AnyCountry, - Afghanistan, - Albania, - Algeria, - AmericanSamoa, - Andorra, - Angola, - Anguilla, - Antarctica, - AntiguaAndBarbuda, - Argentina, - Armenia, - Aruba, - Australia, - Austria, - Azerbaijan, - Bahamas, - Bahrain, - Bangladesh, - Barbados, - Belarus, - Belgium, - Belize, - Benin, - Bermuda, - Bhutan, - Bolivia, - BosniaAndHerzegowina, - Botswana, - BouvetIsland, - Brazil, - BritishIndianOceanTerritory, - BruneiDarussalam, - Bulgaria, - BurkinaFaso, - Burundi, - Cambodia, - Cameroon, - Canada, - CapeVerde, - CaymanIslands, - CentralAfricanRepublic, - Chad, - Chile, - China, - ChristmasIsland, - CocosIslands, - Colombia, - Comoros, - DemocraticRepublicOfCongo, - PeoplesRepublicOfCongo, - CookIslands, - CostaRica, - IvoryCoast, - Croatia, - Cuba, - Cyprus, - CzechRepublic, - Denmark, - Djibouti, - Dominica, - DominicanRepublic, - EastTimor, - Ecuador, - Egypt, - ElSalvador, - EquatorialGuinea, - Eritrea, - Estonia, - Ethiopia, - FalklandIslands, - FaroeIslands, - FijiCountry, - Finland, - France, - MetropolitanFrance, - FrenchGuiana, - FrenchPolynesia, - FrenchSouthernTerritories, - Gabon, - Gambia, - Georgia, - Germany, - Ghana, - Gibraltar, - Greece, - Greenland, - Grenada, - Guadeloupe, - Guam, - Guatemala, - Guinea, - GuineaBissau, - Guyana, - Haiti, - HeardAndMcDonaldIslands, - Honduras, - HongKong, - Hungary, - Iceland, - India, - Indonesia, - Iran, - Iraq, - Ireland, - Israel, - Italy, - Jamaica, - Japan, - Jordan, - Kazakhstan, - Kenya, - Kiribati, - DemocraticRepublicOfKorea, - RepublicOfKorea, - Kuwait, - Kyrgyzstan, - Lao, - Latvia, - Lebanon, - Lesotho, - Liberia, - LibyanArabJamahiriya, - Liechtenstein, - Lithuania, - Luxembourg, - Macau, - Macedonia, - Madagascar, - Malawi, - Malaysia, - Maldives, - Mali, - Malta, - MarshallIslands, - Martinique, - Mauritania, - Mauritius, - Mayotte, - Mexico, - Micronesia, - Moldova, - Monaco, - Mongolia, - Montserrat, - Morocco, - Mozambique, - Myanmar, - Namibia, - NauruCountry, - Nepal, - Netherlands, - NetherlandsAntilles, - NewCaledonia, - NewZealand, - Nicaragua, - Niger, - Nigeria, - Niue, - NorfolkIsland, - NorthernMarianaIslands, - Norway, - Oman, - Pakistan, - Palau, - PalestinianTerritory, - Panama, - PapuaNewGuinea, - Paraguay, - Peru, - Philippines, - Pitcairn, - Poland, - Portugal, - PuertoRico, - Qatar, - Reunion, - Romania, - RussianFederation, - Rwanda, - SaintKittsAndNevis, - StLucia, - StVincentAndTheGrenadines, - Samoa, - SanMarino, - SaoTomeAndPrincipe, - SaudiArabia, - Senegal, - Seychelles, - SierraLeone, - Singapore, - Slovakia, - Slovenia, - SolomonIslands, - Somalia, - SouthAfrica, - SouthGeorgiaAndTheSouthSandwichIslands, - Spain, - SriLanka, - StHelena, - StPierreAndMiquelon, - Sudan, - Suriname, - SvalbardAndJanMayenIslands, - Swaziland, - Sweden, - Switzerland, - SyrianArabRepublic, - Taiwan, - Tajikistan, - Tanzania, - Thailand, - Togo, - Tokelau, - TongaCountry, - TrinidadAndTobago, - Tunisia, - Turkey, - Turkmenistan, - TurksAndCaicosIslands, - Tuvalu, - Uganda, - Ukraine, - UnitedArabEmirates, - UnitedKingdom, - UnitedStates, - UnitedStatesMinorOutlyingIslands, - Uruguay, - Uzbekistan, - Vanuatu, - VaticanCityState, - Venezuela, - VietNam, - BritishVirginIslands, - USVirginIslands, - WallisAndFutunaIslands, - WesternSahara, - Yemen, - Yugoslavia, - Zambia, - Zimbabwe, - LastCountry - }; - - QLocale(); - QLocale(const QString &); - QLocale(Language,Country = AnyCountry); - QLocale(const QLocale &); - - Language language() const; - Country country() const; - QString name() const; - - short toShort(const QString &,bool * = 0) const; - ushort toUShort(const QString &,bool * = 0) const; - int toInt(const QString &,bool * = 0) const; - uint toUInt(const QString &,bool * = 0) const; - Q_LONG toLong(const QString &,bool * = 0) const; - Q_ULONG toULong(const QString &,bool * = 0) const; - //Q_LLONG toLongLong(const QString &,bool * = 0) const; - //Q_ULLONG toULongLong(const QString &,bool * = 0) const; - float toFloat(const QString &,bool * = 0) const; - double toDouble(const QString &,bool * = 0) const; - - //QString toString(short) const; - //QString toString(ushort) const; - QString toString(int /Constrained/) const; - //QString toString(uint) const; - //QString toString(Q_LONG) const; - //QString toString(Q_ULONG) const; - //QString toString(Q_LLONG) const; - //QString toString(Q_ULLONG) const; - //QString toString(float,char = 'g',int = 6) const; - QString toString(double,char = 'g',int = 6) const; - - static QString languageToString(Language); - static QString countryToString(Country); - static void setDefault(const QLocale &); - - static QLocale c(); - static QLocale system(); -}; - -%End diff --git a/python/pyqt/sip/qt/qmainwindow.sip b/python/pyqt/sip/qt/qmainwindow.sip deleted file mode 100644 index 4b4eaf88..00000000 --- a/python/pyqt/sip/qt/qmainwindow.sip +++ /dev/null @@ -1,289 +0,0 @@ -// This is the SIP interface definition for QMainWindow. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QMainWindow - - QTextStream &operator<< - QTextStream & - const QMainWindow & - - -This operator is fully implemented. (Qt v3+) - - - - QTextStream &operator>> - QTextStream & - QMainWindow & - - -This operator is fully implemented. (Qt v3+) - - - - bool getLocation - QToolBar *tb - ToolBarDock &dock - int &index - bool &nl - int &extraOffset - - -This takes only the tb parameter and returns a tuple of the -result, dock, index, -nl and extraOffset values. (Qt v2.1.0+) - - - - QList<QToolBar> toolBars - ToolBarDock dock - - -This returns a list of QToolBar instances. (Qt v2.1.0+) - - -%End - - -class QMainWindow : QWidget -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QMainWindow(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); -%End -%If (Qt_2_00 -) - QMainWindow(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = WType_TopLevel); -%End - - QMenuBar *menuBar() const; - QStatusBar *statusBar() const; - QToolTipGroup *toolTipGroup() const; - virtual void setCentralWidget(QWidget *); - QWidget *centralWidget() const; - -%If (- Qt_2_1_0) - enum ToolBarDock { - Unmanaged, - TornOff, - Top, - Bottom, - Right, - Left - }; -%End -%If (Qt_2_1_0 - Qt_3_0_0) - enum ToolBarDock { - Unmanaged, - TornOff, - Top, - Bottom, - Right, - Left, - Minimized - }; -%End - -%If (- Qt_2_00) - void setDockEnabled(ToolBarDock,bool); - void addToolBar(QToolBar *,const char *,ToolBarDock = Top,bool = 0); -%End -%If (Qt_2_00 - Qt_3_0_0) - virtual void setDockEnabled(ToolBarDock,bool); - void addToolBar(QToolBar *,ToolBarDock = Top,bool = 0); - void addToolBar(QToolBar *,const QString &,ToolBarDock = Top,bool = 0); - void moveToolBar(QToolBar *,ToolBarDock = Top); -%End -%If (Qt_2_1_0 - Qt_3_0_0) - void setDockEnabled(QToolBar *,ToolBarDock,bool); - bool isDockEnabled(QToolBar *,ToolBarDock) const; - void moveToolBar(QToolBar *,ToolBarDock,bool,int,int = -1); - bool toolBarsMovable() const; -%End -%If (Qt_3_0_0 -) - virtual void setDockEnabled(Dock,bool); -%End -%If (- Qt_3_0_0) - bool isDockEnabled(ToolBarDock) const; - void removeToolBar(QToolBar *); -%End -%If (Qt_3_0_0 -) - bool isDockEnabled(Dock) const; - bool isDockEnabled(QDockArea *) const; - virtual void setDockEnabled(QDockWindow *,Dock,bool); - bool isDockEnabled(QDockWindow *,Dock) const; - bool isDockEnabled(QDockWindow *,QDockArea *) const; - - virtual void addDockWindow(QDockWindow *,Dock = DockTop,bool = 0); - virtual void addDockWindow(QDockWindow *,const QString &, - Dock = DockTop,bool = 0); - virtual void moveDockWindow(QDockWindow *,Dock = DockTop); - virtual void moveDockWindow(QDockWindow *,Dock,bool,int,int = -1); - virtual void removeDockWindow(QDockWindow *); -%End - - void show(); -%If (Qt_3_1_0 -) - void hide(); -%End -%If (Qt_2_1_0 -) - QSize sizeHint() const; - QSize minimumSizeHint() const; -%End - - bool rightJustification() const; - bool usesBigPixmaps() const; -%If (Qt_2_1_0 -) - bool usesTextLabel() const; -%End -%If (Qt_3_0_0 -) - bool dockWindowsMovable() const; -%End -%If (Qt_2_1_0 -) - bool opaqueMoving() const; -%End - - bool eventFilter(QObject *,QEvent *); - -%If (Qt_3_0_0 -) - bool getLocation(QDockWindow *,Dock &,int &,bool &,int &) const; -%End -%If (Qt_2_1_0 - Qt_3_0_0) - bool getLocation(QToolBar *,ToolBarDock &,int &,bool &,int &) const; -%End - -%If (Qt_2_1_0 - Qt_3_0_0) - QList toolBars(ToolBarDock) const; -%End -%If (Qt_3_0_0 -) - QPtrList dockWindows(Dock) const; - QPtrList dockWindows() const; - void lineUpDockWindows(bool = 0); -%End - -%If (Qt_2_1_0 -) - void lineUpToolBars(bool = 0); - bool isDockMenuEnabled() const; -%End - -%If (Qt_3_0_0 -) - bool hasDockWindow(QDockWindow *); - QPtrList toolBars(Dock) const; - - // The following one is in Qt3 but not documented. - //virtual QDockArea *dockingArea(const QPoint &); - QDockArea *leftDock() const; - QDockArea *rightDock() const; - QDockArea *topDock() const; - QDockArea *bottomDock() const; - - virtual bool isCustomizable() const; - - bool appropriate(QDockWindow *) const; - - enum DockWindows { - OnlyToolBars, - NoToolBars, - AllDockWindows - }; - - QPopupMenu *createDockWindowMenu(DockWindows = AllDockWindows) const; -%End - -public slots: -%If (- Qt_2_00) - void setRightJustification(bool); - void setUsesBigPixmaps(bool); -%End -%If (Qt_2_00 -) - virtual void setRightJustification(bool); - virtual void setUsesBigPixmaps(bool); -%End -%If (Qt_2_1_0 - Qt_3_0_0) - void setUsesTextLabel(bool); - void setToolBarsMovable(bool); - void setOpaqueMoving(bool); - void setDockMenuEnabled(bool); -%End -%If (Qt_3_0_0 -) - virtual void setUsesTextLabel(bool); - virtual void setDockWindowsMovable(bool); - virtual void setOpaqueMoving(bool); - virtual void setDockMenuEnabled(bool); -%End -%If (Qt_2_00 - Qt_3_0_0) - void whatsThis(); -%End -%If (Qt_3_0_0 -) - virtual void whatsThis(); - virtual void setAppropriate(QDockWindow *,bool); - virtual void customize(); -%End - -signals: - void pixmapSizeChanged(bool); -%If (Qt_2_1_0 -) - void usesTextLabelChanged(bool); -%End -%If (Qt_2_1_0 - Qt_3_0_0) - void startMovingToolBar(QToolBar *); - void endMovingToolBar(QToolBar *); - void toolBarPositionChanged(QToolBar *); -%End -%If (Qt_3_0_0 -) - void dockWindowPositionChanged(QDockWindow *); -%End - -protected slots: -%If (- Qt_2_00) - void setUpLayout(); -%End -%If (Qt_2_00 -) - virtual void setUpLayout(); -%End -%If (Qt_3_0_0 -) - virtual bool showDockMenu(const QPoint &); - void menuAboutToShow(); -%End - -protected: - void paintEvent(QPaintEvent *); -%If (Qt_2_00 -) - void childEvent(QChildEvent *); -%End - bool event(QEvent *); -%If (Qt_2_00 - Qt_3_0_0) - void resizeEvent(QResizeEvent *); -%End -%If (Qt_2_00 -) - void styleChange(QStyle &); -%End - -private: -%If (Qt_2_00 -) - QMainWindow(const QMainWindow &); -%End -}; diff --git a/python/pyqt/sip/qt/qmemarray.sip b/python/pyqt/sip/qt/qmemarray.sip deleted file mode 100644 index 4d85c609..00000000 --- a/python/pyqt/sip/qt/qmemarray.sip +++ /dev/null @@ -1,92 +0,0 @@ -// This is the SIP interface definition for all types based on the QMemArray -// template. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QMemArray<type> (Qt v3+) - -Types based on the QMemArray template are automatically -converted to and from Python lists of the type. - - -%End - - -%If (Qt_3_0_0 -) - -%MappedType QMemArray -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - // Convert to a Python list of integers. - - PyObject *l; - - // Create the list. - if ((l = PyList_New(sipCpp -> size())) == NULL) - return NULL; - - // Get it. - for (uint i = 0; i < sipCpp -> size(); ++i) - if (PyList_SetItem(l,i,PyInt_FromLong((long)sipCpp -> at(i))) < 0) - { - Py_DECREF(l); - - return NULL; - } - - return l; -%End - -%ConvertToTypeCode - // Convert a Python list of integers to a QMemArray on the heap. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QMemArray *qma = new QMemArray(PyList_GET_SIZE(sipPy)); - - PyErr_Clear(); - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - { - (*qma)[i] = (int)PyInt_AsLong(PyList_GET_ITEM(sipPy,i)); - - if (PyErr_Occurred() != NULL) - { - delete qma; - *sipIsErr = 1; - - return 0; - } - } - - *sipCppPtr = qma; - - return sipGetState(sipTransferObj); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qmenubar.sip b/python/pyqt/sip/qt/qmenubar.sip deleted file mode 100644 index ec5fd330..00000000 --- a/python/pyqt/sip/qt/qmenubar.sip +++ /dev/null @@ -1,118 +0,0 @@ -// This is the SIP interface definition for QMenuBar. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QMenuBar - -QMenuBar is fully implemented. - - -%End - - -class QMenuBar : QFrame, QMenuData -{ -%TypeHeaderCode -#include -%End - -public: - QMenuBar(QWidget * /TransferThis/ = 0,const char * = 0); - - void updateItem(int); - - void show(); - void hide(); - - bool eventFilter(QObject *,QEvent *); - - int heightForWidth(int) const; - - enum Separator { - Never = 0, - InWindowsStyle = 1 - }; - - Separator separator() const; -%If (- Qt_2_00) - void setSeparator(Separator); -%End -%If (Qt_2_00 -) - virtual void setSeparator(Separator); -%End - -%If (Qt_2_1_0 -) - void setDefaultUp(bool); - bool isDefaultUp() const; -%End - -%If (Qt_2_00 -) - bool customWhatsThis() const; -%End - -%If (Qt_2_1_0 -) - QSize sizeHint() const; - QSize minimumSize() const; - QSize minimumSizeHint() const; -%End - -%If (Qt_2_2_0 -) - void activateItemAt(int); -%End - -signals: - void activated(int); - void highlighted(int); - -protected: - void drawContents(QPainter *); - void fontChange(const QFont &); - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - void keyPressEvent(QKeyEvent *); -%If (Qt_2_1_0 -) - void focusInEvent(QFocusEvent *); -%End -%If (Qt_2_00 -) - void focusOutEvent(QFocusEvent *); -%End - void resizeEvent(QResizeEvent *); - void leaveEvent(QEvent *); - void menuContentsChanged(); - void menuStateChanged(); -%If (Qt_2_00 -) - void styleChange(QStyle &); -%End -%If (Qt_3_0_0 -) - int itemAtPos(const QPoint &); - void hidePopups(); - QRect itemRect(int); -%End - -private: - void menuInsPopup(QPopupMenu *); - void menuDelPopup(QPopupMenu *); - void frameChanged(); - - QMenuBar(const QMenuBar &); -}; diff --git a/python/pyqt/sip/qt/qmenudata.sip b/python/pyqt/sip/qt/qmenudata.sip deleted file mode 100644 index 2c1d7ae7..00000000 --- a/python/pyqt/sip/qt/qmenudata.sip +++ /dev/null @@ -1,291 +0,0 @@ -// This is the SIP interface definition for QMenuData, QCustomMenuItem and -// QMenuItem. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QMenuData - - QMenuItem *findItem - int id - QMenuData **parent - - -Not implemented. - - - -QCustomMenuItem (Qt v2.1+) - -QCustomMenuItem is fully implemented. - - - -QMenuItem - -QMenuItem is an internal Qt class. - - -%End - - -%If (Qt_3_0_0 -) - -// Even though this is an internal class, uic for Qt v3.1.0 generates code that -// uses it. -class QMenuItem -{ -%TypeHeaderCode -#include -%End - -public: - QMenuItem(); - - void setText(const QString &); - -private: - QMenuItem(const QMenuItem &); -}; - -%End - - -%If (- Qt_3_0_0) - -class QMenuItem; - -%End - - -class QMenuData -{ -%TypeHeaderCode -#include -%End - -public: - QMenuData(); - - uint count(); - -%If (- Qt_2_00) - int insertItem(const char *,SIP_RXOBJ_CON,SIP_SLOT_CON(int),int = 0); - int insertItem(const QPixmap &,SIP_RXOBJ_CON,SIP_SLOT_CON(int),int = 0); - int insertItem(const QPixmap &,const char *,SIP_RXOBJ_CON, - SIP_SLOT_CON(int),int = 0); - int insertItem(const char *,SIP_RXOBJ_CON,SIP_SLOT_CON(int),int,int, - int = -1); - int insertItem(const QPixmap &,SIP_RXOBJ_CON,SIP_SLOT_CON(int),int,int, - int = -1); - int insertItem(const QPixmap&,const char *,SIP_RXOBJ_CON,SIP_SLOT_CON(int), - int,int,int = -1); -%End -%If (Qt_2_00 - Qt_3_0_0) - int insertItem(const QString &,SIP_RXOBJ_CON,SIP_SLOT_CON(int),int = 0, - int = -1,int = -1); - int insertItem(const QIconSet &,const QString &,SIP_RXOBJ_CON, - SIP_SLOT_CON(int),int = 0,int = -1,int = -1); - int insertItem(const QPixmap &,SIP_RXOBJ_CON,SIP_SLOT_CON(int),int = 0, - int = -1,int = -1); - int insertItem(const QIconSet &,const QPixmap &,SIP_RXOBJ_CON, - SIP_SLOT_CON(int),int = 0,int = -1,int = -1); -%End -%If (Qt_3_0_0 -) - int insertItem(const QString &,SIP_RXOBJ_CON,SIP_SLOT_CON(int), - const QKeySequence & = QKeySequence(0),int = -1, - int = -1); - int insertItem(const QIconSet &,const QString &,SIP_RXOBJ_CON, - SIP_SLOT_CON(int), - const QKeySequence & = QKeySequence(0),int = -1, - int = -1); - int insertItem(const QPixmap &,SIP_RXOBJ_CON,SIP_SLOT_CON(int), - const QKeySequence & = QKeySequence(0),int = -1, - int = -1); - int insertItem(const QIconSet &,const QPixmap &,SIP_RXOBJ_CON, - SIP_SLOT_CON(int), - const QKeySequence & = QKeySequence(0),int = -1, - int = -1); -%End - -%If (- Qt_2_00) - int insertItem(const char *,int = -1,int = -1); - int insertItem(const char *,QPopupMenu *,int = -1,int = -1); - int insertItem(const QPixmap &,const char *,int = -1,int = -1); - int insertItem(const QPixmap &,const char *,QPopupMenu *,int = -1, - int = -1); -%End -%If (Qt_2_00 -) - int insertItem(const QString &,int = -1,int = -1); - int insertItem(const QIconSet &,const QString &,int = -1,int = -1); - - int insertItem(const QString &,QPopupMenu *,int = -1,int = -1); - int insertItem(const QIconSet &,const QString &,QPopupMenu *,int = -1, - int = -1); -%End - - int insertItem(const QPixmap &,int = -1,int = -1); -%If (Qt_2_00 -) - int insertItem(const QIconSet &,const QPixmap &,int = -1,int = -1); -%End - int insertItem(const QPixmap &,QPopupMenu *,int = -1,int = -1); -%If (Qt_2_00 -) - int insertItem(const QIconSet &,const QPixmap &,QPopupMenu *,int = -1, - int = -1); -%End - -%If (Qt_2_1_0 -) - int insertItem(QWidget * /Transfer/,int = -1,int = -1); - int insertItem(const QIconSet &,QCustomMenuItem * /Transfer/,int = -1, - int = -1); - int insertItem(QCustomMenuItem * /Transfer/,int = -1,int = -1); -%End - -%If (Qt_2_1_0 -) - int insertSeparator(int = -1); -%End -%If (- Qt_2_1_0) - void insertSeparator(int = -1); -%End - - void removeItem(int); - void removeItemAt(int); - void clear(); - -%If (- Qt_3_0_0) - int accel(int) const; - void setAccel(int,int); -%End -%If (Qt_3_0_0 -) - QKeySequence accel(int) const; - void setAccel(const QKeySequence &,int); -%End - -%If (- Qt_2_00) - const char *text(int) const; -%End -%If (Qt_2_00 -) - QIconSet *iconSet(int) const; - QString text(int) const; -%End - QPixmap *pixmap(int) const; - -%If (Qt_2_00 -) - void setWhatsThis(int,const QString &); - QString whatsThis(int) const; -%End - -%If (- Qt_2_00) - void changeItem(const char *,int); - void changeItem(const QPixmap &,int); - void changeItem(const QPixmap &,const char *,int); -%End -%If (Qt_2_00 -) - void changeItem(int,const QString &); - void changeItem(int,const QPixmap &); - void changeItem(int,const QIconSet &,const QString &); - void changeItem(int,const QIconSet &,const QPixmap &); -%End - -%If (Qt_3_0_0 -) - bool isItemActive(int) const; -%End - - bool isItemEnabled(int) const; - void setItemEnabled(int,bool); - - bool isItemChecked(int) const; - void setItemChecked(int,bool); - -%If (Qt_3_1_0 -) - bool isItemVisible(int) const; - void setItemVisible(int,bool); -%End - - virtual void updateItem(int); - - int indexOf(int) const; - int idAt(int) const; -%If (- Qt_2_00) - void setId(int,int); -%End -%If (Qt_2_00 -) - virtual void setId(int,int); -%End - - bool connectItem(int,SIP_RXOBJ_CON,SIP_SLOT_CON(int)); - bool disconnectItem(int,SIP_RXOBJ_DIS,SIP_SLOT_DIS(int)); - -%If (Qt_2_1_0 -) - bool setItemParameter(int,int); - int itemParameter(int) const; -%End - - QMenuItem *findItem(int) const; -// QMenuItem *findItem(int,QMenuData **) const; -%If (Qt_3_0_0 -) -// Not documented in the Qt3 API (the similar findPopup() was internal in -// Qt2). -// QMenuItem *findItem(QPopupMenu *,int * = 0) const; -%End - -%If (Qt_2_2_0 - Qt_3_0_0) - void activateItemAt(int); -%End -%If (Qt_3_0_0 -) - virtual void activateItemAt(int); -%End - -protected: - virtual void menuContentsChanged(); - virtual void menuStateChanged(); - virtual void menuInsPopup(QPopupMenu *); - virtual void menuDelPopup(QPopupMenu *); -%If (- Qt_3_0_0) -// Documented as internal in the Qt2 API. -// QMenuItem *findPopup(QPopupMenu *,int * = 0); -%End - -private: - QMenuData(const QMenuData &); -}; - - -%If (Qt_2_1_0 -) - -class QCustomMenuItem : Qt -{ -%TypeHeaderCode -#include -%End - -public: - QCustomMenuItem(); - - virtual bool fullSpan() const; - virtual bool isSeparator() const; - virtual void setFont(const QFont &); - virtual void paint(QPainter *,const QColorGroup &,bool,bool,int,int, - int,int) = 0; - virtual QSize sizeHint() = 0; -}; - -%End diff --git a/python/pyqt/sip/qt/qmessagebox.sip b/python/pyqt/sip/qt/qmessagebox.sip deleted file mode 100644 index b116c370..00000000 --- a/python/pyqt/sip/qt/qmessagebox.sip +++ /dev/null @@ -1,204 +0,0 @@ -// This is the SIP interface definition for QMessageBox. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QMessageBox - -QMessageBox is fully implemented. - - -%End - - -%If (Qt_MESSAGEBOX) - -class QMessageBox : QDialog -{ -%TypeHeaderCode -#include -%End - -public: - enum Icon { - NoIcon, - Information, - Warning, - Critical, -%If (Qt_3_2_0 -) - Question, -%End - }; - - QMessageBox(QWidget * /TransferThis/ = 0,const char * = 0); -%If (- Qt_2_00) - QMessageBox(const char *,const char *,Icon,int,int,int, - QWidget * /TransferThis/ = 0,const char * = 0,bool = 1, - WFlags = 0); -%End -%If (Qt_2_00 -) - QMessageBox(const QString &,const QString &,Icon,int,int,int, - QWidget * /TransferThis/ = 0,const char * = 0,bool = 1, - WFlags = WStyle_DialogBorder); -%End - - enum { - Ok, - Cancel, - Yes, - No, - Abort, - Retry, - Ignore, -%If (Qt_3_2_0 -) - YesAll, - NoAll, -%End - ButtonMask, - Default, - Escape, - FlagMask - }; - -%If (- Qt_2_00) - static int information(QWidget *,const char *,const char *,int,int = 0, - int = 0) /ReleaseGIL/; - static int information(QWidget *,const char *,const char *, - const char * = "OK",const char * = 0, - const char * = 0,int = 0,int = -1) /ReleaseGIL/; - - static int warning(QWidget *,const char *,const char *,int,int, - int = 0) /ReleaseGIL/; - static int warning(QWidget *,const char *,const char *, - const char * = "OK",const char * = 0, - const char * = 0,int = 0,int = -1) /ReleaseGIL/; - - static int critical(QWidget *,const char *,const char *,int,int, - int = 0) /ReleaseGIL/; - static int critical(QWidget *,const char *,const char *, - const char * = "OK",const char * = 0, - const char * = 0,int = 0,int = -1) /ReleaseGIL/; - - static void about(QWidget *,const char *,const char *) /ReleaseGIL/; - static void aboutQt(QWidget *,const char * = 0) /ReleaseGIL/; - - const char *text() const; - void setText(const char *); -%End -%If (Qt_2_00 -) - static int information(QWidget *,const QString &,const QString &,int, - int = 0,int = 0) /ReleaseGIL/; - static int information(QWidget *,const QString &,const QString &, - const QString & = QString::null, - const QString & = QString::null, - const QString & = QString::null, - int = 0,int = -1) /ReleaseGIL/; - -%If (Qt_3_2_0 -) - static int question(QWidget *,const QString &,const QString &,int, - int = 0,int = 0) /ReleaseGIL/; - static int question(QWidget *,const QString &,const QString &, - const QString & = QString::null, - const QString & = QString::null, - const QString & = QString::null, - int = 0,int = -1) /ReleaseGIL/; -%End - - static int warning(QWidget *,const QString &,const QString &,int, - int = 0,int = 0) /ReleaseGIL/; - static int warning(QWidget *,const QString &,const QString &, - const QString & = QString::null, - const QString & = QString::null, - const QString & = QString::null,int = 0, - int = -1) /ReleaseGIL/; - - static int critical(QWidget *,const QString &,const QString &,int, - int = 0,int = 0) /ReleaseGIL/; - static int critical(QWidget *,const QString &,const QString &, - const QString & = QString::null, - const QString & = QString::null, - const QString & = QString::null,int = 0, - int = -1) /ReleaseGIL/; - - static void about(QWidget *,const QString &, - const QString &) /ReleaseGIL/; - static void aboutQt(QWidget *, - const QString & = QString::null) /ReleaseGIL/; - - QString text() const; - void setText(const QString &); -%End - - Icon icon() const; - - void setIcon(Icon); -%If (Qt_2_00 -) - void setIcon(const QPixmap &); -%End - - const QPixmap *iconPixmap() const; - void setIconPixmap(const QPixmap &); - -%If (- Qt_2_00) - const char *buttonText(int) const; - void setButtonText(int,const char *); -%End -%If (Qt_2_00 -) - QString buttonText(int) const; - void setButtonText(int,const QString &); -%End - - void adjustSize(); - -%If (- Qt_3_0_0) - static QPixmap standardIcon(Icon,GUIStyle); -%End -%If (Qt_3_0_0 -) - static QPixmap standardIcon(Icon); -%End - -%If (Qt_2_1_0 -) - TextFormat textFormat() const; - void setTextFormat(TextFormat); -%End - -%If (- Qt_2_00) - void setStyle(GUIStyle); -%End - -protected: - void resizeEvent(QResizeEvent *); -%If (Qt_3_0_0 -) - void showEvent(QShowEvent *); -%End -%If (Qt_3_2_0 -) - void closeEvent(QCloseEvent *); -%End - void keyPressEvent(QKeyEvent *); -%If (Qt_2_00 -) - void styleChanged(QStyle &); -%End - -private: - QMessageBox(const QMessageBox &); -}; - -%End diff --git a/python/pyqt/sip/qt/qmetaobject.sip b/python/pyqt/sip/qt/qmetaobject.sip deleted file mode 100644 index 73261acd..00000000 --- a/python/pyqt/sip/qt/qmetaobject.sip +++ /dev/null @@ -1,170 +0,0 @@ -// This is the SIP interface definition for QMetaObject and QMetaProperty. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QMetaObject - - int numClassInfo const - bool super = FALSE - - -Not implemented. - - - - const QClassInfo *classInfo const - bool super = FALSE - - -Not implemented. - - - -QMetaProperty - -QMetaProperty is fully implemented. - - -%End - - -class QMetaObject -{ -%TypeHeaderCode -#include -%End - -public: - const char *className() const; - const char *superClassName() const; - QMetaObject *superClass() const; - -%If (Qt_2_1_0 -) - bool inherits(const char *) const; - - int numSlots(bool = 0) const; - int numSignals(bool = 0) const; - - QStrList slotNames(bool = 0) const; - QStrList signalNames(bool = 0) const; - - //int numClassInfo(bool = 0) const; - //QClassInfo *classInfo(int,bool = 0) const; - const char *classInfo(const char *,bool = 0) const; - -%If (Qt_PROPERTIES) -%If (Qt_3_0_0 -) - const QMetaProperty *property(int,bool = 0) const; - int findProperty(const char *,bool = 0) const; - int numProperties(bool = 0) const; -%End -%If (- Qt_3_0_0) - const QMetaProperty *property(const char *,bool = 0) const; -%End - - QStrList propertyNames(bool = 0) const; -%End -%End - -private: - QMetaObject(const QMetaObject &); -}; - - -%If (Qt_PROPERTIES) -%If (Qt_2_1_0 -) - -class QMetaProperty -{ -%TypeHeaderCode -#include -%End - -public: - const char *type() const; - const char *name() const; - -%If (Qt_2_2_0 -) - bool writable() const; -%End -%If (- Qt_3_0_0) - bool writeable() const; -%End - bool isValid() const; - - bool isSetType() const; - bool isEnumType() const; - QStrList enumKeys() const; - - int keyToValue(const char *) const; - const char *valueToKey(int) const; - int keysToValue(const QStrList &) const; - QStrList valueToKeys(int) const; - -%If (Qt_3_1_0 -) - bool designable(QObject * = 0) const; - bool scriptable(QObject * = 0) const; - bool stored(QObject * = 0) const; -%End -%If (Qt_3_0_0 - Qt_3_1_0) - bool designable(QObject *) const; - bool scriptable(QObject *) const; - bool stored(QObject *) const; -%End - -%If (Qt_3_0_0 -) - bool reset(QObject *) const; -%End - -%If (- Qt_3_0_0) - bool stored(QObject *) const; - bool designable() const; - - enum Specification { - Unspecified, - Class, - Reference, - Pointer, - ConstCharStar - }; - - enum Flags { - UnresolvedEnum, - UnresolvedSet, - UnresolvedEnumOrSet, - UnresolvedStored, - UnresolvedDesignable, - NotDesignable, - NotStored, -%If (Qt_2_2_0 -) - StdSet, -%End - }; - - bool testFlags(uint) const; - void setFlags(uint); - void clearFlags(uint); -%End -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qmime.sip b/python/pyqt/sip/qt/qmime.sip deleted file mode 100644 index f3d3ac8b..00000000 --- a/python/pyqt/sip/qt/qmime.sip +++ /dev/null @@ -1,104 +0,0 @@ -// This is the SIP interface definition for the Qt v2+ QMimeSource, -// QMimeSourceFactory and QWindowsMime classes. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QMimeSource (Qt v2+) - -QMimeSource is fully implemented. - - - -QMimeSourceFactory (Qt v2+) - -QMimeSourceFactory is fully implemented. - - - -QWindowsMime (Qt v3+) - -QWindowsMime is fully implemented. - - -%End - - -%If (Qt_2_00 -) - -class QMimeSource -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_0_0 -) - QMimeSource(); -%End - - virtual const char *format(int = 0) const = 0; - virtual bool provides(const char *) const; - virtual QByteArray encodedData(const char *) const = 0; -%If (Qt_3_0_0 -) - int serialNumber() const; -%End -}; - - -class QMimeSourceFactory -{ -%TypeHeaderCode -#include -%End - -public: - QMimeSourceFactory(); - - static QMimeSourceFactory *defaultFactory(); - static void setDefaultFactory(QMimeSourceFactory * /Transfer/); -%If (Qt_3_0_0 -) - static QMimeSourceFactory *takeDefaultFactory() /TransferBack/; - static void addFactory(QMimeSourceFactory *); - static void removeFactory(QMimeSourceFactory *); -%End - - virtual const QMimeSource *data(const QString &) const; - virtual QString makeAbsolute(const QString &,const QString &) const; - const QMimeSource *data(const QString &,const QString &) const; - - virtual void setText(const QString &,const QString &); - virtual void setImage(const QString &,const QImage &); - virtual void setPixmap(const QString &,const QPixmap &); - virtual void setData(const QString &,QMimeSource * /Transfer/); - virtual void setFilePath(const QStringList &); -%If (Qt_2_1_0 -) - virtual QStringList filePath() const; - void addFilePath(const QString &); -%End - virtual void setExtensionType(const QString &,const char *); -}; - -%End - - -%If (Qt_3_0_0 -) -%End diff --git a/python/pyqt/sip/qt/qmotifplusstyle.sip b/python/pyqt/sip/qt/qmotifplusstyle.sip deleted file mode 100644 index 2171d883..00000000 --- a/python/pyqt/sip/qt/qmotifplusstyle.sip +++ /dev/null @@ -1,150 +0,0 @@ -// This is the SIP interface definition for QMotifPlusStyle. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QMotifPlusStyle (Qt v2.2+) - - void getButtonShift - int &x - int &y - - -This takes no parameters and returns a tuple of the x and -y values. (Qt v2) - - - - void scrollBarMetrics - const QScrollBar *sb - int &sliderMin - int &sliderMax - int &sliderLength - int &buttonDim - - -This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2) - - -%End - - -%If (Qt_STYLE_MOTIFPLUS) -%If (Qt_2_2_0 -) - -class QMotifPlusStyle : QMotifStyle -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_3_0_5) - QMotifPlusStyle(bool = 0); -%End -%If (Qt_3_0_5 -) - QMotifPlusStyle(bool = 1); -%End - - void polish(QPalette &); - void polish(QWidget *); - void unPolish(QWidget *); - - void polish(QApplication *); - void unPolish(QApplication *); - -%If (- Qt_3_0_0) - void polishPopupMenu(QPopupMenu *); - int defaultFrameWidth() const; - void drawArrow(QPainter *,ArrowType,bool,int,int,int,int, - const QColorGroup &,bool,const QBrush * = 0); - void drawMenuBarItem(QPainter *,int,int,int,int,QMenuItem *, - QColorGroup &,bool,bool); - void drawPopupMenuItem(QPainter *,bool,int,int,QMenuItem *, - const QPalette &,bool,bool,int,int,int,int); - void drawPushButton(QPushButton *,QPainter *); - void drawButton(QPainter *,int,int,int,int,const QColorGroup &,bool = 0, - const QBrush * = 0); - void drawBevelButton(QPainter *,int,int,int,int,const QColorGroup &, - bool = 0,const QBrush * = 0); - - void getButtonShift(int &,int &); - - 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); - void drawIndicator(QPainter *,int,int,int,int,const QColorGroup &,int, - bool = 0,bool = 1); - QSize indicatorSize() const; - void drawExclusiveIndicator(QPainter *,int,int,int,int, - const QColorGroup &,bool,bool = 0,bool = 1); - QSize exclusiveIndicatorSize() const; - void drawPanel(QPainter *,int,int,int,int,const QColorGroup &,bool = 0, - int = 1,const QBrush * = 0); - - void scrollBarMetrics(const QScrollBar *,int &,int &,int &,int &); - - void drawScrollBarControls(QPainter *,const QScrollBar *,int,uint,uint); - void drawTab(QPainter *,const QTabBar *,QTab *,bool); - void drawSlider(QPainter *,int,int,int,int,const QColorGroup &, - Orientation,bool,bool); - void drawSliderGroove(QPainter *,int,int,int,int,const QColorGroup &, - QCOORD,Orientation); -%End -%If (Qt_3_0_0 -) - void drawPrimitive(PrimitiveElement,QPainter *,const QRect &, - const QColorGroup &,SFlags = Style_Default, - const QStyleOption & = QStyleOption()) const; - - void drawControl(ControlElement,QPainter *,const QWidget *, - const QRect &,const QColorGroup &, - SFlags = Style_Default, - const QStyleOption & = QStyleOption()) const; - - QRect subRect(SubRect,const QWidget *) const; - - void drawComplexControl(ComplexControl,QPainter *,const QWidget *, - const QRect &,const QColorGroup &, - SFlags = Style_Default,SCFlags = SC_All, - SCFlags = SC_None, - const QStyleOption & = QStyleOption()) const; - - QRect querySubControlMetrics(ComplexControl,const QWidget *, - SubControl, - const QStyleOption & = QStyleOption()) const; - - int pixelMetric(PixelMetric,const QWidget * = 0) const; - - int styleHint(StyleHint,const QWidget *, - const QStyleOption & = QStyleOption(), - QStyleHintReturn * = 0) const; -%End - -protected: - bool eventFilter(QObject *,QEvent *); -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qmotifstyle.sip b/python/pyqt/sip/qt/qmotifstyle.sip deleted file mode 100644 index ef805033..00000000 --- a/python/pyqt/sip/qt/qmotifstyle.sip +++ /dev/null @@ -1,168 +0,0 @@ -// This is the SIP interface definition for QMotifStyle. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QMotifStyle (Qt v2+) - - void scrollBarMetrics - const QTabBar *sb - int &sliderMin - int &sliderMax - int &sliderLength - int &buttonDim - - -This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2) - - - - void tabbarMetrics - const QTabBar *t - int &hframe - int &vframe - int &overlap - - -This takes only the t parameter and returns a tuple of the -hframe, vframe and -overlap values. (Qt v2) - - -%End - - -%If (Qt_2_00 -) -%If (Qt_STYLE_MOTIF) - -class QMotifStyle : QCommonStyle -{ -%TypeHeaderCode -#include -%End - -public: - QMotifStyle(bool = 0); - - void setUseHighlightColors(bool); - bool useHighlightColors() const; - - void polish(QPalette &); - void polish(QWidget *); - void polish(QApplication *); - -%If (- Qt_3_0_0) - void drawButton(QPainter *,int,int,int,int,const QColorGroup &,bool = 0, - const QBrush * = 0); - void drawBevelButton(QPainter *,int,int,int,int,const QColorGroup &, - bool = 0,const QBrush * = 0); - void drawFocusRect(QPainter *,const QRect &,const QColorGroup &, - const QColor * =0,bool = 0); - -%If (Qt_2_1_0 -) - 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); -%End - - void drawPushButton(QPushButton *,QPainter *); - void drawArrow(QPainter *,ArrowType,bool,int,int,int,int, - const QColorGroup &,bool,const QBrush * = 0); - QSize indicatorSize() const; - void drawIndicator(QPainter *,int,int,int,int,const QColorGroup &,int, - bool = 0,bool = 1); - 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 tabbarMetrics(const QTabBar *,int &,int &,int &); - - void drawTab(QPainter *,const QTabBar *,QTab *,bool); - void drawTabMask(QPainter *,const QTabBar *,QTab *,bool); - - void scrollBarMetrics(const QScrollBar *,int &,int &,int &,int &); - - void drawScrollBarControls(QPainter *,const QScrollBar *,int,uint,uint); - int sliderLength() const; - void drawSlider(QPainter *,int,int,int,int,const QColorGroup &, - Orientation,bool,bool); - void drawSliderGroove(QPainter *,int,int,int,int,const QColorGroup &, - QCOORD,Orientation); - int splitterWidth() const; - void drawSplitter(QPainter *,int,int,int,int,const QColorGroup &, - Orientation); - void drawCheckMark(QPainter *,int,int,int,int,const QColorGroup &,bool, - bool); - void polishPopupMenu(QPopupMenu *); - int extraPopupMenuItemWidth(bool,int,QMenuItem *,const QFontMetrics &); - int popupMenuItemHeight(bool,QMenuItem *,const QFontMetrics &); - void drawPopupMenuItem(QPainter *,bool,int,int,QMenuItem *, - const QPalette &,bool,bool,int,int,int,int); -%End -%If (Qt_3_0_0 -) - void polishPopupMenu(QPopupMenu *); - - void drawPrimitive(PrimitiveElement,QPainter *,const QRect &, - const QColorGroup &,SFlags = Style_Default, - const QStyleOption & = QStyleOption()) const; - - void drawControl(ControlElement,QPainter *,const QWidget *, - const QRect &,const QColorGroup &, - SFlags = Style_Default, - const QStyleOption & = QStyleOption()) const; - - void drawComplexControl(ComplexControl,QPainter *,const QWidget *, - const QRect &,const QColorGroup &, - SFlags = Style_Default,SCFlags = SC_All, - SCFlags = SC_None, - const QStyleOption & = QStyleOption()) const; - - QRect querySubControlMetrics(ComplexControl,const QWidget *,SubControl, - const QStyleOption & = QStyleOption()) const; - - int pixelMetric(PixelMetric,const QWidget * = 0) const; - - QSize sizeFromContents(ContentsType,const QWidget *,const QSize &, - const QStyleOption & = QStyleOption()) const; - - QRect subRect(SubRect,const QWidget *) const; - - QPixmap stylePixmap(StylePixmap,const QWidget * = 0, - const QStyleOption & = QStyleOption()) const; - - int styleHint(StyleHint,const QWidget *, - const QStyleOption & = QStyleOption(), - QStyleHintReturn * = 0) const; -%End - -private: -%If (Qt_3_0_0 -) - QMotifStyle(const QMotifStyle &); -%End -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qmovie.sip b/python/pyqt/sip/qt/qmovie.sip deleted file mode 100644 index c8f76e1a..00000000 --- a/python/pyqt/sip/qt/qmovie.sip +++ /dev/null @@ -1,109 +0,0 @@ -// This is the SIP interface definition for QMovie. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QMovie - - QMovie - QDataSource *src - int bufsize = 1024 - - -Not implemented. - - - - void pushData - const uchar *data - int length - - -length is derived from data and not -passed as a parameter. (Qt v2.2.0+) - - -%End - - -class QMovie -{ -%TypeHeaderCode -#include -%End - -public: - QMovie(); -%If (Qt_2_2_0 -) - QMovie(int); -%End -// QMovie(QDataSource *,int = 1024); -%If (- Qt_2_00) - QMovie(const char *,int = 1024); -%End -%If (Qt_2_00 -) - QMovie(const QString &,int = 1024); -%End - QMovie(QByteArray,int = 1024); - QMovie(const QMovie &); - -%If (Qt_2_2_0 -) - int pushSpace() const; - void pushData(const uchar * /Array/,int /ArraySize/); -%End - const QColor &backgroundColor() const; - void setBackgroundColor(const QColor &); - const QRect &getValidRect() const; - const QPixmap &framePixmap() const; -%If (Qt_2_2_0 -) - const QImage &frameImage() const; -%End - bool isNull() const; - int frameNumber() const; - int steps() const; - bool paused() const; - bool finished() const; - bool running() const; - void unpause(); - void pause(); - void step(); - void step(int); - void restart(); - int speed() const; - void setSpeed(int); - void connectResize(SIP_RXOBJ_CON,SIP_SLOT_CON(const QSize &)); - void disconnectResize(SIP_RXOBJ_DIS,SIP_SLOT_DIS(const QSize &)); - void connectUpdate(SIP_RXOBJ_CON,SIP_SLOT_CON(const QRect &)); - void disconnectUpdate(SIP_RXOBJ_DIS,SIP_SLOT_DIS(const QRect &)); - - enum Status { - SourceEmpty = -2, - UnrecognizedFormat = -1, - Paused = 1, - EndOfFrame = 2, - EndOfLoop = 3, - EndOfMovie = 4, - SpeedChanged = 5 - }; - - void connectStatus(SIP_RXOBJ_CON,SIP_SLOT_CON(int)); - void disconnectStatus(SIP_RXOBJ_DIS,SIP_SLOT_DIS(int)); -}; diff --git a/python/pyqt/sip/qt/qmultilinedit.sip b/python/pyqt/sip/qt/qmultilinedit.sip deleted file mode 100644 index 396111a1..00000000 --- a/python/pyqt/sip/qt/qmultilinedit.sip +++ /dev/null @@ -1,374 +0,0 @@ -// This is the SIP interface definition for QMultiLineEdit. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QMultiLineEdit - - void cursorPosition const - int *line - int *col - - -This takes no parameters and returns a tuple of the line and -col values. (Qt v1.x, Qt v2.x) - - - - virtual void del - - - -This has been renamed delChar in Python. (Qt v1.x, Qt v2.x) - - - - void getCursorPosition const - int *line - int *col - - -This takes no parameters and returns a tuple of the line and -col values. (Qt v1.x, Qt v2.x) - - - - bool getMarkedRegion - int *line1 - int *col1 - int *line2 - int *col2 - - -This takes no parameters and returns a tuple of the bool result and the -line1, col1, line2 and -col2 values. - - -%End - - -%If (Qt_3_0_0 -) - -class QMultiLineEdit : QTextEdit -{ -%TypeHeaderCode -#include -%End - -public: - QMultiLineEdit(QWidget * /TransferThis/ = 0,const char * = 0); - - QString textLine(int) const; - int numLines() const; - - virtual void insertLine(const QString &,int = -1); -%If (Qt_3_1_0 -) - virtual void insertAt(const QString &,int,int); - virtual void insertAt(const QString &,int,int,bool); -%End -%If (- Qt_3_1_0) - virtual void insertAt(const QString &,int,int,bool = 0); -%End - virtual void removeLine(int); - -%If (Qt_3_1_0 -) - virtual void setCursorPosition(int,int); - virtual void setCursorPosition(int,int,bool); -%End -%If (- Qt_3_1_0) - virtual void setCursorPosition(int,int,bool = 0); -%End - bool atBeginning() const; - bool atEnd() const; - - void setAlignment(int); - int alignment() const; - - void setEdited(bool); - bool edited() const; - - bool hasMarkedText() const; - QString markedText() const; - - void cursorWordForward(bool); - void cursorWordBackward(bool); - - bool autoUpdate() const; - virtual void setAutoUpdate(bool); - - int totalWidth() const; - int totalHeight() const; - - int maxLines() const; - void setMaxLines(int); - -public slots: - void deselect(); - -protected: - QPoint cursorPoint() const; - virtual void insertAndMark(const QString &,bool); - virtual void newLine(); - virtual void killLine(); - virtual void pageUp(bool = 0); - virtual void pageDown(bool = 0); - virtual void cursorLeft(bool = 0,bool = 1); - virtual void cursorRight(bool = 0,bool = 1); - virtual void cursorUp(bool = 0); - virtual void cursorDown(bool = 0); - virtual void backspace(); - virtual void home(bool = 0); - virtual void end(bool = 0); - bool getMarkedRegion(int *,int *,int *,int *) const; - int lineLength(int) const; - -private: - QMultiLineEdit(const QMultiLineEdit &); -}; - -%End - - -%If (- Qt_3_0_0) - -class QMultiLineEdit : QTableView -{ -%TypeHeaderCode -#include -%End - -public: - QMultiLineEdit(QWidget * /TransferThis/ = 0,const char * = 0); - - int numLines() const; - virtual void removeLine(int); - - void cursorPosition(int *,int *) const; - void getCursorPosition(int *,int *) const; - - bool atBeginning() const; - bool atEnd() const; - int maxLineWidth() const; - bool autoUpdate() const; - bool isReadOnly() const; - bool isOverwriteMode() const; - QString text() const; - -%If (- Qt_2_00) - const char *textLine(int) const; - void setFont(const QFont &); - virtual void insertLine(const char *,int = -1); - virtual void insertAt(const char *,int,int); - void setCursorPosition(int,int,bool = 0); - void setFixedVisibleLines(int); - void setAutoUpdate(bool); -%End - -%If (Qt_2_00 -) - QString textLine(int) const; - QSize sizeHint() const; - QSize minimumSizeHint() const; - QSizePolicy sizePolicy() const; - virtual void setFont(const QFont &); - virtual void insertLine(const QString &,int = -1); - virtual void insertAt(const QString &,int,int,bool = 0); - virtual void setCursorPosition(int,int,bool = 0); - virtual void setFixedVisibleLines(int); - void setAlignment(int); - int alignment() const; - virtual void setValidator(const QValidator *); - const QValidator *validator() const; - void setEdited(bool); - bool edited() const; - void cursorWordForward(bool); - void cursorWordBackward(bool); - - enum EchoMode - { - Normal, - NoEcho, - Password - }; - - virtual void setEchoMode(EchoMode); - EchoMode echoMode() const; - virtual void setMaxLineLength(int); - int maxLineLength() const; - virtual void setMaxLines(int); - int maxLines() const; - virtual void setHMargin(int); - int hMargin() const; - virtual void setSelection(int,int,int,int); - virtual void setAutoUpdate(bool); -%End - -%If (Qt_2_1_0 -) - void setMaxLength(int); - int maxLength() const; - - enum WordWrap { - NoWrap, - WidgetWidth, - FixedPixelWidth, - FixedColumnWidth - }; - - void setWordWrap(WordWrap); - WordWrap wordWrap() const; - void setWrapColumnOrWidth(int); - int wrapColumnOrWidth() const; - - enum WrapPolicy { - AtWhiteSpace, - Anywhere - }; - - void setWrapPolicy(WrapPolicy); - WrapPolicy wrapPolicy() const; - void setUndoEnabled(bool); - bool isUndoEnabled() const; - void setUndoDepth(int); - int undoDepth() const; - int length() const; - static void setDefaultTabStop(int); - static int defaultTabStop(); -%End - -public slots: - void clear(); - void deselect(); - void selectAll(); -%If (Qt_CLIPBOARD) - void paste(); -%If (Qt_2_2_0 -) - void pasteSubType(const QCString &); -%End - void cut(); -%End -%If (- Qt_2_00) - void setText(const char *); - void setReadOnly(bool); - void setOverwriteMode(bool); - void append(const char *); - void copyText(); -%End -%If (Qt_2_00 -) - virtual void setText(const QString &); - virtual void setReadOnly(bool); - virtual void setOverwriteMode(bool); - void append(const QString &); -%If (Qt_CLIPBOARD) - void copyText() const; - void copy() const; -%End - void insert(const QString &); -%End -%If (Qt_2_1_0 -) - void undo(); - void redo(); -%End - -signals: - void textChanged(); - void returnPressed(); -%If (Qt_2_1_0 -) - void undoAvailable(bool); - void redoAvailable(bool); -%End -%If (Qt_2_2_0 -) - void copyAvailable(bool); -%End - -protected: - void paintCell(QPainter *,int,int); -%If (Qt_2_2_0 -) - bool event(QEvent *); -%End - void mousePressEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseDoubleClickEvent(QMouseEvent *); -%If (Qt_2_00 -) - void wheelEvent(QWheelEvent *); -%End - void keyPressEvent(QKeyEvent *); - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); - void timerEvent(QTimerEvent *); - void leaveEvent(QEvent *); - void resizeEvent(QResizeEvent *); -%If (Qt_DRAGANDDROP) -%If (Qt_2_00 -) - void dragMoveEvent(QDragMoveEvent *); -%End -%If (Qt_2_1_0 -) - void dragEnterEvent(QDragEnterEvent *); -%End -%If (Qt_2_00 -) - void dropEvent(QDropEvent *); - void dragLeaveEvent(QDragLeaveEvent *); -%End -%End - bool hasMarkedText() const; - QString markedText() const; - int textWidth(int); -%If (- Qt_2_00) - int textWidth(QString *); -%End -%If (Qt_2_00 -) - int textWidth(const QString &); -%End - QPoint cursorPoint() const; -%If (- Qt_2_00) - virtual void insertChar(char); -%End -%If (Qt_2_00 -) - virtual void insert(const QString &,bool); -%End - virtual void newLine(); - virtual void killLine(); - virtual void pageUp(bool = 0); - virtual void pageDown(bool = 0); - virtual void cursorLeft(bool = 0,bool = 1); - virtual void cursorRight(bool = 0,bool = 1); - virtual void cursorUp(bool = 0); - virtual void cursorDown(bool = 0); - virtual void backspace(); - virtual void del() /PyName=delChar/; - virtual void home(bool = 0); - virtual void end(bool = 0); - bool getMarkedRegion(int *,int *,int *,int *) const; - int lineLength(int) const; - QString *getString(int) const; -%If (Qt_2_1_0 -) - bool isEndOfParagraph(int) const; -%End -%If (Qt_2_00 -) - QString stringShown(int) const; - void insertChar(QChar); -%End - -private: - QMultiLineEdit(const QMultiLineEdit &); -}; - -%End diff --git a/python/pyqt/sip/qt/qmutex.sip b/python/pyqt/sip/qt/qmutex.sip deleted file mode 100644 index 18bbe15d..00000000 --- a/python/pyqt/sip/qt/qmutex.sip +++ /dev/null @@ -1,104 +0,0 @@ -// This is the SIP interface definition for QMutex and QMutexLocker. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QMutex (Qt v2.2+) - -QMutex is fully implemented. - - - -QMutexLocker (Qt v3.1+) - -QMutexLocker is fully implemented. - - -%End - - -%If (Qt_THREAD_SUPPORT) - -%If (Qt_3_0_0 -) - -class QMutex -{ -%TypeHeaderCode -#include -%End - -public: - QMutex(bool = 0); - - void lock() /ReleaseGIL/; - void unlock(); - bool locked(); - bool tryLock(); - -private: - QMutex(const QMutex &); -}; - -%End - - -%If (Qt_2_2_0 - Qt_3_0_0) - -class QMutex : Qt -{ -%TypeHeaderCode -#include -%End - -public: - QMutex(bool = 0); - - void lock() /ReleaseGIL/; - void unlock(); - bool locked(); - -private: - QMutex(const QMutex &); -}; - -%End - - -%If (Qt_3_1_0 -) - -class QMutexLocker -{ -%TypeHeaderCode -#include -%End - -public: - QMutexLocker(QMutex *) /ReleaseGIL/; - - QMutex *mutex() const; - -private: - QMutexLocker(const QMutexLocker &); -}; - -%End - -%End diff --git a/python/pyqt/sip/qt/qnamespace.sip b/python/pyqt/sip/qt/qnamespace.sip deleted file mode 100644 index 867a8b4f..00000000 --- a/python/pyqt/sip/qt/qnamespace.sip +++ /dev/null @@ -1,903 +0,0 @@ -// This is the SIP interface definition for the Qt v2+ Qt class. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -Qt (Qt v2+) - -Qt is fully implemented. - - -%End - - -%If (Qt_2_00 -) - -class Qt -{ -%TypeHeaderCode -#include -%End - -public: - static const QColor &color0; - static const QColor &color1; - static const QColor &black; - static const QColor &white; - static const QColor &darkGray; - static const QColor &gray; - static const QColor &lightGray; - static const QColor &red; - static const QColor &green; - static const QColor &blue; - static const QColor &cyan; - static const QColor &magenta; - static const QColor &yellow; - static const QColor &darkRed; - static const QColor &darkGreen; - static const QColor &darkBlue; - static const QColor &darkCyan; - static const QColor &darkMagenta; - static const QColor &darkYellow; - - enum ButtonState { - NoButton, - LeftButton, - RightButton, - MidButton, - MouseButtonMask, - ShiftButton, - ControlButton, - AltButton, -%If (Qt_3_0_0 -) - MetaButton, -%End - KeyButtonMask, -%If (Qt_2_2_0 -) - Keypad, -%End - }; - - enum Orientation { - Horizontal, - Vertical - }; - -%If (Qt_3_2_0 -) - enum SortOrder { - Ascending, - Descending - }; -%End - -%If (- Qt_3_0_0) - enum AlignmentFlags { - AlignLeft, - AlignRight, - AlignHCenter, - AlignTop, - AlignBottom, - AlignVCenter, - AlignCenter, - - SingleLine, - DontClip, - ExpandTabs, - ShowPrefix, - WordBreak - }; -%End - -%If (Qt_3_0_0 -) - enum AlignmentFlags { - AlignAuto, - AlignLeft, - AlignRight, - AlignHCenter, - AlignJustify, - AlignHorizontal_Mask, - AlignTop, - AlignBottom, - AlignVCenter, - AlignVertical_Mask, - AlignCenter - }; - - enum TextFlags { - SingleLine, - DontClip, - ExpandTabs, - ShowPrefix, - WordBreak, - BreakAnywhere, - DontPrint, // Internal - NoAccel - }; - - typedef uint WState; - - // WidgetState isn't part of the public API but is used in code - // generated by uic/pyuic, so we implement the minimum required. - enum WidgetState { - WState_Polished - }; -%End - - typedef uint WFlags; - - enum WidgetFlags { - WType_TopLevel, -%If (- Qt_3_0_0) - WType_Modal, -%End -%If (Qt_3_0_0 -) - WType_Dialog, -%End - WType_Popup, - WType_Desktop, - WType_Mask, - - WStyle_Customize, - WStyle_NormalBorder, - WStyle_DialogBorder, - WStyle_NoBorder, - WStyle_Title, - WStyle_SysMenu, - WStyle_Minimize, - WStyle_Maximize, - WStyle_MinMax, - WStyle_Tool, - WStyle_StaysOnTop, -%If (- Qt_3_0_0) - WStyle_Dialog, -%End -%If (- Qt_2_1_0) - WStyle_Reserved2, - WStyle_Reserved3, -%End -%If (Qt_2_1_0 -) - WStyle_ContextHelp, -%End -%If (Qt_2_1_0 - Qt_3_0_0) - WStyle_NoBorderEx, -%End -%If (Qt_3_0_0 -) - WStyle_Reserved, -%End - WStyle_Mask, - - WDestructiveClose, - WPaintDesktop, - WPaintUnclipped, - WPaintClever, - WResizeNoErase, // Obsolete - WMouseNoMask, -%If (- Qt_3_0_0) - WNorthWestGravity, -%End -%If (Qt_3_0_0 -) - WStaticContents, -%End -%If (Qt_2_1_0 -) - WRepaintNoErase, // Obsolete - WX11BypassWM, -%End -%If (Qt_3_0_0 -) - WWinOwnDC, -%End -%If (Qt_2_2_0 -) - WGroupLeader, -%End -%If (Qt_3_0_0 -) - WShowModal, - WNoMousePropagation, - WSubWindow, -%End -%If (Qt_3_1_0 -) - WStyle_Splash, -%End -%If (Qt_3_2_0 -) - WNoAutoErase, -%End - }; - - -%If (Qt_3_3_0 -) - - enum WindowState { - WindowNoState, - WindowMinimized, - WindowMaximized, - WindowFullScreen, - WindowActive - }; - -%End - - enum ImageConversionFlags { - ColorMode_Mask, - AutoColor, - ColorOnly, - MonoOnly, - - AlphaDither_Mask, - ThresholdAlphaDither, - OrderedAlphaDither, - DiffuseAlphaDither, - - Dither_Mask, - DiffuseDither, - OrderedDither, - ThresholdDither, - - DitherMode_Mask, - AutoDither, - PreferDither, - AvoidDither - }; - - enum BGMode { - TransparentMode, - OpaqueMode - }; - -%If (- Qt_3_0_0) - enum PaintUnit { - PixelUnit, - LoMetricUnit, - HiMetricUnit, - LoEnglishUnit, - HiEnglishUnit, - TwipsUnit - }; -%End - - enum GUIStyle { -%If (- Qt_3_0_0) - MacStyle, -%End - WindowsStyle, -%If (- Qt_3_0_0) - Win3Style, - PMStyle, -%End - MotifStyle - }; - -%If (Qt_3_1_0 -) - enum SequenceMatch { - NoMatch, - PartialMatch, - Identical - }; -%End - - enum Modifier { -%If (Qt_3_1_0 -) - META, -%End - SHIFT, - CTRL, - ALT, - MODIFIER_MASK, - UNICODE_ACCEL, - ASCII_ACCEL - }; - - enum Key { - Key_Escape, - Key_Tab, - Key_Backtab, - Key_BackTab, - Key_Backspace, - Key_BackSpace, - Key_Return, - Key_Enter, - Key_Insert, - Key_Delete, - Key_Pause, - Key_Print, - Key_SysReq, -%If (Qt_3_1_0 -) - Key_Clear, -%End - - Key_Home, - Key_End, - Key_Left, - Key_Up, - Key_Right, - Key_Down, - Key_Prior, - Key_PageUp, - Key_Next, - Key_PageDown, - - Key_Shift, - Key_Control, - Key_Meta, - Key_Alt, - Key_CapsLock, - Key_NumLock, - Key_ScrollLock, - - Key_F1, - Key_F2, - Key_F3, - Key_F4, - Key_F5, - Key_F6, - Key_F7, - Key_F8, - Key_F9, - Key_F10, - Key_F11, - Key_F12, - Key_F13, - Key_F14, - Key_F15, - Key_F16, - Key_F17, - Key_F18, - Key_F19, - Key_F20, - Key_F21, - Key_F22, - Key_F23, - Key_F24, - Key_F25, - Key_F26, - Key_F27, - Key_F28, - Key_F29, - Key_F30, - Key_F31, - Key_F32, - Key_F33, - Key_F34, - Key_F35, - - Key_Super_L, - Key_Super_R, - Key_Menu, - Key_Hyper_L, - Key_Hyper_R, -%If (Qt_3_0_0 -) - Key_Help, - Key_Direction_L, - Key_Direction_R, -%End - - Key_Space, - Key_Any, - Key_Exclam, - Key_QuoteDbl, - Key_NumberSign, - Key_Dollar, - Key_Percent, - Key_Ampersand, - Key_Apostrophe, - Key_ParenLeft, - Key_ParenRight, - Key_Asterisk, - Key_Plus, - Key_Comma, - Key_Minus, - Key_Period, - Key_Slash, - Key_0, - Key_1, - Key_2, - Key_3, - Key_4, - Key_5, - Key_6, - Key_7, - Key_8, - Key_9, - Key_Colon, - Key_Semicolon, - Key_Less, - Key_Equal, - Key_Greater, - Key_Question, - Key_At, - Key_A, - Key_B, - Key_C, - Key_D, - Key_E, - Key_F, - Key_G, - Key_H, - Key_I, - Key_J, - Key_K, - Key_L, - Key_M, - Key_N, - Key_O, - Key_P, - Key_Q, - Key_R, - Key_S, - Key_T, - Key_U, - Key_V, - Key_W, - Key_X, - Key_Y, - Key_Z, - Key_BracketLeft, - Key_Backslash, - Key_BracketRight, - Key_AsciiCircum, - Key_Underscore, - Key_QuoteLeft, - Key_BraceLeft, - Key_Bar, - Key_BraceRight, - Key_AsciiTilde, - - Key_nobreakspace, - Key_exclamdown, - Key_cent, - Key_sterling, - Key_currency, - Key_yen, - Key_brokenbar, - Key_section, - Key_diaeresis, - Key_copyright, - Key_ordfeminine, - Key_guillemotleft, - Key_notsign, - Key_hyphen, - Key_registered, - Key_macron, - Key_degree, - Key_plusminus, - Key_twosuperior, - Key_threesuperior, - Key_acute, - Key_mu, - Key_paragraph, - Key_periodcentered, - Key_cedilla, - Key_onesuperior, - Key_masculine, - Key_guillemotright, - Key_onequarter, - Key_onehalf, - Key_threequarters, - Key_questiondown, - Key_Agrave, - Key_Aacute, - Key_Acircumflex, - Key_Atilde, - Key_Adiaeresis, - Key_Aring, - Key_AE, - Key_Ccedilla, - Key_Egrave, - Key_Eacute, - Key_Ecircumflex, - Key_Ediaeresis, - Key_Igrave, - Key_Iacute, - Key_Icircumflex, - Key_Idiaeresis, - Key_ETH, - Key_Ntilde, - Key_Ograve, - Key_Oacute, - Key_Ocircumflex, - Key_Otilde, - Key_Odiaeresis, - Key_multiply, - Key_Ooblique, - Key_Ugrave, - Key_Uacute, - Key_Ucircumflex, - Key_Udiaeresis, - Key_Yacute, - Key_THORN, - Key_ssharp, - Key_agrave, - Key_aacute, - Key_acircumflex, - Key_atilde, - Key_adiaeresis, - Key_aring, - Key_ae, - Key_ccedilla, - Key_egrave, - Key_eacute, - Key_ecircumflex, - Key_ediaeresis, - Key_igrave, - Key_iacute, - Key_icircumflex, - Key_idiaeresis, - Key_eth, - Key_ntilde, - Key_ograve, - Key_oacute, - Key_ocircumflex, - Key_otilde, - Key_odiaeresis, - Key_division, - Key_oslash, - Key_ugrave, - Key_uacute, - Key_ucircumflex, - Key_udiaeresis, - Key_yacute, - Key_thorn, - Key_ydiaeresis, - -%If (Qt_3_1_0 -) - Key_Back, - Key_Forward, - Key_Stop, - Key_Refresh, - - Key_VolumeDown, - Key_VolumeMute, - Key_VolumeUp, - Key_BassBoost, - Key_BassUp, - Key_BassDown, - Key_TrebleUp, - Key_TrebleDown, - - Key_MediaPlay, - Key_MediaStop, - Key_MediaPrev, - Key_MediaNext, - Key_MediaRecord, - - Key_HomePage, - Key_Favorites, - Key_Search, - Key_Standby, - Key_OpenUrl, - - Key_LaunchMail, - Key_LaunchMedia, - Key_Launch0, - Key_Launch1, - Key_Launch2, - Key_Launch3, - Key_Launch4, - Key_Launch5, - Key_Launch6, - Key_Launch7, - Key_Launch8, - Key_Launch9, - Key_LaunchA, - Key_LaunchB, - Key_LaunchC, - Key_LaunchD, - Key_LaunchE, - Key_LaunchF, - - Key_MediaLast, -%End - - Key_unknown - }; - - enum ArrowType { - UpArrow, - DownArrow, - LeftArrow, - RightArrow - }; - - enum RasterOp { - CopyROP, - OrROP, - XorROP, - NotAndROP, - EraseROP, - NotCopyROP, - NotOrROP, - NotXorROP, - AndROP, - NotEraseROP, - NotROP, - ClearROP, - SetROP, - NopROP, - AndNotROP, - OrNotROP, - NandROP, - NorROP, - LastROP - }; - - enum PenStyle { - NoPen, - SolidLine, - DashLine, - DotLine, - DashDotLine, - DashDotDotLine, -%If (Qt_2_1_0 -) - MPenStyle -%End - }; - -%If (Qt_2_1_0 -) - enum PenCapStyle { - FlatCap, - SquareCap, - RoundCap, - MPenCapStyle - }; - - enum PenJoinStyle { - MiterJoin, - BevelJoin, - RoundJoin, - MPenJoinStyle - }; -%End - - enum BrushStyle { - NoBrush, - SolidPattern, - Dense1Pattern, - Dense2Pattern, - Dense3Pattern, - Dense4Pattern, - Dense5Pattern, - Dense6Pattern, - Dense7Pattern, - HorPattern, - VerPattern, - CrossPattern, - BDiagPattern, - FDiagPattern, - DiagCrossPattern, - CustomPattern - }; - -%If (Qt_3_1_0 -) - enum MacintoshVersion { - MV_Unknown, - - MV_9, -%If (Qt_3_2_0 -) - MV_10_DOT_0, -%End - MV_10_DOT_1, - MV_10_DOT_2, -%If (Qt_3_2_0 -) - MV_10_DOT_3, -%End -%If (Qt_3_3_5 -) - MV_10_DOT_4, -%End - -%If (Qt_3_2_0 -) - MV_CHEETAH, - MV_PUMA, -%End - MV_JAGUAR, -%If (Qt_3_2_0 -) - MV_PANTHER, -%End -%If (Qt_3_3_5 -) - MV_TIGER, -%End - }; -%End - - enum WindowsVersion { - WV_32s, - WV_95, - WV_98, -%If (Qt_3_0_0 -) - WV_Me, -%End -%If (Qt_2_1_0 -) - WV_DOS_based, -%End - - WV_NT, -%If (Qt_2_1_0 -) - WV_2000, -%End -%If (Qt_3_0_0 -) - WV_XP, -%End -%If (Qt_3_3_0 -) - WV_2003, -%End -%If (Qt_3_3_6 -) - WV_VISTA, -%End -%If (Qt_2_1_0 -) - WV_NT_based, -%End - -%If (Qt_3_3_0 -) - WV_CE, - WV_CENET, - WV_CE_based, -%End - }; - -%If (Qt_2_2_0 -) - enum UIEffect { - UI_General, - UI_AnimateMenu, - UI_FadeMenu, - UI_AnimateCombo, - UI_AnimateTooltip, - UI_FadeTooltip, -%If (Qt_3_2_0 -) - UI_AnimateToolBox, -%End - }; -%End - -%If (Qt_3_0_0 -) - enum CursorShape { - ArrowCursor, - UpArrowCursor, - CrossCursor, - WaitCursor, - IbeamCursor, - SizeVerCursor, - SizeHorCursor, - SizeBDiagCursor, - SizeFDiagCursor, - SizeAllCursor, - BlankCursor, - SplitVCursor, - SplitHCursor, - PointingHandCursor, - ForbiddenCursor, - WhatsThisCursor, -%If (Qt_3_3_0 -) - BusyCursor, -%End - LastCursor, - BitmapCursor - }; -%End - - static const QCursor &arrowCursor; - static const QCursor &upArrowCursor; - static const QCursor &crossCursor; - static const QCursor &waitCursor; - static const QCursor &ibeamCursor; - static const QCursor &sizeVerCursor; - static const QCursor &sizeHorCursor; - static const QCursor &sizeBDiagCursor; - static const QCursor &sizeFDiagCursor; - static const QCursor &sizeAllCursor; - static const QCursor &blankCursor; - static const QCursor &splitVCursor; - static const QCursor &splitHCursor; - static const QCursor &pointingHandCursor; -%If (Qt_2_1_0 -) - static const QCursor &forbiddenCursor; -%End -%If (Qt_3_0_0 -) - static const QCursor &whatsThisCursor; -%End -%If (Qt_3_3_0 -) - static const QCursor &busyCursor; -%End - - enum TextFormat { - PlainText, - RichText, - AutoText, -%If (Qt_3_1_0 -) - LogText, -%End - }; - -%If (Qt_3_1_0 -) - enum AnchorAttribute { - AnchorName, - AnchorHref - }; -%End - -%If (Qt_3_0_0 -) - enum Dock { - DockUnmanaged, - DockTornOff, - DockTop, - DockBottom, - DockRight, - DockLeft, - DockMinimized - }; - - enum DateFormat { - TextDate, - ISODate, - LocalDate - }; - -%If (Qt_3_1_0 -) - enum TimeSpec { - LocalTime, - UTC - }; -%End - - enum BackgroundMode { - FixedColor, - FixedPixmap, - NoBackground, - PaletteForeground, - PaletteButton, - PaletteLight, - PaletteMidlight, - PaletteDark, - PaletteMid, - PaletteText, - PaletteBrightText, - PaletteBase, - PaletteBackground, - PaletteShadow, - PaletteHighlight, - PaletteHighlightedText, - PaletteButtonText, - PaletteLink, - PaletteLinkVisited, - X11ParentRelative - }; - - typedef uint ComparisonFlags; - - enum StringComparisonMode { - CaseSensitive, - BeginsWith, - EndsWith, - Contains, - ExactMatch - }; - -%If (Qt_3_2_0 -) - enum Corner { - TopLeft, - TopRight, - BottomLeft, - BottomRight - }; -%End - -%If (WS_X11) - typedef unsigned long HANDLE; -%End -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qnetworkprotocol.sip b/python/pyqt/sip/qt/qnetworkprotocol.sip deleted file mode 100644 index 67ccc7f1..00000000 --- a/python/pyqt/sip/qt/qnetworkprotocol.sip +++ /dev/null @@ -1,227 +0,0 @@ -// This is the SIP interface definition for QNetworkOperation, QNetworkProtocol -// and QNetworkProtocolFactoryBase. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QNetworkOperation (Qt v2.1+) - -QNetworkOperation is fully implemented. - - - -QNetworkProtocol (Qt v2.1+) - -QNetworkProtocol is fully implemented. - - - -QNetworkProtocolFactoryBase (Qt v2.1+) - -QNetworkProtocolFactoryBase is fully implemented. - - -%End - - -%If (Qt_NETWORKPROTOCOL) -%If (Qt_2_1_0 -) - -class QNetworkProtocolFactoryBase -{ -%TypeHeaderCode -#include -%End - -public: - virtual QNetworkProtocol *createObject() = 0 /Factory/; - -}; - - -class QNetworkProtocol : QObject -{ -%TypeHeaderCode -#include -%End - -public: - enum State { - StWaiting, - StInProgress, - StDone, - StFailed, - StStopped - }; - -%If (- Qt_3_0_0) - enum Operation { - OpListChildren, - OpMkdir, - OpRemove, - OpRename, - OpGet, - OpPut - }; -%End -%If (Qt_3_0_0 -) - enum Operation { - OpListChildren, - OpMkDir, - OpRemove, - OpRename, - OpGet, - OpPut - }; -%End - - enum ConnectionState { - ConHostFound, - ConConnected, - ConClosed - }; - -%If (- Qt_3_0_0) - enum Error { - NoError, - ErrValid, - ErrUnknownProtocol, - ErrUnsupported, - ErrParse, - ErrLoginIncorrect, - ErrHostNotFound, - ErrListChlidren, - ErrMkdir, - ErrRemove, - ErrRename, - ErrGet, - ErrPut, - ErrFileNotExisting, - ErrPermissionDenied - }; -%End -%If (Qt_3_0_0 -) - enum Error { - NoError, - ErrValid, - ErrUnknownProtocol, - ErrUnsupported, - ErrParse, - ErrLoginIncorrect, - ErrHostNotFound, - ErrListChildren, - ErrMkDir, - ErrRemove, - ErrRename, - ErrGet, - ErrPut, - ErrFileNotExisting, - ErrPermissionDenied - }; -%End - - QNetworkProtocol(); - - virtual void setUrl(QUrlOperator *); - - virtual void setAutoDelete(bool,int = 10000); - bool autoDelete() const; - - static void registerNetworkProtocol(const QString &, - QNetworkProtocolFactoryBase *); - static QNetworkProtocol *getNetworkProtocol(const QString &) /Factory/; - static bool hasOnlyLocalFileSystem(); - - virtual int supportedOperations() const; - virtual void addOperation(QNetworkOperation *); - - QUrlOperator *url() const; - QNetworkOperation *operationInProgress() const; - virtual void clearOperationQueue(); - virtual void stop(); - -signals: - void data(const QByteArray &,QNetworkOperation *); - void connectionStateChanged(int,const QString &); - void finished(QNetworkOperation *); - void start(QNetworkOperation *); - void newChildren(const QValueList &,QNetworkOperation *); - void newChild(const QUrlInfo &,QNetworkOperation *); - void createdDirectory(const QUrlInfo &,QNetworkOperation *); - void removed(QNetworkOperation *); - void itemChanged(QNetworkOperation *); - void dataTransferProgress(int,int,QNetworkOperation *); - -protected: - virtual void processOperation(QNetworkOperation *); - virtual void operationListChildren(QNetworkOperation *); - virtual void operationMkDir(QNetworkOperation *); - virtual void operationRemove(QNetworkOperation *); - virtual void operationRename(QNetworkOperation *); - virtual void operationGet(QNetworkOperation *); - virtual void operationPut(QNetworkOperation *); -%If (Qt_3_0_0 -) - virtual void operationPutChunk(QNetworkOperation *); -%End - virtual bool checkConnection(QNetworkOperation *); - -private: -%If (Qt_3_1_0 -) - QNetworkProtocol(const QNetworkProtocol &); -%End -}; - - -class QNetworkOperation : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QNetworkOperation(QNetworkProtocol::Operation,const QString &, - const QString &,const QString &); - QNetworkOperation(QNetworkProtocol::Operation,const QByteArray &, - const QByteArray &,const QByteArray &); - - void setState(QNetworkProtocol::State); - void setProtocolDetail(const QString &); - void setErrorCode(int); - void setArg(int,const QString &); - void setRawArg(int,const QByteArray &); - - QNetworkProtocol::Operation operation() const; - QNetworkProtocol::State state() const; - QString arg(int) const; - QByteArray rawArg(int) const; - QString protocolDetail() const; - int errorCode() const; - - void free(); - -private: -%If (Qt_3_1_0 -) - QNetworkOperation(const QNetworkOperation &); -%End -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qobject.sip b/python/pyqt/sip/qt/qobject.sip deleted file mode 100644 index 77b1fbfc..00000000 --- a/python/pyqt/sip/qt/qobject.sip +++ /dev/null @@ -1,1369 +0,0 @@ -// This is the SIP interface definition for QObject. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QObject - - bool disconnect - const QObject *receiver - const char *member = 0 - - -Not yet implemented. - - - - bool disconnect - const char *signal = 0 - const QObject *receiver = 0 - const char *member = 0 - - -Not yet implemented. - - - - static bool disconnect - const QObject *sender - const char *signal - const QObject *receiver - const char *member - - -At the moment PyQt does not support the full behaviour of the corresponding Qt -method. In particular, specifying None (ie. 0 in C++) for the -signal and receiver parameters is not yet -supported. - - -%End - - -%If (Qt_2_00 -) - -class QObject : Qt -{ -%TypeHeaderCode -#include -#include -%End - -public: - QObject(QObject * /TransferThis/ = 0,const char * = 0); - -%ConvertToSubClassCode - static struct class_graph { - char *name; - sipWrapperType **type; - int yes, no; - } graph[] = { - {sipName_QWidget, &sipClass_QWidget, 25, 1}, -#if QT_VERSION >= 0x030100 && defined(SIP_FEATURE_Qt_ASSISTANTCLIENT) - {sipName_QAssistantClient, &sipClass_QAssistantClient, -1, 2}, -#else - {NULL, NULL, -1, 2}, -#endif - {sipName_QSessionManager, &sipClass_QSessionManager, -1, 3}, - {sipName_QTranslator, &sipClass_QTranslator, -1, 4}, -#if QT_VERSION >= 0x030000 - {sipName_QProcess, &sipClass_QProcess, -1, 5}, -#else - {NULL, NULL, -1, 5}, -#endif - {sipName_QToolTipGroup, &sipClass_QToolTipGroup, -1, 6}, -#if defined(SIP_FEATURE_Qt_FILEDIALOG) - {sipName_QFileIconProvider, &sipClass_QFileIconProvider, -1, 7}, -#else - {NULL, NULL, -1, 7}, -#endif -#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_ACTION) - {sipName_QAction, &sipClass_QAction, 89, 8}, -#else - {NULL, NULL, -1, 8}, -#endif -#if QT_VERSION >= 0x030000 - {sipName_QObjectCleanupHandler, &sipClass_QObjectCleanupHandler, -1, 9}, -#else - {NULL, NULL, -1, 9}, -#endif - {sipName_QTimer, &sipClass_QTimer, -1, 10}, - {sipName_QLayout, &sipClass_QLayout, 90, 11}, -#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_NETWORKPROTOCOL) - {sipName_QUrlOperator, &sipClass_QUrlOperator, -1, 12}, -#else - {NULL, NULL, -1, 12}, -#endif - {sipName_QStyleSheet, &sipClass_QStyleSheet, -1, 13}, - {sipName_QValidator, &sipClass_QValidator, 94, 14}, -#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_NETWORKPROTOCOL) - {sipName_QNetworkOperation, &sipClass_QNetworkOperation, -1, 15}, -#else - {NULL, NULL, -1, 15}, -#endif - {sipName_QAccel, &sipClass_QAccel, -1, 16}, -#if QT_VERSION >= 0x030100 - {sipName_QEventLoop, &sipClass_QEventLoop, -1, 17}, -#else - {NULL, NULL, -1, 17}, -#endif -#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_NETWORKPROTOCOL) - {sipName_QNetworkProtocol, &sipClass_QNetworkProtocol, -1, 18}, -#else - {NULL, NULL, -1, 18}, -#endif -#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_SOUND) - {sipName_QSound, &sipClass_QSound, -1, 19}, -#else - {NULL, NULL, -1, 19}, -#endif - {sipName_QApplication, &sipClass_QApplication, -1, 20}, - {sipName_QDragObject, &sipClass_QDragObject, 97, 21}, - {sipName_QSocketNotifier, &sipClass_QSocketNotifier, -1, 22}, - {sipName_QStyle, &sipClass_QStyle, 103, 23}, - {sipName_QSignalMapper, &sipClass_QSignalMapper, -1, 24}, -#if defined(SIP_FEATURE_Qt_CLIPBOARD) - {sipName_QClipboard, &sipClass_QClipboard, -1, -1}, -#else - {NULL, NULL, -1, -1}, -#endif - {sipName_QStatusBar, &sipClass_QStatusBar, -1, 26}, -#if defined(SIP_FEATURE_Qt_SIZEGRIP) - {sipName_QSizeGrip, &sipClass_QSizeGrip, -1, 27}, -#else - {NULL, NULL, -1, 27}, -#endif - {sipName_QTabWidget, &sipClass_QTabWidget, -1, 28}, -#if QT_VERSION >= 0x030000 - {sipName_QDateEdit, &sipClass_QDateEdit, -1, 29}, -#else - {NULL, NULL, -1, 29}, -#endif - {sipName_QMainWindow, &sipClass_QMainWindow, -1, 30}, -#if QT_VERSION >= 0x030000 - {sipName_QDateTimeEdit, &sipClass_QDateTimeEdit, -1, 31}, -#else - {NULL, NULL, -1, 31}, -#endif -#if QT_VERSION >= 0x030000 - {sipName_QTimeEdit, &sipClass_QTimeEdit, -1, 32}, -#else - {NULL, NULL, -1, 32}, -#endif - {sipName_QFrame, &sipClass_QFrame, 46, 33}, - {sipName_QScrollBar, &sipClass_QScrollBar, -1, 34}, -#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_DIAL) - {sipName_QDial, &sipClass_QDial, -1, 35}, -#else - {NULL, NULL, -1, 35}, -#endif - {sipName_QButton, &sipClass_QButton, 75, 36}, - {sipName_QTabBar, &sipClass_QTabBar, -1, 37}, - {sipName_QDialog, &sipClass_QDialog, 79, 38}, - {sipName_QComboBox, &sipClass_QComboBox, -1, 39}, - {sipName_QHeader, &sipClass_QHeader, -1, 40}, -#if QT_VERSION >= 0x030000 - {sipName_QDockArea, &sipClass_QDockArea, -1, 41}, -#else - {NULL, NULL, -1, 41}, -#endif -#if QT_VERSION >= 0x030200 - {sipName_QSplashScreen, &sipClass_QSplashScreen, -1, 42}, -#else - {NULL, NULL, -1, 42}, -#endif - {sipName_QSlider, &sipClass_QSlider, -1, 43}, - {sipName_QSpinBox, &sipClass_QSpinBox, -1, 44}, -#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_WORKSPACE) - {sipName_QWorkspace, &sipClass_QWorkspace, -1, 45}, -#else - {NULL, NULL, -1, 45}, -#endif -#if QT_VERSION >= 0x030000 - {sipName_QDesktopWidget, &sipClass_QDesktopWidget, -1, -1}, -#else - {NULL, NULL, -1, -1}, -#endif - {sipName_QGrid, &sipClass_QGrid, -1, 47}, - {sipName_QLineEdit, &sipClass_QLineEdit, -1, 48}, -#if QT_VERSION >= 0x030200 - {sipName_QToolBox, &sipClass_QToolBox, -1, 49}, -#else - {NULL, NULL, -1, 49}, -#endif - {sipName_QWidgetStack, &sipClass_QWidgetStack, -1, 50}, -#if QT_VERSION >= 0x030000 - {sipName_QDockWindow, &sipClass_QDockWindow, 60, 51}, -#else - {NULL, NULL, -1, 51}, -#endif - {sipName_QMenuBar, &sipClass_QMenuBar, -1, 52}, - {sipName_QLabel, &sipClass_QLabel, -1, 53}, - {sipName_QGroupBox, &sipClass_QGroupBox, 61, 54}, - {sipName_QPopupMenu, &sipClass_QPopupMenu, -1, 55}, -#if defined(SIP_FEATURE_Qt_SPLITTER) - {sipName_QSplitter, &sipClass_QSplitter, -1, 56}, -#else - {NULL, NULL, -1, 56}, -#endif - {sipName_QProgressBar, &sipClass_QProgressBar, -1, 57}, - {sipName_QScrollView, &sipClass_QScrollView, 66, 58}, - {sipName_QHBox, &sipClass_QHBox, 74, 59}, - {sipName_QLCDNumber, &sipClass_QLCDNumber, -1, -1}, - {sipName_QToolBar, &sipClass_QToolBar, -1, -1}, - {sipName_QButtonGroup, &sipClass_QButtonGroup, 64, 62}, - {sipName_QHGroupBox, &sipClass_QHGroupBox, -1, 63}, - {sipName_QVGroupBox, &sipClass_QVGroupBox, -1, -1}, - {sipName_QVButtonGroup, &sipClass_QVButtonGroup, -1, 65}, - {sipName_QHButtonGroup, &sipClass_QHButtonGroup, -1, -1}, -#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_ICONVIEW) - {sipName_QIconView, &sipClass_QIconView, -1, 67}, -#else - {NULL, NULL, -1, 67}, -#endif - {sipName_QListView, &sipClass_QListView, -1, 68}, - {sipName_QListBox, &sipClass_QListBox, -1, 69}, -#if QT_VERSION >= 0x030000 - {sipName_QGridView, &sipClass_QGridView, -1, 70}, -#else - {NULL, NULL, -1, 70}, -#endif -#if QT_VERSION >= 0x030000 - {sipName_QTextEdit, &sipClass_QTextEdit, 71, -1}, -#else - {NULL, NULL, -1, -1}, -#endif - {sipName_QTextBrowser, &sipClass_QTextBrowser, -1, 72}, - {sipName_QMultiLineEdit, &sipClass_QMultiLineEdit, -1, 73}, - {sipName_QTextView, &sipClass_QTextView, -1, -1}, - {sipName_QVBox, &sipClass_QVBox, -1, -1}, - {sipName_QToolButton, &sipClass_QToolButton, -1, 76}, - {sipName_QRadioButton, &sipClass_QRadioButton, -1, 77}, - {sipName_QPushButton, &sipClass_QPushButton, -1, 78}, - {sipName_QCheckBox, &sipClass_QCheckBox, -1, -1}, -#if defined(WS_X11) && defined(SIP_FEATURE_Qt_PRINTDIALOG) - {sipName_QPrintDialog, &sipClass_QPrintDialog, -1, 80}, -#else - {NULL, NULL, -1, 80}, -#endif -#if QT_VERSION >= 0x030000 - {sipName_QErrorMessage, &sipClass_QErrorMessage, -1, 81}, -#else - {NULL, NULL, -1, 81}, -#endif -#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_INPUTDIALOG) - {sipName_QInputDialog, &sipClass_QInputDialog, -1, 82}, -#else - {NULL, NULL, -1, 82}, -#endif -#if defined(SIP_FEATURE_Qt_MESSAGEBOX) - {sipName_QMessageBox, &sipClass_QMessageBox, -1, 83}, -#else - {NULL, NULL, -1, 83}, -#endif -#if defined(SIP_FEATURE_Qt_WIZARD) - {sipName_QWizard, &sipClass_QWizard, -1, 84}, -#else - {NULL, NULL, -1, 84}, -#endif -#if defined(SIP_FEATURE_Qt_COLORDIALOG) - {sipName_QColorDialog, &sipClass_QColorDialog, -1, 85}, -#else - {NULL, NULL, -1, 85}, -#endif -#if defined(SIP_FEATURE_Qt_FONTDIALOG) - {sipName_QFontDialog, &sipClass_QFontDialog, -1, 86}, -#else - {NULL, NULL, -1, 86}, -#endif -#if defined(SIP_FEATURE_Qt_FILEDIALOG) - {sipName_QFileDialog, &sipClass_QFileDialog, -1, 87}, -#else - {NULL, NULL, -1, 87}, -#endif -#if defined(SIP_FEATURE_Qt_PROGRESSDIALOG) - {sipName_QProgressDialog, &sipClass_QProgressDialog, -1, 88}, -#else - {NULL, NULL, -1, 88}, -#endif -#if defined(SIP_FEATURE_Qt_TABDIALOG) - {sipName_QTabDialog, &sipClass_QTabDialog, -1, -1}, -#else - {NULL, NULL, -1, -1}, -#endif -#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_ACTION) - {sipName_QActionGroup, &sipClass_QActionGroup, -1, -1}, -#else - {NULL, NULL, -1, -1}, -#endif - {sipName_QGridLayout, &sipClass_QGridLayout, -1, 91}, - {sipName_QBoxLayout, &sipClass_QBoxLayout, 92, -1}, - {sipName_QHBoxLayout, &sipClass_QHBoxLayout, -1, 93}, - {sipName_QVBoxLayout, &sipClass_QVBoxLayout, -1, -1}, - {sipName_QDoubleValidator, &sipClass_QDoubleValidator, -1, 95}, - {sipName_QIntValidator, &sipClass_QIntValidator, -1, 96}, -#if QT_VERSION >= 0x030000 - {sipName_QRegExpValidator, &sipClass_QRegExpValidator, -1, -1}, -#else - {NULL, NULL, -1, -1}, -#endif - {sipName_QTextDrag, &sipClass_QTextDrag, -1, 98}, - {sipName_QStoredDrag, &sipClass_QStoredDrag, 101, 99}, -#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_ICONVIEW) && defined(SIP_FEATURE_Qt_DRAGANDDROP) - {sipName_QIconDrag, &sipClass_QIconDrag, -1, 100}, -#else - {NULL, NULL, -1, 100}, -#endif - {sipName_QImageDrag, &sipClass_QImageDrag, -1, -1}, -#if QT_VERSION >= 210 - {sipName_QColorDrag, &sipClass_QColorDrag, -1, 102}, -#else - {NULL, NULL, -1, 102}, -#endif - {sipName_QUriDrag, &sipClass_QUriDrag, -1, -1}, - {sipName_QCommonStyle, &sipClass_QCommonStyle, 104, -1}, -#if defined(SIP_FEATURE_Qt_STYLE_WINDOWS) - {sipName_QWindowsStyle, &sipClass_QWindowsStyle, 106, 105}, -#else - {NULL, NULL, -1, 105}, -#endif -#if defined(SIP_FEATURE_Qt_STYLE_MOTIF) - {sipName_QMotifStyle, &sipClass_QMotifStyle, 107, -1}, -#else - {NULL, NULL, -1, -1}, -#endif -#if defined(SIP_FEATURE_Qt_STYLE_PLATINUM) - {sipName_QPlatinumStyle, &sipClass_QPlatinumStyle, -1, 110}, -#else - {NULL, NULL, -1, 110}, -#endif -#if defined(SIP_FEATURE_Qt_STYLE_CDE) - {sipName_QCDEStyle, &sipClass_QCDEStyle, -1, 108}, -#else - {NULL, NULL, -1, 108}, -#endif -#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_STYLE_MOTIFPLUS) - {sipName_QMotifPlusStyle, &sipClass_QMotifPlusStyle, -1, 109}, -#else - {NULL, NULL, -1, 109}, -#endif -#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_STYLE_SGI) - {sipName_QSGIStyle, &sipClass_QSGIStyle, -1, -1}, -#else - {NULL, NULL, -1, -1}, -#endif -#if defined(PYQT_STYLE_WINDOWSXP) - {sipName_QWindowsXPStyle, &sipClass_QWindowsXPStyle, -1, -1}, -#else - {NULL, NULL, -1, -1}, -#endif - }; - - int i = 0; - - sipClass = NULL; - - do - { - struct class_graph *cg = &graph[i]; - - if (cg->name != NULL && sipCpp->inherits(cg->name)) - { - sipClass = *cg->type; - i = cg->yes; - } - else - i = cg->no; - } - while (i >= 0); -%End - - // This is really virtual. With the way we are implementing it doesn't - // need to be and has the advantage that the C++ implementation can be - // used in %ConvertToSubClassCode to get the C++ name for Python - // sub-classes. However, it is also means that C++ plugins can't get - // the true (Python) class name. - SIP_PYOBJECT className() const; -%MethodCode - sipRes = sipClassName(sipSelf); -%End - -%If (- Qt_3_0_0) - static QString tr(const char *) /AutoGen=Qt_TRANSLATION/; -%End -%If (Qt_2_2_0 - Qt_2_3_1) - // There was an apparent bug in moc prior to Qt v2.3.1 where this - // method wasn't automatically generated. - - static QString tr(const char *,const char *); -%End -%If (Qt_2_3_1 - Qt_3_0_0) - static QString tr(const char *,const char *) /AutoGen=Qt_TRANSLATION/; -%End -%If (Qt_3_0_0 -) - // Note that tr() and trUtf8() are really static methods. We pretend - // they aren't so that we can use self to get hold of the class name. - // We could mimic moc's behaviour more accurately by creating tr() and - // trUtf8() methods for a Python sub-class instance in the sub-class's - // ctor. - - QString tr(const char *,const char * = 0); -%MethodCode - PyObject *nmobj; - - if ((nmobj = sipClassName(sipSelf)) == NULL) - sipIsErr = 1; - else - { - char *cname = PyString_AsString(nmobj); - - Py_BEGIN_ALLOW_THREADS - - if (cname && qApp) - sipRes = new QString(qApp -> translate(cname,a0,a1,QApplication::DefaultCodec)); - else - sipRes = new QString(QString::fromLatin1(a0)); - - Py_END_ALLOW_THREADS - - Py_DECREF(nmobj); - } -%End - - QString trUtf8(const char *,const char * = 0); -%MethodCode - PyObject *nmobj; - - if ((nmobj = sipClassName(sipSelf)) == NULL) - sipIsErr = 1; - else - { - char *cname = PyString_AsString(nmobj); - - Py_BEGIN_ALLOW_THREADS - - if (cname && qApp) - sipRes = new QString(qApp -> translate(cname,a0,a1,QApplication::UnicodeUTF8)); - else - sipRes = new QString(QString::fromUtf8(a0)); - - Py_END_ALLOW_THREADS - - Py_DECREF(nmobj); - } -%End -%End - virtual QMetaObject *metaObject() const /AutoGen/; - virtual bool event(QEvent *); - virtual bool eventFilter(QObject *,QEvent *); - - bool isA(const char *) const; -%MethodCode - // The Qt implementation doesn't know anything about Python - // sub-classes. For SIP v4 we use the Python type's name. For - // SIP v3 we use the broken Qt behaviour as it's deprecated and - // we want to keep things simple. - -#if SIP_VERSION >= 0x040000 - sipRes = (strcmp(sipSelf -> ob_type -> tp_name,a0) == 0); -#else - Py_BEGIN_ALLOW_THREADS - sipRes = sipCpp -> QObject::isA(a0); - Py_END_ALLOW_THREADS -#endif -%End - - bool inherits(const char *) const; -%MethodCode - // The Qt implementation doesn't know anything about Python - // sub-classes. For SIP v4 we use the Python type's MRO. For - // SIP v3 we use the broken Qt behaviour as it's deprecated and - // we want to keep things simple. - -#if SIP_VERSION >= 0x040000 - PyObject *mro = sipSelf -> ob_type -> tp_mro; - - sipRes = 0; - - for (int i = 0; i < PyTuple_GET_SIZE(mro); ++i) - if (strcmp(((PyTypeObject *)PyTuple_GET_ITEM(mro,i)) -> tp_name,a0) == 0) - { - sipRes = 1; - break; - } -#else - Py_BEGIN_ALLOW_THREADS - sipRes = sipCpp -> QObject::inherits(a0); - Py_END_ALLOW_THREADS -#endif -%End - -%If (- Qt_3_0_0) - QStringList superClasses(bool = 0) const; -%End - const char *name() const; - const char *name(const char *) const; - virtual void setName(const char *); - bool isWidgetType() const; - bool highPriority() const; - bool signalsBlocked() const; - void blockSignals(bool); - int startTimer(int); - void killTimer(int); - void killTimers(); -%If (- Qt_3_0_0) - QObject *child(const char *,const char * = 0); -%End -%If (Qt_3_0_0 -) - QObject *child(const char *,const char * = 0,bool = 1); -%End - const QObjectList *children() const; -%If (Qt_2_1_0 -) - static const QObjectList *objectTrees(); -%End -%If (- Qt_3_0_0) - QObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1); -%End - -%If (Qt_3_0_0 -) - QObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1) const; -%MethodCode - // The Qt implementation doesn't know anything about Python - // sub-classes. For SIP v4 we get all classes and then use the - // Python type's MRO to weed out those we don't want. For SIP - // v3 we use the broken Qt behaviour as it's deprecated and we - // want to keep things simple. - -#if SIP_VERSION >= 0x040000 - sipRes = sipCpp -> QObject::queryList(0, a1, a2, a3); - - if (a0 && sipRes) - { - QObject *o = sipRes -> first(); - - while (o) - { - bool remove = TRUE; - PyObject *pyo = sipConvertFromInstance(o, sipClass_QObject, 0); - - if (pyo) - { - PyObject *mro = pyo -> ob_type -> tp_mro; - - for (int i = 0; i < PyTuple_GET_SIZE(mro); ++i) - if (strcmp(((PyTypeObject *)PyTuple_GET_ITEM(mro,i)) -> tp_name,a0) == 0) - { - remove = FALSE; - break; - } - - Py_DECREF(pyo); - } - - if (remove) - { - sipRes -> remove(); - o = sipRes -> current(); - } - else - o = sipRes -> next(); - } - } -#else - Py_BEGIN_ALLOW_THREADS - sipRes = sipCpp -> QObject::queryList(a0, a1, a2, a3); - Py_END_ALLOW_THREADS -#endif -%End -%End - - virtual void insertChild(QObject * /Transfer/); - virtual void removeChild(QObject * /TransferBack/); - void installEventFilter(const QObject *); - void removeEventFilter(const QObject *); - - static SIP_PYOBJECT connect(SIP_QOBJECT,SIP_SIGNAL,SIP_QOBJECT,SIP_SLOT); -%MethodCode - sipRes = sipConnectRx(a0,a1,a2,a3,0); -%End - - static SIP_PYOBJECT connect(SIP_QOBJECT,SIP_SIGNAL,SIP_PYCALLABLE); -%MethodCode - sipRes = sipConnectRx(a0,a1,a2,0,0); -%End - - SIP_PYOBJECT connect(SIP_QOBJECT,SIP_SIGNAL,SIP_SLOT) const; -%MethodCode - sipRes = sipConnectRx(a0,a1,sipSelf,a2,0); -%End - - static SIP_PYOBJECT disconnect(SIP_QOBJECT,SIP_SIGNAL,SIP_QOBJECT,SIP_SLOT); -%MethodCode - sipRes = sipDisconnectRx(a0,a1,a2,a3); -%End - - static SIP_PYOBJECT disconnect(SIP_QOBJECT,SIP_SIGNAL,SIP_PYCALLABLE); -%MethodCode - sipRes = sipDisconnectRx(a0,a1,a2,0); -%End - -// bool disconnect(const char * = 0,const QObject * = 0,const char * = 0); -// bool disconnect(const QObject *,const char * = 0); - void dumpObjectTree(); - void dumpObjectInfo(); - QObject *parent() const; - - void emit(SIP_SIGNAL,SIP_PYTUPLE); -%MethodCode - if (sipEmitSignal(sipSelf,a0,a1) < 0) - sipIsErr = 1; -%End - -%If (Qt_PROPERTIES) -%If (Qt_2_1_0 - Qt_3_0_0) - bool setProperty(const char *,const QVariant &); - QVariant property(const char *) const; -%End -%If (Qt_3_0_0 -) - virtual bool setProperty(const char *,const QVariant &); - virtual QVariant property(const char *) const; -%End -%End - -signals: - void destroyed(); -%If (Qt_3_0_0 -) - void destroyed(QObject *); -%End - -public slots: -%If (Qt_3_0_0 -) - void deleteLater(); -%End - -public: - // This is actually protected, but we never need to call the real - // method. - SIP_PYOBJECT sender(); -%MethodCode - sipRes = sipGetSender(); -%End - -protected: - virtual void timerEvent(QTimerEvent *); - virtual void childEvent(QChildEvent *); -%If (Qt_3_0_0 -) - virtual void customEvent(QCustomEvent *); -%End - -private: - QObject(const QObject &); -}; - - -SIP_PYOBJECT QT_TR_NOOP(SIP_PYOBJECT); -%MethodCode - Py_INCREF(a0); - sipRes = a0; -%End - - -SIP_PYOBJECT QT_TRANSLATE_NOOP(SIP_PYOBJECT,SIP_PYOBJECT); -%MethodCode - Py_INCREF(a1); - sipRes = a1; -%End - -%End - - -%If (- Qt_2_00) - -class QObject -{ -%TypeHeaderCode -#include -%End - -public: - QObject(QObject * /TransferThis/ = 0,const char * = 0); - -%ConvertToSubClassCode - // The table of Python class objects indexed by their names. The table - // must be sorted by name. - - static sipStringTypeClassMap map[] = { - {sipName_QAccel, &sipClass_QAccel}, - {sipName_QApplication, &sipClass_QApplication}, - {sipName_QBoxLayout, &sipClass_QBoxLayout}, - {sipName_QButton, &sipClass_QButton}, - {sipName_QButtonGroup, &sipClass_QButtonGroup}, - {sipName_QCheckBox, &sipClass_QCheckBox}, -#if defined(SIP_FEATURE_Qt_CLIPBOARD) - {sipName_QClipboard, &sipClass_QClipboard}, -#endif - {sipName_QComboBox, &sipClass_QComboBox}, - {sipName_QDialog, &sipClass_QDialog}, - {sipName_QDoubleValidator, &sipClass_QDoubleValidator}, - {sipName_QDragObject, &sipClass_QDragObject}, -#if defined(SIP_FEATURE_Qt_FILEDIALOG) - {sipName_QFileDialog, &sipClass_QFileDialog}, - {sipName_QFileIconProvider, &sipClass_QFileIconProvider}, -#endif - {sipName_QFrame, &sipClass_QFrame}, - {sipName_QGridLayout, &sipClass_QGridLayout}, - {sipName_QGroupBox, &sipClass_QGroupBox}, - {sipName_QHBoxLayout, &sipClass_QHBoxLayout}, - {sipName_QHeader, &sipClass_QHeader}, - {sipName_QImageDrag, &sipClass_QImageDrag}, - {sipName_QIntValidator, &sipClass_QIntValidator}, - {sipName_QLCDNumber, &sipClass_QLCDNumber}, - {sipName_QLabel, &sipClass_QLabel}, - {sipName_QLayout, &sipClass_QLayout}, - {sipName_QLineEdit, &sipClass_QLineEdit}, - {sipName_QListBox, &sipClass_QListBox}, - {sipName_QListView, &sipClass_QListView}, - {sipName_QMainWindow, &sipClass_QMainWindow}, - {sipName_QMenuBar, &sipClass_QMenuBar}, -#if defined(SIP_FEATURE_Qt_MESSAGEBOX) - {sipName_QMessageBox, &sipClass_QMessageBox}, -#endif - {sipName_QMultiLineEdit, &sipClass_QMultiLineEdit}, - {sipName_QPopupMenu, &sipClass_QPopupMenu}, -#if defined(WS_X11) && defined(SIP_FEATURE_Qt_PRINTDIALOG) - {sipName_QPrintDialog, &sipClass_QPrintDialog}, -#endif - {sipName_QProgressBar, &sipClass_QProgressBar}, -#if defined(SIP_FEATURE_Qt_PROGRESSDIALOG) - {sipName_QProgressDialog, &sipClass_QProgressDialog}, -#endif - {sipName_QPushButton, &sipClass_QPushButton}, - {sipName_QRadioButton, &sipClass_QRadioButton}, - {sipName_QScrollBar, &sipClass_QScrollBar}, - {sipName_QScrollView, &sipClass_QScrollView}, - {sipName_QSlider, &sipClass_QSlider}, - {sipName_QSocketNotifier, &sipClass_QSocketNotifier}, - {sipName_QSpinBox, &sipClass_QSpinBox}, -#if defined(SIP_FEATURE_Qt_SPLITTER) - {sipName_QSplitter, &sipClass_QSplitter}, -#endif - {sipName_QStatusBar, &sipClass_QStatusBar}, - {sipName_QStoredDrag, &sipClass_QStoredDrag}, - {sipName_QTabBar, &sipClass_QTabBar}, - {sipName_QTextDrag, &sipClass_QTextDrag}, - {sipName_QTimer, &sipClass_QTimer}, - {sipName_QToolBar, &sipClass_QToolBar}, - {sipName_QToolButton, &sipClass_QToolButton}, - {sipName_QToolTipGroup, &sipClass_QToolTipGroup}, - {sipName_QVBoxLayout, &sipClass_QVBoxLayout}, - {sipName_QValidator, &sipClass_QValidator}, - {sipName_QWidget, &sipClass_QWidget}, - {sipName_QWidgetStack, &sipClass_QWidgetStack} - }; - - sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); -%End - - static SIP_PYOBJECT connect(SIP_QOBJECT,SIP_SIGNAL,SIP_QOBJECT,SIP_SLOT); -%MethodCode - sipRes = sipConnectRx(a0,a1,a2,a3,0); -%End - - static SIP_PYOBJECT connect(SIP_QOBJECT,SIP_SIGNAL,SIP_PYCALLABLE); -%MethodCode - sipRes = sipConnectRx(a0,a1,a2,0,0); -%End - - static SIP_PYOBJECT disconnect(SIP_QOBJECT,SIP_SIGNAL,SIP_QOBJECT,SIP_SLOT); -%MethodCode - sipRes = sipDisconnectRx(a0,a1,a2,a3); -%End - - static SIP_PYOBJECT disconnect(SIP_QOBJECT,SIP_SIGNAL,SIP_PYCALLABLE); -%MethodCode - sipRes = sipDisconnectRx(a0,a1,a2,0); -%End - - virtual bool event(QEvent *); - virtual bool eventFilter(QObject *,QEvent *); - const char *tr(const char *) const; - virtual QMetaObject *metaObject() const /AutoGen/; - - // This is actually virtual. However, with the way we are implementing - // it we can ignore it. - SIP_PYOBJECT className() const; -%MethodCode - sipRes = sipClassName(sipSelf); -%End - - bool isA(const char *) const; - bool inherits(const char *) const; - const char *name() const; - const char *name(const char *) const; - void setName(const char *); - bool isWidgetType() const; - bool highPriority() const; - bool signalsBlocked() const; - void blockSignals(bool); - int startTimer(int); - void killTimer(int); - void killTimers(); - const QObjectList *children() const; - QObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1); - void insertChild(QObject * /Transfer/); - void removeChild(QObject * /TransferBack/); - void installEventFilter(const QObject *); - void removeEventFilter(const QObject *); -// bool connect(QObject *,const char *,const char *); -// bool disconnect(const char * = 0,const QObject * = 0,const char * = 0); -// bool disconnect(const QObject *,const char * = 0); - void dumpObjectTree(); - void dumpObjectInfo(); - QObject *parent() const; - - void emit(SIP_SIGNAL,SIP_PYTUPLE); -%MethodCode - if (sipEmitSignal(sipSelf,a0,a1) < 0) - sipIsErr = 1; -%End - -signals: - void destroyed(); - -public: - // This is actually protected, but we never need to call the real - // method. - SIP_PYOBJECT sender(); -%MethodCode - sipRes = sipGetSender(); -%End - -protected: - virtual void timerEvent(QTimerEvent *); - -private: - QObject(const QObject &); -}; - -%End - - -SIP_PYOBJECT SLOT(const char *); -%MethodCode - if (!a0) - { - PyErr_Format(PyExc_TypeError,"qt.SLOT() slot name cannot be None"); - sipIsErr = 1; - } - else - { - int len = strlen(a0); - - if ((sipRes = PyString_FromStringAndSize(NULL,1 + len)) == NULL) - sipIsErr = 1; - else - { - char *dp = PyString_AS_STRING(sipRes); - - *dp++ = '1'; - - memcpy(dp,a0,len + 1); - } - } -%End - - -SIP_PYOBJECT SIGNAL(const char *); -%MethodCode - if (!a0) - { - PyErr_Format(PyExc_TypeError,"qt.SIGNAL() signal cannot be None"); - sipIsErr = 1; - } - else - { - int len = strlen(a0); - - if ((sipRes = PyString_FromStringAndSize(NULL,1 + len)) == NULL) - sipIsErr = 1; - else - { - char *dp = PyString_AS_STRING(sipRes); - - *dp++ = '2'; - - memcpy(dp,a0,len + 1); - } - } -%End - - -SIP_PYOBJECT PYSIGNAL(const char *); -%MethodCode - if (!a0) - { - PyErr_Format(PyExc_TypeError,"qt.PYSIGNAL() signal cannot be None"); - sipIsErr = 1; - } - else - { - int len = strlen(a0); - - if ((sipRes = PyString_FromStringAndSize(NULL,1 + len)) == NULL) - sipIsErr = 1; - else - { - char *dp = PyString_AS_STRING(sipRes); - - *dp++ = '9'; - - memcpy(dp,a0,len + 1); - } - } -%End - - -// This is Qt support code for SIP v4.4 and later. -%ModuleCode - -#include -#include -#include -#include -#include - - -// This class is used as a slot on behalf of connections to a Python callable. -// It is derived from QObject but is not run through moc. Instead the normal -// moc-generated methods are handwritten in order to implement a universal -// slot. This requires some knowledge of the internal implementation of -// signals and slots but it is likely that they will only change between major -// Qt versions. -class UniversalSlot : public QObject -{ -public: - UniversalSlot(QObject *qtx, sipSlotConnection *conn, const char **member); - ~UniversalSlot(); - - virtual QMetaObject *metaObject() const - { - return staticMetaObject(); - } - - virtual bool qt_invoke(int, QUObject *args); - static QMetaObject *staticMetaObject(); - - static const QObject *lastSender; - - static UniversalSlot *unislots; - UniversalSlot *nextus, *prevus; - sipSlotConnection conn; - -private: - static QMetaObject *metaObj; -}; - - -// Create a universal slot. Note that this will leak if there is no signal -// transmitter (ie. no parent) - QTimer.singleShot() for example. -UniversalSlot::UniversalSlot(QObject *qtx, sipSlotConnection *connection, const char **member) : QObject() -{ - // Save the connection. - conn = *connection; - - // Detect when the transmitter is destroyed. - if (qtx) - connect(qtx, SIGNAL(destroyed(QObject *)), SLOT(deleteLater())); - - // Return the slot to connect to. - *member = SLOT(unislot()); - - // Add this one to the global list. - nextus = unislots; - - if (nextus) - nextus -> prevus = this; - - prevus = 0; - unislots = this; -} - - -// Destroy a universal slot. -UniversalSlot::~UniversalSlot() -{ - sipFreeConnection(&conn); - - // Remove this one from the global list. - if (nextus) - nextus -> prevus = prevus; - - if (prevus) - prevus -> nextus = nextus; - else - unislots = nextus; -} - - -QMetaObject *UniversalSlot::metaObj = 0; - -#if QT_VERSION >= 0x030100 -static QMetaObjectCleanUp cleanUp_UniversalSlot("UniversalSlot", &UniversalSlot::staticMetaObject); -#else -static QMetaObjectCleanUp cleanUp_UniversalSlot; -#endif - -const QObject *UniversalSlot::lastSender = 0; -UniversalSlot *UniversalSlot::unislots = 0; - - -QMetaObject *UniversalSlot::staticMetaObject() -{ - if (metaObj) - return metaObj; - - // Define a single slot that takes no arguments and so will accept any - // connection. - static const QUMethod slot = {"unislot", 0, 0}; - static const QMetaData slot_tbl[] = { - {"unislot()", &slot, QMetaData::Public} - }; - - metaObj = QMetaObject::new_metaobject( - "UniversalSlot", QObject::staticMetaObject(), - slot_tbl, 1, - 0, 0, -#ifndef QT_NO_PROPERTIES - 0, 0, - 0, 0, -#endif - 0, 0); - - cleanUp_UniversalSlot.setMetaObject(metaObj); - - return metaObj; -} - - -bool UniversalSlot::qt_invoke(int id, QUObject *qargs) -{ - if (id - staticMetaObject()->slotOffset() != 0) - return QObject::qt_invoke(id, qargs); - - bool ok = TRUE; - const sipSignature *psig = conn.sc_signature; - QVariant *qv; - - // Save in case it is asked for later. - lastSender = sender(); - - // If the sender was a QSignal then the single argument will be wrapped - // in a QVariant instance. At the moment we handle int argument as - // that is all that is needed by PyQt (and PyKDE). - if (lastSender -> inherits("QSignal")) - qv = &static_QUType_QVariant.get(qargs + 1); - else - qv = 0; - -#ifdef WITH_THREAD - PyGILState_STATE state = PyGILState_Ensure(); -#endif - - PyObject *argtup = PyTuple_New(psig->sg_nrargs); - - if (!argtup) - ok = FALSE; - else - { - for (int a = 0; a < psig->sg_nrargs; ++a) - { - PyObject *arg; - - ++qargs; - - switch (psig->sg_args[a].atype) - { - case char_sat: - case schar_sat: - case uchar_sat: - arg = PyString_FromStringAndSize((char *)static_QUType_ptr.get(qargs), 1); - break; - - case string_sat: - case sstring_sat: - case ustring_sat: - arg = PyString_FromString((char *)static_QUType_ptr.get(qargs)); - break; - - case short_sat: - arg = PyInt_FromLong(*(short *)static_QUType_ptr.get(qargs)); - break; - - case ushort_sat: - arg = PyLong_FromUnsignedLong(*(unsigned short *)static_QUType_ptr.get(qargs)); - break; - - case int_sat: - if (qv) - arg = PyInt_FromLong(qv -> asInt()); - else - arg = PyInt_FromLong(static_QUType_int.get(qargs)); - break; - - case uint_sat: - arg = PyLong_FromUnsignedLong(*(unsigned *)static_QUType_ptr.get(qargs)); - break; - - case long_sat: - arg = PyLong_FromLong(*(long *)static_QUType_ptr.get(qargs)); - break; - - case ulong_sat: - arg = PyLong_FromUnsignedLong(*(unsigned long *)static_QUType_ptr.get(qargs)); - break; - - case longlong_sat: - arg = PyLong_FromLongLong(*(PY_LONG_LONG *)static_QUType_ptr.get(qargs)); - break; - - case ulonglong_sat: - arg = PyLong_FromUnsignedLongLong(*(unsigned PY_LONG_LONG *)static_QUType_ptr.get(qargs)); - break; - - case float_sat: - arg = PyFloat_FromDouble(*(float *)static_QUType_ptr.get(qargs)); - break; - - case double_sat: - arg = PyFloat_FromDouble(static_QUType_double.get(qargs)); - break; - - case enum_sat: - arg = sipConvertFromNamedEnum(*(int *)static_QUType_ptr.get(qargs), psig->sg_args[a].u.et); - break; - - case bool_sat: - arg = PyInt_FromLong(static_QUType_bool.get(qargs)); - break; - - case void_sat: - arg = sipConvertFromVoidPtr((void *)static_QUType_ptr.get(qargs)); - break; - - case class_sat: - case classp_sat: - arg = sipConvertFromInstance((void *)static_QUType_ptr.get(qargs),psig->sg_args[a].u.wt,0); - break; - - case mtype_sat: - case mtypep_sat: - arg = sipConvertFromMappedType((void *)static_QUType_ptr.get(qargs),psig->sg_args[a].u.mt,0); - break; - - case qvariant_sat: - case qvariantp_sat: - arg = sipConvertFromInstance((void *)&static_QUType_QVariant.get(qargs),sipClass_QVariant,0); - break; - - case pyobject_sat: - arg = (PyObject *)static_QUType_ptr.get(qargs); - break; - - default: - arg = Py_NotImplemented; - Py_INCREF(Py_NotImplemented); - } - - PyTuple_SET_ITEM(argtup, a, arg); - } - - // Dispatch to the real slot. - if (ok && sipEmitToSlot(&conn.sc_slot, argtup) < 0) - ok = FALSE; - - Py_DECREF(argtup); - } - - if (!ok) - PyErr_Print(); - -#ifdef WITH_THREAD - PyGILState_Release(state); -#endif - - return ok; -} - - -// Declare explicit C linkage. -extern "C" -{ - static void *sipQtCreateUniversalSlot(sipWrapper *, sipSlotConnection *, const char **); - static void sipQtDestroyUniversalSlot(void *); - static void *sipQtFindSlot(void *, const char *, PyObject *, const char *, const char **); - static int sipQtConnect(void *, const char *, void *, const char *, int); - static int sipQtDisconnect(void *, const char *, void *, const char *); - static int sipQtSignalsBlocked(void *); - static const void *sipQtGetSender(); - static void sipQtForgetSender(); - static int sipQtSameSignalSlotName(const char *, const char *); - static sipSlotConnection *sipQtFindConnection(void *, void **); -} - - -// Factory function to create a universal slot instance. Returns a pointer to -// the instance or 0 if there was an error. -static void *sipQtCreateUniversalSlot(sipWrapper *tx, sipSlotConnection *conn, const char **member) -{ - QObject *qtx = 0; - - // See if the transmitter is a QObject in which case we will connect - // to it's destroyed signal so that the universal slot can be destroyed - // at the same time. (Note that we used to do this by making the - // universal slot a child of the transmitter. This doesn't work as - // expected because QWidget destroys its children before emitting the - // destroyed signal.) - if (tx && PyObject_TypeCheck(tx, (PyTypeObject *)sipClass_QObject)) - qtx = reinterpret_cast(conn->sc_transmitter); - - return new UniversalSlot(qtx, conn, member); -} - - -// Dispose of a receiver that might be a universal slot. -static void sipQtDestroyUniversalSlot(void *rx) -{ - for (UniversalSlot *us = UniversalSlot::unislots; us; us = us->nextus) - if (us == reinterpret_cast(rx)) - { - delete us; - break; - } -} - - -// Search for the universal slot connected to a particular Qt signal. -static void *sipQtFindSlot(void *tx, const char *sig, PyObject *rxObj, const char *slot, const char **member) -{ - for (UniversalSlot *us = UniversalSlot::unislots; us; us = us->nextus) - if (sipSameConnection(&us->conn, tx, sig, rxObj, slot)) - { - *member = SLOT(unislot()); - return us; - } - - return 0; -} - - -// Connect a Qt signal to a Qt slot. -static int sipQtConnect(void *tx, const char *sig, void *rx, const char *slot, int) -{ - return QObject::connect(reinterpret_cast(tx), sig, - reinterpret_cast(rx), slot); -} - - -// Disconnect a Qt signal from a Qt slot. -static int sipQtDisconnect(void *tx, const char *sig, void *rx, const char *slot) -{ - return QObject::disconnect(reinterpret_cast(tx), sig, - reinterpret_cast(rx), slot); -} - - -// See if signals are currently blocked for a QObject. -static int sipQtSignalsBlocked(void *qobj) -{ - return reinterpret_cast(qobj)->signalsBlocked(); -} - - -// Get the last sender for QObject::sender(). -static const void *sipQtGetSender() -{ - return UniversalSlot::lastSender; -} - - -// Forget the last sender. -static void sipQtForgetSender() -{ - UniversalSlot::lastSender = 0; -} - - -// See if two signal or slot names are the same. -static int sipQtSameSignalSlotName(const char *s1, const char *s2) -{ - // moc formats signal names, so we should first convert the supplied - // string to the same format before comparing them. Instead we just - // compare them as they are, but ignoring all spaces - this will have - // the same result. - do - { - // Skip any spaces. - - while (*s1 == ' ') - ++s1; - - while (*s2 == ' ') - ++s2; - - if (*s1++ != *s2) - return 0; - } - while (*s2++ != '\0'); - - return 1; -} - - -// Return the next connection for a particular transmitter. This will be -// called with the GIL locked. -static sipSlotConnection *sipQtFindConnection(void *tx, void **context) -{ - UniversalSlot *us = *reinterpret_cast(context); - - if (!us) - us = UniversalSlot::unislots; - - sipSlotConnection *conn = 0; - - while (us) - { - sipSlotConnection *this_conn = &us->conn; - - us = us->nextus; - - if (this_conn->sc_transmitter == tx) - { - conn = this_conn; - break; - } - } - - *context = us; - - return conn; -} - -%End diff --git a/python/pyqt/sip/qt/qobjectcleanuphandler.sip b/python/pyqt/sip/qt/qobjectcleanuphandler.sip deleted file mode 100644 index 37ff4470..00000000 --- a/python/pyqt/sip/qt/qobjectcleanuphandler.sip +++ /dev/null @@ -1,49 +0,0 @@ -// This is the SIP interface definition for QObjectCleanupHandler. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QObjectCleanupHandler (Qt v3+) - -QObjectCleanupHandler is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QObjectCleanupHandler : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QObjectCleanupHandler(); - - QObject *add(QObject *); - void remove(QObject *); - bool isEmpty() const; - void clear(); -}; - -%End diff --git a/python/pyqt/sip/qt/qobjectlist.sip b/python/pyqt/sip/qt/qobjectlist.sip deleted file mode 100644 index f6907d0f..00000000 --- a/python/pyqt/sip/qt/qobjectlist.sip +++ /dev/null @@ -1,108 +0,0 @@ -// This is the SIP interface definition for QObjectList. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QObjectList - -This class isn't implemented. Whenever a QObjectList is the -return type of a function or the type of an argument, a Python list of -QObject instances is used instead. - - -%End - - -%MappedType QObjectList -{ -%TypeHeaderCode -#include -#include "sipqtQObject.h" -%End - -%ConvertFromTypeCode - // Convert the list. - - PyObject *pl; - QObject *obj; - - if ((pl = PyList_New(0)) == NULL) - return NULL; - - for (QObjectListIt it(*sipCpp); (obj = it.current()) != NULL; ++it) - { - PyObject *inst; - - if ((inst = sipConvertFromInstance(obj,sipClass_QObject,sipTransferObj)) == NULL || PyList_Append(pl,inst) < 0) - { - Py_XDECREF(inst); - Py_DECREF(pl); - - return NULL; - } - - Py_DECREF(inst); - } - - return pl; -%End - -%ConvertToTypeCode - // Convert a Python list of QObject instances to a QObjectList on the - // heap. - - if (sipIsErr == NULL) - { - if (!PyList_Check(sipPy)) - return 0; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QObject,0)) - return 0; - - return 1; - } - - QObjectList *qol = new QObjectList; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - { - QObject *qobj; - - // We apply the transfer to the list itself, not the elements. - // Note that any temporary element will never be destroyed. - // There is nothing that can be done about this. - qobj = reinterpret_cast(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QObject,0,0,0,sipIsErr)); - - if (*sipIsErr) - { - delete qol; - return 0; - } - - qol -> append(qobj); - } - - *sipCppPtr = qol; - - return sipGetState(sipTransferObj); -%End -}; diff --git a/python/pyqt/sip/qt/qpaintdevice.sip b/python/pyqt/sip/qt/qpaintdevice.sip deleted file mode 100644 index a9d59de2..00000000 --- a/python/pyqt/sip/qt/qpaintdevice.sip +++ /dev/null @@ -1,247 +0,0 @@ -// This is the SIP interface definition for QPaintDevice. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QPaintDevice - - virtual bool cmd - int - QPainter * - QPDevCmdParam * - - -Not implemented. - - -%End - - -%ModuleHeaderCode -#include -%End - - -%If (- Qt_2_00) - -// Painter device types. - -const int PDT_UNDEF; -const int PDT_WIDGET; -const int PDT_PIXMAP; -const int PDT_PRINTER; -const int PDT_PICTURE; -const int PDT_MASK; - -// Painter device flags. - -const int PDF_EXTDEV; -const int PDF_PAINTACTIVE; - - -void bitBlt(QPaintDevice *,int,int,const QPaintDevice *,int = 0,int = 0, - int = -1,int = -1,RasterOp = CopyROP,bool = 0); -void bitBlt(QPaintDevice *,int,int,const QImage *,int = 0,int = 0,int = -1, - int = -1,int = 0); -void bitBlt(QPaintDevice *,const QPoint &,const QPaintDevice *, - const QRect & = QRect(0,0,-1,-1),RasterOp = CopyROP,bool = 0); - -%End - -%If (Qt_2_00 -) - -void bitBlt(QPaintDevice *,int,int,const QPaintDevice *,int = 0,int = 0, - int = -1,int = -1,Qt::RasterOp = Qt::CopyROP,bool = 0); -void bitBlt(QPaintDevice *,int,int,const QImage *,int = 0,int = 0,int = -1, - int = -1,int = 0); -void bitBlt(QPaintDevice *,const QPoint &,const QPaintDevice *, - const QRect & = QRect(0,0,-1,-1),Qt::RasterOp = Qt::CopyROP, - bool = 0); - -%End - - -class QPaintDevice -{ -%TypeHeaderCode -#include -%End - -public: - int devType() const; - bool isExtDev() const; - bool paintingActive() const; - -%If (Qt_3_0_0 -) - virtual void setResolution(int); - virtual int resolution() const; -%End - -%If (- Qt_2_00) - HANDLE handle() const; -%If (WS_X11) - Display *x11Display() const; - static int x11Screen(); - static int x11Depth(); - static int x11Cells(); - static HANDLE x11Colormap(); - static bool x11DefaultColormap(); - static void *x11Visual(); - static bool x11DefaultVisual(); -%End -%End - -%If (Qt_2_00 -) -%If (WS_X11) -%If (- Qt_3_0_0) - HANDLE handle() const; -%End -%If (Qt_3_0_0 -) - Qt::HANDLE handle() const; - Qt::HANDLE x11RenderHandle() const; -%End - Display *x11Display() const; - int x11Screen() const; - int x11Depth() const; - int x11Cells() const; -%If (- Qt_3_0_0) - HANDLE x11Colormap() const; -%End -%If (Qt_3_0_0 -) - Qt::HANDLE x11Colormap() const; -%End - bool x11DefaultColormap() const; - void *x11Visual() const; - bool x11DefaultVisual() const; - - static Display *x11AppDisplay(); - static int x11AppScreen(); - - static int x11AppDpiX(); - static int x11AppDpiY(); -%If (Qt_2_1_0 -) - static void x11SetAppDpiX(int); - static void x11SetAppDpiY(int); -%End - static int x11AppDepth(); - static int x11AppCells(); -%If (Qt_3_1_0 -) - static Qt::HANDLE x11AppRootWindow(); -%End -%If (Qt_3_0_0 -) - static Qt::HANDLE x11AppColormap(); -%End -%If (- Qt_3_0_0) - static HANDLE x11AppColormap(); -%End - static bool x11AppDefaultColormap(); - static void *x11AppVisual(); - static bool x11AppDefaultVisual(); - -%If (Qt_3_1_0 -) - static int x11AppDepth(int); - static int x11AppCells(int); - static Qt::HANDLE x11AppRootWindow(int); - static Qt::HANDLE x11AppColormap(int); - static void *x11AppVisual(int); - static bool x11AppDefaultColormap(int); - static bool x11AppDefaultVisual(int); - static int x11AppDpiX(int); - static int x11AppDpiY(int); - static void x11SetAppDpiX(int,int); - static void x11SetAppDpiY(int,int); -%End -%End - - enum PDevCmd - { - PdcNOP, - PdcDrawPoint, - PdcDrawFirst, - PdcMoveTo, - PdcLineTo, - PdcDrawLine, - PdcDrawRect, - PdcDrawRoundRect, - PdcDrawEllipse, - PdcDrawArc, - PdcDrawPie, - PdcDrawChord, - PdcDrawLineSegments, - PdcDrawPolyline, - PdcDrawPolygon, -%If (Qt_3_0_0 -) - PdcDrawCubicBezier, -%End -%If (- Qt_3_0_0) - PdcDrawQuadBezier, -%End - PdcDrawText, - PdcDrawTextFormatted, - PdcDrawPixmap, - PdcDrawImage, - PdcDrawText2, - PdcDrawText2Formatted, -%If (Qt_3_2_0 -) - PdcDrawTextItem, -%End - PdcDrawLast, - - PdcBegin, - PdcEnd, - PdcSave, - PdcRestore, - PdcSetdev, - PdcSetBkColor, - PdcSetBkMode, - PdcSetROP, - PdcSetBrushOrigin, - PdcSetFont, - PdcSetPen, - PdcSetBrush, - PdcSetTabStops, - PdcSetTabArray, - PdcSetUnit, - PdcSetVXform, - PdcSetWindow, - PdcSetViewport, - PdcSetWXform, - PdcSetWMatrix, - PdcSaveWMatrix, - PdcRestoreWMatrix, - PdcSetClip, - PdcSetClipRegion, - PdcReservedStart, - PdcReservedStop - }; - -%End - -protected: - QPaintDevice(uint); -// virtual bool cmd(int,QPainter *,QPDevCmdParam *); -// virtual int metric(int) const; -// virtual int fontMet(QFont *,int,const char *,int = 0) const; -// virtual int fontInf(QFont *,int) const; - -private: - QPaintDevice(const QPaintDevice &); -}; diff --git a/python/pyqt/sip/qt/qpaintdevicemetrics.sip b/python/pyqt/sip/qt/qpaintdevicemetrics.sip deleted file mode 100644 index d6d6dd27..00000000 --- a/python/pyqt/sip/qt/qpaintdevicemetrics.sip +++ /dev/null @@ -1,55 +0,0 @@ -// This is the SIP interface definition for QPaintDeviceMetrics. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QPaintDeviceMetrics - -QPaintDeviceMetrics is fully implemented. - - -%End - - -class QPaintDeviceMetrics -{ -%TypeHeaderCode -#include -%End - -public: - QPaintDeviceMetrics(const QPaintDevice *); - - int width() const; - int height() const; - int widthMM() const; - int heightMM() const; -%If (Qt_2_00 -) - int logicalDpiX() const; - int logicalDpiY() const; -%End -%If (Qt_3_0_0 -) - int physicalDpiX() const; - int physicalDpiY() const; -%End - int numColors() const; - int depth() const; -}; diff --git a/python/pyqt/sip/qt/qpainter.sip b/python/pyqt/sip/qt/qpainter.sip deleted file mode 100644 index 64a82f3b..00000000 --- a/python/pyqt/sip/qt/qpainter.sip +++ /dev/null @@ -1,676 +0,0 @@ -// This is the SIP interface definition for QPainter. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QPainter - - QRect boundingRect - int x - int y - int w - int h - int flags - const char *str - int len = -1 - char **intern = 0 - - -The intern parameter is not supported. - - - - QRect boundingRect - const QRect& - int flags - const char *str - int len = -1 - char **intern = 0 - - -The intern parameter is not supported. - - - - void drawText - int x - int y - int w - int h - int flags - const char *str - int len = -1 - QRect *br = 0 - char **intern = 0 - - -The intern parameter is not supported. - - - - void drawText - const QRect& - int flags - const char *str - int len = -1 - QRect *br = 0 - char **intern = 0 - - -The intern parameter is not supported. - - - - void setTabArray - int *ta - - -This takes a single parameter which is a list of tab stops. - - - - int *tabArray - - - -This returns a list of tab stops. - - -%End - - -%If (- Qt_2_00) - -%ModuleHeaderCode -#include -%End - -enum BGMode { - TransparentMode, - OpaqueMode -}; - -enum PaintUnit { - PixelUnit, - LoMetricUnit, - HiMetricUnit, - LoEnglishUnit, - HiEnglishUnit, - TwipsUnit -}; - - -class QPainter -{ -%TypeHeaderCode -#include -%End - -public: - QPainter(); - QPainter(const QPaintDevice *); - QPainter(const QPaintDevice *,const QWidget *); - - bool begin(const QPaintDevice *); - bool begin(const QPaintDevice *,const QWidget *); - bool end(); - QPaintDevice *device() const; - - static void redirect(QPaintDevice *,QPaintDevice *); -%If (Qt_3_2_0 -) - static QPaintDevice *redirect(QPaintDevice *); -%End - - bool isActive() const; - void flush(); - void save(); - void restore(); - QFontMetrics fontMetrics() const; - QFontInfo fontInfo() const; - const QFont &font() const; - void setFont(const QFont&); - const QPen &pen() const; - void setPen(const QPen &); - void setPen(PenStyle); - void setPen(const QColor &); - const QBrush &brush() const; - void setBrush(const QBrush &); - void setBrush(BrushStyle); - void setBrush(const QColor &); - const QColor &backgroundColor() const; - void setBackgroundColor(const QColor &); - BGMode backgroundMode() const; - void setBackgroundMode(BGMode); - RasterOp rasterOp() const; - void setRasterOp(RasterOp); - const QPoint &brushOrigin() const; - void setBrushOrigin(int,int); - void setBrushOrigin(const QPoint &); - - bool hasViewXForm() const; - bool hasWorldXForm() const; - - void setViewXForm(bool); - QRect window() const; - void setWindow(const QRect &); - void setWindow(int,int,int,int); - QRect viewport() const; - void setViewport(const QRect &); - void setViewport(int,int,int,int); - - void setWorldXForm(bool); - const QWMatrix &worldMatrix() const; - void setWorldMatrix(const QWMatrix &,bool = 0); - - void scale(float,float); - void shear(float,float); - void rotate(float); - - void translate(float,float); - void resetXForm(); - - QPoint xForm(QPoint &) const; - QRect xForm(QRect &) const; - QPointArray xForm(QPointArray &) const; - QPointArray xForm(QPointArray &,int,int) const; - QPoint xFormDev(QPoint &) const; - QRect xFormDev(QRect &) const; - QPointArray xFormDev(QPointArray &) const; - QPointArray xFormDev(QPointArray &,int,int) const; - void setClipping(bool); - bool hasClipping() const; - const QRegion &clipRegion() const; - void setClipRect(const QRect &); - void setClipRect(int,int,int,int); - void setClipRegion(const QRegion &); - void drawPoint(int,int); - void drawPoint(const QPoint &); - void drawPoints(const QPointArray &,int,int = -1); - void moveTo(int,int); - void moveTo(const QPoint &); - void lineTo(int,int); - void lineTo(const QPoint &); - void drawLine(int,int,int,int); - void drawLine(const QPoint &,const QPoint &); - void drawRect(int,int,int,int); - void drawRect(const QRect &); - void drawWinFocusRect(int,int,int,int); - void drawWinFocusRect(int,int,int,int,const QColor &); - void drawWinFocusRect(const QRect &); - void drawWinFocusRect(const QRect &,const QColor &); - void drawRoundRect(int,int,int,int,int,int); - void drawRoundRect(const QRect &,int,int); - void drawEllipse(int,int,int,int); - void drawEllipse(const QRect &); - void drawArc(int,int,int,int,int,int); - void drawArc(const QRect &,int,int); - void drawPie(int,int,int,int,int,int); - void drawPie(const QRect &,int,int); - void drawChord(int,int,int,int,int,int); - void drawChord(const QRect &,int,int); - void drawLineSegments(const QPointArray &,int = 0,int = -1); - void drawPolyline(const QPointArray &,int = 0,int = -1); - void drawPolygon(const QPointArray &,bool = 0,int = 0,int = -1); - void drawQuadBezier(const QPointArray &,int = 0); - void drawPixmap(int,int,const QPixmap &,int = 0,int = 0,int = -1,int = -1); - void drawPixmap(const QPoint &,const QPixmap &,const QRect &); - void drawPixmap(const QPoint &,const QPixmap &); - void drawImage(int,int,const QImage &,int = 0,int = 0,int = -1,int = -1); - void drawImage(const QPoint &,const QImage &,const QRect &); - void drawImage(const QPoint &,const QImage &); - void drawTiledPixmap(int,int,int,int,const QPixmap &,int = 0,int = 0); - void drawTiledPixmap(const QRect &,const QPixmap &,const QPoint &); - void drawTiledPixmap(const QRect &,const QPixmap &); - void drawPicture(const QPicture &); - void fillRect(int,int,int,int,const QBrush &); - void fillRect(const QRect &,const QBrush &); - void eraseRect(int,int,int,int); - void eraseRect(const QRect &); - void drawText(int,int,char *,int = -1); - void drawText(const QPoint &,const char *,int = -1); - void drawText(int,int,int,int,int,const char *,int = -1,QRect * = 0); - void drawText(const QRect &,int,const char *,int = -1,QRect * = 0); - -%If (Qt_3_2_0 -) - void drawTextItem(int,int,const QTextItem &,int = 0); - void drawTextItem(const QPoint &,const QTextItem &,int = 0); -%End - - QRect boundingRect(int,int,int,int,int,const char *,int = -1); - QRect boundingRect(const QRect &,int,const char *,int = -1); - - int tabStops() const; - void setTabStops(int); - - SIP_PYLIST tabArray() const; -%MethodCode - int *tabs; - - Py_BEGIN_ALLOW_THREADS - tabs = sipCpp -> tabArray(); - Py_END_ALLOW_THREADS - - int len = 0; - - if (tabs) - { - int *tp = tabs; - - do - ++len; - while (*tp++ != 0); - } - - if ((sipRes = PyList_New(len)) == NULL) - sipIsErr = 1; - else if (tabs) - { - int *tp = tabs; - - len = 0; - - do - { - if (PyList_SET_ITEM(sipRes,len,PyInt_FromLong((long)*tp)) < 0) - { - Py_DECREF(sipRes); - sipIsErr = 1; - break; - } - - ++len; - } - while (*tp++ != 0); - } -%End - - void setTabArray(SIP_PYLIST); -%MethodCode - int len, *tabs; - - len = PyList_GET_SIZE(a0); - - // Allocate space for the array. Note, this memory is never - // reclaimed. - if ((tabs = (int *)sipMalloc(len * sizeof (int))) == NULL) - sipIsErr = 1; - else - { - // Convert the list. - - int *tp = tabs; - - for (int i = 0; i < len; ++i) - { - *tp++ = (int)PyInt_AsLong(PyList_GET_ITEM(a0,i)); - - if (PyErr_Occurred() != NULL) - { - sipFree((ANY *)tabs); - sipIsErr = 1; - break; - } - } - - if (!sipIsErr) - { - Py_BEGIN_ALLOW_THREADS - sipCpp -> setTabArray(tabs); - Py_END_ALLOW_THREADS - } - } -%End - - HANDLE handle() const; - static void initialize(); - static void cleanup(); - -private: - QPainter(const QPainter &); -}; - -%End - -%If (Qt_2_00 -) - -class QPainter : Qt -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_0_0 -) - enum CoordinateMode { - CoordDevice, - CoordPainter - }; -%End - - QPainter(); -%If (- Qt_3_0_0) - QPainter(const QPaintDevice *); - QPainter(const QPaintDevice *,const QWidget *); -%End -%If (Qt_3_0_0 -) - QPainter(const QPaintDevice *,bool = 0); - QPainter(const QPaintDevice *,const QWidget *,bool = 0); -%End - -%If (- Qt_3_0_0) - bool begin(const QPaintDevice *); - bool begin(const QPaintDevice *,const QWidget *); -%End -%If (Qt_3_0_0 -) - bool begin(const QPaintDevice *,bool = 0); - bool begin(const QPaintDevice *,const QWidget *,bool = 0); -%End - bool end(); - QPaintDevice *device() const; - - static void redirect(QPaintDevice *,QPaintDevice *); - - bool isActive() const; - -%If (Qt_3_0_0 -) - void flush(const QRegion &,CoordinateMode = CoordDevice); -%End - void flush(); - void save(); - void restore(); - - QFontMetrics fontMetrics() const; - QFontInfo fontInfo() const; - - const QFont &font() const; - void setFont(const QFont&); - const QPen &pen() const; - void setPen(const QPen &); - void setPen(PenStyle); - void setPen(const QColor &); - const QBrush &brush() const; - void setBrush(const QBrush &); - void setBrush(BrushStyle); - void setBrush(const QColor &); -%If (Qt_2_1_0 -) - // The omission of this from Qt/Embedded is probably a bug. -%End - - const QColor &backgroundColor() const; - void setBackgroundColor(const QColor &); - BGMode backgroundMode() const; - void setBackgroundMode(BGMode); - RasterOp rasterOp() const; - void setRasterOp(RasterOp); - const QPoint &brushOrigin() const; - void setBrushOrigin(int,int); - void setBrushOrigin(const QPoint &); - - bool hasViewXForm() const; - bool hasWorldXForm() const; - -%If (Qt_TRANSFORMATIONS) - void setViewXForm(bool); - QRect window() const; - void setWindow(const QRect &); - void setWindow(int,int,int,int); - QRect viewport() const; - void setViewport(const QRect &); - void setViewport(int,int,int,int); - - void setWorldXForm(bool); - const QWMatrix &worldMatrix() const; - void setWorldMatrix(const QWMatrix &,bool = 0); - - void saveWorldMatrix(); - void restoreWorldMatrix(); - - void scale(double,double); - void shear(double,double); - void rotate(double); -%End - void translate(double,double); - void resetXForm(); -%If (Qt_3_0_0 -) - double translationX() const; - double translationY() const; -%End - - QPoint xForm(const QPoint &) const; - QRect xForm(const QRect &) const; - QPointArray xForm(const QPointArray &) const; - QPointArray xForm(const QPointArray &,int,int) const; - QPoint xFormDev(const QPoint &) const; - QRect xFormDev(const QRect &) const; - QPointArray xFormDev(const QPointArray &) const; - QPointArray xFormDev(const QPointArray &,int,int) const; - - void setClipping(bool); - bool hasClipping() const; -%If (- Qt_3_0_0) - const QRegion &clipRegion() const; - void setClipRect(const QRect &); - void setClipRect(int,int,int,int); - void setClipRegion(const QRegion &); -%End -%If (Qt_3_0_0 -) - QRegion clipRegion(CoordinateMode = CoordDevice) const; - void setClipRect(const QRect &,CoordinateMode = CoordDevice); - void setClipRect(int,int,int,int,CoordinateMode = CoordDevice); - void setClipRegion(const QRegion &,CoordinateMode = CoordDevice); -%End - - void drawPoint(int,int); - void drawPoint(const QPoint &); - void drawPoints(const QPointArray &,int,int = -1); - void moveTo(int,int); - void moveTo(const QPoint &); - void lineTo(int,int); - void lineTo(const QPoint &); - void drawLine(int,int,int,int); - void drawLine(const QPoint &,const QPoint &); - void drawRect(int,int,int,int); - void drawRect(const QRect &); - void drawWinFocusRect(int,int,int,int); - void drawWinFocusRect(int,int,int,int,const QColor &); - void drawWinFocusRect(const QRect &); - void drawWinFocusRect(const QRect &,const QColor &); -%If (- Qt_3_0_0) - void drawRoundRect(int,int,int,int,int,int); - void drawRoundRect(const QRect &,int,int); -%End -%If (Qt_3_0_0 -) - void drawRoundRect(int,int,int,int,int = 25,int = 25); - void drawRoundRect(const QRect &,int = 25,int = 25); -%End - void drawEllipse(int,int,int,int); - void drawEllipse(const QRect &); - void drawArc(int,int,int,int,int,int); - void drawArc(const QRect &,int,int); - void drawPie(int,int,int,int,int,int); - void drawPie(const QRect &,int,int); - void drawChord(int,int,int,int,int,int); - void drawChord(const QRect &,int,int); - void drawLineSegments(const QPointArray &,int = 0,int = -1); - void drawPolyline(const QPointArray &,int = 0,int = -1); - void drawPolygon(const QPointArray &,bool = 0,int = 0,int = -1); -%If (- Qt_3_0_0) - void drawQuadBezier(const QPointArray &,int = 0); -%End -%If (Qt_3_0_0 -) - void drawConvexPolygon(const QPointArray &,int = 0,int = -1); - void drawCubicBezier(const QPointArray &,int = 0); -%End - void drawPixmap(int,int,const QPixmap &,int = 0,int = 0,int = -1, - int = -1); - void drawPixmap(const QPoint &,const QPixmap &,const QRect &); - void drawPixmap(const QPoint &,const QPixmap &); -%If (Qt_3_0_0 -) - void drawPixmap(const QRect &,const QPixmap &); -%End -%If (- Qt_3_0_0) - void drawImage(int,int,const QImage &,int = 0,int = 0,int = -1, - int = -1); - void drawImage(const QPoint &,const QImage &,const QRect &); - void drawImage(const QPoint &,const QImage &); -%End -%If (Qt_3_0_0 -) - void drawImage(int,int,const QImage &,int = 0,int = 0,int = -1, - int = -1,int = 0); - void drawImage(const QPoint &,const QImage &,const QRect &,int = 0); - void drawImage(const QPoint &,const QImage &,int = 0); - void drawImage(const QRect &,const QImage &); -%End - void drawTiledPixmap(int,int,int,int,const QPixmap &,int = 0,int = 0); - void drawTiledPixmap(const QRect &,const QPixmap &,const QPoint &); - void drawTiledPixmap(const QRect &,const QPixmap &); -%If (Qt_PICTURE) - void drawPicture(const QPicture &); -%If (Qt_3_0_0 -) - void drawPicture(int,int,const QPicture &); - void drawPicture(const QPoint &,const QPicture &); -%End -%End - - void fillRect(int,int,int,int,const QBrush &); - void fillRect(const QRect &,const QBrush &); - void eraseRect(int,int,int,int); - void eraseRect(const QRect &); - -%If (Qt_3_0_0 -) - enum TextDirection { - Auto, - RTL, - LTR - }; -%End - -%If (- Qt_3_0_0) - void drawText(int,int,const QString &,int = -1); - void drawText(const QPoint &,const QString &,int = -1); -%End -%If (Qt_3_0_0 -) - void drawText(int,int,const QString &,int = -1,TextDirection = Auto); - void drawText(const QPoint &,const QString &,int = -1, - TextDirection = Auto); - void drawText(int,int,const QString &,int,int,TextDirection = Auto); - void drawText(const QPoint &,const QString &,int,int, - TextDirection = Auto); -%End - void drawText(int,int,int,int,int,const QString &,int = -1,QRect * = 0); - void drawText(const QRect &,int,const QString &,int = -1,QRect * = 0); - - QRect boundingRect(int,int,int,int,int,const QString &,int = -1); - QRect boundingRect(const QRect &,int,const QString &,int = -1); - int tabStops() const; - void setTabStops(int); - - SIP_PYLIST tabArray() const; -%MethodCode - int *tabs; - - Py_BEGIN_ALLOW_THREADS - tabs = sipCpp -> tabArray(); - Py_END_ALLOW_THREADS - - int len = 0; - - if (tabs) - { - int *tp = tabs; - - do - ++len; - while (*tp++ != 0); - } - - if ((sipRes = PyList_New(len)) == NULL) - sipIsErr = 1; - else if (tabs) - { - int *tp = tabs; - - len = 0; - - do - { - if (PyList_SET_ITEM(sipRes,len,PyInt_FromLong((long)*tp)) < 0) - { - Py_DECREF(sipRes); - sipIsErr = 1; - break; - } - - ++len; - } - while (*tp++ != 0); - } -%End - - void setTabArray(SIP_PYLIST); -%MethodCode - int len, *tabs; - - len = PyList_GET_SIZE(a0); - - // Allocate space for the array. Note, this memory is never - // reclaimed. - if ((tabs = (int *)sipMalloc(len * sizeof (int))) == NULL) - sipIsErr = 1; - else - { - // Convert the list. - - int *tp = tabs; - - for (int i = 0; i < len; ++i) - { - *tp++ = (int)PyInt_AsLong(PyList_GET_ITEM(a0,i)); - - if (PyErr_Occurred() != NULL) - { - sipFree((ANY *)tabs); - sipIsErr = 1; - break; - } - } - - if (!sipIsErr) - { - Py_BEGIN_ALLOW_THREADS - sipCpp -> setTabArray(tabs); - Py_END_ALLOW_THREADS - } - } -%End - -%If (WS_X11) - HANDLE handle() const; -%End - - static void initialize(); - static void cleanup(); - -private: - QPainter(const QPainter &); -}; - -%End diff --git a/python/pyqt/sip/qt/qpair.sip b/python/pyqt/sip/qt/qpair.sip deleted file mode 100644 index 0e6726d4..00000000 --- a/python/pyqt/sip/qt/qpair.sip +++ /dev/null @@ -1,83 +0,0 @@ -// This is the SIP interface definition for all types based on the QPair -// template. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QPair<type,type> (Qt v3+) - -Types based on the QPair template are automatically -converted to and from Python tuples of two elements. - - -%End - - -%If (Qt_3_0_0 -) - -%MappedType QPair -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - // Convert to a Python list of integers. - - PyObject *t; - - // Create the tuple. - - if ((t = PyTuple_New(2)) == NULL) - return NULL; - - // Fill it. - - PyTuple_SET_ITEM(t,0,PyInt_FromLong((long)sipCpp -> first)); - PyTuple_SET_ITEM(t,1,PyInt_FromLong((long)sipCpp -> second)); - - return t; -%End - -%ConvertToTypeCode - // Convert a Python tuple of integers to a QPair on the heap. - - if (sipIsErr == NULL) - return (PyTuple_Size(sipPy) == 2); - - PyErr_Clear(); - - int fst = (int)PyInt_AsLong(PyTuple_GET_ITEM(sipPy,0)); - int sec = (int)PyInt_AsLong(PyTuple_GET_ITEM(sipPy,1)); - - if (PyErr_Occurred() != NULL) - { - *sipIsErr = 1; - return 0; - } - - *sipCppPtr = new QPair(fst,sec); - - return 1; -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qpalette.sip b/python/pyqt/sip/qt/qpalette.sip deleted file mode 100644 index 37d43ac6..00000000 --- a/python/pyqt/sip/qt/qpalette.sip +++ /dev/null @@ -1,102 +0,0 @@ -// This is the SIP interface definition for QPalette. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QPalette - -QPalette is fully implemented, including the Python -== and != operators. - - -%End - - -class QPalette -{ -%TypeHeaderCode -#include -%End - -public: - QPalette(); - QPalette(const QColor &); -%If (Qt_2_00 -) - QPalette(const QColor &,const QColor &); -%End - QPalette(const QColorGroup &,const QColorGroup &,const QColorGroup &); - QPalette(const QPalette &); - -%If (Qt_2_00 - Qt_2_1_0) - enum ColorGroup { - Normal, - Disabled, - Active, - NColorGroups - }; -%End -%If (Qt_2_1_0 -) - enum ColorGroup { - Normal, - Disabled, - Active, - Inactive, - NColorGroups - }; -%End - -%If (Qt_2_00 -) - const QColor &color(ColorGroup,QColorGroup::ColorRole) const; - const QBrush &brush(ColorGroup,QColorGroup::ColorRole) const; - void setColor(ColorGroup,QColorGroup::ColorRole,const QColor &); - void setBrush(ColorGroup,QColorGroup::ColorRole,const QBrush &); - void setColor(QColorGroup::ColorRole,const QColor &); - void setBrush(QColorGroup::ColorRole,const QBrush &); -%End - - QPalette copy() const; - - const QColorGroup &active() const; - const QColorGroup &disabled() const; -%If (Qt_2_1_0 -) - const QColorGroup &inactive() const; -%End - const QColorGroup &normal() const; - - void setActive(const QColorGroup &); - void setDisabled(const QColorGroup &); -%If (Qt_2_1_0 -) - void setInactive(const QColorGroup &); -%End - void setNormal(const QColorGroup &); - - bool operator==(const QPalette &) const; - bool operator!=(const QPalette &) const; - - bool isCopyOf(const QPalette &); - int serialNumber() const; - -%If (Qt_3_0_0 -) - // These are defined in Qt3, but don't appear in the documentation. - //static QColorGroup::ColorRole foregroundRoleFromMode(Qt::BackgroundMode); - //static QColorGroup::ColorRole backgroundRoleFromMode(Qt::BackgroundMode); -%End -}; diff --git a/python/pyqt/sip/qt/qpen.sip b/python/pyqt/sip/qt/qpen.sip deleted file mode 100644 index e8899c22..00000000 --- a/python/pyqt/sip/qt/qpen.sip +++ /dev/null @@ -1,101 +0,0 @@ -// This is the SIP interface definition for QPen. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QPen - -QPen is fully implemented, including the Python -== and != operators. - - -%End - - -%If (- Qt_2_00) - -enum PenStyle { - NoPen, - SolidLine, - DashLine, - DotLine, - DashDotLine, - DashDotDotLine -}; - - -class QPen -{ -%TypeHeaderCode -#include -%End - -public: - QPen(); - QPen(PenStyle); - QPen(const QColor &,uint = 0,PenStyle = SolidLine); - QPen(const QPen &); - - PenStyle style() const; - void setStyle(PenStyle); - uint width() const; - void setWidth(uint); - const QColor &color() const; - void setColor(const QColor &); -}; - -%End - -%If (Qt_2_00 -) - -class QPen : Qt -{ -%TypeHeaderCode -#include -%End - -public: - QPen(); - QPen(PenStyle); - QPen(const QColor &,uint = 0,PenStyle = SolidLine); -%If (Qt_2_1_0 -) - QPen(const QColor &,uint,PenStyle,PenCapStyle,PenJoinStyle); -%End - QPen(const QPen &); - - PenStyle style() const; - void setStyle(PenStyle); - uint width() const; - void setWidth(uint); - const QColor &color() const; - void setColor(const QColor &); -%If (Qt_2_1_0 -) - PenCapStyle capStyle() const; - void setCapStyle(PenCapStyle); - PenJoinStyle joinStyle() const; - void setJoinStyle(PenJoinStyle); -%End - - bool operator==(const QPen &) const; - bool operator!=(const QPen &) const; -}; - -%End diff --git a/python/pyqt/sip/qt/qpicture.sip b/python/pyqt/sip/qt/qpicture.sip deleted file mode 100644 index 83004ebd..00000000 --- a/python/pyqt/sip/qt/qpicture.sip +++ /dev/null @@ -1,111 +0,0 @@ -// This is the SIP interface definition for QPicture. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QPicture - - const char *data - - - -Not implemented. - - - - void setData - const char *data - uint size - - -size is derived from data and not passed -as a parameter. - - -%End - - -%If (Qt_PICTURE) - -class QPicture : QPaintDevice -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QPicture(); -%End -%If (Qt_2_00 - Qt_3_0_0) - QPicture(int = 0); -%End -%If (Qt_3_0_0 -) - QPicture(int = -1); - QPicture(const QPicture &); -%End - - bool isNull() const; - - uint size() const; -// const char *data() const; -%If (- Qt_2_00) - void setData(const char * /Array/,uint /ArraySize/); -%End -%If (Qt_2_00 -) - virtual void setData(const char * /Array/,uint /ArraySize/); -%End - - bool play(QPainter *); - -%If (- Qt_2_00) - bool load(const char *); - bool save(const char *); -%End -%If (Qt_2_00 - Qt_3_0_0) - bool load(const QString &); - bool save(const QString &); -%End -%If (Qt_3_0_0 -) - bool load(QIODevice *,const char * = 0); - bool load(const QString &,const char * = 0); - bool save(QIODevice *,const char * = 0); - bool save(const QString &,const char * = 0); - - QRect boundingRect() const; -%End -%If (Qt_3_1_0 -) - void setBoundingRect(const QRect &); -%End - -protected: -%If (Qt_3_0_0 -) - void detach(); - QPicture copy() const; -%End - -private: -%If (- Qt_3_0_0) - QPicture(const QPicture &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qpixmap.sip b/python/pyqt/sip/qt/qpixmap.sip deleted file mode 100644 index 6331ef8b..00000000 --- a/python/pyqt/sip/qt/qpixmap.sip +++ /dev/null @@ -1,288 +0,0 @@ -// This is the SIP interface definition for QPixmap. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QPixmap - - QPixmap - const char *xpm[] - - -This takes a list of strings as its parameter. - - - - bool loadFromData - const uchar *buf - uint len - const char *format = 0 - ColorMode mode = Auto - - -len is derived from buf and not passed as -a parameter. - - - - bool loadFromData - const uchar *buf - uint len - const char *format - int conversion_flags - - -Not implemented. - - -%End - - -%If (- Qt_2_00) - -class QPixmap : QPaintDevice -{ -%TypeHeaderCode -#include -%End - -public: - enum ColorMode - { - Auto, - Color, - Mono - }; - - QPixmap(); - QPixmap(int,int,int = -1); - QPixmap(const QSize &,int = -1); - QPixmap(const char *,const char * = 0,ColorMode = Auto); - QPixmap(const char *,const char *,int); - - QPixmap(SIP_PYLIST) [(const char **)]; -%MethodCode - // The Python interface is a list of strings that make up the - // image. - - const char **str; - - if ((str = PyQt_qt_ListToArray(a0)) == NULL) - sipIsErr = 1; - else - { - Py_BEGIN_ALLOW_THREADS - sipCpp = new sipQPixmap(str); - Py_END_ALLOW_THREADS - - sipFree((ANY *)str); - } -%End - - QPixmap(const QPixmap &); - - bool isNull() const; - int width() const; - int height() const; - QSize size() const; - QRect rect() const; - int depth() const; - static int defaultDepth(); - void fill(const QColor & = white); - void fill(const QWidget *,int,int); - void fill(const QWidget *,const QPoint &); - void resize(int,int); - void resize(const QSize &); - const QBitmap *mask() const; - void setMask(const QBitmap &); - bool selfMask() const; - QBitmap createHeuristicMask(bool = 1) const; - static QPixmap grabWindow(WId,int = 0,int = 0,int = -1,int = -1); - QPixmap xForm(const QWMatrix &) const; - static QWMatrix trueMatrix(const QWMatrix &,int,int); - QImage convertToImage() const; - bool convertFromImage(const QImage &,ColorMode = Auto); - bool convertFromImage(const QImage &,int); - static const char *imageFormat(const char *); - bool load(const char *,const char * = 0,ColorMode = Auto); - bool load(const char *,const char *,int); - bool loadFromData(const uchar * /Array/,uint /ArraySize/, - const char * = 0,ColorMode = Auto); -// bool loadFromData(const uchar *,uint,const char *,int); - bool loadFromData(QByteArray,const char * = 0,int = 0); - bool save(const char *,const char *) const; - int serialNumber() const; - - enum Optimization - { - NoOptim, - NormalOptim, - BestOptim - }; - - Optimization optimization() const; - void setOptimization(Optimization); - static Optimization defaultOptimization(); - static void setDefaultOptimization(Optimization); - virtual void detach(); - bool isQBitmap() const; - -protected: - QPixmap(int,int,const uchar *,bool); -}; - -%End - -%If (Qt_2_00 -) - -class QPixmap : QPaintDevice, Qt -{ -%TypeHeaderCode -#include -%End - -public: - enum ColorMode - { - Auto, - Color, - Mono - }; - - enum Optimization - { - DefaultOptim, - NoOptim, - MemoryOptim, - NormalOptim, - BestOptim - }; - - QPixmap(); -%If (Qt_3_0_0 -) - QPixmap(const QImage &); -%End - QPixmap(int,int,int = -1,Optimization = DefaultOptim); - QPixmap(const QSize &,int = -1,Optimization = DefaultOptim); - QPixmap(const QString &,const char * = 0,ColorMode = Auto); - QPixmap(const QString &,const char *,int); - - QPixmap(SIP_PYLIST) [(const char **)]; -%MethodCode - // The Python interface is a list of strings that make up the - // image. - - const char **str; - - if ((str = PyQt_qt_ListToArray(a0)) == NULL) - sipIsErr = 1; - else - { - Py_BEGIN_ALLOW_THREADS - sipCpp = new sipQPixmap(str); - Py_END_ALLOW_THREADS - - sipFree((ANY *)str); - } -%End - - QPixmap(const QByteArray &); - QPixmap(const QPixmap &); - - bool isNull() const; - int width() const; - int height() const; - QSize size() const; - QRect rect() const; - int depth() const; - static int defaultDepth(); - void fill(const QColor & = Qt::white); - void fill(const QWidget *,int,int); - void fill(const QWidget *,const QPoint &); - void resize(int,int); - void resize(const QSize &); - const QBitmap *mask() const; - void setMask(const QBitmap &); - bool selfMask() const; -%If (Qt_3_1_0 -) - bool hasAlpha() const; -%End -%If (Qt_3_2_0 -) - bool hasAlphaChannel() const; -%End - QBitmap createHeuristicMask(bool = 1) const; -%If (Qt_3_1_0 -) - static QPixmap fromMimeSource(const QString &); -%End - static QPixmap grabWindow(WId,int = 0,int = 0,int = -1,int = -1); -%If (Qt_2_1_0 -) - static QPixmap grabWidget(QWidget *,int = 0,int = 0,int = -1,int = -1); -%End - - QPixmap xForm(const QWMatrix &) const; - static QWMatrix trueMatrix(const QWMatrix &,int,int); - QImage convertToImage() const; - bool convertFromImage(const QImage &,ColorMode = Auto); - bool convertFromImage(const QImage &,int); - static const char *imageFormat(const QString &); - bool load(const QString &,const char * = 0,ColorMode = Auto); - bool load(const QString &,const char *,int); - bool loadFromData(const uchar * /Array/,uint /ArraySize/, - const char * = 0,ColorMode = Auto); -// bool loadFromData(const uchar *,uint,const char *,int); - bool loadFromData(QByteArray,const char * = 0,int = 0); -%If (- Qt_3_0_0) - bool save(const QString &,const char *) const; -%End -%If (Qt_2_2_0 - Qt_3_0_0) - bool save(const QString &,const char *,int) const; -%End -%If (Qt_3_0_0 -) - bool save(const QString &,const char *,int = -1) const; -%End -%If (Qt_3_2_0 -) - bool save(QIODevice *,const char *,int = -1) const; -%End - int serialNumber() const; - Optimization optimization() const; - void setOptimization(Optimization); - static Optimization defaultOptimization(); - static void setDefaultOptimization(Optimization); - virtual void detach(); - bool isQBitmap() const; - -%If (Qt_3_0_0 -) -%If (WS_X11) - static int x11SetDefaultScreen(int); - void x11SetScreen(int); -%End -%End - -protected: - QPixmap(int,int,const uchar *,bool); -}; - -%End - -%If (Qt_3_2_0 -) -void copyBlt(QPixmap *,int,int,const QPixmap *,int = 0,int = 0,int = -1, - int = -1); -%End diff --git a/python/pyqt/sip/qt/qpixmapcache.sip b/python/pyqt/sip/qt/qpixmapcache.sip deleted file mode 100644 index 2e1681d7..00000000 --- a/python/pyqt/sip/qt/qpixmapcache.sip +++ /dev/null @@ -1,53 +0,0 @@ -// This is the SIP interface definition for QPixmapCache. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QPixmapCache (Qt v3+) - -QPixmapCache is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QPixmapCache -{ -%TypeHeaderCode -#include -%End - -public: - static int cacheLimit(); - static void setCacheLimit(int); - static QPixmap *find(const QString &); - static bool find(const QString &,QPixmap &); -// static bool insert(const QString &,QPixmap *); - static bool insert(const QString &,const QPixmap &); -%If (Qt_3_2_0 -) - static void remove(const QString &); -%End - static void clear(); -}; - -%End diff --git a/python/pyqt/sip/qt/qplatinumstyle.sip b/python/pyqt/sip/qt/qplatinumstyle.sip deleted file mode 100644 index 87c1c3b4..00000000 --- a/python/pyqt/sip/qt/qplatinumstyle.sip +++ /dev/null @@ -1,142 +0,0 @@ -// This is the SIP interface definition for QPlatinumStyle. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QPlatinumStyle (Qt v2+) - - void scrollBarMetrics - const QTabBar *sb - int &sliderMin - int &sliderMax - int &sliderLength - int &buttonDim - - -This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2) - - -%End - - -%If (Qt_2_00 -) -%If (Qt_STYLE_PLATINUM) - -class QPlatinumStyle : QWindowsStyle -{ -%TypeHeaderCode -#include -%End - -public: - QPlatinumStyle(); - -%If (- Qt_3_0_0) - void drawPopupPanel(QPainter *,int,int,int,int,const QColorGroup &, - int = 2,const QBrush * = 0); - void drawButton(QPainter *,int,int,int,int,const QColorGroup &,bool = 0, - const QBrush * = 0); - QRect buttonRect(int,int,int,int); - void drawBevelButton(QPainter *,int,int,int,int,const QColorGroup &, - bool = 0,const QBrush * = 0); - void drawPushButton(QPushButton *,QPainter *); - void drawPushButtonLabel(QPushButton *,QPainter *); - - void scrollBarMetrics(const QScrollBar *,int &,int &,int &,int &); - - void drawScrollBarControls(QPainter *,const QScrollBar *,int,uint,uint); - ScrollControl scrollBarPointOver(const QScrollBar *,int,const QPoint &); - 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 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 drawSlider(QPainter *,int,int,int,int,const QColorGroup &, - Orientation,bool,bool); - void drawSliderMask(QPainter *,int,int,int,int,Orientation,bool,bool); - void drawSliderGroove(QPainter *,int,int,int,int,const QColorGroup &, - QCOORD,Orientation); - int maximumSliderDragDistance() const; - void drawCheckMark(QPainter *,int,int,int,int,const QColorGroup &, - bool,bool); - void polishPopupMenu(QPopupMenu *); - int extraPopupMenuItemWidth(bool,int,QMenuItem *,const QFontMetrics &); - int popupMenuItemHeight(bool,QMenuItem *,const QFontMetrics &); - void drawPopupMenuItem(QPainter *,bool,int,int,QMenuItem *, - const QPalette &,bool,bool,int,int,int,int); -%End -%If (Qt_3_0_0 -) - void drawPrimitive(PrimitiveElement,QPainter *,const QRect &, - const QColorGroup &,SFlags = Style_Default, - const QStyleOption & = QStyleOption()) const; - - void drawControl(ControlElement,QPainter *,const QWidget *, - const QRect &,const QColorGroup &, - SFlags = Style_Default, - const QStyleOption & = QStyleOption()) const; - - void drawComplexControl(ComplexControl,QPainter *,const QWidget *, - const QRect &,const QColorGroup &, - SFlags = Style_Default,SCFlags = SC_All, - SCFlags = SC_None, - const QStyleOption & = QStyleOption()) const; - - QRect querySubControlMetrics(ComplexControl,const QWidget *,SubControl, - const QStyleOption & = QStyleOption()) const; - - int pixelMetric(PixelMetric,const QWidget * = 0) const; - - QRect subRect(SubRect,const QWidget *) const; -%End - -protected: -%If (- Qt_3_0_0) - void drawScrollBarBackground(QPainter *,int,int,int,int, - const QColorGroup &,bool, - const QBrush * = 0); -%End - QColor mixedColor(const QColor &,const QColor &) const; -%If (- Qt_3_0_0) - void drawRiffles(QPainter *,int,int,int,int,const QColorGroup &,bool); -%End -%If (Qt_3_0_0 -) - void drawRiffles(QPainter *,int,int,int,int,const QColorGroup &, - bool) const; -%End - -private: -%If (Qt_3_0_0 -) - QPlatinumStyle(const QPlatinumStyle &); -%End -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qpoint.sip b/python/pyqt/sip/qt/qpoint.sip deleted file mode 100644 index 93ca9228..00000000 --- a/python/pyqt/sip/qt/qpoint.sip +++ /dev/null @@ -1,103 +0,0 @@ -// This is the SIP interface definition for QPoint. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QPoint - -The Python -+, +=, --, -=, unary -, -*, *=, -/, /=, -==, != and __nonzero__ -operators are supported. - - - - QCOORD &rx - - - -Not implemented. - - - - QCOORD &ry - - - -Not implemented. - - -%End - - -class QPoint -{ -%TypeHeaderCode -#include -%End - -public: - QPoint(); - QPoint(int,int); - - bool isNull() const; - int x() const; - int y() const; - void setX(int); - void setY(int); -%If (Qt_2_00 -) - int manhattanLength() const; -%End -// QCOORD &rx(); -// QCOORD &ry(); - - QPoint &operator+=(const QPoint &); - QPoint &operator-=(const QPoint &); - QPoint &operator*=(int /Constrained/); - QPoint &operator*=(double); - QPoint &operator/=(int /Constrained/); - QPoint &operator/=(double); - - int __nonzero__(); -%MethodCode - sipRes = !sipCpp -> isNull(); -%End - - // Qt defines the remaining operators as global, rather than part of - // the class, but SIP doesn't support global operators. - bool operator==(const QPoint &); - bool operator!=(const QPoint &); - const QPoint operator+(const QPoint &); - const QPoint operator-(const QPoint &); - const QPoint operator*(int /Constrained/); - const QPoint operator*(double); - - const QPoint __neg__(); -%MethodCode - sipRes = new QPoint(-(*sipCpp)); -%End - - const QPoint operator/(int /Constrained/); - const QPoint operator/(double); -}; diff --git a/python/pyqt/sip/qt/qpointarray.sip b/python/pyqt/sip/qt/qpointarray.sip deleted file mode 100644 index 961bf3f9..00000000 --- a/python/pyqt/sip/qt/qpointarray.sip +++ /dev/null @@ -1,247 +0,0 @@ -// This is the SIP interface definition for QPointArray. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QPointArray - - QPointArray - int nPoints - const QCOORD *points - - -This takes a single parameter which is a list of points. - - - - void point - uint i - int *x - int *y - - -This takes the single parameter i and returns the -x and y values as a tuple. - - - - bool putPoints - int index - int nPoints - const QCOORD *points - - -This takes two parameters, index and a list of points. - - - - bool putPoints - int index - int nPoints - int firstx - int firsty - ... - - -Not implemented. - - - - bool setPoints - int nPoints - const QCOORD *points - - -This takes a single parameter which is a list of points. - - - - bool setPoints - int nPoints - int firstx - int firsty - ... - - -Not implemented. - - -%End - - -class QPointArray -{ -%TypeHeaderCode -#include -%End - -%TypeCode -// Convert a list of numbers to an array on QCOORDs on the heap. - -static QCOORD *getPoints(int nrpnts,PyObject *pntlist) -{ - QCOORD *pnts, *pp; - - if ((pnts = (QCOORD *)sipMalloc(nrpnts * sizeof (QCOORD))) == NULL) - return NULL; - - // Convert the list. - - pp = pnts; - - for (int i = 0; i < nrpnts; ++i) - { - *pp++ = (QCOORD)PyInt_AsLong(PyList_GetItem(pntlist,i)); - - if (PyErr_Occurred() != NULL) - { - sipFree((ANY *)pnts); - return NULL; - } - } - - return pnts; -} -%End - -public: - QPointArray(); - QPointArray(int); - QPointArray(const QPointArray &); - QPointArray(const QRect &,bool = 0); - - QPointArray(SIP_PYLIST) [(int,const QCOORD *)]; -%MethodCode - // The Python interface is a list of QCOORDs. - - int nrpnts; - QCOORD *pnts; - - nrpnts = PyList_GET_SIZE(a0); - - if ((pnts = getPoints(nrpnts,a0)) == NULL) - sipIsErr = 1; - else - { - // No wrapper class for QPointArray. - - Py_BEGIN_ALLOW_THREADS - sipCpp = new QPointArray(nrpnts / 2,pnts); - Py_END_ALLOW_THREADS - - sipFree((ANY *)pnts); - } -%End - - QPointArray copy() const; - void translate(int,int); - QRect boundingRect() const; - - void point(uint,int *,int *) const; - // This is hidden by the above. It would probably be better to remove - // the one above, but that would break backwards compatibility. - //QPoint point(uint) const; - void setPoint(uint,int,int); - void setPoint(uint,const QPoint &); - - bool setPoints(SIP_PYLIST); -%MethodCode - int nrpnts; - QCOORD *pnts; - - nrpnts = PyList_GET_SIZE(a0); - - if ((pnts = getPoints(nrpnts,a0)) == NULL) - sipIsErr = 1; - else - { - Py_BEGIN_ALLOW_THREADS - sipRes = sipCpp -> setPoints(nrpnts / 2,pnts); - Py_END_ALLOW_THREADS - - sipFree((ANY *)pnts); - } -%End - -// bool setPoints(int,int,int,...); - - bool putPoints(int,SIP_PYLIST); -%MethodCode - int nrpnts; - QCOORD *pnts; - - nrpnts = PyList_GET_SIZE(a1); - - if ((pnts = getPoints(nrpnts,a1)) == NULL) - sipIsErr = 1; - else - { - Py_BEGIN_ALLOW_THREADS - sipRes = sipCpp -> putPoints(a0,nrpnts / 2,pnts); - Py_END_ALLOW_THREADS - - sipFree((ANY *)pnts); - } -%End - -// bool putPoints(int,int,int,int,...); -%If (Qt_3_0_0 -) - bool putPoints(int,int,const QPointArray &,int = 0); -%End - -%If (- Qt_2_00) - QPoint at(uint) const; -%End - - void makeArc(int,int,int,int,int,int); - void makeEllipse(int,int,int,int); -%If (Qt_TRANSFORMATIONS) -%If (Qt_2_00 -) - void makeArc(int,int,int,int,int,int,const QWMatrix &); -%End -%End -%If (- Qt_3_0_0) - QPointArray quadBezier() const; -%End -%If (Qt_3_0_0 -) - QPointArray cubicBezier() const; -%End - - // These are actually in QArray, which isn't implemented so pretend - // they are here. - - uint nrefs() const; - bool isEmpty() const; - bool isNull() const; - bool resize(uint); - uint size() const; - bool truncate(uint); - bool fill(const QPoint &,int = -1); -%If (Qt_2_00 -) - QPoint &at(uint) const; -%End -%If (Qt_2_1_0 -) - void sort(); - int bsearch(const QPoint &) const; -%End - int find(const QPoint &,uint = 0) const; - int contains(const QPoint &) const; -}; diff --git a/python/pyqt/sip/qt/qpopupmenu.sip b/python/pyqt/sip/qt/qpopupmenu.sip deleted file mode 100644 index c280266d..00000000 --- a/python/pyqt/sip/qt/qpopupmenu.sip +++ /dev/null @@ -1,282 +0,0 @@ -// This is the SIP interface definition for QPopupMenu. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QPopupMenu - - int exec - - - -This has been renamed exec_loop in Python. - - -This method also causes ownership of the underlying C++ menu to be transfered -to Python. This means that the C++ menu will be deleted when the Python -wrapper is garbage collected. Although this is a little inconsistent, it -ensures that the menu is deleted without having to explicity code it using -QObject.deleteLater() or other techniques. - - - - int exec - const QPoint &pos - int indexAtPoint = 0 - - -This has been renamed exec_loop in Python. - - -This method also causes ownership of the underlying C++ menu to be transfered -to Python. This means that the C++ menu will be deleted when the Python -wrapper is garbage collected. Although this is a little inconsistent, it -ensures that the menu is deleted without having to explicity code it using -QObject.deleteLater() or other techniques. - - -%End - - -%If (- Qt_2_00) - -class QPopupMenu : QTableView, QMenuData -{ -%TypeHeaderCode -#include -%End - -public: - QPopupMenu(QWidget * /TransferThis/ = 0,const char * = 0); - - void popup(const QPoint &,int = 0); - void updateItem(int); - void setCheckable(bool); - bool isCheckable() const; - void setFont(const QFont &); - void show(); - void hide(); - - int exec() /PyName=exec_loop, ReleaseGIL, - PreHook=__pyQtPreEventLoopHook__, - PostHook=__pyQtPostEventLoopHook__/; -%MethodCode - // Transfer ownership back to Python (a modal menu will - // probably have the main window as it's parent). This means - // the Qt menu will be deleted when the Python wrapper is - // garbage collected. Although this is a little inconsistent, - // it saves having to code it explicitly to avoid the memory - // leak. - sipTransferBack(sipSelf); - - Py_BEGIN_ALLOW_THREADS - sipRes = sipCpp->QPopupMenu::exec(); - Py_END_ALLOW_THREADS -%End - - int exec(const QPoint &,int = 0) /PyName=exec_loop, ReleaseGIL, - PreHook=__pyQtPreEventLoopHook__, - PostHook=__pyQtPostEventLoopHook__/; -%MethodCode - // Transfer ownership back to Python (a modal menu will - // probably have the main window as it's parent). This means - // the Qt menu will be deleted when the Python wrapper is - // garbage collected. Although this is a little inconsistent, - // it saves having to code it explicitly to avoid the memory - // leak. - sipTransferBack(sipSelf); - - Py_BEGIN_ALLOW_THREADS - sipRes = sipCpp->QPopupMenu::exec(*a0,a1); - Py_END_ALLOW_THREADS -%End - - void setActiveItem(int); - int idAt(int) const; -%If (Qt_1_43 -) - int idAt(const QPoint &) const; -%End - -signals: - void activated(int); - void highlighted(int); - void activatedRedirect(int); - void highlightedRedirect(int); - void aboutToShow(); - -protected: - int cellHeight(int); - int cellWidth(int); - void paintCell(QPainter *,int,int); - void paintEvent(QPaintEvent *); - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - void keyPressEvent(QKeyEvent *); - void timerEvent(QTimerEvent *); - -private: - QPopupMenu(const QPopupMenu &); - void menuContentsChanged(); - void menuStateChanged(); - void menuInsPopup(QPopupMenu *); - void menuDelPopup(QPopupMenu *); - void frameChanged(); -}; - -%End - - -%If (Qt_2_00 -) - -class QPopupMenu : QFrame, QMenuData -{ -%TypeHeaderCode -#include -%End - -public: - QPopupMenu(QWidget * /TransferThis/ = 0,const char * = 0); - -%If (- Qt_3_0_5) - void popup(const QPoint &,int = 0); -%End -%If (Qt_3_0_5 -) - void popup(const QPoint &,int = -1); -%End - void updateItem(int); - - virtual void setCheckable(bool); - bool isCheckable() const; - - void setFont(const QFont &); - void show(); - void hide(); - - int exec() /PyName=exec_loop, ReleaseGIL, - PreHook=__pyQtPreEventLoopHook__, - PostHook=__pyQtPostEventLoopHook__/; -%MethodCode - // Transfer ownership back to Python (a modal menu will - // probably have the main window as it's parent). This means - // the Qt menu will be deleted when the Python wrapper is - // garbage collected. Although this is a little inconsistent, - // it saves having to code it explicitly to avoid the memory - // leak. - sipTransferBack(sipSelf); - - Py_BEGIN_ALLOW_THREADS - sipRes = sipCpp->QPopupMenu::exec(); - Py_END_ALLOW_THREADS -%End - - int exec(const QPoint &,int = 0) /PyName=exec_loop, ReleaseGIL, - PreHook=__pyQtPreEventLoopHook__, - PostHook=__pyQtPostEventLoopHook__/; -%MethodCode - // Transfer ownership back to Python (a modal menu will - // probably have the main window as it's parent). This means - // the Qt menu will be deleted when the Python wrapper is - // garbage collected. Although this is a little inconsistent, - // it saves having to code it explicitly to avoid the memory - // leak. - sipTransferBack(sipSelf); - - Py_BEGIN_ALLOW_THREADS - sipRes = sipCpp->QPopupMenu::exec(*a0,a1); - Py_END_ALLOW_THREADS -%End - - virtual void setActiveItem(int); - QSize sizeHint() const; - - int idAt(int) const; - int idAt(const QPoint &) const; - - bool customWhatsThis() const; - -%If (Qt_2_1_0 -) - int insertTearOffHandle(int = -1,int = -1); -%End - -%If (Qt_2_2_0 -) - void activateItemAt(int); -%End -%If (Qt_3_0_0 -) - QRect itemGeometry(int); -%End - -signals: - void activated(int); - void highlighted(int); - void activatedRedirect(int); - void highlightedRedirect(int); - void aboutToShow(); -%If (Qt_2_2_0 -) - void aboutToHide(); -%End - -protected: - int itemHeight(int) const; - int itemHeight(QMenuItem *) const; - void drawItem(QPainter *,int,QMenuItem *,bool,int,int,int,int); - - void drawContents(QPainter *); - - void closeEvent(QCloseEvent *); - void paintEvent(QPaintEvent *); - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - void keyPressEvent(QKeyEvent *); -%If (Qt_2_1_0 -) - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); -%End - void timerEvent(QTimerEvent *); -%If (Qt_3_0_0 -) - void leaveEvent(QEvent *); -%End - void styleChange(QStyle &); -%If (Qt_3_1_0 -) - void enabledChange(bool); -%End -%If (Qt_2_1_0 -) - int columns() const; - - bool focusNextPrevChild(bool); -%End - -%If (Qt_3_0_0 -) - int itemAtPos(const QPoint &,bool = 1) const; -%End - -private: - QPopupMenu(const QPopupMenu &); - - void menuContentsChanged(); - void menuStateChanged(); - void menuInsPopup(QPopupMenu *); - void menuDelPopup(QPopupMenu *); - void frameChanged(); -}; - -%End diff --git a/python/pyqt/sip/qt/qprintdialog.sip b/python/pyqt/sip/qt/qprintdialog.sip deleted file mode 100644 index 670eaf0d..00000000 --- a/python/pyqt/sip/qt/qprintdialog.sip +++ /dev/null @@ -1,64 +0,0 @@ -// This is the SIP interface definition for QPrintDialog. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QPrintDialog (X11) - -QPrintDialog is fully implemented. - - -%End - - -%If (WS_X11) -%If (Qt_PRINTDIALOG) - -class QPrintDialog : QDialog -{ -%TypeHeaderCode -#include -%End - -public: - QPrintDialog(QPrinter *,QWidget * /TransferThis/ = 0,const char * = 0); - -%If (- Qt_3_0_0) - static bool getPrinterSetup(QPrinter *); -%End -%If (Qt_3_0_0 -) - static bool getPrinterSetup(QPrinter *,QWidget * = 0); - static void setGlobalPrintDialog(QPrintDialog *); -%End - - void setPrinter(QPrinter *,bool = 0); - QPrinter *printer() const; - -%If (Qt_2_1_0 -) - void addButton(QPushButton *); -%End - -private: - QPrintDialog(const QPrintDialog &); -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qprinter.sip b/python/pyqt/sip/qt/qprinter.sip deleted file mode 100644 index fca50574..00000000 --- a/python/pyqt/sip/qt/qprinter.sip +++ /dev/null @@ -1,256 +0,0 @@ -// This is the SIP interface definition for QPrinter. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QPrinter - -QPrinter is fully implemented. - - -%End - - -%If (Qt_PRINTER) - -class QPrinter : QPaintDevice -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_0_0 -) - enum PrinterMode { - ScreenResolution, - PrinterResolution, - HighResolution, - Compatible - }; -%End - -%If (- Qt_3_0_0) - QPrinter(); -%End -%If (Qt_3_0_0 -) - QPrinter(PrinterMode = ScreenResolution); -%End - - enum Orientation { - Portrait, - Landscape - }; - - 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, -%If (Qt_2_3_1 -) - Custom, -%End -%If (Qt_2_00 -) - NPageSize -%End - }; - - enum PageOrder { - FirstPageFirst, - LastPageFirst - }; - - enum ColorMode { - GrayScale, - Color - }; - -%If (Qt_3_0_0 -) - enum PaperSource { - OnlyOne, - Lower, - Middle, - Manual, - Envelope, - EnvelopeManual, - Auto, - Tractor, - SmallFormat, - LargeFormat, - LargeCapacity, - Cassette, - FormSource - }; -%End - -%If (Qt_3_2_0 -) - enum PrintRange { - AllPages, - Selection, - PageRange - }; - - enum PrinterOption { - PrintToFile, - PrintSelection, - PrintPageRange - }; -%End - -%If (- Qt_2_00) - const char *printerName() const; - void setPrinterName(const char *); -%End -%If (Qt_2_00 -) - QString printerName() const; - virtual void setPrinterName(const QString &); -%End - bool outputToFile() const; -%If (- Qt_2_00) - void setOutputToFile(bool); - const char *outputFileName() const; - void setOutputFileName(const char *); - - const char *printProgram() const; - void setPrintProgram(const char *); - - const char *docName() const; - void setDocName(const char *); - const char *creator() const; - void setCreator(const char *); -%End -%If (Qt_2_00 -) - virtual void setOutputToFile(bool); - QString outputFileName() const; - virtual void setOutputFileName(const QString &); - - QString printProgram() const; - virtual void setPrintProgram(const QString &); - - QString printerSelectionOption() const; - virtual void setPrinterSelectionOption(const QString &); - - QString docName() const; - virtual void setDocName(const QString &); - QString creator() const; - virtual void setCreator(const QString &); -%End - - Orientation orientation() const; -%If (- Qt_2_00) - void setOrientation(Orientation); -%End -%If (Qt_2_00 -) - virtual void setOrientation(Orientation); -%End - PageSize pageSize() const; -%If (- Qt_2_00) - void setPageSize(PageSize); - - void setPageOrder(PageOrder); -%End -%If (Qt_2_00 -) - virtual void setPageSize(PageSize); - - virtual void setPageOrder(PageOrder); -%End - PageOrder pageOrder() const; - -%If (Qt_3_0_0 -) - void setResolution(int); - int resolution() const; -%End - -%If (- Qt_2_00) - void setColorMode(ColorMode); -%End -%If (Qt_2_00 -) - virtual void setColorMode(ColorMode); -%End - ColorMode colorMode() const; - -%If (Qt_2_00 -) - virtual void setFullPage(bool); - bool fullPage() const; - QSize margins() const; -%End - -%If (Qt_3_1_0 -) - void setMargins(uint,uint,uint,uint); -// void margins(uint *,uint *,uint *,uint *) const; -%End - - int fromPage() const; - int toPage() const; -%If (- Qt_2_00) - void setFromTo(int,int); -%End -%If (Qt_2_00 -) - virtual void setFromTo(int,int); -%End - int minPage() const; - int maxPage() const; -%If (- Qt_2_00) - void setMinMax(int,int); -%End -%If (Qt_2_00 -) - virtual void setMinMax(int,int); -%End - int numCopies() const; -%If (- Qt_2_00) - void setNumCopies(int); -%End -%If (Qt_2_00 -) - virtual void setNumCopies(int); -%End - -%If (Qt_3_0_0 -) - bool collateCopiesEnabled() const; - void setCollateCopiesEnabled(bool); - - bool collateCopies() const; - void setCollateCopies(bool); -%End - -%If (Qt_3_2_0 -) - PrintRange printRange() const; - void setPrintRange(PrintRange); -%End - - bool newPage(); - bool abort(); - bool aborted() const; - - bool setup(QWidget * = 0); - -%If (Qt_3_0_0 -) - PaperSource paperSource() const; - virtual void setPaperSource(PaperSource); -%End - -%If (Qt_3_2_0 -) - void setOptionEnabled(PrinterOption,bool); - bool isOptionEnabled(PrinterOption); -%End - -private: - QPrinter(const QPrinter &); -}; - -%End diff --git a/python/pyqt/sip/qt/qprocess.sip b/python/pyqt/sip/qt/qprocess.sip deleted file mode 100644 index 82bcc6df..00000000 --- a/python/pyqt/sip/qt/qprocess.sip +++ /dev/null @@ -1,112 +0,0 @@ -// This is the SIP interface definition for QProcess. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QProcess (Qt v3+) - -QProcess is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QProcess : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QProcess(QObject * /TransferThis/ = 0,const char * = 0); - QProcess(const QString &,QObject * /TransferThis/ = 0, - const char * = 0); - QProcess(const QStringList &,QObject * /TransferThis/ = 0, - const char * = 0); - - QStringList arguments() const; - void clearArguments(); - virtual void setArguments(const QStringList &); - virtual void addArgument(const QString &); - QDir workingDirectory() const; - virtual void setWorkingDirectory(const QDir &); - - enum Communication { - Stdin, - Stdout, - Stderr, - DupStderr - }; - - void setCommunication(int); - int communication() const; - - virtual bool start(QStringList * = 0); - virtual bool launch(const QString &, QStringList * = 0 ); - virtual bool launch(const QByteArray &,QStringList * = 0 ); - - bool isRunning() const; - bool normalExit() const; - int exitStatus() const; - - virtual QByteArray readStdout() /ReleaseGIL/; - virtual QByteArray readStderr() /ReleaseGIL/; - bool canReadLineStdout() const; - bool canReadLineStderr() const; - virtual QString readLineStdout() /ReleaseGIL/; - virtual QString readLineStderr() /ReleaseGIL/; - -%If (WS_X11 || WS_MACX || WS_QWS) - typedef long PID; -%End - - PID processIdentifier(); - - void flushStdin(); - -signals: - void readyReadStdout(); - void readyReadStderr(); - void processExited(); - void wroteToStdin(); - void launchFinished(); - -public slots: - void tryTerminate() const; - void kill() const; - - virtual void writeToStdin(const QByteArray &); - virtual void writeToStdin(const QString &); - virtual void closeStdin(); - -protected: - void connectNotify(const char *); - void disconnectNotify(const char *); - -private: -%If (Qt_3_1_0 -) - QProcess(const QProcess &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qprogressbar.sip b/python/pyqt/sip/qt/qprogressbar.sip deleted file mode 100644 index eb02b3a5..00000000 --- a/python/pyqt/sip/qt/qprogressbar.sip +++ /dev/null @@ -1,95 +0,0 @@ -// This is the SIP interface definition for QProgressBar. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QProgressBar - -QProgressBar is fully implemented. - - -%End - - -class QProgressBar : QFrame -{ -%TypeHeaderCode -#include -%End - -public: - QProgressBar(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - QProgressBar(int,QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - - int totalSteps() const; - int progress() const; -%If (Qt_3_0_0 -) - const QString &progressString() const; -%End - - QSize sizeHint() const; -%If (Qt_2_00 - Qt_3_0_0) - QSizePolicy sizePolicy() const; -%End -%If (Qt_2_00 -) - QSize minimumSizeHint() const; - - void setCenterIndicator(bool); - bool centerIndicator() const; - - void setIndicatorFollowsStyle(bool); - bool indicatorFollowsStyle() const; -%End - -%If (Qt_3_0_0 -) - bool percentageVisible() const; - void setPercentageVisible(bool); -%End - - void show(); - -public slots: - void reset(); -%If (- Qt_2_00) - void setTotalSteps(int); - void setProgress(int); -%End -%If (Qt_2_00 -) - virtual void setTotalSteps(int); - virtual void setProgress(int); -%End -%If (Qt_3_1_0 -) - void setProgress(int,int); -%End - -protected: - void drawContents(QPainter *); - virtual bool setIndicator(QString &,int,int); -%If (Qt_2_00 - Qt_3_0_0) - void drawContentsMask(QPainter *); -%End -%If (Qt_2_00 -) - void styleChange(QStyle &); -%End - -private: - QProgressBar(const QProgressBar &); -}; diff --git a/python/pyqt/sip/qt/qprogressdialog.sip b/python/pyqt/sip/qt/qprogressdialog.sip deleted file mode 100644 index 986baab8..00000000 --- a/python/pyqt/sip/qt/qprogressdialog.sip +++ /dev/null @@ -1,194 +0,0 @@ -// This is the SIP interface definition for QProgressDialog. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QProgressDialog - -QProgressDialog is fully implemented. -value. - - -%End - - -%If (Qt_PROGRESSDIALOG) - -%If (Qt_3_0_0 -) - -class QProgressDialog : QDialog -{ -%TypeHeaderCode -#include -%End - -public: - QProgressDialog(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0, - WFlags = 0); - QProgressDialog(const QString &,const QString &,int, - QWidget * /TransferThis/ = 0,const char * = 0,bool = 0, - WFlags = 0); - - void setLabel(QLabel *); - void setCancelButton(QPushButton *); - void setBar(QProgressBar *); - - bool wasCancelled() const; -%If (Qt_3_2_0 -) - bool wasCanceled() const; -%End - - int totalSteps() const; - int progress() const; - - QSize sizeHint() const; - - int minimumDuration() const; - - QString labelText() const; - - void setAutoReset(bool); - bool autoReset() const; - void setAutoClose(bool); - bool autoClose() const; - -public slots: - void cancel(); - void reset(); - void setTotalSteps(int); - void setProgress(int); -%If (Qt_3_1_0 -) - void setProgress(int,int); -%End - void setLabelText(const QString &); - void setCancelButtonText(const QString &); - - void setMinimumDuration(int); - -signals: - void cancelled(); -%If (Qt_3_2_0 -) - void canceled(); -%End - -protected: - void resizeEvent(QResizeEvent *); - void closeEvent(QCloseEvent *); - void styleChange(QStyle &); - void showEvent(QShowEvent *); - -protected slots: - void forceShow(); - -private: - QProgressDialog(const QProgressDialog &); -}; - -%End - - -%If (- Qt_3_0_0) - -class QProgressDialog : QSemiModal -{ -%TypeHeaderCode -#include -%End - -public: - QProgressDialog(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0, - WFlags = 0); -%If (- Qt_2_00) - QProgressDialog(const char *,const char *,int,QWidget * /TransferThis/ = 0, - const char * = 0,bool = 0,WFlags = 0); -%End -%If (Qt_2_00 -) - QProgressDialog(const QString &,const QString &,int, - QWidget * /TransferThis/ = 0,const char * = 0,bool = 0, - WFlags = 0); -%End - - void setLabel(QLabel *); - void setCancelButton(QPushButton *); - void setBar(QProgressBar *); - - bool wasCancelled() const; - - int totalSteps() const; - int progress() const; - - QSize sizeHint() const; - - int minimumDuration() const; - -%If (Qt_2_1_0 -) - QString labelText() const; - - void setAutoReset(bool); - bool autoReset() const; - void setAutoClose(bool); - bool autoClose() const; -%End - -public slots: - void cancel(); - void reset(); - void setTotalSteps(int); - void setProgress(int); -%If (- Qt_2_00) - void setLabelText(const char *); - void setCancelButtonText(const char *); -%End -%If (Qt_2_00 -) - void setLabelText(const QString &); - void setCancelButtonText(const QString &); -%End - - void setMinimumDuration(int); - -signals: - void cancelled(); - -protected: - void resizeEvent(QResizeEvent *); -%If (- Qt_2_00) - void styleChange(GUIStyle); -%End -%If (Qt_2_00 -) - void closeEvent(QCloseEvent *); - void styleChange(QStyle &); -%End -%If (Qt_2_1_0 -) - void showEvent(QShowEvent *); -%End - -protected slots: -%If (Qt_2_2_0 -) - void forceShow(); -%End - -private: - QProgressDialog(const QProgressDialog &); -}; - -%End - -%End diff --git a/python/pyqt/sip/qt/qptrlist.sip b/python/pyqt/sip/qt/qptrlist.sip deleted file mode 100644 index e3b039a8..00000000 --- a/python/pyqt/sip/qt/qptrlist.sip +++ /dev/null @@ -1,111 +0,0 @@ -// This is the SIP interface definition for all types based on the QPtrList -// template. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QPtrList<type> (Qt v2+) - -Types based on the QPtrList template are automatically -converted to and from Python lists of the type. - - -%End - - -%If (Qt_2_00 -) - -template -%MappedType QPtrList -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - Type *dw; - int i; - PyObject *l; - - // Create the list. - - if ((l = PyList_New(sipCpp -> count())) == NULL) - return NULL; - - // Get it. - - i = 0; - - for (dw = sipCpp -> first(); dw != NULL; dw = sipCpp -> next()) - { - PyObject *dwobj; - - if ((dwobj = sipConvertFromInstance(dw,sipClass_Type,sipTransferObj)) == NULL || PyList_SetItem(l,i,dwobj) < 0) - { - Py_XDECREF(dwobj); - Py_DECREF(l); - - return NULL; - } - - ++i; - } - - return l; -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - { - if (!PyList_Check(sipPy)) - return 0; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_Type,0)) - return 0; - - return 1; - } - - QPtrList *qpl = new QPtrList; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - { - // We apply the transfer to the list itself, not the elements. - // Note that any temporary element will never be destroyed. - // There is nothing that can be done about this. - qpl -> append(reinterpret_cast(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_Type,0,0,0,sipIsErr))); - - if (*sipIsErr) - { - delete qpl; - - return 0; - } - } - - *sipCppPtr = qpl; - - return sipGetState(sipTransferObj); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qpushbutton.sip b/python/pyqt/sip/qt/qpushbutton.sip deleted file mode 100644 index 4294a4d1..00000000 --- a/python/pyqt/sip/qt/qpushbutton.sip +++ /dev/null @@ -1,143 +0,0 @@ -// This is the SIP interface definition for QPushButton. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QPushButton - -QPushButton is fully implemented. - - -%End - - -class QPushButton : QButton -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QPushButton(QWidget * /TransferThis/ = 0,const char * = 0); - QPushButton(const char *,QWidget * /TransferThis/ = 0,const char * = 0); -%End -%If (Qt_2_00 -) - QPushButton(QWidget * /TransferThis/,const char * = 0); - QPushButton(const QString &,QWidget * /TransferThis/,const char * = 0); -%End -%If (Qt_2_1_0 -) - QPushButton(const QIconSet &,const QString &,QWidget * /TransferThis/,const char * = 0); -%End - - QSize sizeHint() const; -%If (Qt_2_00 - Qt_3_0_0) - QSizePolicy sizePolicy() const; -%End - - void move(int,int); - void move(const QPoint &); - void resize(int,int); - void resize(const QSize &); -%If (- Qt_2_00) - void setGeometry(int,int,int,int); - - void setGeometry(const QRect &); - - void setToggleButton(bool); -%End -%If (Qt_2_00 - Qt_3_0_0) - virtual void setGeometry(int,int,int,int); - - virtual void setGeometry(const QRect &); - - virtual void setToggleButton(bool); -%End -%If (Qt_3_0_0 -) - void setGeometry(int,int,int,int); - - void setGeometry(const QRect &); - - void setToggleButton(bool); -%End - - bool autoDefault() const; -%If (- Qt_2_00) - void setAutoDefault(bool); -%End -%If (Qt_2_00 -) - virtual void setAutoDefault(bool); -%End - bool isDefault() const; -%If (- Qt_2_00) - void setDefault(bool); -%End -%If (Qt_2_00 -) - virtual void setDefault(bool); -%End - -%If (- Qt_2_00) - void setIsMenuButton(bool); -%End -%If (Qt_2_00 - Qt_3_0_0) - virtual void setIsMenuButton(bool); -%End -%If (- Qt_3_0_0) - bool isMenuButton() const; -%End - -%If (Qt_2_1_0 -) - void setPopup(QPopupMenu *); - QPopupMenu *popup() const; - - void setIconSet(const QIconSet &); - QIconSet *iconSet() const; -%End - -%If (Qt_2_2_0 -) - void setFlat(bool); - bool isFlat() const; -%End - -public slots: -%If (- Qt_2_00) - void setOn(bool); -%End -%If (Qt_2_00 -) - virtual void setOn(bool); -%End -%If (- Qt_3_0_0) - void toggle(); -%End - -protected: - void drawButton(QPainter *); - void drawButtonLabel(QPainter *); - void focusInEvent(QFocusEvent *); -%If (Qt_2_00 -) - void focusOutEvent(QFocusEvent *); - void resizeEvent(QResizeEvent *); - void updateMask(); -%End - -private: - QPushButton(const QPushButton &); -}; diff --git a/python/pyqt/sip/qt/qradiobutton.sip b/python/pyqt/sip/qt/qradiobutton.sip deleted file mode 100644 index aa2f21b6..00000000 --- a/python/pyqt/sip/qt/qradiobutton.sip +++ /dev/null @@ -1,84 +0,0 @@ -// This is the SIP interface definition for QRadioButton. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QRadioButton - -QRadioButton is fully implemented. - - -%End - - -class QRadioButton : QButton -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QRadioButton(QWidget * /TransferThis/ = 0,const char * = 0); - QRadioButton(const char *,QWidget * /TransferThis/ = 0,const char * = 0); -%End -%If (Qt_2_00 -) - QRadioButton(QWidget * /TransferThis/,const char * = 0); - QRadioButton(const QString &,QWidget * /TransferThis/,const char * = 0); -%End - - bool isChecked() const; - - QSize sizeHint() const; - -%If (- Qt_2_00) - void setChecked(bool); -%End -%If (Qt_2_00 - Qt_3_0_0) - virtual void setChecked(bool); - QSizePolicy sizePolicy() const; -%End - -public slots: -%If (Qt_3_0_0 -) - virtual void setChecked(bool); -%End - -protected: - bool hitButton(const QPoint &) const; - void drawButton(QPainter *); - void drawButtonLabel(QPainter *); -%If (- Qt_2_00) - void mouseReleaseEvent(QMouseEvent *); - void keyPressEvent(QKeyEvent *); -%End -%If (Qt_2_00 -) - void updateMask(); - - void resizeEvent(QResizeEvent *); -%End -%If (Qt_2_00 - Qt_3_0_0) - void focusInEvent(QFocusEvent *); -%End - -private: - QRadioButton(const QRadioButton &); -}; diff --git a/python/pyqt/sip/qt/qrangecontrol.sip b/python/pyqt/sip/qt/qrangecontrol.sip deleted file mode 100644 index 8d2d02dc..00000000 --- a/python/pyqt/sip/qt/qrangecontrol.sip +++ /dev/null @@ -1,79 +0,0 @@ -// This is the SIP interface definition for QRangeControl. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QRangeControl - -QRangeControl is fully implemented. - - -%End - - -class QRangeControl -{ -%TypeHeaderCode -#include -%End - -public: - QRangeControl(); - QRangeControl(int,int,int,int,int); - - int value() const; - void setValue(int); - void addPage(); - void subtractPage(); - void addLine(); - void subtractLine(); - - int minValue() const; - int maxValue() const; - void setRange(int,int); -%If (Qt_3_0_0 -) - void setMinValue(int); - void setMaxValue(int); -%End - - int lineStep() const; - int pageStep() const; - void setSteps(int,int); - -%If (Qt_2_00 -) - int bound(int) const; -%End - -protected: -%If (Qt_2_00 -) - int positionFromValue(int,int) const; - int valueFromPosition(int,int) const; -%End - void directSetValue(int); - int prevValue() const; - - virtual void valueChange(); - virtual void rangeChange(); - virtual void stepChange(); - -private: - QRangeControl(const QRangeControl &); -}; diff --git a/python/pyqt/sip/qt/qrect.sip b/python/pyqt/sip/qt/qrect.sip deleted file mode 100644 index 3a2acbf1..00000000 --- a/python/pyqt/sip/qt/qrect.sip +++ /dev/null @@ -1,209 +0,0 @@ -// This is the SIP interface definition for QRect. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QRect - -The Python -&, &=, -|, |=, -==, !=, in and -__nonzero__ operators are supported. - - - - void coords - int *x1 - int *y1 - int *x2 - int *y2 - - -This takes no parameters and returns a tuple containing the four values. - - - - void rect - int *x - int *y - int *w - int *h - - -This takes no parameters and returns a tuple containing the four values. - - - - QCOORD &rBottom - - - -Not implemented. (Qt v2+) - - - - QCOORD &rLeft - - - -Not implemented. (Qt v2+) - - - - QCOORD &rRight - - - -Not implemented. (Qt v2+) - - - - QCOORD &rTop - - - -Not implemented. (Qt v2+) - - -%End - - -class QRect -{ -%TypeHeaderCode -#include -%End - -public: - QRect(); - QRect(const QPoint &,const QPoint &); - QRect(const QPoint &,const QSize &); - QRect(int,int,int,int); - - bool isNull() const; - bool isEmpty() const; - bool isValid() const; - QRect normalize() const; - - int left() const; - int top() const; - int right() const; - int bottom() const; - -%If (Qt_2_00 -) -// QCOORD &rLeft(); -// QCOORD &rTop(); -// QCOORD &rRight(); -// QCOORD &rBottom(); -%End - - int x() const; - int y() const; - void setLeft(int); - void setTop(int); - void setRight(int); - void setBottom(int); - void setX(int); - void setY(int); - -%If (Qt_3_1_0 -) - void setTopLeft(const QPoint &); - void setBottomRight(const QPoint &); - void setTopRight(const QPoint &); - void setBottomLeft(const QPoint &); -%End - - QPoint topLeft() const; - QPoint bottomRight() const; - QPoint topRight() const; - QPoint bottomLeft() const; - QPoint center() const; - - void rect(int *,int *,int *,int *) const; - void coords(int *,int *,int *,int *) const; - -%If (Qt_3_1_0 -) - void moveLeft(int); - void moveTop(int); - void moveRight(int); - void moveBottom(int); -%End - void moveTopLeft(const QPoint &); - void moveBottomLeft(const QPoint &); - void moveTopRight(const QPoint &); - void moveBottomRight(const QPoint &); - void moveCenter(const QPoint &); - void moveBy(int,int); - - void setRect(int,int,int,int); - void setCoords(int,int,int,int); -%If (Qt_3_0_0 -) - void addCoords(int,int,int,int); -%End - - QSize size() const; - int width() const; - int height() const; - void setWidth(int); - void setHeight(int); - void setSize(const QSize &); - - QRect operator|(const QRect &) const; - QRect operator&(const QRect &) const; - QRect &operator|=(const QRect &); - QRect &operator&=(const QRect &); - - int __nonzero__() const; -%MethodCode - sipRes = sipCpp -> isValid(); -%End - - bool contains(const QPoint &,bool = 0) const; - - int __contains__(const QPoint &) const; -%MethodCode - sipRes = sipCpp -> contains(*a0); -%End - -%If (Qt_3_1_0 -) - bool contains(int,int) const; - bool contains(int,int,bool) const; -%End -%If (Qt_2_2_0 - Qt_3_1_0) - bool contains(int,int,bool = 0) const; -%End - bool contains(const QRect &,bool = 0) const; - - int __contains__(const QRect &) const; -%MethodCode - sipRes = sipCpp -> contains(*a0); -%End - - QRect unite(const QRect &) const; - QRect intersect(const QRect &) const; - bool intersects(const QRect &) const; - - // Qt defines the remaining operators as global, rather than part of - // the class, but SIP doesn't support global operators. - bool operator==(const QRect &) const; - bool operator!=(const QRect &) const; -}; diff --git a/python/pyqt/sip/qt/qregexp.sip b/python/pyqt/sip/qt/qregexp.sip deleted file mode 100644 index d7608241..00000000 --- a/python/pyqt/sip/qt/qregexp.sip +++ /dev/null @@ -1,139 +0,0 @@ -// This is the SIP interface definition for QRegExp. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QRegExp - -The Python == and != operators are -supported. - - - - int match - const char *str - int index = 0 - int *len = 0 - - -This takes str and index parameters and -returns a tuple of the int result and the -len value. (Qt v1.x) - - - - int match - const QString &str - int index = 0 - int *len = 0 - - -This takes str and index parameters and -returns a tuple of the int result and the -len value. (Qt v2+) - - -%End - - -class QRegExp -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_1_0 -) - enum CaretMode { - CaretAtZero, - CaretAtOffset, - CaretWontMatch - }; -%End - - QRegExp(); -%If (- Qt_2_00) - QRegExp(const char *,bool = 1,bool = 0); -%End -%If (Qt_2_00 -) - QRegExp(const QString &,bool = 1,bool = 0); -%End - QRegExp(const QRegExp &); - - bool operator==(const QRegExp &) const; - bool operator!=(const QRegExp &) const; - - bool isEmpty() const; - bool isValid() const; -%If (- Qt_2_00) - const char *pattern() const; -%End -%If (Qt_2_00 -) - QString pattern() const; -%End -%If (Qt_2_2_0 -) - void setPattern(const QString &); -%End - bool caseSensitive() const; - void setCaseSensitive(bool); - bool wildcard() const; - void setWildcard(bool); -%If (Qt_3_0_0 -) - bool minimal() const; - void setMinimal(bool); - - bool exactMatch(const QString &) const; -%End - -%If (- Qt_2_00) - int match(const char *,int = 0,int * = 0) const; -%End -%If (Qt_2_00 - Qt_3_0_0) - int match(const QString &,int = 0,int * = 0) const; -%End - -%If (Qt_2_2_0 - Qt_3_0_0) - int find(const QString &,int); -%End - -%If (Qt_3_0_0 -) - int search(const QString &,int = 0) const; -%If (Qt_3_1_0 -) - int search(const QString &,int,CaretMode) const; -%End - int searchRev(const QString &,int = -1) const; -%If (Qt_3_1_0 -) - int searchRev(const QString &,int,CaretMode) const; -%End - int matchedLength() const; -%If (Qt_3_1_0 -) - int numCaptures() const; -%End - QStringList capturedTexts(); - QString cap(int = 0); - int pos(int = 0); -%End -%If (Qt_3_1_0 -) - QString errorString(); - - static QString escape(const QString &); -%End -}; diff --git a/python/pyqt/sip/qt/qregion.sip b/python/pyqt/sip/qt/qregion.sip deleted file mode 100644 index 950bb0be..00000000 --- a/python/pyqt/sip/qt/qregion.sip +++ /dev/null @@ -1,126 +0,0 @@ -// This is the SIP interface definition for QRegion. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QRegion - -The Python -|, |=, -+, +=, -&, &=, --, -=, -^, ^=, -==, !=, in and -__nonzero__ operators are supported. - - - - QArray<QRect> rects - - - -Not implemented. - - - - void setRects - QRect *rects - int num - - -Not yet implemented. (Qt v2.2+) - - -%End - - -class QRegion -{ -%TypeHeaderCode -#include -%End - -public: - enum RegionType - { - Rectangle, - Ellipse - }; - - QRegion(); - QRegion(int,int,int,int,RegionType = Rectangle); - QRegion(const QRect &,RegionType = Rectangle); - QRegion(const QPointArray &,bool = 0); - QRegion(const QRegion &); -%If (Qt_1_43 -) - QRegion(const QBitmap &); -%End - - bool isNull() const; - bool isEmpty() const; - - bool contains(const QPoint &) const; - - int __contains__(const QPoint &) const; -%MethodCode - sipRes = sipCpp -> contains(*a0); -%End - - bool contains(const QRect &) const; - - int __contains__(const QRect &) const; -%MethodCode - sipRes = sipCpp -> contains(*a0); -%End - - void translate(int,int); - - QRegion unite(const QRegion &) const; - QRegion intersect(const QRegion &) const; - QRegion subtract(const QRegion &) const; - QRegion eor(const QRegion &) const; - - QRect boundingRect() const; -// QArray rects() const; -%If (Qt_2_2_0 -) -// void setRects(const QRect *,int); -%End - - const QRegion operator|(const QRegion &) const; - const QRegion operator+(const QRegion &) const; - const QRegion operator&(const QRegion &) const; - const QRegion operator-(const QRegion &) const; - const QRegion operator^(const QRegion &) const; - QRegion &operator|=(const QRegion &); - QRegion &operator+=(const QRegion &); - QRegion &operator&=(const QRegion &); - QRegion &operator-=(const QRegion &); - QRegion &operator^=(const QRegion &); - - int __nonzero__() const; -%MethodCode - sipRes = !sipCpp -> isNull(); -%End - - bool operator==(const QRegion &) const; - bool operator!=(const QRegion &) const; -}; diff --git a/python/pyqt/sip/qt/qscrollbar.sip b/python/pyqt/sip/qt/qscrollbar.sip deleted file mode 100644 index 15cf942d..00000000 --- a/python/pyqt/sip/qt/qscrollbar.sip +++ /dev/null @@ -1,170 +0,0 @@ -// This is the SIP interface definition for QScrollBar. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QScrollBar - -QScrollBar is fully implemented. - - -%End - - -class QScrollBar : QWidget, QRangeControl -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - enum Orientation { - Horizontal, - Vertical - }; -%End - -%If (- Qt_2_00) - QScrollBar(QWidget * /TransferThis/ = 0,const char * = 0); - QScrollBar(Orientation,QWidget * /TransferThis/ = 0,const char * = 0); - QScrollBar(int,int,int,int,int,Orientation, - QWidget * /TransferThis/ = 0,const char * = 0); -%End -%If (Qt_2_00 -) - QScrollBar(QWidget * /TransferThis/,const char * = 0); - QScrollBar(Orientation,QWidget * /TransferThis/,const char * = 0); - QScrollBar(int,int,int,int,int,Orientation,QWidget * /TransferThis/, - const char * = 0); -%End - -%If (- Qt_2_00) - void setOrientation(Orientation); -%End -%If (Qt_2_00 -) - virtual void setOrientation(Orientation); -%End - Orientation orientation() const; -%If (- Qt_2_00) - void setTracking(bool); -%End -%If (Qt_2_00 -) - virtual void setTracking(bool); -%End - bool tracking() const; - bool draggingSlider() const; - -%If (Qt_2_00 -) - virtual void setPalette(const QPalette &); -%End -%If (- Qt_2_00) - void setPalette(const QPalette &); -%End -%If (Qt_3_1_0 -) - virtual QSize sizeHint() const; -%End -%If (- Qt_3_1_0) - QSize sizeHint() const; -%End -%If (Qt_3_1_0 -) - virtual void setSizePolicy(QSizePolicy); -%End -%If (Qt_3_2_0 -) - void setSizePolicy(QSizePolicy::SizeType,QSizePolicy::SizeType, - bool = 0); -%End -%If (Qt_2_00 - Qt_3_0_0) - QSizePolicy sizePolicy() const; -%End - -%If (Qt_2_1_0 -) - int minValue() const; - int maxValue() const; - void setMinValue(int); - void setMaxValue(int); - int lineStep() const; - int pageStep() const; - void setLineStep(int); - void setPageStep(int); - int value() const; -%End -%If (- Qt_3_0_0) - void setValue(int); -%End - -%If (Qt_3_0_0 -) - int sliderStart() const; - QRect sliderRect() const; -%End - -public slots: -%If (Qt_3_0_0 -) - void setValue(int); -%End - -signals: - void valueChanged(int); - void sliderPressed(); - void sliderMoved(int); - void sliderReleased(); - void nextLine(); - void prevLine(); - void nextPage(); - void prevPage(); - -protected: -%If (Qt_2_00 -) - void wheelEvent(QWheelEvent *); -%End - void keyPressEvent(QKeyEvent *); - void resizeEvent(QResizeEvent *); - void paintEvent(QPaintEvent *); - - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); -%If (Qt_3_0_0 -) - void contextMenuEvent(QContextMenuEvent *); -%End -%If (Qt_3_0_4 -) - void hideEvent(QHideEvent *); -%End - - void valueChange(); - void stepChange(); - void rangeChange(); - -%If (- Qt_3_0_0) - int sliderStart() const; - QRect sliderRect() const; -%End - -%If (- Qt_2_00) - void timerEvent(QTimerEvent *); -%End - -%If (Qt_2_00 -) - void styleChange(QStyle &); -%End - -private: - QScrollBar(const QScrollBar &); -}; diff --git a/python/pyqt/sip/qt/qscrollview.sip b/python/pyqt/sip/qt/qscrollview.sip deleted file mode 100644 index 331503a4..00000000 --- a/python/pyqt/sip/qt/qscrollview.sip +++ /dev/null @@ -1,325 +0,0 @@ -// This is the SIP interface definition for QScrollView. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QScrollView - - void contentsToViewport - int x - int y - int &vx - int &vy - - -This takes the x and y parameters and -returns a tuple containing the vx and vy -values. (Qt v2+) - - - - void viewportToContents - int vx - int vy - int &x - int &y - - -This takes the vx and vy parameters and -returns a tuple containing the x and y -values. (Qt v2+) - - -%End - - -class QScrollView : QFrame -{ -%TypeHeaderCode -#include -%End - -public: - QScrollView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - - enum ResizePolicy { - Default, - Manual, - AutoOne, -%If (Qt_2_3_0 -) - AutoOneFit, -%End - }; - - virtual void setResizePolicy(ResizePolicy); - ResizePolicy resizePolicy() const; - -%If (Qt_2_1_0 -) - void styleChange(QStyle &); -%End - // The child was reparented when it was added, and it stays that way, - // so we don't transfer it back here. - void removeChild(QWidget *); -%If (- Qt_2_00) - void addChild(QWidget * /Transfer/); - virtual void addChild(QWidget * /Transfer/,int,int); -%End -%If (Qt_2_00 -) - virtual void addChild(QWidget * /Transfer/,int = 0,int = 0); -%End - virtual void moveChild(QWidget *,int,int); - int childX(QWidget *); - int childY(QWidget *); -%If (- Qt_3_0_0) - bool childIsVisible(QWidget *); - void showChild(QWidget *,bool = 1); -%End - - enum ScrollBarMode { - Auto, - AlwaysOff, - AlwaysOn - }; - - ScrollBarMode vScrollBarMode() const; - virtual void setVScrollBarMode(ScrollBarMode); - - ScrollBarMode hScrollBarMode() const; - virtual void setHScrollBarMode(ScrollBarMode); - - QWidget *cornerWidget() const; - virtual void setCornerWidget(QWidget * /Transfer/); - -%If (- Qt_2_00) - QScrollBar *horizontalScrollBar(); - QScrollBar *verticalScrollBar(); - QWidget *viewport(); -%End -%If (Qt_2_00 -) - QScrollBar *horizontalScrollBar() const; - QScrollBar *verticalScrollBar() const; - QWidget *viewport() const; - QWidget *clipper() const; - - int visibleWidth() const; - int visibleHeight() const; -%End - - int contentsWidth() const; - int contentsHeight() const; - int contentsX() const; - int contentsY() const; - - void resize(int,int); - void resize(const QSize &); - void show(); - -%If (Qt_2_00 -) - void updateContents(int,int,int,int); -%End -%If (Qt_2_1_0 -) - void updateContents(const QRect &); -%End -%If (Qt_3_0_0 -) - void updateContents(); -%End -%If (Qt_2_00 -) - void repaintContents(int,int,int,int,bool = 1); -%End -%If (Qt_2_1_0 -) - void repaintContents(const QRect &,bool = 1); -%End -%If (Qt_3_0_0 -) - void repaintContents(bool = 1); -%End - -%If (Qt_2_00 -) - // Note that this wasn't actually const until Qt v3.0.0. - void contentsToViewport(int,int,int &,int &) const; - - // Note that this wasn't actually const until Qt v3.0.0. - void viewportToContents(int,int,int &,int &) const; - -%If (- Qt_3_0_0) - QPoint contentsToViewport(const QPoint &); - QPoint viewportToContents(const QPoint &); -%End -%If (Qt_3_0_0 -) - QPoint contentsToViewport(const QPoint &) const; - QPoint viewportToContents(const QPoint &) const; -%End - void enableClipper(bool); - -%If (Qt_2_2_0 -) - void setStaticBackground(bool); - bool hasStaticBackground() const; -%End - - QSize viewportSize(int,int) const; -%If (Qt_2_1_0 -) - QSize sizeHint() const; -%End -%If (- Qt_3_0_0) - QSizePolicy sizePolicy() const; -%End - QSize minimumSizeHint() const; - - void removeChild(QObject * /TransferBack/); -%End - -%If (Qt_3_1_0 -) - bool isHorizontalSliderPressed(); - bool isVerticalSliderPressed(); -%End - -%If (Qt_DRAGANDDROP) -%If (Qt_2_1_0 - Qt_3_0_0) - void setDragAutoScroll(bool); -%End -%If (Qt_3_0_0 -) - virtual void setDragAutoScroll(bool); -%End -%If (Qt_2_1_0 -) - bool dragAutoScroll() const; -%End -%End - -signals: - void contentsMoving(int,int); -%If (Qt_3_1_0 -) - void horizontalSliderPressed(); - void horizontalSliderReleased(); - void verticalSliderPressed(); - void verticalSliderReleased(); -%End - -public slots: - virtual void resizeContents(int,int); - void scrollBy(int,int); -%If (- Qt_2_00) - void setContentsPos(int,int); -%End -%If (Qt_2_00 -) - virtual void setContentsPos(int,int); -%End - void ensureVisible(int,int); - void ensureVisible(int,int,int,int); - void center(int,int); - void center(int,int,float,float); - - void updateScrollBars(); -%If (Qt_2_00 -) - void setEnabled(bool); -%End - -protected: -%If (Qt_2_00 -) - virtual void drawContents(QPainter *,int,int,int,int); -%End - virtual void drawContentsOffset(QPainter *,int,int,int,int,int,int); - -%If (Qt_2_00 -) - virtual void contentsMousePressEvent(QMouseEvent *); - virtual void contentsMouseReleaseEvent(QMouseEvent *); - virtual void contentsMouseDoubleClickEvent(QMouseEvent *); - virtual void contentsMouseMoveEvent(QMouseEvent *); -%If (Qt_DRAGANDDROP) - virtual void contentsDragEnterEvent(QDragEnterEvent *); - virtual void contentsDragMoveEvent(QDragMoveEvent *); - virtual void contentsDragLeaveEvent(QDragLeaveEvent *); - virtual void contentsDropEvent(QDropEvent *); -%End - virtual void contentsWheelEvent(QWheelEvent *); -%End -%If (Qt_3_0_0 -) - virtual void contentsContextMenuEvent(QContextMenuEvent *); -%End - - virtual void viewportPaintEvent(QPaintEvent *); -%If (Qt_2_00 -) - virtual void viewportResizeEvent(QResizeEvent *); -%End - virtual void viewportMousePressEvent(QMouseEvent *); - virtual void viewportMouseReleaseEvent(QMouseEvent *); - virtual void viewportMouseDoubleClickEvent(QMouseEvent *); - virtual void viewportMouseMoveEvent(QMouseEvent *); -%If (Qt_2_00 -) -%If (Qt_DRAGANDDROP) - virtual void viewportDragEnterEvent(QDragEnterEvent *); - virtual void viewportDragMoveEvent(QDragMoveEvent *); - virtual void viewportDragLeaveEvent(QDragLeaveEvent *); - virtual void viewportDropEvent(QDropEvent *); -%End - virtual void viewportWheelEvent(QWheelEvent *); -%End -%If (Qt_3_0_0 -) - virtual void viewportContextMenuEvent(QContextMenuEvent *); -%End - - void frameChanged(); - -%If (- Qt_2_00) - void setMargins(int,int,int,int); -%End -%If (Qt_2_00 -) - virtual void setMargins(int,int,int,int); -%End - int leftMargin() const; - int topMargin() const; - int rightMargin() const; - int bottomMargin() const; - - bool focusNextPrevChild(bool); - -%If (Qt_2_00 -) - virtual void setHBarGeometry(QScrollBar &,int,int,int,int); - virtual void setVBarGeometry(QScrollBar &,int,int,int,int); -%End - - void resizeEvent(QResizeEvent *); -%If (Qt_3_0_0 -) - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseDoubleClickEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); -%End -%If (Qt_2_00 -) - void wheelEvent(QWheelEvent *); -%End -%If (Qt_3_0_0 -) - void contextMenuEvent(QContextMenuEvent *); -%End - bool eventFilter(QObject *,QEvent *); - -%If (Qt_3_1_0 -) - void setCachedSizeHint(const QSize &) const; - QSize cachedSizeHint() const; - void fontChange(const QFont &); -%End - -private: - QScrollView(const QScrollView &); - -public: -%If (Qt_3_1_0 -) - void disableSizeHintCaching(); -%End -}; diff --git a/python/pyqt/sip/qt/qsemaphore.sip b/python/pyqt/sip/qt/qsemaphore.sip deleted file mode 100644 index b13951a0..00000000 --- a/python/pyqt/sip/qt/qsemaphore.sip +++ /dev/null @@ -1,112 +0,0 @@ -// This is the SIP interface definition for QSemaphore. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSemaphore (Qt v2.2+) - -QSemaphore is fully implemented. The += -and -= operators have also been implemented, but require -Python v2.0 or later. - - -%End - - -%If (Qt_THREAD_SUPPORT) - -%If (Qt_3_0_0 -) - -class QSemaphore -{ -%TypeHeaderCode -#include -%End - -public: - QSemaphore(int); - - int available() const; - int total() const; - - QSemaphore &operator+=(int); -%MethodCode - // Some versions of Qt v3 under Windows have a bug where the += - // operator doesn't work properly (but ++ does). This way we - // make sure that the most common value of n (ie. 1) works - // properly with the buggy version. - - Py_BEGIN_ALLOW_THREADS - if (a0 == 1) - (*sipCpp)++; - else - (*sipCpp) += a0; - Py_END_ALLOW_THREADS -%End - - QSemaphore &operator-=(int); -%MethodCode - // Some versions of Qt v3 under Windows have a bug where the -= - // operator doesn't work properly (but -- does). This way we - // make sure that the most common value of n (ie. 1) works - // properly with the buggy version. - - Py_BEGIN_ALLOW_THREADS - if (a0 == 1) - (*sipCpp)--; - else - (*sipCpp) -= a0; - Py_END_ALLOW_THREADS -%End - - bool tryAccess(int); - -private: - QSemaphore(const QSemaphore &); -}; - -%End - - -%If (Qt_2_2_0 - Qt_3_0_0) - -class QSemaphore : Qt -{ -%TypeHeaderCode -#include -%End - -public: - QSemaphore(int); - - int available() const; - int total() const; - - QSemaphore &operator+=(int); - QSemaphore &operator-=(int); - -private: - QSemaphore(const QSemaphore &); -}; - -%End - -%End diff --git a/python/pyqt/sip/qt/qsemimodal.sip b/python/pyqt/sip/qt/qsemimodal.sip deleted file mode 100644 index 61760572..00000000 --- a/python/pyqt/sip/qt/qsemimodal.sip +++ /dev/null @@ -1,63 +0,0 @@ -// This is the SIP interface definition for QSemiModal. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSemiModal (Qt v1, v2) - -QSemiModal is fully implemented. - - -%End - - -%If (Qt_SEMIMODAL) -%If (- Qt_3_0_0) - -class QSemiModal : QWidget -{ -%TypeHeaderCode -#include -%End - -public: - QSemiModal(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0,WFlags = 0); - - void show(); - void move(int,int); - void move(const QPoint &); - void resize(int,int); - void resize(const QSize &); -%If (- Qt_2_00) - void setGeometry(int,int,int,int); - void setGeometry(const QRect &); -%End -%If (Qt_2_00 -) - virtual void setGeometry(int,int,int,int); - virtual void setGeometry(const QRect &); -%End - -private: - QSemiModal(const QSemiModal &); -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qsessionmanager.sip b/python/pyqt/sip/qt/qsessionmanager.sip deleted file mode 100644 index 8c6a7c1e..00000000 --- a/python/pyqt/sip/qt/qsessionmanager.sip +++ /dev/null @@ -1,89 +0,0 @@ -// This is the SIP interface definition for QSessionManager. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSessionManager (Qt v2+) - -QSessionManager is fully implemented. - - -%End - - -%If (Qt_2_00 -) - -class QSessionManager : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QString sessionId() const; -%If (Qt_3_1_0 -) - QString sessionKey() const; -%End - - bool allowsInteraction(); - bool allowsErrorInteraction(); - void release(); - - void cancel(); - - enum RestartHint { - RestartIfRunning, - RestartAnyway, - RestartImmediately, - RestartNever - }; - - void setRestartHint(RestartHint); - RestartHint restartHint() const; - - void setRestartCommand(const QStringList &); - QStringList restartCommand() const; - void setDiscardCommand(const QStringList &); - QStringList discardCommand() const; - -%If (- Qt_3_0_0) - void setProperty(const QString &,const QString &); - void setProperty(const QString &,const QStringList &); -%End -%If (Qt_3_0_0 -) - void setManagerProperty(const QString &,const QString &); - void setManagerProperty(const QString &,const QStringList &); -%End - - bool isPhase2() const; - void requestPhase2(); - -private: -%If (Qt_3_1_0 -) - QSessionManager(QApplication * /TransferThis/,QString &,QString &); -%End -%If (- Qt_3_1_0) - QSessionManager(QApplication * /TransferThis/,QString &); -%End - ~QSessionManager(); -}; - -%End diff --git a/python/pyqt/sip/qt/qsettings.sip b/python/pyqt/sip/qt/qsettings.sip deleted file mode 100644 index b32fbd85..00000000 --- a/python/pyqt/sip/qt/qsettings.sip +++ /dev/null @@ -1,177 +0,0 @@ -// This is the SIP interface definition for QSettings. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSettings (Qt v3+) - - bool readBoolEntry - const QString &key - bool def = 0 - bool *ok = 0 - - -The ok is not passed and the returned value is a tuple of -the bool result and the ok flag. - - - -double readDoubleEntry - const QString &key - double def = 0 - bool *ok = 0 - - -The ok is not passed and the returned value is a tuple of -the double result and the ok flag. - - - -QString readEntry - const QString &key - const QString &def = QString::null - bool *ok = 0 - - -The ok is not passed and the returned value is a tuple of -the QString result and the ok flag. - - - -QStringList readListEntry - const QString &key - bool *ok = 0 - - -The ok is not passed and the returned value is a tuple of -the QStringList result and the ok flag. - - - -QStringList readListEntry - const QString &key - const QChar &separator - bool *ok = 0 - - -The ok is not passed and the returned value is a tuple of -the QStringList result and the ok flag. - - - -int readNumEntry - const QString &key - int def = 0 - bool *ok = 0 - - -The ok is not passed and the returned value is a tuple of -the int result and the ok flag. - - - - bool writeEntry - const QString &key - bool value - - -Not implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QSettings -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_1_0 -) - enum Format { - Native, - Ini - }; -%End - - enum System { - Unix, - Windows, - Mac - }; - -%If (Qt_3_1_0 -) - enum Scope { - User, - Global - }; -%End - - QSettings(); -%If (Qt_3_1_0 -) - QSettings(Format); -%End - -// bool writeEntry(const QString &,bool); - bool writeEntry(const QString &,int /Constrained/); - bool writeEntry(const QString &,double); -// bool writeEntry(const QString &,const char *); - bool writeEntry(const QString &,const QString &); - bool writeEntry(const QString &,const QStringList &); - bool writeEntry(const QString &,const QStringList &,const QChar &); - - QStringList entryList(const QString &) const; - QStringList subkeyList(const QString &) const; - - QStringList readListEntry(const QString &,bool * = 0); - QStringList readListEntry(const QString &,const QChar &,bool * = 0); - QString readEntry(const QString &,const QString & = QString::null, - bool * = 0); - int readNumEntry(const QString &,int = 0,bool * = 0); - double readDoubleEntry(const QString &,double = 0,bool * = 0); - bool readBoolEntry(const QString &,bool = 0,bool * = 0); - - bool removeEntry(const QString &); - - void insertSearchPath(System,const QString &); - void removeSearchPath(System,const QString &); - -%If (Qt_3_1_0 -) - void setPath(const QString &,const QString &,Scope = Global); - - void beginGroup(const QString &); - void endGroup(); - void resetGroup(); - QString group() const; -%End - -%If (Qt_3_2_0 -) - bool sync(); -%End - -private: - QSettings(const QSettings &); -}; - -%End diff --git a/python/pyqt/sip/qt/qsgistyle.sip b/python/pyqt/sip/qt/qsgistyle.sip deleted file mode 100644 index c08fd7e0..00000000 --- a/python/pyqt/sip/qt/qsgistyle.sip +++ /dev/null @@ -1,157 +0,0 @@ -// This is the SIP interface definition for QSGIStyle. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSGIStyle (Qt v2.2+) - - void scrollBarMetrics - const QScrollBar *sb - int &sliderMin - int &sliderMax - int &sliderLength - int &buttonDim - - -This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2) - - -%End - - -%If (Qt_STYLE_SGI) -%If (Qt_2_2_0 -) - -class QSGIStyle : QMotifStyle -{ -%TypeHeaderCode -#include -%End - -public: - QSGIStyle(bool = 0); - - void polish(QWidget *); - void unPolish(QWidget *); - void polish(QApplication *); - void unPolish(QApplication *); - -%If (- Qt_3_0_0) - void polish(QPalette &); - - int defaultFrameWidth() const; - - void drawPanel(QPainter *,int,int,int,int,const QColorGroup &,bool = 0, - int = 1,const QBrush * = 0); - void drawSeparator(QPainter *,int,int,int,int,const QColorGroup &, - bool = 1,int = 1,int = 0); - void drawButton(QPainter *,int,int,int,int,const QColorGroup &,bool = 0, - const QBrush * = 0); - void drawBevelButton(QPainter *,int,int,int,int,const QColorGroup &, - bool = 0,const QBrush * = 0); - void drawPushButton(QPushButton *,QPainter *); - void drawArrow(QPainter *,ArrowType,bool,int,int,int,int, - const QColorGroup &,bool,const QBrush * = 0); - - QSize indicatorSize() const; - void drawIndicator(QPainter *,int,int,int,int,const QColorGroup &,int, - bool = 0,bool = 1); - void drawCheckMark(QPainter *,int,int,int,int,const QColorGroup &, - bool,bool); - 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); - - void scrollBarMetrics(const QScrollBar *,int &,int &,int &,int &); - - void drawScrollBarControls(QPainter *,const QScrollBar *,int,uint,uint); - - void drawSlider(QPainter *,int,int,int,int,const QColorGroup &, - Orientation,bool,bool); - void drawSliderMask(QPainter *,int,int,int,int,Orientation,bool,bool); - void drawSliderGroove(QPainter *,int,int,int,int,const QColorGroup &, - QCOORD,Orientation); - void drawSliderGrooveMask(QPainter *,int,int,int,int,QCOORD, - Orientation); - - void drawTab(QPainter *,const QTabBar *,QTab *,bool); - void drawTabMask(QPainter *,const QTabBar *,QTab *,bool); - - int splitterWidth() const; - void drawSplitter(QPainter *,int,int,int,int,const QColorGroup &, - Orientation); - - int popupMenuItemHeight(bool,QMenuItem *,const QFontMetrics &); - void drawPopupPanel(QPainter *,int,int,int,int,const QColorGroup &, - int = 2,const QBrush * = 0); - void drawPopupMenuItem(QPainter *,bool,int,int,QMenuItem *, - const QPalette &,bool,bool,int,int,int,int); - void drawMenuBarItem(QPainter *,int,int,int,int,QMenuItem *, - QColorGroup &,bool,bool); -%End -%If (Qt_3_0_0 -) - void drawPrimitive(PrimitiveElement,QPainter *,const QRect &, - const QColorGroup &,SFlags = Style_Default, - const QStyleOption & = QStyleOption()) const; - - void drawControl(ControlElement,QPainter *,const QWidget *, - const QRect &,const QColorGroup &, - SFlags = Style_Default, - const QStyleOption & = QStyleOption()) const; - - void drawComplexControl(ComplexControl,QPainter *,const QWidget *, - const QRect &,const QColorGroup &, - SFlags = Style_Default,SCFlags = SC_All, - SCFlags = SC_None, - const QStyleOption & = QStyleOption()) const; - - int pixelMetric(PixelMetric,const QWidget * = 0) const; - - QSize sizeFromContents(ContentsType,const QWidget *,const QSize &, - const QStyleOption & = QStyleOption()) const; - - QRect subRect(SubRect,const QWidget *) const; - - QRect querySubControlMetrics(ComplexControl,const QWidget *, - SubControl, - const QStyleOption & = QStyleOption()) const; -%End - -protected: - bool eventFilter(QObject *,QEvent *); - -private: - QSGIStyle(const QSGIStyle &); -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qsignalmapper.sip b/python/pyqt/sip/qt/qsignalmapper.sip deleted file mode 100644 index c241a994..00000000 --- a/python/pyqt/sip/qt/qsignalmapper.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP interface definition for QSignalMapper -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSignalMapper - -QSignalMapper is fully implemented. - - -%End - - -class QSignalMapper : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QSignalMapper(QObject * /TransferThis/,const char * = 0); - - virtual void setMapping(const QObject *,int); - virtual void setMapping(const QObject *,const QString &); - void removeMappings(const QObject *); - -signals: - void mapped(int); - void mapped(const QString &); - -public slots: - void map(); -}; diff --git a/python/pyqt/sip/qt/qsimplerichtext.sip b/python/pyqt/sip/qt/qsimplerichtext.sip deleted file mode 100644 index 5ce3ac7f..00000000 --- a/python/pyqt/sip/qt/qsimplerichtext.sip +++ /dev/null @@ -1,91 +0,0 @@ -// This is the SIP interface definition for QSimpleRichText. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSimpleRichText (Qt v2+) - -QSimpleRichText is fully implemented. - - -%End - - -%If (Qt_2_00 -) - -class QSimpleRichText -{ -%TypeHeaderCode -#include -%End - -public: - QSimpleRichText(const QString &,const QFont &, - const QString & = QString::null, - const QStyleSheet * = 0); -%If (Qt_2_1_0 -) - QSimpleRichText(const QString &,const QFont &,const QString &, - const QStyleSheet *,const QMimeSourceFactory *, - int = -1,const QColor & = Qt::blue,bool = 1); -%End - -%If (Qt_2_1_0 -) - void setWidth(int); -%End - void setWidth(QPainter *,int); -%If (Qt_3_0_0 -) - void setDefaultFont(const QFont &); -%End - int width() const; - int widthUsed() const; - int height() const; -%If (Qt_2_1_0 -) - void adjustSize(); -%End - -%If (- Qt_3_0_0) - void draw(QPainter *,int,int,const QRegion &,const QPalette &, - const QBrush * = 0) const; - void draw(QPainter *,int,int,const QRegion &,const QColorGroup &, - const QBrush * = 0) const; -%End -%If (Qt_3_0_0 -) - void draw(QPainter *,int,int,const QRect &,const QColorGroup &, - const QBrush * = 0) const; -%End - - QString context() const; -%If (- Qt_3_0_0) - QString anchor(QPainter *,const QPoint &); -%End -%If (Qt_2_1_0 -) - QString anchorAt(const QPoint &) const; - - bool inText(const QPoint &) const; -%End - -private: -%If (Qt_3_0_0 -) - QSimpleRichText(const QSimpleRichText &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qsize.sip b/python/pyqt/sip/qt/qsize.sip deleted file mode 100644 index 43d014ef..00000000 --- a/python/pyqt/sip/qt/qsize.sip +++ /dev/null @@ -1,114 +0,0 @@ -// This is the SIP interface definition for QSize. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSize - -The Python -+, +=, --, -=, -*, *=, -/, /=, -==, != and __nonzero__ -operators are supported. - - - - QCOORD &rheight - - - -Not implemented. - - - - QCOORD &rwidth - - - -Not implemented. - - -%End - - -class QSize -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_1_0 -) - enum ScaleMode { - ScaleFree, - ScaleMin, - ScaleMax - }; -%End - - QSize(); - QSize(int,int); - - bool isNull() const; - bool isEmpty() const; - bool isValid() const; - - int width() const; - int height() const; - void setWidth(int); - void setHeight(int); - void transpose(); - -%If (Qt_3_1_0 -) - void scale(int,int,ScaleMode); - void scale(const QSize &,ScaleMode); -%End - - QSize expandedTo(const QSize &) const; - QSize boundedTo(const QSize &) const; -// QCOORD &rwidth(); -// QCOORD &rheight(); - - QSize &operator+=(const QSize &); - QSize &operator-=(const QSize &); - QSize &operator*=(int /Constrained/); - QSize &operator*=(double); - QSize &operator/=(int /Constrained/); - QSize &operator/=(double); - - int __nonzero__() const; -%MethodCode - sipRes = sipCpp -> isValid(); -%End - - // Qt defines the remaining operators as global, rather than part of - // the class, but SIP doesn't support global operators. - bool operator==(const QSize &) const; - bool operator!=(const QSize &) const; - const QSize operator+(const QSize &) const; - const QSize operator-(const QSize &) const; - const QSize operator*(int /Constrained/) const; - const QSize operator*(double) const; - const QSize operator/(int /Constrained/) const; - const QSize operator/(double) const; -}; diff --git a/python/pyqt/sip/qt/qsizegrip.sip b/python/pyqt/sip/qt/qsizegrip.sip deleted file mode 100644 index 851ddada..00000000 --- a/python/pyqt/sip/qt/qsizegrip.sip +++ /dev/null @@ -1,60 +0,0 @@ -// This is the SIP interface definition for QSizeGrip. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSizeGrip (Qt v2+) - -QSizeGrip is fully implemented. - - -%End - - -%If (Qt_2_00 -) -%If (Qt_SIZEGRIP) - -class QSizeGrip : QWidget -{ -%TypeHeaderCode -#include -%End - -public: - QSizeGrip(QWidget * /TransferThis/,const char * = 0); - - QSize sizeHint() const; -%If (- Qt_3_0_0) - QSizePolicy sizePolicy() const; -%End - -protected: - void paintEvent(QPaintEvent *); - void mousePressEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - -%If (Qt_3_0_0 -) - bool eventFilter(QObject *,QEvent *); -%End -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qsizepolicy.sip b/python/pyqt/sip/qt/qsizepolicy.sip deleted file mode 100644 index c8640f4a..00000000 --- a/python/pyqt/sip/qt/qsizepolicy.sip +++ /dev/null @@ -1,103 +0,0 @@ -// This is the SIP interface definition for QSizePolicy. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSizePolicy (Qt v2+) - -QSizePolicy is fully implemented. - - -%End - - -%If (Qt_2_00 -) - -class QSizePolicy -{ -%TypeHeaderCode -#include -%End - -public: - enum SizeType - { - Fixed, - Minimum, - Maximum, - Preferred, - MinimumExpanding, - Expanding, -%If (Qt_3_0_0 -) - Ignored -%End - }; - - enum ExpandData - { - NoDirection, -%If (Qt_3_0_0 -) - Horizontally, - Vertically, -%End -%If (- Qt_3_0_0) - Horizontal, - Vertical, -%End - BothDirections - }; - - QSizePolicy(); - QSizePolicy(SizeType,SizeType,bool = 0); -%If (Qt_3_0_0 -) - // Note that Qt defines the 2nd and 3rd parameters as uchar, but it's - // really using them as numbers, not characters. - QSizePolicy(SizeType,SizeType,uint,uint,bool = 0); -%End - - SizeType horData() const; - SizeType verData() const; - - bool mayShrinkHorizontally() const; - bool mayShrinkVertically() const; - bool mayGrowHorizontally() const; - bool mayGrowVertically() const; - - ExpandData expanding() const; - - void setHorData(SizeType); - void setVerData(SizeType); - - void setHeightForWidth(bool); - bool hasHeightForWidth() const; - -%If (Qt_3_0_0 -) - uint horStretch() const; - uint verStretch() const; - void setHorStretch(uint); - void setVerStretch(uint); -%End -%If (Qt_3_1_0 -) - void transpose(); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qslider.sip b/python/pyqt/sip/qt/qslider.sip deleted file mode 100644 index 8ea2c11a..00000000 --- a/python/pyqt/sip/qt/qslider.sip +++ /dev/null @@ -1,187 +0,0 @@ -// This is the SIP interface definition for QSlider. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSlider - -QSlider is fully implemented. - - -%End - - -class QSlider : QWidget, QRangeControl -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - enum Orientation { - Horizontal, - Vertical - }; -%End - - enum TickSetting { - NoMarks = 0, - Above = 1, - Left = Above, - Below = 2, - Right = Below, - Both = 3 - }; - -%If (- Qt_2_00) - QSlider(QWidget * /TransferThis/ = 0,const char * = 0); - QSlider(Orientation,QWidget * /TransferThis/ = 0,const char * = 0); - QSlider(int,int,int,int,Orientation,QWidget * /TransferThis/ = 0,const char * = 0); -%End -%If (Qt_2_00 -) - QSlider(QWidget * /TransferThis/,const char * = 0); - QSlider(Orientation,QWidget * /TransferThis/,const char * = 0); - QSlider(int,int,int,int,Orientation,QWidget * /TransferThis/,const char * = 0); -%End - -%If (- Qt_2_00) - void setOrientation(Orientation); -%End -%If (Qt_2_00 -) - virtual void setOrientation(Orientation); -%End - Orientation orientation() const; -%If (- Qt_2_00) - void setTracking(bool); -%End -%If (Qt_2_00 -) - virtual void setTracking(bool); -%End - bool tracking() const; -%If (- Qt_2_00) - void setPalette(const QPalette &); -%End -%If (Qt_2_00 -) - virtual void setPalette(const QPalette &); -%End - -%If (Qt_3_0_0 -) - int sliderStart() const; -%End - QRect sliderRect() const; - QSize sizeHint() const; -%If (Qt_3_1_0 -) - void setSizePolicy(QSizePolicy); -%End -%If (Qt_3_2_0 -) - void setSizePolicy(QSizePolicy::SizeType,QSizePolicy::SizeType, - bool = 0); -%End -%If (Qt_2_00 -) - QSizePolicy sizePolicy() const; - QSize minimumSizeHint() const; -%End - - virtual void setTickmarks(TickSetting); - TickSetting tickmarks() const; - - virtual void setTickInterval(int); - int tickInterval() const; - -%If (Qt_2_1_0 -) - int minValue() const; - int maxValue() const; - void setMinValue(int); - void setMaxValue(int); - int lineStep() const; - int pageStep() const; - void setLineStep(int); - void setPageStep(int); - int value() const; -%End - -public slots: -%If (- Qt_2_00) - void setValue(int); -%End -%If (Qt_2_00 -) - virtual void setValue(int); -%End - void addStep(); - void subtractStep(); -%If (Qt_3_1_0 -) - void addLine(); - void subtractLine(); -%End - -signals: - void valueChanged(int); - void sliderPressed(); - void sliderMoved(int); - void sliderReleased(); - -protected: - void resizeEvent(QResizeEvent *); - void paintEvent(QPaintEvent *); - - void keyPressEvent(QKeyEvent *); - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); -%If (Qt_2_00 -) - void wheelEvent(QWheelEvent *); -%End - void focusInEvent(QFocusEvent *); -%If (Qt_2_00 -) - void focusOutEvent(QFocusEvent *); -%End - -%If (Qt_2_00 -) - void styleChange(QStyle &); -%End - - void valueChange(); - void rangeChange(); - -%If (- Qt_3_0_0) - void drawWinGroove(QPainter *,QCOORD); - void drawTicks(QPainter *,int,int,int = 1) const; - virtual int thickness() const; -%End - -%If (- Qt_2_00) - virtual void paintSlider(QPainter *,const QRect &); -%End -%If (Qt_2_00 - Qt_3_0_0) - void updateMask(); - virtual void paintSlider(QPainter *,const QColorGroup &,const QRect &); - void drawTicks(QPainter *,const QColorGroup &,int,int,int = 1) const; -%End - -private: -%If (Qt_2_00 -) - int positionFromValue(int) const; - int valueFromPosition(int) const; -%End - - QSlider(const QSlider &); -}; diff --git a/python/pyqt/sip/qt/qsocketnotifier.sip b/python/pyqt/sip/qt/qsocketnotifier.sip deleted file mode 100644 index f87bcbf2..00000000 --- a/python/pyqt/sip/qt/qsocketnotifier.sip +++ /dev/null @@ -1,66 +0,0 @@ -// This is the SIP interface definition for QSocketNotifier. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSocketNotifier - -QSocketNotifier is fully implemented. - - -%End - - -class QSocketNotifier : QObject -{ -%TypeHeaderCode -#include -%End - -public: - enum Type { - Read, - Write, - Exception - }; - - QSocketNotifier(int,Type,QObject * /TransferThis/ = 0,const char * = 0); - - int socket() const; - Type type() const; - - bool isEnabled() const; -%If (- Qt_2_00) - void setEnabled(bool); -%End -%If (Qt_2_00 -) - virtual void setEnabled(bool); -%End - -signals: - void activated(int); - -protected: - bool event(QEvent *); - -private: - QSocketNotifier(const QSocketNotifier &); -}; diff --git a/python/pyqt/sip/qt/qsound.sip b/python/pyqt/sip/qt/qsound.sip deleted file mode 100644 index 959c85b4..00000000 --- a/python/pyqt/sip/qt/qsound.sip +++ /dev/null @@ -1,69 +0,0 @@ -// This is the SIP interface definition for QSound. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSound (Qt v2.2+) - -QSound is fully implemented. - - -%End - - -%If (Qt_SOUND) -%If (Qt_2_2_0 -) - -class QSound : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QSound(const QString &,QObject * /TransferThis/ = 0,const char * = 0); - -%If (- Qt_3_0_0) - static bool available(); -%End -%If (Qt_3_0_0 -) - static bool isAvailable(); -%End - static void play(const QString &); - -%If (Qt_3_0_0 -) - int loops() const; - int loopsRemaining() const; - void setLoops(int); - QString fileName() const; - - bool isFinished() const; -%End - -public slots: - void play(); -%If (Qt_3_0_0 -) - void stop(); -%End -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qspinbox.sip b/python/pyqt/sip/qt/qspinbox.sip deleted file mode 100644 index 35708f7e..00000000 --- a/python/pyqt/sip/qt/qspinbox.sip +++ /dev/null @@ -1,268 +0,0 @@ -// This is the SIP interface definition for QSpinBox. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSpinBox - - virtual int mapTextToValue - bool *ok - - -This returns a tuple of the int result and the modified -ok value. - - -%End - - -%If (Qt_3_0_0 -) - -class QSpinBox : QWidget, QRangeControl -{ -%TypeHeaderCode -#include -%End - -public: - QSpinBox(QWidget * /TransferThis/ = 0,const char * = 0); - QSpinBox(int,int,int = 1,QWidget * /TransferThis/ = 0,const char * = 0); - - QString text() const; - - virtual QString prefix() const; - virtual QString suffix() const; - virtual QString cleanText() const; - - virtual void setSpecialValueText(const QString &); - QString specialValueText() const; - - virtual void setWrapping(bool); - bool wrapping() const; - - enum ButtonSymbols { - UpDownArrows, - PlusMinus - }; - - virtual void setButtonSymbols(ButtonSymbols); - ButtonSymbols buttonSymbols() const; - - virtual void setValidator(const QValidator *); - const QValidator *validator() const; - - QSize sizeHint() const; - QSize minimumSizeHint() const; - - int minValue() const; - int maxValue() const; - void setMinValue(int); - void setMaxValue(int); - int lineStep() const; - void setLineStep(int); - int value() const; - - QRect upRect() const; - QRect downRect() const; - -public slots: - virtual void setValue(int); - virtual void setPrefix(const QString &); - virtual void setSuffix(const QString &); - virtual void stepUp(); - virtual void stepDown(); - virtual void setEnabled(bool); - virtual void selectAll(); - -signals: - void valueChanged(int); - void valueChanged(const QString &); - -protected: - virtual QString mapValueToText(int); - virtual int mapTextToValue(bool *); - QString currentValueText(); - - virtual void updateDisplay(); - virtual void interpretText(); - - QLineEdit *editor() const; - - virtual void valueChange(); - virtual void rangeChange(); - - bool eventFilter(QObject *,QEvent *); - void resizeEvent(QResizeEvent *); - void wheelEvent(QWheelEvent *); - void leaveEvent(QEvent *); - - void styleChange(QStyle &); - -protected slots: - void textChanged(); - -private: - QSpinBox(const QSpinBox &); -}; - -%End - - -%If (- Qt_3_0_0) - -class QSpinBox : QFrame, QRangeControl -{ -%TypeHeaderCode -#include -%End - -public: - QSpinBox(QWidget * /TransferThis/ = 0,const char * = 0); - QSpinBox(int,int,int = 1,QWidget * /TransferThis/ = 0,const char * = 0); - -%If (- Qt_2_00) - const char *text() const; - - virtual const char *prefix() const; - virtual const char *suffix() const; -%End -%If (Qt_2_00 -) - QString text() const; - - virtual QString prefix() const; - virtual QString suffix() const; -%End - virtual QString cleanText() const; - -%If (- Qt_2_00) - void setSpecialValueText(const char *); - const char *specialValueText() const; - - void setWrapping(bool); -%End -%If (Qt_2_00 -) - virtual void setSpecialValueText(const QString &); - QString specialValueText() const; - - virtual void setWrapping(bool); -%End - bool wrapping() const; - -%If (Qt_2_1_0 -) - enum ButtonSymbols { - UpDownArrows, - PlusMinus - }; -%End - -%If (Qt_2_1_0 -) - void setButtonSymbols(ButtonSymbols); - ButtonSymbols buttonSymbols() const; -%End - -%If (- Qt_2_00) - void setValidator(QValidator *); -%End -%If (Qt_2_00 -) - virtual void setValidator(const QValidator *); - const QValidator *validator() const; -%End - - QSize sizeHint() const; -%If (Qt_2_00 -) - QSizePolicy sizePolicy() const; -%End - -%If (Qt_2_1_0 -) - int minValue() const; - int maxValue() const; - void setMinValue(int); - void setMaxValue(int); - int lineStep() const; - void setLineStep(int); - int value() const; -%End - -public slots: - virtual void setValue(int); -%If (- Qt_2_00) - virtual void setPrefix(const char *); - virtual void setSuffix(const char *); -%End -%If (Qt_2_00 -) - virtual void setPrefix(const QString &); - virtual void setSuffix(const QString &); -%End - virtual void stepUp(); - virtual void stepDown(); -%If (Qt_2_00 -) - virtual void setEnabled(bool); -%End - -signals: - void valueChanged(int); -%If (- Qt_2_00) - void valueChanged(const char *); -%End -%If (Qt_2_00 -) - void valueChanged(const QString &); -%End - -protected: - virtual QString mapValueToText(int); - virtual int mapTextToValue(bool *); - QString currentValueText(); - - virtual void updateDisplay(); - virtual void interpretText(); - - QPushButton *upButton() const; - QPushButton *downButton() const; - - QLineEdit *editor() const; - - virtual void valueChange(); - virtual void rangeChange(); - - bool eventFilter(QObject *,QEvent *); - void resizeEvent(QResizeEvent *); -%If (- Qt_2_00) - void paletteChange(const QPalette &); - void enabledChange(bool); - void fontChange(const QFont &); - void styleChange(GUIStyle); -%End -%If (Qt_2_00 -) - void wheelEvent(QWheelEvent *); - void styleChange(QStyle &); -%End -%If (Qt_2_1_0 -) - void leaveEvent(QEvent *); -%End - -protected slots: - void textChanged(); - -private: - QSpinBox(const QSpinBox &); -}; - -%End diff --git a/python/pyqt/sip/qt/qsplashscreen.sip b/python/pyqt/sip/qt/qsplashscreen.sip deleted file mode 100644 index d809d3b8..00000000 --- a/python/pyqt/sip/qt/qsplashscreen.sip +++ /dev/null @@ -1,61 +0,0 @@ -// This is the SIP interface definition for QSplashScreen. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSplashScreen (Qt v3.2.0+) - -QSplashScreen is fully implemented. - - -%End - - -%If (Qt_3_2_0 -) - -class QSplashScreen : QWidget -{ -%TypeHeaderCode -#include -%End - -public: - QSplashScreen(const QPixmap & = QPixmap(),WFlags = 0); - virtual ~QSplashScreen(); - - void setPixmap(const QPixmap &); - QPixmap *pixmap() const; - void finish(QWidget *); - void repaint(); - -public slots: - void message(const QString &,int = AlignLeft,const QColor & = Qt::black); - void clear(); - -signals: - void messageChanged(const QString &); - -protected: - virtual void drawContents(QPainter *); - void mousePressEvent(QMouseEvent *); -}; - -%End diff --git a/python/pyqt/sip/qt/qsplitter.sip b/python/pyqt/sip/qt/qsplitter.sip deleted file mode 100644 index 9687ae99..00000000 --- a/python/pyqt/sip/qt/qsplitter.sip +++ /dev/null @@ -1,160 +0,0 @@ -// This is the SIP interface definition for QSplitter. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSplitter - - void getRange - int id - int *min - int *max - - -This takes the id parameter and returns the -min and max values as a tuple. (Qt v2+) - - -%End - - -%If (Qt_SPLITTER) - -class QSplitter : QFrame -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - enum Orientation { - Horizontal, - Vertical - }; -%End - - enum ResizeMode { - Stretch, - KeepSize, -%If (Qt_2_1_0 -) - FollowSizeHint, -%End -%If (Qt_3_1_0 -) - Auto -%End - }; - - QSplitter(QWidget * /TransferThis/ = 0,const char * = 0); - QSplitter(Orientation,QWidget * /TransferThis/ = 0,const char * = 0); - -%If (- Qt_2_00) - void setOrientation(Orientation); -%End -%If (Qt_2_00 -) - virtual void setOrientation(Orientation); -%End - Orientation orientation() const; - -%If (Qt_3_2_0 -) - void setChildrenCollapsible(bool); - bool childrenCollapsible() const; - - void setCollapsible(QWidget *,bool); -%End - -%If (- Qt_2_00) - void setResizeMode(QWidget *,ResizeMode); - void setOpaqueResize(bool = 1); -%End -%If (Qt_2_00 -) - virtual void setResizeMode(QWidget *,ResizeMode); - virtual void setOpaqueResize(bool = 1); -%End - bool opaqueResize() const; - - void moveToFirst(QWidget *); - void moveToLast(QWidget *); - - void refresh(); -%If (Qt_2_00 -) - QSize sizeHint() const; - QSize minimumSizeHint() const; -%End -%If (Qt_2_00 - Qt_3_0_0) - QSizePolicy sizePolicy() const; -%End - -%If (Qt_2_00 -) - QValueList sizes() const; - void setSizes(QValueList); -%End - -%If (Qt_3_2_0 -) - int handleWidth() const; - void setHandleWidth(int); -%End - -%If (- Qt_2_00) - bool event(QEvent *); -%End - -protected: -%If (Qt_2_00 -) - void childEvent(QChildEvent *); - - bool event(QEvent *); -%End - void resizeEvent(QResizeEvent *); - -%If (- Qt_2_00) - void childInsertEvent(QChildEvent *); - void childRemoveEvent(QChildEvent *); - void layoutHintEvent(QEvent *); - - void moveSplitter(QCOORD); -%End -%If (Qt_2_00 -) - int idAfter(QWidget *) const; - - void moveSplitter(QCOORD,int); -%End - virtual void drawSplitter(QPainter *,QCOORD,QCOORD,QCOORD,QCOORD); -%If (Qt_2_1_0 -) - void styleChange(QStyle &); -%End -%If (- Qt_2_00) - int adjustPos(int); - void setRubberband(int); -%End -%If (Qt_2_00 -) - int adjustPos(int,int); - virtual void setRubberband(int); - void getRange(int,int *,int *); -%End - -private: -%If (Qt_2_1_0 -) - QSplitter(const QSplitter &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qstatusbar.sip b/python/pyqt/sip/qt/qstatusbar.sip deleted file mode 100644 index c069fe5f..00000000 --- a/python/pyqt/sip/qt/qstatusbar.sip +++ /dev/null @@ -1,94 +0,0 @@ -// This is the SIP interface definition for QStatusBar. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QStatusBar - -QStatusBar is fully implemented. - - -%End - - -class QStatusBar : QWidget -{ -%TypeHeaderCode -#include -%End - -public: - QStatusBar(QWidget * /TransferThis/ = 0,const char * = 0); - -%If (- Qt_2_1_0) - void addWidget(QWidget * /Transfer/,int,bool = 0); -%End -%If (Qt_2_1_0 - Qt_3_0_0) - void addWidget(QWidget * /Transfer/,int = 0,bool = 0); -%End -%If (Qt_3_0_0 -) - virtual void addWidget(QWidget * /Transfer/,int = 0,bool = 0); -%End -%If (- Qt_3_0_0) - void removeWidget(QWidget * /TransferBack/); -%End -%If (Qt_3_0_0 -) - virtual void removeWidget(QWidget * /TransferBack/); -%End - -%If (Qt_2_1_0 -) - void setSizeGripEnabled(bool); - bool isSizeGripEnabled() const; -%End - -public slots: -%If (- Qt_2_00) - void message(const char *); - void message(const char *,int); -%End -%If (Qt_2_00 -) - void message(const QString &); - void message(const QString &,int); -%End - void clear(); - -signals: -%If (Qt_3_1_0 -) - void messageChanged(const QString &); -%End - -protected: - void paintEvent(QPaintEvent *); -%If (Qt_2_1_0 -) - void resizeEvent(QResizeEvent *); -%End - - void reformat(); - void hideOrShow(); -%If (Qt_2_1_0 -) - bool event(QEvent *); -%End - -private: -%If (Qt_2_1_0 -) - QStatusBar(const QStatusBar &); -%End -}; diff --git a/python/pyqt/sip/qt/qstring.sip b/python/pyqt/sip/qt/qstring.sip deleted file mode 100644 index 85a163fe..00000000 --- a/python/pyqt/sip/qt/qstring.sip +++ /dev/null @@ -1,1079 +0,0 @@ -// This is the SIP interface definition for QChar and QString. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QChar (Qt v2+) - - uchar &cell const - - - -Not implemented. - - - - uchar &row const - - - -Not implemented. - - - -QString - -A Python string object (or Unicode object) can be used whenever a -QString can be used. A QString can be -converted to a Python string object using the Python str() -function, and to a Python Unicode object using the Python -unicode() function. - - - -The Python +, +=, *, -*=, len, [] -(for reading slices and individual characters), in and -comparison operators are supported. - - - - QCharRef at - uint i - - -Not yet implemented. (Qt v2+) - - - - QChar constref const - uint i - - -Not yet implemented. (Qt v2+) - - - - QChar &ref - uint i - - -Not yet implemented. (Qt v2+) - - - - QString &setUnicodeCodes - const ushort *unicode_as_shorts - uint len - - -Not yet implemented. (Qt v2.1+) - - - - QString &sprintf - const char *format - ... - - -Not implemented. - - - - short toShort - bool *ok = 0 - - -This returns a tuple of the short result and the -ok value. - - - - ushort toUShort - bool *ok = 0 - - -This returns a tuple of the ushort result and the -ok value. - - - - int toInt - bool *ok = 0 - - -This returns a tuple of the int result and the -ok value. - - - - uint toUInt - bool *ok = 0 - - -This returns a tuple of the uint result and the -ok value. - - - - long toLong - bool *ok = 0 - - -This returns a tuple of the long result and the -ok value. - - - - ulong toULong - bool *ok = 0 - - -This returns a tuple of the ulong result and the -ok value. - - - - float toFloat - bool *ok = 0 - - -This returns a tuple of the float result and the -ok value. - - - - double toDouble - bool *ok = 0 - - -This returns a tuple of the double result and the -ok value. - - -%End - - -%If (Qt_2_00 -) - -class QChar -{ -%TypeHeaderCode -#include -%End - -public: - QChar(); - QChar(char); -// QChar(uchar); - QChar(uchar,uchar); - QChar(const QChar &); -// QChar(ushort); -// QChar(short); -// QChar(uint); - QChar(int); - - static const QChar null; - static const QChar replacement; - static const QChar byteOrderMark; - static const QChar byteOrderSwapped; -%If (Qt_2_2_0 -) - static const QChar nbsp; -%End - -%If (- Qt_3_0_0) - enum Category { - NoCategory, - - Mark_NonSpacing, - Mark_SpacingCombining, - Mark_Enclosing, - - Number_DecimalDigit, - Number_Letter, - Number_Other, - - Separator_Space, - Separator_Line, - Separator_Paragraph, - - Other_Control, - Other_Format, - Other_Surrogate, - Other_PrivateUse, - Other_NotAssigned, - - Letter_Uppercase, - Letter_Lowercase, - Letter_Titlecase, - Letter_Modifier, - Letter_Other, - - Punctuation_Connector, - Punctuation_Dask, - Punctuation_Open, - Punctuation_Close, - Punctuation_InitialQuote, - Punctuation_FinalQuote, - Punctuation_Other, - - Symbol_Math, - Symbol_Currency, - Symbol_Modifier, - Symbol_Other - }; -%End -%If (Qt_3_0_0 -) - enum Category { - NoCategory, - - Mark_NonSpacing, - Mark_SpacingCombining, - Mark_Enclosing, - - Number_DecimalDigit, - Number_Letter, - Number_Other, - - Separator_Space, - Separator_Line, - Separator_Paragraph, - - Other_Control, - Other_Format, - Other_Surrogate, - Other_PrivateUse, - Other_NotAssigned, - - Letter_Uppercase, - Letter_Lowercase, - Letter_Titlecase, - Letter_Modifier, - Letter_Other, - - Punctuation_Connector, - Punctuation_Dash, - Punctuation_Open, - Punctuation_Close, - Punctuation_InitialQuote, - Punctuation_FinalQuote, - Punctuation_Other, - - Symbol_Math, - Symbol_Currency, - Symbol_Modifier, - Symbol_Other - }; -%End - -%If (- Qt_3_0_0) - enum Direction { - DirL, - DirR, - DirEN, - DirES, - DirET, - DirAN, - DirCS, - DirB, - DirS, - DirWS, - DirON - }; -%End -%If (Qt_3_0_0 -) - enum Direction { - DirL, - DirR, - DirEN, - DirES, - DirET, - DirAN, - DirCS, - DirB, - DirS, - DirWS, - DirON, - DirLRE, - DirLRO, - DirAL, - DirRLE, - DirRLO, - DirPDF, - DirNSM, - DirBN - }; -%End - - enum Decomposition { - Single, - Canonical, - Font, - NoBreak, - Initial, - Medial, - Final, - Isolated, - Circle, - Super, - Sub, - Vertical, - Wide, - Narrow, - Small, - Square, - Compat, - Fraction - }; - - enum Joining { - OtherJoining, - Dual, - Right, - Center - }; - -%If (Qt_3_0_0 -) - enum CombiningClass { - Combining_BelowLeftAttached, - Combining_BelowAttached, - Combining_BelowRightAttached, - Combining_LeftAttached, - Combining_RightAttached, - Combining_AboveLeftAttached, - Combining_AboveAttached, - Combining_AboveRightAttached, - - Combining_BelowLeft, - Combining_Below, - Combining_BelowRight, - Combining_Left, - Combining_Right, - Combining_AboveLeft, - Combining_Above, - Combining_AboveRight, - - Combining_DoubleBelow, - Combining_DoubleAbove, - Combining_IotaSubscript - }; -%End - - int digitValue() const; - QChar lower() const; - QChar upper() const; - - Category category() const; - Direction direction() const; - Joining joining() const; - bool mirrored() const; -%If (Qt_2_1_0 -) - QChar mirroredChar() const; -%End -%If (- Qt_3_0_0) - QString decomposition() const; -%End -%If (Qt_3_0_0 -) - const QString &decomposition() const; -%End - Decomposition decompositionTag() const; -%If (Qt_3_0_0 -) - unsigned char combiningClass() const; -%End - - char latin1() const; - ushort unicode() const; - - bool isNull() const; - bool isPrint() const; - bool isPunct() const; - bool isSpace() const; - bool isMark() const; - bool isLetter() const; - bool isNumber() const; -%If (Qt_2_1_0 -) - bool isLetterOrNumber() const; -%End - bool isDigit() const; -%If (Qt_3_0_0 -) - bool isSymbol() const; -%End - -// uchar& cell(); -// uchar& row(); - uchar cell() const; - uchar row() const; -%If (Qt_3_0_0 -) - void setCell(uchar); - void setRow(uchar); -%End - - static bool networkOrdered(); - - bool operator==(char); - bool operator==(QChar); - bool operator!=(QChar); - bool operator!=(char); - bool operator<=(char); - bool operator<=(QChar); - bool operator>=(char); - bool operator>=(QChar); - bool operator<(char); - bool operator<(QChar); - bool operator>(char); - bool operator>(QChar); -}; - - -class QString -{ -%TypeHeaderCode -#include -%End - -public: - QString(); - QString(QChar); - QString(const QString &); - QString(const QByteArray &); -// QString(const QChar *,uint); -// QString(const char *); - -%If (Qt_2_1_0 -) - // This is how we implement QUrl::operator QString() const. - QString(const QUrl &); -%End - -%If (Qt_3_0_0 -) - // This is how we implement QKeySequence::operator QString() const. - QString(const QKeySequence &); - - // This is how we implement QUuid::operator QString() const. - QString(const QUuid &); -%End - - static const QString null; - - bool isNull() const; - bool isEmpty() const; - uint length() const; - void truncate(uint); -%If (- Qt_3_0_0) - void fill(QChar,int = -1); -%End -%If (Qt_3_0_0 -) - QString &fill(QChar,int = -1); -%End - QString copy() const; - - QString arg(int /Constrained/,int = 0,int = 10) const; - QString arg(double /Constrained/,int = 0,char = 'g',int = -1) const; -%If (Qt_3_2_0 -) -// QString arg(Q_LLONG,int = 0,int = 10) const; -// QString arg(Q_ULLONG,int = 0,int = 10) const; -%End - QString arg(long,int = 0,int = 10) const; - QString arg(ulong,int = 0,int = 10) const; -// QString arg(uint,int = 0,int = 10) const; -// QString arg(short,int = 0,int = 10) const; -// QString arg(ushort,int = 0,int = 10) const; - QString arg(char,int = 0) const; - QString arg(QChar,int = 0) const; - QString arg(const QString&,int = 0) const; -%If (Qt_3_2_0 -) - QString arg(const QString &,const QString &) const; - QString arg(const QString &,const QString &,const QString &) const; - QString arg(const QString &,const QString &,const QString &, - const QString &) const; -%End - -// QString &sprintf(const char *,...); - - int find(QChar,int = 0,bool = 1) const; - int find(char,int = 0,bool = 1) const; - int find(const QString &,int = 0,bool = 1) const; - int find(const QRegExp &,int = 0) const; -// int find(const char *,int = 0) const; - int findRev(QChar,int = -1,bool = 1) const; - int findRev(char,int = -1,bool = 1) const; - int findRev(const QString &,int = -1,bool = 1) const; - int findRev(const QRegExp &,int = -1) const; -// int findRev(const char *,int = -1) const; - int contains(QChar,bool = 1) const; - int contains(char,bool = 1) const; -// int contains(const char *,bool = 1) const; - int contains(const QString &,bool = 1) const; - int contains(const QRegExp &) const; - -%If (Qt_3_0_0 -) - enum SectionFlags { - SectionDefault, - SectionSkipEmpty, - SectionIncludeLeadingSep, - SectionIncludeTrailingSep, - SectionCaseInsensitiveSeps - }; - - QString section(QChar,int,int = 0xffffffff,int = SectionDefault) const; -// QString section(char,int,int = 0xffffffff,int = SectionDefault) const; -// QString section(const char *,int,int = 0xffffffff, -// int = SectionDefault) const; - QString section(const QString &,int,int = 0xffffffff, - int = SectionDefault) const; - QString section(const QRegExp &,int,int = 0xffffffff, - int = SectionDefault) const; -%End - - QString left(uint) const; - QString right(uint) const; - QString mid(uint,uint = 0xffffffff) const; - QString leftJustify(uint,QChar = ' ',bool = 0) const; - QString rightJustify(uint,QChar = ' ',bool = 0) const; - QString lower() const; - QString upper() const; - QString stripWhiteSpace() const; - QString simplifyWhiteSpace() const; - - QString &insert(uint,const QString &); -%If (Qt_3_2_0 -) - QString &insert(uint,const QByteArray &); -// QString &insert(uint,const char *); -%End - QString &insert(uint,QChar *,uint); - QString &insert(uint,QChar); - QString &insert(uint,char); - - QString &append(char); -%If (Qt_2_2_0 -) - QString &append(QChar); -%End - QString &append(const QString &); - QString &prepend(char); -%If (Qt_2_2_0 -) - QString &prepend(QChar); -%End - QString &prepend(const QString &); - QString &remove(uint,uint); -%If (Qt_3_1_0 -) - QString &remove(const QString &); -%If (Qt_3_2_0 -) - QString &remove(const QString &,bool); -%End - QString &remove(QChar); - QString &remove(char); - QString &remove(const QRegExp &); -%End - QString &replace(uint,uint,const QString &); - QString &replace(uint,uint,const QChar *,uint); -%If (Qt_3_1_0 -) - QString &replace(uint,uint,QChar); - QString &replace(uint,uint,char); - QString &replace(QChar,const QString &); -%If (Qt_3_2_0 -) - QString &replace(QChar,const QString &,bool); -%End - QString &replace(char,const QString &); -%If (Qt_3_2_0 -) - QString &replace(char,const QString &,bool); -%End - QString &replace(const QString &,const QString &); -%If (Qt_3_2_0 -) - QString &replace(const QString &,const QString &,bool); -%End -%End - QString &replace(const QRegExp &,const QString &); -%If (Qt_3_1_0 -) - QString &replace(QChar,QChar); -%End - - short toShort(bool * = 0,int = 10) const; - ushort toUShort(bool * = 0,int = 10) const; - int toInt(bool * = 0,int = 10) const; - uint toUInt(bool * = 0,int = 10) const; - long toLong(bool * = 0,int = 10) const; - ulong toULong(bool * = 0,int = 10) const; -%If (Qt_3_2_0 -) -// Q_LLONG toLongLong(bool * = 0,int = 10) const; -// Q_ULLONG toULongLong(bool * = 0,int = 10) const; -%End - float toFloat(bool * = 0) const; - double toDouble(bool * = 0) const; - - QString &setNum(int /Constrained/,int = 10); - QString &setNum(double /Constrained/,char = 'g',int = 6); -// QString &setNum(short,int = 10); -// QString &setNum(ushort,int = 10); -// QString &setNum(uint,int = 10); - QString &setNum(long,int = 10); - QString &setNum(ulong,int = 10); -%If (Qt_3_2_0 -) -// QString &setNum(Q_LLONG,int = 10); -// QString &setNum(Q_ULLONG,int = 10); -%End -// QString &setNum(float,char = 'g',int = 6); - - static QString number(int /Constrained/,int = 10); - static QString number(double /Constrained/,char = 'g',int = 6); - static QString number(long,int = 10); - static QString number(ulong,int = 10); -%If (Qt_3_2_0 -) -// static QString number(Q_LLONG,int = 10); -// static QString number(Q_ULLONG,int = 10); -%End -// static QString number(uint,int = 10); - - void setExpand(uint,QChar); - - QString &operator+=(const QString &); -%If (Qt_3_3_0 -) - QString &operator+=(const QByteArray &); -%End - QString &operator+=(QChar); - //QString &operator+=(char); - - QString operator*(int); -%MethodCode - sipRes = new QString(); - - while (a0-- > 0) - *sipRes += *sipCpp; -%End - - QString &operator*=(int); -%MethodCode - QString orig(*sipCpp); - - sipCpp -> truncate(0); - - while (a0-- > 0) - *sipCpp += orig; -%End - - QChar at(uint) const; -// QCharRef at(uint); -// QChar constref(uint) const; -// QChar &ref(uint); -// const QChar *unicode() const; - const char *ascii() const; -%If (Qt_3_1_0 -) - static QString fromAscii(const char *,int = -1); -%End - const char *latin1() const; - static QString fromLatin1(const char *,int = -1); - QCString utf8() const; - static QString fromUtf8(const char *,int = -1); - QCString local8Bit() const; - static QString fromLocal8Bit(const char *,int = -1); - -%If (Qt_3_1_0 -) -// static QString fromUcs2(const unsigned short *); -// const unsigned short *ucs2() const; -%End - -%If (Qt_2_1_0 -) -// QString &setUnicode(const QChar *,uint); -// QString &setUnicodeCodes(const ushort *,uint); -%End -%If (Qt_3_1_0 -) - QString &setAscii(const char *,int = -1); -%End -%If (Qt_2_1_0 -) - QString &setLatin1(const char *,int = -1); -%End - - int compare(const QString &) const; - static int compare(const QString &,const QString &); - -%If (Qt_3_0_0 -) - int localeAwareCompare(const QString &) const; - static int localeAwareCompare(const QString &,const QString &); -%End - - void compose(); -%If (- Qt_3_0_0) - QChar::Direction basicDirection(); - QString visual(int = 0,int = -1); -%End -%If (Qt_2_2_0 -) - bool startsWith(const QString &) const; -%End -%If (Qt_3_2_0 -) - bool startsWith(const QString &,bool) const; -%End -%If (Qt_3_0_0 -) - bool endsWith(const QString &) const; -%End -%If (Qt_3_2_0 -) - bool endsWith(const QString &,bool) const; -%End - -%If (Qt_3_0_0 -) - void setLength(uint); -%End - -%If (Qt_3_2_0 -) - uint capacity() const; - void reserve(uint); - void squeeze(); -%End - -%If (Qt_3_0_0 -) - bool simpleText() const; - bool isRightToLeft() const; -%End - - bool operator==(const QString &) const; - bool operator!=(const QString &) const; - bool operator<(const QString &) const; - bool operator<=(const QString &) const; - bool operator>(const QString &) const; - bool operator>=(const QString &) const; - - // Force the numeric interpretation so that str + QString gets handled - // as we want. - const QString operator+(const QString &) /Numeric/; - - QString operator[](int) const; -%MethodCode - int len; - - len = sipCpp -> length(); - - if ((a0 = (int)sipConvertFromSequenceIndex(a0,len)) < 0) - sipIsErr = 1; - else - sipRes = new QString(sipCpp -> at(a0)); -%End - - QString operator[](SIP_PYSLICE) const; -%MethodCode -#if PY_VERSION_HEX >= 0x02050000 - Py_ssize_t len, start, stop, step, slicelength, i; -#else - int len, start, stop, step, slicelength, i; -#endif - - len = sipCpp -> length(); - - if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0) - sipIsErr = 1; - else - { - sipRes = new QString(); - - for (i = 0; i < slicelength; ++i) - { - sipRes -> append(sipCpp -> at(start)); - start += step; - } - } -%End - - int __len__() const; -%MethodCode - sipRes = sipCpp -> length(); -%End - - int __contains__(const QString &) const; -%MethodCode - sipRes = (sipCpp -> contains(*a0) > 0); -%End - - SIP_PYOBJECT __unicode__(); -%MethodCode -#if PY_VERSION_HEX >= 0x01060000 - sipRes = QStringToPyUnicode(sipCpp); -#else - Py_INCREF(Py_None); - sipRes = Py_None; -#endif -%End - - SIP_PYOBJECT __str__(); -%MethodCode -#if PY_VERSION_HEX >= 0x01060000 - sipRes = QStringToPyUnicode(sipCpp); -#else - const char *s; - - Py_BEGIN_ALLOW_THREADS - s = *sipCpp; - Py_END_ALLOW_THREADS - - if (s == NULL) - s = ""; - - sipRes = PyString_FromString(s); -#endif -%End - -%TypeCode -#include - -#if PY_VERSION_HEX >= 0x01060000 -// Convenience function for converting a QString to a Python Unicode object. -static PyObject *QStringToPyUnicode(QString *qs) -{ - PyObject *uobj; - - if ((uobj = PyUnicode_FromUnicode(NULL,qs -> length())) == NULL) - return NULL; - - Py_UNICODE *pyu = PyUnicode_AS_UNICODE(uobj); - - for (uint i = 0; i < qs -> length(); ++i) - *pyu++ = (qs -> at(i)).unicode(); - - return uobj; -} -#endif - -// Convenience function for converting a Python unicode or string object to a -// QString on the heap. -static QString *PyUnicodeStringToQString(PyObject *py) -{ -#if PY_VERSION_HEX >= 0x01060000 - if (PyUnicode_Check(py)) - { - QString *qs = new QString; - -#if defined(Py_UNICODE_WIDE) - PY_UNICODE_TYPE *ucode = PyUnicode_AS_UNICODE(py); - int len = PyUnicode_GET_SIZE(py); - - for (int i = 0; i < len; ++i) - qs->ref(i) = (uint)ucode[i]; -#else - qs -> setUnicodeCodes((ushort *)PyUnicode_AS_UNICODE(py),PyUnicode_GET_SIZE(py)); -#endif - - return qs; - } -#endif - - if (PyString_Check(py)) - return new QString(PyString_AS_STRING(py)); - - return 0; -} -%End - -%ConvertToTypeCode - // Allow a Python string (or a unicode string) whenever a QString is - // expected. - - if (sipIsErr == NULL) - return (PyString_Check(sipPy) || -#if PY_VERSION_HEX >= 0x01060000 - PyUnicode_Check(sipPy) || -#endif - sipCanConvertToInstance(sipPy,sipClass_QString,SIP_NO_CONVERTORS)); - - *sipCppPtr = PyUnicodeStringToQString(sipPy); - - if (*sipCppPtr) - return sipGetState(sipTransferObj); - - *sipCppPtr = reinterpret_cast(sipConvertToInstance(sipPy,sipClass_QString,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr)); - - return 0; -%End - -%BIGetReadBufferCode - if (sipSegment != 0) - { - PyErr_SetString(PyExc_SystemError, "accessing non-existent QString segment"); - sipRes = -1; - } - else - { - *sipPtrPtr = (void *)sipCpp->ucs2(); - sipRes = sipCpp->length() * sizeof (ushort); - } -%End - -%BIGetSegCountCode - if (sipLenPtr) - *sipLenPtr = sipCpp->length() * sizeof (ushort); - - sipRes = 1; -%End - -%BIGetCharBufferCode - if (sipSegment != 0) - { - PyErr_SetString(PyExc_SystemError, "accessing non-existent QString segment"); - sipRes = -1; - } - else - { - static QTextCodec *codec = 0; - static bool check_codec = TRUE; - - // For the first time only, try and find a Qt codec that - // corresponds to the default Python codec. If one wasn't - // found then fall back to ASCII (which is actually the codec - // returned by QTextCodec::codecForCStrings()). - if (check_codec) - { - codec = QTextCodec::codecForName(PyUnicode_GetDefaultEncoding()); - check_codec = FALSE; - } - - if (codec) - { - // A Python string is the most convenient method to - // save the encoded version on the heap. - PyObject *encobj = ((sipWrapper *)sipSelf)->user; - QCString enc; - - Py_XDECREF(encobj); - - enc = codec->fromUnicode(*sipCpp); - - if ((encobj = PyString_FromString(enc.data())) != NULL) - { - *sipPtrPtr = (void *)PyString_AS_STRING(encobj); - sipRes = PyString_GET_SIZE(encobj); - - ((sipWrapper *)sipSelf)->user = encobj; - } - else - sipRes = -1; - } - else - { - const char *asc = sipCpp->ascii(); - - *sipPtrPtr = (void *)asc; - sipRes = qstrlen(asc); - } - } -%End -}; - -%End - - -%If (- Qt_2_00) - -class QString : QByteArray -{ -%TypeHeaderCode -#include -%End - -public: - QString(); - QString(int); - QString(const QString &); - QString(const char *); - QString(const char *,uint); - - bool isNull() const; - bool isEmpty() const; - uint length() const; - bool resize(uint); - bool truncate(uint); - bool fill(char,int = -1); - QString copy() const; -// QString &sprintf(const char *,...); - int find(char,int = 0,bool = 1) const; - int find(const char *,int = 0,bool = 1) const; - int find(const QRegExp &,int = 0) const; - int findRev(char,int = -1,bool = 1) const; - int findRev(const char *,int = -1,bool = 1) const; - int findRev(const QRegExp &,int = -1) const; - int contains(char,bool = 1) const; - int contains(const char *,bool = 1) const; - int contains(const QRegExp &) const; - QString left(uint) const; - QString right(uint) const; - QString mid(uint,uint) const; - QString leftJustify(uint,char = ' ',bool = 0) const; - QString rightJustify(uint,char = ' ',bool = 0) const; - QString lower() const; - QString upper() const; - QString stripWhiteSpace() const; - QString simplifyWhiteSpace() const; - QString &insert(uint,const char *); - QString &insert(uint,char); - QString &append(const char *); - QString &prepend(const char *); - QString &remove(uint,uint); - QString &replace(uint,uint,const char *); - QString &replace(const QRegExp &,const char *); - - short toShort(bool * = 0) const; - ushort toUShort(bool * = 0) const; - int toInt(bool * = 0) const; - uint toUInt(bool * = 0) const; - long toLong(bool * = 0) const; - ulong toULong(bool * = 0) const; - float toFloat(bool * = 0) const; - double toDouble(bool * = 0) const; - - QString &setStr(const char *); -// QString &setNum(short); -// QString &setNum(ushort); - QString &setNum(int /Constrained/); -// QString &setNum(uint); -// QString &setNum(long); -// QString &setNum(ulong); -// QString &setNum(float,char = 'g',int = 6); - QString &setNum(double,char = 'g',int = 6); - bool setExpand(uint,char); - - SIP_PYOBJECT __str__(); -%MethodCode - const char *s; - - Py_BEGIN_ALLOW_THREADS - s = *sipCpp; - Py_END_ALLOW_THREADS - - if (s == NULL) - s = ""; - - sipRes = PyString_FromString(s); -%End - -%ConvertToTypeCode - // Allow a Python string whenever a QString is expected. - - if (sipIsErr == NULL) - return (PyString_Check(sipPy) || - sipCanConvertToInstance(sipPy,sipClass_QString,SIP_NO_CONVERTORS)); - - if (PyString_Check(sipPy)) - { - *sipCppPtr = new QString(PyString_AS_STRING(sipPy)); - - return sipGetState(sipTransferObj); - } - - *sipCppPtr = reinterpret_cast(sipConvertToInstance(sipPy,sipClass_QString,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr)); - - return 0; -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qstringlist.sip b/python/pyqt/sip/qt/qstringlist.sip deleted file mode 100644 index 11b0280e..00000000 --- a/python/pyqt/sip/qt/qstringlist.sip +++ /dev/null @@ -1,247 +0,0 @@ -// This is the SIP interface definition for QStringList. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QStringList (Qt v2+) - -The Python len, [] (for both reading and -writing slices and individual elements), del (for deleting -slices and individual elements), +, +=, -*, *=, ==, -!= and in operators are supported. - - - - Iterator append - const QString &x - - -This does not return a value. - - - - Iterator prepend - const QString &x - - -This does not return a value. - - -%End - - -%If (Qt_2_00 -) - -class QStringList -{ -%TypeHeaderCode -#include -%End - -public: - QStringList(); - QStringList(const QStringList &); - QStringList(const QString &); - - void sort(); -%If (Qt_2_1_0 -) - static QStringList fromStrList(const QStrList &); - static QStringList split(const QString &,const QString &,bool = 0); - static QStringList split(const QChar &,const QString &,bool = 0); - static QStringList split(const QRegExp &,const QString &,bool = 0); - QString join(const QString &) const; - QStringList grep(const QString &,bool = 1) const; - QStringList grep(const QRegExp &) const; -%End - -%If (Qt_3_2_0 -) - QStringList &gres(const QString &,const QString &,bool = 1); - QStringList &gres(const QRegExp &,const QString &); -%End - - // These are actually in QValueList, which isn't implemented so - // pretend they are here. - - bool isEmpty() const; - void append(const QString &); - void prepend(const QString &); - void remove(const QString &); - const QString &first() const; - const QString &last() const; - int findIndex(const QString &) const; - uint contains(const QString &) const; - uint count() const; - void clear(); - - int __len__(); -%MethodCode - sipRes = sipCpp -> count(); -%End - - void __setitem__(int,const QString &); -%MethodCode - int len; - - len = sipCpp -> count(); - - if ((a0 = (int)sipConvertFromSequenceIndex(a0,len)) < 0) - sipIsErr = 1; - else - (*sipCpp)[a0] = *a1; -%End - - void __setitem__(SIP_PYSLICE,const QStringList &); -%MethodCode -#if PY_VERSION_HEX >= 0x02050000 - Py_ssize_t len, start, stop, step, slicelength, i; -#else - int len, start, stop, step, slicelength, i; -#endif - - 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 - { - QStringList::ConstIterator it = a1 -> begin(); - - for (i = 0; i < slicelength; ++i) - { - (*sipCpp)[start] = *it; - start += step; - ++it; - } - } - } -%End - - void __delitem__(int); -%MethodCode - int len; - - len = sipCpp -> count(); - - if ((a0 = (int)sipConvertFromSequenceIndex(a0,len)) < 0) - sipIsErr = 1; - else - sipCpp -> remove(sipCpp -> at(a0)); -%End - - void __delitem__(SIP_PYSLICE); -%MethodCode -#if PY_VERSION_HEX >= 0x02050000 - Py_ssize_t len, start, stop, step, slicelength, i; -#else - int len, start, stop, step, slicelength, i; -#endif - - len = sipCpp -> count(); - - if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0) - sipIsErr = 1; - else - for (i = 0; i < slicelength; ++i) - { - sipCpp -> remove(sipCpp -> at(start)); - start += step - 1; - } -%End - - QString operator[](int); -%MethodCode - int len; - - len = sipCpp -> count(); - - if ((a0 = (int)sipConvertFromSequenceIndex(a0,len)) < 0) - sipIsErr = 1; - else - sipRes = new QString((*sipCpp)[a0]); -%End - - QStringList operator[](SIP_PYSLICE); -%MethodCode -#if PY_VERSION_HEX >= 0x02050000 - Py_ssize_t len, start, stop, step, slicelength, i; -#else - int len, start, stop, step, slicelength, i; -#endif - - len = sipCpp -> count(); - - if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0) - sipIsErr = 1; - else - { - sipRes = new QStringList(); - - for (i = 0; i < slicelength; ++i) - { - (*sipRes) += (*sipCpp)[start]; - start += step; - } - } -%End - - int __contains__(const QString &); -%MethodCode - sipRes = (sipCpp -> findIndex(*a0) >= 0); -%End - - QStringList operator+(const QStringList &); - QStringList &operator+=(const QStringList &); - - QStringList &operator+=(const QString &); - - QStringList operator*(int); -%MethodCode - sipRes = new QStringList(); - - while (a0-- > 0) - *sipRes += *sipCpp; -%End - - QStringList &operator*=(int); -%MethodCode - QStringList orig(*sipCpp); - - sipCpp -> clear(); - - while (a0-- > 0) - *sipCpp += orig; -%End - - bool operator==(const QStringList &); - bool operator!=(const QStringList &); -}; - -%End diff --git a/python/pyqt/sip/qt/qstrlist.sip b/python/pyqt/sip/qt/qstrlist.sip deleted file mode 100644 index f59c93cf..00000000 --- a/python/pyqt/sip/qt/qstrlist.sip +++ /dev/null @@ -1,100 +0,0 @@ -// This is the SIP interface definition for QStrList. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QStrList - -This class isn't implemented. Whenever a QStrList is the -return type of a function or the type of an argument, a Python list of strings -is used instead. - - -%End - - -%MappedType QStrList -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - // Convert to a Python list of strings. - - char *s; - int i; - PyObject *l; - - // Create the list. - - if ((l = PyList_New(sipCpp -> count())) == NULL) - return NULL; - - // Get it. - - i = 0; - - for (s = sipCpp -> first(); s != NULL; s = sipCpp -> next()) - { - PyObject *ps; - - if ((ps = PyString_FromString(s)) == NULL || PyList_SetItem(l,i,ps) < 0) - { - Py_XDECREF(ps); - Py_DECREF(l); - return NULL; - } - - ++i; - } - - return l; -%End - -%ConvertToTypeCode - // Convert a Python list of strings to a QStrList on the heap. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QStrList *qsl = new QStrList; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - { - char *s; - - if ((s = PyString_AsString(PyList_GET_ITEM(sipPy,i))) == NULL) - { - *sipIsErr = 1; - delete qsl; - - return 0; - } - - qsl -> append(s); - } - - *sipCppPtr = qsl; - - return sipGetState(sipTransferObj); -%End -}; diff --git a/python/pyqt/sip/qt/qstyle.sip b/python/pyqt/sip/qt/qstyle.sip deleted file mode 100644 index 9d992f03..00000000 --- a/python/pyqt/sip/qt/qstyle.sip +++ /dev/null @@ -1,862 +0,0 @@ -// This is the SIP interface definition for QStyle and QStyleOption. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QStyle (Qt v2+) - - virtual void getButtonShift - int &x - int &y - - -This takes no parameters and returns a tuple of the x and -y values. (Qt v2) - - - - virtual void scrollBarMetrics - const QScrollBar *b - int &sliderMin - int &sliderMax - int &sliderLength - int &buttonDim - - -Thus takes only the b parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2) - - - - virtual void tabbarMetrics - const QTabBar *t - int &hframe - int &vframe - int &overlap - - -This takes only the t parameter and returns a tuple of the -hframe, vframe and -overlap values. (Qt v2) - - - -QStyleOption (Qt v3+) - -QStyleOption is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QStyleOption -{ -%TypeHeaderCode -#include -%End - -public: - enum StyleOptionDefault { - Default - }; - - QStyleOption(StyleOptionDefault = Default); - -%If (Qt_3_2_0 -) - QStyleOption(int); -%End - QStyleOption(int,int); - QStyleOption(int,int,int,int); - QStyleOption(QMenuItem *); - QStyleOption(QMenuItem *,int); - QStyleOption(QMenuItem *,int,int); - QStyleOption(const QColor &); - QStyleOption(QTab *); - QStyleOption(QListViewItem *); -%If (Qt_3_1_0 -) - QStyleOption(QCheckListItem *); -%End - QStyleOption(Qt::ArrowType); -%If (Qt_3_1_0 -) - QStyleOption(const QRect &); - QStyleOption(QWidget *); -%End - - bool isDefault() const; - -%If (Qt_3_3_0 -) - int day() const; -%End - - int lineWidth() const; - int midLineWidth() const; - int frameShape() const; - int frameShadow() const; - -%If (Qt_3_2_0 -) - int headerSection() const; -%End - QMenuItem* menuItem() const; - int maxIconWidth() const; - int tabWidth() const; - - const QColor& color() const; - - QTab *tab() const; - -%If (Qt_3_1_0 -) - QCheckListItem *checkListItem() const; -%End - QListViewItem *listViewItem() const; - - Qt::ArrowType arrowType() const; -%If (Qt_3_1_0 -) - QRect rect() const; - QWidget *widget() const; -%End -}; - -%End - - -%If (Qt_3_0_0 -) -// Not yet defined in Qt v3Beta5. -class QStyleHintReturn; -%End - - -%If (Qt_2_00 -) - -class QStyle : QObject -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_0_0 -) - QStyle(); -%End - -%If (- Qt_3_0_0) - GUIStyle guiStyle() const; -%End - - virtual void polish(QWidget *); - virtual void unPolish(QWidget *); - - virtual void polish(QApplication *); - virtual void unPolish(QApplication *); - - virtual void polish(QPalette &); - -%If (Qt_3_0_0 -) - virtual void polishPopupMenu(QPopupMenu *) = 0; -%End - -%If (- Qt_3_0_0) - virtual QRect itemRect(QPainter *,int,int,int,int,int,bool, - const QPixmap *,const QString &,int = -1); - - virtual void drawItem(QPainter *,int,int,int,int,int, - const QColorGroup &,bool,const QPixmap *, - const QString &,int = -1,const QColor * = 0); -%End -%If (Qt_3_0_0 -) - virtual QRect itemRect(QPainter *,const QRect &,int,bool, - const QPixmap *,const QString &,int = -1) const; - - virtual void drawItem(QPainter *,const QRect &,int,const QColorGroup &, - bool,const QPixmap *,const QString &,int = -1, - const QColor * = 0) const; -%End - -%If (- Qt_3_0_0) - virtual void drawSeparator(QPainter *,int,int,int,int, - const QColorGroup &,bool = 1,int = 1, - int = 0); - virtual void drawRect(QPainter *,int,int,int,int,const QColor &, - int = 1,const QBrush * = 0); - virtual void drawRectStrong(QPainter *,int,int,int,int, - const QColorGroup &,bool = 0,int = 1, - int = 0,const QBrush * = 0); - virtual void drawButton(QPainter *,int,int,int,int,const QColorGroup &, - bool = 0,const QBrush * = 0) = 0; - virtual QRect buttonRect(int,int,int,int); - virtual void drawButtonMask(QPainter *,int,int,int,int); - virtual void drawBevelButton(QPainter *,int,int,int,int, - const QColorGroup &,bool = 0, - const QBrush * = 0) = 0; -%If (Qt_2_1_0 -) - QRect bevelButtonRect(int,int,int,int); -%End - virtual void drawToolButton(QPainter *,int,int,int,int, - const QColorGroup &,bool = 0, - const QBrush * = 0); -%If (Qt_2_1_0 -) - void drawToolButton(QToolButton *,QPainter *); - QRect toolButtonRect(int,int,int,int); -%End - virtual void drawPanel(QPainter *,int,int,int,int,const QColorGroup &, - bool = 0,int = 1,const QBrush * = 0); - virtual void drawPopupPanel(QPainter *,int,int,int,int, - const QColorGroup &,int = 2, - const QBrush * = 0); - virtual void drawArrow(QPainter *,Qt::ArrowType,bool,int,int,int,int, - const QColorGroup &,bool,const QBrush * = 0) = 0; - virtual QSize exclusiveIndicatorSize() const = 0; - virtual void drawExclusiveIndicator(QPainter *,int,int,int,int, - const QColorGroup &,bool,bool = 0, - bool = 1) = 0; - virtual void drawExclusiveIndicatorMask(QPainter *,int,int,int,int, - bool); - virtual QSize indicatorSize() const = 0; - virtual void drawIndicator(QPainter *,int,int,int,int, - const QColorGroup &,int,bool = 0, - bool = 1) = 0; - virtual void drawIndicatorMask(QPainter *,int,int,int,int,int); - virtual void drawFocusRect(QPainter *,const QRect &,const QColorGroup &, - const QColor * = 0,bool = 0) = 0; - virtual void drawComboButton(QPainter *,int,int,int,int, - const QColorGroup &,bool = 0,bool = 0, - bool = 1,const QBrush * = 0) = 0; - virtual QRect comboButtonRect(int,int,int,int) = 0; - virtual QRect comboButtonFocusRect(int,int,int,int) = 0; - virtual void drawComboButtonMask(QPainter *,int,int,int,int) = 0; - virtual void drawPushButton(QPushButton *,QPainter *) = 0; - virtual void drawPushButtonLabel(QPushButton *,QPainter *) = 0; - -%If (Qt_2_1_0 -) - QRect pushButtonContentsRect(QPushButton *); - int menuButtonIndicatorWidth(int); -%End - - virtual void getButtonShift(int &,int &) = 0; - virtual int defaultFrameWidth() const = 0; - virtual void tabbarMetrics(const QTabBar *,int &,int &,int &) = 0; - virtual void drawTab(QPainter *,const QTabBar *,QTab *,bool) = 0; - virtual void drawTabMask(QPainter *,const QTabBar* ,QTab* ,bool) = 0; - - enum ScrollControl - { - AddLine = 0x1, - SubLine = 0x2, - AddPage = 0x4, - SubPage = 0x8, - First = 0x10, - Last = 0x20, - Slider = 0x40, - NoScroll = 0x80 - }; - - virtual void scrollBarMetrics(const QScrollBar *,int &,int &,int &, - int &) = 0; - virtual void drawScrollBarControls(QPainter *,const QScrollBar *,int, - uint,uint) = 0; - virtual ScrollControl scrollBarPointOver(const QScrollBar *,int, - const QPoint &) = 0; - virtual int sliderLength() const = 0; - virtual void drawSlider(QPainter *,int,int,int,int,const QColorGroup &, - Orientation,bool,bool) = 0; - virtual void drawSliderMask(QPainter *,int,int,int,int,Orientation, - bool,bool) = 0; - virtual void drawSliderGroove(QPainter *,int,int,int,int, - const QColorGroup &,QCOORD, - Orientation) = 0; - virtual void drawSliderGrooveMask(QPainter *,int,int,int,int,QCOORD, - Orientation) = 0; - virtual int maximumSliderDragDistance() const = 0; - virtual int splitterWidth() const = 0; - virtual void drawSplitter(QPainter *,int,int,int,int, - const QColorGroup &,Orientation) = 0; - virtual void drawCheckMark(QPainter *,int,int,int,int, - const QColorGroup &,bool,bool) = 0; - virtual void polishPopupMenu(QPopupMenu *) = 0; - virtual int extraPopupMenuItemWidth(bool,int,QMenuItem *, - const QFontMetrics &) = 0; - virtual int popupSubmenuIndicatorWidth(const QFontMetrics &) = 0; - virtual int popupMenuItemHeight(bool,QMenuItem *, - const QFontMetrics &) = 0; - virtual void drawPopupMenuItem(QPainter *,bool,int,int,QMenuItem *, - const QPalette &,bool, bool,int,int,int, - int) = 0; -%If (Qt_2_2_0 -) - virtual void drawMenuBarItem(QPainter *,int,int,int,int,QMenuItem *, - QColorGroup &,bool,bool); -%End -%If (Qt_2_1_0 -) - QSize scrollBarExtent(); - int buttonDefaultIndicatorWidth() const; -%If (Qt_2_2_0 -) - int buttonMargin() const; - int toolBarHandleExtent() const; - int sliderThickness() const; -%End - int toolBarHandleExtend() const; - void drawToolBarHandle(QPainter *,const QRect &,Qt::Orientation,bool, - const QColorGroup &,bool = 0); -%End - -%End - -%If (Qt_3_0_0 -) - enum PrimitiveElement { - PE_ButtonCommand, - PE_ButtonDefault, - PE_ButtonBevel, - PE_ButtonTool, - PE_ButtonDropDown, - - PE_FocusRect, - - PE_ArrowUp, - PE_ArrowDown, - PE_ArrowRight, - PE_ArrowLeft, - - PE_SpinWidgetUp, - PE_SpinWidgetDown, - PE_SpinWidgetPlus, - PE_SpinWidgetMinus, - - PE_Indicator, - PE_IndicatorMask, - PE_ExclusiveIndicator, - PE_ExclusiveIndicatorMask, - - PE_DockWindowHandle, - PE_DockWindowSeparator, - PE_DockWindowResizeHandle, - - PE_Splitter, - - PE_Panel, - PE_PanelPopup, - PE_PanelMenuBar, - PE_PanelDockWindow, - - PE_TabBarBase, - - PE_HeaderSection, - PE_HeaderArrow, - PE_StatusBarSection, - - PE_GroupBoxFrame, - - PE_Separator, - - PE_SizeGrip, - - PE_CheckMark, - - PE_ScrollBarAddLine, - PE_ScrollBarSubLine, - PE_ScrollBarAddPage, - PE_ScrollBarSubPage, - PE_ScrollBarSlider, - PE_ScrollBarFirst, - PE_ScrollBarLast, - - PE_ProgressBarChunk, - -%If (Qt_3_0_1 -) - PE_PanelLineEdit, - PE_PanelTabWidget, - - PE_WindowFrame, -%End -%If (Qt_3_1_0 -) - PE_CheckListController, - PE_CheckListIndicator, - PE_CheckListExclusiveIndicator, - - PE_PanelGroupBox, -%End -%If (Qt_3_0_4 - Qt_3_0_5) - PE_PopupMenuScroller, -%End -%If (Qt_3_3_0 -) - PE_RubberBand, -%End - - PE_CustomBase - }; - - enum StyleFlags { - Style_Default, - Style_Enabled, - Style_Raised, - Style_Sunken, - Style_Off, - Style_NoChange, - Style_On, - Style_Down, - Style_Horizontal, - Style_HasFocus, - Style_Top, - Style_Bottom, - Style_FocusAtBorder, - Style_AutoRaise, - Style_MouseOver, - Style_Up, - Style_Selected, - Style_Active, - Style_ButtonDefault - }; - - typedef uint SFlags; - - virtual void drawPrimitive(PrimitiveElement,QPainter *,const QRect &, - const QColorGroup &,SFlags = Style_Default, - const QStyleOption & = QStyleOption()) const = 0; - - enum ControlElement { - CE_PushButton, - CE_PushButtonLabel, - - CE_CheckBox, - CE_CheckBoxLabel, - - CE_RadioButton, - CE_RadioButtonLabel, - - CE_TabBarTab, - CE_TabBarLabel, - - CE_ProgressBarGroove, - CE_ProgressBarContents, - CE_ProgressBarLabel, - - CE_PopupMenuItem, - CE_MenuBarItem, - - CE_ToolButtonLabel, -%If (Qt_3_1_0 -) - CE_MenuBarEmptyArea, -%End -%If (Qt_3_0_5 -) - CE_PopupMenuScroller, -%End -%If (Qt_3_1_0 -) - CE_DockWindowEmptyArea, -%End -%If (Qt_3_2_0 -) - CE_PopupMenuVerticalExtra, - CE_PopupMenuHorizontalExtra, - - CE_ToolBoxTab, - CE_HeaderLabel, -%End - - CE_CustomBase - }; - - virtual void drawControl(ControlElement,QPainter *,const QWidget *, - const QRect &,const QColorGroup &, - SFlags = Style_Default, - const QStyleOption & = QStyleOption()) const = 0; - virtual void drawControlMask(ControlElement,QPainter *,const QWidget *, - const QRect &, - const QStyleOption & = QStyleOption()) const = 0; - - enum SubRect { - SR_PushButtonContents, - SR_PushButtonFocusRect, - - SR_CheckBoxIndicator, - SR_CheckBoxContents, - SR_CheckBoxFocusRect, - - SR_RadioButtonIndicator, - SR_RadioButtonContents, - SR_RadioButtonFocusRect, - - SR_ComboBoxFocusRect, - - SR_SliderFocusRect, - - SR_DockWindowHandleRect, - - SR_ProgressBarGroove, - SR_ProgressBarContents, - SR_ProgressBarLabel, - - SR_ToolButtonContents, - -%If (Qt_3_2_0 -) - SR_DialogButtonAccept, - SR_DialogButtonReject, - SR_DialogButtonApply, - SR_DialogButtonHelp, - SR_DialogButtonAll, - SR_DialogButtonAbort, - SR_DialogButtonIgnore, - SR_DialogButtonRetry, - SR_DialogButtonCustom, - - SR_ToolBoxTabContents, -%End - - SR_CustomBase - }; - - virtual QRect subRect(SubRect,const QWidget *) const = 0; - - enum ComplexControl{ - CC_SpinWidget, - CC_ComboBox, - CC_ScrollBar, - CC_Slider, - CC_ToolButton, - CC_TitleBar, - CC_ListView, - - CC_CustomBase - }; - - enum SubControl { - SC_None, - - SC_ScrollBarAddLine, - SC_ScrollBarSubLine, - SC_ScrollBarAddPage, - SC_ScrollBarSubPage, - SC_ScrollBarFirst, - SC_ScrollBarLast, - SC_ScrollBarSlider, - SC_ScrollBarGroove, - - SC_SpinWidgetUp, - SC_SpinWidgetDown, - SC_SpinWidgetFrame, - SC_SpinWidgetEditField, - SC_SpinWidgetButtonField, - - SC_ComboBoxFrame, - SC_ComboBoxEditField, - SC_ComboBoxArrow, -%If (Qt_3_1_0 -) - SC_ComboBoxListBoxPopup, -%End - - SC_SliderGroove, - SC_SliderHandle, - SC_SliderTickmarks, - - SC_ToolButton, - SC_ToolButtonMenu, - - SC_TitleBarLabel, - SC_TitleBarSysMenu, - SC_TitleBarMinButton, - SC_TitleBarMaxButton, - SC_TitleBarCloseButton, - SC_TitleBarNormalButton, - SC_TitleBarShadeButton, - SC_TitleBarUnshadeButton, - - SC_ListView, - SC_ListViewBranch, - SC_ListViewExpand, - - SC_All - }; - - typedef uint SCFlags; - - virtual void drawComplexControl(ComplexControl,QPainter *, - const QWidget *,const QRect &, - const QColorGroup &, - SFlags = Style_Default, - SCFlags = SC_All,SCFlags = SC_None, - const QStyleOption & = QStyleOption()) const = 0; - virtual void drawComplexControlMask(ComplexControl,QPainter *, - const QWidget *,const QRect &, - const QStyleOption & = QStyleOption()) const = 0; - - virtual QRect querySubControlMetrics(ComplexControl, - const QWidget *,SubControl, - const QStyleOption & = QStyleOption()) const = 0; - virtual SubControl querySubControl(ComplexControl,const QWidget *, - const QPoint &, - const QStyleOption & = QStyleOption()) const = 0; - - enum PixelMetric { - PM_ButtonMargin, - PM_ButtonDefaultIndicator, - PM_MenuButtonIndicator, - PM_ButtonShiftHorizontal, - PM_ButtonShiftVertical, - - PM_DefaultFrameWidth, - PM_SpinBoxFrameWidth, - - PM_MaximumDragDistance, - - PM_ScrollBarExtent, - PM_ScrollBarSliderMin, - - PM_SliderThickness, - PM_SliderControlThickness, - PM_SliderLength, - PM_SliderTickmarkOffset, - PM_SliderSpaceAvailable, - - PM_DockWindowSeparatorExtent, - PM_DockWindowHandleExtent, - PM_DockWindowFrameWidth, - - PM_MenuBarFrameWidth, - - PM_TabBarTabOverlap, - PM_TabBarTabHSpace, - PM_TabBarTabVSpace, - PM_TabBarBaseHeight, - PM_TabBarBaseOverlap, - - PM_ProgressBarChunkWidth, - - PM_SplitterWidth, - PM_TitleBarHeight, - - PM_IndicatorWidth, - PM_IndicatorHeight, - PM_ExclusiveIndicatorWidth, - PM_ExclusiveIndicatorHeight, -%If (Qt_3_0_4 -) - PM_PopupMenuScrollerHeight, -%End -%If (Qt_3_1_0 -) - PM_CheckListButtonSize, -%End -%If (Qt_3_2_0 -) - PM_CheckListControllerSize, - PM_PopupMenuFrameHorizontalExtra, - PM_PopupMenuFrameVerticalExtra, - - PM_DialogButtonsSeparator, - PM_DialogButtonsButtonWidth, - PM_DialogButtonsButtonHeight, - - PM_MDIFrameWidth, - PM_MDIMinimizedWidth, - PM_HeaderMargin, - PM_HeaderMarkSize, - PM_HeaderGripMargin, - PM_TabBarTabShiftHorizontal, - PM_TabBarTabShiftVertical, -%End -%If (Qt_3_3_0 -) - PM_TabBarScrollButtonWidth, - - PM_MenuBarItemSpacing, - PM_ToolBarItemSpacing, -%End - - PM_CustomBase - }; - - virtual int pixelMetric(PixelMetric,const QWidget * = 0) const = 0; - - enum ContentsType { - CT_PushButton, - CT_CheckBox, - CT_RadioButton, - CT_ToolButton, - CT_ComboBox, - CT_Splitter, - CT_DockWindow, - CT_ProgressBar, - CT_PopupMenuItem, -%If (Qt_3_1_0 -) - CT_TabBarTab, - CT_Slider, - CT_Header, - CT_LineEdit, - CT_MenuBar, - CT_SpinBox, -%End -%If (Qt_3_2_0 -) - CT_SizeGrip, - CT_TabWidget, - CT_DialogButtons, -%End - - CT_CustomBase - }; - - virtual QSize sizeFromContents(ContentsType,const QWidget *, - const QSize &, - const QStyleOption & = QStyleOption()) const = 0; - - enum StyleHint { - SH_EtchDisabledText, - - SH_GUIStyle, - - SH_ScrollBar_BackgroundMode, - SH_ScrollBar_MiddleClickAbsolutePosition, - SH_ScrollBar_ScrollWhenPointerLeavesControl, - - SH_TabBar_SelectMouseType, - - SH_TabBar_Alignment, - - SH_Header_ArrowAlignment, - - SH_Slider_SnapToValue, - - SH_Slider_SloppyKeyEvents, - - SH_ProgressDialog_CenterCancelButton, - - SH_ProgressDialog_TextLabelAlignment, - - SH_PrintDialog_RightAlignButtons, - - SH_MainWindow_SpaceBelowMenuBar, - - SH_FontDialog_SelectAssociatedText, - - SH_PopupMenu_AllowActiveAndDisabled, - - SH_PopupMenu_SpaceActivatesItem, - - SH_PopupMenu_SubMenuPopupDelay, - - SH_ScrollView_FrameOnlyAroundContents, - - SH_MenuBar_AltKeyNavigation, - - SH_ComboBox_ListMouseTracking, - - SH_PopupMenu_MouseTracking, - - SH_MenuBar_MouseTracking, - - SH_ItemView_ChangeHighlightOnFocus, - - SH_Widget_ShareActivation, - - SH_Workspace_FillSpaceOnMaximize, - - SH_ComboBox_Popup, - -%If (Qt_3_0_1 -) - SH_TitleBar_NoBorder, - - SH_ScrollBar_StopMouseOverSlider, -%End - -%If (Qt_3_0_2 -) - SH_BlinkCursorWhenTextSelected, - - SH_RichText_FullWidthSelection, -%End - -%If (Qt_3_0_4 -) - SH_PopupMenu_Scrollable, -%End - -%If (Qt_3_1_0 -) - SH_GroupBox_TextLabelVerticalAlignment, - - SH_GroupBox_TextLabelColor, - - SH_PopupMenu_SloppySubMenus, -%End - -%If (Qt_3_2_0 -) - SH_Table_GridLineColor, - - SH_LineEdit_PasswordCharacter, - - SH_DialogButtons_DefaultButton, - - SH_ToolBox_SelectedPageTitleBold, - - SH_TabBar_PreferNoArrows, - - SH_ScrollBar_LeftClickAbsolutePosition, - - SH_ListViewExpand_SelectMouseType, -%End - -%If (Qt_3_3_0 -) - SH_UnderlineAccelerator, - - SH_ToolButton_Uses3D, -%End - - SH_CustomBase - }; - - virtual int styleHint(StyleHint,const QWidget * = 0, - const QStyleOption & = QStyleOption(), - QStyleHintReturn * = 0) const = 0; - - enum StylePixmap { - SP_TitleBarMinButton, - SP_TitleBarMaxButton, - SP_TitleBarCloseButton, - SP_TitleBarNormalButton, - SP_TitleBarShadeButton, - SP_TitleBarUnshadeButton, - SP_DockWindowCloseButton, - SP_MessageBoxInformation, - SP_MessageBoxWarning, - SP_MessageBoxCritical, -%If (Qt_3_2_0 -) - SP_MessageBoxQuestion, -%End - - SP_CustomBase - }; - - virtual QPixmap stylePixmap(StylePixmap,const QWidget * = 0, - const QStyleOption & = QStyleOption()) const = 0; - - static QRect visualRect(const QRect &,const QWidget *); - - static QRect visualRect(const QRect &,const QRect &); -%End - -protected: -%If (Qt_2_1_0 - Qt_3_0_0) - void setScrollBarExtent(int,int = -1); - void setButtonDefaultIndicatorWidth(int); -%End - -private: -%If (- Qt_3_0_0) - QStyle(); - QStyle(GUIStyle); -%End -%If (Qt_2_1_0 -) - QStyle(const QStyle &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qstylefactory.sip b/python/pyqt/sip/qt/qstylefactory.sip deleted file mode 100644 index fe95e056..00000000 --- a/python/pyqt/sip/qt/qstylefactory.sip +++ /dev/null @@ -1,45 +0,0 @@ -// This is the SIP interface definition for QStyleFactory. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QStyleFactory (Qt v3+) - -QStyleFactory is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QStyleFactory -{ -%TypeHeaderCode -#include -%End - -public: - static QStringList keys(); - static QStyle *create(const QString &) /Factory/; -}; - -%End diff --git a/python/pyqt/sip/qt/qstylesheet.sip b/python/pyqt/sip/qt/qstylesheet.sip deleted file mode 100644 index e845b80b..00000000 --- a/python/pyqt/sip/qt/qstylesheet.sip +++ /dev/null @@ -1,239 +0,0 @@ -// This is the SIP interface definition for QStyleSheet and QStyleSheetItem. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QStyleSheet (Qt v2+) - -QStyleSheet is fully implemented. - - - -QStyleSheetItem (Qt v2+) - -QStyleSheetItem is fully implemented. - - -%End - - -%If (Qt_2_00 -) - -class QStyleSheetItem : Qt -{ -%TypeHeaderCode -#include -%End - -public: - QStyleSheetItem(QStyleSheet * /TransferThis/,const QString &); - - QString name() const; - - QStyleSheet *styleSheet(); -// const QStyleSheet *styleSheet() const; - - enum AdditionalStyleValues { - Undefined - }; - - enum DisplayMode { - DisplayBlock, - DisplayInline, - DisplayListItem, - DisplayNone - }; - - DisplayMode displayMode() const; - void setDisplayMode(DisplayMode); - - int alignment() const; - void setAlignment(int); - -%If (Qt_3_0_0 -) - enum VerticalAlignment { - VAlignBaseline, - VAlignSub, - VAlignSuper - }; - - VerticalAlignment verticalAlignment() const; - void setVerticalAlignment(VerticalAlignment); -%End - - int fontWeight() const; - void setFontWeight(int); - - int logicalFontSize() const; - void setLogicalFontSize(int); - - int logicalFontSizeStep() const; - void setLogicalFontSizeStep(int); - - int fontSize() const; - void setFontSize(int); - - QString fontFamily() const; - void setFontFamily(const QString &); - - int numberOfColumns() const; - void setNumberOfColumns(int); - - QColor color() const; - void setColor(const QColor &); - - bool fontItalic() const; - void setFontItalic(bool); - bool definesFontItalic() const; - - bool fontUnderline() const; - void setFontUnderline(bool); - bool definesFontUnderline() const; - -%If (Qt_3_0_5 -) - bool fontStrikeOut() const; - void setFontStrikeOut(bool); - bool definesFontStrikeOut() const; -%End - - bool isAnchor() const; - void setAnchor(bool); - -%If (- Qt_2_1_0) - enum WhiteSpaceMode { - WhiteSpaceNormal, - WhiteSpacePre - }; -%End -%If (Qt_2_1_0 -) - enum WhiteSpaceMode { - WhiteSpaceNormal, - WhiteSpacePre, - WhiteSpaceNoWrap - }; -%End - - WhiteSpaceMode whiteSpaceMode() const; - void setWhiteSpaceMode(WhiteSpaceMode); - -%If (- Qt_3_0_0) - enum Margin { - MarginLeft, - MarginRight, - MarginTop, - MarginBottom, - MarginAll, - MarginVertical, - MarginHorizontal - }; -%End -%If (Qt_3_0_0 -) - enum Margin { - MarginLeft, - MarginRight, - MarginTop, - MarginBottom, - MarginFirstLine, - MarginAll, - MarginVertical, - MarginHorizontal - }; -%End - - int margin(Margin) const; - void setMargin(Margin,int); - - enum ListStyle { - ListDisc, - ListCircle, - ListSquare, - ListDecimal, - ListLowerAlpha, - ListUpperAlpha - }; - - ListStyle listStyle() const; - void setListStyle(ListStyle); - - QString contexts() const; - void setContexts(const QString &); - bool allowedInContext(const QStyleSheetItem *) const; - - bool selfNesting() const; - void setSelfNesting(bool); - -%If (Qt_3_0_0 -) - void setLineSpacing(int); - int lineSpacing() const; -%End -}; - - -class QStyleSheet : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QStyleSheet(QObject * /TransferThis/ = 0,const char * = 0); - - static QStyleSheet *defaultSheet(); - static void setDefaultSheet(QStyleSheet *); - - QStyleSheetItem *item(const QString &); -// const QStyleSheetItem *item(const QString &) const; - - void insert(QStyleSheetItem *); - -%If (- Qt_3_0_0) -// virtual QTextNode *tag(const QString &,const QMap &, -// const QString &,const QMimeSourceFactory &, -// bool = 0) const; -%End -%If (Qt_3_0_0 -) -// virtual QTextCustomItem *tag(const QString &, -// const QMap &, -// const QString &, -// const QMimeSourceFactory &,bool, -// QTextDocument *) const; -%End - -%If (Qt_3_0_0 -) - static QString escape(const QString &); - static QString convertFromPlainText(const QString &, - QStyleSheetItem::WhiteSpaceMode = QStyleSheetItem::WhiteSpacePre); -%End -%If (- Qt_3_0_0) - static QString convertFromPlainText(const QString &); -%End - static bool mightBeRichText(const QString &); - - virtual void scaleFont(QFont &,int) const; - virtual void error(const QString &) const; - -private: -%If (Qt_3_1_0 -) - QStyleSheet(const QStyleSheet &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qsyntaxhighlighter.sip b/python/pyqt/sip/qt/qsyntaxhighlighter.sip deleted file mode 100644 index d7587cc7..00000000 --- a/python/pyqt/sip/qt/qsyntaxhighlighter.sip +++ /dev/null @@ -1,57 +0,0 @@ -// This is the SIP interface definition for QSyntaxHighlighter. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSyntaxHighlighter (Qt v3.1+) - -QSyntaxHighlighter is fully implemented. - - -%End - - -%If (Qt_3_1_0 -) - -class QSyntaxHighlighter : Qt -{ -%TypeHeaderCode -#include -%End - -public: - QSyntaxHighlighter(QTextEdit * /TransferThis/); - - virtual int highlightParagraph(const QString &,int) = 0; - - void setFormat(int,int,const QFont &,const QColor &); - void setFormat(int,int,const QColor &); - void setFormat(int,int,const QFont &); - QTextEdit *textEdit() const; - - void rehighlight(); - -%If (Qt_3_2_0 -) - int currentParagraph() const; -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qtabbar.sip b/python/pyqt/sip/qt/qtabbar.sip deleted file mode 100644 index d1ad4722..00000000 --- a/python/pyqt/sip/qt/qtabbar.sip +++ /dev/null @@ -1,264 +0,0 @@ -// This is the SIP interface definition for QTab and QTabBar. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QTab - -QTab is fully implemented. - - - -QTabBar - - QList<QTab> tabList - - - -This returns a list of QTab instances. - - -%End - - -%If (Qt_3_0_0 -) - -class QTab : Qt -{ -%TypeHeaderCode -#include -%End - -public: - QTab(); - QTab(const QString &); - QTab(const QIconSet &,const QString & = QString::null); - virtual ~QTab(); - - void setText(const QString &); - QString text() const; - void setIconSet(const QIconSet &); - QIconSet *iconSet() const; - void setRect(const QRect &); - QRect rect() const; - void setEnabled(bool); - bool isEnabled() const; - void setIdentifier(int); - int identifier() const; -}; - -%End - -%If (- Qt_3_0_0) - -class QTab -{ -%TypeHeaderCode -#include -%End - -public: - QTab(); -%If (Qt_2_1_0 -) - QTab(const QString &); - QTab(const QIconSet &,const QString & = QString::null); -%End - virtual ~QTab(); - - QString label; - QRect r; - bool enabled; - int id; - QIconSet *iconset; -}; - -%End - - -class QTabBar : QWidget -{ -%TypeHeaderCode -#include -%End - -public: - QTabBar(QWidget * /TransferThis/ = 0,const char * = 0); - - enum Shape { - RoundedAbove, - RoundedBelow, - TriangularAbove, - TriangularBelow - }; - - Shape shape() const; -%If (- Qt_2_00) - void setShape(Shape); -%End -%If (Qt_2_00 -) - virtual void setShape(Shape); -%End - - void show(); - - virtual int addTab(QTab * /Transfer/); -%If (Qt_2_00 -) - virtual int insertTab(QTab * /Transfer/,int = -1); - virtual void removeTab(QTab *); -%End - -%If (- Qt_2_00) - void setTabEnabled(int,bool); -%End -%If (Qt_2_00 -) - virtual void setTabEnabled(int,bool); -%End - bool isTabEnabled(int) const; - - QSize sizeHint() const; -%If (Qt_2_2_0 -) - QSize minimumSizeHint() const; -%End -%If (Qt_2_00 -) - QSizePolicy sizePolicy() const; -%End - - int currentTab() const; - int keyboardFocusTab() const; - -%If (- Qt_3_0_0) - QTab *tab(int); -%End -%If (Qt_3_0_0 -) - QTab *tab(int) const; - QTab *tabAt(int) const; - int indexOf(int) const; -%End -%If (Qt_2_2_0 -) - int count() const; -%End - -%If (Qt_2_00 -) - virtual void layoutTabs(); -%End -%If (Qt_3_0_0 -) - virtual QTab *selectTab(const QPoint &) const; - - void removeToolTip(int); - void setToolTip(int,const QString &); - QString toolTip(int) const; -%End - -public slots: -%If (- Qt_2_00) - void setCurrentTab(int); - void setCurrentTab(QTab *); -%End -%If (Qt_2_00 -) - virtual void setCurrentTab(int); - virtual void setCurrentTab(QTab *); -%End - -signals: - void selected(int); -%If (Qt_3_2_0 -) - void layoutChanged(); -%End - -protected: - virtual void paint(QPainter *,QTab *,bool) const; -%If (Qt_2_00 -) - virtual void paintLabel(QPainter *,const QRect &,QTab *,bool) const; -%End - -%If (- Qt_3_0_0) - virtual QTab *selectTab(const QPoint &) const; -%End -%If (Qt_2_00 - Qt_3_0_0) - void updateMask(); -%End - -%If (Qt_2_1_0 -) - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); - - void resizeEvent(QResizeEvent *); -%End - void paintEvent(QPaintEvent *); - void mousePressEvent(QMouseEvent *); -%If (Qt_3_0_0 -) - void mouseMoveEvent(QMouseEvent *); -%End - void mouseReleaseEvent(QMouseEvent *); - void keyPressEvent(QKeyEvent *); -%If (Qt_2_1_0 -) - void styleChange(QStyle &); -%End -%If (Qt_3_0_0 -) - void fontChange(const QFont &); -%End - -%If (Qt_3_1_0 -) - bool event(QEvent *); -%End - - SIP_PYLIST tabList() [QList *()]; -%MethodCode - if ((sipRes = PyList_New(0)) == NULL) - sipIsErr = 1; - else - { - QList *tl; - QTab *tab; - - Py_BEGIN_ALLOW_THREADS - tl = sipCpp -> sipProtect_tabList(); - Py_END_ALLOW_THREADS - - // Convert the list. - for (QListIterator it(*tl); (tab = it.current()) != NULL; ++it) - { - PyObject *inst = sipBuildResult(&sipIsErr,"C",tab,sipClass_QTab,NULL); - - if (sipIsErr) - break; - - int rc = PyList_Append(sipRes,inst); - - Py_DECREF(inst); - - if (rc < 0) - { - sipIsErr = 1; - break; - } - } - - if (sipIsErr) - Py_DECREF(sipRes); - } -%End - -private: -%If (Qt_2_1_0 -) - QTabBar(const QTabBar &); -%End -}; diff --git a/python/pyqt/sip/qt/qtabdialog.sip b/python/pyqt/sip/qt/qtabdialog.sip deleted file mode 100644 index 7050b604..00000000 --- a/python/pyqt/sip/qt/qtabdialog.sip +++ /dev/null @@ -1,167 +0,0 @@ -// This is the SIP interface definition for QTabDialog. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QTabDialog - -QTabDialog is fully implemented. - - -%End - - -%If (Qt_TABDIALOG) - -class QTabDialog : QDialog -{ -%TypeHeaderCode -#include -%End - -public: - QTabDialog(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0, - WFlags = 0); - - void show(); - void setFont(const QFont &); - -%If (- Qt_2_00) - void addTab(QWidget *,const char *); -%End -%If (Qt_2_00 -) - void addTab(QWidget *,const QString &); - void addTab(QWidget *,const QIconSet &,const QString &); -%End - void addTab(QWidget *,QTab *); - -%If (Qt_2_00 -) - void insertTab(QWidget *,const QString &,int = -1); - void insertTab(QWidget *,const QIconSet &,const QString &,int = -1); - void insertTab(QWidget *,QTab *,int = -1); - - void changeTab(QWidget *,const QString &); - void changeTab(QWidget *,const QIconSet &,const QString &); -%End - -%If (Qt_2_00 -) - bool isTabEnabled(QWidget *) const; - void setTabEnabled(QWidget *,bool); -%End -%If (- Qt_3_0_0) - bool isTabEnabled(const char *) const; - void setTabEnabled(const char *,bool); -%End - - void showPage(QWidget *); -%If (Qt_2_00 -) - void removePage(QWidget *); - QString tabLabel(QWidget *); -%End -%If (- Qt_2_00) - const char *tabLabel(QWidget *); -%End - -%If (Qt_2_00 -) - QWidget *currentPage() const; -%End - -%If (- Qt_2_00) - void setDefaultButton(const char * = "Defaults"); -%End -%If (Qt_2_00 -) - void setDefaultButton(const QString &); - void setDefaultButton(); -%End - bool hasDefaultButton() const; - -%If (Qt_2_00 -) - void setHelpButton(const QString &); - void setHelpButton(); - bool hasHelpButton() const; -%End - -%If (- Qt_2_00) - void setCancelButton(const char * = "Cancel"); -%End -%If (Qt_2_00 -) - void setCancelButton(const QString &); - void setCancelButton(); -%End - bool hasCancelButton() const; - -%If (- Qt_2_00) - void setApplyButton(const char * = "Apply"); -%End -%If (Qt_2_00 -) - void setApplyButton(const QString &); - void setApplyButton(); -%End - bool hasApplyButton() const; - -%If (- Qt_2_00) - void setOkButton(const char * = "OK"); -%End -%If (Qt_2_00 -) - void setOkButton(const QString &); - void setOkButton(); -%End - bool hasOkButton() const; - -protected: - void paintEvent(QPaintEvent *); - void resizeEvent(QResizeEvent *); -%If (- Qt_2_00) - void styleChange(GUIStyle); -%End -%If (Qt_2_00 -) - void styleChange(QStyle &); -%End - void setTabBar(QTabBar *); - QTabBar *tabBar() const; - -signals: - void aboutToShow(); - - void applyButtonPressed(); - void cancelButtonPressed(); - void defaultButtonPressed(); -%If (Qt_2_00 -) - void helpButtonPressed(); -%End - -%If (Qt_2_2_0 -) - void currentChanged(QWidget *); -%End -%If (- Qt_2_00) - void selected(const char *); -%End -%If (Qt_2_00 - Qt_3_0_0) - void selected(const QString &); -%End - -private: -%If (Qt_2_1_0 -) - QTabDialog(const QTabDialog &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qtableview.sip b/python/pyqt/sip/qt/qtableview.sip deleted file mode 100644 index 79ea7060..00000000 --- a/python/pyqt/sip/qt/qtableview.sip +++ /dev/null @@ -1,185 +0,0 @@ -// This is the SIP interface definition for QTableView. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QTableView (Qt 1.x, Qt 2.x) - - bool colXPos - int col - int *xPos - - -This takes the col parameter and returns a tuple containing -the bool result and xPos. - - - - bool rowYPos - int row - int *yPos - - -This takes the row parameter and returns a tuple containing -the bool result and yPos. - - -%End - - -%If (Qt_TABLEVIEW) -%If (- Qt_3_0_0) - -%ModuleHeaderCode -#include -%End - -const uint Tbl_vScrollBar; -const uint Tbl_hScrollBar; -const uint Tbl_autoVScrollBar; -const uint Tbl_autoHScrollBar; -const uint Tbl_autoScrollBars; - -const uint Tbl_clipCellPainting; -const uint Tbl_cutCellsV; -const uint Tbl_cutCellsH; -const uint Tbl_cutCells; - -const uint Tbl_scrollLastHCell; -const uint Tbl_scrollLastVCell; -const uint Tbl_scrollLastCell; - -const uint Tbl_smoothHScrolling; -const uint Tbl_smoothVScrolling; -const uint Tbl_smoothScrolling; - -const uint Tbl_snapToHGrid; -const uint Tbl_snapToVGrid; -const uint Tbl_snapToGrid; - - -class QTableView : QFrame -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - void setBackgroundColor(const QColor &); - void setPalette(const QPalette &); -%End -%If (Qt_2_00 -) - virtual void setBackgroundColor(const QColor &); - virtual void setPalette(const QPalette &); -%End - void show(); - void repaint(bool = 1); - void repaint(int,int,int,int,bool = 1); - void repaint(const QRect &,bool = 1); - -protected: - QTableView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - ~QTableView(); - - int numRows() const; - int numCols() const; - int topCell() const; - int leftCell() const; - int xOffset() const; - int yOffset() const; - virtual int cellWidth(int); - virtual int cellHeight(int); - int cellWidth() const; - int cellHeight() const; - virtual int totalWidth(); - virtual int totalHeight(); - uint tableFlags() const; - bool testTableFlags(uint) const; - void clearTableFlags(uint = ~0); - bool autoUpdate() const; - void updateCell(int,int,bool = 1); - QRect cellUpdateRect() const; - QRect viewRect() const; - int lastRowVisible() const; - int lastColVisible() const; - bool rowIsVisible(int) const; - bool colIsVisible(int) const; - const QScrollBar *verticalScrollBar() const; - const QScrollBar *horizontalScrollBar() const; - virtual void paintCell(QPainter *,int,int) = 0; - virtual void setupPainter(QPainter *); - void paintEvent(QPaintEvent *); - void resizeEvent(QResizeEvent *); - int findRow(int) const; - int findCol(int) const; - bool rowYPos(int,int *) const; - bool colXPos(int,int *) const; - int maxXOffset(); - int maxYOffset(); - int maxColOffset(); - int maxRowOffset(); - int minViewX() const; - int minViewY() const; - int maxViewX() const; - int maxViewY() const; - int viewWidth() const; - int viewHeight() const; - void scroll(int,int); - void updateScrollBars(); - void updateTableSize(); - -%If (- Qt_2_00) - void setNumRows(int); - void setNumCols(int); - void setTopCell(int); - void setLeftCell(int); - void setTopLeftCell(int,int); - void setXOffset(int); - void setYOffset(int); - void setOffset(int,int,bool = 1); - void setCellWidth(int); - void setCellHeight(int); - void setTableFlags(uint); - void setAutoUpdate(bool); -%End - -%If (Qt_2_00 -) - virtual void setNumRows(int); - virtual void setNumCols(int); - virtual void setTopCell(int); - virtual void setLeftCell(int); - virtual void setTopLeftCell(int,int); - virtual void setXOffset(int); - virtual void setYOffset(int); - virtual void setOffset(int,int,bool = 1); - virtual void setCellWidth(int); - virtual void setCellHeight(int); - virtual void setTableFlags(uint); - virtual void setAutoUpdate(bool); -%End - -private: - QTableView(const QTableView &); -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qtabwidget.sip b/python/pyqt/sip/qt/qtabwidget.sip deleted file mode 100644 index 9817590d..00000000 --- a/python/pyqt/sip/qt/qtabwidget.sip +++ /dev/null @@ -1,177 +0,0 @@ -// This is the SIP interface definition for QTabWidget. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QTabWidget (Qt v2+) - -QTabWidget is fully implemented. - - -%End - - -%If (Qt_2_00 -) - -class QTabWidget : QWidget -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_0_0 -) - QTabWidget(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); -%End -%If (Qt_2_1_0 - Qt_3_0_0) - QTabWidget(QWidget * /TransferThis/,const char *,WFlags); -%End -%If (- Qt_3_0_0) - QTabWidget(QWidget * /TransferThis/ = 0,const char * = 0); -%End - - // The QWidget is passed to QWidgetStack::addWidget(). -%If (- Qt_3_0_0) - void addTab(QWidget * /Transfer/,const QString &); - void addTab(QWidget * /Transfer/,const QIconSet &,const QString &); - void addTab(QWidget * /Transfer/,QTab *); - - void insertTab(QWidget * /Transfer/,const QString &,int = -1); - void insertTab(QWidget * /Transfer/,const QIconSet &,const QString &, - int = -1); - void insertTab(QWidget * /Transfer/,QTab *,int = -1); -%End -%If (Qt_3_0_0 -) - virtual void addTab(QWidget * /Transfer/,const QString &); - virtual void addTab(QWidget * /Transfer/,const QIconSet &, - const QString &); - virtual void addTab(QWidget * /Transfer/,QTab *); - - virtual void insertTab(QWidget * /Transfer/,const QString &,int = -1); - virtual void insertTab(QWidget * /Transfer/,const QIconSet &, - const QString &,int = -1); - virtual void insertTab(QWidget * /Transfer/,QTab *,int = -1); -%End - - void changeTab(QWidget *,const QString &); - void changeTab(QWidget *,const QIconSet &,const QString &); - - bool isTabEnabled(QWidget *) const; - void setTabEnabled(QWidget *,bool); - -%If (Qt_3_2_0 -) - void setCornerWidget(QWidget *,Qt::Corner = Qt::TopRight); - QWidget *cornerWidget(Qt::Corner = Qt::TopRight) const; -%End - -%If (- Qt_3_0_0) - void showPage(QWidget *); - void removePage(QWidget *); - - QString tabLabel(QWidget *); -%End -%If (Qt_3_0_0 -) - QString tabLabel(QWidget *) const; - void setTabLabel(QWidget *,const QString &); - - QIconSet tabIconSet(QWidget *) const; - void setTabIconSet(QWidget *,const QIconSet &); - - void removeTabToolTip(QWidget *); - void setTabToolTip(QWidget *,const QString &); - QString tabToolTip(QWidget *) const; -%End - - QWidget *currentPage() const; -%If (Qt_3_0_0 -) - QWidget *page(int) const; - QString label(int) const; -%End -%If (Qt_2_2_0 -) - int currentPageIndex() const; -%End -%If (Qt_2_2_0 - Qt_3_0_0) - void setCurrentPage(int); -%End -%If (Qt_3_0_0 -) - int indexOf(QWidget *) const; -%End - - QSize sizeHint() const; - QSize minimumSizeHint() const; - - enum TabPosition { - Top, - Bottom - }; - - TabPosition tabPosition() const; - void setTabPosition(TabPosition); - -%If (Qt_2_2_0 -) - enum TabShape { - Rounded, - Triangular - }; - - TabShape tabShape() const; - void setTabShape(TabShape); -%End - - int margin() const; - void setMargin(int); - -%If (Qt_2_1_0 - Qt_3_0_0) - QSizePolicy sizePolicy() const; -%End - -%If (Qt_3_0_0 -) - int count() const; -%End - -public slots: -%If (Qt_3_0_0 -) - void setCurrentPage(int); - virtual void showPage(QWidget *); - virtual void removePage(QWidget *); -%End - -protected: - void showEvent(QShowEvent *); - void resizeEvent(QResizeEvent *); - void setTabBar(QTabBar *); - QTabBar *tabBar() const; - void styleChange(QStyle &); - void updateMask(); - bool eventFilter(QObject *,QEvent *); - -signals: -%If (Qt_2_2_0 -) - void currentChanged(QWidget *); -%End - -private: -%If (Qt_2_1_0 -) - QTabWidget(const QTabWidget &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qtextbrowser.sip b/python/pyqt/sip/qt/qtextbrowser.sip deleted file mode 100644 index f073687d..00000000 --- a/python/pyqt/sip/qt/qtextbrowser.sip +++ /dev/null @@ -1,114 +0,0 @@ -// This is the SIP interface definition for QTextBrowser. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QTextBrowser (Qt v2+) - -QTextBrowser is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QTextBrowser : QTextEdit -{ -%TypeHeaderCode -#include -%End - -public: - QTextBrowser(QWidget * /TransferThis/ = 0,const char * = 0); - - QString source() const; - -public slots: - virtual void setSource(const QString &); - virtual void backward(); - virtual void forward(); - virtual void home(); - virtual void reload(); - void setText(const QString &); - virtual void setText(const QString &,const QString &); - -signals: - void backwardAvailable(bool); - void forwardAvailable(bool); -%If (Qt_3_1_0 -) - void sourceChanged(const QString &); -%End - void highlighted(const QString &); - void linkClicked(const QString &); -%If (Qt_3_1_0 -) - void anchorClicked(const QString &,const QString &); -%End - -protected: - void keyPressEvent(QKeyEvent *); - -private: - QTextBrowser(const QTextBrowser &); -}; - -%End - -%If (Qt_2_00 - Qt_3_0_0) - -class QTextBrowser : QTextView -{ -%TypeHeaderCode -#include -%End - -public: - QTextBrowser(QWidget * /TransferThis/ = 0,const char * = 0); - - virtual void setSource(const QString &); - QString source() const; - void setText(const QString &,const QString & = QString::null); - void scrollToAnchor(const QString &); - -public slots: - virtual void backward(); - virtual void forward(); - virtual void home(); - -signals: - void backwardAvailable(bool); - void forwardAvailable(bool); - void highlighted(const QString &); - void textChanged(); - -protected: - void viewportMousePressEvent(QMouseEvent *); - void viewportMouseReleaseEvent(QMouseEvent *); - void viewportMouseMoveEvent(QMouseEvent *); - void keyPressEvent(QKeyEvent *); - -private: -%If (Qt_2_1_0 -) - QTextBrowser(const QTextBrowser &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qtextcodec.sip b/python/pyqt/sip/qt/qtextcodec.sip deleted file mode 100644 index e12661a7..00000000 --- a/python/pyqt/sip/qt/qtextcodec.sip +++ /dev/null @@ -1,146 +0,0 @@ -// This is the SIP interface definition for QTextCodec, QTextDecoder and -// QTextEncoder. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QTextCodec (Qt v2+) - - virtual QCString fromUnicode - const QString &uc - int &lenInOut - - -The returned value is a tuple of the QCString result and the -updated lenInOut. - - - -QTextDecoder (Qt v2+) - -QTextDecoder is fully implemented. - - - -QTextEncoder (Qt v2+) - - virtual QCString fromUnicode = 0 - const QString &uc - int &lenInOut - - -The returned value is a tuple of the QCString result and the -updated lenInOut. - - -%End - - -%If (Qt_2_00 -) - -class QTextEncoder -{ -%TypeHeaderCode -#include -%End - -public: - virtual QCString fromUnicode(const QString &,int & /In,Out/) = 0; -}; - - -class QTextDecoder -{ -%TypeHeaderCode -#include -%End - -public: - virtual QString toUnicode(const char *,int) = 0; -}; - - -class QTextCodec -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_CODECS) - static QTextCodec *loadCharmap(QIODevice *); - static QTextCodec *loadCharmapFile(QString); -%End - static QTextCodec *codecForMib(int); - static QTextCodec *codecForName(const char *,int = 0); - static QTextCodec *codecForContent(const char *,int); - static QTextCodec *codecForIndex(int); - static QTextCodec *codecForLocale(); -%If (Qt_3_0_0 -) - static void setCodecForLocale(QTextCodec *); -%End - -%If (Qt_3_1_0 -) - static QTextCodec *codecForTr(); - static void setCodecForTr(QTextCodec *); - static QTextCodec *codecForCStrings(); - static void setCodecForCStrings(QTextCodec *); -%End - - static void deleteAllCodecs(); - - static const char *locale(); - - virtual const char *name() const = 0; -%If (Qt_3_0_0 -) - virtual const char *mimeName() const; -%End - virtual int mibEnum() const = 0; - - virtual QTextDecoder *makeDecoder() const /Factory/; - virtual QTextEncoder *makeEncoder() const /Factory/; - - virtual QString toUnicode(const char *,int) const; - virtual QCString fromUnicode(const QString &,int & /In,Out/) const; - QCString fromUnicode(const QString &) const; - QString toUnicode(const QByteArray &,int) const; - QString toUnicode(const QByteArray &) const; -%If (Qt_3_0_0 -) - QString toUnicode(const QCString &,int) const; - QString toUnicode(const QCString &) const; -%End - QString toUnicode(const char *) const; - virtual bool canEncode(QChar) const; - virtual bool canEncode(const QString &) const; - - virtual int heuristicContentMatch(const char *,int) const = 0; - virtual int heuristicNameMatch(const char *) const; - -%If (Qt_3_0_0 -) - virtual QByteArray fromUnicode(const QString &,int,int) const; - virtual unsigned short characterFromUnicode(const QString &,int) const; -%End - -protected: - QTextCodec(); -}; - -%End diff --git a/python/pyqt/sip/qt/qtextedit.sip b/python/pyqt/sip/qt/qtextedit.sip deleted file mode 100644 index 912c773e..00000000 --- a/python/pyqt/sip/qt/qtextedit.sip +++ /dev/null @@ -1,437 +0,0 @@ -// This is the SIP interface definition for QTextEdit. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QTextEdit (Qt v3+) - -int charAt - const QPoint &pos - int *para = 0 - - -This takes only the pos parameter and returns a tuple of the -value returned via the para pointer and the int result. - - - - void del - - - -This has been renamed delChar in Python. - - - -virtual bool find - const QString &expr - bool cs - bool wo - bool forward = TRUE - int *para = 0 - int *index = 0 - - -If the para and index parameters are -omitted then the bool result is returned. If both are supplied (as integers) -then a tuple of the bool result and the modified values of -para and index is returned. - - - -void getCursorPosition - int *para - int *index - - -This takes no parameters and returns a tuple of the values returned via the -para and index pointers. - - - -void getSelection - int *paraFrom - int *indexFrom - int *paraTo - int *indexTo - int selNum = 0 - - -This takes only the selNum parameter and returns a tuple of -the paraFrom, indexFrom, -paraTo and indexTo values. - - -%End - - -%If (Qt_3_0_0 -) - -// These aren't part of the public API in the Qt3 beta, so define them as -// opaque for the moment. - -class QTextDocument; -class QTextCursor; - - -class QTextEdit : QScrollView -{ -%TypeHeaderCode -#include -%End - -public: - enum WordWrap { - NoWrap, - WidgetWidth, - FixedPixelWidth, - FixedColumnWidth - }; - - enum WrapPolicy { - AtWordBoundary, - Anywhere, - AtWhiteSpace, -%If (Qt_3_1_0 -) - AtWordOrDocumentBoundary -%End - }; - -%If (Qt_3_1_0 -) - enum AutoFormatting { - AutoNone, - AutoBulletList, - AutoAll - }; -%End - - enum KeyboardAction { - ActionBackspace, - ActionDelete, - ActionReturn, - ActionKill, -%If (Qt_3_1_0 -) - ActionWordBackspace, - ActionWordDelete -%End - }; - - enum CursorAction { - MoveBackward, - MoveForward, - MoveWordBackward, - MoveWordForward, - MoveUp, - MoveDown, - MoveLineStart, - MoveLineEnd, - MoveHome, - MoveEnd, - MovePgUp, - MovePgDown - }; - - enum VerticalAlignment { - AlignNormal, - AlignSuperScript, - AlignSubScript - }; - -%If (Qt_3_1_0 -) - enum TextInsertionFlags { - RedoIndentation, - CheckNewLines, - RemoveSelected - }; -%End - - QTextEdit(const QString &,const QString & = QString::null, - QWidget * /TransferThis/ = 0,const char * = 0); - QTextEdit(QWidget * /TransferThis/ = 0,const char * = 0); - - void setPalette(const QPalette &); - - QString text() const; - QString text(int) const; - TextFormat textFormat() const; - QString context() const; - QString documentTitle() const; - - void getSelection(int *,int *,int *,int *,int = 0) const; - - // We implement find() as two separate methods as it's the easiest way - // to handle the somewhat strange Qt interface. - virtual bool find(const QString &,bool,bool,bool = 1); - virtual bool find(const QString &,bool,bool,bool,int * /In,Out/, - int * /In,Out/); - - int paragraphs() const; - int lines() const; - int linesOfParagraph(int) const; - int lineOfChar(int,int); - int length() const; - QRect paragraphRect(int) const; - int paragraphAt(const QPoint &) const; - - // Note that this is handwritten code because the generated code would - // return the values in the (correct but) reverse order. - SIP_PYTUPLE charAt(const QPoint &) const; -%MethodCode - int para, index; - - Py_BEGIN_ALLOW_THREADS - index = sipCpp -> QTextEdit::charAt(*a0,¶); - Py_END_ALLOW_THREADS - - sipRes = sipBuildResult(&sipIsErr,"(ii)",para,index); -%End - - int paragraphLength(int) const; - - QStyleSheet *styleSheet() const; - QMimeSourceFactory *mimeSourceFactory() const; - - QBrush paper() const; - bool linkUnderline() const; - - int heightForWidth(int) const; - - bool hasSelectedText() const; - QString selectedText() const; - bool isUndoAvailable() const; - bool isRedoAvailable() const; - - WordWrap wordWrap() const; - int wrapColumnOrWidth() const; - WrapPolicy wrapPolicy() const; - - int tabStopWidth() const; - - QString anchorAt(const QPoint &); -%If (Qt_3_1_0 -) - QString anchorAt(const QPoint &,AnchorAttribute); -%End - - QSize sizeHint() const; - - bool isReadOnly() const; - - void getCursorPosition(int *,int *) const; - - bool isModified() const; - bool italic() const; - bool bold() const; - bool underline() const; - QString family() const; - int pointSize() const; - QColor color() const; - QFont font() const; -%If (Qt_3_1_0 -) - QFont currentFont() const; -%End - int alignment() const; - int undoDepth() const; - - // These are undocumented and marked as "don't use". - //virtual bool getFormat(int,int,QFont *,QColor *,VerticalAlignment *); - //virtual bool getParagraphFormat(int,QFont *,QColor *, - // VerticalAlignment *,int *, - // QStyleSheetItem::DisplayMode *, - // QStyleSheetItem::ListStyle *, - // int *); - - bool isOverwriteMode() const; - QColor paragraphBackgroundColor(int) const; - - bool isUndoRedoEnabled() const; - bool eventFilter(QObject *,QEvent *); -%If (Qt_3_1_0 -) - bool tabChangesFocus() const; - - // Qt defines the following as uint rather than int because it uses the - // AutoFormatting enum as a set of flags. Because SIP implements enums - // as a subclass of int they are always signed. AutoAll is defined as - // 0xffffffff which Python converts to -1 and then fails to convert it - // to an unsigned. For the moment we just lie to SIP about the type - // and let the compiler handle it. - void setAutoFormatting(int); - int autoFormatting() const; -%End -%If (Qt_3_3_0 -) - QSyntaxHighlighter *syntaxHighlighter() const; -%End - -public slots: - void setEnabled(bool); - virtual void setMimeSourceFactory(QMimeSourceFactory *); - virtual void setStyleSheet(QStyleSheet *); - virtual void scrollToAnchor(const QString &); - virtual void setPaper(const QBrush &); - virtual void setLinkUnderline(bool); - - virtual void setWordWrap(WordWrap); - virtual void setWrapColumnOrWidth(int); - virtual void setWrapPolicy(WrapPolicy); - - virtual void copy(); - virtual void append(const QString &); - - void setText(const QString &); - virtual void setText(const QString &,const QString &); - virtual void setTextFormat(TextFormat); - - virtual void selectAll(bool = 1); - virtual void setTabStopWidth(int); - virtual void zoomIn(int); - virtual void zoomIn(); - virtual void zoomOut(int); - virtual void zoomOut(); - virtual void zoomTo(int); - - virtual void sync(); - virtual void setReadOnly(bool); - - virtual void undo(); - virtual void redo(); - virtual void cut(); - virtual void paste(); - virtual void pasteSubType(const QCString &); - virtual void clear(); - virtual void del() /PyName=delChar/; - virtual void indent(); - virtual void setItalic(bool); - virtual void setBold(bool); - virtual void setUnderline(bool); - virtual void setFamily(const QString &); - virtual void setPointSize(int); - virtual void setColor(const QColor &); - virtual void setFont(const QFont &); - virtual void setVerticalAlignment(VerticalAlignment); - virtual void setAlignment(int); - virtual void setParagType(QStyleSheetItem::DisplayMode, - QStyleSheetItem::ListStyle); - virtual void setCursorPosition(int,int); - virtual void setSelection(int,int,int,int,int = 0); - virtual void setSelectionAttributes(int,const QColor &,bool); - virtual void setModified(bool); - virtual void resetFormat(); - virtual void setUndoDepth(int); -// Marked as internal in the Qt3 beta. -// virtual void setFormat(QTextFormat *,int); - virtual void ensureCursorVisible(); - virtual void placeCursor(const QPoint &,QTextCursor * = 0); - virtual void moveCursor(CursorAction,bool); - virtual void doKeyboardAction(KeyboardAction); - virtual void removeSelectedText(int = 0); - virtual void removeSelection(int = 0); - virtual void setCurrentFont(const QFont &); - virtual void setOverwriteMode(bool); - - virtual void scrollToBottom(); - -%If (Qt_3_1_0 -) - void insert(const QString &,uint = CheckNewLines | RemoveSelected); - virtual void insert(const QString &,bool,bool = 1,bool = 1); -%End -%If (- Qt_3_1_0) - virtual void insert(const QString &,bool = 0,bool = 1,bool = 1); -%End - virtual void insertAt(const QString &,int,int); - virtual void removeParagraph(int); - virtual void insertParagraph(const QString &,int); - - virtual void setParagraphBackgroundColor(int,const QColor &); - virtual void clearParagraphBackground(int); - - virtual void setUndoRedoEnabled(bool); -%If (Qt_3_1_0 -) - void setTabChangesFocus(bool); - - void polish(); -%End -%If (Qt_3_2_0 -) - void setMaxLogLines(int); - int maxLogLines(); -%End - -signals: - void textChanged(); - void selectionChanged(); - void copyAvailable(bool); - void undoAvailable(bool); - void redoAvailable(bool); - void currentFontChanged(const QFont &); - void currentColorChanged(const QColor &); - void currentAlignmentChanged(int); - void currentVerticalAlignmentChanged(VerticalAlignment); - void cursorPositionChanged(QTextCursor *); - void cursorPositionChanged(int,int); - void returnPressed(); - void modificationChanged(bool); -%If (Qt_3_1_0 -) - void clicked(int,int); - void doubleClicked(int,int); -%End - -protected: - void repaintChanged(); - void updateStyles(); - void drawContents(QPainter *,int,int,int,int); - bool event(QEvent *); - void keyPressEvent(QKeyEvent *); - void resizeEvent(QResizeEvent *); - void viewportResizeEvent(QResizeEvent *); - void contentsMousePressEvent(QMouseEvent *); - void contentsMouseMoveEvent(QMouseEvent *); - void contentsMouseReleaseEvent(QMouseEvent *); - void contentsMouseDoubleClickEvent(QMouseEvent *); - void contentsWheelEvent(QWheelEvent *); - void imStartEvent(QIMEvent *); - void imComposeEvent(QIMEvent *); - void imEndEvent(QIMEvent *); - void contentsDragEnterEvent(QDragEnterEvent *); - void contentsDragMoveEvent(QDragMoveEvent *); - void contentsDragLeaveEvent(QDragLeaveEvent *); - void contentsDropEvent(QDropEvent *); - void contentsContextMenuEvent(QContextMenuEvent *); - bool focusNextPrevChild(bool); - QTextDocument *document() const; - QTextCursor *textCursor() const; - void setDocument(QTextDocument *); - virtual QPopupMenu *createPopupMenu(const QPoint &) /Factory/; - virtual QPopupMenu *createPopupMenu() /Factory/; - void drawCursor(bool); - - void windowActivationChange(bool); - -protected slots: - virtual void doChangeInterval(); -%If (Qt_3_1_0 -) - void sliderReleased(); -%End - -private: -%If (Qt_3_1_0 -) - QTextEdit(const QTextEdit &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qtextstream.sip b/python/pyqt/sip/qt/qtextstream.sip deleted file mode 100644 index 9470134e..00000000 --- a/python/pyqt/sip/qt/qtextstream.sip +++ /dev/null @@ -1,231 +0,0 @@ -// This is the SIP interface definition for QTextStream, QTextIStream and -// QTextOStream. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QTextStream - - QTextStream - FILE *fp - int mode - - -Not implemented. - - - - QTextStream &readRawBytes - char *buf - uint len - - -Not yet implemented. - - - - QTextStream &writeRawBytes - const char *buf - uint len - - -Not yet implemented. - - - -QTextIStream (Qt v2+) - - QTextIStream - FILE *fp - int mode - - -Not implemented. - - - -QTextOStream (Qt v2+) - - QTextOStream - FILE *fp - int mode - - -Not implemented. - - -%End - - -class QTextStream -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_2_00 - Qt_2_2_0) - enum Encoding { - Locale, - Latin1, - Unicode, - UnicodeNetworkOrder, - UnicodeReverse, - RawUnicode - }; -%End -%If (Qt_2_2_0 -) - enum Encoding { - Locale, - Latin1, - Unicode, - UnicodeNetworkOrder, - UnicodeReverse, - RawUnicode, - UnicodeUTF8 - }; -%End - - QTextStream(); - QTextStream(QIODevice *); -%If (Qt_2_00 -) - QTextStream(QString *,int); -%End - QTextStream(QByteArray,int); -// QTextStream(FILE *,int); - -%If (Qt_2_00 -) - void setEncoding(Encoding); - void setCodec(QTextCodec *); -%End -%If (Qt_3_1_0 -) - QTextCodec *codec(); -%End - - QIODevice *device() const; - void setDevice(QIODevice *); - void unsetDevice(); - -%If (Qt_2_00 -) - bool atEnd() const; -%End - bool eof() const; - -// QTextStream &readRawBytes(char *,uint) /ReleaseGIL/; -// QTextStream &writeRawBytes(const char *,uint) /ReleaseGIL/; - - QString readLine() /ReleaseGIL/; -%If (Qt_2_00 -) - QString read() /ReleaseGIL/; - void skipWhiteSpace(); -%End - - enum { - skipws, - left, - right, - internal, - bin, - oct, - dec, - hex, - showbase, - showpoint, - uppercase, - showpos, - scientific, - fixed - }; - - static const int basefield; - static const int adjustfield; - static const int floatfield; - - int flags() const; - int flags(int); - int setf(int); - int setf(int,int); - int unsetf(int); - - void reset(); - - int width() const; - int width(int); - int fill() const; - int fill(int); - int precision() const; - int precision(int); - -%If (Qt_3_0_0 -) - // These are defined in qmainwindow.h as global operators so we have - // to implement them here and pretend they are class operators. - QTextStream &operator<<(const QMainWindow &); - QTextStream &operator>>(QMainWindow &); - - // These are defined in qdockarea.h as global operators so we have - // to implement them here and pretend they are class operators. - QTextStream &operator<<(const QDockArea &); - QTextStream &operator>>(QDockArea &); -%End - -private: - QTextStream(const QTextStream &); -}; - - -%If (Qt_2_00 -) - -class QTextIStream : QTextStream -{ -%TypeHeaderCode -#include -%End - -public: - QTextIStream(QString *); - QTextIStream(QByteArray); -// QTextIStream(FILE *); - -private: -%If (Qt_3_1_0 -) - QTextIStream(const QTextIStream &); -%End -}; - - -class QTextOStream : QTextStream -{ -%TypeHeaderCode -#include -%End - -public: - QTextOStream(QString *); - QTextOStream(QByteArray); -// QTextOStream(FILE *); - -private: -%If (Qt_3_1_0 -) - QTextOStream(const QTextOStream &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qtextview.sip b/python/pyqt/sip/qt/qtextview.sip deleted file mode 100644 index 0eb83a28..00000000 --- a/python/pyqt/sip/qt/qtextview.sip +++ /dev/null @@ -1,128 +0,0 @@ -// This is the SIP interface definition for QTextView. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QTextView (Qt v2+) - -QTextView is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QTextView : QTextEdit -{ -%TypeHeaderCode -#include -%End - -public: - QTextView(QWidget * /TransferThis/ = 0,const char * = 0); - QTextView(const QString &,const QString & = QString::null, - QWidget * /TransferThis/ = 0,const char * = 0); - -private: -%If (Qt_3_1_0 -) - QTextView(const QTextView &); -%End -}; - -%End - - -%If (Qt_2_00 - Qt_3_0_0) - -class QTextView : QScrollView -{ -%TypeHeaderCode -#include -%End - -public: - QTextView(QWidget * /TransferThis/ = 0,const char * = 0); - QTextView(const QString &,const QString & = QString::null, - QWidget * /TransferThis/ = 0,const char * = 0); - -%If (- Qt_2_1_0) - virtual void setText(const QString &,const QString & = QString::null); -%End -%If (Qt_2_1_0 -) - virtual void setText(const QString &,const QString &); - void setText(const QString &); -%End - virtual QString text() const; - virtual QString context() const; - Qt::TextFormat textFormat() const; - void setTextFormat(Qt::TextFormat); - QStyleSheet *styleSheet() const; - void setStyleSheet(QStyleSheet *); - void setPaper(const QBrush &); - const QBrush &paper(); - void setPaperColorGroup(const QColorGroup &); - const QColorGroup &paperColorGroup() const; - void setLinkColor(const QColor &); - const QColor &linkColor() const; - void setLinkUnderline(bool); - bool linkUnderline() const; - void setMimeSourceFactory(QMimeSourceFactory *); - QMimeSourceFactory *mimeSourceFactory() const; - QString documentTitle() const; - int heightForWidth(int) const; -%If (Qt_2_1_0 -) - void append(const QString &); - bool hasSelectedText() const; - QString selectedText() const; -%End - -public slots: -%If (Qt_2_1_0 -) -%If (Qt_CLIPBOARD) - void copy(); -%End - void selectAll(); -%End - -protected: - void drawContentsOffset(QPainter *,int,int,int,int,int,int); - void resizeEvent(QResizeEvent *); - void viewportResizeEvent(QResizeEvent *); - void viewportMousePressEvent(QMouseEvent *); - void viewportMouseReleaseEvent(QMouseEvent *); - void viewportMouseMoveEvent(QMouseEvent *); - void keyPressEvent(QKeyEvent *); -%If (Qt_2_1_0 -) - void showEvent(QShowEvent *); - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); -%End -// QRichText &richText() const; - void paletteChange(const QPalette &); - -private: -%If (Qt_2_1_0 -) - QTextView(const QTextView &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qthread.sip b/python/pyqt/sip/qt/qthread.sip deleted file mode 100644 index 839622af..00000000 --- a/python/pyqt/sip/qt/qthread.sip +++ /dev/null @@ -1,98 +0,0 @@ -// This is the SIP interface definition for QThread. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QThread (Qt v2.2+) - -QThread is fully implemented. - - -%End - - -%If (Qt_THREAD_SUPPORT) -%If (Qt_2_2_0 -) - -class QThread : Qt /CreatesThread/ -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_3_0_0) - static HANDLE currentThread(); -%End -%If (Qt_3_0_0 -) - static Qt::HANDLE currentThread(); -%End - static void postEvent(QObject *,QEvent * /Transfer/) /ReleaseGIL/; -%If (Qt_3_0_0 -) - static void initialize(); - static void cleanup(); -%End - - static void exit() /ReleaseGIL/; - -%If (Qt_3_1_0 -) - QThread(unsigned int); -%End - QThread(); - - bool wait(unsigned long = ULONG_MAX) /ReleaseGIL/; - -%If (Qt_3_2_0 -) - enum Priority { - IdlePriority, - LowestPriority, - LowPriority, - NormalPriority, - HighPriority, - HighestPriority, - TimeCriticalPriority, - InheritPriority - }; - - void start(Priority) /ReleaseGIL/; -%End - void start() /ReleaseGIL/; - -%If (Qt_3_1_0 -) - void terminate(); -%End - - bool finished() const; - bool running() const; - -protected: - virtual void run() = 0 /NewThread/; - - static void sleep(unsigned long) /ReleaseGIL/; - static void msleep(unsigned long) /ReleaseGIL/; - static void usleep(unsigned long) /ReleaseGIL/; - -private: - QThread(const QThread &); -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qtimer.sip b/python/pyqt/sip/qt/qtimer.sip deleted file mode 100644 index 4d619dae..00000000 --- a/python/pyqt/sip/qt/qtimer.sip +++ /dev/null @@ -1,59 +0,0 @@ -// This is the SIP interface definition for QTimer. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QTimer - -QTimer is fully implemented. - - -%End - - -class QTimer : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QTimer(QObject * /TransferThis/ = 0,char * = 0); - - bool isActive() const; - int start(int,bool = 0); - void changeInterval(int); - void stop(); - static void singleShot(int,SIP_RXOBJ_CON,SIP_SLOT_CON()); - -%If (Qt_3_1_0 -) - int timerId() const; -%End - -signals: - void timeout(); - -protected: - bool event(QEvent *); - -private: - QTimer(const QTimer &); -}; diff --git a/python/pyqt/sip/qt/qtmod.sip b/python/pyqt/sip/qt/qtmod.sip deleted file mode 100644 index 76abde4c..00000000 --- a/python/pyqt/sip/qt/qtmod.sip +++ /dev/null @@ -1,282 +0,0 @@ -// This is the SIP interface definition for the qt module of PyQt. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Module qt 2 - -%Include versions.sip -%Include copying.sip - - -unsigned PYQT_VERSION; -const char *PYQT_VERSION_STR; - -%ModuleCode -static unsigned PYQT_VERSION = 0x031102; -static const char *PYQT_VERSION_STR = "3.17.2"; -%End - - -// Hook into the VendorID package if it is enabled. -%Feature VendorID - -%If (VendorID) - -%ModuleCode -#include -%End - -%PreInitialisationCode - if (!vendorid_check()) - { - PyErr_SetString(PyExc_RuntimeError, "PyQt cannot be used with this Python interpreter"); - return; - } -%End - -%End - - -// Include the interface definitions for each class. - -// These contain enum and type definitions that need to be defined before they -// are used so they do not seem to be classes. - -%Include qglobal.sip -%Include qnamespace.sip -%Include qwindowdefs.sip -%Include qpen.sip - -%Include qpaintdevice.sip - -%Include qpixmap.sip -%Include qbitmap.sip - -%Include qsize.sip -%Include qsizepolicy.sip - -%Include qaccel.sip -%Include qaction.sip -%Include qapplication.sip -%Include qarray.sip -%Include qassistantclient.sip -%Include qbrush.sip -%Include qbutton.sip -%Include qbuttongroup.sip -%Include qbytearray.sip -%Include qcdestyle.sip -%Include qcheckbox.sip -%Include qclipboard.sip -%Include qcolor.sip -%Include qcolordialog.sip -%Include qcolorgroup.sip -%Include qcombobox.sip -%Include qcommonstyle.sip -%Include qcstring.sip -%Include qcursor.sip -%Include qdatastream.sip -%Include qdatetime.sip -%Include qdatetimeedit.sip -%Include qdesktopwidget.sip -%Include qdial.sip -%Include qdialog.sip -%Include qdir.sip -%Include qdockarea.sip -%Include qdockwindow.sip -%Include qdragobject.sip -%Include qdrawutil.sip -%Include qdropsite.sip -%Include qerrormessage.sip -%Include qevent.sip -%Include qeventloop.sip -%Include qfile.sip -%Include qfiledialog.sip -%Include qfileinfo.sip -%Include qfont.sip -%Include qfontdatabase.sip -%Include qfontdialog.sip -%Include qfontinfo.sip -%Include qfontmetrics.sip -%Include qframe.sip -%Include qgmanager.sip -%Include qgrid.sip -%Include qgridview.sip -%Include qgroupbox.sip -%Include qhbox.sip -%Include qhbuttongroup.sip -%Include qheader.sip -%Include qhgroupbox.sip -%Include qiconset.sip -%Include qiconview.sip -%Include qimage.sip -%Include qinputdialog.sip -%Include qinterlacestyle.sip -%Include qiodevice.sip -%Include qkeycode.sip -%Include qkeysequence.sip -%Include qlabel.sip -%Include qlayout.sip -%Include qlcdnumber.sip -%Include qlibrary.sip -%Include qlineedit.sip -%Include qlist.sip -%Include qlistbox.sip -%Include qlistview.sip -%Include qlocale.sip -%Include qmainwindow.sip -%Include qmemarray.sip -%Include qmenubar.sip -%Include qmenudata.sip -%Include qmessagebox.sip -%Include qmetaobject.sip -%Include qmime.sip -%Include qmotifplusstyle.sip -%Include qmotifstyle.sip -%Include qmovie.sip -%Include qmutex.sip -%Include qmultilinedit.sip -%Include qnetworkprotocol.sip -%Include qobject.sip -%Include qobjectcleanuphandler.sip -%Include qobjectlist.sip -%Include qpaintdevicemetrics.sip -%Include qpainter.sip -%Include qpair.sip -%Include qpalette.sip -%Include qpicture.sip -%Include qpixmapcache.sip -%Include qplatinumstyle.sip -%Include qpoint.sip -%Include qpointarray.sip -%Include qpopupmenu.sip -%Include qprintdialog.sip -%Include qprinter.sip -%Include qprocess.sip -%Include qprogressbar.sip -%Include qprogressdialog.sip -%Include qptrlist.sip -%Include qpushbutton.sip -%Include qradiobutton.sip -%Include qrangecontrol.sip -%Include qrect.sip -%Include qregexp.sip -%Include qregion.sip -%Include qscrollbar.sip -%Include qscrollview.sip -%Include qsemaphore.sip -%Include qsemimodal.sip -%Include qsessionmanager.sip -%Include qsettings.sip -%Include qsgistyle.sip -%Include qsignalmapper.sip -%Include qsimplerichtext.sip -%Include qsizegrip.sip -%Include qslider.sip -%Include qsocketnotifier.sip -%Include qsound.sip -%Include qspinbox.sip -%Include qsplashscreen.sip -%Include qsplitter.sip -%Include qstatusbar.sip -%Include qstring.sip -%Include qstringlist.sip -%Include qstrlist.sip -%Include qstyle.sip -%Include qstylefactory.sip -%Include qstylesheet.sip -%Include qsyntaxhighlighter.sip -%Include qtabbar.sip -%Include qtabdialog.sip -%Include qtableview.sip -%Include qtabwidget.sip -%Include qtextbrowser.sip -%Include qtextcodec.sip -%Include qtextedit.sip -%Include qtextstream.sip -%Include qtextview.sip -%Include qthread.sip -%Include qtimer.sip -%Include qtoolbar.sip -%Include qtoolbox.sip -%Include qtoolbutton.sip -%Include qtooltip.sip -%Include qtranslator.sip -%Include qurl.sip -%Include qurlinfo.sip -%Include qurloperator.sip -%Include quuid.sip -%Include qvalidator.sip -%Include qvaluelist.sip -%Include qvariant.sip -%Include qvbox.sip -%Include qvbuttongroup.sip -%Include qvgroupbox.sip -%Include qwaitcondition.sip -%Include qwhatsthis.sip -%Include qwidget.sip -%Include qwidgetlist.sip -%Include qwidgetstack.sip -%Include qwindow.sip -%Include qwindowsstyle.sip -%Include qwindowsxpstyle.sip -%Include qwizard.sip -%Include qwmatrix.sip -%Include qworkspace.sip - - -// The build file templates. - -%Makefile qt.pro.in -# The project file for the qt module. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -TEMPLATE = lib -TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ -INCLUDEPATH = @BLX_INCLUDEPATH@ -DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QASSISTANTCLIENT_LIB@ @BLX_LIBS@ -macx:QMAKE_LFLAGS += -framework Python - -SOURCES = $B - -HEADERS = $H -%End diff --git a/python/pyqt/sip/qt/qtoolbar.sip b/python/pyqt/sip/qt/qtoolbar.sip deleted file mode 100644 index 019dc867..00000000 --- a/python/pyqt/sip/qt/qtoolbar.sip +++ /dev/null @@ -1,160 +0,0 @@ -// This is the SIP interface definition for QToolBar. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QToolBar - -QToolBar is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QToolBar : QDockWindow -{ -%TypeHeaderCode -#include -%End - -public: - QToolBar(const QString &,QMainWindow * /TransferThis/,Dock = DockTop, - bool = 0,const char * = 0); - QToolBar(const QString &,QMainWindow *,QWidget * /TransferThis/, - bool = 0,const char * = 0,WFlags = 0); - QToolBar(QMainWindow * /TransferThis/ = 0,const char * = 0); - - void addSeparator(); - - void show(); - void hide(); - - QMainWindow *mainWindow() const; - - virtual void setStretchableWidget(QWidget *); - - bool event(QEvent *); - - virtual void setLabel(const QString &); - QString label() const; - - virtual void clear(); - - QSize minimumSize() const; - QSize minimumSizeHint() const; - - void setOrientation(Orientation); - void setMinimumSize(int,int); - -protected: - void resizeEvent(QResizeEvent *); - void styleChange(QStyle &); - -private: - QToolBar(const QToolBar &); -}; - -%End - - -%If (- Qt_3_0_0) - -class QToolBar : QWidget -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_2_00) - QToolBar(const char *,QMainWindow * /TransferThis/, - QMainWindow::ToolBarDock = QMainWindow::Top, - bool = 0,const char * = 0); - QToolBar(const char *,QMainWindow *,QWidget * /TransferThis/,bool = 0, - const char * = 0,WFlags = 0); -%End -%If (Qt_2_00 -) - QToolBar(const QString &,QMainWindow * /TransferThis/, - QMainWindow::ToolBarDock = QMainWindow::Top,bool = 0, - const char * = 0); - QToolBar(const QString &,QMainWindow *,QWidget * /TransferThis/,bool = 0, - const char * = 0,WFlags = 0); -%End - QToolBar(QMainWindow * /TransferThis/ = 0,const char * = 0); - - void addSeparator(); - -%If (- Qt_2_00) - enum Orientation - { - Horizontal, - Vertical - }; -%End - - virtual void setOrientation(Orientation); - Orientation orientation() const; - void show(); - QMainWindow *mainWindow(); - bool event(QEvent *); -%If (- Qt_2_00) - void setStretchableWidget(QWidget *); -%End -%If (Qt_2_00 -) - virtual void setStretchableWidget(QWidget *); - bool eventFilter(QObject *,QEvent *); - virtual void setLabel(const QString &); - QString label() const; -%End -%If (Qt_2_1_0 -) - void hide(); - void setHorizontalStretchable(bool); - void setVerticalStretchable(bool); - bool isHorizontalStretchable() const; - bool isVerticalStretchable() const; - void clear(); - QSize minimumSize() const; - QSize minimumSizeHint() const; -%End - -protected: - void paintEvent(QPaintEvent *); -%If (Qt_2_1_0 -) - void resizeEvent(QResizeEvent *); -%End -%If (Qt_2_3_0 -) - void styleChange(QStyle &); -%End - -signals: -%If (Qt_2_1_0 -) - void orientationChanged(Orientation); -%End - -private: -%If (Qt_2_1_0 -) - QToolBar(const QToolBar &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qtoolbox.sip b/python/pyqt/sip/qt/qtoolbox.sip deleted file mode 100644 index 06c13ed8..00000000 --- a/python/pyqt/sip/qt/qtoolbox.sip +++ /dev/null @@ -1,88 +0,0 @@ -// This is the SIP interface definition for QToolBox. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QToolBox (Qt v3.2.0+) - -QToolBox is fully implemented. - - -%End - - -%If (Qt_3_2_0 -) - -class QToolBox : QFrame -{ -%TypeHeaderCode -#include -%End - -public: - QToolBox(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - ~QToolBox(); - - int addItem(QWidget * /Transfer/,const QString &); - int addItem(QWidget * /Transfer/,const QIconSet &,const QString &); - int insertItem(int,QWidget * /Transfer/,const QString &); - int insertItem(int,QWidget * /Transfer/,const QIconSet &, - const QString &); - - // On return the QWidget will have the QToolBox as it's parent, so we - // don't transfer ownership back. - int removeItem(QWidget *); - - void setItemEnabled(int,bool); - bool isItemEnabled(int) const; - - void setItemLabel(int,const QString &); - QString itemLabel(int) const; - - void setItemIconSet(int,const QIconSet &); - QIconSet itemIconSet(int) const; - - void setItemToolTip(int,const QString &); - QString itemToolTip(int) const; - - QWidget *currentItem() const; - void setCurrentItem(QWidget *); - - int currentIndex() const; - QWidget *item(int) const; - int indexOf(QWidget *) const; - int count() const; - -public slots: - void setCurrentIndex(int); - -signals: - void currentChanged(int); - -protected: - virtual void itemInserted(int); - virtual void itemRemoved(int); - void showEvent(QShowEvent *); - void frameChanged(); - void styleChange(QStyle &); -}; - -%End diff --git a/python/pyqt/sip/qt/qtoolbutton.sip b/python/pyqt/sip/qt/qtoolbutton.sip deleted file mode 100644 index 34d9d10a..00000000 --- a/python/pyqt/sip/qt/qtoolbutton.sip +++ /dev/null @@ -1,199 +0,0 @@ -// This is the SIP interface definition for QToolButton. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QToolButton - -QToolButton is fully implemented. - - -%End - - -class QToolButton : QButton -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_1_0 -) - enum TextPosition { -%If (Qt_3_2_0 -) - BesideIcon, - BelowIcon, -%End - Right, // Obsolete - Under // Obsolete - }; -%End - -%If (- Qt_2_00) - QToolButton(QWidget * /TransferThis/ = 0,const char * = 0); - QToolButton(const QPixmap &,const char *,const char *,SIP_RXOBJ_CON, - SIP_SLOT_CON(),QToolBar * /TransferThis/,const char * = 0); - QToolButton(QIconSet,const char *,const char *,SIP_RXOBJ_CON, - SIP_SLOT_CON(),QToolBar * /TransferThis/,const char * = 0); -%End -%If (Qt_2_00 -) - QToolButton(QWidget * /TransferThis/,const char * = 0); -%End -%If (Qt_2_00 - Qt_3_0_0) - QToolButton(const QPixmap &,const QString &,const QString &, - SIP_RXOBJ_CON,SIP_SLOT_CON(),QToolBar * /TransferThis/, - const char * = 0); -%End -%If (Qt_2_00 -) - QToolButton(const QIconSet &,const QString &,const QString &, - SIP_RXOBJ_CON,SIP_SLOT_CON(),QToolBar * /TransferThis/, - const char * = 0); -%End -%If (Qt_2_1_0 -) - QToolButton(ArrowType,QWidget * /TransferThis/,const char * = 0); -%End - - QSize sizeHint() const; -%If (Qt_3_0_0 -) - QSize minimumSizeHint() const; -%End -%If (Qt_2_00 - Qt_3_0_0) - QSizePolicy sizePolicy() const; -%End - -%If (Qt_2_1_0 - Qt_3_0_0) - void setOnIconSet(const QIconSet &); - void setOffIconSet(const QIconSet &); -%End -%If (- Qt_2_00) - void setIconSet(const QIconSet &); -%End -%If (Qt_2_00 - Qt_3_0_0) - virtual void setIconSet(const QIconSet &,bool = 0); -%End -%If (Qt_2_1_0 - Qt_3_0_0) - QIconSet onIconSet() const; - QIconSet offIconSet() const; -%End -%If (- Qt_2_00) - QIconSet iconSet() const; -%End -%If (Qt_2_00 - Qt_3_0_0) - QIconSet iconSet(bool = 0) const; -%End -%If (Qt_3_0_0 -) - virtual void setIconSet(const QIconSet &); - QIconSet iconSet() const; -%End - - bool usesBigPixmap() const; - bool usesTextLabel() const; -%If (- Qt_2_00) - const char *textLabel() const; -%End -%If (Qt_2_00 -) - QString textLabel() const; -%End - -%If (Qt_2_1_0 -) - void setPopup(QPopupMenu *); - QPopupMenu* popup() const; - - void setPopupDelay(int); - int popupDelay() const; -%End - -%If (Qt_3_0_0 -) - void openPopup(); -%End - -%If (Qt_2_1_0 -) - void setAutoRaise(bool); - bool autoRaise() const; -%End -%If (Qt_3_1_0 -) - TextPosition textPosition() const; -%End - -%If (Qt_3_2_0 -) - void setText(const QString &); -%End - -public slots: - virtual void setUsesBigPixmap(bool); - virtual void setUsesTextLabel(bool); -%If (- Qt_2_00) - virtual void setTextLabel(const char *,bool = 1); -%End -%If (Qt_2_00 - Qt_3_0_0) - virtual void setTextLabel(const QString &,bool = 1); -%End -%If (Qt_3_0_0 -) - virtual void setTextLabel(const QString &,bool); -%End - -%If (- Qt_2_00) - void setToggleButton(bool); -%End -%If (Qt_2_00 -) - virtual void setToggleButton(bool); -%End - -%If (- Qt_2_00) - void setOn(bool); -%End -%If (Qt_2_00 -) - virtual void setOn(bool); -%End - void toggle(); -%If (Qt_3_0_0 -) - // This was actually introduced in Qt v2.1.0 but gives signature - // conflict until Qt v3.0.0. - void setTextLabel(const QString &); -%End -%If (Qt_3_1_0 -) - void setTextPosition(TextPosition); -%End - -protected: -%If (Qt_3_0_0 -) - void mousePressEvent(QMouseEvent *); -%End - void drawButton(QPainter *); - void drawButtonLabel(QPainter *); - - void enterEvent(QEvent *); - void leaveEvent(QEvent *); -%If (Qt_2_1_0 -) - void moveEvent(QMoveEvent *); -%End - - bool uses3D() const; - -%If (Qt_3_0_0 -) - bool eventFilter(QObject *,QEvent *); -%End - -private: -%If (Qt_2_1_0 -) - QToolButton(const QToolButton &); -%End -}; diff --git a/python/pyqt/sip/qt/qtooltip.sip b/python/pyqt/sip/qt/qtooltip.sip deleted file mode 100644 index 2ed76c29..00000000 --- a/python/pyqt/sip/qt/qtooltip.sip +++ /dev/null @@ -1,169 +0,0 @@ -// This is the SIP interface definition for QToolTip and QToolTipGroup. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QToolTip - -QToolTip is fully implemented. - - - -QToolTipGroup - -QToolTipGroup is fully implemented. - - -%End - - -class QToolTipGroup : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QToolTipGroup(QObject * /TransferThis/,const char * = 0); - -%If (Qt_2_00 -) - bool delay() const; -%End -%If (Qt_2_1_0 -) - bool enabled() const; -%End - -public slots: -%If (Qt_2_00 -) - void setDelay(bool); -%End -%If (Qt_2_1_0 -) - void setEnabled(bool); -%End - -signals: -%If (- Qt_2_00) - void showTip(const char *); -%End -%If (Qt_2_00 -) - void showTip(const QString &); -%End - void removeTip(); - -private: - QToolTipGroup(const QToolTipGroup &); -}; - - -%If (- Qt_2_00) - -class QToolTip -{ -%TypeHeaderCode -#include -%End - -public: - QToolTip(QWidget *,QToolTipGroup * = 0); - - static void add(QWidget *,const char *); - static void add(QWidget *,const char *,QToolTipGroup *,const char *); - static void remove(QWidget *); - static void add(QWidget *,const QRect &,const char *); - static void add(QWidget *,const QRect &,const char *,QToolTipGroup *,const char *); - static void remove(QWidget *,const QRect &); - static QFont font(); - static void setFont(const QFont &); - static QPalette palette(); - static void setPalette(const QPalette &); - QWidget *parentWidget() const; - QToolTipGroup *group() const; - -protected: - virtual void maybeTip(const QPoint &) = 0; - void tip(const QRect &,const char *); - void tip(const QRect &,const char *,const char *); - void clear(); -}; - -%End - -%If (Qt_2_00 -) - -class QToolTip : Qt -{ -%TypeHeaderCode -#include -%End - -public: - QToolTip(QWidget *,QToolTipGroup * = 0); - - static void add(QWidget *,const QString &); - static void add(QWidget *,const QString &,QToolTipGroup *, - const QString &); - static void remove(QWidget *); - - static void add(QWidget *,const QRect &,const QString &); - static void add(QWidget *,const QRect &,const QString &, - QToolTipGroup *,const QString &); - static void remove(QWidget *,const QRect &); - -%If (Qt_3_0_0 -) - static QString textFor(QWidget *,const QPoint & = QPoint()); -%End - -%If (Qt_2_1_0 -) - static void hide(); -%End - - static QFont font(); - static void setFont(const QFont &); - static QPalette palette(); - static void setPalette(const QPalette &); - -%If (Qt_3_0_0 -) - static void setGloballyEnabled(bool); - static bool isGloballyEnabled(); -%End -%If (Qt_2_1_0 - Qt_3_0_0) - static void setEnabled(bool); - static bool enabled(); -%End -%If (Qt_3_1_0 -) - static void setWakeUpDelay(int); -%End - - QWidget *parentWidget() const; - QToolTipGroup *group() const; - -protected: - virtual void maybeTip(const QPoint &) = 0; - void tip(const QRect &,const QString &); - void tip(const QRect &,const QString &,const QString &); -%If (Qt_3_1_0 -) - void tip(const QRect &,const QString &,const QRect &); - void tip(const QRect &,const QString &,const QString &,const QRect &); -%End - void clear(); -}; - -%End diff --git a/python/pyqt/sip/qt/qtranslator.sip b/python/pyqt/sip/qt/qtranslator.sip deleted file mode 100644 index 5b084264..00000000 --- a/python/pyqt/sip/qt/qtranslator.sip +++ /dev/null @@ -1,177 +0,0 @@ -// This is the SIP interface definition for QTranslator and QTranslatorMessage. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QTranslator (Qt v2+) - -QTranslator is fully implemented. - - - -QTranslatorMessage (Qt v2.2+) - -QTranslatorMessage is fully implemented. - - -%End - - -%If (Qt_2_2_0 -) - -class QTranslatorMessage -{ -%TypeHeaderCode -#include -%End - -public: - QTranslatorMessage(); - QTranslatorMessage(const char *,const char *,const char *, - const QString & = QString::null); - QTranslatorMessage(QDataStream &); - QTranslatorMessage(const QTranslatorMessage &); - - uint hash() const; - const char *context() const; - const char *sourceText() const; - const char *comment() const; - - void setTranslation(const QString &); - QString translation() const; - - enum Prefix { - NoPrefix, - Hash, - HashContext, - HashContextSourceText, - HashContextSourceTextComment - }; - -%If (- Qt_3_0_0) - void write(QDataStream &,bool, - Prefix = HashContextSourceTextComment) const /ReleaseGIL/; -%End -%If (Qt_3_0_0 -) - void write(QDataStream &,bool = 0, - Prefix = HashContextSourceTextComment) const /ReleaseGIL/; -%End - - Prefix commonPrefix(const QTranslatorMessage &) const; -}; - -%End - - -%If (Qt_2_00 -) - -class QTranslator : QObject -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_2_0 -) - QTranslator(QObject * /TransferThis/ = 0,const char * = 0); -%End -%If (- Qt_3_2_0) - QTranslator(QObject * /TransferThis/,const char * = 0); -%End - -%If (Qt_2_2_0 -) - QString find(const char *,const char *,const char *) const; -%End -%If (- Qt_3_0_0) - virtual QString find(const char *,const char *) const; -%End - -%If (Qt_2_2_0 - Qt_3_0_0) - QTranslatorMessage findMessage(const char *,const char *, - const char *) const; -%End -%If (Qt_3_0_0 - Qt_3_2_0) - virtual QTranslatorMessage findMessage(const char *,const char *, - const char *) const; -%End -%If (Qt_3_2_0 -) - virtual QTranslatorMessage findMessage(const char *,const char *, - const char * = 0) const; -%End - - bool load(const QString &,const QString & = QString::null, - const QString & = QString::null, - const QString & = QString::null); -%If (Qt_3_1_0 -) - bool load(const uchar *,int); -%End - - void clear(); - - enum SaveMode { - Everything, - Stripped - }; - - bool save(const QString &,SaveMode = Everything); - -%If (Qt_2_2_0 -) - void insert(const QTranslatorMessage &); -%End -%If (- Qt_3_0_0) - void insert(const char *,const char *,const QString &); -%End -%If (Qt_2_2_0 -) - void remove(const QTranslatorMessage &); -%End -%If (- Qt_3_0_0) - void remove(const char *,const char *); -%End -%If (- Qt_3_0_0) - bool contains(const char *,const char *) const; -%End -%If (Qt_2_2_0 - Qt_3_0_0) - bool contains(const char *,const char *,const char *) const; -%End -%If (Qt_3_0_0 -) - bool contains(const char *,const char *,const char * = 0) const; -%End - -%If (- Qt_3_0_0) - void squeeze(); -%End -%If (Qt_2_2_0 - Qt_3_0_0) - void squeeze(SaveMode); -%End -%If (Qt_3_0_0 -) - void squeeze(SaveMode = Everything); -%End - void unsqueeze(); - -%If (Qt_2_2_0 -) - QValueList messages() const; -%End - -private: - QTranslator(const QTranslator &); -}; - -%End diff --git a/python/pyqt/sip/qt/qurl.sip b/python/pyqt/sip/qt/qurl.sip deleted file mode 100644 index 9267d828..00000000 --- a/python/pyqt/sip/qt/qurl.sip +++ /dev/null @@ -1,114 +0,0 @@ -// This is the SIP interface definition for QUrl. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QUrl (Qt v2.1+) - -QUrl is fully implemented, including the -QString(), == and != -operators. - - -%End - - -%If (Qt_2_1_0 -) - -class QUrl -{ -%TypeHeaderCode -#include -%End - -public: - QUrl(); - QUrl(const QString &); - QUrl(const QUrl &); - QUrl(const QUrl &,const QString &,bool = 0); - - QString protocol() const; - virtual void setProtocol(const QString &); - - QString user() const; - virtual void setUser(const QString &); - bool hasUser() const; - - QString password() const; - virtual void setPassword(const QString &); - bool hasPassword() const; - - QString host() const; - virtual void setHost(const QString &); - bool hasHost() const; - - int port() const; - virtual void setPort(int); -%If (Qt_3_0_0 -) - bool hasPort() const; -%End - - QString path(bool = 1) const; - virtual void setPath(const QString &); - bool hasPath() const; - - virtual void setEncodedPathAndQuery(const QString &); - QString encodedPathAndQuery(); - - virtual void setQuery(const QString &); - QString query() const; - - QString ref() const; - virtual void setRef(const QString &); - bool hasRef() const; - - bool isValid() const; - bool isLocalFile() const; - - virtual void addPath(const QString &); - virtual void setFileName(const QString &); - - QString fileName() const; - QString dirPath() const; - - bool operator==(const QUrl &) const; - bool operator==(const QString &) const; - - // Qt doesn't implement these, but Python doesn't support C++'s - // default handling of != when == is implemented. - bool operator!=(const QUrl &) const; - bool operator!=(const QString &) const; - - static void decode(QString &); - static void encode(QString &); - - virtual QString toString(bool = 0,bool = 0) const; - - virtual bool cdUp(); - - static bool isRelativeUrl(const QString &); - -protected: - virtual void reset(); - virtual bool parse(const QString &); -}; - -%End diff --git a/python/pyqt/sip/qt/qurlinfo.sip b/python/pyqt/sip/qt/qurlinfo.sip deleted file mode 100644 index c1f33d31..00000000 --- a/python/pyqt/sip/qt/qurlinfo.sip +++ /dev/null @@ -1,96 +0,0 @@ -// This is the SIP interface definition for QUrlInfo. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QUrlInfo (Qt v2.1+) - -QUrlInfo is fully implemented. - - -%End - - -%If (Qt_NETWORKPROTOCOL) -%If (Qt_2_1_0 -) - -class QUrlInfo -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_2_0 -) - enum PermissionSpec { - ReadOwner, WriteOwner, ExeOwner, - ReadGroup, WriteGroup, ExeGroup, - ReadOther, WriteOther, ExeOther - }; -%End - - QUrlInfo(); - QUrlInfo(const QUrlOperator &,const QString &); - QUrlInfo(const QUrlInfo &); - QUrlInfo(const QString &,int,const QString &,const QString &,uint, - const QDateTime &,const QDateTime &,bool,bool,bool,bool,bool, - bool); - QUrlInfo(const QUrl &,int,const QString &,const QString &,uint, - const QDateTime &,const QDateTime &,bool,bool,bool,bool,bool, - bool); - - virtual void setName(const QString &); - virtual void setDir(bool); - virtual void setFile(bool); - virtual void setSymLink(bool); - virtual void setOwner(const QString &); - virtual void setGroup(const QString &); - virtual void setSize(uint); - virtual void setWritable(bool); - virtual void setReadable(bool); - virtual void setPermissions(int); - virtual void setLastModified(const QDateTime &); - -%If (Qt_3_0_0 -) - bool isValid() const; -%End - - QString name() const; - int permissions() const; - QString owner() const; - QString group() const; - uint size() const; - QDateTime lastModified() const; - QDateTime lastRead() const; - bool isDir() const; - bool isFile() const; - bool isSymLink() const; - bool isWritable() const; - bool isReadable() const; - bool isExecutable() const; - - static bool greaterThan(const QUrlInfo &,const QUrlInfo &,int); - static bool lessThan(const QUrlInfo &,const QUrlInfo &,int); - static bool equal(const QUrlInfo &,const QUrlInfo &,int); -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qurloperator.sip b/python/pyqt/sip/qt/qurloperator.sip deleted file mode 100644 index df05dc94..00000000 --- a/python/pyqt/sip/qt/qurloperator.sip +++ /dev/null @@ -1,115 +0,0 @@ -// This is the SIP interface definition for QUrlOperator. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QUrlOperator (Qt v2.1+) - - virtual bool isDir - bool *ok - - -This returns a tuple of the bool result and the -ok value. - - -%End - - -%If (Qt_NETWORKPROTOCOL) -%If (Qt_2_1_0 -) - -class QUrlOperator : QObject, QUrl -{ -%TypeHeaderCode -#include -%End - -public: - QUrlOperator(); - QUrlOperator(const QString &); - QUrlOperator(const QUrlOperator &); - QUrlOperator(const QUrlOperator &,const QString &,bool = 0); - - virtual void setPath(const QString &); - virtual bool cdUp(); - - virtual const QNetworkOperation *listChildren(); - virtual const QNetworkOperation *mkdir(const QString &); - virtual const QNetworkOperation *remove(const QString &); - virtual const QNetworkOperation *rename(const QString &, - const QString &); - virtual const QNetworkOperation *get(const QString & = QString::null); - virtual const QNetworkOperation *put(const QByteArray &, - const QString & = QString::null); -%If (- Qt_3_0_0) - virtual QList copy(const QString &,const QString &, - bool = 0); -%End -%If (Qt_3_0_0 -) - virtual QPtrList copy(const QString &, - const QString &,bool = 0, - bool = 1); -%End - virtual void copy(const QStringList &,const QString &,bool = 0); - virtual bool isDir(bool * = 0); - - virtual void setNameFilter(const QString &); - QString nameFilter() const; - - virtual QUrlInfo info(const QString &) const; - - virtual void stop(); - -signals: - void newChildren(const QValueList &,QNetworkOperation *); - void finished(QNetworkOperation *); - void start(QNetworkOperation *); - void createdDirectory(const QUrlInfo &,QNetworkOperation *); - void removed(QNetworkOperation *); - void itemChanged(QNetworkOperation *); - void data(const QByteArray &,QNetworkOperation *); - void dataTransferProgress(int,int,QNetworkOperation *); -%If (- Qt_3_0_0) - void startedNextCopy(const QList &); -%End -%If (Qt_3_0_0 -) - void startedNextCopy(const QPtrList &); -%End - void connectionStateChanged(int,const QString &); - -protected: -%If (- Qt_3_0_0) - virtual void reset(); - virtual bool parse(const QString &); -%End -%If (Qt_3_0_0 -) - void reset(); - bool parse(const QString &); -%End - virtual bool checkValid(); - virtual void clearEntries(); - void getNetworkProtocol(); - void deleteNetworkProtocol(); -}; - -%End -%End diff --git a/python/pyqt/sip/qt/quuid.sip b/python/pyqt/sip/qt/quuid.sip deleted file mode 100644 index a490d76f..00000000 --- a/python/pyqt/sip/qt/quuid.sip +++ /dev/null @@ -1,87 +0,0 @@ -// This is the SIP interface definition for QUuid. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QUuid (Qt v3.0+) - -QUuid is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QUuid -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_3_0 -) - enum Variant - { - VarUnknown, - NCS, - DCE, - Microsoft, - Reserved - }; - - enum Version - { - VerUnknown, - Time, - EmbeddedPOSIX, - Name, - Random - }; -%End - - QUuid(); -%If (Qt_3_0_1 -) - QUuid(uint,ushort,ushort,uchar,uchar,uchar,uchar,uchar,uchar,uchar,uchar); -%End -%If (- Qt_3_0_1) - QUuid(ulong,ushort,ushort,uchar,uchar,uchar,uchar,uchar,uchar,uchar,uchar); -%End - QUuid(const QUuid &); - QUuid(const QString &); - - QString toString() const; - bool isNull() const; - - bool operator==(const QUuid &) const; - bool operator!=(const QUuid &) const; - -%If (Qt_3_3_0 -) - bool operator<(const QUuid &) const; - bool operator>(const QUuid &) const; - - static QUuid createUuid(); - QUuid::Variant variant() const; - QUuid::Version version() const; -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qvalidator.sip b/python/pyqt/sip/qt/qvalidator.sip deleted file mode 100644 index 49496f26..00000000 --- a/python/pyqt/sip/qt/qvalidator.sip +++ /dev/null @@ -1,227 +0,0 @@ -// This is the SIP interface definition for QValidator, QDoubleValidator, -// QIntValidator and QRegExpValidator. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QValidator - - virtual State validate - QString& input - int& pos - - -The returned value is a tuple of the State result and the -updated pos. - - - -QDoubleValidator - - State validate - QString& input - int& pos - - -The returned value is a tuple of the State result and the -updated pos. - - - -QIntValidator - - State validate - QString& input - int& pos - - -The returned value is a tuple of the State result and the -updated pos. - - - -QRegExpValidator (Qt v3+) - - virtual State validate - QString& input - int& pos - - -The returned value is a tuple of the State result and the -updated pos. - - -%End - - -class QValidator : QObject -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_3_0_0) - QValidator(QWidget * /TransferThis/,const char * = 0); -%End -%If (Qt_3_0_0 -) - QValidator(QObject * /TransferThis/,const char * = 0); -%End - -%If (- Qt_2_1_0) - enum State - { - Invalid, - Valid, - Acceptable - }; -%End -%If (Qt_2_1_0 -) - enum State - { - Invalid, - Intermediate, - Valid = Intermediate, - Acceptable - }; -%End - -%If (Qt_2_00 -) - virtual State validate(QString &,int & /In,Out/) const = 0; - virtual void fixup(QString &) const; -%End -%If (- Qt_2_00) - virtual State validate(QString &,int & /In,Out/) = 0; - virtual void fixup(QString &); -%End - -private: -%If (Qt_2_1_0 -) - QValidator(const QValidator &); -%End -}; - - -class QIntValidator : QValidator -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_0_0 -) - QIntValidator(QObject * /TransferThis/,const char * = 0); - QIntValidator(int,int,QObject * /TransferThis/,const char * = 0); -%End -%If (- Qt_3_0_0) - QIntValidator(QWidget * /TransferThis/,const char * = 0); - QIntValidator(int,int,QWidget * /TransferThis/,const char * = 0); -%End - -%If (Qt_2_00 -) - QValidator::State validate(QString &,int & /In,Out/) const; -%End -%If (- Qt_2_00) - QValidator::State validate(QString &,int & /In,Out/); -%End - -%If (Qt_2_1_0 -) - void setBottom(int); - void setTop(int); -%End - virtual void setRange(int,int); - - int bottom() const; - int top() const; - -private: -%If (Qt_2_1_0 -) - QIntValidator(const QIntValidator &); -%End -}; - - -class QDoubleValidator : QValidator -{ -%TypeHeaderCode -#include -%End - -public: -%If (Qt_3_0_0 -) - QDoubleValidator(QObject * /TransferThis/,const char * = 0); - QDoubleValidator(double,double,int,QObject * /TransferThis/, - const char * = 0); -%End -%If (- Qt_3_0_0) - QDoubleValidator(QWidget * /TransferThis/,const char * = 0); - QDoubleValidator(double,double,int,QWidget * /TransferThis/, - const char * = 0); -%End - -%If (Qt_2_00 -) - QValidator::State validate(QString &,int & /In,Out/) const; -%End -%If (- Qt_2_00) - QValidator::State validate(QString &,int & /In,Out/); -%End - - virtual void setRange(double,double,int = 0); -%If (Qt_2_1_0 -) - void setBottom(double); - void setTop(double); - void setDecimals(int); -%End - - double bottom() const; - double top() const; - int decimals() const; - -private: -%If (Qt_2_1_0 -) - QDoubleValidator(const QDoubleValidator &); -%End -}; - - -%If (Qt_3_0_0 -) - -class QRegExpValidator : QValidator -{ -%TypeHeaderCode -#include -%End - -public: - QRegExpValidator(QObject * /TransferThis/,const char * = 0); - QRegExpValidator(const QRegExp &,QObject * /TransferThis/, - const char * = 0); - - virtual QValidator::State validate(QString &,int & /In,Out/) const; - - void setRegExp(const QRegExp &); - const QRegExp ®Exp() const; - -private: - QRegExpValidator(const QRegExpValidator &); -}; - -%End diff --git a/python/pyqt/sip/qt/qvaluelist.sip b/python/pyqt/sip/qt/qvaluelist.sip deleted file mode 100644 index 8884ed44..00000000 --- a/python/pyqt/sip/qt/qvaluelist.sip +++ /dev/null @@ -1,181 +0,0 @@ -// This is the SIP interface definition for all types based on the QValueList -// template. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QValueList<type> (Qt v2+) - -Types based on the QValueList template are automatically -converted to and from Python lists of the type. - - -%End - - -%If (Qt_2_1_0 -) - -template -%MappedType QValueList -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - int i; - PyObject *l; - - // Create the list. - - if ((l = PyList_New(sipCpp -> count())) == NULL) - return NULL; - - // Get it. - - i = 0; - QValueListConstIterator it; - - for (it = sipCpp -> begin(); it != sipCpp -> end(); ++it) - { - PyObject *tmobj; - - if ((tmobj = sipConvertFromNewInstance(new Type(*it),sipClass_Type,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0) - { - Py_XDECREF(tmobj); - Py_DECREF(l); - - return NULL; - } - - ++i; - } - - return l; -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - { - if (!PyList_Check(sipPy)) - return 0; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_Type,SIP_NOT_NONE)) - return 0; - - return 1; - } - - QValueList *qvl = new QValueList; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - { - int iserr = 0, state; - - // We apply the transfer to the list itself, not the elements. - Type *itm = reinterpret_cast(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_Type,0,SIP_NOT_NONE,&state,&iserr)); - - if (iserr) - { - sipReleaseInstance(itm,sipClass_Type,state); - - *sipIsErr = 1; - delete qvl; - - return 0; - } - - qvl -> append(*itm); - - sipReleaseInstance(itm,sipClass_Type,state); - } - - *sipCppPtr = qvl; - - return sipGetState(sipTransferObj); -%End -}; - -%End - - -%If (Qt_2_00 -) - -%MappedType QValueList -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - // Convert to a Python list of integers. - - 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,PyInt_FromLong((long)(*sipCpp)[i])) < 0) - { - Py_DECREF(l); - - return NULL; - } - - return l; -%End - -%ConvertToTypeCode - // Convert a Python list of integers to a QValueList on the heap. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList *qvl = new QValueList; - - PyErr_Clear(); - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - { - qvl -> append((int)PyInt_AsLong(PyList_GET_ITEM(sipPy,i))); - - if (PyErr_Occurred() != NULL) - { - delete qvl; - *sipIsErr = 1; - - return 0; - } - } - - *sipCppPtr = qvl; - - return 1; -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qvariant.sip b/python/pyqt/sip/qt/qvariant.sip deleted file mode 100644 index fdd19438..00000000 --- a/python/pyqt/sip/qt/qvariant.sip +++ /dev/null @@ -1,420 +0,0 @@ -// This is the SIP interface definition for QVariant. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QVariant (Qt v2.1+) - - QVariant - const char *val - - -Not implemented. - - - - QVariant - const QBitArray &val - - -Not yet implemented. (Qt v3+) - - - - QVariant - const QValueList<QVariant> &val - - -Not yet implemented. - - - - QVariant - const QMap<QString,QVariant> &val - - -Not yet implemented. - - - - QBitArray &asBitArray - - - -Not yet implemented. (Qt v3+) - - - - bool &asBool - - - -Not implemented. - - - - double &asDouble - - - -Not implemented. - - - - int &asInt - - - -Not implemented. - - - - QValueList<QVariant> &asList - - - -Not implemented. - - - - QMap<QString,QVariant> &asMap - - - -Not implemented. - - - - uint &asUInt - - - -Not implemented. - - - - QValueListConstIterator<QVariant>listBegin const - - - -Not implemented. - - - - QValueListConstIterator<QVariant>listEnd const - - - -Not implemented. - - - - QMapConstIterator<QString,QVariant>mapBegin const - - - -Not implemented. - - - - QMapConstIterator<QString,QVariant>mapEnd const - - - -Not implemented. - - - - QMapConstIterator<QString,QVariant>mapFind const - const QString &key - - -Not implemented. - - - - QValueListConstIterator<QString>stringListBegin const - - - -Not implemented. - - - - QValueListConstIterator<QString>stringListEnd const - - - -Not implemented. - - - - const QBitArray toBitArray const - - - -Not yet implemented. (Qt v3+) - - - - const QValueList<QVariant>toList const - - - -Not yet implemented. - - - - const QMap<QString,QVariant>toMap const - - - -Not yet implemented. - - -%End - - -%If (Qt_2_1_0 -) - -class QVariant -{ -%TypeHeaderCode -#include -%End - -public: - enum Type { - Invalid, - Map, - List, - String, - StringList, - Font, - Pixmap, - Brush, - Rect, - Size, - Color, - Palette, - ColorGroup, - IconSet, - Point, - Image, - Int, - UInt, - Bool, - Double, - CString, - PointArray, - Region, - Bitmap, - Cursor, -%If (Qt_2_2_0 -) - SizePolicy, -%End -%If (Qt_3_0_0 -) - Date, - Time, - DateTime, - ByteArray, - BitArray, - KeySequence, -%End -%If (Qt_3_1_0 -) - Pen, -%End -%If (Qt_3_2_0 -) - LongLong, - ULongLong, -%End - }; - - QVariant(); - QVariant(const QVariant &); - QVariant(QDataStream &); - - QVariant(const QString &); - QVariant(const QCString &); -// QVariant(const char *); - QVariant(const QStringList &); - QVariant(const QFont &); - QVariant(const QPixmap &); - QVariant(const QImage &); - QVariant(const QBrush &); - QVariant(const QPoint &); - QVariant(const QRect &); - QVariant(const QSize &); - QVariant(const QColor &); - QVariant(const QPalette &); - QVariant(const QColorGroup &); - QVariant(const QIconSet &); - QVariant(const QPointArray &); - QVariant(const QRegion &); - QVariant(const QBitmap &); - QVariant(const QCursor &); -%If (Qt_3_0_0 -) - QVariant(const QDate &); - QVariant(const QTime &); - QVariant(const QDateTime &); - QVariant(const QByteArray &); -// QVariant(const QBitArray &); -%End -// QVariant(const QValueList &); -// QVariant(const QMap &); - QVariant(int /Constrained/); -// QVariant(uint); -%If (Qt_3_2_0 -) -// QVariant(Q_LLONG); -// QVariant(Q_ULLONG); -%End - QVariant(bool,int); - QVariant(double); -%If (Qt_2_2_0 -) - QVariant(QSizePolicy); -%End -%If (Qt_3_0_0 -) - // This must appear after the QString, int and double ctors because - // each of those can be converted automatically to a QKeySequence and - // we want those to take precedence. - QVariant(const QKeySequence &); -%End -%If (Qt_3_1_0 -) - QVariant(const QPen &); -%End - - Type type() const; - const char* typeName() const; - - bool canCast(Type) const; -%If (Qt_3_0_0 -) - bool cast(Type); -%End - - bool isValid() const; -%If (Qt_3_1_0 -) - bool isNull() const; -%End - - void clear(); - - const QString toString() const; - const QCString toCString() const; - const QStringList toStringList() const; - const QFont toFont() const; - const QPixmap toPixmap() const; - const QImage toImage() const; - const QBrush toBrush() const; - const QPoint toPoint() const; - const QRect toRect() const; - const QSize toSize() const; - const QColor toColor() const; - const QPalette toPalette() const; - const QColorGroup toColorGroup() const; - const QIconSet toIconSet() const; - const QPointArray toPointArray() const; - const QBitmap toBitmap() const; - const QRegion toRegion() const; - const QCursor toCursor() const; -%If (Qt_3_0_0 -) - const QDate toDate() const; - const QTime toTime() const; - const QDateTime toDateTime() const; - const QByteArray toByteArray() const; -// const QBitArray toBitArray() const; - const QKeySequence toKeySequence() const; -%End -%If (Qt_3_1_0 -) - const QPen toPen() const; -%End - int toInt() const; - uint toUInt() const; -%If (Qt_3_2_0 -) -// Q_LLONG toLongLong(bool * = 0) const; -// Q_ULLONG toULongLong( bool * = 0) const; -%End - bool toBool() const; - double toDouble() const; -// const QValueList toList() const; -// const QMap toMap() const; -%If (Qt_2_2_0 -) - QSizePolicy toSizePolicy() const; -%End - -// QValueListConstIterator listBegin() const; -// QValueListConstIterator listEnd() const; -// QValueListConstIterator stringListBegin() const; -// QValueListConstIterator stringListEnd() const; -// QMapConstIterator mapBegin() const; -// QMapConstIterator mapEnd() const; -// QMapConstIterator mapFind(const QString &) const; - - QString & asString(); - QCString & asCString(); - QStringList & asStringList(); - QFont & asFont(); - QPixmap & asPixmap(); - QImage & asImage(); - QBrush & asBrush(); - QPoint & asPoint(); - QRect & asRect(); - QSize & asSize(); - QColor & asColor(); - QPalette & asPalette(); - QColorGroup & asColorGroup(); - QIconSet & asIconSet(); - QPointArray & asPointArray(); - QBitmap & asBitmap(); - QRegion & asRegion(); - QCursor & asCursor(); -%If (Qt_3_0_0 -) - QDate & asDate(); - QTime & asTime(); - QDateTime & asDateTime(); - QByteArray & asByteArray(); -// QBitArray & asBitArray(); - QKeySequence & asKeySequence(); -%End -%If (Qt_3_1_0 -) - QPen & asPen(); -%End -// int & asInt(); -// uint & asUInt(); -%If (Qt_3_2_0 -) -// Q_LLONG & asLongLong(); -// Q_ULLONG & asULongLong(); -%End -// bool & asBool(); -// double & asDouble(); -// QValueList & asList(); -// QMap & asMap(); -%If (Qt_2_2_0 -) - QSizePolicy & asSizePolicy(); -%End - - void load(QDataStream &); - void save(QDataStream &) const; - - static const char *typeToName(Type); - static Type nameToType(const char *); -}; - -%End diff --git a/python/pyqt/sip/qt/qvbox.sip b/python/pyqt/sip/qt/qvbox.sip deleted file mode 100644 index ab205291..00000000 --- a/python/pyqt/sip/qt/qvbox.sip +++ /dev/null @@ -1,55 +0,0 @@ -// This is the SIP interface definition for QVBox. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QVBox (Qt v2+) - -QVBox is fully implemented. - - -%End - - -%If (Qt_2_00 -) - -class QVBox : QHBox -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_3_0_0) - QVBox(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0, - bool = 1); -%End -%If (Qt_3_0_0 -) - QVBox(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); -%End - -private: -%If (Qt_2_1_0 -) - QVBox(const QVBox &); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qvbuttongroup.sip b/python/pyqt/sip/qt/qvbuttongroup.sip deleted file mode 100644 index 0ecdbbf4..00000000 --- a/python/pyqt/sip/qt/qvbuttongroup.sip +++ /dev/null @@ -1,48 +0,0 @@ -// This is the SIP interface definition for QVButtonGroup. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QVButtonGroup (Qt v2+) - -QVButtonGroup is fully implemented. - - -%End - - -%If (Qt_2_00 -) - -class QVButtonGroup : QButtonGroup -{ -%TypeHeaderCode -#include -%End - -public: - QVButtonGroup(QWidget * /TransferThis/ = 0,const char * = 0); - QVButtonGroup(const QString &,QWidget * /TransferThis/ = 0,const char * = 0); - -private: - QVButtonGroup(const QVButtonGroup &); -}; - -%End diff --git a/python/pyqt/sip/qt/qvgroupbox.sip b/python/pyqt/sip/qt/qvgroupbox.sip deleted file mode 100644 index 78cf746d..00000000 --- a/python/pyqt/sip/qt/qvgroupbox.sip +++ /dev/null @@ -1,48 +0,0 @@ -// This is the SIP interface definition for QVGroupBox. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QVGroupBox (Qt v2+) - -QVGroupBox is fully implemented. - - -%End - - -%If (Qt_2_00 -) - -class QVGroupBox : QGroupBox -{ -%TypeHeaderCode -#include -%End - -public: - QVGroupBox(QWidget * /TransferThis/ = 0,const char * = 0); - QVGroupBox(const QString &,QWidget * /TransferThis/ = 0,const char * = 0); - -private: - QVGroupBox(const QVGroupBox &); -}; - -%End diff --git a/python/pyqt/sip/qt/qwaitcondition.sip b/python/pyqt/sip/qt/qwaitcondition.sip deleted file mode 100644 index fc3963e4..00000000 --- a/python/pyqt/sip/qt/qwaitcondition.sip +++ /dev/null @@ -1,81 +0,0 @@ -// This is the SIP interface definition for QWaitCondition. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QWaitCondition (Qt v2.2+) - -QWaitCondition is fully implemented. - - -%End - - -%If (Qt_THREAD_SUPPORT) - -%If (Qt_3_0_0 -) - -class QWaitCondition -{ -%TypeHeaderCode -#include -%End - -public: - QWaitCondition(); - - bool wait(unsigned long = ULONG_MAX) /ReleaseGIL/; - bool wait(QMutex *,unsigned long = ULONG_MAX) /ReleaseGIL/; - - void wakeOne(); - void wakeAll(); - -private: - QWaitCondition(const QWaitCondition &); -}; - -%End - - -%If (Qt_2_2_0 - Qt_3_0_0) - -class QWaitCondition : Qt -{ -%TypeHeaderCode -#include -%End - -public: - QWaitCondition(); - - bool wait(unsigned long = ULONG_MAX) /ReleaseGIL/; - bool wait(QMutex *,unsigned long = ULONG_MAX) /ReleaseGIL/; - - void wakeOne(); - void wakeAll(); - -private: - QWaitCondition(const QWaitCondition &); -}; - -%End - -%End diff --git a/python/pyqt/sip/qt/qwhatsthis.sip b/python/pyqt/sip/qt/qwhatsthis.sip deleted file mode 100644 index 1bca3d8b..00000000 --- a/python/pyqt/sip/qt/qwhatsthis.sip +++ /dev/null @@ -1,97 +0,0 @@ -// This is the SIP interface definition for QWhatsThis. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QWhatsThis - -QWhatsThis is fully implemented. - - -%End - - -%If (- Qt_2_00) - -class QWhatsThis -{ -%TypeHeaderCode -#include -%End - -public: - static void add(QWidget *,const char *,bool = 1); - static void add(QWidget *,const QPixmap &,const char *,const char *,bool = 1); - static void remove(QWidget *); - static const char *textFor(QWidget *); - static QToolButton *whatsThisButton(QWidget *); -}; - -%End - -%If (Qt_2_00 -) - -class QWhatsThis : Qt -{ -%TypeHeaderCode -#include -%End - -public: - QWhatsThis(QWidget *); - - virtual QString text(const QPoint &); -%If (Qt_3_0_0 -) - virtual bool clicked(const QString &); -%End - -%If (Qt_3_1_0 -) - static void setFont(const QFont &); -%End - - static void add(QWidget *,const QString &); - static void remove(QWidget *); -%If (- Qt_3_0_0) - static QString textFor(QWidget *,const QPoint & = QPoint()); -%End -%If (Qt_3_0_0 -) - static QString textFor(QWidget *,const QPoint & = QPoint(),bool = 0); -%End - - static QToolButton *whatsThisButton(QWidget *); - - static void enterWhatsThisMode(); - static bool inWhatsThisMode(); -%If (- Qt_3_0_0) - static void leaveWhatsThisMode(const QString & = QString::null, - const QPoint & = QCursor::pos()); -%End -%If (Qt_3_0_0 -) - static void leaveWhatsThisMode(const QString & = QString::null, - const QPoint & = QCursor::pos(), - QWidget * = 0); - - static void display(const QString &,const QPoint & = QCursor::pos(), - QWidget * = 0); -%End -}; - -%End diff --git a/python/pyqt/sip/qt/qwidget.sip b/python/pyqt/sip/qt/qwidget.sip deleted file mode 100644 index 1a71c22b..00000000 --- a/python/pyqt/sip/qt/qwidget.sip +++ /dev/null @@ -1,654 +0,0 @@ -// This is the SIP interface definition for QWidget. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QWidget - - QWExtra *extraData - - - -Not implemented. - - - - QFocusData *focusData - - - -Not implemented. - - - - void lower - - - -This has been renamed to lowerW in Python. - - - - void raise - - - -This has been renamed to raiseW in Python. - - -%End - - -class QWidget : QObject, QPaintDevice -{ -%TypeHeaderCode -#include -%End - -public: - QWidget(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - - WId winId() const; - bool isTopLevel() const; -%If (Qt_3_0_0 -) - bool isDialog() const; -%End - bool isPopup() const; - bool isDesktop() const; - bool isModal() const; - bool isEnabled() const; - bool isEnabledTo(QWidget *) const; - bool isEnabledToTLW() const; - const QRect &geometry() const; - int x() const; - int y() const; - QPoint pos() const; - QSize size() const; - int width() const; - int height() const; - QRect rect() const; - QRect childrenRect() const; - QSize minimumSize() const; - QSize maximumSize() const; - void setMinimumSize(const QSize &); - void setMaximumSize(const QSize &); - void setMinimumWidth(int); - void setMinimumHeight(int); - void setMaximumWidth(int); - void setMaximumHeight(int); - QSize sizeIncrement() const; - void setSizeIncrement(const QSize &); - void setFixedSize(const QSize &); - void setFixedSize(int,int); - void setFixedWidth(int); - void setFixedHeight(int); - QPoint mapToGlobal(const QPoint &) const; - QPoint mapFromGlobal(const QPoint &) const; - QPoint mapToParent(const QPoint &) const; - QPoint mapFromParent(const QPoint &) const; -%If (Qt_2_2_0 -) - QPoint mapTo(QWidget *,const QPoint &) const; - QPoint mapFrom(QWidget *,const QPoint &) const; -%End - - QWidget *topLevelWidget() const; - - BackgroundMode backgroundMode() const; -%If (- Qt_3_0_0) - const QColor &backgroundColor() const; - virtual void setBackgroundColor(const QColor &); - const QPixmap *backgroundPixmap(); - virtual void setBackgroundPixmap(const QPixmap &); -%End - - const QColor &foregroundColor() const; - -%If (Qt_3_0_0 -) - const QColor &eraseColor() const; - virtual void setEraseColor(const QColor &); - - const QPixmap *erasePixmap() const; - virtual void setErasePixmap(const QPixmap &); -%End - - const QColorGroup &colorGroup() const; - const QPalette &palette() const; -%If (Qt_2_2_0 -) - bool ownPalette() const; -%End - virtual void setPalette(const QPalette &); -%If (Qt_2_1_0 -) - void unsetPalette(); -%End - -%If (Qt_3_0_0 -) - const QColor &paletteForegroundColor() const; - void setPaletteForegroundColor(const QColor &); - - const QColor &paletteBackgroundColor() const; - virtual void setPaletteBackgroundColor(const QColor &); - - const QPixmap *paletteBackgroundPixmap() const; - virtual void setPaletteBackgroundPixmap(const QPixmap &); - - const QBrush &backgroundBrush() const; -%End - -%If (Qt_2_2_0 -) - bool ownFont() const; -%End - virtual void setFont(const QFont &); - QFontMetrics fontMetrics() const; - QFontInfo fontInfo() const; - -%If (- Qt_3_0_0) - enum PropagationMode - { - NoChildren, - AllChildren, - SameFont, - SamePalette = SameFont - }; - - PropagationMode fontPropagation() const; - PropagationMode palettePropagation() const; -%End - - const QCursor &cursor() const; -%If (Qt_2_2_0 -) - bool ownCursor() const; -%End - virtual void setCursor(const QCursor &); - const QPixmap *icon() const; - bool hasMouseTracking() const; -%If (Qt_3_0_0 -) - bool hasMouse() const; -%End - - void clearMask(); - bool isActiveWindow() const; - bool isFocusEnabled() const; - FocusPolicy focusPolicy() const; - bool hasFocus() const; - static void setTabOrder(QWidget *,QWidget *); - QWidget *focusProxy() const; - -%If (Qt_3_2_0 -) - void setInputMethodEnabled(bool); - bool isInputMethodEnabled() const; -%End - - void grabMouse(); - void grabMouse(const QCursor &); - void releaseMouse(); - void grabKeyboard(); - void releaseKeyboard(); - static QWidget *mouseGrabber(); - static QWidget *keyboardGrabber(); - bool isUpdatesEnabled() const; - bool isVisible() const; - bool isVisibleTo(QWidget *) const; - bool isVisibleToTLW() const; - virtual QSize sizeHint() const; -%If (- Qt_3_1_0) - virtual void adjustSize(); -%End - void erase(); - void erase(int,int,int,int); - void erase(const QRect &); - void scroll(int,int); - QWidget *focusWidget() const; - bool acceptDrops() const; -%If (- Qt_3_0_0) - QWidget *parentWidget() const; - bool testWFlags(WFlags) const; -%End -%If (Qt_3_0_0 -) - QWidget *parentWidget(bool = 0) const; - WState testWState(WState) const; - WFlags testWFlags(WFlags) const; -%End - static QWidget *find(WId); - -%If (Qt_3_0_0 -) - QWidget *childAt(int,int,bool = 0) const; - QWidget *childAt(const QPoint &,bool = 0) const; -%End - -%If (Qt_3_3_0 -) - void setWindowOpacity(double); - double windowOpacity() const; -%End - -%If (- Qt_2_00) - GUIStyle style() const; - virtual void setStyle(GUIStyle); - const QRect &frameGeometry() const; - void setMinimumSize(int,int); - void setMaximumSize(int,int); - void setSizeIncrement(int,int); - - enum BackgroundMode - { - FixedColor, - FixedPixmap, - NoBackground, - PaletteForeground, - PaletteBackground, - PaletteLight, - PaletteMidlight, - PaletteDark, - PaletteMid, - PaletteText, - PaletteBase - }; - - void setBackgroundMode(BackgroundMode); - const QFont &font() const; - void setFontPropagation(PropagationMode); - void setPalettePropagation(PropagationMode); - const char *caption() const; - const char *iconText() const; - void setMask(QBitmap); - void setMask(const QRegion &); - - enum FocusPolicy - { - NoFocus = 0, - TabFocus = 1, - ClickFocus = 2, - StrongFocus = 3 - }; - - void setActiveWindow(); - void setFocusPolicy(FocusPolicy); - void setFocus(); - void clearFocus(); - void setFocusProxy(QWidget *); - virtual bool close(bool = 0); - void recreate(QWidget *,WFlags,const QPoint &,bool = 0); - void drawText(int,int,const char *); - void drawText(const QPoint &,const char *); - void setAcceptDrops(bool); -%End - -%If (Qt_2_00 -) - void setName(const char *); - QStyle &style() const; - void setStyle(QStyle *); -%If (Qt_3_0_0 -) - QStyle *setStyle(const QString &); -%End - QRect frameGeometry() const; - QSize frameSize() const; - QRegion childrenRegion() const; - int minimumWidth() const; - int minimumHeight() const; - int maximumWidth() const; - int maximumHeight() const; - virtual void setMinimumSize(int,int); - virtual void setMaximumSize(int,int); - virtual void setSizeIncrement(int,int); - QSize baseSize() const; - void setBaseSize(const QSize &); - void setBaseSize(int,int); - -%If (- Qt_2_2_0) - enum BackgroundMode - { - FixedColor, - FixedPixmap, - NoBackground, - PaletteForeground, - PaletteButton, - PaletteLight, - PaletteMidlight, - PaletteDark, - PaletteMid, - PaletteText, - PaletteBrightText, - PaletteBase, - PaletteBackground, - PaletteShadow, - PaletteHighlight, - PaletteHighlightedText - }; -%End -%If (Qt_2_2_0 - Qt_3_0_0) - enum BackgroundMode - { - FixedColor, - FixedPixmap, - NoBackground, - PaletteForeground, - PaletteButton, - PaletteLight, - PaletteMidlight, - PaletteDark, - PaletteMid, - PaletteText, - PaletteBrightText, - PaletteBase, - PaletteBackground, - PaletteShadow, - PaletteHighlight, - PaletteHighlightedText, - PaletteButtonText, - X11ParentRelative - }; -%End - - virtual void setBackgroundMode(BackgroundMode); -%If (Qt_3_0_0 -) - void setBackgroundMode(BackgroundMode,BackgroundMode); -%End - QFont font() const; -%If (- Qt_3_0_0) - void setPalette(const QPalette &,bool); - void setFont(const QFont &,bool); - virtual void setFontPropagation(PropagationMode); - virtual void setPalettePropagation(PropagationMode); -%End - virtual void unsetCursor(); - QString caption() const; - QString iconText() const; - virtual void setMask(const QBitmap &); - virtual void setMask(const QRegion &); - - enum FocusPolicy - { - NoFocus = 0, - TabFocus = 1, - ClickFocus = 2, - StrongFocus = 3, - WheelFocus = 7 - }; - - virtual void setActiveWindow(); - virtual void setFocusPolicy(FocusPolicy); - virtual void setFocusProxy(QWidget *); - virtual bool close(bool); - // Obsolete. - QRect visibleRect() const; - bool isMinimized() const; - virtual QSize minimumSizeHint() const; - virtual QSizePolicy sizePolicy() const; -%If (Qt_2_2_0 -) - bool isHidden() const; - bool isMaximized() const; -%End -%If (Qt_3_1_0 -) - bool isShown() const; - bool isFullScreen() const; -%End - -%If (Qt_3_3_0 -) - uint windowState() const; - void setWindowState(uint); -%End - -%If (Qt_3_0_0 -) - virtual void setSizePolicy(QSizePolicy); -%End -%If (Qt_3_1_0 -) - void setSizePolicy(QSizePolicy::SizeType,QSizePolicy::SizeType, - bool = 0); -%End -%If (Qt_2_2_0 - Qt_3_0_0) - void setSizePolicy(QSizePolicy); -%End - virtual int heightForWidth(int) const; - -%If (Qt_3_2_0 -) - QRegion clipRegion() const; -%End - - QLayout *layout() const; - void updateGeometry(); - - virtual void reparent(QWidget * /GetWrapper/,WFlags,const QPoint &, - bool = 0); -%MethodCode - if (sipCpp -> parent() != a0) - if (a0) - sipTransferTo(sipSelf,a0Wrapper); - else - sipTransferBack(sipSelf); - - Py_BEGIN_ALLOW_THREADS - sipSelfWasArg ? sipCpp->QWidget::reparent(a0, a1, *a2, a3) : sipCpp->reparent(a0, a1, *a2, a3); - Py_END_ALLOW_THREADS -%End - -%If (Qt_2_1_0 -) - void reparent(QWidget * /GetWrapper/,const QPoint &,bool = 0); -%MethodCode - if (sipCpp -> parent() != a0) - if (a0) - sipTransferTo(sipSelf,a0Wrapper); - else - sipTransferBack(sipSelf); - - Py_BEGIN_ALLOW_THREADS - sipCpp->reparent(a0, *a1, a2); - Py_END_ALLOW_THREADS -%End -%End - - void erase(const QRegion &); - void scroll(int,int,const QRect &); - void drawText(int,int,const QString &); - void drawText(const QPoint &,const QString &); - virtual void setAcceptDrops(bool); - virtual void setAutoMask(bool); - bool autoMask() const; - virtual bool customWhatsThis() const; -%If (- Qt_3_0_0) - bool testWState(uint) const; -%End -%End - -%If (Qt_2_1_0 -) - QRect microFocusHint() const; - void unsetFont(); -%End - -%If (Qt_2_1_0 -) - enum BackgroundOrigin { - WidgetOrigin, - ParentOrigin, -%If (Qt_3_0_0 -) - WindowOrigin, -%End -%If (Qt_3_1_0 -) - AncestorOrigin, -%End - }; -%End - -%If (Qt_2_1_0 - Qt_3_0_0) - void setBackgroundOrigin(BackgroundOrigin); -%End -%If (Qt_3_0_0 -) - virtual void setBackgroundOrigin(BackgroundOrigin); -%End -%If (Qt_2_1_0 -) - BackgroundOrigin backgroundOrigin() const; -%End - -%If (Qt_3_1_0 -) - QPoint backgroundOffset() const; -%End - -public slots: -%If (Qt_3_1_0 -) - virtual void adjustSize(); -%End - virtual void setEnabled(bool); -%If (Qt_2_2_0 -) - void setDisabled(bool); -%End - void update(); - void update(int,int,int,int); - void update(const QRect &); - void repaint(int,int,int,int,bool = 1); - void repaint(const QRect &,bool = 1); - virtual void show(); - virtual void hide(); -%If (Qt_3_1_0 -) - void setShown(bool); - void setHidden(bool); -%End - void raise() /PyName=raiseW/; - void lower() /PyName=lowerW/; - virtual void move(int,int); - void move(const QPoint &); - virtual void resize(int,int); - void resize(const QSize &); - virtual void setGeometry(int,int,int,int); - -%If (- Qt_2_00) - void setCaption(const char *); - void setIcon(const QPixmap &); - void setIconText(const char *); - void setMouseTracking(bool); - void setUpdatesEnabled(bool); - void repaint(bool = 1); - void iconify(); - void setGeometry(const QRect &); -%End - -%If (Qt_2_00 -) - virtual void setCaption(const QString &); - virtual void setIcon(const QPixmap &); - virtual void setIconText(const QString &); - virtual void setMouseTracking(bool); - virtual void setFocus(); - void clearFocus(); - virtual void setUpdatesEnabled(bool); - void repaint(); - void repaint(bool); - void repaint(const QRegion &,bool = 1); - virtual void showMinimized(); - virtual void showMaximized(); - virtual void showNormal(); - virtual void polish(); - bool close(); - virtual void setGeometry(const QRect &); -%End - -%If (Qt_2_1_0 -) - void showFullScreen(); - void constPolish() const; -%End - -protected: - bool event(QEvent *); - virtual void mousePressEvent(QMouseEvent *); - virtual void mouseReleaseEvent(QMouseEvent *); - virtual void mouseDoubleClickEvent(QMouseEvent *); - virtual void mouseMoveEvent(QMouseEvent *); - virtual void keyPressEvent(QKeyEvent *); - virtual void keyReleaseEvent(QKeyEvent *); - virtual void focusInEvent(QFocusEvent *); - virtual void focusOutEvent(QFocusEvent *); - virtual void enterEvent(QEvent *); - virtual void leaveEvent(QEvent *); - virtual void paintEvent(QPaintEvent *); - virtual void moveEvent(QMoveEvent *); - virtual void resizeEvent(QResizeEvent *); - virtual void closeEvent(QCloseEvent *); -%If (Qt_3_0_0 -) - virtual void contextMenuEvent(QContextMenuEvent *); - virtual void imStartEvent(QIMEvent *); - virtual void imComposeEvent(QIMEvent *); - virtual void imEndEvent(QIMEvent *); - virtual void tabletEvent(QTabletEvent *); -%End - virtual void enabledChange(bool); -%If (- Qt_3_0_0) - virtual void backgroundColorChange(const QColor &); - virtual void backgroundPixmapChange(const QPixmap &); -%End - virtual void paletteChange(const QPalette &); - virtual void fontChange(const QFont &); -%If (Qt_3_0_0 -) - virtual void windowActivationChange(bool); - void resetInputContext(); -%End - WFlags getWFlags() const; - void clearWFlags(WFlags); - virtual bool focusNextPrevChild(bool); -// QWExtra *extraData(); -// QFocusData *focusData(); - -%If (- Qt_2_00) - virtual void styleChange(GUIStyle); - void create(WId); - void create(WId,bool,bool); - void destroy(bool,bool); - void setWFlags(WFlags); - void setFRect(const QRect &); - void setCRect(const QRect &); - void setSizeGrip(bool); -%End - -%If (Qt_2_00 -) - virtual void wheelEvent(QWheelEvent *); -%If (Qt_DRAGANDDROP) - virtual void dragEnterEvent(QDragEnterEvent *); - virtual void dragMoveEvent(QDragMoveEvent *); - virtual void dragLeaveEvent(QDragLeaveEvent *); - virtual void dropEvent(QDropEvent *); -%End - virtual void showEvent(QShowEvent *); - virtual void hideEvent(QHideEvent *); -%If (- Qt_3_0_0) - virtual void customEvent(QCustomEvent *); -%End - - - virtual void updateMask(); - - virtual void styleChange(QStyle &); - int metric(int) const; - virtual void create(WId = 0,bool = 1,bool = 1); - virtual void destroy(bool = 1,bool = 1); - uint getWState() const; - virtual void setWState(uint); - void clearWState(uint); - virtual void setWFlags(WFlags); -%If (- Qt_3_0_0) - virtual void setFRect(const QRect &); - virtual void setCRect(const QRect &); -%End - virtual void setKeyCompression(bool); -%If (- Qt_3_0_0) - virtual void setMicroFocusHint(int,int,int,int,bool = 1); -%End -%If (Qt_3_0_0 -) - virtual void setMicroFocusHint(int,int,int,int,bool = 1,QFont * = 0); -%End -%End - -private: - QWidget(const QWidget &); -}; diff --git a/python/pyqt/sip/qt/qwidgetlist.sip b/python/pyqt/sip/qt/qwidgetlist.sip deleted file mode 100644 index 63f0a8f8..00000000 --- a/python/pyqt/sip/qt/qwidgetlist.sip +++ /dev/null @@ -1,108 +0,0 @@ -// This is the SIP interface definition for QWidgetList. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QWidgetList - -This class isn't implemented. Whenever a QWidgetList is the -return type of a function or the type of an argument, a Python list of -instances is used instead. - - -%End - - -%MappedType QWidgetList -{ -%TypeHeaderCode -#include -#include "sipqtQWidget.h" -%End - -%ConvertFromTypeCode - // Convert the list. - - PyObject *pl; - QWidget *obj; - - if ((pl = PyList_New(0)) == NULL) - return NULL; - - for (QWidgetListIt it(*sipCpp); (obj = it.current()) != NULL; ++it) - { - PyObject *inst; - - if ((inst = sipConvertFromInstance(obj,sipClass_QWidget,sipTransferObj)) == NULL || PyList_Append(pl,inst) < 0) - { - Py_XDECREF(inst); - Py_DECREF(pl); - - return NULL; - } - - Py_DECREF(inst); - } - - return pl; -%End - -%ConvertToTypeCode - // Convert a Python list of QWidget instances to a QWidgetList on the - // heap. - - if (sipIsErr == NULL) - { - if (!PyList_Check(sipPy)) - return 0; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QWidget,0)) - return 0; - - return 1; - } - - QWidgetList *qwl = new QWidgetList; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - { - QWidget *qw; - - // We apply the transfer to the list itself, not the elements. - // Note that any temporary element will never be destroyed. - // There is nothing that can be done about this. - qw = reinterpret_cast(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QWidget,0,0,0,sipIsErr)); - - if (*sipIsErr) - { - delete qwl; - return 0; - } - - qwl -> append(qw); - } - - *sipCppPtr = qwl; - - return sipGetState(sipTransferObj); -%End -}; diff --git a/python/pyqt/sip/qt/qwidgetstack.sip b/python/pyqt/sip/qt/qwidgetstack.sip deleted file mode 100644 index 573f2694..00000000 --- a/python/pyqt/sip/qt/qwidgetstack.sip +++ /dev/null @@ -1,98 +0,0 @@ -// This is the SIP interface definition for QWidgetStack. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QWidgetStack - -QWidgetStack is fully implemented. - - -%End - - -class QWidgetStack : QFrame -{ -%TypeHeaderCode -#include -%End - -public: - QWidgetStack(QWidget * /TransferThis/ = 0,const char * = 0); -%If (Qt_3_1_0 -) - QWidgetStack(QWidget * /TransferThis/,const char *,WFlags); -%End - - // The QWidget has it's parent changed to be `this' so it will be - // deleted automatically when `this' is deleted. It stays this way - // even if removeWidget() is called, so it isn't transferred back. -%If (- Qt_3_0_0) - void addWidget(QWidget * /Transfer/,int); -%End -%If (Qt_3_0_0 -) - int addWidget(QWidget * /Transfer/,int = -1); -%End - void removeWidget(QWidget *); - -%If (Qt_2_00 -) - QSize sizeHint() const; - QSize minimumSizeHint() const; -%End - void show(); - - QWidget *widget(int) const; - int id(QWidget *) const; - - QWidget *visibleWidget() const; - -%If (Qt_2_00 -) - void setFrameRect(const QRect &); -%End - -%If (- Qt_2_00) - bool event(QEvent *); -%End - -signals: - void aboutToShow(int); - void aboutToShow(QWidget *); - -public slots: - void raiseWidget(int); - void raiseWidget(QWidget *); - -protected: - void frameChanged(); -%If (- Qt_2_00) - void setChildGeometries(); -%End -%If (Qt_2_00 -) - void resizeEvent(QResizeEvent *); - - virtual void setChildGeometries(); - void childEvent(QChildEvent *); -%End - -private: -%If (Qt_2_1_0 -) - QWidgetStack(const QWidgetStack &); -%End -}; diff --git a/python/pyqt/sip/qt/qwindow.sip b/python/pyqt/sip/qt/qwindow.sip deleted file mode 100644 index 2ada67c9..00000000 --- a/python/pyqt/sip/qt/qwindow.sip +++ /dev/null @@ -1,47 +0,0 @@ -// This is the SIP interface definition for QWindow. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QWindow - -QWindow is fully implemented (Qt v1.x). - - -%End - - -%If (- Qt_2_00) - -class QWindow : QWidget -{ -%TypeHeaderCode -#include -%End - -public: - QWindow(QWidget * = 0,const char * = 0,WFlags = 0); - -private: - QWindow(const QWindow &); -}; - -%End diff --git a/python/pyqt/sip/qt/qwindowdefs.sip b/python/pyqt/sip/qt/qwindowdefs.sip deleted file mode 100644 index 846eb5dd..00000000 --- a/python/pyqt/sip/qt/qwindowdefs.sip +++ /dev/null @@ -1,180 +0,0 @@ -// This is the SIP interface definition for a variety of constant definitions. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -Qt Constants - -All constant values defined by Qt have equivalent constants defined to Python. - - -%End - - -%ModuleHeaderCode -#include -%End - - -%OptionalInclude qwindowdefs_mac.sip -%OptionalInclude qwindowdefs_qws.sip -%OptionalInclude qwindowdefs_win.sip -%OptionalInclude qwindowdefs_x11.sip - - -%If (- Qt_2_00) -typedef short QCOORD; - -const int QCOORD_MIN; -const int QCOORD_MAX; -%End - -%If (Qt_2_00 -) -typedef Q_INT32 QCOORD; - -const QCOORD QCOORD_MIN; -const QCOORD QCOORD_MAX; -%End - - -typedef unsigned QRgb; - -%If (- Qt_3_0_0) -char *qAppName(); -%End -%If (Qt_3_0_0 -) -const char *qAppName(); -%End - - -%If (- Qt_2_00) - -enum GUIStyle { - MacStyle, - WindowsStyle, - Win3Style, - PMStyle, - MotifStyle -}; - - -// Widget state flags. - -typedef uint WFlags; - -const uint WState_Created; -const uint WState_Disabled; -const uint WState_Visible; -const uint WState_DoHide; -const uint WState_ClickToFocus; -const uint WState_TrackMouse; -const uint WState_BlockUpdates; -const uint WState_PaintEvent; - -// Widget type flags. - -const uint WType_TopLevel; -const uint WType_Modal; -const uint WType_Popup; -const uint WType_Desktop; - -// Window style flags. - -const uint WStyle_Customize; -const uint WStyle_NormalBorder; -const uint WStyle_DialogBorder; -const uint WStyle_NoBorder; -const uint WStyle_Title; -const uint WStyle_SysMenu; -const uint WStyle_Minimize; -const uint WStyle_Maximize; -const uint WStyle_MinMax; -const uint WStyle_Tool; -const uint WStyle_Mask; - -// Miscellaneous widget flags. - -const uint WCursorSet; -const uint WDestructiveClose; -const uint WPaintDesktop; -const uint WPaintUnclipped; -const uint WPaintClever; -const uint WConfigPending; -const uint WResizeNoErase; -const uint WRecreated; -const uint WExportFontMetrics; -const uint WExportFontInfo; -const uint WFocusSet; -const uint WState_TabToFocus; - - -enum RasterOp { - CopyROP, - OrROP, - XorROP, - EraseROP, - NotCopyROP, - NotOrROP, - NotXorROP, - NotEraseROP, - NotROP -}; - - -// Text alignment flags. - -const int AlignLeft; -const int AlignRight; -const int AlignHCenter; -const int AlignTop; -const int AlignBottom; -const int AlignVCenter; -const int AlignCenter; - -// Miscellaneous text flags. - -const int SingleLine; -const int DontClip; -const int ExpandTabs; -const int ShowPrefix; -const int WordBreak; -const int GrayText; - -// Image conversion flags. - -const int ColorMode_Mask; -const int AutoColor; -const int ColorOnly; -const int MonoOnly; -const int AlphaDither_Mask; -const int ThresholdAlphaDither; -const int OrderedAlphaDither; -const int DiffuseAlphaDither; -const int Dither_Mask; -const int DiffuseDither; -const int OrderedDither; -const int ThresholdDither; -const int DitherMode_Mask; -const int AutoDither; -const int PreferDither; -const int AvoidDither; - -%End diff --git a/python/pyqt/sip/qt/qwindowdefs_qws.sip b/python/pyqt/sip/qt/qwindowdefs_qws.sip deleted file mode 100644 index 91c56b07..00000000 --- a/python/pyqt/sip/qt/qwindowdefs_qws.sip +++ /dev/null @@ -1,29 +0,0 @@ -// This is the SIP interface definition for a variety of constant definitions -// for Qt/Embedded. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If (WS_QWS) - -typedef unsigned WId; -typedef void *HANDLE; - -%End diff --git a/python/pyqt/sip/qt/qwindowdefs_x11.sip b/python/pyqt/sip/qt/qwindowdefs_x11.sip deleted file mode 100644 index fded9449..00000000 --- a/python/pyqt/sip/qt/qwindowdefs_x11.sip +++ /dev/null @@ -1,48 +0,0 @@ -// This is the SIP interface definition for a variety of constant definitions -// for X11. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If (WS_X11) - -%If (- Qt_3_0_0) -typedef unsigned HANDLE; -typedef unsigned WId; -%End - -%If (Qt_3_0_0 -) -typedef unsigned long WId; -%End - -typedef void Display; - -Display *qt_xdisplay(); -int qt_xscreen(); -WId qt_xrootwin(); -%If (Qt_3_1_0 -) -WId qt_xrootwin(int); -%End - -%If (Qt_3_3_0 -) -const char *qAppClass(); -%End - -%End diff --git a/python/pyqt/sip/qt/qwindowsstyle.sip b/python/pyqt/sip/qt/qwindowsstyle.sip deleted file mode 100644 index fc95cd25..00000000 --- a/python/pyqt/sip/qt/qwindowsstyle.sip +++ /dev/null @@ -1,192 +0,0 @@ -// This is the SIP interface definition for QWindowsStyle. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QWindowsStyle (Qt v2+) - - void getButtonShift - int &x - int &y - - -This takes no parameters and returns a tuple of the x and -y values. (Qt v2) - - - - void scrollBarMetrics - const QTabBar *sb - int &sliderMin - int &sliderMax - int &sliderLength - int &buttonDim - - -This takes only the sb parameter and returns a tuple of the -sliderMin, sliderMax, -sliderLength and buttonDim values. -(Qt v2) - - - - void tabbarMetrics - const QTabBar *t - int &hframe - int &vframe - int &overlap - - -This takes only the t parameter and returns a tuple of the -hframe, vframe and -overlap values. (Qt v2) - - -%End - - -%If (Qt_STYLE_WINDOWS) -%If (Qt_2_00 -) - -class QWindowsStyle : QCommonStyle -{ -%TypeHeaderCode -#include -%End - -public: - QWindowsStyle(); - -%If (Qt_3_3_0 -) - void polish(QApplication *); - void unPolish(QApplication *); - - void polish(QWidget *); - void unPolish(QWidget *); - - void polish(QPalette &); -%End - -%If (- Qt_3_0_0) - void drawButton(QPainter *,int,int,int,int,const QColorGroup &, - bool = 0,const QBrush * = 0); - void drawBevelButton(QPainter *,int,int,int,int,const QColorGroup &, - bool = 0,const QBrush * = 0); - void drawFocusRect(QPainter *,const QRect &,const QColorGroup &, - const QColor * = 0,bool = 0); - void drawPushButton(QPushButton *,QPainter *); - - void getButtonShift(int &,int &); - - void drawPanel(QPainter *,int,int,int,int,const QColorGroup &, - bool = 0,int = 1,const QBrush * = 0); - void drawPopupPanel(QPainter *,int,int,int,int,const QColorGroup &, - int = 2,const QBrush * = 0); - void drawArrow(QPainter *,ArrowType,bool,int,int,int,int, - const QColorGroup &,bool,const QBrush * = 0); - QSize indicatorSize() const; - void drawIndicator(QPainter *,int,int,int,int,const QColorGroup &, - int,bool = 0,bool = 1); - 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); - - void tabbarMetrics(const QTabBar *,int &,int &,int &); - - void drawTab(QPainter *,const QTabBar *,QTab *,bool); - void drawTabMask(QPainter *,const QTabBar *,QTab *,bool); - - void scrollBarMetrics(const QScrollBar *,int &,int &,int &,int &); - - void drawScrollBarControls(QPainter *,const QScrollBar *,int,uint,uint); - int sliderLength() const; - void drawSlider(QPainter *,int,int,int,int,const QColorGroup &, - Orientation,bool,bool); - void drawSliderMask(QPainter *,int,int,int,int,Orientation,bool,bool); - void drawSliderGroove(QPainter *,int,int,int,int,const QColorGroup &, - QCOORD,Orientation); - int maximumSliderDragDistance() const; - int splitterWidth() const; - void drawSplitter(QPainter *,int,int,int,int,const QColorGroup &, - Orientation); - void drawCheckMark(QPainter *,int,int,int,int,const QColorGroup &,bool, - bool); - void polishPopupMenu(QPopupMenu *); - int extraPopupMenuItemWidth(bool,int,QMenuItem *,const QFontMetrics &); - int popupMenuItemHeight(bool,QMenuItem *,const QFontMetrics &); - void drawPopupMenuItem(QPainter *,bool,int,int,QMenuItem *, - const QPalette &,bool,bool,int,int,int,int); -%End -%If (Qt_3_0_0 -) - virtual void polishPopupMenu(QPopupMenu *); - - void drawPrimitive(PrimitiveElement,QPainter *,const QRect &, - const QColorGroup &,SFlags = Style_Default, - const QStyleOption & = QStyleOption()) const; - - void drawControl(ControlElement,QPainter *,const QWidget *, - const QRect &,const QColorGroup &, - SFlags = Style_Default, - const QStyleOption & = QStyleOption()) const; - - void drawComplexControl(ComplexControl,QPainter *,const QWidget *, - const QRect &,const QColorGroup &, - SFlags = Style_Default,SCFlags = SC_All, - SCFlags = SC_None, - const QStyleOption & = QStyleOption()) const; - - int pixelMetric(PixelMetric,const QWidget * = 0) const; - - QSize sizeFromContents(ContentsType,const QWidget *,const QSize &, - const QStyleOption & = QStyleOption()) const; - - int styleHint(StyleHint,const QWidget *, - const QStyleOption & = QStyleOption(), - QStyleHintReturn * = 0) const; - - QPixmap stylePixmap(StylePixmap,const QWidget * = 0, - const QStyleOption & = QStyleOption()) const; -%End - -%If (Qt_3_1_0 -) - QRect subRect(SubRect,const QWidget *) const; -%End - -protected: -%If (- Qt_3_0_0) - void drawWinShades(QPainter *,int,int,int,int,const QColor &, - const QColor &,const QColor &,const QColor &, - const QBrush *); -%End - -private: -%If (Qt_3_0_0 -) - QWindowsStyle(const QWindowsStyle &); -%End -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qwindowsxpstyle.sip b/python/pyqt/sip/qt/qwindowsxpstyle.sip deleted file mode 100644 index d895662a..00000000 --- a/python/pyqt/sip/qt/qwindowsxpstyle.sip +++ /dev/null @@ -1,31 +0,0 @@ -// This is the SIP interface definition for QWindowsXPStyle. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QWindowsXPStyle (Qt v3.0.1+, Windows) - -QWindowsXPStyle is fully implemented. - - -%End - - diff --git a/python/pyqt/sip/qt/qwizard.sip b/python/pyqt/sip/qt/qwizard.sip deleted file mode 100644 index 1a75cc30..00000000 --- a/python/pyqt/sip/qt/qwizard.sip +++ /dev/null @@ -1,122 +0,0 @@ -// This is the SIP interface definition for QWizard. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QWizard (Qt v2+) - -QWizard is fully implemented. - - -%End - - -%If (Qt_WIZARD) -%If (Qt_2_00 -) - -class QWizard : QDialog -{ -%TypeHeaderCode -#include -%End - -public: - QWizard(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0, - WFlags = 0); - - void show(); - - void setFont(const QFont &); - - // The QWidget is passed to QWidgetStack::addWidget(). - virtual void addPage(QWidget * /Transfer/, const QString &); -%If (Qt_3_0_0 -) - // The QWidget is passed to QWidgetStack::addWidget(). - virtual void insertPage(QWidget * /Transfer/, const QString &,int); -%End - virtual void removePage(QWidget *); - - QString title(QWidget *) const; -%If (Qt_2_2_0 -) - void setTitle(QWidget *,const QString &); -%End -%If (Qt_3_0_0 -) - QFont titleFont() const; - void setTitleFont(const QFont &); -%End - - virtual void showPage(QWidget *); - - QWidget *currentPage() const; - -%If (Qt_2_1_0 -) - QWidget *page(int) const; - int pageCount() const; -%End -%If (Qt_3_0_0 -) - int indexOf(QWidget *) const; -%End - - virtual bool appropriate(QWidget *) const; - virtual void setAppropriate(QWidget *,bool); - - QPushButton *backButton() const; - QPushButton *nextButton() const; - QPushButton *finishButton() const; - QPushButton *cancelButton() const; - QPushButton *helpButton() const; - - bool eventFilter(QObject *,QEvent *); - -public slots: - virtual void setBackEnabled(QWidget *,bool); - virtual void setNextEnabled(QWidget *,bool); - virtual void setFinishEnabled(QWidget *,bool); - - virtual void setHelpEnabled(QWidget *,bool); - -%If (- Qt_3_0_0) - virtual void setFinish(QWidget *,bool); -%End - -protected slots: - virtual void back(); - virtual void next(); - virtual void help(); - -signals: - void helpClicked(); -%If (Qt_2_2_0 -) - void selected(const QString &); -%End - -protected: - virtual void layOutButtonRow(QHBoxLayout *); - virtual void layOutTitleRow(QHBoxLayout *,const QString &); - -private: -%If (Qt_2_1_0 -) - QWizard(const QWizard &); -%End -}; - -%End -%End diff --git a/python/pyqt/sip/qt/qwmatrix.sip b/python/pyqt/sip/qt/qwmatrix.sip deleted file mode 100644 index 3685c4a1..00000000 --- a/python/pyqt/sip/qt/qwmatrix.sip +++ /dev/null @@ -1,178 +0,0 @@ -// This is the SIP interface definition for QWMatrix. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QWMatrix - -The Python ==, != and -*= operators are supported. - - - - QWMatrix invert const - bool *invertible = 0 - - -This takes no parameters and returns a tuple of the QWMatrix -result and the invertible value. - - - - void map const - int x - int y - int *tx - int *ty - - -This takes the x and y parameters and -returns a tuple containing the tx and ty -values. - - - - void map const - float x - float y - float *tx - float *ty - - -This takes the x and y parameters and -returns a tuple containing the tx and ty -values. (Qt v1.x) - - - - void map const - double x - double y - double *tx - double *ty - - -This takes the x and y parameters and -returns a tuple containing the tx and ty -values. (Qt v2+) - - -%End - - -class QWMatrix -{ -%TypeHeaderCode -#include -%End - -public: - QWMatrix(); -%If (- Qt_2_00) - QWMatrix(float,float,float,float,float,float); -%End -%If (Qt_2_00 -) - QWMatrix(double,double,double,double,double,double); -%End - - void map(int /Constrained/,int /Constrained/,int *,int *) const; - -%If (Qt_3_0_0 -) - QRect mapRect(const QRect &) const; -%End - - QPoint map(const QPoint &) const; - QRect map(const QRect &); const - QPointArray map(const QPointArray &) const; -%If (Qt_3_1_0 -) - QRegion map(const QRegion &) const; - QRegion mapToRegion(const QRect &) const; - QPointArray mapToPolygon(const QRect &) const; -%End - - void reset(); -%If (Qt_3_0_0 -) - bool isIdentity() const; - - bool isInvertible() const; -%End -%If (Qt_3_1_0 -) - double det() const; -%End - - QWMatrix invert(bool * = 0) const; - - bool operator==(const QWMatrix &) const; - bool operator!=(const QWMatrix &) const; - QWMatrix &operator*=(const QWMatrix &); - -%If (Qt_3_0_0 -) - // These aren't documented but are used in Qt examples. - QPoint operator*(const QPoint &) const; - QRegion operator*(const QRect &) const; - QRegion operator*(const QRegion &) const; - QPointArray operator*(const QPointArray &) const; -%End - -%If (Qt_3_1_0 -) - enum TransformationMode { - Points, - Areas - }; - - static void setTransformationMode(TransformationMode); - static TransformationMode transformationMode(); -%End - -%If (- Qt_2_00) - void setMatrix(float,float,float,float,float,float); - float m11(); - float m12(); - float m21(); - float m22(); - float dx(); - float dy(); - - void map(float,float,float *,float *) const; - - QWMatrix &translate(float,float); - QWMatrix &scale(float,float); - QWMatrix &shear(float,float); - QWMatrix &rotate(float); -%End - -%If (Qt_2_00 -) - void setMatrix(double,double,double,double,double,double); - double m11(); - double m12(); - double m21(); - double m22(); - double dx(); - double dy(); - - void map(double,double,double *,double *) const; - - QWMatrix &translate(double,double); - QWMatrix &scale(double,double); - QWMatrix &shear(double,double); - QWMatrix &rotate(double); -%End -}; diff --git a/python/pyqt/sip/qt/qworkspace.sip b/python/pyqt/sip/qt/qworkspace.sip deleted file mode 100644 index 2937b2dd..00000000 --- a/python/pyqt/sip/qt/qworkspace.sip +++ /dev/null @@ -1,101 +0,0 @@ -// This is the SIP interface definition for QWorkspace. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QWorkspace (Qt v2.1+) - -QWorkspace is fully implemented. - - -%End - - -%If (Qt_2_1_0 -) -%If (Qt_WORKSPACE) - -class QWorkspace : QWidget -{ -%TypeHeaderCode -#include -%End - -public: - QWorkspace(QWidget * /TransferThis/ = 0,const char * = 0); - -%If (Qt_3_2_0 -) - enum WindowOrder { - CreationOrder, - StackingOrder - }; -%End - - QWidget *activeWindow() const; - QWidgetList windowList() const; -%If (Qt_3_2_0 -) - QWidgetList windowList(WindowOrder) const; -%End - -%If (- Qt_3_0_0) - QSizePolicy sizePolicy() const; -%End - QSize sizeHint() const; - -%If (Qt_3_0_0 -) - bool scrollBarsEnabled() const; - void setScrollBarsEnabled(bool); - - void setPaletteBackgroundColor(const QColor &); - void setPaletteBackgroundPixmap(const QPixmap &); -%End - -signals: - void windowActivated(QWidget *); - -public slots: - void cascade(); - void tile(); -%If (Qt_3_2_0 -) - void closeActiveWindow(); - void closeAllWindows(); - void activateNextWindow(); - void activatePrevWindow(); -%End - -protected: -%If (Qt_3_0_0 -) - void styleChange(QStyle &); -%End - void childEvent(QChildEvent *); - void resizeEvent(QResizeEvent *); - bool eventFilter(QObject *,QEvent *); - void showEvent(QShowEvent *); -%If (Qt_3_0_0 -) - void hideEvent(QHideEvent *); - void wheelEvent(QWheelEvent *); -%End - -private: - QWorkspace(const QWorkspace &); -}; - -%End -%End diff --git a/python/pyqt/sip/qt/versions.sip b/python/pyqt/sip/qt/versions.sip deleted file mode 100644 index 668c3e42..00000000 --- a/python/pyqt/sip/qt/versions.sip +++ /dev/null @@ -1,88 +0,0 @@ -// This defines the different versions of Qt that PyQt knows about. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// Specify the releases over time - not all of them, just those that introduce -// something new. -%Timeline {Qt_1_43 - Qt_2_00 Qt_2_1_0 Qt_2_2_0 Qt_2_3_0 Qt_2_3_1 - Qt_3_0_0 Qt_3_0_1 Qt_3_0_2 Qt_3_0_4 Qt_3_0_5 Qt_3_0_6 - Qt_3_1_0 Qt_3_1_1 Qt_3_1_2 - Qt_3_2_0 - Qt_3_3_0 Qt_3_3_5 Qt_3_3_6} - - -// Specify the platforms. -%Platforms {WS_X11 WS_WIN WS_QWS WS_MACX} - - -// Specify the features. -%Feature Qt_THREAD_SUPPORT - -%Feature Qt_ACTION -%Feature Qt_ASSISTANTCLIENT -%Feature Qt_CLIPBOARD -%Feature Qt_CODECS -%Feature Qt_COLORDIALOG -%Feature Qt_DATASTREAM -%Feature Qt_DIAL -%Feature Qt_DNS -%Feature Qt_DOM -%Feature Qt_DRAGANDDROP -%Feature Qt_ICONVIEW -%Feature Qt_IMAGE_TEXT -%Feature Qt_INPUTDIALOG -%Feature Qt_FILEDIALOG -%Feature Qt_FONTDATABASE -%Feature Qt_FONTDIALOG -%Feature Qt_MESSAGEBOX -%Feature Qt_MIMECLIPBOARD -%Feature Qt_NETWORKPROTOCOL -%Feature Qt_NETWORKPROTOCOL_FTP -%Feature Qt_NETWORKPROTOCOL_HTTP -%Feature Qt_PICTURE -%Feature Qt_PRINTDIALOG -%Feature Qt_PRINTER -%Feature Qt_PROGRESSDIALOG -%Feature Qt_PROPERTIES -%Feature Qt_SEMIMODAL -%Feature Qt_SIZEGRIP -%Feature Qt_SOUND -%Feature Qt_SPLITTER -%Feature Qt_STYLE_CDE -%Feature Qt_STYLE_INTERLACE -%Feature Qt_STYLE_MOTIF -%Feature Qt_STYLE_MOTIFPLUS -%Feature Qt_STYLE_PLATINUM -%Feature Qt_STYLE_SGI -%Feature Qt_STYLE_WINDOWS -%Feature Qt_STYLE_WINDOWSXP -%Feature Qt_TABDIALOG -%Feature Qt_TABLE -%Feature Qt_TABLEVIEW -%Feature Qt_TRANSFORMATIONS -%Feature Qt_TRANSLATION -%Feature Qt_WIZARD -%Feature Qt_WORKSPACE - -// On Windows64 Q_LONG is defined as __int64 (which SIP doesn't handle) so -// this feature is disabled. -%Feature Qt_Q_LONG_IS_long diff --git a/python/pyqt/sip/qtaxcontainer/copying.sip b/python/pyqt/sip/qtaxcontainer/copying.sip deleted file mode 100644 index 21c27d4e..00000000 --- a/python/pyqt/sip/qtaxcontainer/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited - -This file is part of PyQt. - -This copy of PyQt is free software; you can redistribute 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. - -PyQt 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 -PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -%End - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/python/pyqt/sip/qtaxcontainer/qaxbase.sip b/python/pyqt/sip/qtaxcontainer/qaxbase.sip deleted file mode 100644 index e54c0edd..00000000 --- a/python/pyqt/sip/qtaxcontainer/qaxbase.sip +++ /dev/null @@ -1,86 +0,0 @@ -// This is the SIP interface definition for QAxBase. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QAxBase (Windows, Qt v3+) - - QAxObject - IUnknown *iface = 0 - - -Not implemented. - - - - long queryInterface - const QUuid &uuid - void **iface - - -Not implemented. - - - - PropertyBag propertyBag const - - - -Not implemented. - - - - void setPropertyBag - const PropertyBag &bag - - -Not implemented. - - - - unsigned long registerWeakActiveObject - const QString &guid - - -This is a utility method provided by PyQt to make it easier to use -Mark Hammond's win32com module to manipulate objects -created by the qtaxcontainer module. - - -The RegisterActiveObject() COM function is called to -register the QAxBase instance as a weak object with the -guid GUID. The revoke handle is returned. - - - - static void revokeActiveObject - unsigned long rhandle - - -This is a wrapper around the RevokeActiveObject() COM -function and is called to revoke the object registered using -registerWeakActiveObject(). rhandle is -the revoke handle returned by registerWeakActiveObject(). - - -%End - - diff --git a/python/pyqt/sip/qtaxcontainer/qaxobject.sip b/python/pyqt/sip/qtaxcontainer/qaxobject.sip deleted file mode 100644 index f38b2b3f..00000000 --- a/python/pyqt/sip/qtaxcontainer/qaxobject.sip +++ /dev/null @@ -1,37 +0,0 @@ -// This is the SIP interface definition for QAxObject. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QAxObject (Windows, Qt v3+) - - QAxObject - IUnknown *iface - QObject *parent = 0 - const char *name = 0 - - -Not implemented. - - -%End - - diff --git a/python/pyqt/sip/qtaxcontainer/qaxwidget.sip b/python/pyqt/sip/qtaxcontainer/qaxwidget.sip deleted file mode 100644 index e3b2931e..00000000 --- a/python/pyqt/sip/qtaxcontainer/qaxwidget.sip +++ /dev/null @@ -1,37 +0,0 @@ -// This is the SIP interface definition for QAxWidget. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QAxWidget (Windows, Qt v3+) - - QAxWidget - IUnknown *iface - QWidget *parent = 0 - const char *name = 0 - - -Not implemented. - - -%End - - diff --git a/python/pyqt/sip/qtaxcontainer/qtaxcontainermod.sip b/python/pyqt/sip/qtaxcontainer/qtaxcontainermod.sip deleted file mode 100644 index 58dd1f6b..00000000 --- a/python/pyqt/sip/qtaxcontainer/qtaxcontainermod.sip +++ /dev/null @@ -1,32 +0,0 @@ -// This is the SIP interface definition for the qtaxcontainer module of PyQt. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Module qtaxcontainer 1 - -%Import qt/qtmod.sip - -%Include copying.sip - - -%Include qaxbase.sip -%Include qaxobject.sip -%Include qaxwidget.sip diff --git a/python/pyqt/sip/qtcanvas/copying.sip b/python/pyqt/sip/qtcanvas/copying.sip deleted file mode 100644 index 21c27d4e..00000000 --- a/python/pyqt/sip/qtcanvas/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited - -This file is part of PyQt. - -This copy of PyQt is free software; you can redistribute 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. - -PyQt 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 -PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -%End - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/python/pyqt/sip/qtcanvas/qcanvas.sip b/python/pyqt/sip/qtcanvas/qcanvas.sip deleted file mode 100644 index 86df529e..00000000 --- a/python/pyqt/sip/qtcanvas/qcanvas.sip +++ /dev/null @@ -1,856 +0,0 @@ -// This is the SIP interface definition for QCanvas, QCanvasEllipse, -// QCanvasItem, QCanvasItemList, QCanvasLine, QCanvasPixmap, -// QCanvasPixmapArray, QCanvasPolygon, QCanvasPolygonalItem, QCanvasRectangle, -// QCanvasSpline, QCanvasSprite, QCanvasText and QCanvasView. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QCanvas (Qt v2.2+) - -QCanvas is fully implemented. - - - -QCanvasEllipse (Qt v2.2+) - -QCanvasEllipse is fully implemented. - - - -QCanvasItem (Qt v2.2+) - -QCanvasItem is fully implemented. - - - -QCanvasItemList (Qt v2.2+) - -This class isn't implemented. Whenever a QCanvasItemList is -the return type of a function or the type of an argument, a Python list of -QCanvasItem instances is used instead. - - - -QCanvasLine (Qt v2.2+) - -QCanvasLine is fully implemented. - - - -QCanvasPixmap (Qt v2.2+) - -QCanvasPixmap is fully implemented. - - - -QCanvasPixmapArray (Qt v2.2+) - - QPixmapArray - QList<QPixmap> pixmaps - QList<QPoint> hotspots - - -The pixmaps argument is a Python list of QPixmap instances, -and the hotspots argument is a Python list of QPoint -instances. (Qt v2.2.0 - Qt v2.3.1) - - - - QPixmapArray - QValueList<QPixmap> pixmaps - QPointArray hotspots = QPointArray() - - -The pixmaps argument is a Python list of QPixmap instances. -(Qt v3+) - - - -QCanvasPolygon (Qt v2.2+) - -QCanvasPolygon is fully implemented. - - - -QCanvasPolygonalItem (Qt v2.2+) - -QCanvasPolygonalItem is fully implemented. - - - -QCanvasRectangle (Qt v2.2+) - -QCanvasRectangle is fully implemented. - - - -QCanvasSpline (Qt v3.0+) - -QCanvasSpline is fully implemented. - - - -QCanvasSprite (Qt v2.2+) - -QCanvasSprite is fully implemented. - - - -QCanvasText (Qt v2.2+) - -QCanvasText is fully implemented. - - - -QCanvasView (Qt v2.2+) - -QCanvasView is fully implemented. - - -%End - - -%If (Qt_2_2_0 -) - -%MappedType QCanvasItemList -{ -%TypeHeaderCode -#include -#include "sipqtcanvasQCanvasItem.h" -%End - -%ConvertFromTypeCode - // Convert to a Python list of QCanvasItem instances. - - int i; - PyObject *l; - - // Create the list. - - if ((l = PyList_New(sipCpp -> count())) == NULL) - return NULL; - - // Get it. - - i = 0; - - for (QCanvasItemList::Iterator it = sipCpp -> begin(); it != sipCpp -> end(); ++it) - { - PyObject *ci; - - if ((ci = sipConvertFromInstance(*it,sipClass_QCanvasItem,sipTransferObj)) == NULL || PyList_SetItem(l,i,ci) < 0) - { - Py_XDECREF(ci); - Py_DECREF(l); - - return NULL; - } - - ++i; - } - - return l; -%End - -%ConvertToTypeCode - // At the moment this will never be called, so provide a null - // implementation. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - PyErr_Format(PyExc_TypeError,"Converting to QCanvasItemList not yet implemented"); - - *sipIsErr = 1; - - return 0; -%End -}; - - -class QCanvasItem : Qt -{ -%TypeHeaderCode -#include -%End - -public: - QCanvasItem(QCanvas * /TransferThis/); - -%ConvertToSubClassCode - Py_BEGIN_ALLOW_THREADS - - // Use the numeric type values for compatibility with Qt v2. - switch (sipCpp -> rtti()) - { - case 1: - sipClass = sipClass_QCanvasSprite; - break; - - case 2: - sipClass = sipClass_QCanvasPolygonalItem; - break; - - case 3: - sipClass = sipClass_QCanvasText; - break; - - case 4: - sipClass = sipClass_QCanvasPolygon; - break; - - case 5: - sipClass = sipClass_QCanvasRectangle; - break; - - case 6: - sipClass = sipClass_QCanvasEllipse; - break; - - case 7: - sipClass = sipClass_QCanvasLine; - break; - -#if QT_VERSION >= 0x030000 - case 8: - sipClass = sipClass_QCanvasSpline; - break; -#endif - - default: - sipClass = 0; - } - - Py_END_ALLOW_THREADS -%End - - double x() const; - double y() const; - double z() const; - - virtual void moveBy(double,double); - void move(double,double); - void setX(double); - void setY(double); - void setZ(double); - - bool animated() const; - virtual void setAnimated(bool); - virtual void setVelocity(double,double); - void setXVelocity(double); - void setYVelocity(double); - double xVelocity() const; - double yVelocity() const; - virtual void advance(int); - - virtual bool collidesWith(const QCanvasItem *) const = 0; - - QCanvasItemList collisions(bool) const; - - virtual void setCanvas(QCanvas * /GetWrapper/); -%MethodCode - if (sipCpp -> canvas() != a0) - if (a0) - sipTransferTo(sipSelf,a0Wrapper); - else - sipTransferBack(sipSelf); - - Py_BEGIN_ALLOW_THREADS - sipSelfWasArg ? sipCpp->QCanvasItem::setCanvas(a0) : sipCpp->setCanvas(a0); - Py_END_ALLOW_THREADS -%End - - virtual void draw(QPainter &) = 0; - - void show(); - void hide(); - - virtual void setVisible(bool); -%If (- Qt_3_0_0) - bool visible() const; -%End -%If (Qt_3_0_0 -) - bool isVisible() const; -%End - virtual void setSelected(bool); -%If (- Qt_3_0_0) - bool selected() const; -%End -%If (Qt_3_0_0 -) - bool isSelected() const; -%End - virtual void setEnabled(bool); -%If (- Qt_3_0_0) - bool enabled() const; -%End -%If (Qt_3_0_0 -) - bool isEnabled() const; -%End - virtual void setActive(bool); -%If (- Qt_3_0_0) - bool active() const; -%End -%If (Qt_3_0_0 -) - bool isActive() const; -%End - -%If (Qt_3_0_0 -) - enum RttiValues { - Rtti_Item, - Rtti_Sprite, - Rtti_PolygonalItem, - Rtti_Text, - Rtti_Polygon, - Rtti_Rectangle, - Rtti_Ellipse, - Rtti_Line, - Rtti_Spline - }; -%End - - virtual int rtti() const; - - virtual QRect boundingRect() const = 0; - virtual QRect boundingRectAdvanced() const; - - QCanvas *canvas() const; - -protected: -%If (Qt_3_0_0 -) - void update(); -%End - -private: - virtual bool collidesWith(const QCanvasSprite *, - const QCanvasPolygonalItem *, - const QCanvasRectangle *, - const QCanvasEllipse *, - const QCanvasText *) const = 0; -}; - - -class QCanvas : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QCanvas(QObject * /TransferThis/ = 0,const char * = 0); - QCanvas(int,int); - QCanvas(QPixmap,int,int,int,int); - -%ConvertToSubClassCode - static struct class_graph { - char *name; - sipWrapperType **type; - int yes, no; - } graph[] = { - {sipName_QCanvasView, &sipClass_QCanvasView, -1, 1}, - {sipName_QCanvas, &sipClass_QCanvas, -1, -1}, - }; - - int i = 0; - - sipClass = NULL; - - do - { - struct class_graph *cg = &graph[i]; - - if (cg->name != NULL && sipCpp->inherits(cg->name)) - { - sipClass = *cg->type; - i = cg->yes; - } - else - i = cg->no; - } - while (i >= 0); -%End - - virtual void setTiles(QPixmap,int,int,int,int); - virtual void setBackgroundPixmap(const QPixmap &); - QPixmap backgroundPixmap() const; - - virtual void setBackgroundColor(const QColor &); - QColor backgroundColor() const; - - virtual void setTile(int,int,int); - int tile(int,int) const; - - int tilesHorizontally() const; - int tilesVertically() const; - - int tileWidth() const; - int tileHeight() const; - - virtual void resize(int,int); - int width() const; - int height() const; - QSize size() const; -%If (Qt_3_0_0 -) - QRect rect() const; -%End - bool onCanvas(int,int) const; - bool onCanvas(const QPoint &) const; - bool validChunk(int,int) const; - bool validChunk(const QPoint &) const; - - int chunkSize() const; - virtual void retune(int,int = 100); - - // These next three are marked as internal in the Qt v2.x - // documentation. -// bool sameChunk() const; -// virtual void setChangedChunk(int,int); -// virtual void setChangedChunkContaining(int,int); - virtual void setAllChanged(); - virtual void setChanged(const QRect &); -%If (Qt_3_0_0 -) - virtual void setUnchanged(const QRect &); -%End - - QCanvasItemList allItems(); - QCanvasItemList collisions(const QPoint &) const; - QCanvasItemList collisions(const QRect &) const; - QCanvasItemList collisions(const QPointArray &,const QCanvasItem *, - bool) const; - -%If (Qt_3_0_0 -) - void drawArea(const QRect &,QPainter *,bool = 0); -%End - - virtual void setAdvancePeriod(int); - virtual void setUpdatePeriod(int); - - virtual void setDoubleBuffering(bool); - -signals: - void resized(); - -public slots: - virtual void advance(); - virtual void update(); - -protected: - virtual void drawBackground(QPainter &,const QRect &); - virtual void drawForeground(QPainter &,const QRect &); - -private: -%If (Qt_3_1_0 -) - QCanvas(const QCanvas &); -%End -}; - - -class QCanvasView : QScrollView -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_3_0_0) - QCanvasView(QCanvas * = 0,QWidget * /TransferThis/ = 0, - const char * = 0,WFlags = 0); -%End -%If (Qt_3_0_0 -) - QCanvasView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - QCanvasView(QCanvas *,QWidget * /TransferThis/ = 0,const char * = 0, - WFlags = 0); -%End - - QCanvas* canvas() const; - void setCanvas(QCanvas *); - -%If (Qt_3_0_0 -) - const QWMatrix &worldMatrix() const; - const QWMatrix &inverseWorldMatrix() const; - bool setWorldMatrix(const QWMatrix &); -%End - -protected: - void drawContents(QPainter *,int,int,int,int); - QSize sizeHint() const; - -private: -%If (Qt_3_1_0 -) - QCanvasView(const QCanvasView &); -%End -}; - - -class QCanvasPixmap : QPixmap -{ -%TypeHeaderCode -#include -%End - -public: - QCanvasPixmap(const QString &); - QCanvasPixmap(const QImage &); -%If (- Qt_3_0_0) - QCanvasPixmap(const QPixmap &,QPoint); -%End -%If (Qt_3_0_0 -) - QCanvasPixmap(const QPixmap &,const QPoint &); -%End - - int offsetX() const; - int offsetY() const; - void setOffset(int,int); - -private: -%If (Qt_3_1_0 -) - QCanvasPixmap(const QCanvasPixmap &); -%End -}; - - -class QCanvasPixmapArray -{ -%TypeHeaderCode -#include -%End - -public: - QCanvasPixmapArray(); - QCanvasPixmapArray(const QString &,int = 0); -%If (- Qt_3_0_0) - QCanvasPixmapArray(QPtrList,QPtrList); -%End -%If (Qt_3_0_0 -) - QCanvasPixmapArray(QValueList,QPointArray = QPointArray()); -%End - - bool readPixmaps(const QString &,int = 0) /ReleaseGIL/; - bool readCollisionMasks(const QString &) /ReleaseGIL/; - -%If (Qt_3_0_0 -) - bool isValid() const; -%End - - QCanvasPixmap *image(int) const; - void setImage(int,QCanvasPixmap * /Transfer/); - uint count() const; - -private: -%If (Qt_3_1_0 -) - QCanvasPixmapArray(const QCanvasPixmapArray &); -%End -}; - - -class QCanvasSprite : QCanvasItem -{ -%TypeHeaderCode -#include -%End - -public: - QCanvasSprite(QCanvasPixmapArray *,QCanvas * /TransferThis/); - - void setSequence(QCanvasPixmapArray *); - - void move(double,double); - virtual void move(double,double,int); - void setFrame(int); - -%If (Qt_3_0_0 -) - enum FrameAnimationType { - Cycle, - Oscillate - }; - - virtual void setFrameAnimation(FrameAnimationType = Cycle,int = 1, - int = 0); -%End - int frame() const; - int frameCount() const; - -%If (- Qt_3_0_0) - virtual int rtti() const; -%End -%If (Qt_3_0_0 -) - int rtti() const; -%End - - bool collidesWith(const QCanvasItem *) const; - - QRect boundingRect() const; - -%If (Qt_3_0_0 -) - int width() const; - int height() const; - - int leftEdge() const; - int topEdge() const; - int rightEdge() const; - int bottomEdge() const; - - int leftEdge(int) const; - int topEdge(int) const; - int rightEdge(int) const; - int bottomEdge(int) const; - QCanvasPixmap *image() const; - virtual QCanvasPixmap *imageAdvanced() const; - QCanvasPixmap *image(int) const; - // This is really virtual, but we want to use the super-class's virtual - // handler. Having to do this is really a SIP bug. - void advance(int); - - void draw(QPainter &); -%End - -protected: -%If (- Qt_3_0_0) - void draw(QPainter &); - int width() const; - int height() const; - int absX() const; - int absY() const; - int absX2() const; - int absY2() const; - int absX(int) const; - int absY(int) const; - int absX2(int) const; - int absY2(int) const; - QCanvasPixmap *image() const; - virtual QCanvasPixmap *imageAdvanced() const; - QCanvasPixmap *image(int) const; -%End - -private: -%If (Qt_3_1_0 -) - QCanvasSprite(const QCanvasSprite &); -%End -}; - - -class QCanvasPolygonalItem : QCanvasItem -{ -%TypeHeaderCode -#include -%End - -public: - QCanvasPolygonalItem(QCanvas * /TransferThis/); - - bool collidesWith(const QCanvasItem *) const; - - virtual void setPen(QPen); - virtual void setBrush(QBrush); - - QPen pen() const; - QBrush brush() const; - - virtual QPointArray areaPoints() const = 0; - virtual QPointArray areaPointsAdvanced() const; - QRect boundingRect() const; - - int rtti() const; - -protected: - void draw(QPainter &); - virtual void drawShape(QPainter &) = 0; - - bool winding() const; - void setWinding(bool); - -%If (Qt_3_1_0 -) - void invalidate(); - bool isValid() const; -%End -}; - - -class QCanvasRectangle : QCanvasPolygonalItem -{ -%TypeHeaderCode -#include -%End - -public: - QCanvasRectangle(QCanvas * /TransferThis/); - QCanvasRectangle(const QRect &,QCanvas * /TransferThis/); - QCanvasRectangle(int,int,int,int,QCanvas * /TransferThis/); - - int width() const; - int height() const; - void setSize(int,int); - QSize size() const; - QPointArray areaPoints() const; - QRect rect() const; - - bool collidesWith(const QCanvasItem *) const; - - int rtti() const; - -protected: - void drawShape(QPainter &); - QPointArray chunks() const; -}; - - -class QCanvasPolygon : QCanvasPolygonalItem -{ -%TypeHeaderCode -#include -%End - -public: - QCanvasPolygon(QCanvas * /TransferThis/); - - void setPoints(QPointArray); - QPointArray points() const; - void moveBy(double,double); - - QPointArray areaPoints() const; - - int rtti() const; - -protected: - void drawShape(QPainter &); -}; - - -%If (Qt_3_0_0 -) - -class QCanvasSpline : QCanvasPolygon -{ -%TypeHeaderCode -#include -%End - -public: - QCanvasSpline(QCanvas * /TransferThis/); - - void setControlPoints(QPointArray,bool = 1); - QPointArray controlPoints() const; - bool closed() const; - - int rtti() const; -}; - -%End - - -class QCanvasLine : QCanvasPolygonalItem -{ -%TypeHeaderCode -#include -%End - -public: - QCanvasLine(QCanvas * /TransferThis/); - - void setPoints(int,int,int,int); - - QPoint startPoint() const; - QPoint endPoint() const; - - int rtti() const; - - void setPen(QPen); -%If (Qt_3_3_0 -) - void moveBy(double,double); -%End - -protected: - void drawShape(QPainter &); - QPointArray areaPoints() const; -}; - - -class QCanvasEllipse : QCanvasPolygonalItem -{ -%TypeHeaderCode -#include -%End - -public: - QCanvasEllipse(QCanvas * /TransferThis/); - QCanvasEllipse(int,int,QCanvas * /TransferThis/); - QCanvasEllipse(int,int,int,int,QCanvas * /TransferThis/); - - int width() const; - int height() const; - void setSize(int,int); - void setAngles(int,int); - int angleStart() const; - int angleLength() const; - QPointArray areaPoints() const; - - bool collidesWith(const QCanvasItem *) const; - - int rtti() const; - -protected: - void drawShape(QPainter &); -}; - - -class QCanvasText : QCanvasItem -{ -%TypeHeaderCode -#include -%End - -public: - QCanvasText(QCanvas * /TransferThis/); - QCanvasText(const QString &,QCanvas * /TransferThis/); - QCanvasText(const QString &,QFont,QCanvas * /TransferThis/); - - void setText(const QString &); - void setFont(const QFont &); - void setColor(const QColor &); - QString text() const; - QFont font() const; - QColor color() const; - - void moveBy(double,double); - - int textFlags() const; - void setTextFlags(int); - - QRect boundingRect() const; - - bool collidesWith(const QCanvasItem *) const; - -%If (- Qt_3_0_0) - virtual int rtti() const; -%End -%If (Qt_3_0_0 -) - int rtti() const; -%End - -protected: - virtual void draw(QPainter &); - -private: -%If (Qt_3_1_0 -) - QCanvasText(const QCanvasText &); -%End -}; - -%End diff --git a/python/pyqt/sip/qtcanvas/qtcanvasmod.sip b/python/pyqt/sip/qtcanvas/qtcanvasmod.sip deleted file mode 100644 index e094204e..00000000 --- a/python/pyqt/sip/qtcanvas/qtcanvasmod.sip +++ /dev/null @@ -1,70 +0,0 @@ -// This is the SIP interface definition for the qtcanvas module of PyQt. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Module qtcanvas 1 - -%Import qt/qtmod.sip - -%Include copying.sip - - -%Include qcanvas.sip - - -// The build file template. - -%Makefile qtcanvas.pro.in -# The project file for the qtcanvas module. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -TEMPLATE = lib -TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ -INCLUDEPATH = @BLX_INCLUDEPATH@ -DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QT_MODULE@ @BLX_LIBS@ -macx:QMAKE_LFLAGS += -framework Python - -SOURCES = $B - -HEADERS = $H -%End diff --git a/python/pyqt/sip/qtext/copying.sip b/python/pyqt/sip/qtext/copying.sip deleted file mode 100644 index 21c27d4e..00000000 --- a/python/pyqt/sip/qtext/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited - -This file is part of PyQt. - -This copy of PyQt is free software; you can redistribute 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. - -PyQt 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 -PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -%End - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/python/pyqt/sip/qtext/qextscintilla.sip b/python/pyqt/sip/qtext/qextscintilla.sip deleted file mode 100644 index 06ba182d..00000000 --- a/python/pyqt/sip/qtext/qextscintilla.sip +++ /dev/null @@ -1,411 +0,0 @@ -// This is the SIP interface definition for QextScintilla. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -class QextScintilla : QextScintillaBase -{ -%TypeHeaderCode -#include -%End - -public: - enum { - AiMaintain, - AiOpening, - AiClosing - }; - - enum AutoCompletionSource { - AcsDocument, - AcsAPIs, -%If (QScintilla_1_7 -) - AcsAll, -%End - }; - - enum BraceMatch { - NoBraceMatch, - StrictBraceMatch, - SloppyBraceMatch - }; - -%If (QScintilla_1_4 -) - enum EdgeMode { - EdgeNone, - EdgeLine, - EdgeBackground - }; -%End - - enum EolMode { - EolWindows, - EolUnix, - EolMac - }; - - enum FoldStyle { - NoFoldStyle, - PlainFoldStyle, - CircledFoldStyle, - BoxedFoldStyle, - CircledTreeFoldStyle, - BoxedTreeFoldStyle - }; - - enum MarkerSymbol { - Circle, - Rectangle, - RightTriangle, - SmallRectangle, - RightArrow, - Invisible, - DownTriangle, - Minus, - Plus, - VerticalLine, - BottomLeftCorner, - LeftSideSplitter, - BoxedPlus, - BoxedPlusConnected, - BoxedMinus, - BoxedMinusConnected, - RoundedBottomLeftCorner, - LeftSideRoundedSplitter, - CircledPlus, - CircledPlusConnected, - CircledMinus, - CircledMinusConnected, - Background, - ThreeDots, - ThreeRightArrows - }; - - enum WhitespaceVisibility { - WsInvisible, - WsVisible, - WsVisibleAfterIndent - }; - - enum WrapMode { - WrapNone, - WrapWord, -%If (QScintilla_1_7 -) - WrapCharacter, -%End - }; - -%If (QScintilla_1_7 -) - enum WrapVisualFlag { - WrapFlagNone, - WrapFlagByText, - WrapFlagByBorder, - }; -%End - - QextScintilla(QWidget * /TransferThis/ = 0,const char * = 0, - WFlags = 0); - - bool autoCompletionCaseSensitivity(); -%If (QScintilla_1_7 -) - bool autoCompletionFillupsEnabled(); -%End - bool autoCompletionReplaceWord(); - bool autoCompletionShowSingle(); - AutoCompletionSource autoCompletionSource() const; - int autoCompletionThreshold() const; - bool autoIndent() const; - bool backspaceUnindents(); - void beginUndoAction(); - BraceMatch braceMatching() const; - int callTipsVisible() const; -%If (QScintilla_1_7 -) - void cancelList(); -%End - void clearRegisteredImages(); - void convertEols(EolMode); -%If (QScintilla_1_3 -) - QextScintillaDocument document(); -%End - void endUndoAction(); - -%If (QScintilla_1_4 -) - QColor edgeColor(); - int edgeColumn(); - EdgeMode edgeMode(); -%End - - EolMode eolMode(); - bool eolVisibility(); - -%If (QScintilla_1_7 -) - QColor color() const; - QColor paper() const; -%End - -%If (QScintilla_1_6 -) - virtual bool findFirst(const QString &,bool,bool,bool,bool,bool = 1, - int = -1,int = -1,bool = 1); -%End -%If (- QScintilla_1_6) - virtual bool findFirst(const QString &,bool,bool,bool,bool,bool = 1, - int = -1,int = -1); -%End - virtual bool findNext(); - -%If (QScintilla_1_7 -) - int firstVisibleLine(); -%End - - FoldStyle folding() const; - - void getCursorPosition(int *,int *); - void getSelection(int *,int *,int *,int *); - bool hasSelectedText(); - - int indentation(int); - bool indentationGuides(); - bool indentationsUseTabs(); - int indentationWidth(); - -%If (QScintilla_1_7 -) - bool isCallTipActive(); - bool isListActive(); -%End - bool isModified(); - bool isReadOnly(); - bool isRedoAvailable(); - bool isUndoAvailable(); - bool isUtf8(); - int lineAt(const QPoint &); - int lineLength(int); - int lines(); - int length(); -%If (QScintilla_1_7 -) - QextScintillaLexer *lexer() const; -%End - - bool marginLineNumbers(int); - int marginMarkerMask(int); - bool marginSensitivity(int); - int marginWidth(int); - - int markerDefine(MarkerSymbol,int = -1); - int markerDefine(char,int = -1); - int markerDefine(const QPixmap *,int = -1); - int markerAdd(int,int); - unsigned markersAtLine(int); - void markerDelete(int,int = -1); - void markerDeleteAll(int = -1); - void markerDeleteHandle(int); - int markerLine(int); - int markerFindNext(int,unsigned); - int markerFindPrevious(int,unsigned); -%If (QScintilla_1_3 -) - virtual void recolor(int = 0,int = -1); -%End - void registerImage(int,const QPixmap *); - virtual void replace(const QString &); - void resetFoldMarginColors(); - void setFoldMarginColors(const QColor &,const QColor &); - - void setAutoCompletionAPIs(QextScintillaAPIs * = 0); - void setAutoCompletionFillups(const char *); -%If (QScintilla_1_7 -) - void setAutoCompletionFillupsEnabled(bool); - void setAutoCompletionStartCharacters(const char *); -%End - - void setCallTipsAPIs(QextScintillaAPIs * = 0); - void setCallTipsBackgroundColor(const QColor &); - void setCallTipsForegroundColor(const QColor &); - void setCallTipsHighlightColor(const QColor &); - void setCallTipsVisible(int); - -%If (QScintilla_1_3 -) - void setDocument(const QextScintillaDocument &); -%End - -%If (QScintilla_1_4 -) - void setEdgeColor(const QColor &); - void setEdgeColumn(int); - void setEdgeMode(EdgeMode); -%End - -%If (QScintilla_1_7 -) - virtual void setFont(const QFont &); -%End - - void setMarkerBackgroundColor(const QColor &,int = -1); - void setMarkerForegroundColor(const QColor &,int = -1); - - void setMatchedBraceBackgroundColor(const QColor &); - void setMatchedBraceForegroundColor(const QColor &); - void setUnmatchedBraceBackgroundColor(const QColor &); - void setUnmatchedBraceForegroundColor(const QColor &); - -%If (QScintilla_1_7 -) - void setWrapVisualFlags(WrapVisualFlag, - WrapVisualFlag = QextScintilla::WrapFlagNone, int = 0); -%End - - QString selectedText(); -%If (QScintilla_1_7 -) - void showUserList(int, const QStringList &); -%End - QextScintillaCommandSet *standardCommands() const; - bool tabIndents(); - int tabWidth(); - QString text(); - QString text(int); -%If (QScintilla_1_7 -) - int textHeight(int); -%End - WhitespaceVisibility whitespaceVisibility(); -%If (QScintilla_1_4 -) - WrapMode wrapMode(); -%End - -public slots: - virtual void append(const QString &); -%If (QScintilla_1_7 -) - virtual void autoCompleteFromAll(); -%End - virtual void autoCompleteFromAPIs(); - virtual void autoCompleteFromDocument(); - virtual void callTip(); - virtual void clear(); - virtual void copy(); - virtual void cut(); - - virtual void ensureCursorVisible(); - virtual void ensureLineVisible(int); -%If (QScintilla_1_7 -) - virtual void foldAll(bool = 0); -%End -%If (- QScintilla_1_7) - virtual void foldAll(); -%End - virtual void foldLine(int); - virtual void indent(int); -%If (QScintilla_1_4 -) - virtual void insert(const QString &); -%End - virtual void insertAt(const QString &,int,int); - virtual void moveToMatchingBrace(); - virtual void paste(); - virtual void redo(); - virtual void removeSelectedText(); -%If (QScintilla_1_4 -) - virtual void resetSelectionBackgroundColor(); - virtual void resetSelectionForegroundColor(); -%End - virtual void selectAll(bool = 1); - virtual void selectToMatchingBrace(); - - virtual void setAutoCompletionCaseSensitivity(bool); - virtual void setAutoCompletionReplaceWord(bool); - virtual void setAutoCompletionShowSingle(bool); - virtual void setAutoCompletionSource(AutoCompletionSource); - virtual void setAutoCompletionThreshold(int); - virtual void setAutoIndent(bool); - virtual void setBraceMatching(BraceMatch); - virtual void setBackspaceUnindents(bool); -%If (QScintilla_1_3 -) - virtual void setCaretForegroundColor(const QColor &); - virtual void setCaretLineBackgroundColor(const QColor &); - virtual void setCaretLineVisible(bool); - virtual void setCaretWidth(int); -%End -%If (QScintilla_1_7 -) - virtual void setColor(const QColor &); -%End - virtual void setCursorPosition(int,int); - virtual void setEolMode(EolMode); - virtual void setEolVisibility(bool); - virtual void setFolding(FoldStyle); - - virtual void setIndentation(int,int); - virtual void setIndentationGuides(bool); - virtual void setIndentationGuidesBackgroundColor(const QColor &); - virtual void setIndentationGuidesForegroundColor(const QColor &); - virtual void setIndentationsUseTabs(bool); - virtual void setIndentationWidth(int); - - virtual void setLexer(QextScintillaLexer * = 0); - - virtual void setMarginsBackgroundColor(const QColor &); - virtual void setMarginsFont(const QFont &); - virtual void setMarginsForegroundColor(const QColor &); - - virtual void setMarginLineNumbers(int,bool); - virtual void setMarginMarkerMask(int,int); - virtual void setMarginSensitivity(int,bool); - virtual void setMarginWidth(int,int); - virtual void setMarginWidth(int,const QString &); - - virtual void setModified(bool); -%If (QScintilla_1_7 -) - virtual void setPaper(const QColor &); -%End - virtual void setReadOnly(bool); - virtual void setSelection(int,int,int,int); -%If (QScintilla_1_3 -) - virtual void setSelectionBackgroundColor(const QColor &); - virtual void setSelectionForegroundColor(const QColor &); -%End - virtual void setTabIndents(bool); - virtual void setTabWidth(int); - virtual void setText(const QString &); - virtual void setUtf8(bool); - virtual void setWhitespaceVisibility(WhitespaceVisibility); -%If (QScintilla_1_4 -) - virtual void setWrapMode(WrapMode); -%End - - virtual void undo(); - virtual void unindent(int); - - virtual void zoomIn(int); - virtual void zoomIn(); - virtual void zoomOut(int); - virtual void zoomOut(); - virtual void zoomTo(int); - -signals: - void cursorPositionChanged(int,int); - void copyAvailable(bool); - void marginClicked(int,int,Qt::ButtonState); - void modificationAttempted(); - void modificationChanged(bool); - void selectionChanged(); - void textChanged(); -%If (QScintilla_1_7 -) - void userListActivated(int, const QString &); -%End - -private: - QextScintilla(const QextScintilla &); - -}; diff --git a/python/pyqt/sip/qtext/qextscintillaapis.sip b/python/pyqt/sip/qtext/qextscintillaapis.sip deleted file mode 100644 index 5d3ca793..00000000 --- a/python/pyqt/sip/qtext/qextscintillaapis.sip +++ /dev/null @@ -1,42 +0,0 @@ -// This is the SIP interface definition for QextScintillaAPIs. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -class QextScintillaAPIs -{ -%TypeHeaderCode -#include -%End - -public: - QextScintillaAPIs(); - - void add(const QString &); - bool load(const QString &); - void clear(); - -private: - QextScintillaAPIs(const QextScintillaAPIs &); -}; diff --git a/python/pyqt/sip/qtext/qextscintillabase.sip b/python/pyqt/sip/qtext/qextscintillabase.sip deleted file mode 100644 index ac24cd37..00000000 --- a/python/pyqt/sip/qtext/qextscintillabase.sip +++ /dev/null @@ -1,1024 +0,0 @@ -// This is the SIP interface definition for QextScintillaBase. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -class QextScintillaBase : QWidget -{ -%TypeHeaderCode -#include -%End - -public: - enum { - SCI_START, - SCI_OPTIONAL_START, - SCI_LEXER_START, - SCI_ADDTEXT, - SCI_ADDSTYLEDTEXT, - SCI_INSERTTEXT, - SCI_CLEARALL, - SCI_CLEARDOCUMENTSTYLE, - SCI_GETLENGTH, - SCI_GETCHARAT, - SCI_GETCURRENTPOS, - SCI_GETANCHOR, - SCI_GETSTYLEAT, - SCI_REDO, - SCI_SETUNDOCOLLECTION, - SCI_SELECTALL, - SCI_SETSAVEPOINT, - SCI_GETSTYLEDTEXT, - SCI_CANREDO, - SCI_MARKERLINEFROMHANDLE, - SCI_MARKERDELETEHANDLE, - SCI_GETUNDOCOLLECTION, - SCI_GETVIEWWS, - SCI_SETVIEWWS, - SCI_POSITIONFROMPOINT, - SCI_POSITIONFROMPOINTCLOSE, - SCI_GOTOLINE, - SCI_GOTOPOS, - SCI_SETANCHOR, - SCI_GETCURLINE, - SCI_GETENDSTYLED, - SCI_CONVERTEOLS, - SCI_GETEOLMODE, - SCI_SETEOLMODE, - SCI_STARTSTYLING, - SCI_SETSTYLING, - SCI_GETBUFFEREDDRAW, - SCI_SETBUFFEREDDRAW, - SCI_SETTABWIDTH, - SCI_GETTABWIDTH, - SCI_SETCODEPAGE, - SCI_SETUSEPALETTE, - SCI_MARKERDEFINE, - SCI_MARKERSETFORE, - SCI_MARKERSETBACK, - SCI_MARKERADD, - SCI_MARKERDELETE, - SCI_MARKERDELETEALL, - SCI_MARKERGET, - SCI_MARKERNEXT, - SCI_MARKERPREVIOUS, - SCI_MARKERDEFINEPIXMAP, - SCI_SETMARGINTYPEN, - SCI_GETMARGINTYPEN, - SCI_SETMARGINWIDTHN, - SCI_GETMARGINWIDTHN, - SCI_SETMARGINMASKN, - SCI_GETMARGINMASKN, - SCI_SETMARGINSENSITIVEN, - SCI_GETMARGINSENSITIVEN, - SCI_STYLECLEARALL, - SCI_STYLESETFORE, - SCI_STYLESETBACK, - SCI_STYLESETBOLD, - SCI_STYLESETITALIC, - SCI_STYLESETSIZE, - SCI_STYLESETFONT, - SCI_STYLESETEOLFILLED, - SCI_STYLERESETDEFAULT, - SCI_STYLESETUNDERLINE, - SCI_STYLESETCASE, - SCI_STYLESETCHARACTERSET, - SCI_SETSELFORE, - SCI_SETSELBACK, - SCI_SETCARETFORE, - SCI_ASSIGNCMDKEY, - SCI_CLEARCMDKEY, - SCI_CLEARALLCMDKEYS, - SCI_SETSTYLINGEX, - SCI_STYLESETVISIBLE, - SCI_GETCARETPERIOD, - SCI_SETCARETPERIOD, - SCI_SETWORDCHARS, - SCI_BEGINUNDOACTION, - SCI_ENDUNDOACTION, - SCI_INDICSETSTYLE, - SCI_INDICGETSTYLE, - SCI_INDICSETFORE, - SCI_INDICGETFORE, - SCI_SETWHITESPACEFORE, - SCI_SETWHITESPACEBACK, - SCI_SETSTYLEBITS, - SCI_GETSTYLEBITS, - SCI_SETLINESTATE, - SCI_GETLINESTATE, - SCI_GETMAXLINESTATE, - SCI_GETCARETLINEVISIBLE, - SCI_SETCARETLINEVISIBLE, - SCI_GETCARETLINEBACK, - SCI_SETCARETLINEBACK, - SCI_STYLESETCHANGEABLE, - SCI_AUTOCSHOW, - SCI_AUTOCCANCEL, - SCI_AUTOCACTIVE, - SCI_AUTOCPOSSTART, - SCI_AUTOCCOMPLETE, - SCI_AUTOCSTOPS, - SCI_AUTOCSETSEPARATOR, - SCI_AUTOCGETSEPARATOR, - SCI_AUTOCSELECT, - SCI_AUTOCSETCANCELATSTART, - SCI_AUTOCGETCANCELATSTART, - SCI_AUTOCSETFILLUPS, - SCI_AUTOCSETCHOOSESINGLE, - SCI_AUTOCGETCHOOSESINGLE, - SCI_AUTOCSETIGNORECASE, - SCI_AUTOCGETIGNORECASE, - SCI_USERLISTSHOW, - SCI_AUTOCSETAUTOHIDE, - SCI_AUTOCGETAUTOHIDE, - SCI_AUTOCSETDROPRESTOFWORD, - SCI_AUTOCGETDROPRESTOFWORD, - SCI_SETINDENT, - SCI_GETINDENT, - SCI_SETUSETABS, - SCI_GETUSETABS, - SCI_SETLINEINDENTATION, - SCI_GETLINEINDENTATION, - SCI_GETLINEINDENTPOSITION, - SCI_GETCOLUMN, - SCI_SETHSCROLLBAR, - SCI_GETHSCROLLBAR, - SCI_SETINDENTATIONGUIDES, - SCI_GETINDENTATIONGUIDES, - SCI_SETHIGHLIGHTGUIDE, - SCI_GETHIGHLIGHTGUIDE, - SCI_GETLINEENDPOSITION, - SCI_GETCODEPAGE, - SCI_GETCARETFORE, - SCI_GETUSEPALETTE, - SCI_GETREADONLY, - SCI_SETCURRENTPOS, - SCI_SETSELECTIONSTART, - SCI_GETSELECTIONSTART, - SCI_SETSELECTIONEND, - SCI_GETSELECTIONEND, - SCI_SETPRINTMAGNIFICATION, - SCI_GETPRINTMAGNIFICATION, - SCI_SETPRINTCOLOURMODE, - SCI_GETPRINTCOLOURMODE, - SCI_FINDTEXT, - SCI_FORMATRANGE, - SCI_GETFIRSTVISIBLELINE, - SCI_GETLINE, - SCI_GETLINECOUNT, - SCI_SETMARGINLEFT, - SCI_GETMARGINLEFT, - SCI_SETMARGINRIGHT, - SCI_GETMARGINRIGHT, - SCI_GETMODIFY, - SCI_SETSEL, - SCI_GETSELTEXT, - SCI_GETTEXTRANGE, - SCI_HIDESELECTION, - SCI_POINTXFROMPOSITION, - SCI_POINTYFROMPOSITION, - SCI_LINEFROMPOSITION, - SCI_POSITIONFROMLINE, - SCI_LINESCROLL, - SCI_SCROLLCARET, - SCI_REPLACESEL, - SCI_SETREADONLY, - SCI_NULL, - SCI_CANPASTE, - SCI_CANUNDO, - SCI_EMPTYUNDOBUFFER, - SCI_UNDO, - SCI_CUT, - SCI_COPY, - SCI_PASTE, - SCI_CLEAR, - SCI_SETTEXT, - SCI_GETTEXT, - SCI_GETTEXTLENGTH, - SCI_GETDIRECTFUNCTION, - SCI_GETDIRECTPOINTER, - SCI_SETOVERTYPE, - SCI_GETOVERTYPE, - SCI_SETCARETWIDTH, - SCI_GETCARETWIDTH, - SCI_SETTARGETSTART, - SCI_GETTARGETSTART, - SCI_SETTARGETEND, - SCI_GETTARGETEND, - SCI_REPLACETARGET, - SCI_REPLACETARGETRE, - SCI_SEARCHINTARGET, - SCI_SETSEARCHFLAGS, - SCI_GETSEARCHFLAGS, - SCI_CALLTIPSHOW, - SCI_CALLTIPCANCEL, - SCI_CALLTIPACTIVE, - SCI_CALLTIPPOSSTART, - SCI_CALLTIPSETHLT, - SCI_CALLTIPSETBACK, - SCI_CALLTIPSETFORE, - SCI_CALLTIPSETFOREHLT, -%If (QScintilla_1_6 -) - SCI_AUTOCSETMAXWIDTH, - SCI_AUTOCGETMAXWIDTH, - SCI_AUTOCSETMAXHEIGHT, - SCI_AUTOCGETMAXHEIGHT, -%End -%If (QScintilla_1_7 -) - SCI_CALLTIPUSESTYLE, -%End - SCI_VISIBLEFROMDOCLINE, - SCI_DOCLINEFROMVISIBLE, - SCI_SETFOLDLEVEL, - SCI_GETFOLDLEVEL, - SCI_GETLASTCHILD, - SCI_GETFOLDPARENT, - SCI_SHOWLINES, - SCI_HIDELINES, - SCI_GETLINEVISIBLE, - SCI_SETFOLDEXPANDED, - SCI_GETFOLDEXPANDED, - SCI_TOGGLEFOLD, - SCI_ENSUREVISIBLE, - SCI_SETFOLDFLAGS, - SCI_ENSUREVISIBLEENFORCEPOLICY, -%If (QScintilla_1_6 -) - SCI_WRAPCOUNT, -%End - SCI_SETTABINDENTS, - SCI_GETTABINDENTS, - SCI_SETBACKSPACEUNINDENTS, - SCI_GETBACKSPACEUNINDENTS, - SCI_SETMOUSEDWELLTIME, - SCI_GETMOUSEDWELLTIME, - SCI_WORDSTARTPOSITION, - SCI_WORDENDPOSITION, - SCI_SETWRAPMODE, - SCI_GETWRAPMODE, - SCI_SETLAYOUTCACHE, - SCI_GETLAYOUTCACHE, - SCI_SETSCROLLWIDTH, - SCI_GETSCROLLWIDTH, - SCI_TEXTWIDTH, - SCI_SETENDATLASTLINE, - SCI_GETENDATLASTLINE, - SCI_TEXTHEIGHT, - SCI_SETVSCROLLBAR, - SCI_GETVSCROLLBAR, - SCI_APPENDTEXT, - SCI_GETTWOPHASEDRAW, - SCI_SETTWOPHASEDRAW, - SCI_AUTOCGETTYPESEPARATOR, - SCI_AUTOCSETTYPESEPARATOR, - SCI_TARGETFROMSELECTION, - SCI_LINESJOIN, - SCI_LINESSPLIT, - SCI_SETFOLDMARGINCOLOUR, - SCI_SETFOLDMARGINHICOLOUR, - SCI_LINEDOWN, - SCI_LINEDOWNEXTEND, - SCI_LINEUP, - SCI_LINEUPEXTEND, - SCI_CHARLEFT, - SCI_CHARLEFTEXTEND, - SCI_CHARRIGHT, - SCI_CHARRIGHTEXTEND, - SCI_WORDLEFT, - SCI_WORDLEFTEXTEND, - SCI_WORDRIGHT, - SCI_WORDRIGHTEXTEND, - SCI_HOME, - SCI_HOMEEXTEND, - SCI_LINEEND, - SCI_LINEENDEXTEND, - SCI_DOCUMENTSTART, - SCI_DOCUMENTSTARTEXTEND, - SCI_DOCUMENTEND, - SCI_DOCUMENTENDEXTEND, - SCI_PAGEUP, - SCI_PAGEUPEXTEND, - SCI_PAGEDOWN, - SCI_PAGEDOWNEXTEND, - SCI_EDITTOGGLEOVERTYPE, - SCI_CANCEL, - SCI_DELETEBACK, - SCI_TAB, - SCI_BACKTAB, - SCI_NEWLINE, - SCI_FORMFEED, - SCI_VCHOME, - SCI_VCHOMEEXTEND, - SCI_ZOOMIN, - SCI_ZOOMOUT, - SCI_DELWORDLEFT, - SCI_DELWORDRIGHT, - SCI_LINECUT, - SCI_LINEDELETE, - SCI_LINETRANSPOSE, - SCI_LOWERCASE, - SCI_UPPERCASE, - SCI_LINESCROLLDOWN, - SCI_LINESCROLLUP, - SCI_DELETEBACKNOTLINE, - SCI_HOMEDISPLAY, - SCI_HOMEDISPLAYEXTEND, - SCI_LINEENDDISPLAY, - SCI_LINEENDDISPLAYEXTEND, - SCI_MOVECARETINSIDEVIEW, - SCI_LINELENGTH, - SCI_BRACEHIGHLIGHT, - SCI_BRACEBADLIGHT, - SCI_BRACEMATCH, - SCI_GETVIEWEOL, - SCI_SETVIEWEOL, - SCI_GETDOCPOINTER, - SCI_SETDOCPOINTER, - SCI_SETMODEVENTMASK, - SCI_GETEDGECOLUMN, - SCI_SETEDGECOLUMN, - SCI_GETEDGEMODE, - SCI_SETEDGEMODE, - SCI_GETEDGECOLOUR, - SCI_SETEDGECOLOUR, - SCI_SEARCHANCHOR, - SCI_SEARCHNEXT, - SCI_SEARCHPREV, - SCI_LINESONSCREEN, - SCI_USEPOPUP, - SCI_SELECTIONISRECTANGLE, - SCI_SETZOOM, - SCI_GETZOOM, - SCI_CREATEDOCUMENT, - SCI_ADDREFDOCUMENT, - SCI_RELEASEDOCUMENT, - SCI_GETMODEVENTMASK, - SCI_SETFOCUS, - SCI_GETFOCUS, - SCI_SETSTATUS, - SCI_GETSTATUS, - SCI_SETMOUSEDOWNCAPTURES, - SCI_GETMOUSEDOWNCAPTURES, - SCI_SETCURSOR, - SCI_GETCURSOR, - SCI_SETCONTROLCHARSYMBOL, - SCI_GETCONTROLCHARSYMBOL, - SCI_WORDPARTLEFT, - SCI_WORDPARTLEFTEXTEND, - SCI_WORDPARTRIGHT, - SCI_WORDPARTRIGHTEXTEND, - SCI_SETVISIBLEPOLICY, - SCI_DELLINELEFT, - SCI_DELLINERIGHT, - SCI_SETXOFFSET, - SCI_GETXOFFSET, - SCI_CHOOSECARETX, - SCI_GRABFOCUS, - SCI_SETXCARETPOLICY, - SCI_SETYCARETPOLICY, - SCI_LINEDUPLICATE, - SCI_REGISTERIMAGE, - SCI_SETPRINTWRAPMODE, - SCI_GETPRINTWRAPMODE, - SCI_CLEARREGISTEREDIMAGES, - SCI_STYLESETHOTSPOT, - SCI_SETHOTSPOTACTIVEFORE, - SCI_SETHOTSPOTACTIVEBACK, - SCI_SETHOTSPOTACTIVEUNDERLINE, - SCI_PARADOWN, - SCI_PARADOWNEXTEND, - SCI_PARAUP, - SCI_PARAUPEXTEND, -%If (QScintilla_1_1 -) - SCI_POSITIONBEFORE, - SCI_POSITIONAFTER, - SCI_COPYRANGE, - SCI_COPYTEXT, -%End -%If (QScintilla_1_3 -) - SCI_SETSELECTIONMODE, - SCI_GETSELECTIONMODE, - SCI_GETLINESELSTARTPOSITION, - SCI_GETLINESELENDPOSITION, - SCI_LINEDOWNRECTEXTEND, - SCI_LINEUPRECTEXTEND, - SCI_CHARLEFTRECTEXTEND, - SCI_CHARRIGHTRECTEXTEND, - SCI_HOMERECTEXTEND, - SCI_VCHOMERECTEXTEND, - SCI_LINEENDRECTEXTEND, - SCI_PAGEUPRECTEXTEND, - SCI_PAGEDOWNRECTEXTEND, - SCI_STUTTEREDPAGEUP, - SCI_STUTTEREDPAGEUPEXTEND, - SCI_STUTTEREDPAGEDOWN, - SCI_STUTTEREDPAGEDOWNEXTEND, - SCI_WORDLEFTEND, - SCI_WORDLEFTENDEXTEND, - SCI_WORDRIGHTEND, - SCI_WORDRIGHTENDEXTEND, - SCI_SETWHITESPACECHARS, - SCI_SETCHARSDEFAULT, - SCI_AUTOCGETCURRENT, - SCI_ALLOCATE, -%End - SCI_HOMEWRAP, - SCI_HOMEWRAPEXTEND, - SCI_LINEENDWRAP, - SCI_LINEENDWRAPEXTEND, - SCI_VCHOMEWRAP, - SCI_VCHOMEWRAPEXTEND, -%If (QScintilla_1_1 -) - SCI_LINECOPY, -%End -%If (QScintilla_1_6 -) - SCI_FINDCOLUMN, - SCI_GETCARETSTICKY, - SCI_SETCARETSTICKY, - SCI_TOGGLECARETSTICKY, -%End -%If (QScintilla_1_3 -) - SCI_SETWRAPVISUALFLAGS, - SCI_GETWRAPVISUALFLAGS, - SCI_SETWRAPVISUALFLAGSLOCATION, - SCI_GETWRAPVISUALFLAGSLOCATION, - SCI_SETWRAPSTARTINDENT, - SCI_GETWRAPSTARTINDENT, -%End -%If (QScintilla_1_7 -) - SCI_MARKERADDSET, - SCI_SETPASTECONVERTENDINGS - SCI_GETPASTECONVERTENDINGS - SCI_SELECTIONDUPLICATE - SCI_SETCARETLINEBACKALPHA - SCI_GETCARETLINEBACKALPHA - SCI_MARKERSETALPHA, - SCI_GETSELALPHA, - SCI_SETSELALPHA, -%End - SCI_STARTRECORD, - SCI_STOPRECORD, - SCI_SETLEXER, - SCI_GETLEXER, - SCI_COLOURISE, - SCI_SETPROPERTY, - SCI_SETKEYWORDS, - SCI_SETLEXERLANGUAGE, -%If (QScintilla_1_6 -) - SCI_LOADLEXERLIBRARY, - SCI_GETPROPERTY, - SCI_GETPROPERTYEXPANDED, - SCI_GETPROPERTYINT, -%End -%If (QScintilla_1_7 -) - SCI_GETSTYLEBITSNEEDED, -%End - }; - -%If (QScintilla_1_7 -) - enum - { - SC_ALPHA_TRANSPARENT, - SC_ALPHA_OPAQUE, - SC_ALPHA_NOALPHA, - }; -%End - -%If (QScintilla_1_3 -) - enum - { - SC_WRAPVISUALFLAG_NONE, - SC_WRAPVISUALFLAG_END, - SC_WRAPVISUALFLAG_START - }; - - enum - { - SC_WRAPVISUALFLAGLOC_DEFAULT, - SC_WRAPVISUALFLAGLOC_END_BY_TEXT, - SC_WRAPVISUALFLAGLOC_START_BY_TEXT - }; - - enum { - SC_SEL_STREAM, - SC_SEL_RECTANGLE, - SC_SEL_LINES - }; -%End - - enum { - SCWS_INVISIBLE, - SCWS_VISIBLEALWAYS, - SCWS_VISIBLEAFTERINDENT - }; - - enum { - SC_EOL_CRLF, - SC_EOL_CR, - SC_EOL_LF - }; - - enum { - SC_CP_DBCS, - SC_CP_UTF8 - }; - - enum { - SC_MARK_CIRCLE, - SC_MARK_ROUNDRECT, - SC_MARK_ARROW, - SC_MARK_SMALLRECT, - SC_MARK_SHORTARROW, - SC_MARK_EMPTY, - SC_MARK_ARROWDOWN, - SC_MARK_MINUS, - SC_MARK_PLUS, - SC_MARK_VLINE, - SC_MARK_LCORNER, - SC_MARK_TCORNER, - SC_MARK_BOXPLUS, - SC_MARK_BOXPLUSCONNECTED, - SC_MARK_BOXMINUS, - SC_MARK_BOXMINUSCONNECTED, - SC_MARK_LCORNERCURVE, - SC_MARK_TCORNERCURVE, - SC_MARK_CIRCLEPLUS, - SC_MARK_CIRCLEPLUSCONNECTED, - SC_MARK_CIRCLEMINUS, - SC_MARK_CIRCLEMINUSCONNECTED, - SC_MARK_BACKGROUND, - SC_MARK_DOTDOTDOT, - SC_MARK_ARROWS, - SC_MARK_PIXMAP, -%If (QScintilla_1_6 -) - SC_MARK_FULLRECT, -%End - SC_MARK_CHARACTER - }; - - enum { - SC_MARKNUM_FOLDEREND, - SC_MARKNUM_FOLDEROPENMID, - SC_MARKNUM_FOLDERMIDTAIL, - SC_MARKNUM_FOLDERTAIL, - SC_MARKNUM_FOLDERSUB, - SC_MARKNUM_FOLDER, - SC_MARKNUM_FOLDEROPEN, - SC_MASK_FOLDERS - }; - - enum { - SC_MARGIN_SYMBOL, - SC_MARGIN_NUMBER, -%If (QScintilla_1_7 -) - SC_MARGIN_BACK, - SC_MARGIN_FORE, -%End - }; - - enum { - STYLE_DEFAULT, - STYLE_LINENUMBER, - STYLE_BRACELIGHT, - STYLE_BRACEBAD, - STYLE_CONTROLCHAR, - STYLE_INDENTGUIDE, -%If (QScintilla_1_7 -) - STYLE_CALLTIP, -%End - STYLE_LASTPREDEFINED, -%If (QScintilla_1_3 -) - STYLE_MAX -%End - }; - - enum { - SC_CHARSET_ANSI, - SC_CHARSET_DEFAULT, - SC_CHARSET_BALTIC, - SC_CHARSET_CHINESEBIG5, - SC_CHARSET_EASTEUROPE, - SC_CHARSET_GB2312, - SC_CHARSET_GREEK, - SC_CHARSET_HANGUL, - SC_CHARSET_MAC, - SC_CHARSET_OEM, - SC_CHARSET_RUSSIAN, - SC_CHARSET_SHIFTJIS, - SC_CHARSET_SYMBOL, - SC_CHARSET_TURKISH, - SC_CHARSET_JOHAB, - SC_CHARSET_HEBREW, - SC_CHARSET_ARABIC, - SC_CHARSET_VIETNAMESE, - SC_CHARSET_THAI, -%If (QScintilla_1_6 -) - SC_CHARSET_8859_15, -%End - }; - - enum { - SC_CASE_MIXED, - SC_CASE_UPPER, - SC_CASE_LOWER - }; - - enum { - INDIC_MAX, - INDIC_PLAIN, - INDIC_SQUIGGLE, - INDIC_TT, - INDIC_DIAGONAL, - INDIC_STRIKE, -%If (QScintilla_1_2 -) - INDIC_HIDDEN, -%End -%If (QScintilla_1_3 -) - INDIC_BOX, -%End -%If (QScintilla_1_7 -) - INDIC_ROUNDBOX, -%End - INDIC0_MASK, - INDIC1_MASK, - INDIC2_MASK, - INDICS_MASK - }; - - enum { - SC_PRINT_NORMAL, - SC_PRINT_INVERTLIGHT, - SC_PRINT_BLACKONWHITE, - SC_PRINT_COLOURONWHITE, - SC_PRINT_COLOURONWHITEDEFAULTBG - }; - - enum { - SCFIND_WHOLEWORD, - SCFIND_MATCHCASE, - SCFIND_WORDSTART, - SCFIND_REGEXP, - SCFIND_POSIX - }; - - enum { - SC_FOLDLEVELBASE, - SC_FOLDLEVELWHITEFLAG, - SC_FOLDLEVELHEADERFLAG, - SC_FOLDLEVELBOXHEADERFLAG, - SC_FOLDLEVELBOXFOOTERFLAG, - SC_FOLDLEVELCONTRACTED, - SC_FOLDLEVELUNINDENT, - SC_FOLDLEVELNUMBERMASK - }; - - enum - { - SC_FOLDFLAG_BOX, - SC_FOLDFLAG_LINEBEFORE_EXPANDED, - SC_FOLDFLAG_LINEBEFORE_CONTRACTED, - SC_FOLDFLAG_LINEAFTER_EXPANDED, - SC_FOLDFLAG_LINEAFTER_CONTRACTED, - SC_FOLDFLAG_LEVELNUMBERS - }; - - enum { - SC_TIME_FOREVER - }; - - enum { - SC_WRAP_NONE, - SC_WRAP_WORD, -%If (QScintilla_1_6 -) - SC_WRAP_CHAR, -%End - }; - - enum { - SC_CACHE_NONE, - SC_CACHE_CARET, - SC_CACHE_PAGE, - SC_CACHE_DOCUMENT - }; - - enum { - EDGE_NONE, - EDGE_LINE, - EDGE_BACKGROUND - }; - - enum { - SC_CURSORNORMAL, - SC_CURSORWAIT - }; - - enum { - VISIBLE_SLOP, - VISIBLE_STRICT - }; - - enum { - CARET_SLOP, - CARET_STRICT, - CARET_JUMPS, - CARET_EVEN - }; - - enum { - SC_MOD_INSERTTEXT, - SC_MOD_DELETETEXT, - SC_MOD_CHANGESTYLE, - SC_MOD_CHANGEFOLD, - SC_PERFORMED_USER, - SC_PERFORMED_UNDO, - SC_PERFORMED_REDO, -%If (QScintilla_1_6 -) - SC_MULTISTEPUNDOREDO, -%End - SC_LASTSTEPINUNDOREDO, - SC_MOD_CHANGEMARKER, - SC_MOD_BEFOREINSERT, - SC_MOD_BEFOREDELETE, -%If (QScintilla_1_6 -) - SC_MULTILINEUNDOREDO, -%End - SC_MODEVENTMASKALL - }; - - enum { - SCK_DOWN, - SCK_UP, - SCK_LEFT, - SCK_RIGHT, - SCK_HOME, - SCK_END, - SCK_PRIOR, - SCK_NEXT, - SCK_DELETE, - SCK_INSERT, - SCK_ESCAPE, - SCK_BACK, - SCK_TAB, - SCK_RETURN, - SCK_ADD, - SCK_SUBTRACT, - SCK_DIVIDE - }; - - enum { -%If (QScintilla_1_7 -) - SCMOD_NORM, -%End - SCMOD_SHIFT, - SCMOD_CTRL, - SCMOD_ALT - }; - - enum { - SCLEX_CONTAINER, - SCLEX_NULL, - SCLEX_PYTHON, - SCLEX_CPP, - SCLEX_HTML, - SCLEX_XML, - SCLEX_PERL, - SCLEX_SQL, - SCLEX_VB, - SCLEX_PROPERTIES, - SCLEX_ERRORLIST, - SCLEX_MAKEFILE, - SCLEX_BATCH, - SCLEX_LATEX, - SCLEX_LUA, - SCLEX_DIFF, - SCLEX_CONF, - SCLEX_PASCAL, - SCLEX_AVE, - SCLEX_ADA, - SCLEX_LISP, - SCLEX_RUBY, - SCLEX_EIFFEL, - SCLEX_EIFFELKW, - SCLEX_TCL, - SCLEX_NNCRONTAB, - SCLEX_BULLANT, - SCLEX_VBSCRIPT, - SCLEX_ASP, - SCLEX_PHP, - SCLEX_BAAN, - SCLEX_MATLAB, -%If (QScintilla_1_2 -) - SCLEX_SCRIPTOL, -%End - SCLEX_ASM, - SCLEX_CPPNOCASE, - SCLEX_FORTRAN, - SCLEX_F77, - SCLEX_CSS, - SCLEX_POV, -%If (QScintilla_1_1 -) - SCLEX_LOUT, - SCLEX_ESCRIPT, -%End -%If (QScintilla_1_2 -) - SCLEX_PS, - SCLEX_NSIS, - SCLEX_MMIXAL, -%End -%If (QScintilla_1_3 -) - SCLEX_CLW, - SCLEX_CLWNOCASE, - SCLEX_LOT, - SCLEX_YAML, - SCLEX_TEX, - SCLEX_METAPOST, - SCLEX_POWERBASIC, - SCLEX_FORTH, - SCLEX_ERLANG, - SCLEX_OCTAVE, - SCLEX_MSSQL, - SCLEX_VERILOG, - SCLEX_KIX, - SCLEX_GUI4CLI, - SCLEX_SPECMAN, - SCLEX_AU3, - SCLEX_APDL, - SCLEX_BASH, -%End -%If (QScintilla_1_5 -) - SCLEX_ASN1, - SCLEX_VHDL, -%End -%If (QScintilla_1_6 -) - SCLEX_CAML, - SCLEX_BLITZBASIC, - SCLEX_PUREBASIC, - SCLEX_HASKELL, - SCLEX_PHPSCRIPT, - SCLEX_TADS3, - SCLEX_REBOL, - SCLEX_SMALLTALK, - SCLEX_FLAGSHIP, - SCLEX_CSOUND, -%End -%If (QScintilla_1_7 -) - SCLEX_FREEBASIC, - SCLEX_INNOSETUP, - SCLEX_OPAL, - SCLEX_SPICE, -%End - }; - - QextScintillaBase(QWidget * /TransferThis/,const char *, - WFlags = 0); - -%ConvertToSubClassCode - static struct class_graph { - char *name; - sipWrapperType **type; - int yes, no; - } graph[] = { - {sipName_QextScintillaLexer, &sipClass_QextScintillaLexer, 3, 1}, - {sipName_QextScintillaBase, &sipClass_QextScintillaBase, 15, 2}, - {sipName_QextScintillaMacro, &sipClass_QextScintillaMacro, -1, -1}, -#if QSCINTILLA_VERSION >= 0x010300 - {sipName_QextScintillaLexerPerl, &sipClass_QextScintillaLexerPerl, -1, 4}, -#else - {NULL, NULL, -1, 4}, -#endif -#if QSCINTILLA_VERSION >= 0x010100 - {sipName_QextScintillaLexerHTML, &sipClass_QextScintillaLexerHTML, -1, 5}, -#else - {NULL, NULL, -1, 5}, -#endif -#if QSCINTILLA_VERSION >= 0x010500 - {sipName_QextScintillaLexerRuby, &sipClass_QextScintillaLexerRuby, -1, 6}, -#else - {NULL, NULL, -1, 6}, -#endif - {sipName_QextScintillaLexerCPP, &sipClass_QextScintillaLexerCPP, 11, 7}, - {sipName_QextScintillaLexerPython, &sipClass_QextScintillaLexerPython, -1, 8}, -#if QSCINTILLA_VERSION >= 0x010100 - {sipName_QextScintillaLexerSQL, &sipClass_QextScintillaLexerSQL, -1, 9}, -#else - {NULL, NULL, -1, 9}, -#endif -#if QSCINTILLA_VERSION >= 0x010400 - {sipName_QextScintillaLexerBash, &sipClass_QextScintillaLexerBash, -1, 10}, -#else - {NULL, NULL, -1, 10}, -#endif -#if QSCINTILLA_VERSION >= 0x010500 - {sipName_QextScintillaLexerLua, &sipClass_QextScintillaLexerLua, -1, -1}, -#else - {NULL, NULL, -1, -1}, -#endif - {sipName_QextScintillaLexerIDL, &sipClass_QextScintillaLexerIDL, -1, 12}, - {sipName_QextScintillaLexerJavaScript, &sipClass_QextScintillaLexerJavaScript, -1, 13}, - {sipName_QextScintillaLexerCSharp, &sipClass_QextScintillaLexerCSharp, -1, 14}, - {sipName_QextScintillaLexerJava, &sipClass_QextScintillaLexerJava, -1, -1}, - {sipName_QextScintilla, &sipClass_QextScintilla, -1, -1}, - }; - - int i = 0; - - sipClass = NULL; - - do - { - struct class_graph *cg = &graph[i]; - - if (cg->name != NULL && sipCpp->inherits(cg->name)) - { - sipClass = *cg->type; - i = cg->yes; - } - else - i = cg->no; - } - while (i >= 0); -%End - -%If (QScintilla_1_3 -) - QextScintillaBase *pool(); -%End - - long SendScintilla(unsigned int,unsigned long = 0,long = 0); - long SendScintilla(unsigned int,unsigned long,const char *); - long SendScintilla(unsigned int,const char *); - long SendScintilla(unsigned int,const char *,const char *); - long SendScintilla(unsigned int,long); - //long SendScintilla(unsigned int,int); - long SendScintilla(unsigned int,long,long,char *); - long SendScintilla(unsigned int,unsigned long,const QColor &); - long SendScintilla(unsigned int,const QColor &); - long SendScintilla(unsigned int,unsigned long,QPainter *,const QRect &, - long,long); - long SendScintilla(unsigned int,unsigned long,const QPixmap *); - - virtual QSize sizeHint() const; -%If (QScintilla_1_5 -) - QWidget *viewport() const; -%End - -signals: - void QSCN_SELCHANGED(bool); - - void SCEN_CHANGE(); - -%If (QScintilla_1_6 -) - void SCN_AUTOCSELECTION(const char *,int); -%End - void SCN_CHARADDED(int); - void SCN_CALLTIPCLICK(int); - void SCN_DOUBLECLICK(); - void SCN_DWELLEND(int,int,int); - void SCN_DWELLSTART(int,int,int); - void SCN_HOTSPOTCLICK(int,int); - void SCN_HOTSPOTDOUBLECLICK(int,int); - void SCN_MACRORECORD(unsigned int,unsigned long,long); - void SCN_MARGINCLICK(int,int,int); - void SCN_MODIFIED(int,int,const char *,int,int,int,int,int); - void SCN_MODIFYATTEMPTRO(); - void SCN_NEEDSHOWN(int,int); - void SCN_PAINTED(); - void SCN_SAVEPOINTLEFT(); - void SCN_SAVEPOINTREACHED(); - void SCN_STYLENEEDED(int); - void SCN_UPDATEUI(); - void SCN_USERLISTSELECTION(const char *,int); - void SCN_ZOOM(); - -protected: - bool eventFilter(QObject *,QEvent *); - virtual void keyPressEvent(QKeyEvent *); - virtual void focusInEvent(QFocusEvent *); - virtual void focusOutEvent(QFocusEvent *); - virtual bool focusNextPrevChild(bool); -%If (QScintilla_1_5 -) - virtual void startDrag(); -%End - -private: - QextScintillaBase(const QextScintillaBase &); -}; diff --git a/python/pyqt/sip/qtext/qextscintillacommand.sip b/python/pyqt/sip/qtext/qextscintillacommand.sip deleted file mode 100644 index 5d416ea2..00000000 --- a/python/pyqt/sip/qtext/qextscintillacommand.sip +++ /dev/null @@ -1,44 +0,0 @@ -// This is the SIP interface definition for QextScintillaCommand. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -class QextScintillaCommand -{ -%TypeHeaderCode -#include -%End - -public: - void setKey(int); - void setAlternateKey(int); - int key() const; - int alternateKey() const; - static bool validKey(int); - QString description() const; - -private: - QextScintillaCommand(QextScintilla *,int,int,const char *); - QextScintillaCommand(const QextScintillaCommand &); -}; diff --git a/python/pyqt/sip/qtext/qextscintillacommandset.sip b/python/pyqt/sip/qtext/qextscintillacommandset.sip deleted file mode 100644 index c37ec586..00000000 --- a/python/pyqt/sip/qtext/qextscintillacommandset.sip +++ /dev/null @@ -1,52 +0,0 @@ -// This is the SIP interface definition for the QextScintillaCommandSet. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -class QextScintillaCommandSet -{ -%TypeHeaderCode -#include -%End - -public: - bool readSettings(QSettings &,const char * = "/Scintilla"); - bool writeSettings(QSettings &,const char * = "/Scintilla"); - -%If (QScintilla_1_4 -) - QPtrList &commands(); -%End -%If (- QScintilla_1_4) - const QPtrList &commands() const; -%End - -%If (QScintilla_1_4 -) - void clearKeys(); - void clearAlternateKeys(); -%End - -private: - QextScintillaCommandSet(QextScintilla *); - QextScintillaCommandSet(const QextScintillaCommandSet &); -}; diff --git a/python/pyqt/sip/qtext/qextscintilladocument.sip b/python/pyqt/sip/qtext/qextscintilladocument.sip deleted file mode 100644 index 4c57ae0f..00000000 --- a/python/pyqt/sip/qtext/qextscintilladocument.sip +++ /dev/null @@ -1,42 +0,0 @@ -// This is the SIP interface definition for QextScintillaDocument. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (QScintilla_1_3 -) - -class QextScintillaDocument -{ -%TypeHeaderCode -#include -%End - -public: - QextScintillaDocument(); - virtual ~QextScintillaDocument(); - - QextScintillaDocument(const QextScintillaDocument &); -}; - -%End diff --git a/python/pyqt/sip/qtext/qextscintillalexer.sip b/python/pyqt/sip/qtext/qextscintillalexer.sip deleted file mode 100644 index d7e7eeeb..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexer.sip +++ /dev/null @@ -1,80 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexer. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -class QextScintillaLexer : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QextScintillaLexer(QObject * /TransferThis/ = 0,const char * = 0); - - virtual const char *language() const = 0; - virtual const char *lexer() const = 0; - int autoIndentStyle(); - virtual QColor color(int) const; - virtual bool eolFill(int) const; - virtual QFont font(int) const; - virtual const char *keywords(int) const; - virtual QString description(int) const = 0; - virtual QColor paper(int) const; - virtual QFont defaultFont() const; -%If (QScintilla_1_7 -) - virtual QColor defaultColor() const; - virtual QColor defaultPaper() const; -%End - virtual void refreshProperties(); - bool readSettings(QSettings &,const char * = "/Scintilla"); - bool writeSettings(QSettings &,const char * = "/Scintilla") const; - -public slots: - virtual void setAutoIndentStyle(int); - virtual void setColor(const QColor &,int = -1); - virtual void setDefaultFont(const QFont &); -%If (QScintilla_1_7 -) - virtual void setDefaultColor(const QColor &); - virtual void setDefaultPaper(const QColor &); -%End - virtual void setEolFill(bool,int = -1); - virtual void setFont(const QFont &,int = -1); - virtual void setPaper(const QColor &,int = -1); - -signals: - void colorChanged(const QColor &,int); - void eolFillChanged(bool,int); - void fontChanged(const QFont &,int); - void paperChanged(const QColor &,int); - void propertyChanged(const char *,const char *); - -protected: - virtual bool readProperties(QSettings &,const QString &); - virtual bool writeProperties(QSettings &,const QString &) const; - -private: - QextScintillaLexer(const QextScintillaLexer &); - -}; diff --git a/python/pyqt/sip/qtext/qextscintillalexerbash.sip b/python/pyqt/sip/qtext/qextscintillalexerbash.sip deleted file mode 100644 index 2ffb8a6e..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexerbash.sip +++ /dev/null @@ -1,80 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerBash. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (QScintilla_1_4 -) - -class QextScintillaLexerBash : QextScintillaLexer -{ -%TypeHeaderCode -#include -%End - -public: - enum { - Default, - Error, - Comment, - Number, - Keyword, - DoubleQuotedString, - SingleQuotedString, - Operator, - Identifier, - Scalar, - ParameterExpansion, - Backticks, - HereDocumentDelimiter, - SingleQuotedHereDocument - }; - - QextScintillaLexerBash(QObject * /TransferThis/ = 0,const char * = 0); - - const char *language() const; - const char *lexer() const; - QColor color(int) const; - bool eolFill(int) const; - QFont font(int) const; - const char *keywords(int) const; - QString description(int) const; - QColor paper(int) const; - - void refreshProperties(); - bool foldComments() const; - bool foldCompact() const; - -public slots: - virtual void setFoldComments(bool); - virtual void setFoldCompact(bool); - -protected: - bool readProperties(QSettings &,const QString &); - bool writeProperties(QSettings &,const QString &) const; - -private: - QextScintillaLexerBash(const QextScintillaLexerBash &); -}; - -%End diff --git a/python/pyqt/sip/qtext/qextscintillalexerbatch.sip b/python/pyqt/sip/qtext/qextscintillalexerbatch.sip deleted file mode 100644 index 69a70893..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexerbatch.sip +++ /dev/null @@ -1,62 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerBatch. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (QScintilla_1_6 -) - -class QextScintillaLexerBatch : QextScintillaLexer -{ -%TypeHeaderCode -#include -%End - -public: - enum { - Default, - Comment, - Keyword, - Label, - HideCommandChar, - ExternalCommand, - Variable, - Operator - }; - - QextScintillaLexerBatch(QObject * /TransferThis/ = 0,const char * = 0); - - const char *language() const; - const char *lexer() const; - QColor color(int) const; - bool eolFill(int) const; - QFont font(int) const; - const char *keywords(int) const; - QString description(int) const; - QColor paper(int) const; - -private: - QextScintillaLexerBatch(const QextScintillaLexerBatch &); -}; - -%End diff --git a/python/pyqt/sip/qtext/qextscintillalexercpp.sip b/python/pyqt/sip/qtext/qextscintillalexercpp.sip deleted file mode 100644 index 0525f326..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexercpp.sip +++ /dev/null @@ -1,98 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerCPP. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -class QextScintillaLexerCPP : QextScintillaLexer -{ -%TypeHeaderCode -#include -%End - -public: - enum { -%If (QScintilla_1_1 -) - Default, -%End - WhiteSpace, - Comment, - CommentLine, - CommentDoc, - Number, - Keyword, - DoubleQuotedString, - SingleQuotedString, - UUID, - PreProcessor, - Operator, - Identifier, - UnclosedString, - VerbatimString, - Regex, - CommentLineDoc, - KeywordSet2, - CommentDocKeyword, - CommentDocKeywordError, -%If (QScintilla_1_1 -) - GlobalClass, -%End - }; - - QextScintillaLexerCPP(QObject * /TransferThis/ = 0,const char * = 0, - bool = 0); - - const char *language() const; - const char *lexer() const; - QColor color(int) const; - bool eolFill(int) const; - QFont font(int) const; - const char *keywords(int) const; - QString description(int) const; - QColor paper(int) const; - - void refreshProperties(); -%If (QScintilla_1_1 -) - bool foldAtElse() const; -%End - bool foldComments() const; - bool foldCompact() const; - bool foldPreprocessor() const; - bool stylePreprocessor() const; - -public slots: -%If (QScintilla_1_1 -) - virtual void setFoldAtElse(bool); -%End - virtual void setFoldComments(bool); - virtual void setFoldCompact(bool); - virtual void setFoldPreprocessor(bool); - virtual void setStylePreprocessor(bool); - -protected: - bool readProperties(QSettings &,const QString &); - bool writeProperties(QSettings &,const QString &) const; - -private: - QextScintillaLexerCPP(const QextScintillaLexerCPP &); -}; diff --git a/python/pyqt/sip/qtext/qextscintillalexercsharp.sip b/python/pyqt/sip/qtext/qextscintillalexercsharp.sip deleted file mode 100644 index e5094f5d..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexercsharp.sip +++ /dev/null @@ -1,47 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerCSharp. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -class QextScintillaLexerCSharp : QextScintillaLexerCPP -{ -%TypeHeaderCode -#include -%End - -public: - QextScintillaLexerCSharp(QObject * /TransferThis/ = 0, - const char * = 0); - - const char *language() const; - QColor color(int) const; - bool eolFill(int) const; - QFont font(int) const; - const char *keywords(int) const; - QString description(int) const; - QColor paper(int) const; - -private: - QextScintillaLexerCSharp(const QextScintillaLexerCSharp &); -}; diff --git a/python/pyqt/sip/qtext/qextscintillalexercss.sip b/python/pyqt/sip/qtext/qextscintillalexercss.sip deleted file mode 100644 index 2a5a6fdf..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexercss.sip +++ /dev/null @@ -1,81 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerCSS. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (QScintilla_1_6 -) - -class QextScintillaLexerCSS : QextScintillaLexer -{ -%TypeHeaderCode -#include -%End - -public: - enum { - Default, - Tag, - ClassSelector, - PseudoClass, - UnknownPseudoClass, - Operator, - CSS1Property, - UnknownProperty, - Value, - Comment, - IDSelector, - Important, - AtRule, - DoubleQuotedString, - SingleQuotedString, - CSS2Property, - Attribute - }; - - QextScintillaLexerCSS(QObject * /TransferThis/ = 0,const char * = 0); - - const char *language() const; - const char *lexer() const; - QColor color(int) const; - QFont font(int) const; - const char *keywords(int) const; - QString description(int) const; - - void refreshProperties(); - bool foldComments() const; - bool foldCompact() const; - -public slots: - virtual void setFoldComments(bool); - virtual void setFoldCompact(bool); - -protected: - bool readProperties(QSettings &,const QString &); - bool writeProperties(QSettings &,const QString &) const; - -private: - QextScintillaLexerCSS(const QextScintillaLexerCSS &); -}; - -%End diff --git a/python/pyqt/sip/qtext/qextscintillalexerdiff.sip b/python/pyqt/sip/qtext/qextscintillalexerdiff.sip deleted file mode 100644 index 4f95db4d..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexerdiff.sip +++ /dev/null @@ -1,57 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerDiff. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (QScintilla_1_6 -) - -class QextScintillaLexerDiff : QextScintillaLexer -{ -%TypeHeaderCode -#include -%End - -public: - enum { - Default, - Comment, - Command, - Header, - Position, - LineRemoved, - LineAdded - }; - - QextScintillaLexerDiff(QObject * /TransferThis/ = 0,const char * = 0); - - const char *language() const; - const char *lexer() const; - QColor color(int) const; - QString description(int) const; - -private: - QextScintillaLexerDiff(const QextScintillaLexerDiff &); -}; - -%End diff --git a/python/pyqt/sip/qtext/qextscintillalexerhtml.sip b/python/pyqt/sip/qtext/qextscintillalexerhtml.sip deleted file mode 100644 index f09785e2..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexerhtml.sip +++ /dev/null @@ -1,178 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerHTML. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (QScintilla_1_1 -) - -class QextScintillaLexerHTML : QextScintillaLexer -{ -%TypeHeaderCode -#include -%End - -public: - enum { - Default, - Tag, - UnknownTag, - Attribute, - UnknownAttribute, - HTMLNumber, - HTMLDoubleQuotedString, - HTMLSingleQuotedString, - OtherInTag, - HTMLComment, - Entity, - XMLTagEnd, - XMLStart, - XMLEnd, - Script, - ASPAtStart, - ASPStart, - CDATA, - PHPStart, - HTMLValue, - ASPXCComment, - SGMLDefault, - SGMLCommand, - SGMLParameter, - SGMLDoubleQuotedString, - SGMLSingleQuotedString, - SGMLError, - SGMLSpecial, - SGMLEntity, - SGMLComment, - SGMLParameterComment, - SGMLBlockDefault, - JavaScriptStart, - JavaScriptDefault, - JavaScriptComment, - JavaScriptCommentLine, - JavaScriptCommentDoc, - JavaScriptNumber, - JavaScriptWord, - JavaScriptKeyword, - JavaScriptDoubleQuotedString, - JavaScriptSingleQuotedString, - JavaScriptSymbol, - JavaScriptUnclosedString, - JavaScriptRegex, - ASPJavaScriptStart, - ASPJavaScriptDefault, - ASPJavaScriptComment, - ASPJavaScriptCommentLine, - ASPJavaScriptCommentDoc, - ASPJavaScriptNumber, - ASPJavaScriptWord, - ASPJavaScriptKeyword, - ASPJavaScriptDoubleQuotedString, - ASPJavaScriptSingleQuotedString, - ASPJavaScriptSymbol, - ASPJavaScriptUnclosedString, - ASPJavaScriptRegex, - VBScriptStart, - VBScriptDefault, - VBScriptComment, - VBScriptNumber, - VBScriptKeyword, - VBScriptString, - VBScriptIdentifier, - VBScriptUnclosedString, - ASPVBScriptStart, - ASPVBScriptDefault, - ASPVBScriptComment, - ASPVBScriptNumber, - ASPVBScriptKeyword, - ASPVBScriptString, - ASPVBScriptIdentifier, - ASPVBScriptUnclosedString, - PythonStart, - PythonDefault, - PythonComment, - PythonNumber, - PythonDoubleQuotedString, - PythonSingleQuotedString, - PythonKeyword, - PythonTripleSingleQuotedString, - PythonTripleDoubleQuotedString, - PythonClassName, - PythonFunctionMethodName, - PythonOperator, - PythonIdentifier, - ASPPythonStart, - ASPPythonDefault, - ASPPythonComment, - ASPPythonNumber, - ASPPythonDoubleQuotedString, - ASPPythonSingleQuotedString, - ASPPythonKeyword, - ASPPythonTripleSingleQuotedString, - ASPPythonTripleDoubleQuotedString, - ASPPythonClassName, - ASPPythonFunctionMethodName, - ASPPythonOperator, - ASPPythonIdentifier, - PHPDefault, - PHPDoubleQuotedString, - PHPSingleQuotedString, - PHPKeyword, - PHPNumber, - PHPVariable, - PHPComment, - PHPCommentLine, - PHPDoubleQuotedVariable, - PHPOperator - }; - - QextScintillaLexerHTML(QObject * /TransferThis/ = 0,const char * = 0); - - const char *language() const; - const char *lexer() const; - QColor color(int) const; - bool eolFill(int) const; - QFont font(int) const; - const char *keywords(int) const; - QString description(int) const; - QColor paper(int) const; - - void refreshProperties(); - bool foldCompact() const; - bool foldPreprocessor() const; - bool caseSensitiveTags() const; - -public slots: - virtual void setFoldCompact(bool); - virtual void setFoldPreprocessor(bool); - virtual void setCaseSensitiveTags(bool); - -protected: - bool readProperties(QSettings &,const QString &); - bool writeProperties(QSettings &,const QString &) const; - -private: - QextScintillaLexerHTML(const QextScintillaLexerHTML &); -}; - -%End diff --git a/python/pyqt/sip/qtext/qextscintillalexeridl.sip b/python/pyqt/sip/qtext/qextscintillalexeridl.sip deleted file mode 100644 index e591e361..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexeridl.sip +++ /dev/null @@ -1,43 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerIDL. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -class QextScintillaLexerIDL : QextScintillaLexerCPP -{ -%TypeHeaderCode -#include -%End - -public: - QextScintillaLexerIDL(QObject * /TransferThis/ = 0,const char * = 0); - - const char *language() const; - QColor color(int) const; - const char *keywords(int) const; - QString description(int) const; - -private: - QextScintillaLexerIDL(const QextScintillaLexerIDL &); -}; diff --git a/python/pyqt/sip/qtext/qextscintillalexerjava.sip b/python/pyqt/sip/qtext/qextscintillalexerjava.sip deleted file mode 100644 index 85bc58b1..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexerjava.sip +++ /dev/null @@ -1,41 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerJava. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -class QextScintillaLexerJava : QextScintillaLexerCPP -{ -%TypeHeaderCode -#include -%End - -public: - QextScintillaLexerJava(QObject * /TransferThis/ = 0,const char * = 0); - - const char *language() const; - const char *keywords(int) const; - -private: - QextScintillaLexerJava(const QextScintillaLexerJava &); -}; diff --git a/python/pyqt/sip/qtext/qextscintillalexerjavascript.sip b/python/pyqt/sip/qtext/qextscintillalexerjavascript.sip deleted file mode 100644 index f5fe3d8f..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexerjavascript.sip +++ /dev/null @@ -1,47 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerJavaScript. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -class QextScintillaLexerJavaScript : QextScintillaLexerCPP -{ -%TypeHeaderCode -#include -%End - -public: - QextScintillaLexerJavaScript(QObject * /TransferThis/ = 0, - const char * = 0); - - const char *language() const; - QColor color(int) const; - bool eolFill(int) const; - QFont font(int) const; - const char *keywords(int) const; - QString description(int) const; - QColor paper(int) const; - -private: - QextScintillaLexerJavaScript(const QextScintillaLexerJavaScript &); -}; diff --git a/python/pyqt/sip/qtext/qextscintillalexerlua.sip b/python/pyqt/sip/qtext/qextscintillalexerlua.sip deleted file mode 100644 index d0d2c2b3..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexerlua.sip +++ /dev/null @@ -1,79 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerLua. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (QScintilla_1_5 -) - -class QextScintillaLexerLua : QextScintillaLexer -{ -%TypeHeaderCode -#include -%End - -public: - enum { - Default, - Comment, - LineComment, - Number, - Keyword, - String, - Character, - LiteralString, - Preprocessor, - Operator, - Identifier, - UnclosedString, - BasicFunctions, - StringTableMathsFunctions, - CoroutinesIOSystemFacilities - }; - - QextScintillaLexerLua(QObject * /TransferThis/ = 0,const char * = 0); - - const char *language() const; - const char *lexer() const; - QColor color(int) const; - bool eolFill(int) const; - QFont font(int) const; - const char *keywords(int) const; - QString description(int) const; - QColor paper(int) const; - - void refreshProperties(); - bool foldCompact() const; - -public slots: - virtual void setFoldCompact(bool); - -protected: - bool readProperties(QSettings &,const QString &); - bool writeProperties(QSettings &,const QString &) const; - -private: - QextScintillaLexerLua(const QextScintillaLexerLua &); -}; - -%End diff --git a/python/pyqt/sip/qtext/qextscintillalexermakefile.sip b/python/pyqt/sip/qtext/qextscintillalexermakefile.sip deleted file mode 100644 index c997ba5e..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexermakefile.sip +++ /dev/null @@ -1,60 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerMakefile. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (QScintilla_1_6 -) - -class QextScintillaLexerMakefile : QextScintillaLexer -{ -%TypeHeaderCode -#include -%End - -public: - enum { - Default, - Comment, - Preprocessor, - Variable, - Operator, - Target, - Error - }; - - QextScintillaLexerMakefile(QObject * /TransferThis/ = 0,const char * = 0); - - const char *language() const; - const char *lexer() const; - QColor color(int) const; - bool eolFill(int) const; - QFont font(int) const; - QString description(int) const; - QColor paper(int) const; - -private: - QextScintillaLexerMakefile(const QextScintillaLexerMakefile &); -}; - -%End diff --git a/python/pyqt/sip/qtext/qextscintillalexerperl.sip b/python/pyqt/sip/qtext/qextscintillalexerperl.sip deleted file mode 100644 index 7ce28bf6..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexerperl.sip +++ /dev/null @@ -1,96 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerPerl. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (QScintilla_1_3 -) - -class QextScintillaLexerPerl : QextScintillaLexer -{ -%TypeHeaderCode -#include -%End - -public: - enum { - Default, - Error, - Comment, - POD, - Number, - Keyword, - DoubleQuotedString, - SingleQuotedString, - Operator, - Identifier, - Scalar, - Array, - Hash, - SymbolTable, - Regex, - Substitution, - Backticks, - DataSection, - HereDocumentDelimiter, - SingleQuotedHereDocument, - DoubleQuotedHereDocument, - BacktickHereDocument, - QuotedStringQ, - QuotedStringQQ, - QuotedStringQX, - QuotedStringQR, - QuotedStringQW, -%If (QScintilla_1_6 -) - PODVerbatim, -%End - }; - - QextScintillaLexerPerl(QObject * /TransferThis/ = 0,const char * = 0); - - const char *language() const; - const char *lexer() const; - QColor color(int) const; - bool eolFill(int) const; - QFont font(int) const; - const char *keywords(int) const; - QString description(int) const; - QColor paper(int) const; - - void refreshProperties(); - bool foldComments() const; - bool foldCompact() const; - -public slots: - virtual void setFoldComments(bool); - virtual void setFoldCompact(bool); - -protected: - bool readProperties(QSettings &,const QString &); - bool writeProperties(QSettings &,const QString &) const; - -private: - QextScintillaLexerPerl(const QextScintillaLexerPerl &); -}; - -%End diff --git a/python/pyqt/sip/qtext/qextscintillalexerpov.sip b/python/pyqt/sip/qtext/qextscintillalexerpov.sip deleted file mode 100644 index 8c8f2fc4..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexerpov.sip +++ /dev/null @@ -1,85 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerPOV. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (QScintilla_1_6 -) - -class QextScintillaLexerPOV : QextScintillaLexer -{ -%TypeHeaderCode -#include -%End - -public: - enum { - Default, - Comment, - CommentLine, - Number, - Operator, - Identifier, - String, - UnclosedString, - Directive, - BadDirective, - ObjectsCSGAppearance, - TypesModifiersItems, - PredefinedIdentifiers, - PredefinedFunctions, - KeywordSet6, - KeywordSet7, - KeywordSet8 - }; - - QextScintillaLexerPOV(QObject * /TransferThis/ = 0,const char * = 0); - - const char *language() const; - const char *lexer() const; - QColor color(int) const; - bool eolFill(int) const; - QFont font(int) const; - const char *keywords(int) const; - QString description(int) const; - QColor paper(int) const; - - void refreshProperties(); - bool foldComments() const; - bool foldCompact() const; - bool foldDirectives() const; - -public slots: - virtual void setFoldComments(bool); - virtual void setFoldCompact(bool); - virtual void setFoldDirectives(bool); - -protected: - bool readProperties(QSettings &,const QString &); - bool writeProperties(QSettings &,const QString &) const; - -private: - QextScintillaLexerPOV(const QextScintillaLexerPOV &); -}; - -%End diff --git a/python/pyqt/sip/qtext/qextscintillalexerproperties.sip b/python/pyqt/sip/qtext/qextscintillalexerproperties.sip deleted file mode 100644 index 5b256480..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexerproperties.sip +++ /dev/null @@ -1,68 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerProperties. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (QScintilla_1_6 -) - -class QextScintillaLexerProperties : QextScintillaLexer -{ -%TypeHeaderCode -#include -%End - -public: - enum { - Default, - Comment, - Section, - Assignment, - DefaultValue - }; - - QextScintillaLexerProperties(QObject * /TransferThis/ = 0,const char * = 0); - - const char *language() const; - const char *lexer() const; - QColor color(int) const; - bool eolFill(int) const; - QFont font(int) const; - QString description(int) const; - QColor paper(int) const; - - void refreshProperties(); - bool foldCompact() const; - -public slots: - virtual void setFoldCompact(bool); - -protected: - bool readProperties(QSettings &,const QString &); - bool writeProperties(QSettings &,const QString &) const; - -private: - QextScintillaLexerProperties(const QextScintillaLexerProperties &); -}; - -%End diff --git a/python/pyqt/sip/qtext/qextscintillalexerpython.sip b/python/pyqt/sip/qtext/qextscintillalexerpython.sip deleted file mode 100644 index dc9b5b66..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexerpython.sip +++ /dev/null @@ -1,94 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerPython. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -class QextScintillaLexerPython : QextScintillaLexer -{ -%TypeHeaderCode -#include -%End - -public: - enum { -%If (QScintilla_1_1 -) - Default, -%End - WhiteSpace, - Comment, - Number, - DoubleQuotedString, - SingleQuotedString, - Keyword, - TripleSingleQuotedString, - TripleDoubleQuotedString, - ClassName, - FunctionMethodName, - Operator, - Identifier, - CommentBlock, - UnclosedString, -%If (QScintilla_1_7 -) - HighlightedIdentifier, - Decorator, -%End - }; - - enum IndentationWarning { - NoWarning, - Inconsistent, - TabsAfterSpaces, - Spaces, - Tabs - }; - - QextScintillaLexerPython(QObject * /TransferThis/ = 0, - const char * = 0); - - const char *language() const; - const char *lexer() const; - QColor color(int) const; - bool eolFill(int) const; - QFont font(int) const; - const char *keywords(int) const; - QString description(int) const; - QColor paper(int) const; - void refreshProperties(); - - bool foldComments() const; - bool foldQuotes() const; - IndentationWarning indentationWarning() const; - -public slots: - virtual void setFoldComments(bool); - virtual void setFoldQuotes(bool); - virtual void setIndentationWarning(IndentationWarning); - -protected: - bool readProperties(QSettings &,const QString &); - bool writeProperties(QSettings &,const QString &) const; - -private: - QextScintillaLexerPython(const QextScintillaLexerPython &); -}; diff --git a/python/pyqt/sip/qtext/qextscintillalexerruby.sip b/python/pyqt/sip/qtext/qextscintillalexerruby.sip deleted file mode 100644 index b04d6a4e..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexerruby.sip +++ /dev/null @@ -1,128 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerRuby. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (QScintilla_1_5 -) - -class QextScintillaLexerRuby : QextScintillaLexer -{ -%TypeHeaderCode -#include -%End - -public: -%If (QScintilla_1_7 -) - enum { - Default, - Comment, - POD, - Number, - Keyword, - DoubleQuotedString, - SingleQuotedString, - ClassName, - FunctionMethodName, - Operator, - Identifier, - Regex, - Global, - Symbol, - ModuleName, - InstanceVariable, - ClassVariable, - Backticks, - DataSection, - HereDocumentDelimiter, - HereDocument, - PercentStringq, - PercentStringQ, - PercentStringx, - PercentStringr, - PercentStringw, - DemotedKeyword, - Stdin, - Stdout, - Stderr - }; -%End -%If (- QScintilla_1_7) - enum { - Default, - WhiteSpace, - Comment, - Number, - DoubleQuotedString, - SingleQuotedString, - Keyword, - TripleDoubleQuotedString, - ClassName, - FunctionMethodName, - Operator, - Identifier, - CommentBlock, - UnclosedString - }; - - enum IndentationWarning { - NoWarning, - Inconsistent, - TabsAfterSpaces, - Spaces, - Tabs - }; -%End - - QextScintillaLexerRuby(QObject * /TransferThis/ = 0,const char * = 0); - - const char *language() const; - const char *lexer() const; - QColor color(int) const; - bool eolFill(int) const; - QFont font(int) const; - const char *keywords(int) const; - QString description(int) const; - QColor paper(int) const; -%If (- QScintilla_1_7) - void refreshProperties(); - - IndentationWarning indentationWarning() const; -%End - -public slots: -%If (- QScintilla_1_7) - virtual void setIndentationWarning(IndentationWarning); -%End - -protected: -%If (- QScintilla_1_7) - bool readProperties(QSettings &,const QString &); - bool writeProperties(QSettings &,const QString &) const; -%End - -private: - QextScintillaLexerRuby(const QextScintillaLexerRuby &); -}; - -%End diff --git a/python/pyqt/sip/qtext/qextscintillalexersql.sip b/python/pyqt/sip/qtext/qextscintillalexersql.sip deleted file mode 100644 index 04d29c8c..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexersql.sip +++ /dev/null @@ -1,105 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerSQL. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (QScintilla_1_1 -) - -class QextScintillaLexerSQL : QextScintillaLexer -{ -%TypeHeaderCode -#include -%End - -public: - enum { - Default, - Comment, -%If (QScintilla_1_6 -) - CommentLine, - CommentDoc, -%End - LineComment, // Obsolete. - Number, - Keyword, -%If (QScintilla_1_6 -) - DoubleQuotedString, -%End - SingleQuotedString, -%If (QScintilla_1_6 -) - PlusKeyword, - PlusPrompt, -%End - Operator, - Identifier, -%If (QScintilla_1_6 -) - PlusComment, - CommentLineHash, - CommentDocKeyword, - CommentDocKeywordError, - KeywordSet5, - KeywordSet6, - KeywordSet7, - KeywordSet8, -%End - }; - - QextScintillaLexerSQL(QObject * /TransferThis/ = 0,const char * = 0); - - const char *language() const; - const char *lexer() const; - QColor color(int) const; -%If (QScintilla_1_6 -) - bool eolFill(int) const; -%End - QFont font(int) const; - const char *keywords(int) const; - QString description(int) const; -%If (QScintilla_1_6 -) - QColor paper(int) const; - - void refreshProperties(); - bool foldComments() const; - bool foldCompact() const; - bool backslashEscapes() const; -%End - -public slots: -%If (QScintilla_1_6 -) - virtual void setFoldComments(bool); - virtual void setFoldCompact(bool); - virtual void setBackslashEscapes(bool); -%End - -protected: -%If (QScintilla_1_6 -) - bool readProperties(QSettings &,const QString &); - bool writeProperties(QSettings &,const QString &) const; -%End - -private: - QextScintillaLexerSQL(const QextScintillaLexerSQL &); -}; - -%End diff --git a/python/pyqt/sip/qtext/qextscintillalexertex.sip b/python/pyqt/sip/qtext/qextscintillalexertex.sip deleted file mode 100644 index 7dff7df9..00000000 --- a/python/pyqt/sip/qtext/qextscintillalexertex.sip +++ /dev/null @@ -1,57 +0,0 @@ -// This is the SIP interface definition for QextScintillaLexerTeX. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (QScintilla_1_6 -) - -class QextScintillaLexerTeX : QextScintillaLexer -{ -%TypeHeaderCode -#include -%End - -public: - enum { - Default, - Special, - Group, - Symbol, - Command, - Text - }; - - QextScintillaLexerTeX(QObject * /TransferThis/ = 0,const char * = 0); - - const char *language() const; - const char *lexer() const; - QColor color(int) const; - const char *keywords(int) const; - QString description(int) const; - -private: - QextScintillaLexerTeX(const QextScintillaLexerTeX &); -}; - -%End diff --git a/python/pyqt/sip/qtext/qextscintillamacro.sip b/python/pyqt/sip/qtext/qextscintillamacro.sip deleted file mode 100644 index f506ca78..00000000 --- a/python/pyqt/sip/qtext/qextscintillamacro.sip +++ /dev/null @@ -1,49 +0,0 @@ -// This is the SIP interface definition for QextScintillaMacro. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -class QextScintillaMacro : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QextScintillaMacro(QextScintilla * /TransferThis/,const char * = 0); - QextScintillaMacro(const QCString &,QextScintilla * /TransferThis/, - const char * = 0); - - void clear(); - bool load(const QCString &); - QCString save() const; - -public slots: - virtual void play(); - virtual void startRecording(); - virtual void endRecording(); - -private: - QextScintillaMacro(const QextScintillaMacro &); -}; diff --git a/python/pyqt/sip/qtext/qextscintillaprinter.sip b/python/pyqt/sip/qtext/qextscintillaprinter.sip deleted file mode 100644 index 5fb52844..00000000 --- a/python/pyqt/sip/qtext/qextscintillaprinter.sip +++ /dev/null @@ -1,45 +0,0 @@ -// This is the SIP interface definition for QextScintillaPrinter. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -class QextScintillaPrinter : QPrinter -{ -%TypeHeaderCode -#include -%End - -public: - QextScintillaPrinter(QPrinter::PrinterMode = QPrinter::ScreenResolution); - - virtual void formatPage(QPainter &,bool,QRect &,int); - virtual int printRange(QextScintillaBase *,int = -1,int = -1); - int magnification() const; - virtual void setMagnification(int); - QextScintilla::WrapMode wrapMode() const; - virtual void setWrapMode(QextScintilla::WrapMode); - -private: - QextScintillaPrinter(const QextScintillaPrinter &); -}; diff --git a/python/pyqt/sip/qtext/qtextmod.sip b/python/pyqt/sip/qtext/qtextmod.sip deleted file mode 100644 index 5dbf3f8b..00000000 --- a/python/pyqt/sip/qtext/qtextmod.sip +++ /dev/null @@ -1,107 +0,0 @@ -// This is the SIP interface definition for the qtext module of PyQt. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Module qtext 4 - -%Import qt/qtmod.sip - -%Include copying.sip - - -// The QScintilla versions. -%Timeline {QScintilla_1_1 QScintilla_1_2 QScintilla_1_3 QScintilla_1_4 - QScintilla_1_5 QScintilla_1_6 QScintilla_1_7} - - -const unsigned QSCINTILLA_VERSION; -const char *QSCINTILLA_VERSION_STR; -const char *QSCINTILLA_BUILD; - - -%Include qextscintillaapis.sip -%Include qextscintillabase.sip -%Include qextscintilla.sip -%Include qextscintillacommand.sip -%Include qextscintillacommandset.sip -%Include qextscintilladocument.sip -%Include qextscintillalexer.sip -%Include qextscintillalexerbash.sip -%Include qextscintillalexerbatch.sip -%Include qextscintillalexercpp.sip -%Include qextscintillalexercsharp.sip -%Include qextscintillalexercss.sip -%Include qextscintillalexerdiff.sip -%Include qextscintillalexerhtml.sip -%Include qextscintillalexeridl.sip -%Include qextscintillalexerjava.sip -%Include qextscintillalexerjavascript.sip -%Include qextscintillalexerlua.sip -%Include qextscintillalexermakefile.sip -%Include qextscintillalexerperl.sip -%Include qextscintillalexerpov.sip -%Include qextscintillalexerproperties.sip -%Include qextscintillalexerpython.sip -%Include qextscintillalexerruby.sip -%Include qextscintillalexersql.sip -%Include qextscintillalexertex.sip -%Include qextscintillamacro.sip -%Include qextscintillaprinter.sip - - -// The build file template. - -%Makefile qtext.pro.in -# The project file for the qtext module. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -TEMPLATE = lib -TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ -INCLUDEPATH = @BLX_INCLUDEPATH@ @PYQT_QSCINTILLA_INC@ -DEFINES = @BLX_DEFINES@ QEXTSCINTILLA_DLL -LIBS += @PYQT_QT_MODULE@ @PYQT_QSCINTILLA_LIB@ @BLX_LIBS@ -macx:QMAKE_LFLAGS += -framework Python - -SOURCES = $B - -HEADERS = $H -%End diff --git a/python/pyqt/sip/qtgl/copying.sip b/python/pyqt/sip/qtgl/copying.sip deleted file mode 100644 index 21c27d4e..00000000 --- a/python/pyqt/sip/qtgl/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited - -This file is part of PyQt. - -This copy of PyQt is free software; you can redistribute 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. - -PyQt 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 -PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -%End - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/python/pyqt/sip/qtgl/qgl.sip b/python/pyqt/sip/qtgl/qgl.sip deleted file mode 100644 index fa7f5fd3..00000000 --- a/python/pyqt/sip/qtgl/qgl.sip +++ /dev/null @@ -1,298 +0,0 @@ -// This is the SIP interface definition for QGL, QGLContext, QGLFormat and -// QGLWidget. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QGL - -QGL is fully implemented. - - - -QGLContext - -QGLContext is fully implemented. - - - -QGLFormat - -QGLFormat is fully implemented. - - - -QGLWidget - -QGLWidget is fully implemented. - - -%End - - -%If (Qt_2_00 -) - -const int QGL_VERSION; -const char *QGL_VERSION_STR; - -const char *qGLVersion(); - - -class QGL -{ -%TypeHeaderCode -#include -%End - -public: - enum FormatOption { - DoubleBuffer, - DepthBuffer, - Rgba, - AlphaChannel, - AccumBuffer, - StencilBuffer, - StereoBuffers, - DirectRendering, - HasOverlay, - SingleBuffer, - NoDepthBuffer, - ColorIndex, - NoAlphaChannel, - NoAccumBuffer, - NoStencilBuffer, - NoStereoBuffers, - IndirectRendering, - NoOverlay - }; -}; - - -class QGLFormat : QGL -{ -%TypeHeaderCode -#include -%End - -public: - QGLFormat(); - QGLFormat(int,int = 0); - - bool doubleBuffer() const; - void setDoubleBuffer(bool); - bool depth() const; - void setDepth(bool); - bool rgba() const; - void setRgba(bool); - bool alpha() const; - void setAlpha(bool); - bool accum() const; - void setAccum(bool); - bool stencil() const; - void setStencil(bool); - bool stereo() const; - void setStereo(bool); - bool directRendering() const; - void setDirectRendering(bool); - bool hasOverlay() const; - void setOverlay(bool); - - int plane() const; - void setPlane(int); - - void setOption(FormatOption); - bool testOption(FormatOption) const; - - static QGLFormat defaultFormat(); - static void setDefaultFormat(const QGLFormat &); - - static QGLFormat defaultOverlayFormat(); - static void setDefaultOverlayFormat(const QGLFormat &); - - static bool hasOpenGL(); - static bool hasOpenGLOverlays(); -}; - - -class QGLContext : QGL -{ -%TypeHeaderCode -#include -%End - -public: - QGLContext(const QGLFormat &,QPaintDevice *); -%If (Qt_3_2_0 -) - QGLContext(const QGLFormat &); -%End - - virtual bool create(const QGLContext * = 0); - bool isValid() const; - bool isSharing() const; - virtual void reset(); - - QGLFormat format() const; -%If (Qt_3_0_0 -) - QGLFormat requestedFormat() const; -%End - virtual void setFormat(const QGLFormat &); - - virtual void makeCurrent(); - virtual void swapBuffers() const; - - QPaintDevice *device() const; - - QColor overlayTransparentColor() const; - - static const QGLContext *currentContext(); - -protected: - virtual bool chooseContext(const QGLContext * = 0); - virtual void doneCurrent(); - -%If (WS_X11) - virtual void *tryVisual(const QGLFormat &,int = 1); - virtual void *chooseVisual(); -%End - - bool deviceIsPixmap() const; - bool windowCreated() const; - void setWindowCreated(bool); - bool initialized() const; - void setInitialized(bool); -%If (Qt_3_1_0 -) - void generateFontDisplayLists(const QFont &,int); -%End - - uint colorIndex(const QColor &) const; -%If (Qt_3_2_0 -) - void setValid(bool); - void setDevice(QPaintDevice *); -%End - -private: - QGLContext(); - QGLContext(const QGLContext &); -}; - - -class QGLWidget : QWidget, QGL -{ -%TypeHeaderCode -#include -%End - -public: - QGLWidget(QWidget * /TransferThis/ = 0,const char * = 0, - const QGLWidget * = 0,WFlags = 0); -%If (Qt_3_2_0 -) - QGLWidget(QGLContext * /Transfer/,QWidget * /TransferThis/ = 0,const char * = 0, - const QGLWidget * = 0,WFlags = 0); -%End - QGLWidget(const QGLFormat &,QWidget * /TransferThis/ = 0, - const char * = 0,const QGLWidget * = 0,WFlags = 0); - -%ConvertToSubClassCode - sipClass = (sipCpp->inherits(sipName_QGLWidget) ? sipClass_QGLWidget : NULL); -%End - - void qglColor(const QColor &) const; - void qglClearColor(const QColor &) const; - - bool isValid() const; - bool isSharing() const; - virtual void makeCurrent(); -%If (Qt_3_2_0 -) - void doneCurrent(); -%End - - bool doubleBuffer() const; - virtual void swapBuffers(); - - QGLFormat format() const; - - const QGLContext *context() const; - - virtual QPixmap renderPixmap(int = 0,int = 0,bool = 0); -%If (Qt_3_0_0 -) - virtual QImage grabFrameBuffer(bool = 0); -%End - - virtual void makeOverlayCurrent(); - const QGLContext *overlayContext() const; - - static QImage convertToGLFormat(const QImage &); - - void setMouseTracking(bool); - -%If (Qt_3_0_0 -) - virtual void reparent(QWidget * /GetWrapper/,WFlags,const QPoint &, - bool = 0); -%MethodCode - if (sipCpp -> parent() != a0) - if (a0) - sipTransferTo(sipSelf,a0Wrapper); - else - sipTransferBack(sipSelf); - - Py_BEGIN_ALLOW_THREADS - sipSelfWasArg ? sipCpp->QGLWidget::reparent(a0, a1, *a2, a3) : sipCpp->reparent(a0, a1, *a2, a3); - Py_END_ALLOW_THREADS -%End - - const QGLColormap &colormap() const; - void setColormap(const QGLColormap &); -%End - -%If (Qt_3_1_0 -) - void renderText(int,int,const QString &,const QFont & = QFont(), - int = 2000); - void renderText(double,double,double,const QString &, - const QFont & = QFont(),int = 2000); -%End - -public slots: - virtual void updateGL(); - virtual void updateOverlayGL(); - -protected: - virtual void initializeGL(); - virtual void resizeGL(int,int); - virtual void paintGL(); - - virtual void initializeOverlayGL(); - virtual void resizeOverlayGL(int,int); - virtual void paintOverlayGL(); - - void setAutoBufferSwap(bool); - bool autoBufferSwap() const; - - void paintEvent(QPaintEvent *); - void resizeEvent(QResizeEvent *); - - virtual void glInit(); - virtual void glDraw(); - -private: - QGLWidget(const QGLWidget &); -}; - -%End diff --git a/python/pyqt/sip/qtgl/qglcolormap.sip b/python/pyqt/sip/qtgl/qglcolormap.sip deleted file mode 100644 index 05447c6b..00000000 --- a/python/pyqt/sip/qtgl/qglcolormap.sip +++ /dev/null @@ -1,63 +0,0 @@ -// This is the SIP interface definition for QGLColormap. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QGLColormap (Qt v3.0+) - - void setEntries - int count - const QRgb *colors - int base = 0 - - -Not yet implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QGLColormap -{ -%TypeHeaderCode -#include -%End - -public: - QGLColormap(); - QGLColormap(const QGLColormap &); - - bool isEmpty() const; - int size() const; - void detach(); - -// void setEntries(int,const QRgb *,int = 0); - void setEntry(int,QRgb); - void setEntry(int,const QColor &); - QRgb entryRgb(int) const; - QColor entryColor(int) const; - int find(QRgb) const; - int findNearest(QRgb) const; -}; - -%End diff --git a/python/pyqt/sip/qtgl/qtglmod.sip b/python/pyqt/sip/qtgl/qtglmod.sip deleted file mode 100644 index 3658b1d7..00000000 --- a/python/pyqt/sip/qtgl/qtglmod.sip +++ /dev/null @@ -1,71 +0,0 @@ -// This is the SIP interface definition for the qtgl module of PyQt. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Module qtgl 1 - -%Import qt/qtmod.sip - -%Include copying.sip - - -%Include qgl.sip -%Include qglcolormap.sip - - -// The build file template. - -%Makefile qtgl.pro.in -# The project file for the qtgl module. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -TEMPLATE = lib -TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ opengl @PYQT_WARN@ -INCLUDEPATH = @BLX_INCLUDEPATH@ -DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QT_MODULE@ @BLX_LIBS@ -macx:QMAKE_LFLAGS += -framework Python - -SOURCES = $B - -HEADERS = $H -%End diff --git a/python/pyqt/sip/qtnetwork/copying.sip b/python/pyqt/sip/qtnetwork/copying.sip deleted file mode 100644 index 21c27d4e..00000000 --- a/python/pyqt/sip/qtnetwork/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited - -This file is part of PyQt. - -This copy of PyQt is free software; you can redistribute 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. - -PyQt 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 -PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -%End - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/python/pyqt/sip/qtnetwork/qdns.sip b/python/pyqt/sip/qtnetwork/qdns.sip deleted file mode 100644 index 811fdd5b..00000000 --- a/python/pyqt/sip/qtnetwork/qdns.sip +++ /dev/null @@ -1,274 +0,0 @@ -// This is the SIP interface definition for QDns. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QDns (Qt v2.2+) - -QDns is fully implemented. - - -%End - - -%If (Qt_DNS) -%If (Qt_2_2_0 -) - -class QDns : QObject -{ -%TypeHeaderCode -#include -%End - -public: - enum RecordType { - None, - A, - Aaaa, - Mx, - Srv, - Cname, - Ptr, - Txt - }; - - QDns(); - QDns(const QString &,RecordType = A); - QDns(const QHostAddress &,RecordType = A); - - virtual void setLabel(const QString &); - virtual void setLabel(const QHostAddress &); - QString label() const; - - virtual void setRecordType(RecordType = A); - RecordType recordType() const; - - bool isWorking() const; - - QValueList addresses() const; - - class MailServer - { - public: - MailServer(const QString & = QString::null,Q_UINT16 = 0); - - QString name; - Q_UINT16 priority; - }; - - QValueList mailServers() const; - - class Server - { - public: - Server(const QString & = QString::null,Q_UINT16 = 0, - Q_UINT16 = 0,Q_UINT16 = 0); - - QString name; - Q_UINT16 priority; - Q_UINT16 weight; - Q_UINT16 port; - }; - - QValueList servers() const; - - QStringList hostNames() const; - - QStringList texts() const; - - QString canonicalName() const; - - QStringList qualifiedNames() const; - -signals: - void resultsReady(); -}; - - -%MappedType QValueList -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - // Convert to a Python list of QHostAddress instances. - - int i; - PyObject *l; - - // Create the list. - - if ((l = PyList_New(sipCpp -> count())) == NULL) - return NULL; - - // Get it. - - i = 0; - QValueListConstIterator it; - - for (it = sipCpp -> begin(); it != sipCpp -> end(); ++it) - { - PyObject *tmobj; - - if ((tmobj = sipConvertFromNewInstance(new QHostAddress(*it),sipClass_QHostAddress,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0) - { - Py_XDECREF(tmobj); - Py_DECREF(l); - - return NULL; - } - - ++i; - } - - return l; -%End - -%ConvertToTypeCode - // At the moment this will never be called, so provide a null - // implementation. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - PyErr_Format(PyExc_TypeError,"Converting to QValueList not yet implemented"); - - *sipIsErr = 1; - - return 0; -%End -}; - - -%MappedType QValueList -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - // Convert to a Python list of QDns::MailServer instances. - - int i; - PyObject *l; - - // Create the list. - - if ((l = PyList_New(sipCpp -> count())) == NULL) - return NULL; - - // Get it. - - i = 0; - QValueListConstIterator it; - - for (it = sipCpp -> begin(); it != sipCpp -> end(); ++it) - { - PyObject *tmobj; - - if ((tmobj = sipConvertFromNewInstance(new QDns::MailServer(*it),sipClass_QDns_MailServer,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0) - { - Py_XDECREF(tmobj); - Py_DECREF(l); - - return NULL; - } - - ++i; - } - - return l; -%End - -%ConvertToTypeCode - // At the moment this will never be called, so provide a null - // implementation. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - PyErr_Format(PyExc_TypeError,"Converting to QValueList not yet implemented"); - - *sipIsErr = 1; - - return 0; -%End -}; - - -%MappedType QValueList -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - // Convert to a Python list of QDns::Server instances. - - int i; - PyObject *l; - - // Create the list. - - if ((l = PyList_New(sipCpp -> count())) == NULL) - return NULL; - - // Get it. - - i = 0; - QValueListConstIterator it; - - for (it = sipCpp -> begin(); it != sipCpp -> end(); ++it) - { - PyObject *tmobj; - - if ((tmobj = sipConvertFromNewInstance(new QDns::Server(*it),sipClass_QDns_Server,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0) - { - Py_XDECREF(tmobj); - Py_DECREF(l); - - return NULL; - } - - ++i; - } - - return l; -%End - -%ConvertToTypeCode - // At the moment this will never be called, so provide a null - // implementation. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - PyErr_Format(PyExc_TypeError,"Converting to QValueList not yet implemented"); - - *sipIsErr = 1; - - return 0; -%End -}; - -%End -%End diff --git a/python/pyqt/sip/qtnetwork/qftp.sip b/python/pyqt/sip/qtnetwork/qftp.sip deleted file mode 100644 index fd696dd8..00000000 --- a/python/pyqt/sip/qtnetwork/qftp.sip +++ /dev/null @@ -1,183 +0,0 @@ -// This is the SIP interface definition for QFtp. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QFtp (Qt v2.2+) - - Q_LONG readBlock - char *data - Q_ULONG maxlen - - -This takes a single maxlen parameter. The -data is returned if there was no error, otherwise -None is returned. - - -%End - - -%If (Qt_NETWORKPROTOCOL_FTP) -%If (Qt_2_2_0 -) - -class QFtp : QNetworkProtocol -{ -%TypeHeaderCode -#include -%End - -public: - QFtp(); -%If (Qt_3_1_0 -) - QFtp(QObject * /TransferThis/,const char * = 0); -%End - virtual ~QFtp(); - -%If (Qt_3_0_0 -) - int supportedOperations() const; -%End -%If (- Qt_3_0_0) - virtual int supportedOperations() const; -%End - -%If (Qt_3_1_0 -) - enum State { - Unconnected, - HostLookup, - Connecting, - Connected, - LoggedIn, - Closing - }; - - enum Error { - NoError, - UnknownError, - HostNotFound, - ConnectionRefused, - NotConnected - }; - - enum Command { - None, - ConnectToHost, - Login, - Close, - List, - Cd, - Get, - Put, - Remove, - Mkdir, - Rmdir, - Rename, - RawCommand - }; - - int connectToHost(const QString &,Q_UINT16 = 21) /ReleaseGIL/; - int login(const QString & = QString::null, - const QString & = QString::null) /ReleaseGIL/; - int close() /ReleaseGIL/; - int list(const QString & = QString::null) /ReleaseGIL/; - int cd(const QString &) /ReleaseGIL/; - int get(const QString &,QIODevice * = 0) /ReleaseGIL/; - int put(const QByteArray &,const QString &) /ReleaseGIL/; - int put(QIODevice *,const QString &) /ReleaseGIL/; - int remove(const QString &) /ReleaseGIL/; - int mkdir(const QString &) /ReleaseGIL/; - int rmdir(const QString &) /ReleaseGIL/; - int rename(const QString &,const QString &) /ReleaseGIL/; - - int rawCommand(const QString &) /ReleaseGIL/; - - unsigned long bytesAvailable() const; - - SIP_PYOBJECT readBlock(Q_ULONG) /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)]; -%MethodCode - char *buf; - - if ((buf = (char *)sipMalloc(a0)) == NULL) - sipIsErr = 1; - else - { - Q_LONG actlen; - - Py_BEGIN_ALLOW_THREADS - actlen = sipCpp -> QFtp::readBlock(buf,a0); - Py_END_ALLOW_THREADS - - if (actlen < 0) - { - Py_INCREF(Py_None); - sipRes = Py_None; - } - else if ((sipRes = PyString_FromStringAndSize(buf,actlen)) == NULL) - sipIsErr = 1; - - sipFree((ANY *)buf); - } -%End - - QByteArray readAll() /ReleaseGIL/; - - int currentId() const; - QIODevice* currentDevice() const; - Command currentCommand() const; - bool hasPendingCommands() const; - void clearPendingCommands(); - - State state() const; - - Error error() const; - QString errorString() const; -%End - -public slots: -%If (Qt_3_1_0 -) - void abort(); -%End - -signals: -%If (Qt_3_1_0 -) - void stateChanged(int); - void listInfo(const QUrlInfo &); - void readyRead(); - void dataTransferProgress(int,int); - void rawCommandReply(int,const QString &); - - void commandStarted(int); - void commandFinished(int,bool); - void done(bool); -%End - -protected: - void parseDir(const QString &,QUrlInfo &); - virtual void operationListChildren(QNetworkOperation *); - virtual void operationMkDir(QNetworkOperation *); - virtual void operationRemove(QNetworkOperation *); - virtual void operationRename(QNetworkOperation *); - virtual void operationGet(QNetworkOperation *); - virtual void operationPut(QNetworkOperation *); -}; - -%End -%End diff --git a/python/pyqt/sip/qtnetwork/qhostaddress.sip b/python/pyqt/sip/qtnetwork/qhostaddress.sip deleted file mode 100644 index 6e737068..00000000 --- a/python/pyqt/sip/qtnetwork/qhostaddress.sip +++ /dev/null @@ -1,99 +0,0 @@ -// This is the SIP interface definition for QHostAddress. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QHostAddress (Qt v2.2+) - - QHostAddress - Q_UINT8 *ip6Addr - - -Not yet implemented. - - - - QHostAddress - const Q_IPV6ADDR &ip6Addr - - -Not yet implemented. - - - - void setAddress - Q_UINT8 *ip6Addr - - -Not yet implemented. - - - - Q_IPV6ADDR toIPv6Address const - - - -Not yet implemented. - - -%End - - -%If (Qt_2_2_0 -) - -class QHostAddress -{ -%TypeHeaderCode -#include -%End - -public: - QHostAddress(); - QHostAddress(Q_UINT32); -// QHostAddress(Q_UINT8 *); -%If (Qt_3_3_0 -) - //QHostAddress(const Q_IPV6ADDR &); - // This isn't mentioned in the documentation. - //QHostAddress(const QString &); -%End - QHostAddress(const QHostAddress &); - - void setAddress(Q_UINT32); -// void setAddress(Q_UINT8 *); - bool setAddress(const QString &); - bool isIp4Addr() const; - Q_UINT32 ip4Addr() const; - -%If (Qt_3_3_0 -) - bool isIPv4Address() const; - Q_UINT32 toIPv4Address() const; - bool isIPv6Address() const; - //Q_IPV6ADDR toIPv6Address() const; -%End - - QString toString() const; - -%If (Qt_3_2_0 -) - bool isNull() const; -%End -}; - -%End diff --git a/python/pyqt/sip/qtnetwork/qhttp.sip b/python/pyqt/sip/qtnetwork/qhttp.sip deleted file mode 100644 index aafdc5b9..00000000 --- a/python/pyqt/sip/qtnetwork/qhttp.sip +++ /dev/null @@ -1,279 +0,0 @@ -// This is the SIP interface definition for QHttp, QHttpHeader, -// QHttpRequestHeader and QHttpResponseHeader. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QHttp (Qt v3+) - - Q_LONG readBlock - char *data - Q_ULONG maxlen - - -This takes a single maxlen parameter. The -data is returned if there was no error, otherwise -None is returned. - - - -QHttpHeader (Qt v3.1+) - -QHttpHeader is fully implemented. - - - -QHttpRequestHeader (Qt v3.1+) - -QHttpRequestHeader is fully implemented. - - - -QHttpResponseHeader (Qt v3.1+) - -QHttpResponseHeader is fully implemented. - - -%End - - -%If (Qt_NETWORKPROTOCOL_HTTP) -%If (Qt_3_1_0 -) - -class QHttpHeader -{ -%TypeHeaderCode -#include -%End - -public: - QHttpHeader(); - QHttpHeader(const QHttpHeader &); - QHttpHeader(const QString &); - virtual ~QHttpHeader(); - - QString value(const QString &) const; - void setValue(const QString &,const QString &); - void removeValue(const QString &); - - QStringList keys() const; - bool hasKey(const QString &) const; - - bool hasContentLength() const; - uint contentLength() const; - void setContentLength(int); - - bool hasContentType() const; - QString contentType() const; - void setContentType(const QString &); - - virtual QString toString() const; - bool isValid() const; - - virtual int majorVersion() const = 0; - virtual int minorVersion() const = 0; - -protected: - virtual bool parseLine(const QString &,int); - bool parse(const QString &); - void setValid(bool); -}; - - -class QHttpResponseHeader : QHttpHeader -{ -%TypeHeaderCode -#include -%End - -public: - QHttpResponseHeader(); - QHttpResponseHeader(const QHttpResponseHeader &); - - int statusCode() const; - QString reasonPhrase() const; - - int majorVersion() const; - int minorVersion() const; - - QString toString() const; - -protected: - bool parseLine(const QString &,int); -}; - - -class QHttpRequestHeader : QHttpHeader -{ -%TypeHeaderCode -#include -%End - -public: - QHttpRequestHeader(); - QHttpRequestHeader(const QString &,const QString &,int = 1,int = 1); - QHttpRequestHeader(const QHttpRequestHeader &); - QHttpRequestHeader(const QString &); - - void setRequest(const QString &,const QString &,int = 1,int = 1); - - QString method() const; - QString path() const; - - int majorVersion() const; - int minorVersion() const; - - QString toString() const; - -protected: - bool parseLine(const QString &,int); -}; - -%End - - -%If (Qt_3_0_0 -) - -class QHttp : QNetworkProtocol -{ -%TypeHeaderCode -#include -%End - -public: - QHttp(); -%If (Qt_3_1_0 -) - QHttp(QObject * /TransferThis/,const char * = 0); - QHttp(const QString &,Q_UINT16 = 80,QObject * /TransferThis/ = 0, - const char * = 0); - virtual ~QHttp(); -%End - - int supportedOperations() const; - -%If (Qt_3_1_0 -) - enum State { - Unconnected, - HostLookup, - Connecting, - Sending, - Reading, - Connected, - Closing - }; - - enum Error { - NoError, - UnknownError, - HostNotFound, - ConnectionRefused, - UnexpectedClose, - InvalidResponseHeader, - WrongContentLength, - Aborted - }; - - int setHost(const QString &,Q_UINT16 = 80); - - int get(const QString &,QIODevice * = 0) /ReleaseGIL/; - int post(const QString &,QIODevice *,QIODevice * = 0) /ReleaseGIL/; - int post(const QString &,const QByteArray &, - QIODevice * = 0) /ReleaseGIL/; - int head(const QString &) /ReleaseGIL/; - int request(const QHttpRequestHeader &,QIODevice * = 0, - QIODevice * = 0) /ReleaseGIL/; - int request(const QHttpRequestHeader &,const QByteArray &, - QIODevice * = 0) /ReleaseGIL/; - - int closeConnection(); - - unsigned long bytesAvailable() const; - - SIP_PYOBJECT readBlock(Q_ULONG) /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)]; -%MethodCode - char *buf; - - if ((buf = (char *)sipMalloc(a0)) == NULL) - sipIsErr = 1; - else - { - Q_LONG actlen; - - Py_BEGIN_ALLOW_THREADS - actlen = sipCpp -> QHttp::readBlock(buf,a0); - Py_END_ALLOW_THREADS - - if (actlen < 0) - { - Py_INCREF(Py_None); - sipRes = Py_None; - } - else if ((sipRes = PyString_FromStringAndSize(buf,actlen)) == NULL) - sipIsErr = 1; - - sipFree((ANY *)buf); - } -%End - - QByteArray readAll() /ReleaseGIL/; - - int currentId() const; - QIODevice *currentSourceDevice() const; - QIODevice *currentDestinationDevice() const; - QHttpRequestHeader currentRequest() const; - bool hasPendingRequests() const; - void clearPendingRequests(); - - State state() const; - - Error error() const; - QString errorString() const; -%End - -public slots: -%If (Qt_3_1_0 -) - void abort(); -%End - -signals: -%If (Qt_3_1_0 -) - void stateChanged(int); - void responseHeaderReceived(const QHttpResponseHeader &); - void readyRead(const QHttpResponseHeader &); - void dataSendProgress(int,int); - void dataReadProgress(int,int); - - void requestStarted(int); - void requestFinished(int,bool); - void done(bool); -%End - -protected: - void operationGet(QNetworkOperation *); - void operationPut(QNetworkOperation *); - -%If (Qt_3_1_0 -) - void timerEvent(QTimerEvent *); -%End -}; - -%End -%End diff --git a/python/pyqt/sip/qtnetwork/qlocalfs.sip b/python/pyqt/sip/qtnetwork/qlocalfs.sip deleted file mode 100644 index d9906945..00000000 --- a/python/pyqt/sip/qtnetwork/qlocalfs.sip +++ /dev/null @@ -1,56 +0,0 @@ -// This is the SIP interface definition for QLocalFs. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QLocalFs (Qt v2.1+) - -QLocalFs is fully implemented. - - -%End - - -%If (Qt_NETWORKPROTOCOL) -%If (Qt_2_1_0 -) - -class QLocalFs : QNetworkProtocol -{ -%TypeHeaderCode -#include -%End - -public: - QLocalFs(); - - virtual int supportedOperations() const; - -protected: - virtual void operationListChildren(QNetworkOperation *); - virtual void operationMkDir(QNetworkOperation *); - virtual void operationRemove(QNetworkOperation *); - virtual void operationRename(QNetworkOperation *); - virtual void operationGet(QNetworkOperation *); - virtual void operationPut(QNetworkOperation *); -}; - -%End -%End diff --git a/python/pyqt/sip/qtnetwork/qnetwork.sip b/python/pyqt/sip/qtnetwork/qnetwork.sip deleted file mode 100644 index 5480d5cd..00000000 --- a/python/pyqt/sip/qtnetwork/qnetwork.sip +++ /dev/null @@ -1,34 +0,0 @@ -// This is the SIP interface definition for qInitNetworkProtocols. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If (Qt_NETWORKPROTOCOL) -%If (Qt_2_2_0 -) - -%ModuleHeaderCode -#include -#include -%End - -void qInitNetworkProtocols(); - -%End -%End diff --git a/python/pyqt/sip/qtnetwork/qserversocket.sip b/python/pyqt/sip/qtnetwork/qserversocket.sip deleted file mode 100644 index 41658dc5..00000000 --- a/python/pyqt/sip/qtnetwork/qserversocket.sip +++ /dev/null @@ -1,70 +0,0 @@ -// This is the SIP interface definition for QServerSocket. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QServerSocket (Qt v2.2+) - -QServerSocket is fully implemented. - - -%End - - -%If (Qt_2_2_0 -) - -class QServerSocket : QObject -{ -%TypeHeaderCode -#include -%End - -public: -%If (- Qt_3_0_0) - QServerSocket(Q_UINT16,int = 0,QObject * /TransferThis/ = 0, - const char * = 0); - QServerSocket(const QHostAddress &,Q_UINT16,int = 0, - QObject * /TransferThis/ = 0,const char * = 0); -%End -%If (Qt_3_0_0 -) - QServerSocket(Q_UINT16,int = 1,QObject * /TransferThis/ = 0, - const char * = 0); - QServerSocket(const QHostAddress &,Q_UINT16,int = 1, - QObject * /TransferThis/ = 0,const char * = 0); -%End - QServerSocket(QObject * /TransferThis/ = 0,const char * = 0); - - bool ok() const; - - Q_UINT16 port() const; - - int socket() const; - virtual void setSocket(int); - - QHostAddress address() const ; - - virtual void newConnection(int) = 0; - -protected: - QSocketDevice *socketDevice(); -}; - -%End diff --git a/python/pyqt/sip/qtnetwork/qsocket.sip b/python/pyqt/sip/qtnetwork/qsocket.sip deleted file mode 100644 index c3e63220..00000000 --- a/python/pyqt/sip/qtnetwork/qsocket.sip +++ /dev/null @@ -1,348 +0,0 @@ -// This is the SIP interface definition for QSocket. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSocket (Qt v2.2+) - - Q_LONG readBlock - char *data - Q_ULONG len - - -This takes a single len parameter. The -data is returned if there was no error, otherwise -Py_None is returned. - - - - Q_LONG readLine - char *data - Q_ULONG maxlen - - -This takes a single maxlen parameter. The -data is returned if there was no error, otherwise -Py_None is returned. - - - - Q_LONG writeBlock - const char *data - Q_ULONG len - - -len is derived from data and not passed -as a parameter. - - -%End - - -%If (Qt_2_2_0 -) - -class QSocket : QObject, QIODevice -{ -%TypeHeaderCode -#include -%End - -public: - enum Error { - ErrConnectionRefused, - ErrHostNotFound, - ErrSocketRead - }; - - QSocket(QObject * /TransferThis/ = 0,const char * = 0); - - enum State { - Idle, - HostLookup, - Connecting, -%If (Qt_3_0_0 -) - Connected, -%End -%If (- Qt_3_0_0) - Listening, -%End - Closing, - Connection - }; - -%ConvertToSubClassCode - static struct class_graph { - char *name; - sipWrapperType **type; - int yes, no; - } graph[] = { - {sipName_QServerSocket, &sipClass_QServerSocket, -1, 1}, - {sipName_QSocket, &sipClass_QSocket, -1, 2}, - {sipName_QFtp, &sipClass_QFtp, -1, 3}, - {sipName_QLocalFs, &sipClass_QLocalFs, -1, 4}, -#if QT_VERSION >= 0x030000 - {sipName_QHttp, &sipClass_QHttp, -1, 5}, -#else - {NULL, NULL, -1, 5}, -#endif - {sipName_QDns, &sipClass_QDns, -1, -1}, - }; - - int i = 0; - - sipClass = NULL; - - do - { - struct class_graph *cg = &graph[i]; - - if (cg->name != NULL && sipCpp->inherits(cg->name)) - { - sipClass = *cg->type; - i = cg->yes; - } - else - i = cg->no; - } - while (i >= 0); -%End - - State state() const; - - int socket() const; - virtual void setSocket(int); - -%If (Qt_3_0_0 -) - QSocketDevice *socketDevice(); - virtual void setSocketDevice(QSocketDevice *); -%End - -%If (Qt_DNS) - virtual void connectToHost(const QString &,Q_UINT16) /ReleaseGIL/; -%End - QString peerName() const; - - bool open(int) /ReleaseGIL/; - void close() /ReleaseGIL/; - void flush() /ReleaseGIL/; -%If (Qt_3_0_0 -) - Offset size() const; - Offset at() const; - bool at(Offset); -%End -%If (- Qt_3_0_0) - uint size() const; - int at() const; - bool at(int); -%End - bool atEnd() const; - -%If (Qt_3_0_0 -) - Q_ULONG bytesAvailable() const; - Q_ULONG waitForMore(int) const /ReleaseGIL/; - //Q_ULONG waitForMore(int,bool *) const /ReleaseGIL/; - Q_ULONG bytesToWrite() const; -%End -%If (- Qt_3_0_0) - int bytesAvailable() const; - int waitForMore(int) const /ReleaseGIL/; - int bytesToWrite() const; -%End -%If (Qt_3_1_0 -) - void clearPendingData(); -%End - -%If (- Qt_3_0_0) - SIP_PYOBJECT readBlock(uint) /ReleaseGIL/ [int (char *,uint)]; -%MethodCode - char *buf; - - if ((buf = (char *)sipMalloc(a0)) == NULL) - sipIsErr = 1; - else - { - int actlen; - - Py_BEGIN_ALLOW_THREADS - actlen = sipSelfWasArg ? sipCpp -> QSocket::readBlock(buf,a0) : sipCpp -> readBlock(buf,a0); - Py_END_ALLOW_THREADS - - if (actlen < 0) - { - sipFree((ANY *)buf); - - Py_INCREF(Py_None); - sipRes = Py_None; - } - else - { - sipRes = PyString_FromStringAndSize(buf,actlen); - - sipFree((ANY *)buf); - - if (sipRes == NULL) - sipIsErr = 1; - } - } -%End - - int writeBlock(const char * /Array/,uint /ArraySize/) /ReleaseGIL/; - - SIP_PYOBJECT readLine(uint) /ReleaseGIL/ [int (char *,uint)]; -%MethodCode - char *buf; - - if ((buf = (char *)sipMalloc(a0)) == NULL) - sipIsErr = 1; - else - { - int actlen; - - Py_BEGIN_ALLOW_THREADS - actlen = sipCpp -> readLine(buf,a0); - Py_END_ALLOW_THREADS - - if (actlen < 0) - { - sipFree((ANY *)buf); - - Py_INCREF(Py_None); - sipRes = Py_None; - } - else - { - sipRes = PyString_FromStringAndSize(buf,actlen); - - sipFree((ANY *)buf); - - if (sipRes == NULL) - sipIsErr = 1; - } - } -%End -%End -%If (Qt_3_0_0 -) - SIP_PYOBJECT readBlock(Q_ULONG) /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)]; -%MethodCode - char *buf; - - if ((buf = (char *)sipMalloc(a0)) == NULL) - sipIsErr = 1; - else - { - Q_LONG actlen; - - Py_BEGIN_ALLOW_THREADS - actlen = sipSelfWasArg ? sipCpp -> QSocket::readBlock(buf,a0) : sipCpp -> readBlock(buf,a0); - Py_END_ALLOW_THREADS - - if (actlen < 0) - { - sipFree((ANY *)buf); - - Py_INCREF(Py_None); - sipRes = Py_None; - } - else - { - sipRes = PyString_FromStringAndSize(buf,actlen); - - sipFree((ANY *)buf); - - if (sipRes == NULL) - sipIsErr = 1; - } - } -%End - - Q_LONG writeBlock(const char * /Array/, - Q_ULONG /ArraySize/) /ReleaseGIL/; - - SIP_PYOBJECT readLine(Q_ULONG) /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)]; -%MethodCode - char *buf; - - if ((buf = (char *)sipMalloc(a0)) == NULL) - sipIsErr = 1; - else - { - Q_LONG actlen; - - Py_BEGIN_ALLOW_THREADS - actlen = sipCpp -> readLine(buf,a0); - Py_END_ALLOW_THREADS - - if (actlen < 0) - { - sipFree((ANY *)buf); - - Py_INCREF(Py_None); - sipRes = Py_None; - } - else - { - sipRes = PyString_FromStringAndSize(buf,actlen); - - sipFree((ANY *)buf); - - if (sipRes == NULL) - sipIsErr = 1; - } - } -%End -%End - - int getch() /ReleaseGIL/; - int putch(int) /ReleaseGIL/; - int ungetch(int); - - bool canReadLine() const; - virtual QString readLine() /ReleaseGIL/; - - Q_UINT16 port() const; - Q_UINT16 peerPort() const; - QHostAddress address() const; - QHostAddress peerAddress() const; - -%If (Qt_3_2_0 -) - void setReadBufferSize(Q_ULONG); - Q_ULONG readBufferSize() const; -%End - -signals: - void hostFound(); - void connected(); - void connectionClosed(); - void delayedCloseFinished(); - void readyRead(); - void bytesWritten(int); - void error(int); - -protected: -%If (- Qt_3_0_0) - QSocketDevice *socketDevice(); -%End - -private: - QSocket(const QSocket &); -}; - -%End diff --git a/python/pyqt/sip/qtnetwork/qsocketdevice.sip b/python/pyqt/sip/qtnetwork/qsocketdevice.sip deleted file mode 100644 index 6e664582..00000000 --- a/python/pyqt/sip/qtnetwork/qsocketdevice.sip +++ /dev/null @@ -1,224 +0,0 @@ -// This is the SIP interface definition for QSocketDevice. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSocketDevice (Qt v2.2+) - - Q_LONG readBlock - char *data - Q_ULONG len - - -This takes a single len parameter. The -data is returned if there was no error, otherwise -None is returned. - - - - Q_LONG writeBlock - const char *data - Q_ULONG len - - -len is derived from data and not passed -as a parameter. - - -%End - - -%If (Qt_2_2_0 -) - -class QSocketDevice : QIODevice -{ -%TypeHeaderCode -#include -%End - -public: - enum Type { - Stream, - Datagram - }; - -%If (Qt_3_3_0 -) - enum Protocol { - IPv4, - IPv6, - Unknown - }; -%End - - QSocketDevice(Type = Stream); -%If (Qt_3_3_0 -) - QSocketDevice(Type,Protocol,int); -%End - QSocketDevice(int,Type); - - bool isValid() const; - Type type() const; -%If (Qt_3_3_0 -) - Protocol protocol() const; -%End - - int socket() const; - virtual void setSocket(int,Type); - - bool open(int) /ReleaseGIL/; - void close(); - void flush() /ReleaseGIL/; - -%If (- Qt_3_0_0) - uint size() const; - int at() const; - bool at(int); -%End -%If (Qt_3_0_0 -) - Offset size() const; - Offset at() const; - bool at(Offset); -%End - bool atEnd() const; - - bool blocking() const; - virtual void setBlocking(bool); - - bool addressReusable() const; - virtual void setAddressReusable(bool); - - int receiveBufferSize() const; - virtual void setReceiveBufferSize(uint); - int sendBufferSize() const; - virtual void setSendBufferSize(uint); - - virtual bool connect(const QHostAddress &,Q_UINT16); - - virtual bool bind(const QHostAddress &,Q_UINT16); - virtual bool listen(int); - virtual int accept(); - -%If (- Qt_3_0_0) - int bytesAvailable() const; - int waitForMore(int) const /ReleaseGIL/; -%End -%If (Qt_3_0_0 -) - Q_LONG bytesAvailable() const; - Q_LONG waitForMore(int) const /ReleaseGIL/; -%End - -%If (- Qt_3_0_0) - SIP_PYOBJECT readBlock(uint) /ReleaseGIL/ [int (char *,uint)]; -%MethodCode - char *buf; - - if ((buf = (char *)sipMalloc(a0)) == NULL) - sipIsErr = 1; - else - { - int actlen; - - Py_BEGIN_ALLOW_THREADS - actlen = sipSelfWasArg ? sipCpp -> QSocketDevice::readBlock(buf,a0) : sipCpp -> readBlock(buf,a0); - Py_END_ALLOW_THREADS - - if (actlen < 0) - { - Py_INCREF(Py_None); - sipRes = Py_None; - } - else if ((sipRes = PyString_FromStringAndSize(buf,actlen)) == NULL) - sipIsErr = 1; - - sipFree((ANY *)buf); - } -%End - - int writeBlock(const char * /Array/,uint /ArraySize/) /ReleaseGIL/; - virtual int writeBlock(const char * /Array/,uint /ArraySize/, - const QHostAddress &,Q_UINT16) /ReleaseGIL/; -%End -%If (Qt_3_0_0 -) - SIP_PYOBJECT readBlock(Q_ULONG) /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)]; -%MethodCode - char *buf; - - if ((buf = (char *)sipMalloc(a0)) == NULL) - sipIsErr = 1; - else - { - Q_LONG actlen; - - Py_BEGIN_ALLOW_THREADS - actlen = sipSelfWasArg ? sipCpp -> QSocketDevice::readBlock(buf,a0) : sipCpp -> readBlock(buf,a0); - Py_END_ALLOW_THREADS - - if (actlen < 0) - { - Py_INCREF(Py_None); - sipRes = Py_None; - } - else if ((sipRes = PyString_FromStringAndSize(buf,actlen)) == NULL) - sipIsErr = 1; - - sipFree((ANY *)buf); - } -%End - - - Q_LONG writeBlock(const char * /Array/, - Q_ULONG /ArraySize/) /ReleaseGIL/; - virtual Q_LONG writeBlock(const char * /Array/,Q_ULONG /ArraySize/, - const QHostAddress &,Q_UINT16) /ReleaseGIL/; -%End - - int getch(); - int putch(int); - int ungetch(int); - - Q_UINT16 port() const; - Q_UINT16 peerPort() const; - QHostAddress address() const; - QHostAddress peerAddress() const; - - enum Error { - NoError, - AlreadyBound, - Inaccessible, - NoResources, - Bug, - Impossible, - NoFiles, - ConnectionRefused, - NetworkFailure, - UnknownError - }; - - Error error() const; - -protected: - void setError(Error); - -private: - QSocketDevice(const QSocketDevice &); -}; - -%End diff --git a/python/pyqt/sip/qtnetwork/qtnetworkmod.sip b/python/pyqt/sip/qtnetwork/qtnetworkmod.sip deleted file mode 100644 index 24ede37a..00000000 --- a/python/pyqt/sip/qtnetwork/qtnetworkmod.sip +++ /dev/null @@ -1,78 +0,0 @@ -// This is the SIP interface definition for the qtnetwork module of PyQt. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Module qtnetwork 1 - -%Import qt/qtmod.sip - -%Include copying.sip - - -%Include qdns.sip -%Include qhostaddress.sip -%Include qftp.sip -%Include qhttp.sip -%Include qlocalfs.sip -%Include qnetwork.sip -%Include qserversocket.sip -%Include qsocket.sip -%Include qsocketdevice.sip - - -// The build file template. - -%Makefile qtnetwork.pro.in -# The project file for the qtnetwork module. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -TEMPLATE = lib -TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ -INCLUDEPATH = @BLX_INCLUDEPATH@ -DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QT_MODULE@ @BLX_LIBS@ -macx:QMAKE_LFLAGS += -framework Python - -SOURCES = $B - -HEADERS = $H -%End diff --git a/python/pyqt/sip/qtpe/copying.sip b/python/pyqt/sip/qtpe/copying.sip deleted file mode 100644 index 21c27d4e..00000000 --- a/python/pyqt/sip/qtpe/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited - -This file is part of PyQt. - -This copy of PyQt is free software; you can redistribute 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. - -PyQt 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 -PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -%End - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/python/pyqt/sip/qtpe/qpeapplication.sip b/python/pyqt/sip/qtpe/qpeapplication.sip deleted file mode 100644 index 32688097..00000000 --- a/python/pyqt/sip/qtpe/qpeapplication.sip +++ /dev/null @@ -1,223 +0,0 @@ -// This is the SIP interface definition for QPEApplication. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class QPEApplication : QApplication -{ -%TypeHeaderCode -#include -#include -%End - -public: - QPEApplication(SIP_PYLIST,Type=GuiClient) [(int &,char **,Type=GuiClient)]; -%MethodCode - // The Python interface is a list of argument strings that is - // modified. - - int argc; - char **argv; - - // Convert the list. - if ((argv = pyArgvToC(a0,&argc)) == NULL) - sipIsErr = 1; - else - { - // Create it now the arguments are right. - int nargc = argc; - - Py_BEGIN_ALLOW_THREADS - sipCpp = new sipQPEApplication(nargc,argv,(QApplication::Type)a1); - Py_END_ALLOW_THREADS - - // Now modify the original list. - updatePyArgv(a0,argc,argv); - } -%End - - ~QPEApplication(); -%MethodCode - // See the comments in ~QApplication() to understand what's - // being done here. - - QWidgetList *tlw = QApplication::topLevelWidgets(); - QWidgetListIt it(*tlw); - QWidget *w; - - while ((w = it.current()) != 0) - { - PyObject *sw; - - if ((sw = sipGetWrapper(w,sipClass_QWidget)) != NULL) - sipTransferTo(sw,NULL); - - ++it; - } - - delete tlw; -%End - -%ConvertToSubClassCode - // The table of Python class objects indexed by their names. The table - // must be sorted by name. - - static sipStringTypeClassMap map[] = { - {sipName_FileSelector, &sipClass_FileSelector}, - {sipName_MenuButton, &sipClass_MenuButton}, - {sipName_QPEApplication, &sipClass_QPEApplication}, - {sipName_QPEMenuBar, &sipClass_QPEMenuBar}, - {sipName_QPEToolBar, &sipClass_QPEToolBar}, - }; - - sipClass = sipMapStringToClass(sipCpp -> className(),map, - sizeof (map)/sizeof (map[0])); -%End - - static QString qpeDir(); - static QString documentDir(); - void applyStyle(); - static int defaultRotation(); - static void setDefaultRotation(int); - static void grabKeyboard(); - static void ungrabKeyboard(); - - enum StylusMode { - LeftOnly, - RightOnHold - }; - - static void setStylusOperation(QWidget *,StylusMode); - static StylusMode stylusOperation(QWidget *); - - enum InputMethodHint { - Normal, - AlwaysOff, - AlwaysOn - }; - - enum screenSaverHint { - Disable, - DisableLightOff, - DisableSuspend, - Enable - }; - - static void setInputMethodHint(QWidget *,InputMethodHint); - static InputMethodHint inputMethodHint(QWidget *); - - void showMainWidget(QWidget *,bool = 0); - void showMainDocumentWidget(QWidget *,bool = 0); - - static void setKeepRunning(); - bool keepRunning() const; - - int exec() /PyName=exec_loop, ReleaseGIL, - PreHook=__pyQtPreEventLoopHook__, - PostHook=__pyQtPostEventLoopHook__/; - -signals: - void clientMoused(); - void timeChanged(); - void clockChanged(bool); - void volumeChanged(bool); - void appMessage(const QCString &,const QByteArray &); - void weekChanged(bool); - void dateFormatChanged(DateFormat); - void flush(); - void reload(); - -protected: -// bool qwsEventFilter(QWSEvent *); -// void internalSetStyle(const QString &); - void prepareForTermination(bool); - virtual void restart(); - virtual void shutdown(); - bool eventFilter(QObject *,QEvent *); - void timerEvent(QTimerEvent *); - bool keyboardGrabbed() const; - bool raiseAppropriateWindow(); - virtual void tryQuit(); - - -%TypeCode -#include - - -// Convert a Python argv list to a conventional C argc count and argv array. -static 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. -static 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 - -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpeapplnk.sip b/python/pyqt/sip/qtpe/qpeapplnk.sip deleted file mode 100644 index 985ff3c5..00000000 --- a/python/pyqt/sip/qtpe/qpeapplnk.sip +++ /dev/null @@ -1,157 +0,0 @@ -// This is the SIP interface definition for AppLnk, AppLnkSet, DocLnk and -// DocLnkSet. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class AppLnk -{ -%TypeHeaderCode -#include -%End - -public: - AppLnk(); - AppLnk(const QString &); - AppLnk(const AppLnk &); - - bool isValid() const; - - static void setSmallIconSize(int); - static void setBigIconSize(int); - static int smallIconSize(); - static int bigIconSize(); - - QString name() const; - const QPixmap& pixmap() const; - const QPixmap& bigPixmap() const; - virtual QString exec() const /PyName=exec_property/; - QString type() const; - QString rotation() const; - QString comment() const; - QString file() const; - QString linkFile() const; - QStringList mimeTypes() const; - QStringList mimeTypeIcons() const; - const QArray &categories() const; - int id() const; - - bool fileKnown() const; - bool linkFileKnown() const; - - void execute() const /ReleaseGIL/; - void execute(const QStringList &) const /ReleaseGIL/; - void removeFiles(); - void removeLinkFile(); - - void setName(const QString &); - void setExec(const QString &); - void setFile(const QString &); - void setLinkFile(const QString &); - void setComment(const QString &); - void setType(const QString &); - void setIcon(const QString &); - void setCategories(const QArray &); - bool writeLink() const; - - void setProperty(const QString &,const QString &); - QString property(const QString &) const; - -protected: - virtual void invoke(const QStringList &) const; - bool ensureLinkExists() const; -// Undocumented and missing on the Zaurus. -// void storeLink() const; -}; - - -class DocLnk : AppLnk -{ -%TypeHeaderCode -#include -%End - -public: - DocLnk(); - DocLnk(const DocLnk &); - DocLnk(const QString &); - DocLnk(const QString &,bool); - - QString exec() const /PyName=exec_property/; - -protected: - void invoke(const QStringList &) const; -}; - - -class AppLnkSet -{ -%TypeHeaderCode -#include -%End - -public: - AppLnkSet(); - AppLnkSet(const QString &); - - const AppLnk *find(int) const; - const AppLnk *findExec(const QString &) const; - - QStringList types() const; - QString typeName(const QString &) const; - QPixmap typePixmap(const QString &) const; - QPixmap typeBigPixmap(const QString &) const; - - void add(AppLnk *); - bool remove(AppLnk *); - - const QList &children() const; - void detachChildren(); - -private: - AppLnkSet(const AppLnkSet &); -}; - - -class DocLnkSet : AppLnkSet -{ -%TypeHeaderCode -#include -%End - -public: - DocLnkSet(); - DocLnkSet(const QString &,const QString & = QString::null); - - const QList &children() const; - - void appendFrom(DocLnkSet &); - -private: - DocLnkSet(const DocLnkSet &); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpeconfig.sip b/python/pyqt/sip/qtpe/qpeconfig.sip deleted file mode 100644 index 139ec5c8..00000000 --- a/python/pyqt/sip/qtpe/qpeconfig.sip +++ /dev/null @@ -1,78 +0,0 @@ -// This is the SIP interface definition for Config. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class Config -{ -%TypeHeaderCode -#include -%End - -public: - typedef QMap ConfigGroup; - - enum Domain { - File, - User - }; - - Config(const QString &,Domain = User); - - bool isValid() const; - bool hasKey(const QString &) const; - - void setGroup(const QString &); -// void writeEntry(const QString &,const char *); - void writeEntry(const QString &,const QString &); - void writeEntryCrypt(const QString &,const QString &); - void writeEntry(const QString &,int); -// void writeEntry(const QString &,bool); - void writeEntry(const QString &,const QStringList &,const QChar &); - void removeEntry(const QString &); - - QString readEntry(const QString &, - const QString & = QString::null) const; - QString readEntryCrypt(const QString &, - const QString & = QString::null) const; - QString readEntryDirect(const QString &, - const QString & = QString::null) const; - int readNumEntry(const QString &,int = -1) const; - bool readBoolEntry(const QString &,bool = 0) const; - QStringList readListEntry(const QString &,const QChar &) const; - - void clearGroup(); - - void write(const QString & = QString::null); - -protected: -// void read(); -// bool parse(const QString &); - -// static QString configFilename(const QString &,Domain); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpefilemanager.sip b/python/pyqt/sip/qtpe/qpefilemanager.sip deleted file mode 100644 index bf351e1e..00000000 --- a/python/pyqt/sip/qtpe/qpefilemanager.sip +++ /dev/null @@ -1,53 +0,0 @@ -// This is the SIP interface definition for FileManager. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class FileManager -{ -%TypeHeaderCode -#include -%End - -public: - FileManager(); - - bool saveFile(const DocLnk &,const QByteArray &); - bool saveFile(const DocLnk &,const QString &); - bool loadFile(const DocLnk &,QByteArray &); - bool loadFile(const DocLnk &,QString &); - bool copyFile(const AppLnk &,const AppLnk &); - - QIODevice *openFile(const DocLnk &) /ReleaseGIL/; - QIODevice *saveFile(const DocLnk &) /ReleaseGIL/; - - bool exists(const DocLnk &); - -protected: - bool ensurePathExists(const QString &); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpefileselector.sip b/python/pyqt/sip/qtpe/qpefileselector.sip deleted file mode 100644 index f0e38535..00000000 --- a/python/pyqt/sip/qtpe/qpefileselector.sip +++ /dev/null @@ -1,69 +0,0 @@ -// This is the SIP interface definition for FileSelector and FileSelectorItem. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class FileSelectorItem : QListViewItem -{ -%TypeHeaderCode -#include -%End - -public: - FileSelectorItem(QListView * /TransferThis/,const DocLnk &); - - DocLnk file() const; -}; - - -class FileSelector : QVBox -{ -%TypeHeaderCode -#include -%End - -public: - FileSelector(const QString &,QWidget * /TransferThis/,const char *, - bool = 1,bool = 1); - - void setNewVisible(bool); - void setCloseVisible(bool); - void reread(); - int fileCount(); -%If (- QtPE_1_6_0) - const DocLnk *selected(); -%End -%If (QtPE_1_6_0 -) - DocLnk selectedDocument(); -%End - -signals: - void fileSelected(const DocLnk &); - void newSelected(const DocLnk &); - void closeMe(); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpefontdatabase.sip b/python/pyqt/sip/qtpe/qpefontdatabase.sip deleted file mode 100644 index 986e39e9..00000000 --- a/python/pyqt/sip/qtpe/qpefontdatabase.sip +++ /dev/null @@ -1,67 +0,0 @@ -// This is the SIP interface definition for FontDatabase. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -%If (Qt_FONTDATABASE) - -class FontDatabase : QFontDatabase -{ -%TypeHeaderCode -#include -%End - -public: - FontDatabase(); - - QStringList families() const; - - static void loadRenderers(); -}; - -%End - - -%If (!Qt_FONTDATABASE) - -class FontDatabase -{ -%TypeHeaderCode -#include -%End - -public: - FontDatabase(); - - QStringList families() const; - static QValueList standardSizes(); - - static void loadRenderers(); -}; - -%End - -%End diff --git a/python/pyqt/sip/qtpe/qpeglobal.sip b/python/pyqt/sip/qtpe/qpeglobal.sip deleted file mode 100644 index 4e9e9207..00000000 --- a/python/pyqt/sip/qtpe/qpeglobal.sip +++ /dev/null @@ -1,83 +0,0 @@ -// This is the SIP interface definition for Global. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class Global -{ -%TypeHeaderCode -#include -%End - -public: - Global(); - - static const QDawg &fixedDawg(); - static const QDawg &addedDawg(); - static const QDawg &dawg(const QString &); - - static void addWords(const QStringList &); - static void addWords(const QString &,const QStringList &); - - static void createDocDir(); - - static void findDocuments(DocLnkSet *,const QString & = QString::null); - - static QString applicationFileName(const QString &,const QString &); - -// struct Command { -// const char *file; -// QWidget *(*func)(bool); -// bool maximized; -// bool documentary; -// }; - -// static void setBuiltinCommands(Command *); - -%If (- QtPE_1_6_0) - static void invoke(const QString &); -%End - static void execute(const QString &,const QString & = QString::null) /ReleaseGIL/; - static void setDocument(QWidget *,const QString &); - static bool terminateBuiltin(const QString &); - static void terminate(const AppLnk *); - - static bool isBuiltinCommand(const QString &); - - static void applyStyle(); - static void statusMessage(const QString &); - static QWidget *shutdown(bool = 0); - static QWidget *restart(bool = 0); - static void hideInputMethod(); - static void showInputMethod(); - - static void writeHWClock(); - - static QString shellQuote(const QString &); - static QString stringQuote(const QString &); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpemenubar.sip b/python/pyqt/sip/qtpe/qpemenubar.sip deleted file mode 100644 index 1876c6cd..00000000 --- a/python/pyqt/sip/qtpe/qpemenubar.sip +++ /dev/null @@ -1,42 +0,0 @@ -// This is the SIP interface definition for QPEMenuBar. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class QPEMenuBar : QMenuBar -{ -%TypeHeaderCode -#include -%End - -public: - QPEMenuBar(QWidget * /TransferThis/ = 0,const char * = 0); - -protected: - virtual void keyPressEvent(QKeyEvent *); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpemenubutton.sip b/python/pyqt/sip/qtpe/qpemenubutton.sip deleted file mode 100644 index 68dcca96..00000000 --- a/python/pyqt/sip/qtpe/qpemenubutton.sip +++ /dev/null @@ -1,61 +0,0 @@ -// This is the SIP interface definition for MenuButton. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class MenuButton : QPushButton -{ -%TypeHeaderCode -#include -%End - -public: - MenuButton(QWidget * /TransferThis/,const char * = 0); - MenuButton(const QStringList &,QWidget * /TransferThis/, - const char * = 0); - - void clear(); - - int currentItem() const; - QString currentText() const; - - void insertItems(const QStringList &); - void insertItem(const QIconSet &,const QString & = QString::null); - void insertItem(const QString &); - void insertSeparator(); - - void setLabel(const QString &); - -signals: - void selected(int); - void selected(const QString &); - -public slots: - void select(int); - void select(const QString &); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpeqcopenvelope.sip b/python/pyqt/sip/qtpe/qpeqcopenvelope.sip deleted file mode 100644 index e12da90c..00000000 --- a/python/pyqt/sip/qtpe/qpeqcopenvelope.sip +++ /dev/null @@ -1,39 +0,0 @@ -// This is the SIP interface definition for QCopEnvelope. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class QCopEnvelope : QDataStream -{ -%TypeHeaderCode -#include -%End - -public: - QCopEnvelope(const QCString &,const QCString &); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpeqdawg.sip b/python/pyqt/sip/qtpe/qpeqdawg.sip deleted file mode 100644 index c98f7478..00000000 --- a/python/pyqt/sip/qtpe/qpeqdawg.sip +++ /dev/null @@ -1,65 +0,0 @@ -// This is the SIP interface definition for QDawg. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class QDawg -{ -%TypeHeaderCode -#include -%End - -public: - QDawg(); - - bool readFile(const QString &) /ReleaseGIL/; - bool read(QIODevice *) /ReleaseGIL/; - bool write(QIODevice *) const /ReleaseGIL/; - bool createFromWords(QIODevice *); - void createFromWords(const QStringList &); - QStringList allWords() const; - - bool contains(const QString &) const; - int countWords() const; - - class Node { - public: - QChar letter() const; - bool isWord() const; - bool isLast() const; - const QDawg::Node *next() const; - const QDawg::Node *jump() const; - - private: - Node(); - }; - - const QDawg::Node *root() const; - - void dump() const; -}; - -%End diff --git a/python/pyqt/sip/qtpe/qperesource.sip b/python/pyqt/sip/qtpe/qperesource.sip deleted file mode 100644 index b61d5052..00000000 --- a/python/pyqt/sip/qtpe/qperesource.sip +++ /dev/null @@ -1,50 +0,0 @@ -// This is the SIP interface definition for Resource. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class Resource -{ -%TypeHeaderCode -#include -%End - -public: - Resource(); - - static QImage loadImage(const QString &); - - static QPixmap loadPixmap(const QString &); - static QBitmap loadBitmap(const QString &); - static QString findPixmap(const QString &); - - static QIconSet loadIconSet(const QString &); - - static QString findSound(const QString &); - static QStringList allSounds(); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpetimestring.sip b/python/pyqt/sip/qtpe/qpetimestring.sip deleted file mode 100644 index 7d087a13..00000000 --- a/python/pyqt/sip/qtpe/qpetimestring.sip +++ /dev/null @@ -1,71 +0,0 @@ -// This is the SIP interface definition for DateFormat. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class DateFormat -{ -%TypeHeaderCode -#include -%End - -public: - enum Order { - DayMonthYear, - MonthDayYear, - YearMonthDay - }; - - DateFormat(QChar = '/',Order = MonthDayYear); - DateFormat(QChar,Order,Order); - DateFormat(const DateFormat &); - - enum Verbosity { - shortNumber, - longNumber, - padNumber, - shortWord, - longWord, - showWeekDay - }; - - QString toNumberString() const; - QString toWordString() const; - - QString numberDate(const QDate &,int = 0) const; - QString wordDate(const QDate &,int = 0) const; - -%If (Qt_DATASTREAM) - void load(QDataStream &); - void save(QDataStream &) const; -%End - - QChar separator() const; - Order shortOrder() const; - Order longOrder() const; -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpetoolbar.sip b/python/pyqt/sip/qtpe/qpetoolbar.sip deleted file mode 100644 index b114e97b..00000000 --- a/python/pyqt/sip/qtpe/qpetoolbar.sip +++ /dev/null @@ -1,42 +0,0 @@ -// This is the SIP interface definition for QPEToolBar. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class QPEToolBar : QToolBar -{ -%TypeHeaderCode -#include -%End - -public: - QPEToolBar(QMainWindow * /TransferThis/ = 0,const char * = 0); - -protected: - virtual void childEvent(QChildEvent *); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qtpemod.sip b/python/pyqt/sip/qtpe/qtpemod.sip deleted file mode 100644 index 877a744e..00000000 --- a/python/pyqt/sip/qtpe/qtpemod.sip +++ /dev/null @@ -1,94 +0,0 @@ -// This is the SIP interface definition for the qtpe module of PyQt. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Module qtpe 1 - -%Import qt/qtmod.sip - -%Include copying.sip - - -// QPE has it's own version numbering. -%Timeline {QtPE_1_5_0 QtPE_1_6_0} - - -%ModuleHeaderCode -#include -%End - -const char *QPE_VERSION; - - -%Include qpeapplication.sip -%Include qpeapplnk.sip -%Include qpeconfig.sip -%Include qpefilemanager.sip -%Include qpefileselector.sip -%Include qpefontdatabase.sip -%Include qpeglobal.sip -%Include qpemenubar.sip -%Include qpemenubutton.sip -%Include qpeqcopenvelope.sip -%Include qpeqdawg.sip -%Include qperesource.sip -%Include qpetimestring.sip -%Include qpetoolbar.sip - - -// The build file template. - -%Makefile qtpe.pro.in -# The project file for the qtpe module. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -TEMPLATE = lib -TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ -INCLUDEPATH = @BLX_INCLUDEPATH@ -DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QT_MODULE@ @BLX_LIBS@ -lqpe -macx:QMAKE_LFLAGS += -framework Python - -SOURCES = $B - -HEADERS = $H -%End diff --git a/python/pyqt/sip/qtsql/copying.sip b/python/pyqt/sip/qtsql/copying.sip deleted file mode 100644 index 21c27d4e..00000000 --- a/python/pyqt/sip/qtsql/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited - -This file is part of PyQt. - -This copy of PyQt is free software; you can redistribute 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. - -PyQt 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 -PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -%End - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/python/pyqt/sip/qtsql/qdatabrowser.sip b/python/pyqt/sip/qtsql/qdatabrowser.sip deleted file mode 100644 index c3411b68..00000000 --- a/python/pyqt/sip/qtsql/qdatabrowser.sip +++ /dev/null @@ -1,150 +0,0 @@ -// This is the SIP interface definition for QDataBrowser. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QDataBrowser (Qt v3+) - - virtual void del - - - -This has been renamed delOnCursor in Python. - - -%End - - -%If (Qt_3_0_0 -) - -class QDataBrowser : QWidget -{ -%TypeHeaderCode -#include -%End - -public: - QDataBrowser(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - - enum Boundary { - Unknown, - None, - BeforeBeginning, - Beginning, - End, - AfterEnd - }; - - Boundary boundary(); - void setBoundaryChecking(bool); - bool boundaryChecking() const; - - void setSort(const QSqlIndex &); - void setSort(const QStringList &); - QStringList sort() const; - void setFilter(const QString &); - QString filter() const; - - virtual void setSqlCursor(QSqlCursor * /GetWrapper/,bool = 0); -%MethodCode - Py_BEGIN_ALLOW_THREADS - sipSelfWasArg ? sipCpp->QDataBrowser::setSqlCursor(a0, a1) : sipCpp->setSqlCursor(a0, a1); - Py_END_ALLOW_THREADS - - // Transfer ownership of the cursor if the autoDelete flag is - // set. - if (a0 && a1) - sipTransferTo(a0Wrapper,sipSelf); -%End - - QSqlCursor* sqlCursor() const; - virtual void setForm(QSqlForm *); - QSqlForm* form(); - - virtual void setConfirmEdits(bool); - virtual void setConfirmInsert(bool); - virtual void setConfirmUpdate(bool); - virtual void setConfirmDelete(bool); - virtual void setConfirmCancels(bool); - bool confirmEdits() const; - bool confirmInsert() const; - bool confirmUpdate() const; - bool confirmDelete() const; - bool confirmCancels() const; - - virtual void setReadOnly(bool); - bool isReadOnly() const; - virtual void setAutoEdit(bool); - bool autoEdit() const; - - virtual bool seek(int,bool = 0) /ReleaseGIL/; - -signals: - void firstRecordAvailable(bool); - void lastRecordAvailable(bool); - void nextRecordAvailable(bool); - void prevRecordAvailable(bool); - - void currentChanged(const QSqlRecord *); - void primeInsert(QSqlRecord *); - void primeUpdate(QSqlRecord *); - void primeDelete(QSqlRecord *); - void beforeInsert(QSqlRecord *); - void beforeUpdate(QSqlRecord *); - void beforeDelete(QSqlRecord *); - void cursorChanged(QSqlCursor::Mode); - -public slots: - virtual void refresh(); - - virtual void insert() /ReleaseGIL/; - virtual void update() /ReleaseGIL/; - virtual void del() /PyName=delOnCursor, ReleaseGIL/; - - virtual void first() /ReleaseGIL/; - virtual void last() /ReleaseGIL/; - virtual void next() /ReleaseGIL/; - virtual void prev() /ReleaseGIL/; - - virtual void readFields(); - virtual void writeFields(); - virtual void clearValues(); - - void updateBoundary(); - -protected: - virtual bool insertCurrent() /ReleaseGIL/; - virtual bool updateCurrent() /ReleaseGIL/; - virtual bool deleteCurrent() /ReleaseGIL/; - virtual bool currentEdited(); - - virtual QSql::Confirm confirmEdit(QSql::Op) /ReleaseGIL/; - virtual QSql::Confirm confirmCancel(QSql::Op) /ReleaseGIL/; - - virtual void handleError(const QSqlError &) /ReleaseGIL/; - -private: -%If (Qt_3_1_0 -) - QDataBrowser(const QDataBrowser &); -%End -}; - -%End diff --git a/python/pyqt/sip/qtsql/qdatatable.sip b/python/pyqt/sip/qtsql/qdatatable.sip deleted file mode 100644 index 9ad248c5..00000000 --- a/python/pyqt/sip/qtsql/qdatatable.sip +++ /dev/null @@ -1,201 +0,0 @@ -// This is the SIP interface definition for QDataTable. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QDataTable (Qt v3+) - -QDataTable is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QDataTable : QTable -{ -%TypeHeaderCode -#include -%End - -public: - QDataTable(QWidget* /TransferThis/ = 0,const char * = 0); - QDataTable(QSqlCursor *,bool = 0,QWidget * /TransferThis/ = 0, - const char * = 0); - - virtual void addColumn(const QString &,const QString & = QString::null, - int = -1,const QIconSet & = QIconSet()); - virtual void removeColumn(uint); - virtual void setColumn(uint,const QString &, - const QString & = QString::null,int = -1, - const QIconSet & = QIconSet()); - - QString nullText() const; - QString trueText() const; - QString falseText() const; - DateFormat dateFormat() const; - bool confirmEdits() const; - bool confirmInsert() const; - bool confirmUpdate() const; - bool confirmDelete() const; - bool confirmCancels() const; - bool autoDelete() const; - bool autoEdit() const; - QString filter() const; - QStringList sort() const; - - virtual void setSqlCursor(QSqlCursor * /GetWrapper/ = 0,bool = 0,bool = 0); -%MethodCode - Py_BEGIN_ALLOW_THREADS - sipSelfWasArg ? sipCpp->QDataTable::setSqlCursor(a0, a1, a2) : sipCpp->setSqlCursor(a0, a1, a2); - Py_END_ALLOW_THREADS - - // Transfer ownership of the cursor if the autoDelete flag is - // set. - if (a0 && a2) - sipTransferTo(a0Wrapper,sipSelf); -%End - - QSqlCursor *sqlCursor() const; - - virtual void setNullText(const QString &); - virtual void setTrueText(const QString &); - virtual void setFalseText(const QString &); - virtual void setDateFormat(const DateFormat); - virtual void setConfirmEdits(bool); - virtual void setConfirmInsert(bool); - virtual void setConfirmUpdate(bool); - virtual void setConfirmDelete(bool); - virtual void setConfirmCancels(bool); - virtual void setAutoDelete(bool); - virtual void setAutoEdit(bool); - virtual void setFilter(const QString &); - virtual void setSort(const QStringList &); - virtual void setSort(const QSqlIndex &); - - enum Refresh { - RefreshData, - RefreshColumns, - RefreshAll - }; - - void refresh(Refresh); - void sortColumn(int,bool = 1,bool = 0); - QString text(int,int) const; - QVariant value(int,int) const; - QSqlRecord *currentRecord() const; - - void installEditorFactory(QSqlEditorFactory * /Transfer/); - void installPropertyMap(QSqlPropertyMap * /Transfer/); - - int numCols() const; - int numRows() const; - void setNumCols(int); - void setNumRows(int); - bool findBuffer(const QSqlIndex &,int = 0); - -%If (Qt_3_2_0 -) - void hideColumn(int); - void showColumn(int); -%End - -signals: - void currentChanged(QSqlRecord *); - void primeInsert(QSqlRecord *); - void primeUpdate(QSqlRecord *); - void primeDelete(QSqlRecord *); - void beforeInsert(QSqlRecord *); - void beforeUpdate(QSqlRecord *); - void beforeDelete(QSqlRecord *); - void cursorChanged(QSql::Op); - -public slots: - virtual void find(const QString &,bool,bool); - virtual void sortAscending(int); - virtual void sortDescending(int); - virtual void refresh(); - void setColumnWidth(int,int); -%If (Qt_3_0_5 -) - void adjustColumn(int); - void setColumnStretchable(int,bool); -%End -%If (Qt_3_1_0 -) - void swapColumns(int,int,bool = 0); -%End - -protected: - virtual bool insertCurrent(); - virtual bool updateCurrent(); - virtual bool deleteCurrent(); - - virtual QSql::Confirm confirmEdit(QSql::Op); - virtual QSql::Confirm confirmCancel(QSql::Op); - - virtual void handleError(const QSqlError &); - - virtual bool beginInsert(); - virtual QWidget *beginUpdate(int,int,bool); - - bool eventFilter(QObject *,QEvent *); -%If (Qt_3_2_0 -) - void keyPressEvent(QKeyEvent *); -%End - void resizeEvent(QResizeEvent *); - void contentsMousePressEvent(QMouseEvent *); - void contentsContextMenuEvent(QContextMenuEvent *); - void endEdit(int,int,bool,bool); - - // We don't specify /Factory/ for this because the returned QWidget - // will always have a parent which will own it. - QWidget *createEditor(int,int,bool) const; - - void activateNextCell(); - int indexOf(uint) const; - void reset(); - void setSize(QSqlCursor *); - void repaintCell(int,int); - void paintCell(QPainter *,int,int,const QRect &,bool, - const QColorGroup &); - virtual void paintField(QPainter *,const QSqlField *,const QRect &, - bool); -%If (Qt_3_1_0 -) - void drawContents(QPainter *,int,int,int,int); -%End - virtual int fieldAlignment(const QSqlField *); - void columnClicked(int); - void resizeData(int); - - QTableItem *item(int,int) const; - void setItem(int,int,QTableItem *); - void clearCell(int,int); - void setPixmap(int,int,const QPixmap &); - void takeItem(QTableItem *); - -private: - QWidget *beginEdit(int,int,bool); - -%If (Qt_3_1_0 -) - QDataTable(const QDataTable &); -%End -}; - -%End diff --git a/python/pyqt/sip/qtsql/qdataview.sip b/python/pyqt/sip/qtsql/qdataview.sip deleted file mode 100644 index 2fba1c90..00000000 --- a/python/pyqt/sip/qtsql/qdataview.sip +++ /dev/null @@ -1,60 +0,0 @@ -// This is the SIP interface definition for QDataView. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QDataView (Qt v3+) - -QDataView is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QDataView : QWidget -{ -%TypeHeaderCode -#include -%End - -public: - QDataView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - - virtual void setForm(QSqlForm *); - QSqlForm *form(); - virtual void setRecord(QSqlRecord *); - QSqlRecord *record(); - -public slots: - virtual void refresh(QSqlRecord *); - virtual void readFields(); - virtual void writeFields(); - virtual void clearValues(); - -private: -%If (Qt_3_1_0 -) - QDataView(const QDataView &); -%End -}; - -%End diff --git a/python/pyqt/sip/qtsql/qeditorfactory.sip b/python/pyqt/sip/qtsql/qeditorfactory.sip deleted file mode 100644 index b082863e..00000000 --- a/python/pyqt/sip/qtsql/qeditorfactory.sip +++ /dev/null @@ -1,55 +0,0 @@ -// This is the SIP interface definition for QEditorFactory. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QEditorFactory (Qt v3+) - -QEditorFactory is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QEditorFactory : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QEditorFactory(QObject * /TransferThis/ = 0,const char * = 0); - - virtual QWidget *createEditor(QWidget * /TransferThis/, - const QVariant &) /Factory/; - - static QEditorFactory *defaultFactory(); - static void installDefaultFactory(QEditorFactory * /Transfer/); - -private: -%If (Qt_3_1_0 -) - QEditorFactory(const QEditorFactory &); -%End -}; - -%End diff --git a/python/pyqt/sip/qtsql/qsql.sip b/python/pyqt/sip/qtsql/qsql.sip deleted file mode 100644 index e6a897dc..00000000 --- a/python/pyqt/sip/qtsql/qsql.sip +++ /dev/null @@ -1,80 +0,0 @@ -// This is the SIP interface definition for QSql. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSql (Qt v3+) - -QSql is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QSql -{ -%TypeHeaderCode -#include -%End - -public: - QSql(); - - enum Op { - None, - Insert, - Update, - Delete - }; - - enum Location { - BeforeFirst, - AfterLast - }; - - enum Confirm { - Cancel, - No, - Yes - }; - -%If (Qt_3_2_0 -) - enum ParameterType { - In, - Out, - InOut - }; - - enum TableType { - Tables, - SystemTables, - Views, - AllTables - }; -%End - -private: - QSql(const QSql &); -}; - -%End diff --git a/python/pyqt/sip/qtsql/qsqlcursor.sip b/python/pyqt/sip/qtsql/qsqlcursor.sip deleted file mode 100644 index 87004da3..00000000 --- a/python/pyqt/sip/qtsql/qsqlcursor.sip +++ /dev/null @@ -1,148 +0,0 @@ -// This is the SIP interface definition for QSqlCursor. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSqlCursor (Qt v3+) - - virtual int del - bool invalidate = TRUE - - -This has been renamed delRecords in Python. - - - - virtual int del - const QString &filter - bool invalidate = TRUE - - -This has been renamed delRecords in Python. - - - - bool exec - const QString &query - - -This has been renamed execQuery in Python. - - -%End - - -%If (Qt_3_0_0 -) - -class QSqlCursor : QSqlRecord, QSqlQuery -{ -%TypeHeaderCode -#include -%End - -public: - QSqlCursor(const QString & = QString::null,bool = 1,QSqlDatabase * = 0); - QSqlCursor(const QSqlCursor &); - - enum Mode { - ReadOnly, - Insert, - Update, - Delete, - Writable - }; - - QVariant value(int) const; - QVariant value(const QString &) const; -%If (Qt_3_1_0 -) - void setValue(int,const QVariant &); - void setValue(const QString &,const QVariant &); -%End - virtual QSqlIndex primaryIndex(bool = 1) const; - virtual QSqlIndex index(const QStringList &) const; - QSqlIndex index(const QString &) const; -// QSqlIndex index(const char *) const; - virtual void setPrimaryIndex(const QSqlIndex &); - - virtual void append(const QSqlFieldInfo &); - virtual void insert(int,const QSqlFieldInfo &); - void remove(int); - void clear(); - void setGenerated(const QString &,bool); - void setGenerated(int,bool); - - virtual QSqlRecord *editBuffer(bool = 0); - virtual QSqlRecord *primeInsert(); - virtual QSqlRecord *primeUpdate(); - virtual QSqlRecord *primeDelete(); - virtual int insert(bool = 1) /ReleaseGIL/; - virtual int update(bool = 1) /ReleaseGIL/; - virtual int del(bool = 1) /PyName=delRecords, ReleaseGIL/; - - virtual void setMode(int); - int mode() const; - virtual void setCalculated(const QString &,bool); - bool isCalculated(const QString &) const; - virtual void setTrimmed(const QString &,bool); - bool isTrimmed(const QString &) const; - - bool isReadOnly() const; - bool canInsert() const; - bool canUpdate() const; - bool canDelete() const; - - bool select() /ReleaseGIL/; - bool select(const QSqlIndex &) /ReleaseGIL/; - bool select(const QSqlIndex &,const QSqlIndex &) /ReleaseGIL/; - virtual bool select(const QString &,const QSqlIndex & = QSqlIndex()) /ReleaseGIL/; - - virtual void setSort(const QSqlIndex &); - QSqlIndex sort() const; - virtual void setFilter(const QString &); - QString filter() const; - virtual void setName(const QString &,bool = 1); - QString name() const; - QString toString(const QString & = QString::null, - const QString & = ",") const; - -%If (Qt_3_1_0 -) - bool isNull(int) const; - bool isNull(const QString &) const; -%End - -protected: - void afterSeek(); - bool exec(const QString &) /PyName=execQuery, ReleaseGIL/; - - virtual QVariant calculateField(const QString &); - virtual int update(const QString &,bool = 1); - virtual int del(const QString &,bool = 1) /PyName=delRecords, ReleaseGIL/; - - virtual QString toString(const QString &,QSqlField *, - const QString &) const; - virtual QString toString(QSqlRecord *,const QString &,const QString &, - const QString &) const; - virtual QString toString(const QSqlIndex &,QSqlRecord *, - const QString &,const QString &, - const QString &) const; -}; - -%End diff --git a/python/pyqt/sip/qtsql/qsqldatabase.sip b/python/pyqt/sip/qtsql/qsqldatabase.sip deleted file mode 100644 index c7ee2fe4..00000000 --- a/python/pyqt/sip/qtsql/qsqldatabase.sip +++ /dev/null @@ -1,154 +0,0 @@ -// This is the SIP interface definition for QSqlDatabase. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSqlDatabase (Qt v3+) - - QSqlQuery exec - const QString &query = QString::null - - -This has been renamed execStatement in Python. - - -%End - - -%If (Qt_3_0_0 -) - -class QSqlDatabase : QObject -{ -%TypeHeaderCode -#include -%End - -public: -%ConvertToSubClassCode - static struct class_graph { - char *name; - sipWrapperType **type; - int yes, no; - } graph[] = { - {sipName_QSqlDriver, &sipClass_QSqlDriver, -1, 1}, - {sipName_QEditorFactory, &sipClass_QEditorFactory, 7, 2}, - {sipName_QSqlDatabase, &sipClass_QSqlDatabase, -1, 3}, - {sipName_QSqlForm, &sipClass_QSqlForm, -1, 4}, - {sipName_QDataView, &sipClass_QDataView, -1, 5}, - {sipName_QDataTable, &sipClass_QDataTable, -1, 6}, - {sipName_QDataBrowser, &sipClass_QDataBrowser, -1, -1}, - {sipName_QSqlEditorFactory, &sipClass_QSqlEditorFactory, -1, -1}, - }; - - int i = 0; - - sipClass = NULL; - - do - { - struct class_graph *cg = &graph[i]; - - if (cg->name != NULL && sipCpp->inherits(cg->name)) - { - sipClass = *cg->type; - i = cg->yes; - } - else - i = cg->no; - } - while (i >= 0); -%End - - bool open() /ReleaseGIL/; - bool open(const QString &,const QString &) /ReleaseGIL/; - void close(); - bool isOpen() const; - bool isOpenError() const; - QStringList tables() const; -%If (Qt_3_2_0 -) - QStringList tables(QSql::TableType) const; -%End - QSqlIndex primaryIndex(const QString &) const; - QSqlRecord record(const QString &) const; - QSqlRecord record(const QSqlQuery &) const; - QSqlRecordInfo recordInfo(const QString &) const; - QSqlRecordInfo recordInfo(const QSqlQuery &) const; - QSqlQuery exec(const QString & = QString::null) const /PyName=execStatement, ReleaseGIL/; - QSqlError lastError() const; - - bool transaction(); - bool commit(); - bool rollback(); - - virtual void setDatabaseName(const QString &); - virtual void setUserName(const QString &); - virtual void setPassword(const QString &); - virtual void setHostName(const QString &); - virtual void setPort(int); -%If (Qt_3_2_0 -) - void setConnectOptions(const QString & = QString::null); -%End - QString databaseName() const; - QString userName() const; - QString password() const; - QString hostName() const; - QString driverName() const; - int port() const; -%If (Qt_3_2_0 -) - QString connectOptions() const; -%End - - QSqlDriver *driver() const; - - static QSqlDatabase *addDatabase(const QString &, - const QString & = QString(QSqlDatabase::defaultConnection)); -%If (Qt_3_2_0 -) - static QSqlDatabase *addDatabase(QSqlDriver *, - const QString & = QString(QSqlDatabase::defaultConnection)); -%End - static QSqlDatabase *database(const QString & = QString(QSqlDatabase::defaultConnection),bool = 1); - static void removeDatabase(const QString &); -%If (Qt_3_2_0 -) - static void removeDatabase(QSqlDatabase *); -%End - static bool contains(const QString & = QString(QSqlDatabase::defaultConnection)); - static QStringList drivers(); -// static void registerSqlDriver(const QString &, -// const QSqlDriverCreatorBase *); -%If (Qt_3_2_0 -) - static bool isDriverAvailable(const QString &); -%End - -protected: - QSqlDatabase(const QString &,const QString &, - QObject * /TransferThis/ = 0,const char * = 0); -%If (Qt_3_2_0 -) - QSqlDatabase(QSqlDriver *,QObject * /TransferThis/ = 0, - const char * = 0); -%End - -private: -%If (Qt_3_1_0 -) - QSqlDatabase(const QSqlDatabase &); -%End -}; - -%End diff --git a/python/pyqt/sip/qtsql/qsqldriver.sip b/python/pyqt/sip/qtsql/qsqldriver.sip deleted file mode 100644 index 12806322..00000000 --- a/python/pyqt/sip/qtsql/qsqldriver.sip +++ /dev/null @@ -1,93 +0,0 @@ -// This is the SIP interface definition for QSqlDriver. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSqlDriver (Qt v3+) - -QSqlDriver is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QSqlDriver : QObject -{ -%TypeHeaderCode -#include -%End - -public: - enum DriverFeature { - Transactions, - QuerySize, - BLOB, -%If (Qt_3_1_0 -) - Unicode, - PreparedQueries, - NamedPlaceholders, - PositionalPlaceholders -%End - }; - - QSqlDriver(QObject * /TransferThis/ = 0,const char * = 0); - - bool isOpen() const; - bool isOpenError() const; - - virtual bool beginTransaction(); - virtual bool commitTransaction(); - virtual bool rollbackTransaction(); - virtual QStringList tables(const QString &) const; - virtual QSqlIndex primaryIndex(const QString &) const; - virtual QSqlRecord record(const QString &) const; - virtual QSqlRecord record(const QSqlQuery &) const; - virtual QSqlRecordInfo recordInfo(const QString &) const; - virtual QSqlRecordInfo recordInfo(const QSqlQuery &) const; - virtual QString nullText() const; - virtual QString formatValue(const QSqlField *,bool = 0) const; - QSqlError lastError() const; - - virtual bool hasFeature(DriverFeature) const = 0; - virtual bool open(const QString &,const QString & = QString::null, - const QString & = QString::null, - const QString & = QString::null, - int = -1) = 0 /ReleaseGIL/; - virtual void close() = 0; - virtual QSqlQuery createQuery() const = 0; - -%If (Qt_3_2_0 -) - bool open(const QString &,const QString &,const QString &, - const QString &,int,const QString &) /ReleaseGIL/; -%End - -protected: - virtual void setOpen(bool); - virtual void setOpenError(bool); - virtual void setLastError(const QSqlError &); - -private: - QSqlDriver(const QSqlDriver &); -}; - -%End diff --git a/python/pyqt/sip/qtsql/qsqleditorfactory.sip b/python/pyqt/sip/qtsql/qsqleditorfactory.sip deleted file mode 100644 index 2a573af5..00000000 --- a/python/pyqt/sip/qtsql/qsqleditorfactory.sip +++ /dev/null @@ -1,57 +0,0 @@ -// This is the SIP interface definition for QSqlEditorFactory. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSqlEditorFactory (Qt v3+) - -QSqlEditorFactory is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QSqlEditorFactory : QEditorFactory -{ -%TypeHeaderCode -#include -%End - -public: - QSqlEditorFactory(QObject * /TransferThis/ = 0,const char * = 0); - - virtual QWidget *createEditor(QWidget * /TransferThis/, - const QVariant &) /Factory/; - virtual QWidget *createEditor(QWidget * /TransferThis/, - const QSqlField *) /Factory/; - - static QSqlEditorFactory *defaultFactory(); - static void installDefaultFactory(QSqlEditorFactory * /Transfer/); - -private: -%If (Qt_3_1_0 -) - QSqlEditorFactory(const QSqlEditorFactory &); -%End -}; - -%End diff --git a/python/pyqt/sip/qtsql/qsqlerror.sip b/python/pyqt/sip/qtsql/qsqlerror.sip deleted file mode 100644 index a53d87c0..00000000 --- a/python/pyqt/sip/qtsql/qsqlerror.sip +++ /dev/null @@ -1,68 +0,0 @@ -// This is the SIP interface definition for QSqlError. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSqlError (Qt v3+) - -QSqlError is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QSqlError -{ -%TypeHeaderCode -#include -%End - -public: - enum Type { - None, - Connection, - Statement, - Transaction, - Unknown - }; - - QSqlError(const QString & = QString::null, - const QString & = QString::null,int = QSqlError::None, - int = -1); - QSqlError(const QSqlError &); - - QString driverText() const; - virtual void setDriverText(const QString &); - QString databaseText() const; - virtual void setDatabaseText(const QString &); - int type() const; - virtual void setType(int); - int number() const; - virtual void setNumber(int); -%If (Qt_3_2_0 -) - QString text() const; - void showMessage(const QString & = QString::null) const; -%End -}; - -%End diff --git a/python/pyqt/sip/qtsql/qsqlfield.sip b/python/pyqt/sip/qtsql/qsqlfield.sip deleted file mode 100644 index 3a0b3049..00000000 --- a/python/pyqt/sip/qtsql/qsqlfield.sip +++ /dev/null @@ -1,95 +0,0 @@ -// This is the SIP interface definition for QSqlField and QSqlFieldInfo. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSqlField (Qt v3+) - -QSqlField is fully implemented. - - - -QSqlFieldInfo (Qt v3+) - -QSqlFieldInfo is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QSqlField -{ -%TypeHeaderCode -#include -%End - -public: - QSqlField(const QString & = QString::null, - QVariant::Type = QVariant::Invalid ); - QSqlField(const QSqlField &); - - virtual void setValue(const QVariant &); - virtual QVariant value() const; - virtual void setName(const QString &); - QString name() const; - virtual void setNull(); - bool isNull() const; - virtual void setReadOnly(bool); - bool isReadOnly() const; - void clear(bool = 1); - QVariant::Type type() const; -}; - - -class QSqlFieldInfo -{ -%TypeHeaderCode -#include -%End - -public: - QSqlFieldInfo(const QString & = QString::null, - QVariant::Type = QVariant::Invalid,int = -1,int = -1, - int = -1,const QVariant & = QVariant(),int = 0,bool = 1, - bool = 0,bool = 0); - QSqlFieldInfo(const QSqlFieldInfo &); - QSqlFieldInfo(const QSqlField &,bool = 1); - - QSqlField toField() const; - int isRequired() const; - QVariant::Type type() const; - int length() const; - int precision() const; - QVariant defaultValue() const; - QString name() const; - int typeID() const; - bool isGenerated() const; - bool isTrim() const; - bool isCalculated() const; - - virtual void setTrim(bool); - virtual void setGenerated(bool); - virtual void setCalculated(bool); -}; - -%End diff --git a/python/pyqt/sip/qtsql/qsqlform.sip b/python/pyqt/sip/qtsql/qsqlform.sip deleted file mode 100644 index 0fc252ac..00000000 --- a/python/pyqt/sip/qtsql/qsqlform.sip +++ /dev/null @@ -1,74 +0,0 @@ -// This is the SIP interface definition for QSqlForm. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSqlForm (Qt v3+) - -QSqlForm is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QSqlForm : QObject -{ -%TypeHeaderCode -#include -%End - -public: - QSqlForm(QObject * /TransferThis/ = 0,const char * = 0); - - virtual void insert(QWidget *,const QString &); - virtual void remove(const QString &); - uint count() const; - - QWidget *widget(uint) const; - QSqlField *widgetToField(QWidget *) const; - QWidget *fieldToWidget(QSqlField *) const; - - void installPropertyMap(QSqlPropertyMap * /Transfer/); - - virtual void setRecord(QSqlRecord *); - -public slots: - virtual void readField(QWidget *); - virtual void writeField(QWidget *); - virtual void readFields(); - virtual void writeFields(); - - virtual void clear(); - virtual void clearValues(bool = 0); - -protected: - virtual void insert(QWidget *,QSqlField *); - virtual void remove(QWidget *); - -private: -%If (Qt_3_1_0 -) - QSqlForm(const QSqlForm &); -%End -}; - -%End diff --git a/python/pyqt/sip/qtsql/qsqlindex.sip b/python/pyqt/sip/qtsql/qsqlindex.sip deleted file mode 100644 index 989eeff6..00000000 --- a/python/pyqt/sip/qtsql/qsqlindex.sip +++ /dev/null @@ -1,64 +0,0 @@ -// This is the SIP interface definition for QSqlIndex. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSqlIndex (Qt v3+) - -QSqlIndex is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QSqlIndex : QSqlRecord -{ -%TypeHeaderCode -#include -%End - -public: - QSqlIndex(const QString & = QString::null, - const QString & = QString::null); - QSqlIndex(const QSqlIndex &); - - virtual void setCursorName(const QString &); - QString cursorName() const; - virtual void setName(const QString &); - QString name() const; - - void append(const QSqlField &); - virtual void append(const QSqlField &,bool); - - bool isDescending(int) const; - virtual void setDescending(int,bool); - - QString toString(const QString & = QString::null,const QString & = ",", - bool = 1) const; - QStringList toStringList(const QString & = QString::null, - bool = 1) const; - - static QSqlIndex fromStringList(const QStringList &,const QSqlCursor *); -}; - -%End diff --git a/python/pyqt/sip/qtsql/qsqlpropertymap.sip b/python/pyqt/sip/qtsql/qsqlpropertymap.sip deleted file mode 100644 index 8689a289..00000000 --- a/python/pyqt/sip/qtsql/qsqlpropertymap.sip +++ /dev/null @@ -1,63 +0,0 @@ -// This is the SIP interface definition for QSqlPropertyMap. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSqlPropertyMap (Qt v3+) - -QSqlPropertyMap is fully implemented. However, because PyQt -does not allow new properties to be defined, it is not possible to implement -custom editor widgets in Python and add them to a property map. These will -simply be ignored. - - - -This problem may be addressed in a future release of PyQt. - - -%End - - -%If (Qt_3_0_0 -) - -class QSqlPropertyMap -{ -%TypeHeaderCode -#include -%End - -public: - QSqlPropertyMap(); - - QVariant property(QWidget *); - virtual void setProperty(QWidget *,const QVariant &); - - void insert(const QString &,const QString &); - void remove(const QString &); - - static QSqlPropertyMap *defaultMap(); - static void installDefaultMap(QSqlPropertyMap * /Transfer/); - -private: - QSqlPropertyMap(const QSqlPropertyMap &); -}; - -%End diff --git a/python/pyqt/sip/qtsql/qsqlquery.sip b/python/pyqt/sip/qtsql/qsqlquery.sip deleted file mode 100644 index c99daf75..00000000 --- a/python/pyqt/sip/qtsql/qsqlquery.sip +++ /dev/null @@ -1,115 +0,0 @@ -// This is the SIP interface definition for QSqlQuery. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSqlQuery (Qt v3+) - - QMap<QString,QVariant> boundValues const - - - -Not yet implemented. (Qt v3.2.0+) - - - - virtual bool exec - const QString &query - - -This has been renamed execQuery in Python. - - - - bool exec - - - -This has been renamed execQuery in Python. (Qt v3.1+) - - -%End - - -%If (Qt_3_0_0 -) - -class QSqlQuery -{ -%TypeHeaderCode -#include -%End - -public: - QSqlQuery(QSqlResult *); - QSqlQuery(const QString & = QString::null,QSqlDatabase * = 0); -%If (Qt_3_2_0 -) - QSqlQuery(QSqlDatabase *); -%End - QSqlQuery(const QSqlQuery &); - - bool isValid() const; - bool isActive() const; - bool isNull(int) const; - int at() const; - QString lastQuery() const; - int numRowsAffected() const; - QSqlError lastError() const; - bool isSelect() const; - int size() const; - const QSqlDriver *driver() const; - const QSqlResult *result() const; -%If (Qt_3_1_0 -) - bool isForwardOnly() const; - void setForwardOnly(bool); -%End - - virtual bool exec(const QString &) /PyName=execQuery, ReleaseGIL/; - virtual QVariant value(int) const; - - virtual bool seek(int,bool = 0) /ReleaseGIL/; - virtual bool next() /ReleaseGIL/; - virtual bool prev() /ReleaseGIL/; - virtual bool first() /ReleaseGIL/; - virtual bool last() /ReleaseGIL/; - -%If (Qt_3_1_0 -) - bool exec() /PyName=execQuery, ReleaseGIL/; - bool prepare(const QString &); - void bindValue(const QString &,const QVariant &); - void bindValue(int,const QVariant &); - void addBindValue(const QVariant &); -%End -%If (Qt_3_2_0 -) - void bindValue(const QString &,const QVariant &,QSql::ParameterType); - void bindValue(int,const QVariant &,QSql::ParameterType); - void addBindValue(const QVariant &,QSql::ParameterType); - QVariant boundValue(const QString &) const; - QVariant boundValue(int) const; -// QMap boundValues() const; - QString executedQuery() const; -%End - -protected: - virtual void beforeSeek(); - virtual void afterSeek(); -}; - -%End diff --git a/python/pyqt/sip/qtsql/qsqlrecord.sip b/python/pyqt/sip/qtsql/qsqlrecord.sip deleted file mode 100644 index 2d358cc5..00000000 --- a/python/pyqt/sip/qtsql/qsqlrecord.sip +++ /dev/null @@ -1,178 +0,0 @@ -// This is the SIP interface definition for QSqlRecord and QSqlRecordInfo. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSqlRecord (Qt v3+) - -QSqlRecord is fully implemented. - - - -QSqlRecordInfo (Qt v3+) - -QSqlRecordInfo is implemented as a Python list of -QSqlFieldInfo instances. - - -%End - - -%If (Qt_3_0_0 -) - -class QSqlRecord -{ -%TypeHeaderCode -#include -%End - -public: - QSqlRecord(); - QSqlRecord(const QSqlRecord &); - - virtual QVariant value(int) const; - virtual QVariant value(const QString &) const; - virtual void setValue(int,const QVariant &); - virtual void setValue(const QString &,const QVariant &); - bool isGenerated(int) const; - bool isGenerated(const QString &) const; - virtual void setGenerated(const QString &,bool); - virtual void setGenerated(int,bool); - virtual void setNull(int); - virtual void setNull(const QString &); - bool isNull(int); - bool isNull(const QString &); -%If (Qt_3_1_0 -) -// bool isNull(int) const; -// bool isNull(const QString &) const; -%End - - int position(const QString &) const; - QString fieldName(int) const; - QSqlField *field(int); - QSqlField *field(const QString &); -// const QSqlField *field(int) const; -// const QSqlField *field(const QString &) const; - - virtual void append(const QSqlField &); - virtual void insert(int,const QSqlField &); - virtual void remove(int); - - bool isEmpty() const; - bool contains(const QString &) const; - virtual void clear(); - virtual void clearValues(bool = 0); - uint count() const; - virtual QString toString(const QString & = QString::null, - const QString & = ",") const; - virtual QStringList toStringList(const QString & = QString::null) const; -}; - - -%MappedType QSqlRecordInfo -{ -%TypeHeaderCode -#include -#include "sipqtsqlQSqlFieldInfo.h" -%End - -%ConvertFromTypeCode - // Convert to a Python list of QSqlFieldInfo instances. - - int i; - PyObject *l; - - // Create the list. - - if ((l = PyList_New(sipCpp -> count())) == NULL) - return NULL; - - // Get it. - - i = 0; - QValueListConstIterator it; - - for (it = sipCpp -> begin(); it != sipCpp -> end(); ++it) - { - PyObject *tmobj; - - if ((tmobj = sipConvertFromNewInstance(new QSqlFieldInfo(*it),sipClass_QSqlFieldInfo,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0) - { - Py_XDECREF(tmobj); - Py_DECREF(l); - - return NULL; - } - - ++i; - } - - return l; -%End - - -%ConvertToTypeCode - // Convert a Python list of QSqlFieldInfo instances to a QSqlRecordInfo - // on the heap. - - if (sipIsErr == NULL) - { - if (!PyList_Check(sipPy)) - return 0; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QSqlFieldInfo,SIP_NOT_NONE)) - return 0; - - return 1; - } - - QSqlRecordInfo *qri = new QSqlRecordInfo; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - { - int iserr = 0, state; - - // We apply the transfer to the list itself, not the elements. - QSqlFieldInfo *itm = reinterpret_cast(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QSqlFieldInfo,0,SIP_NOT_NONE,&state,&iserr)); - - if (iserr) - { - sipReleaseInstance(itm,sipClass_QSqlFieldInfo,state); - - *sipIsErr = 1; - delete qri; - - return 0; - } - - qri -> append(*itm); - - sipReleaseInstance(itm,sipClass_QSqlFieldInfo,state); - } - - *sipCppPtr = qri; - - return sipGetState(sipTransferObj); -%End -}; - -%End diff --git a/python/pyqt/sip/qtsql/qsqlresult.sip b/python/pyqt/sip/qtsql/qsqlresult.sip deleted file mode 100644 index 913fed7b..00000000 --- a/python/pyqt/sip/qtsql/qsqlresult.sip +++ /dev/null @@ -1,73 +0,0 @@ -// This is the SIP interface definition for QSqlResult. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSqlResult (Qt v3+) - -QSqlResult is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QSqlResult -{ -%TypeHeaderCode -#include -%End - -protected: - QSqlResult(const QSqlDriver *); - - int at() const; - QString lastQuery() const; - QSqlError lastError() const; - bool isValid() const; - bool isActive() const; - bool isSelect() const; - bool isForwardOnly() const; - const QSqlDriver *driver() const; - virtual void setAt(int); - virtual void setActive(bool); - virtual void setLastError(const QSqlError &); - virtual void setQuery(const QString &); - virtual void setSelect(bool); - virtual void setForwardOnly(bool); - - virtual QVariant data(int) = 0; - virtual bool isNull(int) = 0; - virtual bool reset(const QString &) = 0; - virtual bool fetch(int) = 0; - virtual bool fetchNext(); - virtual bool fetchPrev(); - virtual bool fetchFirst() = 0; - virtual bool fetchLast() = 0; - virtual int size() = 0; - virtual int numRowsAffected() = 0; - -private: - QSqlResult(const QSqlResult &); -}; - -%End diff --git a/python/pyqt/sip/qtsql/qsqlselectcursor.sip b/python/pyqt/sip/qtsql/qsqlselectcursor.sip deleted file mode 100644 index 6ac8e018..00000000 --- a/python/pyqt/sip/qtsql/qsqlselectcursor.sip +++ /dev/null @@ -1,92 +0,0 @@ -// This is the SIP interface definition for QSqlSelectCursor. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QSqlSelectCursor (Qt v3.2.0+) - - int del - bool invalidate = TRUE - - -This has been renamed delRecords in Python. - - - - bool exec - const QString &query - - -This has been renamed execQuery in Python. - - -%End - - -%If (Qt_3_2_0 -) - -class QSqlSelectCursor : QSqlCursor -{ -%TypeHeaderCode -#include -%End - -public: - QSqlSelectCursor(const QString & = QString::null,QSqlDatabase * = 0); - QSqlSelectCursor(const QSqlSelectCursor &); - ~QSqlSelectCursor(); - - bool exec(const QString &) /PyName=execQuery, ReleaseGIL/; - bool select() /ReleaseGIL/; - -protected: - QSqlIndex primaryIndex(bool = 1) const; - QSqlIndex index(const QStringList &) const; - QSqlIndex index(const QString &) const; -// QSqlIndex index(const char *) const; - void setPrimaryIndex(const QSqlIndex &); - void append(const QSqlFieldInfo &); - void insert(int,const QSqlFieldInfo &); - void remove(int); - void clear(); - void setGenerated(const QString &,bool); - void setGenerated(int,bool); - QSqlRecord *editBuffer(bool = 0); - QSqlRecord *primeInsert(); - QSqlRecord *primeUpdate(); - QSqlRecord *primeDelete(); - int insert(bool = 1) /ReleaseGIL/; - int update(bool = 1) /ReleaseGIL/; - int del(bool = 1) /PyName=delRecords, ReleaseGIL/; - void setMode(int); - - void setSort(const QSqlIndex &); - QSqlIndex sort() const; - void setFilter(const QString &); - QString filter() const; - void setName(const QString &,bool = 1); - QString name() const; - QString toString(const QString & = QString::null, - const QString & = ",") const; - bool select(const QString &,const QSqlIndex & = QSqlIndex()) /ReleaseGIL/; -}; - -%End diff --git a/python/pyqt/sip/qtsql/qtsqlmod.sip b/python/pyqt/sip/qtsql/qtsqlmod.sip deleted file mode 100644 index ab1cebdc..00000000 --- a/python/pyqt/sip/qtsql/qtsqlmod.sip +++ /dev/null @@ -1,88 +0,0 @@ -// This is the SIP interface definition for the qtsql module of PyQt. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Module qtsql 1 - -%Import qt/qtmod.sip -%Import qttable/qttablemod.sip - -%Include copying.sip - - -%Include qdatabrowser.sip -%Include qdatatable.sip -%Include qdataview.sip -%Include qeditorfactory.sip -%Include qsql.sip -%Include qsqlcursor.sip -%Include qsqldatabase.sip -%Include qsqldriver.sip -%Include qsqleditorfactory.sip -%Include qsqlerror.sip -%Include qsqlfield.sip -%Include qsqlform.sip -%Include qsqlindex.sip -%Include qsqlpropertymap.sip -%Include qsqlquery.sip -%Include qsqlrecord.sip -%Include qsqlresult.sip -%Include qsqlselectcursor.sip - - -// The build file template. - -%Makefile qtsql.pro.in -# The project file for the qtsql module. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -TEMPLATE = lib -TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ -INCLUDEPATH = @BLX_INCLUDEPATH@ -DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QTTABLE_MODULE@ @BLX_LIBS@ -macx:QMAKE_LFLAGS += -framework Python - -SOURCES = $B - -HEADERS = $H -%End diff --git a/python/pyqt/sip/qttable/copying.sip b/python/pyqt/sip/qttable/copying.sip deleted file mode 100644 index 21c27d4e..00000000 --- a/python/pyqt/sip/qttable/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited - -This file is part of PyQt. - -This copy of PyQt is free software; you can redistribute 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. - -PyQt 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 -PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -%End - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/python/pyqt/sip/qttable/qtable.sip b/python/pyqt/sip/qttable/qtable.sip deleted file mode 100644 index 8e6fff10..00000000 --- a/python/pyqt/sip/qttable/qtable.sip +++ /dev/null @@ -1,532 +0,0 @@ -// This is the SIP interface definition for QTable, QTableItem, -// QCheckTableItem, QComboTableItem and QTableSelection. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QTable (Qt v2.2+) - -QTable is fully implemented. - - - -QTableItem (Qt v2.2+) - -QTableItem is fully implemented. - - - -QCheckTableItem (Qt v3+) - -QCheckTableItem is fully implemented. - - - -QComboTableItem (Qt v3+) - -QComboTableItem is fully implemented. - - - -QTableSelection (Qt v2.2+) - -QTableSelection is fully implemented. - - -%End - - -%If (Qt_TABLE) -%If (Qt_2_2_0 -) - -class QTableSelection -{ -%TypeHeaderCode -#include -%End - -public: - QTableSelection(); -%If (Qt_3_1_0 -) - QTableSelection(int,int,int,int); -%End - - void init(int,int); - void expandTo(int,int); - - int topRow() const; - int bottomRow() const; - int leftCol() const; - int rightCol() const; - int anchorRow() const; - int anchorCol() const; -%If (Qt_3_2_0 -) - int numRows() const; - int numCols() const; -%End - - bool isActive() const; -%If (Qt_3_2_0 -) - bool isEmpty() const; -%End -}; - - -class QTableItem : Qt -{ -%TypeHeaderCode -#include -%End - -public: - enum EditType { - Never, - OnTyping, - WhenCurrent, - Always - }; - - // Note that the Qt documentation is wrong. Ownership is only taken by - // QTable::setItem(). -%If (Qt_3_2_0 -) - QTableItem(QTable *,EditType); -%End - QTableItem(QTable *,EditType,const QString &); - QTableItem(QTable *,EditType,const QString &,const QPixmap &); - -%ConvertToSubClassCode - Py_BEGIN_ALLOW_THREADS - -#if QT_VERSION >= 0x030000 - int rtti = sipCpp -> rtti(); - - if (rtti == QCheckTableItem::RTTI) - sipClass = sipClass_QCheckTableItem; - else if (rtti == QComboTableItem::RTTI) - sipClass = sipClass_QComboTableItem; - else - sipClass = 0; -#else - sipClass = 0; -#endif - - Py_END_ALLOW_THREADS -%End - - virtual QPixmap pixmap() const; - virtual QString text() const; - virtual void setPixmap(const QPixmap &); - virtual void setText(const QString &); - QTable *table() const; - - virtual int alignment() const; - virtual void setWordWrap(bool); - bool wordWrap() const; - - EditType editType() const; - virtual QWidget *createEditor() const /Factory/; - virtual void setContentFromEditor(QWidget *); - virtual void setReplaceable(bool); - bool isReplaceable() const; - - virtual QString key() const; - virtual QSize sizeHint() const; - - virtual void setSpan(int,int); - int rowSpan() const; - int colSpan() const; - - virtual void setRow(int); - virtual void setCol(int); - int row() const; - int col() const; - - virtual void paint(QPainter *,const QColorGroup &,const QRect &,bool); - - void updateEditor(int,int); - -%If (Qt_3_0_0 -) - virtual void setEnabled(bool); - bool isEnabled() const; - - virtual int rtti() const; -%End - -protected: -%If (Qt_3_2_0 - Qt_3_3_0) - QString content() const; -%End -}; - - -%If (Qt_3_0_0 -) - -class QComboTableItem : QTableItem -{ -%TypeHeaderCode -#include -%End - -public: - // Note that the Qt documentation is wrong. Ownership is only taken by - // QTable::setItem(). - QComboTableItem(QTable *,const QStringList &,bool = 0); - - virtual QWidget *createEditor() const /Factory/; - virtual void setContentFromEditor(QWidget *); - virtual void paint(QPainter *,const QColorGroup &,const QRect &,bool); - virtual void setCurrentItem(int); - virtual void setCurrentItem(const QString &); - int currentItem() const; - QString currentText() const; - int count() const; - QString text(int) const; - virtual void setEditable(bool); - bool isEditable() const; - virtual void setStringList(const QStringList &); - - int rtti() const; - -%If (Qt_3_0_6 -) - QSize sizeHint() const; -%End -}; - -%End - - -%If (Qt_3_0_0 -) - -class QCheckTableItem : QTableItem -{ -%TypeHeaderCode -#include -%End - -public: - // Note that the Qt documentation is wrong. Ownership is only taken by - // QTable::setItem(). - QCheckTableItem(QTable *,const QString &); - -%If (Qt_3_2_0 -) - void setText(const QString &); -%End - virtual QWidget *createEditor() const /Factory/; - virtual void setContentFromEditor(QWidget *); - virtual void paint(QPainter *,const QColorGroup &,const QRect &,bool); - virtual void setChecked(bool); - bool isChecked() const; - - int rtti() const; - -%If (Qt_3_0_6 -) - QSize sizeHint() const; -%End -}; - -%End - - -class QTable : QScrollView -{ -%TypeHeaderCode -#include -%End - -public: - QTable(QWidget * /TransferThis/ = 0,const char * = 0); - QTable(int,int,QWidget * /TransferThis/ = 0,const char * = 0); - -%ConvertToSubClassCode - sipClass = (sipCpp->inherits(sipName_QTable) ? sipClass_QTable : NULL); -%End - - QHeader *horizontalHeader() const; - QHeader *verticalHeader() const; - -%If (- Qt_3_0_0) - enum SelectionMode { - Single, - Multi, - NoSelection - }; -%End -%If (Qt_3_0_0 -) - enum SelectionMode { - Single, - Multi, - SingleRow, - MultiRow, - NoSelection - }; -%End - - virtual void setSelectionMode(SelectionMode); - SelectionMode selectionMode() const; - - virtual void setItem(int,int,QTableItem * /Transfer/); - virtual void setText(int,int,const QString &); - virtual void setPixmap(int,int,const QPixmap &); - virtual QTableItem *item(int,int) const; - virtual QString text(int,int) const; - virtual QPixmap pixmap(int,int) const; - virtual void clearCell(int,int); - - virtual QRect cellGeometry(int,int) const; - virtual int columnWidth(int) const; - virtual int rowHeight(int) const; - virtual int columnPos(int) const; - virtual int rowPos(int) const; - virtual int columnAt(int) const; - virtual int rowAt(int) const; - -%If (- Qt_3_0_0) - int numRows() const; - int numCols() const; -%End -%If (Qt_3_0_0 -) - virtual int numRows() const; - virtual int numCols() const; -%End - - void updateCell(int,int); - - bool eventFilter(QObject *,QEvent *); - - int currentRow() const; - int currentColumn() const; - void ensureCellVisible(int,int); - - bool isSelected(int,int) const; - bool isRowSelected(int,bool = 0) const; - bool isColumnSelected(int,bool = 0) const; - int numSelections() const; - QTableSelection selection(int) const; - virtual int addSelection(const QTableSelection &); - virtual void removeSelection(const QTableSelection &); - virtual void removeSelection(int); - virtual int currentSelection() const; - -%If (Qt_3_1_0 -) - void selectCells(int,int,int,int); - void selectRow(int); - void selectColumn(int); -%End - - bool showGrid() const; - - bool columnMovingEnabled() const; - bool rowMovingEnabled() const; - - virtual void sortColumn(int,bool = 1,bool = 0); - - bool sorting() const; - - virtual void takeItem(QTableItem * /TransferBack/); - - virtual void setCellWidget(int,int,QWidget * /Transfer/); - virtual QWidget *cellWidget(int,int) const; - virtual void clearCellWidget(int,int); - -%If (Qt_3_0_0 -) - virtual QRect cellRect(int,int) const; -%End - - virtual void paintCell(QPainter *,int,int,const QRect &,bool); -%If (Qt_3_0_0 -) - virtual void paintCell(QPainter *,int,int,const QRect &,bool, - const QColorGroup &); -%End - virtual void paintFocus(QPainter *,const QRect &); - QSize sizeHint() const; - -%If (Qt_3_0_0 -) - bool isReadOnly() const; - bool isRowReadOnly(int) const; - bool isColumnReadOnly(int) const; - - void setEnabled(bool); - - void repaintSelections(); - - enum FocusStyle { - FollowStyle, - SpreadSheet - }; - - virtual void setFocusStyle(FocusStyle); - FocusStyle focusStyle() const; -%End - -%If (Qt_3_1_0 -) - void updateHeaderStates(); -%End - -public slots: - virtual void setNumRows(int); - virtual void setNumCols(int); - virtual void setShowGrid(bool); - virtual void hideRow(int); - virtual void hideColumn(int); - virtual void showRow(int); - virtual void showColumn(int); -%If (Qt_3_3_0 -) - bool isRowHidden(int) const; - bool isColumnHidden(int) const; -%End - - virtual void setColumnWidth(int,int); - virtual void setRowHeight(int,int); - - virtual void adjustColumn(int); - virtual void adjustRow(int); - - virtual void setColumnStretchable(int,bool); - virtual void setRowStretchable(int,bool); - bool isColumnStretchable(int) const; - bool isRowStretchable(int) const; - virtual void setSorting(bool); -%If (- Qt_3_0_0) - virtual void swapRows(int,int); - virtual void swapColumns(int,int); -%End -%If (Qt_3_0_0 -) - virtual void swapRows(int,int,bool = 0); - virtual void swapColumns(int,int,bool = 0); -%End - virtual void swapCells(int,int,int,int); - - virtual void setLeftMargin(int); - virtual void setTopMargin(int); - virtual void setCurrentCell(int,int); - void clearSelection(bool = 1); - virtual void setColumnMovingEnabled(bool); - virtual void setRowMovingEnabled(bool); - -%If (Qt_3_0_0 -) - virtual void setReadOnly(bool); - virtual void setRowReadOnly(int,bool); - virtual void setColumnReadOnly(int,bool); - - virtual void setDragEnabled(bool); - bool dragEnabled() const; - - virtual void insertRows(int,int = 1); - virtual void insertColumns(int,int = 1); - virtual void removeRow(int); - virtual void removeRows(const QMemArray &); - virtual void removeColumn(int); - virtual void removeColumns(const QMemArray &); - - virtual void editCell(int,int,bool = 0); -%End - -%If (Qt_3_1_0 -) - void setRowLabels(const QStringList &); - void setColumnLabels(const QStringList &); -%End - -protected: -%If (Qt_3_0_0 -) - enum EditMode { - NotEditing, - Editing, - Replacing - }; -%End - - void drawContents(QPainter *,int,int,int,int); - void contentsMousePressEvent(QMouseEvent *); - void contentsMouseMoveEvent(QMouseEvent *); - void contentsMouseDoubleClickEvent(QMouseEvent *); - void contentsMouseReleaseEvent(QMouseEvent *); -%If (Qt_3_0_0 -) - void contentsContextMenuEvent(QContextMenuEvent *); -%End - void keyPressEvent(QKeyEvent *); - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); -%If (- Qt_3_0_0) - void resizeEvent(QResizeEvent *); -%End -%If (Qt_3_0_0 -) - void viewportResizeEvent(QResizeEvent *); -%End - void showEvent(QShowEvent *); -%If (Qt_3_1_0 -) - void paintEvent(QPaintEvent *); -%End -%If (Qt_3_0_0 -) - void setEditMode(EditMode,int,int); - virtual void contentsDragEnterEvent(QDragEnterEvent *); - virtual void contentsDragMoveEvent(QDragMoveEvent *); - virtual void contentsDragLeaveEvent(QDragLeaveEvent *); - virtual void contentsDropEvent(QDropEvent *); - virtual QDragObject *dragObject(); - virtual void startDrag(); -%End - - virtual void paintEmptyArea(QPainter *,int,int,int,int); - virtual void activateNextCell(); - virtual QWidget *createEditor(int,int,bool) const /Factory/; - virtual void setCellContentFromEditor(int,int); - virtual QWidget *beginEdit(int,int,bool); - virtual void endEdit(int,int,bool,bool); - - virtual void resizeData(int); - virtual void insertWidget(int,int,QWidget *); - int indexOf(int,int) const; - -%If (Qt_3_0_0 -) - void windowActivationChange(bool); - bool isEditing() const; - EditMode editMode() const; - int currEditRow() const; - int currEditCol() const; -%End - -protected slots: - virtual void columnWidthChanged(int); - virtual void rowHeightChanged(int); - virtual void columnIndexChanged(int,int,int); - virtual void rowIndexChanged(int,int,int); - virtual void columnClicked(int); - -signals: - void currentChanged(int,int); - void clicked(int,int,int,const QPoint &); - void doubleClicked(int,int,int,const QPoint &); - void pressed(int,int,int,const QPoint &); - void selectionChanged(); - void valueChanged(int,int); -%If (Qt_3_0_0 -) - void contextMenuRequested(int,int,const QPoint &); - void dropped(QDropEvent *); -%End - -private: -%If (Qt_3_1_0 -) - QTable(const QTable &); -%End -}; - -%End -%End diff --git a/python/pyqt/sip/qttable/qttablemod.sip b/python/pyqt/sip/qttable/qttablemod.sip deleted file mode 100644 index ca7d4691..00000000 --- a/python/pyqt/sip/qttable/qttablemod.sip +++ /dev/null @@ -1,70 +0,0 @@ -// This is the SIP interface definition for the qttable module of PyQt. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Module qttable 1 - -%Import qt/qtmod.sip - -%Include copying.sip - - -%Include qtable.sip - - -// The build file template. - -%Makefile qttable.pro.in -# The project file for the qttable module. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -TEMPLATE = lib -TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ -INCLUDEPATH = @BLX_INCLUDEPATH@ -DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QT_MODULE@ @BLX_LIBS@ -macx:QMAKE_LFLAGS += -framework Python - -SOURCES = $B - -HEADERS = $H -%End diff --git a/python/pyqt/sip/qtui/copying.sip b/python/pyqt/sip/qtui/copying.sip deleted file mode 100644 index 21c27d4e..00000000 --- a/python/pyqt/sip/qtui/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited - -This file is part of PyQt. - -This copy of PyQt is free software; you can redistribute 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. - -PyQt 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 -PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -%End - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/python/pyqt/sip/qtui/qtuimod.sip b/python/pyqt/sip/qtui/qtuimod.sip deleted file mode 100644 index fddae207..00000000 --- a/python/pyqt/sip/qtui/qtuimod.sip +++ /dev/null @@ -1,71 +0,0 @@ -// This is the SIP interface definition for the qtui module of PyQt. Thanks to -// Hans-Peter Jansen for the original work. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Module qtui 1 - -%Import qt/qtmod.sip - -%Include copying.sip - - -%Include qwidgetfactory.sip - - -// The build file template. - -%Makefile qtui.pro.in -# The project file for the qtui module. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -TEMPLATE = lib -TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ -INCLUDEPATH = @BLX_INCLUDEPATH@ -DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QT_MODULE@ @PYQT_QUI_LIB@ @BLX_LIBS@ -macx:QMAKE_LFLAGS += -framework Python - -SOURCES = $B - -HEADERS = $H -%End diff --git a/python/pyqt/sip/qtui/qwidgetfactory.sip b/python/pyqt/sip/qtui/qwidgetfactory.sip deleted file mode 100644 index 9031a15b..00000000 --- a/python/pyqt/sip/qtui/qwidgetfactory.sip +++ /dev/null @@ -1,63 +0,0 @@ -// This is the SIP interface definition for QWidgetFactory. Thanks to -// Hans-Peter Jansen for the original work. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QWidgetFactory (Qt v3+) - -QWidgetFactory is fully implemented. - - -%End - - -%If (Qt_3_0_0 -) - -class QWidgetFactory -{ -%TypeHeaderCode -#include -%End - -public: - QWidgetFactory(); - virtual ~QWidgetFactory(); - - static QWidget *create(const QString &,QObject * = 0, - QWidget * /TransferThis/ = 0, - const char * = 0) /Factory/; - static QWidget *create(QIODevice *,QObject * = 0, - QWidget * /TransferThis/ = 0, - const char * = 0) /Factory/; - static void addWidgetFactory(QWidgetFactory * /Transfer/); - static void loadImages(const QString &); - - virtual QWidget *createWidget(const QString &,QWidget * /TransferThis/, - const char *) const /Factory/; - -%If (Qt_3_1_0 -) - static QStringList widgets(); - static bool supportsWidget(const QString &); -%End -}; - -%End diff --git a/python/pyqt/sip/qtxml/copying.sip b/python/pyqt/sip/qtxml/copying.sip deleted file mode 100644 index 21c27d4e..00000000 --- a/python/pyqt/sip/qtxml/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited - -This file is part of PyQt. - -This copy of PyQt is free software; you can redistribute 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. - -PyQt 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 -PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -%End - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/python/pyqt/sip/qtxml/qdom.sip b/python/pyqt/sip/qtxml/qdom.sip deleted file mode 100644 index 04557fbb..00000000 --- a/python/pyqt/sip/qtxml/qdom.sip +++ /dev/null @@ -1,866 +0,0 @@ -// This is the SIP interface definition for the QDom classes. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ExportedDoc -QDomImplementation (Qt v2.2+) - -QDomImplementation is fully implemented. - - - -QDomNode (Qt v2.2+) - -QDomNode is fully implemented, including the Python -== and != operators. - - - -QDomNodeList (Qt v2.2+) - -QDomNodeList is fully implemented. - - - -QDomDocument (Qt v2.2+) - - bool setContent - const QCString &buffer - bool namespaceProcessing - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -This takes the buffer and -namespaceProcessing parameters and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+) - - - - bool setContent - const QByteArray &buffer - bool namespaceProcessing - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -This takes the buffer and -namespaceProcessing parameters and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+) - - - - bool setContent - const QString &text - bool namespaceProcessing - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -This takes the text and -namespaceProcessing parameters and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+) - - - - bool setContent - const QIODevice *dev - bool namespaceProcessing - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -This takes the dev and -namespaceProcessing parameters and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+) - - - - bool setContent - const QCString &buffer - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -This takes the buffer parameter only and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+) - - - - bool setContent - const QByteArray &buffer - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -This takes the buffer parameter only and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+) - - - - bool setContent - const QString &text - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -This takes the text parameter only and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+) - - - - bool setContent - const QIODevice *dev - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -This takes the dev parameter only and returns a tuple -containing the bool result and the -errorMsg, errorLine and -errorColumn values. (Qt v3+) - - - - bool setContent - QXmlInputSource *source - QXmlReader *reader - QString *errorMsg = 0 - int *errorLine = 0 - int *errorColumn = 0 - - -Not yet implemented. (Qt v3.2.0+) - - - -QDomDocumentFragment (Qt v2.2+) - -QDomDocumentFragment is fully implemented. - - - -QDomDocumentType (Qt v2.2+) - -QDomDocumentType is fully implemented. - - - -QDomNamedNodeMap (Qt v2.2+) - -QDomNamedNodeMap is fully implemented. - - - -QDomCharacterData (Qt v2.2+) - -QDomCharacterData is fully implemented. - - - -QDomAttr (Qt v2.2+) - -QDomAttr is fully implemented. - - - -QDomElement (Qt v2.2+) - -QDomElement is fully implemented. - - - -QDomText (Qt v2.2+) - -QDomText is fully implemented. - - - -QDomComment (Qt v2.2+) - -QDomComment is fully implemented. - - - -QDomCDATASection (Qt v2.2+) - -QDomCDATASection is fully implemented. - - - -QDomNotation (Qt v2.2+) - -QDomNotation is fully implemented. - - - -QDomEntity (Qt v2.2+) - -QDomEntity is fully implemented. - - - -QDomEntityReference (Qt v2.2+) - -QDomEntityReference is fully implemented. - - - -QDomProcessingInstruction (Qt v2.2+) - -QDomProcessingInstruction is fully implemented. - - -%End - - -%If (Qt_DOM) -%If (Qt_2_2_0 -) - -class QDomImplementation -{ -%TypeHeaderCode -#include -%End - -public: - QDomImplementation(); - QDomImplementation(const QDomImplementation &); - - virtual bool hasFeature(const QString &,const QString &); -%If (Qt_3_0_0 -) - virtual QDomDocumentType createDocumentType(const QString &, - const QString &, - const QString &); - virtual QDomDocument createDocument(const QString &,const QString &, - const QDomDocumentType &); -%End - bool isNull(); -}; - - -class QDomNode -{ -%TypeHeaderCode -#include -%End - -public: - enum NodeType { - ElementNode, - AttributeNode, - TextNode, - CDATASectionNode, - EntityReferenceNode, - EntityNode, - ProcessingInstructionNode, - CommentNode, - DocumentNode, - DocumentTypeNode, - DocumentFragmentNode, - NotationNode, - BaseNode, - CharacterDataNode - }; - - QDomNode(); - QDomNode(const QDomNode &); - - bool operator==(const QDomNode &) const; - bool operator!=(const QDomNode &) const; - - virtual QDomNode insertBefore(const QDomNode &,const QDomNode &); - virtual QDomNode insertAfter(const QDomNode &,const QDomNode &); - virtual QDomNode replaceChild(const QDomNode &,const QDomNode &); - virtual QDomNode removeChild(const QDomNode &); - virtual QDomNode appendChild(const QDomNode &); -%If (Qt_3_0_0 -) - virtual bool hasChildNodes() const; -%End - virtual QDomNode cloneNode(bool = 1) const; -%If (Qt_3_0_0 -) - virtual void normalize(); - virtual bool isSupported(const QString &,const QString &) const; -%End - - virtual QString nodeName() const; - virtual NodeType nodeType() const; - virtual QDomNode parentNode() const; - virtual QDomNodeList childNodes() const; - virtual QDomNode firstChild() const; - virtual QDomNode lastChild() const; - virtual QDomNode previousSibling() const; - virtual QDomNode nextSibling() const; - virtual QDomNamedNodeMap attributes() const; - virtual QDomDocument ownerDocument() const; -%If (Qt_3_0_0 -) - virtual QString namespaceURI() const; - virtual QString localName() const; - virtual bool hasAttributes() const; -%End - - virtual QString nodeValue() const; - virtual void setNodeValue(const QString &); -%If (Qt_3_0_0 -) - virtual QString prefix() const; - virtual void setPrefix(const QString &); -%End - - virtual bool isAttr() const; - virtual bool isCDATASection() const; - virtual bool isDocumentFragment() const; - virtual bool isDocument() const; - virtual bool isDocumentType() const; - virtual bool isElement() const; - virtual bool isEntityReference() const; - virtual bool isText() const; - virtual bool isEntity() const; - virtual bool isNotation() const; - virtual bool isProcessingInstruction() const; - virtual bool isCharacterData() const; - virtual bool isComment() const; - - QDomNode namedItem(const QString &) const; - - bool isNull() const; - void clear(); - - QDomAttr toAttr(); - QDomCDATASection toCDATASection(); - QDomDocumentFragment toDocumentFragment(); - QDomDocument toDocument(); - QDomDocumentType toDocumentType(); - QDomElement toElement(); - QDomEntityReference toEntityReference(); - QDomText toText(); - QDomEntity toEntity(); - QDomNotation toNotation(); - QDomProcessingInstruction toProcessingInstruction(); - QDomCharacterData toCharacterData(); - QDomComment toComment(); - - void save(QTextStream &,int) const; -}; - - -class QDomNodeList -{ -%TypeHeaderCode -#include -%End - -public: - QDomNodeList(); - QDomNodeList(const QDomNodeList &); - - virtual QDomNode item(int) const; - - virtual uint length() const; - uint count() const; -}; - - -class QDomDocumentType : QDomNode -{ -%TypeHeaderCode -#include -%End - -public: - QDomDocumentType(); - QDomDocumentType(const QDomDocumentType &); - - virtual QString name() const; - virtual QDomNamedNodeMap entities() const; - virtual QDomNamedNodeMap notations() const; -%If (Qt_3_0_0 -) - virtual QString publicId() const; - virtual QString systemId() const; - virtual QString internalSubset() const; -%End - - QDomNode::NodeType nodeType() const; - bool isDocumentType() const; -}; - - -class QDomDocument : QDomNode -{ -%TypeHeaderCode -#include -%End - -public: - QDomDocument(); - QDomDocument(const QString &); -%If (Qt_3_0_0 -) - QDomDocument(const QDomDocumentType &); -%End - QDomDocument(const QDomDocument &); - - QDomElement createElement(const QString &); - QDomDocumentFragment createDocumentFragment(); - QDomText createTextNode(const QString &); - QDomComment createComment(const QString &); - QDomCDATASection createCDATASection(const QString &); - QDomProcessingInstruction createProcessingInstruction(const QString &, - const QString &); - QDomAttr createAttribute(const QString &); - QDomEntityReference createEntityReference(const QString &); - QDomNodeList elementsByTagName(const QString &) const; -%If (Qt_3_0_0 -) - QDomElement elementById(const QString &); -%End - - QDomDocumentType doctype() const; - QDomImplementation implementation() const; - QDomElement documentElement() const; - -%If (- Qt_3_0_0) - bool setContent(const QCString &); - bool setContent(const QByteArray &); - bool setContent(const QString &); - bool setContent(QIODevice *); -%End -%If (Qt_3_0_0 -) - // Note that we need handwritten code for these because of the need to - // allocate storage for the error string. - SIP_PYTUPLE setContent(const QCString &,bool); -%MethodCode - bool res; - QString *emsg = new QString(); - int eline, ecol; - - Py_BEGIN_ALLOW_THREADS - res = sipCpp -> QDomDocument::setContent(*a0,a1,emsg,&eline,&ecol); - Py_END_ALLOW_THREADS - - sipRes = sipBuildResult(&sipIsErr,"(bNii)",res,emsg,sipClass_QString,eline,ecol); -%End - - SIP_PYTUPLE setContent(const QByteArray &,bool); -%MethodCode - bool res; - QString *emsg = new QString(); - int eline, ecol; - - Py_BEGIN_ALLOW_THREADS - res = sipCpp -> QDomDocument::setContent(*a0,a1,emsg,&eline,&ecol); - Py_END_ALLOW_THREADS - - sipRes = sipBuildResult(&sipIsErr,"(bNii)",res,emsg,sipClass_QString,eline,ecol); -%End - - SIP_PYTUPLE setContent(const QString &,bool); -%MethodCode - bool res; - QString *emsg = new QString(); - int eline, ecol; - - Py_BEGIN_ALLOW_THREADS - res = sipCpp -> QDomDocument::setContent(*a0,a1,emsg,&eline,&ecol); - Py_END_ALLOW_THREADS - - sipRes = sipBuildResult(&sipIsErr,"(bNii)",res,emsg,sipClass_QString,eline,ecol); -%End - - SIP_PYTUPLE setContent(QIODevice *,bool); -%MethodCode - bool res; - QString *emsg = new QString(); - int eline, ecol; - - Py_BEGIN_ALLOW_THREADS - res = sipCpp -> QDomDocument::setContent(a0,a1,emsg,&eline,&ecol); - Py_END_ALLOW_THREADS - - sipRes = sipBuildResult(&sipIsErr,"(bNii)",res,emsg,sipClass_QString,eline,ecol); -%End - - SIP_PYTUPLE setContent(const QCString &); -%MethodCode - bool res; - QString *emsg = new QString(); - int eline, ecol; - - Py_BEGIN_ALLOW_THREADS - res = sipCpp -> QDomDocument::setContent(*a0,emsg,&eline,&ecol); - Py_END_ALLOW_THREADS - - sipRes = sipBuildResult(&sipIsErr,"(bNii)",res,emsg,sipClass_QString,eline,ecol); -%End - - SIP_PYTUPLE setContent(const QByteArray &); -%MethodCode - bool res; - QString *emsg = new QString(); - int eline, ecol; - - Py_BEGIN_ALLOW_THREADS - res = sipCpp -> QDomDocument::setContent(*a0,emsg,&eline,&ecol); - Py_END_ALLOW_THREADS - - sipRes = sipBuildResult(&sipIsErr,"(bNii)",res,emsg,sipClass_QString,eline,ecol); -%End - - SIP_PYTUPLE setContent(const QString &); -%MethodCode - bool res; - QString *emsg = new QString(); - int eline, ecol; - - Py_BEGIN_ALLOW_THREADS - res = sipCpp -> QDomDocument::setContent(*a0,emsg,&eline,&ecol); - Py_END_ALLOW_THREADS - - sipRes = sipBuildResult(&sipIsErr,"(bNii)",res,emsg,sipClass_QString,eline,ecol); -%End - - SIP_PYTUPLE setContent(QIODevice *); -%MethodCode - bool res; - QString *emsg = new QString(); - int eline, ecol; - - Py_BEGIN_ALLOW_THREADS - res = sipCpp -> QDomDocument::setContent(a0,emsg,&eline,&ecol); - Py_END_ALLOW_THREADS - - sipRes = sipBuildResult(&sipIsErr,"(bNii)",res,emsg,sipClass_QString,eline,ecol); -%End - -%End - -%If (Qt_3_2_0 -) -// bool setContent(QXmlInputSource *,QXmlReader *,QString * = 0,int * = 0, -// int * = 0); -%End - - QDomNode::NodeType nodeType() const; - bool isDocument() const; - - QString toString() const; -%If (Qt_3_1_0 -) - QString toString(int) const; -%End - QCString toCString() const; -%If (Qt_3_1_0 -) - QCString toCString(int) const; -%End -}; - - -class QDomNamedNodeMap -{ -%TypeHeaderCode -#include -%End - -public: - QDomNamedNodeMap(); - QDomNamedNodeMap(const QDomNamedNodeMap &); - - QDomNode namedItem(const QString &) const; - QDomNode setNamedItem(const QDomNode &); - QDomNode removeNamedItem(const QString &); - QDomNode item(int) const; -%If (Qt_3_0_0 -) - QDomNode namedItemNS(const QString &,const QString &) const; - QDomNode setNamedItemNS(const QDomNode &); - QDomNode removeNamedItemNS(const QString &,const QString &); -%End - - uint length() const; -%If (Qt_3_0_0 -) - uint count() const; -%End - - bool contains(const QString &) const; -}; - - -class QDomDocumentFragment : QDomNode -{ -%TypeHeaderCode -#include -%End - -public: - QDomDocumentFragment(); - QDomDocumentFragment(const QDomDocumentFragment &); - - QDomNode::NodeType nodeType() const; - bool isDocumentFragment() const; -}; - - -class QDomCharacterData : QDomNode -{ -%TypeHeaderCode -#include -%End - -public: - QDomCharacterData(); - QDomCharacterData(const QDomCharacterData &); - - virtual QString substringData(unsigned long,unsigned long); - virtual void appendData(const QString &); - virtual void insertData(unsigned long,const QString &); - virtual void deleteData(unsigned long,unsigned long); - virtual void replaceData(unsigned long,unsigned long,const QString &); - - virtual uint length() const; - - virtual QString data() const; - virtual void setData(const QString &); - - QDomNode::NodeType nodeType() const; - bool isCharacterData() const; -}; - - -class QDomAttr : QDomNode -{ -%TypeHeaderCode -#include -%End - -public: - QDomAttr(); - QDomAttr(const QDomAttr&); - - virtual QString name() const; - virtual bool specified() const; -%If (Qt_3_0_0 -) - virtual QDomElement ownerElement() const; -%End - - virtual QString value() const; - virtual void setValue(const QString &); - - QDomNode::NodeType nodeType() const; - bool isAttr() const; -}; - - -class QDomElement : QDomNode -{ -%TypeHeaderCode -#include -%End - -public: - QDomElement(); - QDomElement(const QDomElement &); - - QString attribute(const QString &, - const QString & = QString::null) const; - void setAttribute(const QString &,const QString &); - void setAttribute(const QString &,int /Constrained/); -// void setAttribute(const QString &,uint); -%If (Qt_3_2_0 -) -// void setAttribute(const QString &,long); -// void setAttribute(const QString &,ulong); -%End - void setAttribute(const QString &,double); - void removeAttribute(const QString &); - QDomAttr attributeNode(const QString &); - QDomAttr setAttributeNode(const QDomAttr &); - QDomAttr removeAttributeNode(const QDomAttr &); - virtual QDomNodeList elementsByTagName(const QString &) const; - bool hasAttribute(const QString &) const; -%If (- Qt_3_0_0) - void normalize(); -%End - -%If (Qt_3_0_0 -) - QString attributeNS(const QString,const QString &, - const QString &) const; - void setAttributeNS(const QString,const QString &,const QString &); - void setAttributeNS(const QString,const QString &,int /Constrained/); -// void setAttributeNS(const QString,const QString &,uint); -%If (Qt_3_2_0 -) -// void setAttributeNS(const QString &,const QString &,long); -// void setAttributeNS(const QString &,const QString &,ulong); -%End - void setAttributeNS(const QString,const QString &,double); - void removeAttributeNS(const QString &,const QString &); - QDomAttr attributeNodeNS(const QString &,const QString &); - QDomAttr setAttributeNodeNS(const QDomAttr &); - virtual QDomNodeList elementsByTagNameNS(const QString &, - const QString &) const; - bool hasAttributeNS(const QString &,const QString &) const; -%End - - QString tagName() const; - void setTagName(const QString &); - - QDomNamedNodeMap attributes() const; - QDomNode::NodeType nodeType() const; - bool isElement() const; - - QString text() const; -}; - - -class QDomText : QDomCharacterData -{ -%TypeHeaderCode -#include -%End - -public: - QDomText(); - QDomText(const QDomText &); - - QDomText splitText(int); - - QDomNode::NodeType nodeType() const; - bool isText() const; -}; - - -class QDomComment : QDomCharacterData -{ -%TypeHeaderCode -#include -%End - -public: - QDomComment(); - QDomComment(const QDomComment &); - - QDomNode::NodeType nodeType() const; - bool isComment() const; -}; - - -class QDomCDATASection : QDomText -{ -%TypeHeaderCode -#include -%End - -public: - QDomCDATASection(); - QDomCDATASection(const QDomCDATASection&); - - QDomNode::NodeType nodeType() const; - bool isCDATASection() const; -}; - - -class QDomNotation : QDomNode -{ -%TypeHeaderCode -#include -%End - -public: - QDomNotation(); - QDomNotation(const QDomNotation &); - - QString publicId() const; - QString systemId() const; - - QDomNode::NodeType nodeType() const; - bool isNotation() const; -}; - - -class QDomEntity : QDomNode -{ -%TypeHeaderCode -#include -%End - -public: - QDomEntity(); - QDomEntity(const QDomEntity &); - - virtual QString publicId() const; - virtual QString systemId() const; - virtual QString notationName() const; - - QDomNode::NodeType nodeType() const; - bool isEntity() const; -}; - - -class QDomEntityReference : QDomNode -{ -%TypeHeaderCode -#include -%End - -public: - QDomEntityReference(); - QDomEntityReference(const QDomEntityReference &); - - QDomNode::NodeType nodeType() const; - bool isEntityReference() const; -}; - - -class QDomProcessingInstruction : QDomNode -{ -%TypeHeaderCode -#include -%End - -public: - QDomProcessingInstruction(); - QDomProcessingInstruction(const QDomProcessingInstruction &); - - virtual QString target() const; - - virtual QString data() const; - virtual void setData(const QString &); - - QDomNode::NodeType nodeType() const; - bool isProcessingInstruction() const; -}; - -%End -%End diff --git a/python/pyqt/sip/qtxml/qtxmlmod.sip b/python/pyqt/sip/qtxml/qtxmlmod.sip deleted file mode 100644 index be261656..00000000 --- a/python/pyqt/sip/qtxml/qtxmlmod.sip +++ /dev/null @@ -1,80 +0,0 @@ -// This is the SIP interface definition for the qtxml module of PyQt. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of PyQt. -// -// This copy of PyQt is free software; you can redistribute 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. -// -// PyQt 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Module qtxml 0 - -%Import qt/qtmod.sip - -%Include copying.sip - - -%Include qdom.sip - - -// This is only needed on Windows to make sure that the DLL containing the C++ -// code of the main qt module is loaded before we import our own C++ code which -// has been linked against it. All other modules inherit from a class in the -// qt module which sorts it out, but this module doesn't so we add a dummy. It -// is ignored by SIP v4.x and later. -%PrePythonCode -from qt import QObject -%End - - -// The build file template. - -%Makefile qtxml.pro.in -# The project file for the qtxml module. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of PyQt. -# -# This copy of PyQt is free software; you can redistribute 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. -# -# PyQt 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 -# PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -TEMPLATE = lib -TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ -INCLUDEPATH = @BLX_INCLUDEPATH@ -DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QT_MODULE@ @BLX_LIBS@ -macx:QMAKE_LFLAGS += -framework Python - -SOURCES = $B - -HEADERS = $H -%End diff --git a/python/sip/ChangeLog b/python/sip/ChangeLog deleted file mode 100644 index 1ec4760c..00000000 --- a/python/sip/ChangeLog +++ /dev/null @@ -1,3814 +0,0 @@ -2007/04/10 15:27:04 phil -Released as v4.6. - - -2007/04/07 17:37:56 phil -Changed the API file generation to generate the __init__ form of a ctor as well -as the callable type form. - - -2007/04/02 22:45:04 phil -Updated the NEWS file. - - -2007/04/02 22:44:16 phil -Added the -n flag to configure.py to build universal binaries on MacOS/X. - - -2007/04/02 19:07:30 phil -Fixed a MinGW warning message. - - -2007/04/02 16:03:32 phil -Backed out the save and restore of the exception state in sipWrapper_dealloc() -as it can get called when there is no current thread state (which results in a -segfault). - - -2007/04/02 15:23:53 phil -Updated the NEWS file. - - -2007/04/02 14:06:29 phil -Fixed a bug handling sub-class convertor code with multiple inheritance. - - -2007/04/02 12:10:54 phil -Virtuals that return a wchar_t * now keep then free the previous result to -limit the possible memory leaks. - - -2007/04/01 16:28:23 phil -Fixed a bug in the wchar_t support with const wchar_t * arguments. -Fixed a bug in the wchar_t support with char and wchar_t being considered -equivalent. - - -2007/03/26 19:28:28 phil -Fixed problem where lambda slots connected to QObject.destroyed() were cleared -before the signal was emitted. - - -2007/03/25 13:45:56 phil -Completed the wchar_t support. - - -2007/03/25 0:00:12 phil -Added support for wchar_t - undocumented and certainly untested. - - -2007/03/10 15:23:46 phil -No longer generate the forward declaration of an opaque class. It shouldn't be -necessary and means that the class could be a C structure. - - -2007/03/02 22:48:39 phil -SIP should now handle DOS format files on UNIX systems. - - -2007/02/27 13:25:26 phil -Undeprecated the -g command line option. -Added the /HoldGIL/ annotation. - - -2007/02/25 14:28:22 phil -Fixed the previous fix related to signatures for the cases where the Python and -C++ signatures have different numbers of arguments. - - -2007/02/25 0:19:29 phil -Included Matt Newell's fix for making sure that a sub-class convertor returns -the most specific type available. - - -2007/02/24 16:38:26 phil -Fixed some documentation references to Py_ssize_t. -sip now takes C++ as well as Python signatures into account when deciding what -interface files a class need to include. - - -2007/02/24 13:45:24 phil -Leave it to the Qt support code to release the GIL when connecting signals. - - -2007/02/20 18:22:48 phil -An instance dictionary is not longer created automatically. Python will create -it if and when it is needed. -lambda slots are now cleaned up in the clear function rather than being left -to the slot proxy dtor. - - -2007/02/20 1:14:16 phil -Fixed a bug in the implementation of /Transfer/ when the object was aleady -owned by C++ but the owning object had been garbage collected. - - -2007/02/18 16:00:12 phil -Fixed a bug in the clearing of reference cycles with lambda slots. Although -the slot is visited, it is no longer cleared - that is left to the proxy dtor. - - -2007/02/16 18:47:13 phil -Fixed a bug in the build system for QtDesigner on Windows. -The Q_OBJECT support code now uses metaObject() rather than staticMetaObject -because the latter is private in the ActiveQt classes. - - -2007/02/10 23:20:33 phil -Added support for /TypeFlags/. -Added sipFindClass() and sipFindNamedEnum() to the public API. - - -2007/02/06 22:20:59 phil -More changes to the Q_OBJECT support. - - -2007/02/04 17:33:33 phil -Renamed "Qt4MetaObject" to "Qt4Q_OBJECT". - - -2007/02/01 15:06:34 phil -Changed the metaObject() hook so that it won't crash if the C++ instance has -gone. - - -2007/01/30 13:22:16 phil -Changed the metaObject() hook again. - - -2007/01/30 13:08:35 phil -Changed the metaObject() hooks. - - -2007/01/27 16:00:54 phil -Changed the way the Qt support API is created so that new SIPs can build old -PyQts. - - -2007/01/27 15:29:54 phil -Added the hooks to allow PyQt to build a proper meta-object when a new Python -class is defined. - - -2007/01/25 13:22:06 phil -Fixed a build system bug that affected non-MinGW Windows compilers when -building static modules. -Taught the build system about the QtDesigner module. - - -2007/01/23 12:41:52 phil -Reimplemented the support for qt_metacall() so that it is a bit cleaner and -can't be called from Python. - - -2007/01/22 22:02:07 phil -Added support for the QtMetaClass option. -Added sipParseSignature() to the private Qt API. -(Both of the above are needed for David Boddie's support for Python widgets in -Qt Designer.) - - -2007/01/21 16:32:45 phil -Extended the cyclic garbage collector support for lambda slots so it works with -SIGNALs as well as PYSIGNALs. -Incremented the SIP API version number to 3.4. - - -2007/01/21 14:55:47 phil -Fixed garbage collection support for lambda slots (at the moment only when the -slot is connected to a PYSIGNAL). - - -2007/01/16 22:32:06 phil -Added #undef slots to sip.h for when embedding Python 2.3 in Qt applications. - - -2007/01/16 13:54:14 phil -qRegisterMetaType() is now called for every candidate class at module -initialisation rather than when the first instance is created from Python. - - -2007/01/15 23:47:45 phil -Allowed /TransferThis/ to be specified more than once. - - -2007/01/15 13:43:51 phil -Updated the copyright notices. -Fixed a reentrancy problem in wrapping objects obtained from C/C++ (thanks to -Giovanni Bajo for the fix). - - -2007/01/10 16:24:13 phil -Added support for __truediv__ and __itruediv__ by making them synonyms for -__div__ and __idiv__. - - -2007/01/07 17:33:58 phil -Hopefully fixed a bug in the generation of the typedefs table that wasn't using -the full name of foreign modules. - - -2006/12/28 16:58:57 phil -Fixed a bug in the sipResetCppHasRef() macro that breaks the /TransferBack/ -annotation. - - -2006/12/20 17:22:28 phil -Fixed a MacOS specific bug in create_wrapper() in the build system. - - -2006/12/20 15:13:08 phil -Applied a patch to sipdistutils.py from Giovanni Bajo to allow .sip files to be -used in the "depends" argument to setup(). - - -2006/12/16 16:25:30 phil -Fixed a bug in the build system that meant that lines in the top level mkspec -file were being ignored after the last include. - - -2006/12/09 23:44:19 phil -Released as v4.5.2. - - -2006/12/09 23:42:27 phil -Fixed a MacOS build problem caused by another change to Qt installs. - - -2006/12/09 18:33:42 phil -Released as v4.5.1. - - -2006/12/09 18:30:52 phil -Updated the NEWS file. -Fixed the internal build system for later versions of docutils. - - -2006/12/06 18:09:27 phil -"PyQt_PyObject" is now used instead of "PyObject *". -lamda functions can now be used as slots. - - -2006/11/26 18:19:36 phil -Fixed an incorrect assumption that if a Python wrapper of a C++ owned object -was being garbage collected then its Python children (ie. things it owns) -should also be garbage collected. It may be that the parent is a "temporary" -object (eg. the argument of a reimplementation of a virtual) but the children -are "permanent". The case in PyQt is the parent argument of -QAbstractItemDelegate.createEditor(). - - -2006/11/25 17:09:54 phil -PEP 353 fixes from Ulli. - - -2006/11/25 10:48:15 phil -Some "char *" to "const char *" fixes from Ulli. - - -2006/11/18 13:25:28 phil -Fixed a broken pointer bug in the API file generation. - - -2006/11/17 18:21:30 phil -Fixed a misleading error message when instantiating templates. -Fixed a bug generating global functions in API files. - - -2006/11/11 23:16:12 phil -Fixed a bug with virtual handlers when a module %Imports from two other -(independent) modules. - - -2006/11/04 22:07:32 phil -Released as v4.5. - - -2006/10/28 17:58:28 phil -The build system now handles .prl files on MacOS. - - -2006/10/27 17:15:09 phil -Changed NoDefaultCopyCtor to NoDefaultCtors. -Updated the NEWS file. - - -2006/10/22 16:38:19 phil -A fix for configuring QtAssistant in PyQt for Qt v4.2 on MacOS. -Added the NoDefaultCopyCtor class annotation. - - -2006/10/21 17:48:15 phil -Fixed a Python 2.4/2.5 change that was missed. -Added sip.setdeleted(). - - -2006/10/20 16:40:42 phil -Platform portability fixes from Ulli. -Fix for conditional includes in spec files from Ulli. -Qt4 module include directories are now searched before the main Qt4 include -directory. -Handle the change in debug libraries in Qt v4.2. - - -2006/10/15 18:54:40 phil -Allow virtual signals if the NoEmitters option is set. - - -2006/10/15 12:41:12 phil -Fixed a bug where the first argument to a global comparison operator was -mishandled if it was a pointer rather than a reference. - - -2006/10/13 16:28:11 phil -Improved the previous fix for the incorrect ctor exception. - - -2006/10/08 17:04:46 phil -Fixed bug where handwritten traverse and clear code wasn't being called for -derived classes. -Fixed an incorrect Python exception raised when a C++ exception is thrown by a -ctor. -The build system now displayed an error if a non-framework build of Python is -used on MacOS. -Untested fix for building a static module with MinGW. - - -2006/10/07 12:21:23 phil -Build system fixes for Qt v4.2.0 based on a patch from Matt Newell. - - -2006/09/30 19:20:12 phil -Fixes for building QtTest on Windows. - - -2006/09/24 0:09:37 phil -Taught the build system about QtTest. -Fixed a bug in the handling of namespaces split across multiple header files. - - -2006/09/23 18:40:03 phil -Added support for hooking into the C++ dtor from Python by implementing -__dtor__() from a patch by Jean Jacques Lecler. - - -2006/09/23 17:59:58 phil -Added sip.delete() (based on a patch from Jean Jacques Lecler) and -sip.isdeleted(). - - -2006/09/23 14:29:46 phil -Removed the -n flag to sip now I think I've decided how to change code -completion in QScintilla. - - -2006/09/22 18:17:25 phil -Backed out the check that abstract methods are virtual - because they don't -have to be. - - -2006/09/17 13:04:05 phil -Added support for pure virtual dtors. -Fixed a bug where abstract operators weren't flagging the class as being -abstract. - - -2006/09/03 13:05:16 phil -Defeated a GCC v4 warning message on generated code. - - -2006/08/17 17:06:30 phil -Minor code generation formatting tidyups. - - -2006/08/17 16:04:59 phil -Added argument type checking to sipRegisterIntTypes(). - - -2006/08/17 0:12:00 phil -Added sipRegisterIntTypes() to the private Qt support API so that PyQt4 can -implement Q_ENUMS and Q_FLAGS. - - -2006/08/05 17:48:43 phil -Added support for QAxContainer in the build system. - - -2006/07/19 19:52:25 phil -Updated the spec files from Qt v4.1.4. -Added (completely untested) support for embedding manifests for MSVC v8. - - -2006/07/16 12:38:09 phil -More Python v2.5 changes. - - -2006/07/15 22:27:26 phil -The sip module will now build against Python v2.5. (The 64 bit changes still -need to be done.) - - -2006/07/08 19:27:08 phil -Fixed the use of sys.lib in configure.py. - - -2006/07/06 22:17:58 phil -configure.py uses sys.lib if it is defined (for some 64 bit Linux distros). - - -2006/07/04 17:15:45 phil -Always call a dtor if there is one, even if we can't see how the instance could -have been created. - - -2006/07/01 11:20:03 phil -Fixed default arguments and C++ scoped names in the new API file handling. - - -2006/06/30 23:26:45 phil -Added the -n command line option (possibly only temporarily). -Changed the API generation so that it is more complete and uses Python types -rather than C/C++ types. - - -2006/06/29 22:54:54 phil -Added sip_config_args to sipconfig.py. -Added __hex__() to sip.voidptr. - - -2006/06/19 15:57:08 phil -More warning fixes from Ulli. - - -2006/06/17 10:48:34 phil -Changed the explicit C linkage to retain the benefit of using static. - - -2006/06/13 12:00:29 phil -Signals and slots are now const char * rather than char *. - - -2006/06/10 12:33:46 phil -Fixed the implementation of /TransferBack/ for virtuals. -Changed all API arguments that take a format string from char * to const char * -for Solaris. -Used explicit C linkage for all generated function calls when generating C++. -(May need more work in this area.) - - -2006/06/06 23:08:25 phil -Changed the XML handling of opaque classes. - - -2006/06/05 23:30:09 phil -Added support for opaque classes to the XML. - - -2006/06/03 23:19:33 phil -More XML generation changes. - - -2006/05/31 21:18:34 phil -More XML generation changes. - - -2006/05/30 10:39:52 phil -More XML generation changes. - - -2006/05/28 22:29:04 phil -More XML generation changes. - - -2006/05/25 20:44:55 phil -Fixed bug disconnecting Python signals. - - -2006/05/20 21:02:30 phil -More XML generation changes. - - -2006/05/20 10:50:32 phil -Backed out the change that treated "char" and "char *" as equivalent when -comparing Python signatures. (The former is different to the latter if it -appears first.) - - -2006/05/18 23:28:21 phil -More XML generation changes. - - -2006/05/16 23:27:00 phil -Tightened up on detecting clashing Python signatures involving strings and -longs. -Changes to the XML file generation. - - -2006/05/13 23:17:28 phil -Removed some Python API calls made after the interpreter is known to have gone. - - -2006/05/13 23:10:47 phil -Fixed a sip module bug that meant that the Python API might be called after the -interpreter had gone. - - -2006/05/13 17:18:43 phil -Fixed code generation bug with abstract operators. - - -2006/05/13 15:10:42 phil -Added %UnitCode. - - -2006/05/11 19:02:42 phil -Added sipExportSymbol() and sipImportSymbol(). -Bumped the API version number to 3.2. - - -2006/05/08 13:29:42 phil -Removed (hopefully) two new warning messages. - - -2006/05/07 19:28:35 phil -Added support for %ExportedHeaderCode. - - -2006/05/07 18:27:34 phil -Fixed bug in handling of virtuals with different Python and C++ signatures. - - -2006/05/05 13:54:51 phil -Fixes for compiler warnings and a couple of minor bugs from Ulli. -Deprecated %SIPNoEmitters and replaced it with %SIPOptions. -Added the RegisterTypes option so that appropriate classes are registered with -Qt automatically when needed - so PyQt4 doesn't need to implement -qRegisterMetaType(). - - -2006/05/05 12:23:00 phil -Fixed some compiler warnings. - - -2006/05/01 14:41:18 phil -More work on the XML generation. - - -2006/04/30 19:14:19 phil -Added the -m flag to generate the XML representation of the Pythonic API. - - -2006/04/28 20:49:53 phil -Replaced long long with PY_LONG_LONG for MSVC 6. - - -2006/04/27 8:01:56 phil -Fixed bug in handling multiple instances of the same namespace. -The build system allows Apple's Python to be used if there is also a later -python.org installation. -MacOS modules are now bundles rather than dynamic libraries and can now be -loaded by Pythons from python.org. -Released as v4.4.3. - - -2006/04/21 12:27:20 phil -Fixed the previous const mapped type fix. - - -2006/04/20 23:14:34 phil -Fixed the GUI enabled interpreter in sipconfig.create_wrapper() for MacOS. -Fixed static const mapped types. - - -2006/04/18 23:49:07 phil -Fixed the build system for when sys.prefix != sys.exec_prefix. - - -2006/04/16 11:17:30 phil -Added the export_all argument to the ModuleMakefile constructor of the build -system so that exports can be handled on a per module basis. This is needed to -get around a (not properly understood) problem with modules that wrap C++ -exceptions. - - -2006/04/15 19:21:04 phil -The build system now complains if a property is used in a spec file when no -properties have been defined. -Removed Qt specific properties from the solaris-cc and hurd-g++ spec files. -Fixed the disconnecting of short-circuited signals. - - -2006/04/08 19:54:38 phil -Fixed the build system to better support frameworks on MacOS. - - -2006/04/07 8:37:29 phil -Made sure that all uses of sipMappedType * in the API are const. - - -2006/04/06 10:40:18 phil -The sipconfig module now uses qt_data_dir (if set) to find the qmake spec files. - - -2006/04/05 12:27:06 phil -Merged v4.4.1 into the trunk. -SIP now properly detects duplicate Python signatures. - - -2006/04/03 19:27:34 phil -Released as v4.4.1. - - -2006/04/03 0:08:03 phil -Fixed a regression in the handling of __dict__. - - -2006/04/01 10:34:10 phil -Make the sip module's support for long long and unsigned long long conditional -on HAVE_LONG_LONG so that it will build with older compilers. - - -2006/03/29 10:17:22 phil -Removed extraneous brackets in generated code. - - -2006/03/28 13:35:38 phil -Fixed some C++ code wrongly appearing in C modules. - - -2006/03/25 16:58:15 phil -Fixed a regression in the handling of namespaces. - - -2006/03/24 22:24:29 phil -Documented sipModule and sipModuleDict as being available to -%PostInitialisationCode. -Released as v4.4. - - -2006/03/21 23:39:27 phil -Applied patch for sipdistuils.py from Giovanni. -Documented sipConvertFromNamedEnum(). -Wrapped types now define __reduce_ex__ and __reduce__ attributes set to None so -that pickle knows they can't be pickled. - - -2006/03/20 23:13:23 phil -Fixed the special handling of the __dict__ attribute so that it doesn't apply -to Python sub-classes of wrapped classes. - - -2006/03/19 14:21:56 phil -Documentation tweaks. -Generate sipSelf for ctor %MethodCode now that it's existence is documented. -Fixed a second place where slots with no underlying C++ instance might be -invoked. - - -2006/03/17 1:17:00 phil -Removed __unicode__ from the documentation. -Fixed a bug with virtual methods that returned a reference to a type that had -%ConvertToTypeCode. - - -2006/03/15 23:44:16 phil -Removal of a now redundant error message. -Fixed a leaking weak reference object. -Another attempt at fixing calling slots where the underlying C++ instance has -disappeared. - - -2006/03/14 22:46:48 phil -More const void * fixes. -Fixed bug with building debug modules using MinGW. -Fixed feature where too many names were being generated from imported modules. -SIP now handles nested imports properly and doesn't require all modules to be -explcitly imported. - - -2006/03/13 11:33:28 phil -Build system changes to support MacOS properly. -Fixed crash when %TypeHeaderCode was used outside of a scope. - - -2006/03/12 14:47:22 phil -Fixed calls to sipConvertFromVoidPtr() with a const argument. - - -2006/03/11 19:15:31 phil -Minor changes to sipconfig.py for PyQt4's pyqtconfig.py. - - -2006/03/11 15:14:31 phil -Fixed handling of generating code for the version before the first %Timeline -version. - - -2006/03/08 9:34:46 phil -Fixed a bug in the handling of QVariant * and PyObject * signal arguments. - - -2006/03/06 18:59:26 phil -Fixed a regression in handling of enums defined in an imported module. - - -2006/03/06 12:35:05 phil -Fixed bug in handling the typedef void hack. - - -2006/03/05 17:41:44 phil -Fixed bug with abstract classes with %ConvertToSubClassCode. -Reimplemented namspaces split across modules so that there is a single -namespace implemented in the original module. - - -2006/03/05 12:55:13 phil -Fixed missing #include for classes that aren't an immediate parent. - - -2006/03/04 17:55:49 phil -Fixed a regression in the wrappers around protected methods. - - -2006/03/04 10:48:35 phil -Suppressed the exception about the underlying object disappearing when calling -a Python slot. This is because we don't automatically disconnect Python slots. - - -2006/03/02 20:36:56 phil -Added sipLong_AsUnsignedLong() to work around a bug in PyLong_AsUnsignedLong(). - - -2006/02/26 23:19:31 phil -Fixed bug in handling class arguments with /Out/ specified. - - -2006/02/26 17:08:35 phil -Recognise NULL as a synonym for 0. -Some build system changes for Cygwin. -Fixed the deletion of temporary instances in catch clauses. - - -2006/02/26 13:56:56 phil -SIP now treats signed char as a type distinct from char. - - -2006/02/26 0:41:23 phil -Tore up the recent changes for handling cross module namespaces. A namespace -is now defined in each module it is used. That makes things easier to -implement and should be less confusing for the user. The API and data -structures should now be stable. - - -2006/02/25 21:08:24 phil -Fixed bug in handling of variables introduced in the previous commit. - - -2006/02/25 20:54:19 phil -Added support for variables defined in namespaces defined in other modules. - - -2006/02/25 19:59:46 phil -Completed the support for enums in namespaces originating in other modules. - - -2006/02/21 15:22:52 phil -Added the 't' and 'u' format characters to sipParseArgs(), sipParseResult(), -sipCallMethod() and sipBuildResult(). -unsigned and unsigned short are now implemented as Python long objects instead -of integer objects. - - -2006/02/19 16:43:02 phil -Implemented disconnects for universal signals. - - -2006/02/18 21:04:05 phil -Implemented support for signal arguments of type PyObject *. -Implemented support for shortcircuited Python signals (ie. just the name -without arguments) that will only work with other shortcircuited Python signals -and Python slots - bit don't need to do any conversions between Python and C++. - - -2006/02/17 10:59:46 phil -Fixed bug in the implementation of /TransferBack/ in virtual handlers. -Fixed bug in methods with a void result and a single /Out/ argument that was a -mapped type or class. - - -2006/02/16 18:24:46 phil -Fixed bug in generating code that called sipCallMethod(). -Updated the documentation where it was still referring to the legacy type -convertors. - - -2006/02/16 16:30:10 phil -Fixed bug in generated legacy mapped type convertor names. - - -2006/02/15 16:45:33 phil -Fixed bug that could easily result in deleting non-heap instances. - - -2006/02/13 20:04:02 phil -Fixes to PythonModuleMakefile. - - -2006/02/13 0:23:04 phil -Renamed the new sipCheckConvert functions to sipForceConvert functions. -Added the 'B', 'C' and 'D' format character to sipBuildResult() and -sipCallMethod(). -Removed the 'L' format character from sipBuildResult() and sipCallMethod(). -Added sipConvertFromInstance(), sipConvertFromNewInstance() and -sipConvertFromMappedType(). - - -2006/02/12 1:13:28 phil -Overhauled how %ConvertToTypeCode should be written - detail below. (Still need -to overhaul %ConvertFromTypeCode.) -Added sipCanConvertToInstance(), sipConvertToInstance(), -sipCheckConvertToInstance() and sipReleaseInstance(). -Added sipCanConvertToMappedType(), sipConvertToMappedType(), -sipCheckConvertToMappedType(), sipReleaseMappedType() and sipFindMappedType(). -Changed the order of the arguments to sipConvertToCppTransfer(). -Added the 'C' and 'D' format characters to sipParseResult(). -Changed the meaning of the 'J' and 'M' format characters in sipParseArgs(). -Removed the sipConvertTo_*() functions. -Removed sipConvertToCppTransfer(). -Took all of the None handling out of %ConvertToTypeCode. - - -2006/01/28 20:11:45 phil -Fixed the support for __hash__. - - -2006/01/26 16:39:44 phil -Added %SIPNoEmitters to stop SIP generating signal emitters for a module and -any module that imports it. -Changed the signal/slot support so that Python signals can be implemented with -proxies. - - -2006/01/20 22:36:17 phil -Fixed a bug in sipTransferTo() that caused some objects to be garbage collected -while ownership was being transferred. -Check that abstract methods are only ever called as bound methods. - - -2006/01/19 17:57:01 phil -Updated the documentation for sipConnectRx(). -The __dict__ attribute of a wrapper type now returns a regular dictionary -rather than a proxy (because PyDict_Next() doesn't iterate over proxies). - - -2006/01/14 16:40:04 phil -Fixed the searching of signal types. - - -2006/01/11 8:45:06 phil -The previous fix wasn't quite so trivial. - - -2006/01/11 8:17:58 phil -Added missing function prototype. - - -2006/01/10 20:12:59 phil -Fixed code generation bugs in new virtual handling code that was triggered by -PyKDE. -Build system changes for MinGW. -Added support for constrained bools. -Generate code to wrap static enum instances with inline code rather than -through tables (as is done with class instances) for Windows. - - -2006/01/09 19:42:45 phil -Changed the signatures of sipForceConvertTo_*() and sipConvertFrom_*() back to -their SIP 4.3 versions, deprecated them, and introduced the Transfer variants. - - -2006/01/09 17:49:19 phil -More build system changes for Windows. -Added the platform macro to sipconfig.py. -The default Windows platform Python 2.4 and later is now win32-msvc.net rather -than win32-msvc. - - -2006/01/08 15:59:48 phil -Various build system changes needed by PyQt4 on Windows. - - -2006/01/07 15:57:31 phil -Updated the spec files from Qt v4.1. -Added support for the $$() method of accessing environment variables in qmake -spec files. -sipdistutils.py fix from Giovanni. -Changes to the build system for the slightly different macro names on Windows. - - -2006/01/04 13:10:29 phil -Added support for the /NoDerived/ annotation. - - -2006/01/03 21:08:54 phil -Fixed bug in handling of delayed dtors. - - -2006/01/02 12:43:51 phil -Fixed another bug with the new handling of virtual function calls (where -re-implementations from another module weren't picked up). - - -2005/12/30 14:35:11 phil -Fixed bugs with the new handling of virtuals that caused recursions. - - -2005/12/29 19:02:18 phil -Taught the build system about the QtAssistantClient library. - - -2005/12/29 15:14:14 phil -Fixed bugs related to global operators with an enum as the first argument. - - -2005/12/28 19:34:37 phil -Added sipConvertToCppTransfer(). -Changed the signatures for the type convertor functions. -Added the 'L' format character to sipBuildResult() and sipCallMethod(). - - -2005/12/27 10:53:26 phil -Added support for the /DelayDtor/ class annotation to control the order of dtor -calls when the interpreter exits. -Fixed bugs with cast operators. - - -2005/12/26 10:59:30 phil -Fixed a documentation bug. -Slightly changed the declaration of the sipProtectVirt wrappers. - - -2005/12/24 17:33:39 phil -Class methods called as class.method(self, ...) is now equivalent to -this->class::method(...). Class methods called as self.method(...) is now -equivalent to this->method(...). -Introduced sipSelfWasArg and the sipProtectVirt wrappers in order to support -the above. - - -2005/12/22 19:13:05 phil -SIP no longer complains if a slot to be disconnected isn't actually connected -(and hopes Qt will then behave appropriately). - - -2005/12/19 17:43:03 phil -Backed out the recent change that ignored abstract specifications if the -methods wasn't virtual. - - -2005/12/19 14:52:41 phil -Various changes to the build system to better support Qt v4. - - -2005/12/18 15:24:36 phil -Added the PythonModuleMakefile class and create_wrapper() function to the build -system. - - -2005/12/15 15:11:02 phil -Internally renamed qtlib.cpp to qtlib.c. -Small changes to the internal build system caused by the move to SVN. -Removed SIP_BUILD from sip.h. - - -2005/12/12 19:47:19 phil -Ignore abstract specifications for non-virtual methods as GCC seems to do. - - -2005/12/11 22:51:51 phil -Fixed bug in the implementation of slot extenders. - - -2005/12/07 18:19:48 phil -Fixed the misleading exception raised when attempting to call a private -re-implementation. - - -2005/12/07 00:52:24 phil -Fixed the fundamentally broken #include dependency handling. - - -2005/12/05 09:57:22 phil -The sip module now leaves to the Qt support API to determine if a signal is a -Qt signal or a Python signal (so that PYSIGNAL can be dropped in PyQt4). - - -2005/12/04 16:35:05 phil -Fixed a bug with the expansion of class templates. - - -2005/11/30 19:00:57 phil -Made the parsing of default arguments able to handle template instantiations. -Fixed a bug in the handling of renamed enums. -Started the support for namespaces defined across modules. - - -2005/11/29 13:06:06 phil -Implemented the last pieces of cross-module type convertor support. - - -2005/11/26 22:10:57 phil -Fixed the internal build system for the latest release of docutils. -Fixed a bug in the parser that caused classes to sometimes appear to be -external when they weren't. - - -2005/11/25 17:43:01 phil -Exposed sipConvertRx() as part of the hidden Qt support API. -Added SIP_ANYSLOT to support the hidden Qt support API. - - -2005/11/24 17:23:25 phil -Finished the modified mapped type template handling. -Allowed SIP_SLOT and SIP_SIGNAL to have a default argument. - - -2005/11/23 21:51:04 phil -Made type expansions in template code aware of SIP generated names. -Started to modify the handling of mapped type templates (not yet finished). - - -2005/11/20 18:40:37 phil -Further refined the Python type comparisons. - - -2005/11/19 18:10:05 phil -Fixed the parsing of ellipsis arguments. - - -2005/11/18 23:23:39 phil -Made the selection of a suitable ctor when generating error values more likely -to find one without being explicitly told. - - -2005/11/18 18:02:04 phil -Fixed class numbering bug with external classes. -Fixed bug with protected enums used as arguments to virtuals. -Improved the comparison of Python signatures. - - -2005/11/17 18:04:33 phil -Completed the support for cross-module operators. -Started the support for cross-module operator casts. - - -2005/11/16 20:11:14 phil -Added support for operator casts of basic types. -Added support for the __long__ and __float__ Python slots. -Started to add support for operator casts of classes. - - -2005/11/16 17:16:18 phil -Added support for cross-module number operators. - - -2005/11/15 17:19:33 phil -Fixed a long standing bug related to default arguments. - - -2005/11/14 17:19:34 phil -Changed the Qt support API to pass the Python object when creating a new -universal slot. -More fixes for external classes. - - -2005/11/13 17:47:38 phil -Fixed bug in handling external classes (not yet right). - - -2005/11/12 10:21:24 phil -Updated the documentation regarding module names. - - -2005/11/12 10:15:09 phil -Added support for hierachies in module names. - - -2005/11/09 18:22:38 phil -Fixed the documentation error. - - -2005/11/09 17:58:26 phil -Passing None when an argument will be dereferenced now causes a type error -(allowing subsequent signatures to possibly succeed) rather than a conversion -error. This means QFileDialog(None) works. - - -2005/11/06 17:43:48 phil -Added support for external class declarations. -Template signatures can now include base types. -The arguments to function calls that are default values can now be expressions. - - -2005/11/03 22:25:39 phil -Removed the restriction that static methods cannot be Qt slots. -Argument names can now be given for the Qt signal/slot types. - - -2005/11/02 19:16:45 phil -Added support for SIP_PYTYPE. -Added support for signatures with variable numbers of arguments. -__getitem__() no longer requires %MethodCode. -Global unary + and - operators are now handled properly. -Fixed bug with nested templates. - - -2005/11/01 22:09:07 phil -Changed the Qt API to deal with the extra argument in connect() and -disconnect() in Qt4 and the way in which signal arguments are passed. - - -2005/10/30 18:04:19 phil -Added the sipdistutils.py script from Giovanni Bajo. - - -2005/10/30 11:23:23 phil -Fixed bug in error reporting when doing template instantiation. -Allow template types to be pointers (and the indirection is dropped). -/TransferThis/ can now be used in non-factory methods. -Removed the 't' format flag from sipParseArgs(). A pointer to sipSelf is now -passed which is updated. -Fixed clash of format characters in sipParseArgs(). -Fixed a couple of bugs with char * output arguments. - - -2005/10/24 16:58:17 phil -Applied fix from Giovanni Bajo to the build system where a macro was defined in -terms of another macro *and* additional values. - - -2005/10/23 16:02:18 phil -Changed the buffer interface support so that sipSelf is always passed in. -Changed the Qt interface to allow QObject.sender() to support Python signals. - - -2005/10/23 12:44:47 phil -Added the "user" member to the sipWrapper structure. -Added support for Python's buffer interface. - - -2005/10/16 16:07:19 phil -Debugged the support for mapped type templates. - - -2005/10/16 10:47:31 phil -Documented the use of mapped type templates. -Completed the implementation of mapped type templates. - - -2005/10/13 21:43:57 phil -Added parser support for mapped type templates. (Automatic instantiation not -yet implemented.) - - -2005/10/13 16:59:01 phil -Fixed an assumption that a type created by sip.wrappertype would always be -derived from sip.wrapper causing a segfault. (__metaclass__ might have been -used to invalidate the assumption.) - - -2005/10/12 21:10:17 phil -Fixed legacy C++ism from the Qt support hooks. - - -2005/10/11 21:12:02 phil -Moved the export module function to the start of the API table. (Not having -there from day one was a really, really stupid thing to do.) - - -2005/10/09 17:01:39 phil -Changed the handling of number slots to support the reverse operators. - - -2005/10/06 21:41:32 phil -Fixed bugs related to function arguments that were classes and had default -arguments that weren't function calls. - - -2005/10/06 20:24:43 phil -Removed longs, unsigned longs etc. from the tests for types that Python can -automatically convert. I think this needs looking at again as the current -tests are too simple minded. -Fixed some missing checks for constrained floats and doubles. - - -2005/10/05 15:39:40 phil -Added support for the int() cast in classes. -Debugged the support for template classes and global operators. - - -2005/10/01 11:24:21 phil -The C/C++ long long and unsigned long long types are now supported. - - -2005/09/30 23:48:16 phil -longs are now implemented using the Python long object. -unsigned longs are now handled separately. - - -2005/09/30 18:10:18 phil -Completed support for global operators with wrapped enums as the first -argument. - - -2005/09/29 17:56:05 phil -Template class definitions now have to use typename. -Started to add support for global operators that have wrapped enums as the -first argument. - - -2005/09/28 21:10:50 phil -A couple of fixes to the template support. - - -2005/09/28 16:05:16 phil -Added support for global operators (so long as the first argument is a class -wrapped in the same module). -Fixed a bug that prevented global functions with the same name being defined in -different modules. - - -2005/09/28 13:50:04 phil -Completed the support for template classes. - - -2005/09/27 21:16:14 phil -Started to add support for template classes. Not yet complete, but shouldn't -have broken anything. - - -2005/09/25 15:10:20 phil -Function arguments can now have names (although they are ignored). -The "explicit" keyword is parsed (but not yet used). - - -2005/09/22 20:21:36 phil -The generated sipconfig.py no longer contains any Qt version specific -configuration data and so can be shared between Qt configurations. -Added Configuration.build_macros(), Configuration.set_build_macros() and -parse_build_macros() to the build system API. -Added the macros argument to create_content() and create_config_module() in the -build system API. -Removed the dictname argument from create_content() in the build system API. -Removed the -l, -q, -x and -c command line flags to configure.py. - - -2005/09/19 21:14:35 phil -Started to refactor the build system so that sipconfig.py doesn't know about -Qt. - - -2005/09/17 15:19:17 phil -The build system now detects the open source edition of Qt v4. - - -2005/09/17 13:42:19 phil -The build system no longer passes QT_THREAD_SUPPORT to Qt v4. - - -2005/09/09 22:06:20 phil -Reverted to the v4.3 behaviour of the /Factory/ annotation in virtual methods. - - -2005/09/08 20:15:09 phil -Updated the documentation where it covers what Qt support is. -Universal slots no longer take part in cyclic garbage collection as they are -associated with C++ instances and not Python objects. - - -2005/09/07 20:53:06 phil -The Qt support framework is now C rather than C++. - - -2005/09/06 20:32:33 phil -Refactored the Qt support so that the sip module no longer makes any Qt calls -and so it can support PyQt v3 and v4 without needing to be re-compiled. - - -2005/09/04 20:47:42 phil -More build system changes for Qt4. - - -2005/09/04 17:57:02 phil -Small fix so it still builds in the internal development systems. - - -2005/09/04 17:49:32 phil -Started to update the build system to deal with Qt4. - - -2005/08/31 18:39:27 phil -Fixed slot handling bug caused when a slot was defined in a C++ super-class and -called from a wrapped sub-class. - - -2005/08/30 16:32:20 phil -Released as v4.3. - - -2005/08/28 11:42:13 phil -Clarifed the documentation regarding object ownership with the some of the -flags to sipBuildObject(). - - -2005/08/28 07:50:59 phil -Fixed bug in exception handling that caused a seg fault when generating code. - - -2005/08/22 20:39:42 phil -Backed out part of the last commit - the bit I wasn't sure about (seems I was -right). - - -2005/08/22 16:46:30 phil -Applied some HP-UX and AIX portability fixes from Ulli. - - -2005/08/21 11:54:53 phil -Fixed bug with new ownership code related to objects with no owning object. -(It breaks PyQt's semaphore.py example.) - - -2005/08/19 16:01:47 phil -Fixed a regression that caused the leak of universal slots. - - -2005/08/17 22:32:13 phil -Reimplemented the code that handles object ownership. -Deprecated sipTransfer() and sip.transfer(). -Added sipTransferTo(), sipTransferBack(), sip.transferto() and -sip.transferback(). - - -2005/08/16 16:35:21 phil -Backed out the garbage collector fix yet again. I now know what the real -problem & solution is. - - -2005/08/10 16:40:47 phil -Hopefully fixed the remaining problem with the cyclic garbage collector -support. - - -2005/07/27 17:17:29 phil -Put back in the possible fix for weak references and cyclic garbage collection -so that it can be selectively tested. - - -2005/07/27 12:08:18 phil -Fix for very subtle bug where an object being garbage collected was passed as -an argument to a Python method and its referenced count increased again. - - -2005/07/26 19:45:59 phil -Fixed a bug in the handling of __dict__ for wrapped instances. - - -2005/07/10 09:45:43 phil -Added support for sipCppRet in %ConvertSubClassCode. - - -2005/07/09 15:37:04 phil -Redid some of the handwritten code handling now I properly understand what -flex is doing. - - -2005/07/09 10:25:58 phil -Hopefully, finally, nailed the lexing of handwritten code. - - -2005/07/03 15:54:41 phil -Backed out some of the "fix" for Windows path separators. - - -2005/07/03 13:56:25 phil -Fixed segv trigged by a reference to __dict__ in an __init__ function before -the instance dictionary has been created. - - -2005/07/02 11:06:14 phil -Fixed handling of variables based on the pseudo PyObject based types. -Allowed all of the pseudo PyObject types to be variables (not just -SIP_PYOBJECT). - - -2005/07/01 17:06:50 phil -Updated the NEWS file. -Possibly fixed the problem with directory separators on Windows not being -escaped in generated #lines. (Actually in the last commit but I forgot to -mention it.) - - -2005/07/01 16:41:12 phil -Fixed a silly bug in the handling of sipExceptionRef. - - -2005/06/30 18:04:35 phil -Fixed a couple of bugs related to global anonymous enums. - - -2005/06/30 16:56:10 phil -Classes are properly marked as abstract if they have an abstract method visible -in their super class hierarchy. - - -2005/06/30 16:15:12 phil -Don't generate sipExceptionRef if it isn't used. - - -2005/06/30 15:53:27 phil -Fixed a bug in the handling of slots with implied connections caused by a -recent GC related fix. - - -2005/06/29 20:44:11 phil -Backed out the last fix for the cyclic garbage collector - it's wrong. Still -leaves the problem with weak references. - - -2005/06/29 15:00:30 phil -Fixed segv with the new exception support when class or undefined exceptions -where used in throw specifier. -The build file now doesn't include non-existant C++ files for exceptions. - - -2005/06/26 22:03:27 phil -Implemented the support for %Exception. -The parsing of handwritten code still seems to have problems in that blank -lines seem to be ignored. This seems to be a problem with flex (the rule -doesn't seem to be recognised for this condition). Ignore until somebody -complains. - - -2005/06/25 17:28:17 phil -Fixed a bug with In,Out arguments that had type convertors. - - -2005/06/25 15:47:51 phil -Fixed the cyclic garbage collector support for objects owned by C++. - - -2005/06/25 13:19:50 phil -Fixed the extra linefeed appearing in handwritten code. - - -2005/06/25 11:42:49 phil -Connections from emitters not owned by Python are now maintained if the Python -wrapper is garbage collected. - - -2005/06/23 16:46:33 phil -Allow comments on the same line after %End and (as a side effect) fix compile -problem on Windows (thanks to Ulli Berning). - - -2005/06/22 17:45:57 phil -Hopefully fixed blank lines in handwritten code. - - -2005/06/19 13:47:59 phil -Code blocks can now contain %. -Added parser support for the new %Exception directive. The implementation -hasn't yet been done - but it shouldn't break anything. - - -2005/06/05 08:28:05 phil -Fixed code generation bug in the new variable handling code. - - -2005/06/01 17:38:26 phil -Updated the documentation regarding %GetCode and %SetCode for static class -variables. - - -2005/05/31 20:34:53 phil -Added support for %GetCode and %SetCode. - - -2005/05/29 10:10:24 phil -Fixed silly bug in new -c flag to configure.py. - - -2005/05/28 15:55:11 phil -Added the -c flag to configure.py to allow the directory containing qconfig.h -to be explicitly specified. -Fixed a bug with assigning None to a class variable that was itself a class or -mapped type. -Fixed a bug when the (non-existent) cast function was being called for a C -structure. - - -2005/05/27 19:51:30 phil -sip.voidptr can now be instansiated from Python. -Added the ascobject() method to sip.voidptr. - - -2005/05/24 16:12:54 phil -Updated the documentation regarding the simple C example. - - -2005/05/24 14:55:09 phil -C structures can now have constructors and a destructor. -Updated the NEWS file. - - -2005/05/13 16:31:08 phil -Fixed simple code generation bug that didn't get triggered with PyQt. - - -2005/05/05 20:19:00 phil -%TypeHeaderCode can now be used in namespaces. -%TypeHeaderCode defined in an enclosing scope (class or namespace) now gets -automatically included for each sub-scope. - - -2005/05/04 18:32:09 phil -Added SIP_VERSION_STR to the sip module. - - -2005/04/30 09:51:27 phil -Fixed bug with protected const method (thanks to James Emerton). -Fixed the text of the exception raised by sipConvertFromSequenceIndex(). - - -2005/04/23 23:17:56 phil -Fixed the previous fix. - - -2005/04/23 18:11:37 phil -Fixed bug with shadow classes if explicit C++ signatures were duplicates. - - -2005/04/23 11:46:33 phil -Fixed a leak where virtual handlers return a mapped type or a class with -handwritten conversion code. (Thanks to James Emerton.) - - -2005/04/23 09:20:53 phil -Removed the caching of enum values in type dictionaries - it's the wrong thing -to do. - - -2005/04/17 10:49:17 phil -Fixed a bug preventing a class that couldn't be instantiated explicitly -(because of private ctors) being wrapped. - - -2005/04/14 19:04:14 phil -Further tweaked the text of the operator type exception. - - -2005/04/14 18:15:54 phil -Improved the text of the exception raised when some operators get bad argument -types. - - -2005/04/03 10:02:00 phil -Fixed a problem with the recent fix for leaking weak reference objects. - - -2005/04/02 23:22:10 phil -Wrapped types now support Python's cyclic garbage collector. -Added %GCTraverseCode and %GCClearCode to allow types to cooperate with the -garbage collector. - - -2005/04/02 18:54:31 phil -Abstract C++ classes can no longer be instantiated from Python - they can only -be sub-classed. -The above change needed the SIP API major version bumping. The minor version -number has been added to the main module data structure to (hopefully) reduce -the need for this in future. - - -2005/04/02 10:12:46 phil -Replaced the new /NoConvertor/ annotation with an extended implementation of -/Constrained/. - - -2005/03/25 20:17:44 phil -Dealloc functions are now generated whenever it might be possible to call the -C++ dtor, even if it is not possible to create a class instance from Python. -Fixed a bug where universal slots were never destroyed. - - -2005/03/25 14:26:46 phil -Fixed bug in sip.cast() when casting to a more specific type. - - -2005/03/17 17:56:18 phil -Updated the documentation regarding sip.transfer(), sipTransfer() and -/TransferBack/. - - -2005/03/10 17:52:22 phil -The C++ unary '+' and '-' operators are now handled correctly. - - -2005/03/10 17:34:09 phil -Added support for __pos__ and __abs__ (which meant bumping the API to 1.1). - - -2005/03/06 10:03:25 phil -Released as v4.2.1. - - -2005/03/04 17:37:36 phil -Fixed problem with sipWrapQVariant(). -Added support for multiple %Timelines in a single module. - - -2005/02/26 11:22:02 phil -Fixed problem with relative path arguments to configure.py. - - -2005/02/25 22:57:28 phil -Backed out the changes that attempted to detect exceptions in Python -re-implementations if virtual C++ methods. The restoration of PyErr_Print() -means that sys.excepthook is usefull again. - - -2005/02/20 08:45:42 phil -Fixed missing cast in generated code. - - -2005/02/19 15:22:53 phil -Fixed a bug with the new enum support when returning one as a tuple element. -Released as v4.2. - - -2005/02/18 19:00:37 phil -Backed out a supposed improvement in the handling of char * method results. -Added SIP_VERSION to the sip module. - - -2005/02/13 20:01:23 phil -Hopefully removed a couple of compiler warnings from the sip module. - - -2005/02/11 18:43:40 phil -Updated the NEWS file. -Released as v4.2rc2. - - -2005/02/11 17:20:15 phil -Updated the copyright notice in the documentation. -The recent fix in the object map code was broken. It should now be fixed -properly. - - -2005/02/06 14:39:02 phil -Thanks to Ulli Berning, by default the build system now only exports a module's -initialisation function. Added the -a flag to configure.py to restore the old -behaviour. - - -2005/02/04 18:29:16 phil -All modules are now stripped by default on installation. -Fixed a bug where namespaces' generated names were wrong so that they appeared -to go AWOL. - - -2005/01/29 10:15:15 phil -Synced build system with Qt v3.3.4. - - -2005/01/22 18:35:10 phil -Updated the NEWS file. -Released as v4.2rc1. - - -2005/01/16 13:07:00 phil -Minor fix to the documentation. - - -2005/01/16 00:12:33 phil -Fixed bug in new signal handling introduced when __module__/__name__ handling -was fixed. - - -2005/01/14 17:35:33 phil -Backed out the changes that relaxed the interpretation of enums. -Updated the copyright notices. -Fixed the __module__ and __name__ attributes for wrapped classes and enums. -sip.cast() will now cast to both sub and super-types of an instance. -Added support for debug builds to the internal build system. - - -2005/01/09 14:03:48 phil -Relaxed the new enum type checking so that an integer can also be used where a -named enum is expected. The previous rigorous type checking was likely to -break too much code. - - -2004/12/31 15:29:22 phil -Fixed problems handling signals that were emitted by a QSignal instance. - - -2004/12/30 21:51:11 phil -Fixed bug in the object map code where unused slots weren't being reclaimed -properly. - - -2004/12/30 14:18:27 phil -Fixed invalid format characters in calls to PyErr_Format(). - - -2004/12/26 18:51:39 phil -The sip module now complains about an argument with a bad type in preference to -having too many arguments - which is a more meaningful error message in that -context. - - -2004/12/26 12:26:30 phil -Fixed a typo in the mkcustom.py script. - - -2004/12/24 17:53:37 phil -Restored the support for moc in the build system for SIP v3. -Deprecated the -g flag to sip. -Fixed a code generation bug related to virtual operators. - - -2004/12/23 22:43:16 phil -Added the custom directory. -Added the section on custom interpreters to the documentation. - - -2004/12/19 19:27:35 phil -Make %PreInitialisationCode and %PostInitialisationCode subject to version -control. -Removed the calls to PyErr_Print() now that we detect exceptions in Python -re-implementations. -Changed the building of static modules so that they are used as libraries -(still need to document this). - - -2004/12/10 18:07:24 phil -Fixed bug where members of global enums weren't being added to the module -dictionary. -Fixed debug builds on Windows. -Fixed bug where invalid C code was being generated in the module init function. -Fixed bug where enums defined in a super-class from another module would -segfault when referenced. -Fixed bug that meant that the C++/Python object map would continually grow. - - -2004/12/05 11:27:27 phil -Fixed silly bug in the new typedef handling. - - -2004/12/04 23:51:39 phil -Virtual and abstract operators are now supported. -The __call__ slot no longer requires %MethodCode. -Python exceptions raised in virtual re-implementations of C++ methods are now -detected when they occur. - - -2004/12/03 18:59:33 phil -The /PyName/ annotation can now be applied to classes, variables and enums. - - -2004/11/28 10:57:58 phil -Added support for %PreInitialisationCode from Ulli Berning. -Added a check for name clashes with named enums. - - -2004/11/26 18:54:04 phil -Completed the support for named enums having distinct types. -The new signal support now handles typedefs (untested). - - -2004/11/21 10:38:30 phil -Build system fixes and README.HP-UX from Ulli Berning. - - -2004/11/19 19:05:02 phil -Initial support for named enums having distinct types. This should work as -before. The new types are not yet exploited. - - -2004/11/13 19:07:52 phil -Generalise the build system treatment of INCDIR and LIBDIR to INCDIR* and -LIBDIR*. - - -2004/11/13 18:59:33 phil -Fixed a feature where a factory function with a /TransferThis/ would always -keep a C++ pointer, never finding out it was invalid, and mistakenly recognise -the address when it was re-used. - - -2004/10/30 13:44:50 phil -Fixed bad bugs in new slot proxy handling. -Exposed the voidptr, wrapper and wrappertype types in the sip module. -Updated the documentation. - - -2004/10/06 22:36:38 phil -The new signal handling now supports mapped types. - - -2004/10/05 07:56:53 phil -Revert to a C-style cast for protected enums for some older compilers. - - -2004/10/02 16:23:00 phil -Fixed some warning messages. -SIP v4.x no longer supports Qt v2.x and earlier (use SIP v3.x). -Unrecognised signal argument types are now converted to NotImplemented rather -than causing connections to fail. -Fixed the new signal handling for Qt v3.0.x. -The new signal handling has now been tested on Windows. - - -2004/10/01 16:59:42 phil -Initial support for the new dynamic signal handling that allows previously -unknown signals to be connected to Python callables (needed for ActiveX -support). At the moment mapped types and enums aren't (yet) supported. Qt -versions 1 and 2 aren't (yet) supported. Untested on Windows. - - -2004/09/29 18:31:22 phil -Fixed significant bugs in the way the metatype was working. Operators are now -properly inherited in sub-classes of wrapped classes. - - -2004/09/24 16:56:23 phil -Released as v4.1.1. - - -2004/09/23 20:46:59 phil -Really fixed the previous problem this time. The return type is ignored, but -the re-implementation must be in a sub-class and not a different branch of the -class hierarchy. - - -2004/09/23 19:04:52 phil -Fixed a problem with classes with a virtual and a non-virtual with the same -signature but different return types in the hierarchy. - - -2004/09/23 17:27:51 phil -Fixed an incompatibility accidentally introduced with v4.1. - - -2004/09/21 12:21:20 phil -Minor build system fix for tmake. - - -2004/09/21 11:00:39 phil -Improved the test for the + and * operators context again - the previous change -seems to have got lost. -Added the /Numeric/ annotation to give more control over the above test. - - -2004/09/20 18:18:16 phil -Fixed a problem with deleting const instances. -Released as v4.1. - - -2004/09/15 08:46:45 phil -Fixed bug with arguments that are const simple types. - - -2004/09/14 07:31:13 phil -Updated the NEWS file. -Released as v4.1rc1. - - -2004/09/11 17:25:12 phil -Improved the test to see if the + and * operators should mean concat and repeat -rather than add and multiply. - - -2004/09/10 22:33:28 phil -Re-implemented some of the virtual method handling so that the return type is -ignored when comparing signatures. Not sure it is completely correct yet, but -PyQt seems to be fine. - - -2004/08/25 19:17:59 phil -Fixed const bug - only MSVC complains. - - -2004/08/24 17:32:39 phil -Fixed a bug in the support for protected classes. - - -2004/08/23 22:25:51 phil -Added limited support for protected classes (sufficient for immediate -requirements). - - -2004/08/22 10:16:38 phil -Fixed a bug with access controls in nested classes. - - -2004/08/21 14:12:40 phil -Added the cast() function to the sip module. - - -2004/08/19 22:31:48 phil -Added the /Abstract/ class annotation. -Updated the documentation. - - -2004/08/17 17:56:55 phil -Added support for typedefs that define pointers to functions. - - -2004/08/17 13:58:53 phil -A method that starts a new thread will now make sure that a single thread state -is created - rather than forcing PyGILState_Ensure() to create a new one each -time. - - -2004/08/17 09:24:07 phil -Fixed bug in the internal build system. - - -2004/08/15 23:35:20 phil -Updated the build system from Qt 3.3.3. -Added README.Fink. - - -2004/08/04 14:05:57 phil -Fixed the previous fix. - - -2004/08/04 12:53:29 phil -Fixed a bug where arguments passed to sipParseArgs() may have been const. - - -2004/08/03 16:23:10 phil -The SIP_PYCALLABLE type now supports the /AllowNone/ annotation. -Fixed a documentation bug. - - -2004/08/02 15:28:30 phil -Mostly fixed a problem where a virtual handler without code was being used in -preference to one with code. -More type information is supplied when calling the default constructor. -Fixed a bug with protected enums as arguments to protected methods. -Handle protected abstract methods properly. - - -2004/08/01 18:08:36 phil -Fixed another typo in the documentation example code for %VirtualCatcherCode. - - -2004/08/01 17:55:34 phil -Fixed a typo in the documentation example code for %VirtualCatcherCode. - - -2004/08/01 08:55:03 phil -Added support for the threaded version of Qt/Embedded to the build system. - - -2004/07/27 22:00:24 phil -Added support for MSVC.NET to the build system. - - -2004/07/19 18:42:48 phil -Fixed a bug in sipconfig.read_version() so that version strings with embedded -spaces are handled properly. - - -2004/07/16 21:50:12 phil -Change to the internal build system as Gentoo has prefixed the names of the -docutils binaries. -A few trivial changes to the documentation. - - -2004/07/06 08:12:25 phil -Released as v4.0.1. - - -2004/07/05 16:12:02 phil -Fixed a bug where dtors could be calling Python functions after the interpreter -had been finalised. - - -2004/07/05 10:48:04 phil -Backed out the previous fix for functions that used /TransferThis/ and -/Factory/ and fixed it properly in the sip module. - - -2004/07/05 09:18:44 phil -Fixed bug for methods that used /Factory/ and /TransferThis/. - - -2004/07/02 07:27:56 phil -Fixed problem with internal build system. - - -2004/07/01 12:38:43 phil -Attempts to wrap a NULL pointer now return None rather than raise an exception. -Minor documentation fix. - - -2004/06/30 22:36:17 phil -Fixed a bug in the build system related to libraries. - - -2004/06/23 14:01:38 phil -Released as v4.0. - - -2004/06/21 22:42:42 phil -Switched the SIP4 branch to the trunk. (SIP v3 is now on its own SIP3 branch.) - - -2004/06/20 21:45:18 phil -Completed the documentation. - - -2004/06/15 18:22:26 phil -Added more documentation. SIP pseudo-types and annotations are now complete. - - -2004/06/11 17:32:42 phil -Deprecated the 'L' and 'K' format characters to sipParseResult(). -Added more documentation. The API for handwritten code is now complete. - - -2004/06/09 16:28:20 phil -Added more documentation. The directives section is now complete. - - -2004/06/07 19:44:22 phil -Added more documentation. -Added the transfer() function to the sip module. - - -2004/06/06 17:47:39 phil -A few changes to the new wrapinstance() and unwrapinstance() functions. - - -2004/06/05 17:30:45 phil -Added some more documentation. -Added the wrapinstance() and unwrapinstance() functions to the sip module. - - -2004/06/04 21:32:52 phil -Added some more documentation. - - -2004/05/30 19:05:14 phil -Fixed another benign bug in the build system. - - -2004/05/30 18:06:00 phil -Fix minor bug in the build system. - - -2004/05/27 22:00:37 phil -Updated the TODO list. -Added support for Qt v2 non-commercial to the build system. -Tidied up unused parameters, variables etc. -Added support for the Borland compiler to the build system. - - -2004/05/22 17:41:41 phil -Released as v4.0rc4. - - -2004/05/15 22:33:35 phil -Operators will now recognise return values that have already been wrapped. - - -2004/05/14 06:26:35 phil -Fixed a bug where the wrong virtual handlers were being used from imported -modules. - - -2004/05/10 20:10:27 phil -Fixed bugs related to generating calls to sipBuildResult(). - - -2004/05/04 16:00:17 phil -Fixed the handling of .prl files. - - -2004/05/01 17:10:27 phil -Fixed a bug with virtual methods returning a class reference. -Fixed a bug with hasattr() of a sip.wrapper type. - - -2004/04/30 21:51:10 phil -Fixed missing const_cast in variable handlers. -Fixed missing #includes for classes used in global functions but defined in -other modules. - - -2004/04/24 22:46:22 phil -Suppress the const and & when on the error return path for abstract functions. - - -2004/04/24 09:07:33 phil -Sync (again) to SIP v3 build system. - - -2004/04/24 08:42:38 phil -Sync the build system with SIP v3. - - -2004/04/21 19:06:09 phil -SIP now builds using MinGW. - - -2004/04/19 21:57:51 phil -Changes to the build system to support MinGW - not yet complete. - - -2004/04/18 15:45:41 phil -Added support for the evaluation version of Qt. - - -2004/04/11 11:41:09 phil -Reverted the recent change to sub-class convertors - the original code was -correct. - - -2004/04/10 18:17:30 phil -Fixed a bug with legacy GIL management when the -g and -e flags were given. - - -2004/03/30 22:48:17 phil -Fixed a bad bug that meant that sub-class converters weren't working properly. - - -2004/03/29 17:47:56 phil -Fixed crash when an argument was a non-const mapped type with a non-zero -default value. - - -2004/03/17 23:56:40 phil -Fixed a bug where /ArraySize/ was broken for long (or short) types. - - -2004/03/16 18:14:48 phil -Released as v4.0rc3. - - -2004/03/15 23:53:21 phil -Added some more documentation. - - -2004/03/13 10:20:34 phil -Fixed a problem with const struct pointers and MSVC .NET. - - -2004/03/12 23:15:25 phil -Fixed bugs where opaque classes were assumed to have a default ctor. - - -2004/03/10 18:30:17 phil -Fixed incompatibility with non-standard MSVC. -#defines are now generated for enabled features. - - -2004/03/06 15:39:24 phil -Fixed problem with slot arguments being ignored for anything other than complex classes. - - -2004/03/06 01:07:38 phil -Fixed problem with static methods with a SLOT argument. - - -2004/03/05 18:25:13 phil -Improved the support for resolving multiple non-virtual base classes by -removing the need for the hack for PyKDE. - - -2004/03/04 23:02:57 phil -Added support for resolving multiple non-virtual base classes. - - -2004/03/03 21:35:54 phil -Fixed a build system problem when DEFINES had more than one value. - - -2004/03/02 21:02:53 phil -Fixed a bug where private copy ctors in super-classes might not be detected -properly. -Fixed __str__() after breaking it when trying to fix inherited operators. - - -2004/03/01 23:50:14 phil -Fixed problems with classes containing private dtors. - - -2004/02/29 19:57:04 phil -Fixed a build system problem caused by copying a file from SIP v3 to the wrong -place. - - -2004/02/29 19:51:52 phil -Updated build spec files from Qt v3.3.1. -Updated the internal build system to exploit distcc. -Fixed small bug in configure.py. -Fixed a bug where operators were not inherited by wrapped C++ sub-classes. - - -2004/02/16 23:36:08 phil -Fixed problems in the new build system with spaces in directory names. -Updated the documentation to reflect the (small) change in the build system -API. - - -2004/02/15 22:33:16 phil -Added some more documentation. -Updated the build system from SIP v3. - - -2004/02/11 19:25:24 phil -Added some more documentation. -The new build system now supplies a sensible context specific default if -install_dir is None. -Fixed a bug when sipSelf was used in handwritten code. - - -2004/02/08 12:17:13 phil -Backed out the last change relating to ctor argument types - it was a feature, -not a bug. - - -2004/02/07 23:58:51 phil -Fixed bug in validating ctor argument types. - - -2004/02/07 17:37:36 phil -Added Ulli Berning's patch to the build system to read Qt's .prl files. This -should mean that PyQt should build against a static Qt library. - - -2004/02/05 23:41:04 phil -Change to the internal build system so that sip compiles under Windows without -a hacked version of flex. -Static C++ class instances are now wrapped with inline code rather that through -a table. Hopefully this works round a problem reported by Ulli Berning with -static linking under Windows due to C++ not defining the order in which static -instances are instantiated. - - -2004/01/31 23:08:41 phil -Virtual handlers now respect the /Factory/ and /TransferBack/ flags. -Updated the spec files from Qt v3.3.0. - - -2004/01/29 19:20:49 phil -Windows build system changes from Ulli Berning. - - -2004/01/27 23:50:29 phil -Fixed bugs with handling class references as /Out/ arguments. - - -2004/01/18 15:14:49 phil -The build system configuration files are now part of the CVS tree rather than -being copied in from the local machine when building. - - -2004/01/18 14:24:44 phil -Fixed a compiler warning message in the SIP module. -Fixed a bug where #includes weren't being generated when only needed by -operators. - - -2004/01/12 22:13:14 phil -Fixed the corrupt #line directives when joining files. -Released as v4.0rc2. - - -2004/01/11 11:58:50 phil -Fixed bug where the header files needed by static namespace methods weren't -being #included. - - -2004/01/10 17:41:34 phil -Fixed a bug with static methods that connect to slots. - - -2004/01/05 23:19:33 phil -Fixed a bug handling some /In/ argument types. -Fixed a bug that prevented a namespace's methods from being generated. - - -2004/01/04 18:53:08 phil -Minor updates to the build system. -Completed the build system documentation. - - -2004/01/02 18:41:28 phil -Minor changes to the build system. -Added some more documentation. - - -2003/12/31 16:42:50 phil -Fixed problem with virtual methods that return references. - - -2003/12/29 10:26:38 phil -Fixed namespace related bug when typing sipCpp in ctors. - - -2003/12/28 19:30:55 phil -Change to the build system to only use -soname for SIP v3.x (so MacOS/X should -work again). - - -2003/12/28 13:30:36 phil -Fixed problems with thread handling. The semaphore.py example now works -properly again. - - -2003/12/27 15:42:05 phil -Build system changes based on patches from Ulrich Berning. - - -2003/12/26 19:30:25 phil -Fixed bug where the not all .h files were being #included for signal -signatures. - - -2003/12/23 08:14:37 phil -Added support for LITERAL_WHITESPACE in build system spec files. -Added support for macros in braces in build system spec files. -Made sure that trailing spaces in macros don't get lost. - - -2003/12/21 17:29:10 phil -Implemented sip.voidptr.asstring(). - - -2003/12/21 12:57:43 phil -We now distinguish (automatically) between add and mul when applied to numbers -and sequences because they have slightly different APIs. -The sequence repeat and in-place repeat slots now don't convert their integer -argument to a Python object. -Number slots now support new-style numbers. - - -2003/12/16 20:00:33 phil -Changed the documentation so as not to suggest using -fno-rtti as it's bad -advice if you are using KDE. - - -2003/12/14 20:53:23 phil -Make sure we don't lie to Python by saying we support new-style numbers when we -don't (yet). -Number methods return Py_NotImplemented rather than raise an exception. -Fixed a reference count bug in sipParseArgs(). - - -2003/12/11 22:29:33 phil -configure.py now doesn't complain if environment variables in the spec. files -aren't defined (ie. $QTDIR). -Properly defined setSetBool(). -Added the help about the -e flag to configure.py. - - -2003/12/11 20:03:32 phil -Changed the new build system to use LFLAGS_SONAME instead of RPATH for modules. - - -2003/12/10 18:21:10 phil -Fixed bug in configure.py that prevented empty build macros from being -overridden on the command line. - - -2003/12/09 23:02:51 phil -Fixed bug with operators in classes in namespaces. -Fixed bug with sub-class convertors and namespaces. -Fixed problems with multi-dimensional __getitem__, __setitem__ and __delitem__. - - -2003/12/06 21:04:17 phil -Released as v4.0rc1. - - -2003/12/06 21:00:25 phil -Fixed problem with new build system when Qt support is disabled. - - -2003/12/06 20:21:02 phil -Fixed a bug in building a static module with the new build system. - - -2003/12/05 19:42:58 phil -Fixed a problem with methods that had an abstract version in the super-class -hierarchy. - - -2003/12/04 19:36:13 phil -Changed the new build system to handle Borland a bit better. - - -2003/12/04 00:16:19 phil -Fixed a bug when connecting to a Python callable that is actually a wrapped C++ -method. - - -2003/12/03 19:00:41 phil -Make sure that the instance dictionary of a type exists. - - -2003/12/02 21:28:11 phil -Fixed a bug in the modified object map code. This fixes the last outstanding -problem with user's test cases. - - -2003/12/02 18:56:03 phil -Fixed build problem on MacOS/X where it thought multiple -framework flags were -unnecessary duplicates. - - -2003/12/02 00:02:17 phil -Changed the naming of names so they don't change when other names are added or -removed. -Added the start of the documentation. -Several tidy ups to the object map code of the sip module. -Changed the implementation of virtual handlers as it was keeping results alive. -sipParseArgs() no longer garbage collects the result object being parsed. -Add $(DESTDIR) to generated Makefiles. - - -2003/11/25 23:09:12 phil -Fixed silly typo in configure.py. - - -2003/11/25 18:45:30 phil -Fixed build system bug in handling line continuations in spec files. - - -2003/11/24 23:21:19 phil -Minor code tidy up in the sip module. - - -2003/11/24 21:55:20 phil -Cleared any exception before returning Py_NotImplemented. - - -2003/11/23 17:02:53 phil -More build system changes. PyQt now builds under the commercial and educational -versions on Windows. -Released as v4.0pre4. - - -2003/11/22 20:54:44 phil -Windows related changes to the new build system. -Removed some of the old licensing stuff. - - -2003/11/22 10:18:02 phil -Fixed bug with the build file when not concatenating sources. -Make sure the proxy header file #includes qobject.h. -Successfully builds PyQt for the Zaurus. - - -2003/11/22 00:52:15 phil -Fix code that generates warning message when building PyQt for Qt v2. - - -2003/11/22 00:06:43 phil -More changes to the new build system related to building Qt v2. - - -2003/11/21 23:06:56 phil -More changes to the new build system. Tested with Qt Professional on Linux. - - -2003/11/21 07:34:16 phil -Renamed %Build back to %Makefile and deprecated it for SIP v4. -Added the -b flag and removed the -m flag. -Fixed the new build system so that it will build PyQt under Linux. - - -2003/11/16 21:03:12 phil -Changed the build system to generate Makefiles (and dumped SCons). DO NOT USE -TO TRY AND BUILD PyQt UNTIL FURTHER NOTICE. - - -2003/11/15 11:20:50 phil -More changes to the new build system. - - -2003/11/13 19:42:15 phil -More changes to the new build system. - - -2003/11/13 13:12:10 phil -New build system changes. PyQt now builds correctly on Linux. - - -2003/11/12 22:24:23 phil -Updated the new build system. -Filenames given to %Build no longer need to have an extension. -Added the -j flag to generate concatanated source files. -Changed the name of the header file containing the proxy class to conform to -SCons way of doing things. -Fixed the handling of __call__, __cmp__, __neg__ and __invert__. - - -2003/11/05 20:31:25 phil -Changes to the new build system for PyQt. - - -2003/11/04 17:50:20 phil -Tidying up of the new build system. The sipconfig.py module has better support -for non-SCons build scripts. - - -2003/11/03 22:56:38 phil -Removed the old build system. -Added the $L macro to generate the list of source files as a Python list. - - -2003/11/03 19:44:27 phil -More changes to the new build system. It now seems to work Ok for SIP, but not -yet tested under Windows. - - -2003/10/30 19:18:02 phil -Added the start of the new SCons based build system. - - -2003/10/29 13:50:47 phil -Added "x11" to the default configuration for non-Windows, non-Mac. -Make sure active virtual handlers don't look for Python methods after the -interpreter has gone. -Don't create a overwrite an instance dictionary when a wrapped object's -__init__ method is called. - - -2003/10/28 11:08:25 phil -Released as v4.0pre3. - - -2003/10/27 23:24:07 phil -Completed the support for pointers and references to base types. - - -2003/10/26 22:52:29 phil -Added support for handling functions that return values via pointers and -references. (Virtual functions not yet handled.) - - -2003/10/24 08:35:18 phil -Added the -g flag and the /ReleaseGIL/ option to allow fine control over the -release of the GIL. - - -2003/10/23 18:28:27 phil -Removed deprecated macros from handwritten code. -Renamed %Makefile to %Build. -Renamed %PostInitialisationC++Code to %PostInitialisationCode. -Renamed %HeaderCode to %TypeHeaderCode or %ModuleHeaderCode depending on the -context. -Renamed %C++Code to %TypeCode or %ModuleCode depending on the context. -Allow structs within classes. -Added %CModule - SIP can now wrap C libraries as well as C++ libraries. - - -2003/10/22 18:42:08 phil -The object mapper now checks for super-classes and sub-classes when determining -if an C++ pointer has already been wrapped. -%Import, %Include and %OptionalInclude can now take a relative (UNIX style) -pathname. The directory containing the file will also be searched for files -that it itself includes or imports. - - -2003/10/21 16:41:32 phil -Fixed a bug in the mapping of C++ addresses to Python objects that was probably -causing the occaisional "random" "underlying C++ object has been deleted" -exception to be raised. -Fixed a bug in sipconfig.py which meant that PyQt modules for MacOS were -misnamed. - - -2003/10/21 13:38:47 phil -Added support for namespaces - SIP v4 should now be as functional as SIP v3. - - -2003/10/20 18:51:21 phil -More MacOS/X related changes. -More Windows porting changes. -Revert to SIP v3 behaviour that allows wrapped methods and enums to be -overwritten in an instance. -Removed many warning messages when compiling the sip module with -Wall. -Generated code now compiles without warning messages. - - -2003/10/19 19:46:35 phil -Initial changes the build system to handle the Mac. -Portability fixes for Windows. - - -2003/10/19 10:21:37 phil -Now uses the new GIL functions (see PEP 311). This means it is no longer -necessary to manage the GIL exactly right in handwritten code and makes it more -likely that code will work with non-SIP generated extension modules that don't -handle the GIL properly (ie. Boost). - - -2003/10/18 16:42:40 phil -Completed support for class variables. - - -2003/10/17 16:45:47 phil -Fixed a bug with ctors that had a Qt slot in their argument list (QToolButton -is the only example in Qt). -Tidied up the public sip.h file a little bit. -Fixed the handling of common strings so that there are no name clashes between -modules. This means that modules can be builtins of the interpreter. -Renamed %VariableCode to %AccessCode. -Started on support for variables. - - -2003/10/16 15:52:11 phil -Added support for dir() of a wrapped type. -Changed the API to sipEmitToSlot() so that it takes the arguments on the stack. -Virtual catchers now use sipCallMethod(). -Released as 4.0pre1. - - -2003/10/15 18:21:19 phil -Slot handlers are now only installed for slots that have actually been defined. -This fixes the problem with QPopupMenu. The problem with quickly moving the -cannon in the tutorials also seems to have gone away. -All examples now appear to work. -All unit tests work except for QString and QStringList. - - -2003/10/14 22:37:30 phil -Added sipTrace() to the module API. -More debugging - all tutorials mostly work (except for an odd problem when -dragging the cannon) and some of the examples (except for a problem with -QPopupMenu). - - -2003/10/11 21:58:49 phil -More debugging - tut7.py now works. - - -2003/10/09 19:12:47 phil -Various changes so that PyQt now compiles. - - -2003/10/07 18:55:10 phil -Fix for protected enums as arguments to protected methods. -Removed the 'O' and 't' format characters from sipParseArgs(). -Removed sipBadVirtualResultType() from the module API. -Added sipBadCatcherResult(), sipCallMethod() and sipParseResult() to the module -API. -Added support for /TransferBack/ for function results. -Added support for %VirtualCatcherCode. -Removed support for %VirtualCode. - - -2003/10/04 14:54:16 phil -Added SIP_VERSION and SIP_BUILD to sip.h. -Removed the 'K' format character from sipParseArgs(). -Added the 'b' format character to sipParseArgs(). -Added support for the /GetWrapper/ option flag. -Added support for /GetWrapper/ to the 'J' format character to sipParseArgs(). -Added sipBuildResult() and sipClassName() to the module API. -Renamed sipTransferSelf() to sipTransfer(). -Added support for SIP_SLOT, SIP_PYCALLABLE and SIP_QOBJECT. - - -2003/10/01 14:01:21 phil -sipParseArgs() now handles a single argument as well as a tuple. -Removed the last vestiges of %MemberCode support. -Added support for explicit C++ signatures. - - -2003/09/28 12:06:00 phil -Fully implemented Python special methods in the sip module. -Added the SIP_PYTUPLE type. - - -2003/09/26 23:38:35 phil -Added support for the SIP v3 slots. -Added /AllowNone/ to arguments. -These changes were in the previous commit but I forgot to add them to the log. - - -2003/09/26 23:36:18 phil -Added support for %MethodCode. -Added -w flag to enable warnings. -Added the SIP_PYLIST and SIP_PYDICT types. -Added PreHook and PostHook support to ctors. - - -2003/09/21 12:08:00 phil -Ported all outstanding fixes from SIP v3. - - -2003/09/20 21:32:08 phil -Ported the exception support from SIP v3. - - -2003/09/19 15:31:16 phil -The build system is now a copy of the one from SIP v3. -Fixed bugs related to sub-classing wrapped types. -Implemented the __str__slot. -Added the SIP_PYSLICE pseudo-type. -Added support for empty enum definitions. -Added SIP_VERSION_STR to sip.h -Added support for the 'L' format character. -Added support for virtual dtors. -Added dupport for %VirtualCode in dtors. -Added operator support in the parser only. - - -2003/04/15 17:56:27 phil -Name strings are no longer shared between modules. -PyQt now imports - non-lazy methods and handwritten code still to do. -Python v2.3 is now required. - - -2003/04/14 23:39:00 phil -All of PyQt should now compile. -Attribute handling is working (except for variables and non-lazy methods). -Adding static class instances fails because we are currently relying on static -ctors. - - -2003/04/13 12:37:49 phil -PyQt now compiles (except for the qtnetwork module because it includes nested -classes.) - - -2003/04/10 18:49:45 phil -Lots of changes moving towards implementing new-style classes. sip compiles -but, other than that, everything is broken. - - -2003/04/05 17:32:11 phil -Fixed a bug where templates weren't being parsed properly. -Make sure classes only appear once in a hierarchy. - - -2003/04/04 10:36:49 phil -Added the %e format charcter to sipParseArgs() to handle enums. -Removed all remaining inter-module dependencies. PyQt now builds and loads. - - -2003/04/01 20:44:04 phil -Added support for the educational version. -Added the -r and -t flags to build.py based on patches from Hans-Peter Jansen. -Changed the format of symbolic names from sipName_module_name to sipName_name. - - -2003/03/31 22:29:31 phil -Many more changes to eliminate inter-module dependencies. - - -2003/03/26 22:23:43 phil -Fixed all the remaining dependencies on the old-style SIP API. -Many other bug fixes. -sipQt.h is no longer needed. - - -2003/03/25 17:51:28 phil -Fixes so that PyQt now compiles - but modules do not yet load because of -remaining symbol dependencies. - - -2003/03/25 12:33:33 phil -Converted the remaining old-style API calls to the new style. - - -2003/03/24 19:49:01 phil -Moved another load of functions from the old-style API to the new-style API. - - -2003/03/23 13:34:27 phil -Forward ported the fixes for private and protected dtors. -Forward ported the -a flag for generating Scintilla API files. - - -2003/03/16 16:21:01 phil -Forward port the latest handling of the Python version number in build.py. -Forward port the cast fixes for PyString_FromString(). - - -2003/03/01 14:42:24 phil -Forward ported all the recent changes to SIP v3. - - -2003/01/25 11:09:39 phil -The names and sub-class convertors are now part of the new API. -The sub-class convertors are now generated in the main module code instead of -in the class file. - - -2003/01/20 08:10:53 phil -Added SIP_MAJOR_NR. -The values of sipClass_* are no generated for the new API. - - -2003/01/17 19:40:52 phil -Removed the external API header file. -The Python stub file is no longer generated. -The instance variable hierachy tables are no longer needed. - - -2003/01/14 09:41:59 phil -The module APIs now have an optional version number so that imports of -incompatible modules can be detected. - - -2003/01/12 22:17:40 phil -Added the table of modules to import to the main module definition. -The list of classes is now ordered so that no class appears before any of its -super classes. - - -2003/01/05 15:54:32 phil -Make sure that sipPyThis is always initialised in case a C++ ctor calls one of -its own methods that has been re-implemented in Python. - - -2003/01/04 17:16:41 phil -Removed %ExposedFunction and %PythonCode. -%PrePythonCode is now a no-op. -Removed the -p command line flag. -SLOT(), SIGNAL() and PYSIGNAL() are no longer generated by SIP. -Removed the SIP_EXTERN/EXPORT/IMPORT nonsense in the module. -Added the generation of the .h file that defines a module's external API. - - -2002/12/28 17:37:00 phil -The start of development of SIP v4. -Dropped support for Python earlier than v2.2 and Qt earlier than v3.0. -Start of the changes needed to make the SIP module a pure Python module rather -than a hybrid module and shared library. - - -2002/12/11 13:51:00 phil -Ensure that generated Makefiles have a later timestamp than the project file. -Released as v3.5. - - -2002/12/10 23:12:03 phil -Build change where FORCE wasn't being handled properly now that it is version -dependent. - - -2002/12/05 18:26:47 phil -Finalisation fixes (thanks to Kristine Sato). - - -2002/12/05 17:27:33 phil -Build system change for Qt v3.0.x and FORCE in Makefiles. - - -2002/11/28 09:03:40 phil -Fixed bug in handling of char * class variables introduced in the previous fix. - - -2002/11/26 12:46:01 phil -Make sure that flex and bison generated files have later timestamps than their -sources. -Removed the automatic test for -fno-exceptions and added the -f flag to the -build system so that it can be explicitly set. - - -2002/11/25 16:51:50 phil -Fixed generated code for char and unsigned char class variables - thanks to -Toby Sargeant. - - -2002/11/14 22:31:28 phil -Minor build changes for Windows. - - -2002/11/06 23:56:10 phil -The weak reference protection now works if the slot is a wrapped method as well -as a user written Python method. -The type name of the sipThis object is now "sip.wrapper" rather than being the -name of the wrapped class. -Deprecated the 'C' format character for sipParseArgs(). -Added the 'X' format character for sipParseArgs(). -Added /Constrained/ support for float and double types. - - -2002/11/05 15:08:18 phil -Addition of new licenses to the internal build system. -The TODO files is now added to the distribution. - - -2002/10/18 17:29:36 phil -More build system changes to fix directory names containing spaces. - - -2002/10/12 23:47:08 phil -Added the 'x' format character to sipParseArgs() to convert sequence indices. -Added sipConvertFromSequenceIndex(). - - -2002/10/11 14:12:52 phil -Fixed the build system where the Python directory path contained spaces. - - -2002/10/05 13:35:06 phil -Changed the internal build system so that internal development versions are -marked as such. -The user build system now handles conflicting licenses. - - -2002/09/21 17:58:53 phil -Added the NC version to allow others to build modules that conform to the Qt -non-commercial license. - - -2002/09/18 18:48:17 phil -Fixed a phantom exception raised when connecting a signal to a wrapped method -(rather than using SLOT() on the method). - - -2002/09/18 00:30:09 phil -"unsigned int" is now supported. - - -2002/09/10 12:38:35 phil -Minor documentation changes. -Released as v3.4. - - -2002/09/08 21:36:16 phil -Fixed a couple of code generation bugs related to structs. - - -2002/09/08 12:20:14 phil -The user now has to explicitly accept any non-GPL license. - - -2002/09/07 20:49:31 phil -Added support for defining structs. - - -2002/09/06 17:48:08 phil -Added the new licenses and changed the internal build process to support them. -Changed %License so that the timestamp is now a string. -Updated the NEWS file. - - -2002/09/02 12:03:37 phil -Added sipAddLicense() to the SIP module. -Added the %License keyword. - - -2002/08/27 19:06:05 phil -Added the %OptionalInclude directive that does the same as %Include but doesn't -complain if the file doesn't exist. -Added a delay to the build system before running make to avoid potential -timestamp problems. - - -2002/08/17 00:44:57 phil -Brought the NEWS file up to date. -Added Fredrik Juhlin's patch to the build system to support debug builds. - - -2002/08/06 18:35:53 phil -Fixes to the build system for Python 1.5. - - -2002/08/06 17:49:12 phil -Fixed a bug where const wasn't being taken into account when comparing argument -types. - - -2002/07/14 16:09:40 phil -Added the -e flag to the build system to allow the destination directory of the -SIP header files to be explicitly specified. - - -2002/07/12 13:03:59 phil -Fixed a problem with detecting the Qt version in the build system. -Released as 3.3.2. - - -2002/07/11 22:53:30 phil -More minor changes to the internal build system. - - -2002/07/11 20:57:32 phil -Internal build system changes. - - -2002/07/09 22:06:42 phil -Added support for Qt 3.0.5. -Released as 3.3.1. - - -2002/07/07 19:20:11 phil -Windows fixes for the build system. -Released as 3.3. - - -2002/07/05 08:55:37 phil -The build system now ignores qmake if present when building for Qt 1.x and 2.x. - - -2002/07/03 17:41:37 phil -Build system changes for Windows. -Fixed a thread problem for Python 2.0.x and earlier. (Untested.) -Released as 3.3rc3. - - -2002/07/02 18:33:59 phil -Fixed a probably false exception in sipTransferSelf(). -Fixed a bug in the -z flag handling. - - -2002/07/02 15:00:16 phil -Added the -x flag to specify a disabled feature. -Removed all of the version handling as it is now all dealt with in the parser. -Removed the -f flag and all support for the helper program as it is no longer -needed. -Removed %FeatureCode and %ExportedFeaturesCode. -Added the -z flag to specify a file from which subsequent arguments are read -from. - - -2002/06/30 16:20:48 phil -Minor changes to the build system messages. -Removed support for the -r flag in the build system as tmake handles -fno-rtti. - - -2002/06/29 18:53:49 phil -The build system now determines the Qt version by parsing qglobal.h rather than -compiling and running a program (which is no good when cross compiling). -Added the 'K' format character to sipParseArgs(). - - -2002/06/28 22:46:20 phil -More build.py fixes. -Changed the build system so that project files are restored to their original -contents. - - -2002/06/28 12:41:10 phil -Fixed a bug in the build system where the path to tmake was explicitly -specified. -Added the -r flag to the build system to explicitly enable -rno-rtti. -Released as 3.3rc2. - - -2002/06/23 19:45:33 phil -Added support for the evaluation version of Qt to the build system. - - -2002/06/22 14:25:14 phil -Reverted the change that stopped abstract classes from being created (because -it also stopped them from being sub-classed). -Released as 3.3rc1. - - -2002/06/22 00:56:29 phil -Fixed typo in build.py. - - -2002/06/22 00:49:59 phil -Updated the TODO list. -Fixed a bug where abstract classes weren't being detected properly. -An exception is now raised when attempting to explicitly instanciate an -abstract class. -Methods are now generated for pure virtual methods. -The default installation directory for sip under UNIX/Linux is now -/usr/local/bin rather than where the Python executable is installed. -Added the -i flag to build.py to allow the directory containing the Qt header -files to be explicitly specified. - - -2002/06/20 18:50:49 phil -Changes to the build system to support Qt/Embedded. -Changes to the build system to handle the lack of site-packages under Windows -before Python v2.2. - - -2002/06/19 07:51:59 phil -Fixed a bug that prevented SIP being built with support for Qt v2.x. - - -2002/06/17 08:35:34 phil -Fix for the build process for when Qt support is disabled. - - -2002/06/16 23:14:29 phil -Implemented the new build system based on tmake/qmake. -Removed all vestiges of the old build system. - - -2002/06/16 15:18:37 phil -Changed the build-common target to dist. -Fixed the build script to cope with an apparent feature of tmake v1.8. - - -2002/06/14 16:34:53 phil -The SIP module now works with Python versions earlier than 1.6 again. - - -2002/06/13 21:26:06 phil -Fixed a bug in the generation of the proxy header file. - - -2002/06/13 16:22:40 phil -Forgot to add the new versions.c source file. - - -2002/06/13 16:21:52 phil -Slightly changed the version number format in generated code so that it looks -better with snapshots. -The helper program now takes an optional argument which is the output file to -use instead of stdout. -Changed the internal implementation of versions so that it is more flexible. -The proxy header file is now moc-ed and linked separately. - - -2002/05/25 16:45:12 phil -Updated the (private) TODO list. - - -2002/05/25 16:23:27 phil -Further minor tweaks for the new build system. -Set the version number to v3.2.4 - but this is actually slightly later than -that version. - - -2002/05/25 11:02:57 phil -More work on the new build system. Untested on Windows. - - -2002/05/25 09:49:43 phil -Initial import of SIP into the Riverbank CVS repositiory. - - -2002/05/21 16:09:57 phil -Whoops - left a debug statement in. - - -2002/05/21 14:38:36 phil -Fixed a bug in sipParseArgs() using stdarg functions badly. It only seemed to -cause a problem on some platforms (eg. Linux PPC). - - -2002/05/17 19:02:28 phil -Minor documentation changes. -Released as v3.2.4. - - -2002/05/16 15:19:42 phil -Removed MacOS X support. - - -2002/05/15 17:17:36 phil -A final (I think) fix for the problem with maintaining the extra reference for -instances where C++ owns the wrapped object and also when objects are -re-wrapped while their dtor chain is being executed. -The .spec file now works out the Python directories rather than them being -hardcoded. - - -2002/05/13 08:48:56 phil -Fixed a bug where /TransferThis/ wasn't increasing the reference count of the -Python instance being transferred. -Released as v3.2.3. - - -2002/05/11 17:30:22 phil -Final documentation changes. -Released as v3.2.2. - - -2002/05/09 00:18:32 phil -Fixed a bug where threads weren't being handled properly when calling Qt -emitters. - - -2002/05/07 21:14:57 phil -Added information about "--without-x" to the MacOS installation notes. -Fixed a bug in the object map code that was trying to free non-malloc'ed -memory. -Keep a separate flag as to whether C++ has an extra reference to the Python -instance rather than assume is does if the C++ object is not owned by Python. -This should fix a very obscure memory leak that happends when C++ objects get -re-wrapped while they are being destroyed. - - -2002/05/05 13:45:13 phil -Fixed a bug where the sizes of attribute tables were wrong when optional -features were disabled. -Released as v3.2.1. - - -2002/05/04 14:17:39 phil -Minor tweak to fix a build problem with Windows. -Released as v3.2. - - -2002/05/03 22:34:37 phil -Added INSTALL.MacX. - - -2002/05/03 09:23:11 phil -Fixed NULL pointer bug in sub-class conversions. - - -2002/05/01 22:51:46 phil -Fixed sip.pro to revert to generating libsip.dll rather than sip.dll. -Replaced the use of PyCObject with the new sip.voidptr type. - - -2002/04/30 07:54:59 phil -configure will now search for Qt v3.0.4. - - -2002/04/29 18:09:16 phil -Fixed a bug where sub-class convertors were being generated for imported -classes. - - -2002/04/29 10:16:29 phil -configure doesn't search for X11 for Qt/E. -Fixed the bug where the class object for namespaces was being incorrectly -exported. - - -2002/04/27 14:16:25 phil -Fixed a bug in the SIP library Makefile.am. -Fixed the bug in the thread support that was causing the problem with the PyQt -semaphore.py example. -Changed the way %ConvertToSubClassCode worked so it is closer to the old -implementation and won't break if it comes across internal classes that it -doesn't recognise. - - -2002/04/23 09:09:07 phil -Fix to SIP_[UN]BLOCK_THREADS for when thread support is disabled. - - -2002/04/22 21:31:05 phil -Explicitly include pythread.h. -Changed the Windows installation instructions to put things in site-packages. -Added -module to the libtool flags. -Added sipMapStringToClass() and sipMapIntToClass() for %ConvertToSubClassCode. - - -2002/04/21 19:08:02 phil -Added support for the pseudo-type SIP_PYOBJECT. -Added the 'P' format character to sipParseArgs(). - - -2002/04/18 23:16:29 phil -Allow '!' to be applied to platforms. - - -2002/04/18 12:09:27 phil -configure no longer fails if X11 couldn't be found (for MacOS X). -Fixed a bug in the parsing of namespaces. - - -2002/04/16 18:56:33 phil -Fixed a problem building under Windows. - - -2002/04/16 18:16:55 phil -Minor build portability change for MacOS/X. - - -2002/04/16 14:23:21 phil -Replaced all the old thread support with explicit support for classes that can -create new threads. -Removed /ReleaseLock/ - the Python lock is released for any call to C++, not -just selected ones. -Added /CreatesThread/ and /NewThread/. -SIP_USE_DLL is no longer needed, but SIP_MAKE_MODULE_DLL is now needed when -compiling a SIP generated module under Windows. - - -2002/03/30 00:48:46 phil -Sub-class convertors are now called for any sub-class of the base class - even -if they don't provide their own convertor. - - -2002/03/24 22:19:28 phil -Added support for modules registering sub-class convertors. - - -2002/03/22 10:39:23 phil -Released as v3.1. -configure will now use qt-mt in preference to qt if it finds both. - - -2002/03/20 15:57:54 phil -configure now handles Qt v3.0.3. - - -2002/03/19 00:19:10 phil -Fixed typo in INSTALL.win32. -Documentation changes prior to the release of v3.1. - - -2002/03/17 17:36:30 phil -Fixed bug where functions defined in a namespace weren't being generated. - - -2002/03/12 19:29:19 phil -Upgraded to autoconf-2.53 and automake-1.6. - - -2002/03/09 18:17:55 phil -Various build changes for Windows. -The variables that hold the values parsed by sipParseArgs() are no longer -declared as const if there is no default value. -The %PrePythonCode is now generated before the import of a maodule's C++ code. - - -2002/03/04 21:06:37 phil -Made sure all the autoconf/automake/libtool generated files are updated. - - -2002/03/04 20:57:46 phil -SIP now compiles again. -Fixed the bug where exceptions sometimes appeared to be raised by Python -re-implementations of C++ virtual methods. - - -2002/03/04 17:17:12 phil -Using /TransferThis/ in a non-ctor is now detected as an error. - - -2002/02/25 16:24:35 phil -Method and enum tables are now sorted and searched with a binary search instead -of a linear search. -Individual values of enums are now under version control. - - -2002/02/24 14:59:04 phil -Ctors now support /ReleaseLock/. - - -2002/02/24 01:30:02 phil -configure now searches for Qt v3.0.2. -SIP now handles protected static methods. -Added the /NonLazy/ option. -Added the 'n' format character to sipParseArgs() to support non-lazy methods. -Removed the __sipDtor__ and __sipStr__ builtins. -The __del__ method is created by the SIP module at run-time when needed. -Removed all of the special method handling. - - -2002/02/08 15:52:55 phil -The AutoGen option now takes an optional feature name (needed for PyKDE2). - - -2002/01/28 11:07:47 phil -The sip library is now a Python module. - - -2002/01/09 00:37:16 phil -Class enums are now lazy. - - -2002/01/08 20:15:47 phil -The SIP library now uses PyObject_Del() rather than PyMem_DEL() for Python v1.6 -and later. -Fixed a code generator bug related to nested features. - - -2002/01/03 01:02:02 phil -Fixed a bug where feature tests were being generated when thay should have been -unconditional. -Added the -f flag to specifically generate the helper program. -Added %ExportedFeaturesCode. -Added the $B and $H macros. -The %Makefile object file extension is now optional and defaults to ".o". - - -2001/12/27 12:15:44 phil -Replaced %SecondaryVersion with %Platforms and %Feature. -Removed %ImportWithTimeline. -Added support for Qt/Embedded. -Replaced %VersionCode with %FeatureCode. -%If now supports logical ors or platforms and/or features. - - -2001/12/09 11:39:57 phil -configure now looks for Qt v3.0.1. - - -2001/12/01 18:35:59 phil -Used AC_HELP_STRING throughout configure.ac. - - -2001/11/25 18:24:55 phil -Upgraded libtool to v1.4.2. -Fix for attribute lookup for classes with no attributes (eg. namespaces). - - -2001/11/17 17:11:37 phil -Fixed bugs in operators for "setitem" and "getslice" for sequence methods. - - -2001/11/17 14:41:38 phil -%ConvertToTypeCode must now handle None objects. -sipConvertToCpp() now handles None objects. -Fixes to configure.ac. -The module name is now passed in at runtime rather than being hardcoded (thanks -to Andreas Gerstlauer). -Ownership is only transferred if it really has changed. - - -2001/11/11 19:05:36 phil -configure will search for Qt v2.3.2. -Fixed the memory leak when calling Python slots (thanks to Andreas Gerstlauer). -Another attempt at fixing the problem with generating the right Python super -classes for PyKDE2. -Generate an error message if handwritten code is provided for signals. - - -2001/10/28 10:32:47 phil -Backed out the change to use __sipThis rather than sipThis. - - -2001/10/26 23:37:26 phil -ALtered the lexer/parser so that C++ methods can have names starting with "__", -which means that .sip files that define special methods must also be changed. -The library now uses the C API for weak references for Python v2.2 and later. -Added the %PostInitialisationC++Code directive. -Replaced "sipThis" with "__sipThis". -Added __sipStr__ to replace str() in __str__() methods so that unicode() on a -QString works properly. - - -2001/10/21 13:54:14 phil -Fixed bug where all the fields of a mapped argument type weren't being -initialised. -Fixed bug where the sipCpp pointer has the wrong type for a protected method of -a class in a namespace. - - -2001/10/19 23:29:46 phil -Added the 'N' format character to sipParseArgs(). - - -2001/10/12 22:49:23 phil -Literal strings are no longer cached because their contents are used in the -cache name but they might not be valid characters for an identifier. -Fixed a bug where %ImportWithTimeLine on a module that has already been -imported didn't inherit the time line. -Fixed a bad bug where the "object is on the heap" flag wasn't being -initialised. - - -2001/10/07 18:48:39 phil -Fixed generation of proxy object for modules without signals. -Fix possible bug with handling protected enums (my version of gcc doesn't -complain). - - -2001/10/06 18:17:23 phil -configure now handles multi-threaded Qt. -Correct header files now generated for mapped types based on the same template -being defined in different modules. - - -2001/10/04 21:30:10 phil -By default, a class inherits its header code from the enclosing scope. -Mapped types based on templates now automatically include the header files for -the types of the template parameters. - - -2001/09/30 10:44:26 phil -Bug fixing of the new sipParseArgs() code. - - -2001/09/28 23:11:43 phil -Many changes to sipParseArgs(): it now returns the number of successfully -parsed arguments; the '-' and 'I' formatting characters are no longer -supported; the 'm', 'p', 't', 'q', 'Q', 'y', 'Y', 'J' and 'M' formtting -characters have been added; it now does all argument conversions. -Static and non-static methods can now be mixed. -Removed the %CanConvertToType directive. - - -2001/09/23 19:55:51 phil -Fixed bug in adding a scope to enum values. - - -2001/09/23 14:21:53 phil -Fixed code generation bug with const signal arguments. -Fixed generation of calls to sipForceConvertTo_*() functions. -Header code is now generated before used includes in interface files. -Protected enums are now handled properly again. - - -2001/09/16 18:08:19 phil -Changed the method of preventing moc generated files being included with the -distribution - needed by the latest automake. - - -2001/09/14 15:18:05 phil -Added the /AutoGen/ options and removed the hardcoded handling of moc generated -methods. -Fixed the #include of a non-existent interface file in the main module. -Fixed a bug where a cached name was being associated with the wrong module. -Fixed an indentation bug when generating Python code for namespaces. -Fixed a bug where global enums after a class definition were incorrectly -generating errors. - - -2001/09/07 16:04:49 phil -Fixed a bug where a bad number methods table was being generated. -Upgraded to libtool-1.4.1. - - -2001/09/02 16:39:48 phil -Fixed bug where the header file for a class's super classes wheren't being -included if the class was in an imported module. - - -2001/09/01 02:37:46 phil -The first parameter of sipConvertFrom_*() for mapped types is no longer const. -Upgraded to autoconf-2.52 and automake-1.5. - - -2001/08/10 17:52:30 phil -Fixed missing popVersion() in gencode.c. - - -2001/08/10 14:59:17 phil -Python classes that have to be imported are done so at the start of the module, -not immediately before they are first needed. - - -2001/08/06 20:08:19 phil -Fixed a problem registering a class that doesn't exist in a particular -secondary version. - - -2001/08/01 22:17:47 phil -More build changes for Qt-NC. -tr() is now properly handled for Qt v2.3.0 and earlier. - - -2001/07/30 22:48:21 phil -The contents of namespaces are now effectively public. -Changed AMTAR to TAR. -Generated Windows Makefiles that support Qt-NC (untested). - - -2001/07/28 22:40:44 phil -Fixed bug in sipRegisterClass()'s handling of nested scopes. - - -2001/07/28 06:45:41 phil -Changed sipRegisterClasses() to handle nested classes and namespaces. -The sipClassDef structure now has an extra field to identify the enclosing -scope. - - -2001/07/27 22:28:19 phil -sipConvertFrom_*() for mapped types now leaves the handling of a NULL pointer -to the handwritten code rather than converting it to None. -The same namespace can be defined many times, so long as they are in the same -module. -Fixed a problem testing for -fno-exceptions. -Fixed problem building with Qt support disabled. -Fixed small code generation bug for virtual handlers and nested classes. -Fixed an extraneous const that Windows MSVC doesn't like. - - -2001/07/21 15:57:20 phil -Replaced %PrimaryVersion and %PrimaryOrder with %Timeline. -Added %ImportWithTimeline. -The -t switch can now be given any number of times. -These changes now means that version control works properly across modules so -that (for example) SIP doesn't try to generate bindings that support invalid -combinations like Qt v1.x and KDE v2.x. - - -2001/07/20 23:35:04 phil -Completed the support for namespaces and nested classes. -sipCallCtor() now handles namespaces. -Added the SIP_SIGNAL pseudo-type. -Replaced %Version and %PrimaryVersions with %PrimaryVersion, %SecondaryVersion -and %PrimaryOrder. - - -2001/07/17 07:39:58 phil -Added the %MappedType directive - particularly for templates. -Added support for namespaces and nested classes - not yet finished. -Removed the Version keyword so that it can be used for class names. - - -2001/07/01 14:31:35 phil -configure now looks for Qt v2.3.1. - - -2001/06/05 21:41:39 phil -Added the relevant files to build sip.exe under Windows (not tested yet). -The Windows Makefiles (now Borland as well as MSVC) are created automatically -as part of the "make dist" process. - - -2001/06/04 21:38:18 phil -Some Windows portability changes. - - -2001/06/02 17:00:21 phil -C-style comments can now be used in .sip files. -Methods automatically generated by moc (particularly tr()) are now handled -properly. - - -2001/05/30 21:20:07 phil -Added the /Constraint/ option and support for it to sipParseArgs(). - - -2001/05/23 22:25:54 phil -QObject.blockSignals() now blocks Python signals as well as Qt signals. - - -2001/05/23 21:13:18 phil -Fixed problems when default arguments are function calls. -Added support for QObject.sender() to be able to be implemented properly. -Fixed the problem when a slot disconnects itself. - - -2001/04/29 16:23:09 phil -Minor configuration changes. - - -2001/04/22 15:22:52 phil -Upgraded to automake v1.4d. - - -2001/04/19 22:09:32 phil -Final changes for the release of v2.4. - - -2001/04/08 13:39:02 phil -Upgraded to libtool v1.3d. - - -2001/03/10 00:43:37 phil -Fixed compile problems with Python earlier then v2.1. - - -2001/03/07 20:17:47 phil -The library now tidies itself up when Py_Finalize() is called. - - -2001/03/06 09:29:05 phil -Fixed minor code generation bugs with Python special methods. - - -2001/03/05 23:16:12 phil -Added support for Python v2.1 rich comparison operators. - - -2001/03/05 16:42:18 phil -Added support for the in-place operators introduced in Python v2.0. -Python slots are now wrapped in weak references which means that when the -programmer forgets to keep a slot alive it won't core dump. - - -2001/03/01 19:21:58 phil -configure now uses the Python executable to determine where Python is -installed. - - -2001/02/10 12:09:11 phil -Fixed bug in sipCommonDtor() so that it acquires the Python lock before calling -Python library functions. - - -2001/02/04 14:37:10 phil -Configure now checks for Qt v2.2.4 and Python v2.1. -Released as v2.3. - - -2001/01/23 23:36:51 phil -Added the -p switch and the $m macro. - - -2001/01/09 16:07:55 phil -The library will raise an exception if a program tries to inherit from more -than one wrapped class. - - -2000/12/24 18:30:09 phil -Fixed a bug that meant some signal proxies were not being generated properly -(only affected QMovie). -When a C++ instance takes ownership, it also takes a reference to the Python -object as well. -Updated the documentation for v2.3. - - -2000/12/19 14:48:31 phil -Added the ability to add pre- and post-call hooks. Added the sipCallHook() -function to implement them. - - -2000/12/15 11:18:00 phil -Added a couple of missing Python exceptions. - - -2000/12/13 10:41:12 phil -Updated the configuration to look for Qt v2.2.3. - - -2000/12/12 17:48:53 phil -Changed sipParseArgs() to take an extra parameter to enable better error -messages to be reported. -Changed the sipNo*() functions to report the better messages. -Changed the code generator to use the changed sipParseArgs(). - - -2000/11/05 20:56:28 phil -Added the $P macro. -Backed out the change making the wrapper class dtors virtual (causes problems -under Windows). -Released v2.2. - - -2000/11/04 11:06:11 phil -Made the wrapper class dtor virtual to avoid compiler warning messages. -Fixed proxy class generation for modules that don't define any new signals. - - -2000/11/02 15:03:13 phil -Minor compile fixes (why is it always RedHat?). -Added the %Copying directive. -Clarified the license regarding generated code. - - -2000/10/18 16:20:53 phil -Final tidying up for the release of v2.1. - - -2000/10/15 20:41:24 phil -Finally fixed the problem with signal signatures defined with SIP_CON_SLOT. -Updated the documentation for v2.1pre1. - - -2000/10/13 19:00:17 phil -Fixed really nasty segv with complex Python expressions where the wrapped -object was (legitimately) outliving the class instance. - - -2000/10/11 17:23:05 phil -Slot types that are only specified by SIP_CON_SLOT (and not as a signal) are -now handled properly. - - -2000/10/11 13:34:03 phil -Added the ability to provide handwritten code for dtors. -Added the sipGetThisWrapper() function to the SIP library. - - -2000/10/02 21:46:56 phil -Fixed the bad code generated for Python special methods (ie. operators). - - -2000/10/01 12:32:19 phil -Slots that take fewer arguments than the number supplied by a signal will not -cause an exception - just like Qt. - - -2000/10/01 00:44:57 phil -Fixed the signal handling bug introduced a couple of days ago while trying to -fix another signal handling bug. - - -2000/09/29 22:28:26 phil -When a wrapped class instance is deleted it is now guaranteed that the -underlying object will be deleted after all of the instances variables. This -avoids some potentially very subtle bugs. - - -2000/09/23 18:07:05 phil -Connecting Python signals to Qt slots (expressed using SLOT()) now works. -Increased the library version number to 3.0.1. - - -2000/09/20 10:57:10 phil -Tidy up after moving the CVS tree to theKompany.com CVS repository. diff --git a/python/sip/LICENSE b/python/sip/LICENSE deleted file mode 100644 index 70b9d04b..00000000 --- a/python/sip/LICENSE +++ /dev/null @@ -1,45 +0,0 @@ -RIVERBANK COMPUTING LIMITED LICENSE AGREEMENT FOR SIP 4.6 - -1. This LICENSE AGREEMENT is between Riverbank Computing Limited -("Riverbank"), and the Individual or Organization ("Licensee") accessing -and otherwise using SIP 4.6 software in source or binary form and its -associated documentation. - -2. Subject to the terms and conditions of this License Agreement, Riverbank -hereby grants Licensee a nonexclusive, royalty-free, world-wide license -to reproduce, analyze, test, perform and/or display publicly, prepare -derivative works, distribute, and otherwise use SIP 4.6 alone or in -any derivative version, provided, however, that Riverbank's License -Agreement and Riverbank's notice of copyright, i.e., "Copyright (c) 2004 -Riverbank Computing Limited; All Rights Reserved" are retained in -SIP 4.6 alone or in any derivative version prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates SIP 4.6 or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to SIP 4.6. - -4. Riverbank is making SIP 4.6 available to Licensee on an "AS IS" -basis. RIVERBANK MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, RIVERBANK MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF SIP 4.6 WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. RIVERBANK SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF -SIP 4.6 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS -AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING SIP 4.6, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between Riverbank -and Licensee. This License Agreement does not grant permission to use -Riverbank trademarks or trade name in a trademark sense to endorse or -promote products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using SIP 4.6, Licensee -agrees to be bound by the terms and conditions of this License Agreement. diff --git a/python/sip/NEWS b/python/sip/NEWS deleted file mode 100644 index 919527ad..00000000 --- a/python/sip/NEWS +++ /dev/null @@ -1,198 +0,0 @@ -v4.6 10th April 2007 - - Added support for wchar_t. - - The -g command line option releases the GIL whenever a call is made to the - wrapped library. - - Added the /HoldGIL/ annotation to explicitly retain the GIL when calling a - particular function in the wrapped library. - - Added sipFindClass() and sipFindNamedEnum() to the public API. - - /TransferThis/ may be specified more than once. - - Added support for __truediv__ and __itruediv__. - - The SIP code generator and module may be built as universal binaries under - MacOS/X using the -n command line option to configure.py. - -v4.5.2 9th December 2006 - - A bug fix release. - -v4.5.1 9th December 2006 - - Added the SIP_SSIZE_T type to help write PEP 353 compliant handwritten - code. - -v4.5 4th November 2006 - - Added support for Python v2.5. - - Added sip_config_args to sipconfig.py. - - sip.voidptr now implements __hex__(). - - Added sip.delete() to call a C++ instance's destructor, or return a C - structure to the heap. - - Added sip.isdeleted() to check if a C++ instance or C structure has been - destroyed or returned to the heap. - - Added sip.setdeleted() to mark that a C++ instance or C structure has been - destroyed or returned to the heap. - - Added support for pure virtual destructors. - - Added the __dtor__() method to allow Python code to be called from a C++ - destructor. - - Added the /NoDefaultCtors/ class annotation. - - The generated API files are now more complete and use Python types rather - than C/C++ types. - - Added support for embedding manifests for MSVC 2005. - -v4.4.5 10th June 2006 - - A bug fix release. - -v4.4.4 8th June 2006 - - Added %ExportedHeaderCode and %UnitCode. - - Added sipExportSymbol() and sipImportSymbol() to the public API. - -v4.4.3 27th April 2006 - - A bug fix release. - -v4.4.2 23rd April 2006 - - A bug fix release. - -v4.4.1 3rd April 2006 - - A bug fix release. - -v4.4 24th March 2006 - - The major number of the internal API has changed so it will be necessary - to regenerate all modules. - - This release introduces small incompatibilities that may affect handwritten - code. See the documentation for the details. - - Module names specified with %Module and %CModule can now include periods to - denote a Python package structure. - - Namespaces can be split across multiple Python modules. - - Class templates are now supported and instantiated using "typedef". - - Mapped type templates are now supported and instantiated automatically. - - Global operators are now supported. - - Operator casts in classes are now supported. - - C/C++ signed char type is now treated as a separate type to char. - - C/C++ long and unsigned long types are now wrapped as Python long objects - rather than Python integer objects. - - C/C++ long long and unsigned long long types are now supported. - - unsigned short and unsigned int are now implemented as long objects instead - of integer objects. - - Classes can now be declared using the /External/ annotation and be defined - in another, unspecified, module. - - /TransferThis/ can now be used in non-factory methods to change the - ownership to a different C++ instance or to change it to Python. - - /Constrained/ can now be used with booleans. - - Added support for Python's buffer interface, %BIGetCharBufferCode, - %BIGetReadBufferCode, %BIGetSegCountCode and %BIGetWriteBufferCode. - - The "user" member has been added to the sipWrapper structure and can be - used for any purpose by handwritten code. - - Function argument names are now parsed, but otherwise ignored. - - The "explicit" keyword is now parsed, but otherwise ignored. - - Added the /DelayDtor/ class annotation which given more control over the - order in which instances are deleted when an application terminates. - - Added support for the SIP_PYTYPE pseudo-type that represents a Python - type object. - - Added support for ellipsis (ie. "...") in function arguments. Any - remaining arguments will be gathered as a Python tuple. - - Add support for the /NoDerived/ annotation for Python class constructors - that have no C/C++ equivalent. - - The sipSelfWasArg boolean is now available to the %MethodCode of - non-abstract, virtual methods to indicate whether the class implementation - of the method rather than the virtual implementation should be called. - %MethodCode for non-abstract, virtual, protected methods must now call the - sipProtectVirt wrapper (rather than sipProtect). - - sipCanConvertToInstance(), sipConvertToInstance(), - sipForceConvertToInstance(), sipReleaseInstance(), - sipConvertFromInstance(), sipConvertFromNewInstance(), - sipCanConvertToMappedType(), sipConvertToMappedType(), - sipForceConvertToMappedType(), sipReleaseMappedType(), - sipConvertFromMappedType() and sipFindMappedType() have been added to the - SIP API. - - sipLong_AsUnsignedLong() has been added, primarily as a workaround for a - bug in Python v2.3.x and earlier. - - Added the 't', 'u', 'C' and 'D' format characters to sipParseResult(). - - Added the 't', 'u', 'B', 'C' and 'D' format characters to sipBuildResult(). - - Responsibility for interpreting and implementing the /Transfer/ and - /TransferBack/ annotations has been pushed down to %ConvertToTypeCode and - %ConvertFromTypeCode. The generated type convertors sipForceConvertTo_*() - and sipConvertFrom_*() have been deprecated. - - Added the %SIPNoEmitters directive for PyQt4. - - Added support for the __hash__ Python special method. - - The __getitem__ Python special method no longer requires %MethodCode. - - All of the calls to Qt have been moved out of the sip module and into PyQt. - The generated sipconfig.py file no longer contains any Qt specific - information. These changes mean that SIP can support PyQt v3 and v4 at the - same time. - - Static methods can now be defined as Qt slots. - - Removed SIP_BUILD from sip.h. - - The -c, -l, -q and -x flags to configure.py have been removed. - - Added the PythonModuleMakefile class to the build system for installing - pure Python modules. - - Added the create_wrapper() function to the build system for creating - platform dependent executable wrappers for Python scripts. - - Added Configuration.platform to the build system. - -v4.3.2 14th November 2005 - - The sipdistutils.py script has contributed by Giovanni Bajo that enables - SIP extension modules to be built with distutils. - -v4.3.1 10th September 2005 - - A bug fix release. - -v4.3 30th August 2005 - - The major number of the internal API has changed so it will be necessary - to regenerate all modules. - - C structures can now have constructors and a destructor defined so that - they can be made to behave more Pythonically. - - %TypeHeaderCode can now be used in namespaces. - - Added sip.SIP_VERSION_STR. - - Added support for Python's cyclic garbage collector, %GCTraverseCode and - %GCClearCode. - - Deprecated sipTransfer() and sip.transfer(). - - Added sipTransferTo, sipTransferBack(), sip.transferto() and - sip.transferback(). - - Added support for sipCppRet in %ConvertSubClassCode. - - Added support for %GetCode and %SetCode for instance variables and - structure members. - - Added support for %Exception and %RaiseCode. - - Added support for __pos__ and __abs__. - - sip.voidptr instances can now be created from Python. - - The ascobject() method has been added to sip.voidptr. - - Added the -c flag to configure.py to explicitly specify the location of - the qconfig.h file. - -v4.2.1 6th March 2005 - - Restored the pre-4.2 behaviour of Python exceptions raised in virtual - re-implementations. - - %Timeline can now be used more than once in a module. - -v4.2 19th February 2005 - - The /PyName/ annotation can now be applied to classes, namespaces, - enums, enum members and variables. - - Added the %PreInitialisationCode directive and is subject to version - control. %PostInitialisationCode is now subject to version control. - - Named enums now have distinct types and so can be differentiated from - integers in function signatures. - - The handling of Qt signals has changed so that "foreign" signals (ie. - those raised by ActiveX controls) can be handled. - - The voidptr, wrapper and wrappertype types are now exposed in the sip - module. - - Virtual and abstract operators are now supported. - - The __call__ slot no longer requires %MethodCode. - - Any Python exceptions raised in virtual re-implementations are now - detected when they occur. - - sip.cast() can now cast downwards as well as upwards. - - Added sip.SIP_VERSION. - - The -k flag to configure.py can now be used to build modules as builtins - to custom interpreters. - - The build system now strips modules and only exports the module - initialisation function by default (when supported by the platform). - -v4.1.1 24th September 2004 - - A bug fix release. - -v4.1 20th September 2004 - - Added the cast() method to the sip module. - - Added limited support for protected classes. - - Added the /Abstract/ class annotation. - - Added support for typedefs that define pointers to functions. - - The SIP_PYCALLABLE type now supports the /AllowNone/ annotation. - - Added support for MSVC.NET to the build system. - -v4.0.1 6th July 2004 - - A bug fix release. - -v4.0 23rd June 2004 - - The release of SIP v4. diff --git a/python/sip/README b/python/sip/README deleted file mode 100644 index debbe22b..00000000 --- a/python/sip/README +++ /dev/null @@ -1,5 +0,0 @@ - SIP - Python C/C++ Bindings Generator - - -The SIP documentation (including installation instructions) can be found in the -"doc" directory. diff --git a/python/sip/README.HP-UX b/python/sip/README.HP-UX deleted file mode 100644 index f628f31d..00000000 --- a/python/sip/README.HP-UX +++ /dev/null @@ -1,32 +0,0 @@ -This file describes some things to be aware of when building SIP (and PyQt) -under HP-UX. - -I had success building SIP V4 and PyQt on HP-UX 11.0 with the -HP aC++ compiler. - -My configuration was: - -HP-UX B.11.00 -HP aC++ Compiler C.03.50 (B3911DB) -Qt-3.3.3 -Python-2.3.4 -sip-snapshot-20041113 -PyQt-commercial-snapshot-20041031 - -Additionally, I installed the patches PHSS_29483 and PHSS_30967. -PHSS_29483 brings the aC++ Compiler to level A.03.52. -PHSS_30967 is a cumulative linker patch. - -Because HP-UX can load C++ shared libraries and C++ shared objects only, when -the main program is a C++ program, I had to configure Python with the option ---with-cxx=aCC - -I also had to change the definition of _POSIX_C_SOURCE in the configure script -of Python from 200112L to 199506L because it conflicts with the definition -from Qt. - -If you have any problems or questions on building SIP or PyQt on HP-UX, either -send an email to ulrich.berning@desys.de or use the PyKDE mailing list. - -Ulrich Berning -DESYS GmbH diff --git a/python/sip/THANKS b/python/sip/THANKS deleted file mode 100644 index 5b2614a3..00000000 --- a/python/sip/THANKS +++ /dev/null @@ -1,16 +0,0 @@ -Ulli Berning - For lots of work resolving many multi-platform build issues. - -Simon Cusack - For the Borland stuff. - -Wilken Boie - For porting the SIP code generator to Windows. - -Toby J Sargeant - For the hash table code (and finding out why it's needed). - For deep bug hunting and fixing. - For the Python interpeter lock stuff. - -Matthias H"olzer-Kl"upfel - For the original automake/autoconf magic. diff --git a/python/sip/TODO b/python/sip/TODO deleted file mode 100644 index bf1227c1..00000000 --- a/python/sip/TODO +++ /dev/null @@ -1,55 +0,0 @@ -1. Make the parser aware of Python keywords so they can't be used as -member function names. - -5. Allow handwritten code for static class variables (like -KTMainWindow.memberList). The problem is intercepting references to it -(__getattr__ and __setattr__ aren't good enough) - probably extending the -lazy function mechanism. - -11. Consider changing the way default arguments that are function calls are -handled. At the moment the function is always called and the result discarded -if it is not needed. It should really only be called if the result is really -needed. - -18. Implement the C++ feature of automatically calling simple ctors to -transparently convert between types for function parameters. For example, a -function takes a parameter of type QKeySequence, but is passed an int, but -there is a QKeySequence ctor that takes a single int - so call it -automatically. This just needs extra code generated for the CanConvertTo and -ConvertTo functions. This will only work where the destination type is a -class. Note that we will end up doing lots of checks in the CanConvertTo -function and repeating them in the ConvertToFunction. It would be better if -the CanConvertTo function could return some information (even the results of -the conversion of simple types like ints) to be re-used by ConvertTo - but make -sure default arguments are handled correctly. We could implement it for base -types as well (if the source type implemented an appropriate cast operator) but -the way of doing argument parsing would have to change completely - if -sipParseArgs was trying to convert an argument to an int it would have to have -a table of all types that could be converted to an int (messy and slow?). - -19. Consider changing sipConvertToCpp() etc. to take a PyObject* (rather -than a sipWrapperType*) and do a check and cast internally. - -22. Consider adding support for methods that take keyword arguments. Do it -by allowing a function parameter to have a name (this becomes the keyword) and -extend sipParseArgs() to take an options dictionary and list of keywords. - -24. Need some way of implementing new Qt properties, or at least fiddle the -implementation of QSqlPropertyMap to allow new customer editor widgets to be -implemented in Python. - -25. Add support for specifying docstrings for generated methods. - -26. Fully implement QObject.disconnect(). - -27. Look at adding QObject.Q_OBJECT() that will create the moc generated -methods dynamically (maybe just the tr() functions). - -28. Consider creating a copy of a const reference when wrapping it in order -to enforce const in Python. Or add a flag to the wrapper which says it is a -const instance. I think the only to way to implement it is to have a "const" -Python type - an instance of which will point to the underlying Python object. -This will enable const_cast to be implemented. - -30. Add support for specifying the reverse arithmetic operators. (Or just -document that you should use the normal ones as global operators?) diff --git a/python/sip/configure.py b/python/sip/configure.py deleted file mode 100644 index e5c55295..00000000 --- a/python/sip/configure.py +++ /dev/null @@ -1,417 +0,0 @@ -# This script handles the SIP configuration and generates the Makefiles. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of SIP. -# -# This copy of SIP is licensed for use under the terms of the SIP License -# Agreement. See the file LICENSE for more details. -# -# SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - - -import sys -import os -import string -import glob -import getopt - -import siputils - - -# Initialise the globals. -sip_version = 0x040600 -sip_version_str = "4.6" -py_version = sys.hexversion >> 8 -plat_py_site_dir = None -plat_py_inc_dir = None -plat_py_conf_inc_dir = None -plat_py_lib_dir = None -plat_sip_dir = None -plat_bin_dir = None -platform_specs = [] -default_platform = None - -# Command line options. -opt_platform = None -opt_sipbindir = None -opt_sipmoddir = None -opt_sipincdir = None -opt_sipsipdir = None -opt_static = 0 -opt_debug = 0 -opt_export_all = 0 -opt_universal = '' - -# The names of build macros extracted from the platform specific configuration -# files. -build_macro_names = [ - "DEFINES", "CONFIG", - "CC", - "CFLAGS", - "CFLAGS_RELEASE", "CFLAGS_DEBUG", - "CFLAGS_CONSOLE", "CFLAGS_SHLIB", "CFLAGS_THREAD", - "CFLAGS_MT", "CFLAGS_MT_DBG", "CFLAGS_MT_DLL", "CFLAGS_MT_DLLDBG", - "CFLAGS_EXCEPTIONS_ON", "CFLAGS_EXCEPTIONS_OFF", - "CFLAGS_RTTI_ON", "CFLAGS_RTTI_OFF", - "CFLAGS_STL_ON", "CFLAGS_STL_OFF", - "CFLAGS_WARN_ON", "CFLAGS_WARN_OFF", - "CHK_DIR_EXISTS", "COPY", - "CXX", - "CXXFLAGS", - "CXXFLAGS_RELEASE", "CXXFLAGS_DEBUG", - "CXXFLAGS_CONSOLE", "CXXFLAGS_SHLIB", "CXXFLAGS_THREAD", - "CXXFLAGS_MT", "CXXFLAGS_MT_DBG", "CXXFLAGS_MT_DLL", "CXXFLAGS_MT_DLLDBG", - "CXXFLAGS_EXCEPTIONS_ON", "CXXFLAGS_EXCEPTIONS_OFF", - "CXXFLAGS_RTTI_ON", "CXXFLAGS_RTTI_OFF", - "CXXFLAGS_STL_ON", "CXXFLAGS_STL_OFF", - "CXXFLAGS_WARN_ON", "CXXFLAGS_WARN_OFF", - "DEL_FILE", - "EXTENSION_SHLIB", "EXTENSION_PLUGIN", - "INCDIR", "INCDIR_X11", "INCDIR_OPENGL", - "LIBS_CORE", "LIBS_GUI", "LIBS_NETWORK", "LIBS_OPENGL", - "LINK", "LINK_SHLIB", "AIX_SHLIB", "LINK_SHLIB_CMD", - "LFLAGS", "LFLAGS_CONSOLE", "LFLAGS_CONSOLE_DLL", "LFLAGS_DEBUG", - "LFLAGS_DLL", - "LFLAGS_PLUGIN", "LFLAGS_RELEASE", "LFLAGS_SHLIB", "LFLAGS_SONAME", - "LFLAGS_THREAD", "LFLAGS_WINDOWS", "LFLAGS_WINDOWS_DLL", "LFLAGS_OPENGL", - "LIBDIR", "LIBDIR_X11", "LIBDIR_OPENGL", - "LIBS", "LIBS_CONSOLE", "LIBS_OPENGL", "LIBS_OPENGL", "LIBS_RT", - "LIBS_RTMT", "LIBS_THREAD", "LIBS_WINDOWS", "LIBS_X11", - "MAKEFILE_GENERATOR", - "MKDIR", - "RPATH", - "AR", "RANLIB", "LIB", "STRIP" -] - - -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] [-b dir] [-d dir] [-e dir] [-k] [-n] [-p plat] [-u] [-v dir] option=value option+=value ..." - print "where:" - print " -h display this help message" - print " -b dir where the SIP code generator will be installed [default %s]" % opt_sipbindir - print " -d dir where the SIP module will be installed [default %s]" % opt_sipmoddir - print " -e dir where the SIP header file will be installed [default %s]" % opt_sipincdir - print " -k build the SIP module as a static library" - print " -n build the SIP code generator and module as universal binaries on MacOS/X" - print " -p plat the platform/compiler configuration [default %s]" % default_platform - print " -u build with debugging symbols" - print " -v dir where .sip files are normally installed [default %s]" % opt_sipsipdir - - # Display the different platform/compilers. - print - print "The following platform/compiler configurations are supported:" - print - - platform_specs.sort() - - ss = "" - sep = "" - for s in platform_specs: - ss = ss + sep + s - sep = ", " - - print siputils.format(ss, 2) - - # Display the different build macros. - print - print "The following options may be used to adjust the compiler configuration:" - print - - build_macro_names.sort() - - ss = "" - sep = "" - for s in build_macro_names: - ss = ss + sep + s - sep = " " - - print siputils.format(ss, 2) - - sys.exit(rcode) - - -def set_defaults(): - """Set up the defaults for values that can be set on the command line. - """ - global default_platform - global opt_sipbindir, opt_sipmoddir, opt_sipincdir, opt_sipsipdir - - # Set the platform specific default specification. - platdefaults = { - "aix": "aix-xlc", - "bsd": "bsdi-g++", - "cygwin": "cygwin-g++", - "darwin": "macx-g++", - "dgux": "dgux-g++", - "freebsd": "freebsd-g++", - "gnu": "hurd-g++", - "hp-ux": "hpux-acc", - "irix": "irix-cc", - "linux": "linux-g++", - "lynxos": "lynxos-g++", - "netbsd": "netbsd-g++", - "openbsd": "openbsd-g++", - "openunix": "unixware-cc", - "osf1": "tru64-cxx", - "qnx": "qnx-g++", - "reliantunix": "reliant-cds", - "sco_sv": "sco-cc", - "sinix": "reliant-cds", - "sunos5": "solaris-cc", - "ultrix": "ultrix-g++", - "unix_sv": "unixware-g++", - "unixware": "unixware-cc" - } - - default_platform = "none" - - if sys.platform == "win32": - if py_version >= 0x020400: - default_platform = "win32-msvc.net" - else: - default_platform = "win32-msvc" - else: - for pd in platdefaults.keys(): - if sys.platform[:len(pd)] == pd: - default_platform = platdefaults[pd] - break - - opt_sipbindir = plat_bin_dir - opt_sipmoddir = plat_py_site_dir - opt_sipincdir = plat_py_inc_dir - opt_sipsipdir = plat_sip_dir - - -def inform_user(): - """Tell the user the option values that are going to be used. - """ - siputils.inform("The SIP code generator will be installed in %s." % opt_sipbindir) - siputils.inform("The SIP module will be installed in %s." % opt_sipmoddir) - siputils.inform("The SIP header file will be installed in %s." % opt_sipincdir) - siputils.inform("The default directory to install .sip files in is %s." % opt_sipsipdir) - siputils.inform("The platform/compiler configuration is %s." % opt_platform) - - if opt_universal: - siputils.inform("MacOS/X universal binaries will be created.") - - -def set_platform_directories(): - """Initialise the global variables relating to platform specific - directories. - """ - global plat_py_site_dir, plat_py_inc_dir, plat_py_conf_inc_dir - global plat_bin_dir, plat_py_lib_dir, plat_sip_dir - - if sys.platform == "win32": - plat_py_site_dir = sys.prefix + "\\Lib" - if py_version >= 0x020200: - plat_py_site_dir = plat_py_site_dir + "\\site-packages" - - plat_py_inc_dir = sys.prefix + "\\include" - plat_py_conf_inc_dir = sys.exec_prefix + "\\include" - plat_py_lib_dir = sys.prefix + "\\libs" - plat_bin_dir = sys.exec_prefix - plat_sip_dir = sys.prefix + "\\sip" - else: - vers = "%d.%d" % ((py_version >> 16) & 0xff, (py_version >> 8) & 0xff) - - # Some 64 bit Linux distros (Mandriva, SuSE) seem to add sys.lib as a - # non-standard extension presumably to allow 32 and 64 bit versions to - # be installed side by side. Use it if it seems to be available. - try: - lib_dir = sys.lib - except AttributeError: - lib_dir = "lib" - - lib_dir = sys.prefix + "/" + lib_dir + "/python" + vers - - plat_py_site_dir = lib_dir - if py_version >= 0x020000: - plat_py_site_dir = plat_py_site_dir + "/site-packages" - - plat_py_inc_dir = sys.prefix + "/include/python" + vers - plat_py_conf_inc_dir = sys.exec_prefix + "/include/python" + vers - plat_py_lib_dir = lib_dir + "/config" - plat_bin_dir = sys.exec_prefix + "/bin" - plat_sip_dir = sys.prefix + "/share/sip" - - -def create_config(module, template, macros): - """Create the SIP configuration module so that it can be imported by build - scripts. - - module is the module file name. - template is the template file name. - macros is the dictionary of build macros. - """ - siputils.inform("Creating %s..." % module) - - content = { - "sip_config_args": sys.argv[1:], - "sip_version": sip_version, - "sip_version_str": sip_version_str, - "platform": opt_platform, - "sip_bin": os.path.join(opt_sipbindir, "sip"), - "sip_inc_dir": opt_sipincdir, - "sip_mod_dir": opt_sipmoddir, - "default_bin_dir": plat_bin_dir, - "default_mod_dir": plat_py_site_dir, - "default_sip_dir": opt_sipsipdir, - "export_all": opt_export_all, - "py_version": py_version, - "py_inc_dir": plat_py_inc_dir, - "py_conf_inc_dir": plat_py_conf_inc_dir, - "py_lib_dir": plat_py_lib_dir, - "universal": opt_universal - } - - siputils.create_config_module(module, template, content, macros) - - -def create_makefiles(macros): - """Create the Makefiles. - - macros is the dictionary of platform specific build macros. - """ - # Bootstrap. - import sipconfig - - cfg = sipconfig.Configuration() - - cfg.set_build_macros(macros) - - sipconfig.inform("Creating top level Makefile...") - - sipconfig.ParentMakefile( - configuration=cfg, - subdirs=["sipgen", "siplib"], - installs=(["sipconfig.py", "sipdistutils.py"], cfg.sip_mod_dir) - ).generate() - - sipconfig.inform("Creating sip code generator Makefile...") - - sipconfig.ProgramMakefile( - configuration=cfg, - build_file="sipgen.sbf", - dir="sipgen", - install_dir=os.path.dirname(cfg.sip_bin), - console=1, - warnings=0, - universal=opt_universal - ).generate() - - sipconfig.inform("Creating sip module Makefile...") - - makefile = sipconfig.ModuleMakefile( - configuration=cfg, - build_file="siplib.sbf", - dir="siplib", - install_dir=cfg.sip_mod_dir, - installs=(["sip.h"], cfg.sip_inc_dir), - console=1, - warnings=0, - static=opt_static, - debug=opt_debug, - universal=opt_universal - ) - - makefile.generate() - - -def main(argv): - """Create the configuration module module. - - argv is the list of command line arguments. - """ - siputils.inform("This is SIP %s for Python %s on %s." % (sip_version_str, string.split(sys.version)[0], sys.platform)) - - if py_version < 0x020300: - siputils.error("This version of SIP requires Python v2.3 or later.") - - # Basic initialisation. - set_platform_directories() - - # Build up the list of valid specs. - for s in os.listdir("specs"): - platform_specs.append(s) - - # Handle the command line. - set_defaults() - - try: - optlist, args = getopt.getopt(argv[1:], "hab:d:e:knp:uv:") - except getopt.GetoptError: - usage() - - global opt_sipbindir, opt_sipmoddir, opt_sipincdir, opt_sipsipdir - global opt_platform, opt_static, opt_debug, opt_export_all, opt_universal - - for opt, arg in optlist: - if opt == "-h": - usage(0) - elif opt == "-a": - opt_export_all = 1 - elif opt == "-b": - opt_sipbindir = os.path.abspath(arg) - elif opt == "-d": - opt_sipmoddir = os.path.abspath(arg) - elif opt == "-e": - opt_sipincdir = os.path.abspath(arg) - elif opt == "-k": - opt_static = 1 - elif opt == "-n": - # This should probably be determined dynamically or passed as an - # argument. - opt_universal = '/Developer/SDKs/MacOSX10.4u.sdk' - elif opt == "-p": - if arg not in platform_specs: - usage() - - opt_platform = arg - elif opt == "-u": - opt_debug = 1 - elif opt == "-v": - opt_sipsipdir = os.path.abspath(arg) - - if opt_platform is None: - opt_platform = default_platform - - # Get the platform specific macros for building. - macros = siputils.parse_build_macros(os.path.join("specs", opt_platform), build_macro_names, args) - - if macros is None: - usage() - - # Tell the user what's been found. - inform_user() - - # Install the configuration module. - create_config("sipconfig.py", "siputils.py", macros) - - # Create the Makefiles. - create_makefiles(macros) - - -############################################################################### -# The script starts here. -############################################################################### - -if __name__ == "__main__": - try: - main(sys.argv) - except SystemExit: - raise - except: - print \ -"""An internal error occured. Please report all the output from the program, -including the following traceback, to support@riverbankcomputing.co.uk. -""" - raise diff --git a/python/sip/custom/custom.c b/python/sip/custom/custom.c deleted file mode 100644 index e5ec2d25..00000000 --- a/python/sip/custom/custom.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * This file is the basis of a custom Python interpreter. Use it for Linux, - * UNIX and Windows (console). You will also need to edit mkcustom.py. - */ - - -#include - - -int main(int argc, char **argv) -{ - /* - * Declare the module initialisation function for each module you want - * to be a builtin in the custom interpreter. The name of the function - * will be the name of the module with "init" prepended. The modules - * must be built as static libraries (using the -k flag to configure.py - * for SIP and PyQt). - */ - - /* The sip module will be builtin. */ - extern void initsip(void); - - /* - * Uncomment these (and in the structure below) to include the PyQt - * modules as builtins. - */ -/* extern void initqt(void);*/ -/* extern void initqtaxcontainer(void);*/ -/* extern void initqtcanvas(void);*/ -/* extern void initqtext(void);*/ -/* extern void initqtgl(void);*/ -/* extern void initqtnetwork(void);*/ -/* extern void initqtsql(void);*/ -/* extern void initqttable(void);*/ -/* extern void initqtui(void);*/ -/* extern void initqtxml(void);*/ - - /* - * This structure specifies the names and initialisation functions of - * the builtin modules. - */ - struct _inittab builtin_modules[] = { - {"sip", initsip}, -/* {"qt", initqt},*/ -/* {"qtaxcontainer", initqtaxcontainer},*/ -/* {"qtcanvas", initqtcanvas},*/ -/* {"qtext", initqtext},*/ -/* {"qtgl", initqtgl},*/ -/* {"qtnetwork", initqtnetwork},*/ -/* {"qtsql", initqtsql},*/ -/* {"qttable", initqttable},*/ -/* {"qtui", initqtui},*/ -/* {"qtxml", initqtxml},*/ - {NULL, NULL} - }; - - PyImport_ExtendInittab(builtin_modules); - - return Py_Main(argc, argv); -} diff --git a/python/sip/custom/customw.c b/python/sip/custom/customw.c deleted file mode 100644 index 58770766..00000000 --- a/python/sip/custom/customw.c +++ /dev/null @@ -1,64 +0,0 @@ -/* - * This file is the basis of a custom Python interpreter. Use it for Windows - * (non-console). You will also need to edit mkcustom.py. - */ - - -#define WIN32_LEAN_AND_MEAN -#include - -#include - - -int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, - LPSTR lpCmdLine, int nCmdShow) -{ - /* - * Declare the module initialisation function for each module you want - * to be a builtin in the custom interpreter. The name of the function - * will be the name of the module with "init" prepended. The modules - * must be built as static libraries (using the -k flag to configure.py - * for SIP and PyQt). - */ - - /* The sip module will be builtin. */ - extern void initsip(void); - - /* - * Uncomment these (and in the structure below) to include the PyQt - * modules as builtins. - */ -/* extern void initqt(void);*/ -/* extern void initqtaxcontainer(void);*/ -/* extern void initqtcanvas(void);*/ -/* extern void initqtext(void);*/ -/* extern void initqtgl(void);*/ -/* extern void initqtnetwork(void);*/ -/* extern void initqtsql(void);*/ -/* extern void initqttable(void);*/ -/* extern void initqtui(void);*/ -/* extern void initqtxml(void);*/ - - /* - * This structure specifies the names and initialisation functions of - * the builtin modules. - */ - struct _inittab builtin_modules[] = { - {"sip", initsip}, -/* {"qt", initqt},*/ -/* {"qtaxcontainer", initqtaxcontainer},*/ -/* {"qtcanvas", initqtcanvas},*/ -/* {"qtext", initqtext},*/ -/* {"qtgl", initqtgl},*/ -/* {"qtnetwork", initqtnetwork},*/ -/* {"qtsql", initqtsql},*/ -/* {"qttable", initqttable},*/ -/* {"qtui", initqtui},*/ -/* {"qtxml", initqtxml},*/ - {NULL, NULL} - }; - - PyImport_ExtendInittab(builtin_modules); - - return Py_Main(__argc, __argv); -} diff --git a/python/sip/custom/mkcustom.py b/python/sip/custom/mkcustom.py deleted file mode 100644 index 0e8deabb..00000000 --- a/python/sip/custom/mkcustom.py +++ /dev/null @@ -1,87 +0,0 @@ -"""This Python script uses the SIP build system to create a Makefile for -building a custom Python interpreter. The script doesn't take any command line -flags - just edit it to suit your needs. You will also need to edit custom.c -or customw.c. -""" - - -import sys -import sipconfig - - -# Get the SIP configuration. -cfg = sipconfig.Configuration() - - -# This is the name of the interpreter executable (excluding any platform -# specific extension. -InterpreterName = "custom" - -# Set this to True to create a non-console interpreter on Windows (ie. a custom -# version of pythonw). Make sure you make changes to customw.c rather than -# custom.c. It is ignored on other platforms. -WindowsInterpreter = False - -# Set this to the list of the name of modules to be builtin to the custom -# interpreter. The modules must also be added to custom.c and/or customw.c. -Modules = ["sip"] -#Modules = ["sip", "qt", "qtaxcontainer", "qtcanvas", "qtext", "qtgl", -# "qtnetwork", "qtsql", "qttable", "qtui", "qtxml"] - -# Set this to the name of the directory containing the static modules. -ModuleDirectory = cfg.default_mod_dir - -# Set this to the list of additional libraries to link with the custom -# interpreter. -ExtraLibraries = [] -#ExtraLibraries = ["qassistantclient"] - -# Set this to the list of additional directory names to search for any -# additional libraries. -ExtraLibraryDirectories = [] - -# Set this to the name of the directory containing the Python library. -PythonLibraryDirectory = cfg.py_lib_dir - - -# Make platform specific modifications. -if sys.platform == "linux2": - ExtraLibraries.append("util") - - -# Create a dictionary describing the target and source files to be passed to -# the SIP build system. -build = {} - -if sys.platform == "win32" and WindowsInterpreter: - build["target"] = InterpreterName + "w" - build["sources"] = "customw.c" - console = False -else: - build["target"] = InterpreterName - build["sources"] = "custom.c" - console = True - -# Assume Qt support is required if Qt support was enabled in the sip module. -qt = (cfg.qt_version > 0) - -# Create the Makefile instance. -mf = sipconfig.ProgramMakefile(cfg, build, python=True, console=console, qt=qt) - -# Modify the Makefile according to the values set above. -mf.extra_lib_dirs.extend(ExtraLibraryDirectories) -mf.extra_lib_dirs.append(ModuleDirectory) -mf.extra_lib_dirs.append(PythonLibraryDirectory) - -mf.extra_libs.extend(Modules) - -if sys.platform == "win32": - pylib = "python%u%u" -else: - pylib = "python%u.%u" - -mf.extra_libs.append(pylib % ((cfg.py_version >> 16), ((cfg.py_version >> 8) & 0xff))) -mf.extra_libs.extend(ExtraLibraries) - -# Generate the Makefile itself. -mf.generate() diff --git a/python/sip/doc/default.css b/python/sip/doc/default.css deleted file mode 100644 index 5e077213..00000000 --- a/python/sip/doc/default.css +++ /dev/null @@ -1,229 +0,0 @@ -/* -:Author: David Goodger -:Contact: goodger@users.sourceforge.net -:date: $Date$ -:version: $Revision$ -:copyright: This stylesheet has been placed in the public domain. - -Default cascading style sheet for the HTML output of Docutils. -*/ - -.first { - margin-top: 0 } - -.last { - margin-bottom: 0 } - -a.toc-backref { - text-decoration: none ; - color: black } - -dt { - font-weight: bold } - -dd { - margin-bottom: 1.5em } - -div.abstract { - margin: 2em 5em } - -div.abstract p.topic-title { - font-weight: bold ; - text-align: center } - -div.attention, div.caution, div.danger, div.error, div.hint, -div.important, div.note, div.tip, div.warning, div.admonition { - margin: 2em ; - border: medium outset ; - padding: 1em } - -div.attention p.admonition-title, div.caution p.admonition-title, -div.danger p.admonition-title, div.error p.admonition-title, -div.warning p.admonition-title { - color: red ; - font-weight: bold ; - font-family: sans-serif } - -div.hint p.admonition-title, div.important p.admonition-title, -div.note p.admonition-title, div.tip p.admonition-title, -div.admonition p.admonition-title { - font-weight: bold ; - font-family: sans-serif } - -div.dedication { - margin: 2em 5em ; - text-align: center ; - font-style: italic } - -div.dedication p.topic-title { - font-weight: bold ; - font-style: normal } - -div.figure { - margin-left: 2em } - -div.footer, div.header { - font-size: smaller } - -div.sidebar { - margin-left: 1em ; - border: medium outset ; - padding: 0em 1em ; - background-color: #ffffee ; - width: 40% ; - float: right ; - clear: right } - -div.sidebar p.rubric { - font-family: sans-serif ; - font-size: medium } - -div.system-messages { - margin: 5em } - -div.system-messages h1 { - color: red } - -div.system-message { - border: medium outset ; - padding: 1em } - -div.system-message p.system-message-title { - color: red ; - font-weight: bold } - -div.topic { - margin: 2em } - -h1.title { - text-align: center } - -h2.subtitle { - text-align: center } - -hr { - width: 75% } - -ol.simple, ul.simple { - margin-bottom: 1em } - -ol.arabic { - list-style: decimal } - -ol.loweralpha { - list-style: lower-alpha } - -ol.upperalpha { - list-style: upper-alpha } - -ol.lowerroman { - list-style: lower-roman } - -ol.upperroman { - list-style: upper-roman } - -p.attribution { - text-align: right ; - margin-left: 50% } - -p.caption { - font-style: italic } - -p.credits { - font-style: italic ; - font-size: smaller } - -p.label { - white-space: nowrap } - -p.rubric { - font-weight: bold ; - font-size: larger ; - color: maroon ; - text-align: center } - -p.sidebar-title { - font-family: sans-serif ; - font-weight: bold ; - font-size: larger } - -p.sidebar-subtitle { - font-family: sans-serif ; - font-weight: bold } - -p.topic-title { - font-weight: bold } - -pre.address { - margin-bottom: 0 ; - margin-top: 0 ; - font-family: serif ; - font-size: 100% } - -pre.line-block { - font-family: serif ; - font-size: 100% } - -pre.literal-block, pre.doctest-block { - margin-left: 2em ; - margin-right: 2em ; - background-color: #eeeeee } - -span.classifier { - font-family: sans-serif ; - font-style: oblique } - -span.classifier-delimiter { - font-family: sans-serif ; - font-weight: bold } - -span.interpreted { - font-family: sans-serif } - -span.option { - white-space: nowrap } - -span.option-argument { - font-style: italic } - -span.pre { - white-space: pre } - -span.problematic { - color: red } - -table { - margin-top: 0.5em ; - margin-bottom: 0.5em } - -table.citation { - border-left: solid thin gray ; - padding-left: 0.5ex } - -table.docinfo { - margin: 2em 4em } - -table.footnote { - border-left: solid thin black ; - padding-left: 0.5ex } - -td, th { - padding-left: 0.5em ; - padding-right: 0.5em ; - vertical-align: top } - -th.docinfo-name, th.field-name { - font-weight: bold ; - text-align: left ; - white-space: nowrap } - -h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt { - font-size: 100% } - -/* -tt { - background-color: #eeeeee } -*/ - -ul.auto-toc { - list-style-type: none } diff --git a/python/sip/doc/sipref.html b/python/sip/doc/sipref.html deleted file mode 100644 index 71fcbdb4..00000000 --- a/python/sip/doc/sipref.html +++ /dev/null @@ -1,5281 +0,0 @@ - - - - - - -SIP - A Tool for Generating Python Bindings for C and C++ Libraries - - - - -
-

SIP - A Tool for Generating Python Bindings for C and C++ Libraries

-

Reference Guide

- --- - - - - - - - -
Contact:info@riverbankcomputing.co.uk
Version:4.6
Copyright:Copyright (c) 2007 Riverbank Computing Limited
-
-

Contents

- -
-
-

1   Introduction

-

This is the reference guide for SIP 4.6. SIP is a tool for -automatically generating Python bindings for C and -C++ libraries. SIP was originally developed in 1998 for -PyQt - the Python bindings for -the Qt GUI toolkit - but is suitable for generating bindings for any C or C++ -library.

-

This version of SIP generates bindings for Python v2.3 or later.

-

There are many other similar tools available. One of the original such tools -is SWIG and, in fact, SIP is so called because it -started out as a small SWIG. Unlike SWIG, SIP is specifically designed for -bringing together Python and C/C++ and goes to great lengths to make the -integration as tight as possible.

-

The homepage for SIP is http://www.riverbankcomputing.co.uk/sip/. Here you -will always find the latest stable version, current development snapshots, and -the latest version of this documentation.

-
-

1.1   License

-

SIP is licensed under the same terms as Python itself. SIP places no -restrictions on the license you may apply to the bindings you create.

-
-
-

1.2   Features

-

SIP, and the bindings it produces, have the following features.

-
-
    -
  • bindings are fast to load and minimise memory consumption especially when -only a small sub-set of a large library is being used
  • -
  • automatic conversion between standard Python and C/C++ data types
  • -
  • overloading of functions and methods with different argument signatures
  • -
  • access to a C++ class's protected methods
  • -
  • the ability to define a Python class that is a sub-class of a C++ class, -including abstract C++ classes
  • -
  • Python sub-classes can implement the __dtor__(self) method which -will be called from the C++ class's virtual destructor
  • -
  • support for ordinary C++ functions, class methods, static class methods, -virtual class methods and abstract class methods
  • -
  • the ability to re-implement C++ virtual and abstract methods in Python
  • -
  • support for global and class variables
  • -
  • support for global and class operators
  • -
  • support for C++ namespaces
  • -
  • support for C++ templates
  • -
  • support for C++ exceptions and wrapping them as Python exceptions
  • -
  • the ability to define mappings between C++ classes and similar Python -data types that are automatically invoked
  • -
  • the ability to automatically exploit any available run time type -information to ensure that the class of a Python instance object matches -the class of the corresponding C++ instance
  • -
  • full support of the Python global interpreter lock, including the ability -to specify that a C++ function of method may block, therefore allowing -the lock to be released and other Python threads to run
  • -
  • support for the concept of ownership of a C++ instance (i.e. what part of -the code is responsible for calling the instance's destructor) and how -the ownership may change during the execution of an application
  • -
  • the ability to generate bindings for a C++ class library that itself is -built on another C++ class library which also has had bindings generated -so that the different bindings integrate and share code properly
  • -
  • a sophisticated versioning system that allows the full lifetime of a C++ -class library, including any platform specific or optional features, to -be described in a single set of specification files
  • -
  • the ability to include documentation in the specification files which can -be extracted and subsequently processed by external tools
  • -
  • the ability to include copyright notices and licensing information in the -specification files that is automatically included in all generated -source code
  • -
  • a build system, written in Python, that you can extend to configure, -compile and install your own bindings without worrying about platform -specific issues
  • -
  • support for building your extensions using distutils
  • -
  • SIP, and the bindings it produces, runs under UNIX, Linux, Windows and -MacOS/X
  • -
-
-
-
-

1.3   SIP Components

-

SIP comprises a number of different components.

-
-
    -
  • The SIP code generator (sip or sip.exe). This processes .sip -specification files and generates C or C++ bindings. It is covered in -detail in Using SIP.
  • -
  • The SIP header file (sip.h). This contains definitions and data -structures needed by the generated C and C++ code.
  • -
  • The SIP module (sip.so or sip.pyd). This is a Python extension -module that is imported automatically by SIP generated bindings and -provides them with some common utility functions. See also Using the -SIP Module in Applications.
  • -
  • The SIP build system (sipconfig.py). This is a pure Python module -that is created when SIP is configured and encapsulates all the necessary -information about your system including relevant directory names, -compiler and linker flags, and version numbers. It also includes several -Python classes and functions which help you write configuration scripts -for your own bindings. It is covered in detail in The SIP Build -System.
  • -
  • The SIP distutils extension (sipdistutils.py). This is a distutils -extension that can be used to build your extension modules using -distutils and is an alternative to writing configuration scripts with the -SIP build system. This can be as simple as adding your .sip files to the -list of files needed to build the extension module. It is covered in -detail in Building Your Extension with distutils.
  • -
-
-
-
-

1.4   Qt Support

-

SIP has specific support for the creation of bindings based on Trolltech's Qt -toolkit.

-

The SIP code generator understands the signal/slot type safe callback mechanism -that Qt uses to connect objects together. This allows applications to define -new Python signals, and allows any Python callable object to be used as a slot.

-

SIP itself does not require Qt to be installed.

-
-
-
-

2   Potential Incompatibilities with Earlier Versions

-
-

2.1   SIP v4.4

-
- -
-
-
-
-

3   Installing SIP

-
-

3.1   Downloading SIP

-

You can get the latest release of the SIP source code from -http://www.riverbankcomputing.co.uk/sip/download.php.

-

SIP is also included with all of the major Linux distributions. However, it -may be a version or two out of date.

-

You may also find more up to date pre-compiled binaries on -SourceForge.

-
-
-

3.2   Configuring SIP

-

After unpacking the source package (either a .tar.gz or a .zip file -depending on your platform) you should then check for any README files -that relate to your platform.

-

Next you need to configure SIP by executing the configure.py script. For -example:

-
-python configure.py
-
-

This assumes that the Python interpreter is on your path. Something like the -following may be appropriate on Windows:

-
-c:\python25\python configure.py
-
-

If you have multiple versions of Python installed then make sure you use the -interpreter for which you wish SIP to generate bindings for.

-

The full set of command line options is:

- --- - - - - - - - - - - - - - - - - - - - - - -
--hDisplay a help message.
--aExport all symbols in any SIP generated module and the SIP module -itself. This was the default behaviour of SIP prior to v4.2. -Normally only a module's inititialisation function is exported. This -option is deprecated as the ModuleMakefile class of The SIP Build -System allows this to be specified on a per module basis.
--b dirThe SIP code generator will be installed in the directory dir.
--d dirThe SIP module will be installed in the directory dir.
--e dirThe SIP header file will be installed in the directory dir.
--kThe SIP module will be built as a static library. This is useful when -building the SIP module as a Python builtin (see -Builtin Modules and Custom Interpreters).
--nThe SIP code generator and module will be built as universal binaries -under MacOS/X.
--p platExplicitly specify the platform/compiler to be used by the build -system, otherwise a platform specific default will be used. The --h option will display all the supported platform/compilers and -the default.
--uThe SIP module will be built with debugging symbols.
--v dirBy default .sip files will be installed in the directory dir.
-

The configure.py script takes many other options that allows the build system -to be finely tuned. These are of the form name=value or name+=value. -The -h option will display each supported name, although not all are -applicable to all platforms.

-

The name=value form means that value will replace the existing value of -name.

-

The name+=value form means that value will be appended to the existing -value of name.

-

For example, the following will disable support for C++ exceptions (and so -reduce the size of module binaries) when used with GCC:

-
-python configure.py CXXFLAGS+=-fno-exceptions
-
-

A pure Python module called sipconfig.py is generated by configure.py. -This defines each name and its corresponding value. Looking at it will -give you a good idea of how the build system uses the different options. It is -covered in detail in The SIP Build System.

-
-

3.2.1   Configuring SIP Using MinGW

-

SIP, and the modules it generates, can be built with MinGW, the Windows port of -GCC. You must use the -p command line option to specify the correct -platform. For example:

-
-c:\python25\python configure.py -p win32-g++
-
-
-
-

3.2.2   Configuring SIP Using the Borland C++ Compiler

-

SIP, and the modules it generates, can be built with the free Borland C++ -compiler. You must use the -p command line option to specify the correct -platform. For example:

-
-c:\python25\python configure.py -p win32-borland
-
-

You must also make sure you have a Borland-compatible version of the Python -library. If you are using the standard Python distribution (built using the -Microsoft compiler) then you must convert the format of the Python library. -For example:

-
-coff2omf python25.lib python25_bcpp.lib
-
-
-
-
-

3.3   Building SIP

-

The next step is to build SIP by running your platform's make command. For -example:

-
-make
-
-

The final step is to install SIP by running the following command:

-
-make install
-
-

(Depending on your system you may require root or administrator privileges.)

-

This will install the various SIP components.

-
-
-
-

4   Using SIP

-

Bindings are generated by the SIP code generator from a number of specification -files, typically with a .sip extension. Specification files look very -similar to C and C++ header files, but often with additional information (in -the form of a directive or an annotation) and code so that the bindings -generated can be finely tuned.

-
-

4.1   A Simple C++ Example

-

We start with a simple example. Let's say you have a (fictional) C++ library -that implements a single class called Word. The class has one constructor -that takes a \0 terminated character string as its single argument. The -class has one method called reverse() which takes no arguments and returns -a \0 terminated character string. The interface to the class is defined in -a header file called word.h which might look something like this:

-
-// Define the interface to the word library.
-
-class Word {
-    const char *the_word;
-
-public:
-    Word(const char *w);
-
-    char *reverse() const;
-};
-
-

The corresponding SIP specification file would then look something like this:

-
-// Define the SIP wrapper to the word library.
-
-%Module word 0
-
-class Word {
-
-%TypeHeaderCode
-#include <word.h>
-%End
-
-public:
-    Word(const char *w);
-
-    char *reverse() const;
-};
-
-

Obviously a SIP specification file looks very much like a C++ (or C) header -file, but SIP does not include a full C++ parser. Let's look at the -differences between the two files.

-
-
    -
  • The %Module directive has been added [1]. This is used to name the -Python module that is being created and to give it a generation number. -In this example these are word and 0 respectively. The -generation number is effectively the version number of the module.
  • -
  • The %TypeHeaderCode directive has been added. The text between this -and the following %End directive is included literally in the code -that SIP generates. Normally it is used, as in this case, to -#include the corresponding C++ (or C) header file [2].
  • -
  • The declaration of the private variable this_word has been removed. -SIP does not support access to either private or protected instance -variables.
  • -
-
-

If we want to we can now generate the C++ code in the current directory by -running the following command:

-
-sip -c . word.sip
-
-

However, that still leaves us with the task of compiling the generated code and -linking it against all the necessary libraries. It's much easier to use the -SIP build system to do the whole thing.

-

Using the SIP build system is simply a matter of writing a small Python script. -In this simple example we will assume that the word library we are wrapping -and it's header file are installed in standard system locations and will be -found by the compiler and linker without having to specify any additional -flags. In a more realistic example your Python script may take command line -options, or search a set of directories to deal with different configurations -and installations.

-

This is the simplest script (conventionally called configure.py):

-
-import os
-import sipconfig
-
-# The name of the SIP build file generated by SIP and used by the build
-# system.
-build_file = "word.sbf"
-
-# Get the SIP configuration information.
-config = sipconfig.Configuration()
-
-# Run SIP to generate the code.
-os.system(" ".join([config.sip_bin, "-c", ".", "-b", build_file, "word.sip"]))
-
-# Create the Makefile.
-makefile = sipconfig.SIPModuleMakefile(config, build_file)
-
-# Add the library we are wrapping.  The name doesn't include any platform
-# specific prefixes or extensions (e.g. the "lib" prefix on UNIX, or the
-# ".dll" extension on Windows).
-makefile.extra_libs = ["word"]
-
-# Generate the Makefile itself.
-makefile.generate()
-
-

Hopefully this script is self-documenting. The key parts are the -Configuration and SIPModuleMakefile classes. The build system contains -other Makefile classes, for example to build programs or to call other -Makefiles in sub-directories.

-

After running the script (using the Python interpreter the extension module is -being created for) the generated C++ code and Makefile will be in the -current directory.

-

To compile and install the extension module, just run the following -commands [3]:

-
-make
-make install
-
-

That's all there is to it.

-

See Building Your Extension with distutils for an example of how to build -this example using distutils.

- - - - - -
[1]All SIP directives start with a % as the first non-whitespace -character of a line.
- - - - - -
[2]SIP includes many code directives like this. They differ in where the -supplied code is placed by SIP in the generated code.
- - - - - -
[3]On Windows you might run nmake or mingw32-make instead.
-
-
-

4.2   A Simple C Example

-

Let's now look at a very similar example of wrapping a fictional C library:

-
-/* Define the interface to the word library. */
-
-struct Word {
-    const char *the_word;
-};
-
-struct Word *create_word(const char *w);
-char *reverse(struct Word *word);
-
-

The corresponding SIP specification file would then look something like this:

-
-/* Define the SIP wrapper to the word library. */
-
-%CModule word 0
-
-struct Word {
-
-%TypeHeaderCode
-#include <word.h>
-%End
-
-    const char *the_word;
-};
-
-struct Word *create_word(const char *w) /Factory/;
-char *reverse(struct Word *word);
-
-

Again, let's look at the differences between the two files.

-
-
    -
  • The %CModule directive has been added. This has the same syntax as -the %Module directive used in the previous example but tells SIP that -the library being wrapped is implemented in C rather than C++.
  • -
  • The %TypeHeaderCode directive has been added.
  • -
  • The Factory annotation has been added to the create_word() function. -This tells SIP that a newly created structure is being returned and it is -owned by Python.
  • -
-
-

The configure.py build system script described in the previous example can -be used for this example without change.

-
-
-

4.3   A More Complex C++ Example

-

In this last example we will wrap a fictional C++ library that contains a class -that is derived from a Qt class. This will demonstrate how SIP allows a class -hierarchy to be split across multiple Python extension modules, and will -introduce SIP's versioning system.

-

The library contains a single C++ class called Hello which is derived from -Qt's TQLabel class. It behaves just like TQLabel except that the text -in the label is hard coded to be Hello World. To make the example more -interesting we'll also say that the library only supports Qt v3.0 and later, -and also includes a function called setDefault() that is not implemented -in the Windows version of the library.

-

The hello.h header file looks something like this:

-
-// Define the interface to the hello library.
-
-#include <tqlabel.h>
-#include <tqwidget.h>
-#include <tqstring.h>
-
-class Hello : public TQLabel {
-    // This is needed by the Qt Meta-Object Compiler.
-    Q_OBJECT
-
-public:
-    Hello(TQWidget *parent, const char *name = 0, WFlags f = 0);
-
-private:
-    // Prevent instances from being copied.
-    Hello(const Hello &);
-    Hello &operator=(const Hello &);
-};
-
-#if !defined(Q_OS_WIN)
-void setDefault(const TQString &def);
-#endif
-
-

The corresponding SIP specification file would then look something like this:

-
-// Define the SIP wrapper to the hello library.
-
-%Module hello 0
-
-%Import qt/qtmod.sip
-
-%If (Qt_3_0_0 -)
-
-class Hello : TQLabel {
-
-%TypeHeaderCode
-#include <hello.h>
-%End
-
-public:
-    Hello(TQWidget *parent /TransferThis/, const char *name = 0, WFlags f = 0);
-
-private:
-    Hello(const Hello &);
-};
-
-%If (!WS_WIN)
-void setDefault(const TQString &def);
-%End
-
-%End
-
-

Again we look at the differences, but we'll skip those that we've looked at in -previous examples.

-
-
    -
  • The %Import directive has been added to specify that we are extending -the class hierarchy defined in the file qt/qtmod.sip. This file is -part of PyQt. The build system will take care of finding the file's -exact location.
  • -
  • The %If directive has been added to specify that -everything [4] up to the matching %End directive only applies to Qt -v3.0 and later. Qt_3_0_0 is a tag defined in qtmod.sip [5] -using the %Timeline directive. %Timeline is used to define a tag -for each version of a library's API you are wrapping allowing you to -maintain all the different versions in a single SIP specification. The -build system provides support to configure.py scripts for working out -the correct tags to use according to which version of the library is -actually installed.
  • -
  • The public keyword used in defining the super-classes has been -removed. This is not supported by SIP.
  • -
  • The TransferThis annotation has been added to the first argument -of the constructor. It specifies that if the argument is not 0 (i.e. the -Hello instance being constructed has a parent) then ownership of the -instance is transferred from Python to C++. It is needed because Qt -maintains objects (i.e. instances derived from the TQObject class) in -a hierachy. When an object is destroyed all of its children are also -automatically destroyed. It is important, therefore, that the Python -garbage collector doesn't also try and destroy them. This is covered in -more detail in Ownership of Objects. SIP provides many other -annotations that can be applied to arguments, functions and classes. -Multiple annotations are separated by commas. Annotations may have -values.
  • -
  • The = operator has been removed. This operator is not supported by -SIP.
  • -
  • The %If directive has been added to specify that everything up to the -matching %End directive does not apply to Windows. WS_WIN is -another tag defined by PyQt, this time using the %Platforms directive. -Tags defined by the %Platforms directive are mutually exclusive, i.e. -only one may be valid at a time [6].
  • -
-
-

One question you might have at this point is why bother to define the private -copy constructor when it can never be called from Python? The answer is to -prevent the automatic generation of a public copy constructor.

-

We now look at the configure.py script. This is a little different to the -script in the previous examples for two related reasons.

-

Firstly, PyQt includes a pure Python module called pyqtconfig that extends -the SIP build system for modules, like our example, that build on top of PyQt. -It deals with the details of which version of Qt is being used (i.e. it -determines what the correct tags are) and where it is installed. This is -called a module's configuration module.

-

Secondly, we generate a configuration module (called helloconfig) for our -own hello module. There is no need to do this, but if there is a chance -that somebody else might want to extend your C++ library then it would make -life easier for them.

-

Now we have two scripts. First the configure.py script:

-
-import os
-import sipconfig
-import pyqtconfig
-
-# The name of the SIP build file generated by SIP and used by the build
-# system.
-build_file = "hello.sbf"
-
-# Get the PyQt configuration information.
-config = pyqtconfig.Configuration()
-
-# Get the extra SIP flags needed by the imported qt module.  Note that
-# this normally only includes those flags (-x and -t) that relate to SIP's
-# versioning system.
-qt_sip_flags = config.pyqt_qt_sip_flags
-
-# Run SIP to generate the code.  Note that we tell SIP where to find the qt
-# module's specification files using the -I flag.
-os.system(" ".join([config.sip_bin, "-c", ".", "-b", build_file, "-I", config.pyqt_sip_dir, qt_sip_flags, "hello.sip"]))
-
-# We are going to install the SIP specification file for this module and
-# its configuration module.
-installs = []
-
-installs.append(["hello.sip", os.path.join(config.default_sip_dir, "hello")])
-
-installs.append(["helloconfig.py", config.default_mod_dir])
-
-# Create the Makefile.  The QtModuleMakefile class provided by the
-# pyqtconfig module takes care of all the extra preprocessor, compiler and
-# linker flags needed by the Qt library.
-makefile = pyqtconfig.QtModuleMakefile(
-    configuration=config,
-    build_file=build_file,
-    installs=installs
-)
-
-# Add the library we are wrapping.  The name doesn't include any platform
-# specific prefixes or extensions (e.g. the "lib" prefix on UNIX, or the
-# ".dll" extension on Windows).
-makefile.extra_libs = ["hello"]
-
-# Generate the Makefile itself.
-makefile.generate()
-
-# Now we create the configuration module.  This is done by merging a Python
-# dictionary (whose values are normally determined dynamically) with a
-# (static) template.
-content = {
-    # Publish where the SIP specifications for this module will be
-    # installed.
-    "hello_sip_dir":    config.default_sip_dir,
-
-    # Publish the set of SIP flags needed by this module.  As these are the
-    # same flags needed by the qt module we could leave it out, but this
-    # allows us to change the flags at a later date without breaking
-    # scripts that import the configuration module.
-    "hello_sip_flags":  qt_sip_flags
-}
-
-# This creates the helloconfig.py module from the helloconfig.py.in
-# template and the dictionary.
-sipconfig.create_config_module("helloconfig.py", "helloconfig.py.in", content)
-
-

Next we have the helloconfig.py.in template script:

-
-import pyqtconfig
-
-# These are installation specific values created when Hello was configured.
-# The following line will be replaced when this template is used to create
-# the final configuration module.
-# @SIP_CONFIGURATION@
-
-class Configuration(pyqtconfig.Configuration):
-    """The class that represents Hello 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.
-        """
-        # This is all standard code to be copied verbatim except for the
-        # name of the module containing the super-class.
-        if sub_cfg:
-            cfg = sub_cfg
-        else:
-            cfg = []
-
-        cfg.append(_pkg_config)
-
-        pyqtconfig.Configuration.__init__(self, cfg)
-
-class HelloModuleMakefile(pyqtconfig.QtModuleMakefile):
-    """The Makefile class for modules that %Import hello.
-    """
-    def finalise(self):
-        """Finalise the macros.
-        """
-        # Make sure our C++ library is linked.
-        self.extra_libs.append("hello")
-
-        # Let the super-class do what it needs to.
-        pyqtconfig.QtModuleMakefile.finalise(self)
-
-

Again, we hope that the scripts are self documenting.

- - - - - -
[4]Some parts of a SIP specification aren't subject to version control.
- - - - - -
[5]Actually in versions.sip. PyQt uses the %Include directive to -split the SIP specification for Qt across a large number of separate -.sip files.
- - - - - -
[6]Tags can also be defined by the %Feature directive. These tags are -not mutually exclusive, i.e. any number may be valid at a time.
-
-
-

4.4   Ownership of Objects

-

When a C++ instance is wrapped a corresponding Python object is created. The -Python object behaves as you would expect in regard to garbage collection - it -is garbage collected when its reference count reaches zero. What then happens -to the corresponding C++ instance? The obvious answer might be that the -instance's destructor is called. However the library API may say that when the -instance is passed to a particular function, the library takes ownership of the -instance, i.e. responsibility for calling the instance's destructor is -transferred from the SIP generated module to the library.

-

Ownership of an instance may also be associated with another instance. The -implication being that the owned instance will automatically be destroyed if -the owning instance is destroyed. SIP keeps track of these relationships to -ensure that Python's cyclic garbage collector can detect and break any -reference cycles between the owning and owned instances. The association is -implemented as the owning instance taking a reference to the owned instance.

-

The TransferThis, Transfer and TransferBack annotations are used to specify -where, and it what direction, transfers of ownership happen. It is very -important that these are specified correctly to avoid crashes (where both -Python and C++ call the destructor) and memory leaks (where neither Python and -C++ call the destructor).

-

This applies equally to C structures where the structure is returned to the -heap using the free() function.

-

See also sipTransferTo() and sipTransferBack().

-
-
-

4.5   Support for Wide Characters

-

SIP v4.6 introduced support for wide characters (i.e. the wchar_t type). -Python's C API includes support for converting between unicode objects and wide -character strings and arrays. When converting from a unicode object to wide -characters SIP creates the string or array on the heap (using memory allocated -using sipMalloc()). This then raises the problem of how this memory is -subsequently freed.

-

The following describes how SIP handles this memory in the different situations -where this is an issue.

-
-
    -
  • When a wide string or array is passed to a function or method then the -memory is freed (using sipFree()) after than function or method -returns.
  • -
  • When a wide string or array is returned from a virtual method then SIP -does not free the memory until the next time the method is called.
  • -
  • When an assignment is made to a wide string or array instance variable -then SIP does not first free the instance's current string or array.
  • -
-
-
-
-

4.6   The Python Global Interpreter Lock

-

Python's Global Interpretor Lock (GIL) must be acquired before calls can be -made to the Python API. It should also be released when a potentially -blocking call to C/C++ library is made in order to allow other Python threads -to be executed. In addition, some C/C++ libraries may implement their own -locking strategies that conflict with the GIL causing application deadlocks. -SIP provides ways of specifying when the GIL is released and acquired to -ensure that locking problems can be avoided.

-

SIP always ensures that the GIL is acquired before making calls to the Python -API. By default SIP does not release the GIL when making calls to the C/C++ -library being wrapped. The ReleaseGIL annotation can be used to override -this behaviour when required.

-

If SIP is given the -g command line option then the default behaviour is -changed and SIP releases the GIL every time is makes calls to the C/C++ -library being wrapped. The HoldGIL annotation can be used to override this -behaviour when required.

-
-
-
-

5   The SIP Command Line

-

The syntax of the SIP command line is:

-
-sip [options] [specification]
-
-

specification is the name of the specification file for the module. If it -is omitted then stdin is used.

-

The full set of command line options is:

- --- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--hDisplay a help message.
--VDisplay the SIP version number.
--a fileThe name of the QScintilla API file to generate. This file contains a -description of the module API in a form that the QScintilla editor -component can use for auto-completion and call tips. (The file may -also be used by the SciTE editor but must be sorted first.) By default -the file is not generated.
--b fileThe name of the build file to generate. This file contains the -information about the module needed by the SIP build system to generate -a platform and compiler specific Makefile for the module. By default -the file is not generated.
--c dirThe name of the directory (which must exist) into which all of the -generated C or C++ code is placed. By default no code is generated.
--d fileThe name of the documentation file to generate. Documentation is -included in specification files using the %Doc and %ExportedDoc -directives. By default the file is not generated.
--eSupport for C++ exceptions is enabled. This causes all calls to C++ -code to be enclosed in try/catch blocks and C++ exceptions to -be converted to Python exceptions. By default exception support is -disabled.
--gThe Python GIL is released before making any calls to the C/C++ library -being wrapped and reacquired afterwards. See The Python Global -Interpreter Lock and the ReleaseGIL and HoldGIL annotations.
--I dirThe directory is added to the list of directories searched when looking -for a specification file given in an %Include or %Import -directive. This option may be given any number of times.
--j numberThe generated code is split into the given number of files. This make -it easier to use the parallel build facility of most modern -implementations of make. By default 1 file is generated for each C -structure or C++ class.
--rDebugging statements that trace the execution of the bindings are -automatically generated. By default the statements are not generated.
--s suffixThe suffix to use for generated C or C++ source files. By default -.c is used for C and .cpp for C++.
--t tagThe SIP version tag (declared using a %Timeline directive) or the -SIP platform tag (declared using the %Platforms directive) to -generate code for. This option may be given any number of times so -long as the tags do not conflict.
--wThe display of warning messages is enabled. By default warning -messages are disabled.
--x featureThe feature (declared using the %Feature directive) is disabled.
--z fileThe name of a file containing more command line options.
-
-
-

6   SIP Specification Files

-

A SIP specification consists of some C/C++ type and function declarations and -some directives. The declarations may contain annotations which provide SIP -with additional information that cannot be expressed in C/C++. SIP does not -include a full C/C++ parser.

-

It is important to understand that a SIP specification describes the Python -API, i.e. the API available to the Python programmer when they import the -generated module. It does not have to accurately represent the underlying -C/C++ library. There is nothing wrong with omitting functions that make -little sense in a Python context, or adding functions implemented with -handwritten code that have no C/C++ equivalent. It is even possible (and -sometimes necessary) to specify a different super-class hierarchy for a C++ -class. All that matters is that the generated code compiles properly.

-

In most cases the Python API matches the C/C++ API. In some cases handwritten -code (see %MethodCode) is used to map from one to the other without SIP -having to know the details itself. However, there are a few cases where SIP -generates a thin wrapper around a C++ method or constructor (see Generated -Derived Classes) and needs to know the exact C++ signature. To deal with -these cases SIP allows two signatures to be specified. For example:

-
-class Klass
-{
-public:
-    // The Python signature is a tuple, but the underlying C++ signature
-    // is a 2 element array.
-    Klass(SIP_PYTUPLE) [(int *)];
-%MethodCode
-        int iarr[2];
-
-        if (PyArg_ParseTuple(a0, "ii", &iarr[0], &iarr[1]))
-        {
-            // Note that we use the SIP generated derived class
-            // constructor.
-            Py_BEGIN_ALLOW_THREADS
-            sipCpp = new sipKlass(iarr);
-            Py_END_ALLOW_THREADS
-        }
-%End
-};
-
-
-

6.1   Syntax Definition

-

The following is a semi-formal description of the syntax of a specification -file.

-
-specification ::= {module-statement}
-
-module-statement ::= [module-directive | statement]
-
-module-directive ::= [%CModule | %Copying | %Doc |
-        %ExportedDoc | %ExportedHeaderCode | %Feature |
-        %Import | %Include | %License | %MappedType |
-        mapped-type-template | %Module | %ModuleCode |
-        %ModuleHeaderCode | %OptionalInclude | %Platforms |
-        %PreInitialisationCode | %PostInitialisationCode |
-        sip-option-list | %Timeline | %UnitCode]
-
-sip-option-list :: %SIPOptions ( option-list )
-
-option-list ::= option [, option-list]
-
-statement :: [class-statement | function | variable]
-
-class-statement :: [%If | class | class-template | enum |
-        namespace | opaque-class | operator | struct | typedef |
-        exception]
-
-class ::= class name [: super-classes] [class-annotations]
-        { {class-line} };
-
-super-classes ::= name [, super-classes]
-
-class-line ::= [class-statement | %BIGetReadBufferCode |
-        %BIGetWriteBufferCode | %BIGetSegCountCode |
-        %BIGetCharBufferCode | %ConvertToSubClassCode |
-        %ConvertToTypeCode | %GCClearCode | %GCTraverseCode |
-        %TypeCode | %TypeHeaderCode | constructor | destructor |
-        method | static-method | virtual-method | special-method |
-        operator | virtual-operator | class-variable | public: |
-        public slots: | protected: | protected slots: |
-        private: | private slots: | signals:]
-
-constructor ::= [explicit] name ( [argument-list] )
-        [exceptions] [function-annotations]
-        [c++-constructor-signature] ; [%MethodCode]
-
-c++-constructor-signature ::= [( [argument-list] )]
-
-destructor ::= [virtual] ~ name () [exceptions] [= 0]
-        [function-annotations] ; [%MethodCode]
-        [%VirtualCatcherCode]
-
-method ::= type name ( [argument-list] ) [const]
-        [exceptions] [= 0] [function-annotations] [c++-signature]
-        ; [%MethodCode]
-
-c++-signature ::= [ type ( [argument-list] )]
-
-static-method ::= static function
-
-virtual-method ::= virtual type name ( [argument-list] )
-        [const] [exceptions] [= 0] [function-annotations]
-        [c++-signature] ; [%MethodCode] [%VirtualCatcherCode]
-
-special-method ::= type special-method-name
-        ( [argument-list] ) [function-annotations] ;
-        [%MethodCode]
-
-special-method-name ::= [ __abs__ | __add__ | __and__ |
-        __call__ | __cmp__ | __contains__ | __delitem__ |
-        __div__ | __eq__ | __float__ | __ge__ |
-        __getitem__ | __gt__ | __hash__ | __iadd__ |
-        __iand__ | __idiv__ | __ilshift__ | __imod__ |
-        __imul__ | __int__ | __invert__ | __ior__ |
-        __irshift__ | __isub__ | __ixor__ | __le__ |
-        __len__ | __long__ | __lshift__ | __lt__ |
-        __mod__ | __mul__ | __ne__ | __neg__ |
-        __nonzero__ | __or__ | __pos__ | __repr__ |
-        __rshift__ | __setitem__ | __str__ | __sub__ |
-        __xor__]
-
-operator ::= operator-type
-        ( [argument-list] ) [const] [exceptions]
-        [function-annotations] ; [%MethodCode]
-
-virtual-operator ::= virtual operator-type
-        ( [argument-list] ) [const] [exceptions] [= 0]
-        [function-annotations] ; [%MethodCode]
-        [%VirtualCatcherCode]
-
-operatator-type ::= [ operator-function | operator-cast ]
-
-operator-function ::= type operator operator-name
-
-operator-cast ::= operator type
-
-operator-name ::= [+ | - | * | / | % | & |
-        | | ^ | << | >> | += | -= | *= |
-        /= | %= | &= | |= | ^= | <<= | >>= |
-        ~ | () | [] | < | <= | == | != |
-        > | >>=]
-
-class-variable ::= [static] variable
-
-class-template :: = template < type-list > class
-
-mapped-type-template :: = template < type-list >
-        %MappedType
-
-enum ::= enum [name] [enum-annotations] { {enum-line} };
-
-enum-line ::= [%If | name [enum-annotations] ,
-
-function ::= type name ( [argument-list] ) [exceptions]
-        [function-annotations] ; [%MethodCode]
-
-namespace ::= namespace name { {namespace-line} };
-
-namespace-line ::= [%TypeHeaderCode | statement]
-
-opaque-class ::= class scoped-name ;
-
-struct ::= struct name { {class-line} };
-
-typedef ::= typedef [typed-name | function-pointer] ;
-
-variable::= typed-name [variable-annotations] ; [%AccessCode]
-        [%GetCode] [%SetCode]
-
-exception ::= %Exception exception-name [exception-base] {
-        [%TypeHeaderCode] %RaiseCode };`
-
-exception-name ::= scoped-name
-
-exception-base ::= ( [exception-name | python-exception] )
-
-python-exception ::= [SIP_Exception | SIP_StopIteration |
-        SIP_StandardError | SIP_ArithmeticError |
-        SIP_LookupError | SIP_AssertionError |
-        SIP_AttributeError | SIP_EOFError |
-        SIP_FloatingPointError | SIP_EnvironmentError |
-        SIP_IOError | SIP_OSError | SIP_ImportError |
-        SIP_IndexError | SIP_KeyError | SIP_KeyboardInterrupt |
-        SIP_MemoryError | SIP_NameError | SIP_OverflowError |
-        SIP_RuntimeError | SIP_NotImplementedError |
-        SIP_SyntaxError | SIP_IndentationError | SIP_TabError |
-        SIP_ReferenceError | SIP_SystemError | SIP_SystemExit |
-        SIP_TypeError | SIP_UnboundLocalError |
-        SIP_UnicodeError | SIP_UnicodeEncodeError |
-        SIP_UnicodeDecodeError | SIP_UnicodeTranslateError |
-        SIP_ValueError | SIP_ZeroDivisionError |
-        SIP_WindowsError | SIP_VMSError]
-
-exceptions ::= throw ( [exception-list] )
-
-exception-list ::= scoped-name [, exception-list]
-
-argument-list ::= argument [, argument-list] [, ...]
-
-argument ::= [type [name] [argument-annotations]
-        [default-value] | SIP_ANYSLOT [default-value] | SIP_QOBJECT |
-        SIP_RXOBJ_CON | SIP_RXOBJ_DIS | SIP_SIGNAL [default-value] |
-        SIP_SLOT [default-value] | SIP_SLOT_CON | SIP_SLOT_DIS]
-
-default-value ::= = expression
-
-expression ::= [value | value binary-operator expression]
-
-value ::= [unary-operator] simple-value
-
-simple-value ::= [scoped-name | function-call | real-value |
-        integer-value | boolean-value | string-value |
-        character-value]
-
-typed-name::= type name
-
-function-pointer::= type (* name )( [type-list] )
-
-type-list ::= type [, type-list]
-
-function-call ::= scoped-name ( [value-list] )
-
-value-list ::= value [, value-list]
-
-real-value ::= a floating point number
-
-integer-value ::= a number
-
-boolean-value ::= [true | false]
-
-string-value ::= " {character} "
-
-character-value ::= ` character `
-
-unary-operator ::= [! | ~ | - | +]
-
-binary-operator ::= [- | + | * | / | & | |]
-
-argument-annotations ::= see Argument Annotations
-
-class-annotations ::= see Class Annotations
-
-enum-annotations ::= see Enum Annotations
-
-function-annotations ::= see Function Annotations
-
-variable-annotations ::= see Variable Annotations
-
-type ::= [const] base-type {*} [&]
-
-type-list ::= type [, type-list]
-
-base-type ::= [scoped-name | template | struct scoped-name |
-        short | unsigned short | int | unsigned |
-        unsigned int | long | unsigned long | float |
-        double | bool | char | signed char |
-        unsigned char | void | wchar_t | SIP_PYCALLABLE |
-        SIP_PYDICT | SIP_PYLIST | SIP_PYOBJECT | SIP_PYSLICE |
-        SIP_PYTUPLE | SIP_PYTYPE]
-
-scoped-name ::= name [:: scoped-name]
-
-template ::= scoped-name < type-list >
-
-name ::= _A-Za-z {_A-Za-z0-9}
-
-

Here is a short list of differences between C++ and the subset supported by -SIP that might trip you up.

-
-
    -
  • SIP does not support the use of [] in types. Use pointers instead.
  • -
  • A global operator can only be defined if its first argument is a -class or a named enum that has been wrapped in the same module.
  • -
  • Variables declared outside of a class are effectively read-only.
  • -
  • A class's list of super-classes doesn't not include any access specifier -(e.g. public).
  • -
-
-
-
-

6.2   Variable Numbers of Arguments

-

SIP supports the use of ... as the last part of a function signature. Any -remaining arguments are collected as a Python tuple.

-
-
-

6.3   Additional SIP Types

-

SIP supports a number of additional data types that can be used in Python -signatures.

-
-

6.3.1   SIP_ANYSLOT

-

This is both a const char * and a PyObject * that is used as the type -of the member instead of const char * in functions that implement the -connection or disconnection of an explicitly generated signal to a slot. -Handwritten code must be provided to interpret the conversion correctly.

-
-
-

6.3.2   SIP_PYCALLABLE

-

This is a PyObject * that is a Python callable object.

-
-
-

6.3.3   SIP_PYDICT

-

This is a PyObject * that is a Python dictionary object.

-
-
-

6.3.4   SIP_PYLIST

-

This is a PyObject * that is a Python list object.

-
-
-

6.3.5   SIP_PYOBJECT

-

This is a PyObject * of any Python type.

-
-
-

6.3.6   SIP_PYSLICE

-

This is a PyObject * that is a Python slice object.

-
-
-

6.3.7   SIP_PYTUPLE

-

This is a PyObject * that is a Python tuple object.

-
-
-

6.3.8   SIP_PYTYPE

-

This is a PyObject * that is a Python type object.

-
-
-

6.3.9   SIP_QOBJECT

-

This is a TQObject * that is a C++ instance of a class derived from Qt's -TQObject class.

-
-
-

6.3.10   SIP_RXOBJ_CON

-

This is a TQObject * that is a C++ instance of a class derived from Qt's -TQObject class. It is used as the type of the receiver instead of const -TQObject * in functions that implement a connection to a slot.

-
-
-

6.3.11   SIP_RXOBJ_DIS

-

This is a TQObject * that is a C++ instance of a class derived from Qt's -TQObject class. It is used as the type of the receiver instead of const -TQObject * in functions that implement a disconnection from a slot.

-
-
-

6.3.12   SIP_SIGNAL

-

This is a const char * that is used as the type of the signal instead of -const char * in functions that implement the connection or disconnection -of an explicitly generated signal to a slot.

-
-
-

6.3.13   SIP_SLOT

-

This is a const char * that is used as the type of the member instead of -const char * in functions that implement the connection or disconnection -of an explicitly generated signal to a slot.

-
-
-

6.3.14   SIP_SLOT_CON

-

This is a const char * that is used as the type of the member instead of -const char * in functions that implement the connection of an internally -generated signal to a slot. The type includes a comma separated list of types -that is the C++ signature of of the signal.

-

To take an example, TQAccel::connectItem() connects an internally generated -signal to a slot. The signal is emitted when the keyboard accelerator is -activated and it has a single integer argument that is the ID of the -accelerator. The C++ signature is:

-
-bool connectItem(int id, const TQObject *receiver, const char *member);
-
-

The corresponding SIP specification is:

-
-bool connectItem(int, SIP_RXOBJ_CON, SIP_SLOT_CON(int));
-
-
-
-

6.3.15   SIP_SLOT_DIS

-

This is a const char * that is used as the type of the member instead of -const char * in functions that implement the disconnection of an -internally generated signal to a slot. The type includes a comma separated -list of types that is the C++ signature of of the signal.

-
-
-
-
-

7   SIP Directives

-

In this section we describe each of the directives that can be used in -specification files. All directives begin with % as the first -non-whitespace character in a line.

-

Some directives have arguments or contain blocks of code or documentation. In -the following descriptions these are shown in italics. Optional arguments -are enclosed in [brackets].

-

Some directives are used to specify handwritten code. Handwritten code must -not define names that start with the prefix sip.

-
-

7.1   %AccessCode

-
-%AccessCode
-    code
-%End
-
-

This directive is used immediately after the declaration of an instance of a -wrapped class or structure, or a pointer to such an instance. You use it to -provide handwritten code that overrides the default behaviour.

-

For example:

-
-class Klass;
-
-Klass *klassInstance;
-%AccessCode
-    // In this contrived example the C++ library we are wrapping defines
-    // klassInstance as Klass ** (which SIP doesn't support) so we
-    // explicitly dereference it.
-    if (klassInstance && *klassInstance)
-        return *klassInstance;
-
-    // This will get converted to None.
-    return 0;
-%End
-
-
-
-

7.2   %BIGetCharBufferCode

-
-%BIGetCharBufferCode
-    code
-%End
-
-

This directive (along with %BIGetReadBufferCode, %BIGetSegCountCode and -%BIGetWriteBufferCode) is used to specify code that implements Python's -buffer interface. See the section Buffer Object Structures for the -details.

-

The following variables are made available to the handwritten code:

-
-
type *sipCpp
-
This is a pointer to the structure or class instance. Its type is a -pointer to the structure or class.
-
void **sipPtrPtr
-
This is the pointer used to return the address of the character buffer.
-
SIP_SSIZE_T sipRes
-
The handwritten code should set this to the length of the character buffer -or -1 if there was an error.
-
SIP_SSIZE_T sipSegment
-
This is the number of the segment of the character buffer.
-
PyObject *sipSelf
-
This is the Python object that wraps the the structure or class instance, -i.e. self.
-
-
-
-

7.3   %BIGetReadBufferCode

-
-%BIGetReadBufferCode
-    code
-%End
-
-

This directive (along with %BIGetCharBufferCode, %BIGetSegCountCode and -%BIGetWriteBufferCode) is used to specify code that implements Python's -buffer interface.

-

The following variables are made available to the handwritten code:

-
-
type *sipCpp
-
This is a pointer to the structure or class instance. Its type is a -pointer to the structure or class.
-
void **sipPtrPtr
-
This is the pointer used to return the address of the read buffer.
-
SIP_SSIZE_T sipRes
-
The handwritten code should set this to the length of the read buffer or --1 if there was an error.
-
SIP_SSIZE_T sipSegment
-
This is the number of the segment of the read buffer.
-
PyObject *sipSelf
-
This is the Python object that wraps the the structure or class instance, -i.e. self.
-
-
-
-

7.4   %BIGetSegCountCode

-
-%BIGetSegCountCode
-    code
-%End
-
-

This directive (along with %BIGetCharBufferCode, %BIGetReadBufferCode and -%BIGetWriteBufferCode) is used to specify code that implements Python's -buffer interface.

-

The following variables are made available to the handwritten code:

-
-
type *sipCpp
-
This is a pointer to the structure or class instance. Its type is a -pointer to the structure or class.
-
SIP_SSIZE_T *sipLenPtr
-
This is the pointer used to return the total length in bytes of all -segments of the buffer.
-
SIP_SSIZE_T sipRes
-
The handwritten code should set this to the number of segments that make -up the buffer.
-
PyObject *sipSelf
-
This is the Python object that wraps the the structure or class instance, -i.e. self.
-
-
-
-

7.5   %BIGetWriteBufferCode

-
-%BIGetWriteBufferCode
-    code
-%End
-
-

This directive (along with %BIGetCharBufferCode, %BIGetReadBufferCode -and %BIGetSegCountCode is used to specify code that implements Python's -buffer interface.

-

The following variables are made available to the handwritten code:

-
-
type *sipCpp
-
This is a pointer to the structure or class instance. Its type is a -pointer to the structure or class.
-
void **sipPtrPtr
-
This is the pointer used to return the address of the write buffer.
-
SIP_SSIZE_T sipRes
-
The handwritten code should set this to the length of the write buffer or --1 if there was an error.
-
SIP_SSIZE_T sipSegment
-
This is the number of the segment of the write buffer.
-
PyObject *sipSelf
-
This is the Python object that wraps the the structure or class instance, -i.e. self.
-
-
-
-

7.6   %CModule

-
-%CModule name [version]
-
-

This directive is used to identify that the library being wrapped is a C -library and to define the name of the module and it's optional version number.

-

See the %Module directive for an explanation of the version number.

-

For example:

-
-%CModule dbus 1
-
-
-
-

7.7   %ConvertFromTypeCode

-
-%ConvertFromTypeCode
-    code
-%End
-
-

This directive is used as part of the %MappedType directive to specify the -handwritten code that converts an instance of a mapped type to a Python -object.

-

The following variables are made available to the handwritten code:

-
-
type *sipCpp
-
This is a pointer to the instance of the mapped type to be converted. It -will never be zero as the conversion from zero to Py_None is handled -before the handwritten code is called.
-
PyObject *sipTransferObj
-
This specifies any desired ownership changes to the returned object. If it -is NULL then the ownership should be left unchanged. If it is -Py_None then ownership should be transferred to Python. Otherwise -ownership should be transferred to C/C++ and the returned object associated -with sipTransferObj. The code can choose to interpret these changes in -any way. For example, if the code is converting a C++ container of wrapped -classes to a Python list it is likely that the ownership changes should be -made to each element of the list.
-
-

The handwritten code must explicitly return a PyObject *. If there was an -error then a Python exception must be raised and NULL returned.

-

The following example converts a QList<TQWidget *> instance to a Python -list of TQWidget instances:

-
-%ConvertFromTypeCode
-    PyObject *l;
-
-    // Create the Python list of the correct length.
-    if ((l = PyList_New(sipCpp -> size())) == NULL)
-        return NULL;
-
-    // Go through each element in the C++ instance and convert it to a
-    // wrapped TQWidget.
-    for (int i = 0; i < sipCpp -> size(); ++i)
-    {
-        TQWidget *w = sipCpp -> at(i);
-        PyObject *wobj;
-
-        // Get the Python wrapper for the TQWidget instance, creating a new
-        // one if necessary, and handle any ownership transfer.
-        if ((wobj = sipConvertFromInstance(w, sipClass_QWidget, sipTransferObj)) == NULL)
-        {
-            // There was an error so garbage collect the Python list.
-            Py_DECREF(l);
-            return NULL;
-        }
-
-        // Add the wrapper to the list.
-        PyList_SET_ITEM(l, i, wobj);
-    }
-
-    // Return the Python list.
-    return l;
-%End
-
-
-
-

7.8   %ConvertToSubClassCode

-
-%ConvertToSubClassCode
-    code
-%End
-
-

When SIP needs to wrap a C++ class instance it first checks to make sure it -hasn't already done so. If it has then it just returns a new reference to the -corresponding Python object. Otherwise it creates a new Python object of the -appropriate type. In C++ a function may be defined to return an instance of a -certain class, but can often return a sub-class instead.

-

This directive is used to specify handwritten code that exploits any available -real-time type information (RTTI) to see if there is a more specific Python -type that can be used when wrapping the C++ instance. The RTTI may be -provided by the compiler or by the C++ instance itself.

-

The directive is included in the specification of one of the classes that the -handwritten code handles the type conversion for. It doesn't matter which -one, but a sensible choice would be the one at the root of that class -hierarchy in the module.

-

Note that if a class hierarchy extends over a number of modules then this -directive should be used in each of those modules to handle the part of the -hierarchy defined in that module. SIP will ensure that the different pieces -of code are called in the right order to determine the most specific Python -type to use.

-

The following variables are made available to the handwritten code:

-
-
type *sipCpp
-
This is a pointer to the C++ class instance.
-
void **sipCppRet
-
When the sub-class is derived from more than one super-class then it is -possible that the C++ address of the instance as the sub-class is -different to that of the super-class. If so, then this must be set to the -C++ address of the instance when cast (usually using static_cast) -from the super-class to the sub-class.
-
sipWrapperType *sipClass
-
The handwritten code must set this to the SIP generated Python type object -that corresponds to the class instance. (The type object for class -Klass is sipClass_Klass.) If the RTTI of the class instance isn't -recognised then sipClass must be set to NULL. The code doesn't -have to recognise the exact class, only the most specific sub-class that -it can.
-
-

The handwritten code must not explicitly return.

-

The following example shows the sub-class conversion code for TQEvent based -class hierarchy in PyQt:

-
-class QEvent
-{
-%ConvertToSubClassCode
-    // TQEvent sub-classes provide a unique type ID.
-    switch (sipCpp -> type())
-    {
-    case TQEvent::Timer:
-        sipClass = sipClass_QTimerEvent;
-        break;
-
-    case TQEvent::KeyPress:
-    case TQEvent::KeyRelease:
-        sipClass = sipClass_QKeyEvent;
-        break;
-
-    // Skip the remaining event types to keep the example short.
-
-    default:
-        // We don't recognise the type.
-        sipClass = NULL;
-    }
-%End
-
-    // The rest of the class specification.
-
-};
-
-

The SIP API includes the sipMapIntToClass() and sipMapStringToClass() -functions that convert integer and string based RTTI to Python type objects -based on ordered lookup tables.

-
-
-

7.9   %ConvertToTypeCode

-
-%ConvertToTypeCode
-    code
-%End
-
-

This directive is used to specify the handwritten code that converts a Python -object to a mapped type instance and to handle any ownership transfers. It is -used as part of the %MappedType directive and as part of a class -specification. The code is also called to determine if the Python object is of -the correct type prior to conversion.

-

When used as part of a class specification it can automatically convert -additional types of Python object. For example, PyQt uses it in the -specification of the TQString class to allow Python string objects and -unicode objects to be used wherever TQString instances are expected.

-

The following variables are made available to the handwritten code:

-
-
int *sipIsErr
-
If this is NULL then the code is being asked to check the type of the -Python object. The check must not have any side effects. Otherwise the -code is being asked to convert the Python object and a non-zero value -should be returned through this pointer if an error occurred during the -conversion.
-
PyObject *sipPy
-
This is the Python object to be converted.
-
type **sipCppPtr
-
This is a pointer through which the address of the mapped type instance (or -zero if appropriate) is returned. Its value is undefined if sipIsErr -is NULL.
-
PyObject *sipTransferObj
-
This specifies any desired ownership changes to sipPy. If it is NULL -then the ownership should be left unchanged. If it is Py_None then -ownership should be transferred to Python. Otherwise ownership should be -transferred to C/C++ and sipPy associated with sipTransferObj. The -code can choose to interpret these changes in any way.
-
-

The handwritten code must explicitly return an int the meaning of which -depends on the value of sipIsErr.

-

If sipIsErr is NULL then a non-zero value is returned if the Python -object has a type that can be converted to the mapped type. Otherwise zero is -returned.

-

If sipIsErr is not NULL then a combination of the following flags is -returned.

-
-
    -
  • SIP_TEMPORARY is set to indicate that the returned instance is a -temporary and should be released to avoid a memory leak.
  • -
  • SIP_DERIVED_CLASS is set to indicate that the type of the -returned instance is a derived class. See Generated Derived -Classes.
  • -
-
-

The following example converts a Python list of TQPoint instances to a -QList<TQPoint> instance:

-
-%ConvertToTypeCode
-    // See if we are just being asked to check the type of the Python
-    // object.
-    if (!sipIsErr)
-    {
-        // Checking whether or not None has been passed instead of a list
-        // has already been done.
-        if (!PyList_Check(sipPy))
-            return 0;
-
-        // Check the type of each element.  We specify SIP_NOT_NONE to
-        // disallow None because it is a list of TQPoint, not of a pointer
-        // to a TQPoint, so None isn't appropriate.
-        for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
-            if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy, i),
-                                         sipClass_QPoint, SIP_NOT_NONE))
-                return 0;
-
-        // The type is valid.
-        return 1;
-    }
-
-    // Create the instance on the heap.
-    QList<TQPoint> *ql = new QList<TQPoint>;
-
-    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
-    {
-        TQPoint *qp;
-        int state;
-
-        // Get the address of the element's C++ instance.  Note that, in
-        // this case, we don't apply any ownership changes to the list
-        // elements, only to the list itself.
-        qp = reinterpret_cast<TQPoint *>(sipConvertToInstance(
-                                                PyList_GET_ITEM(sipPy, i),
-                                                sipClass_QPoint, 0,
-                                                SIP_NOT_NONE,
-                                                &state, sipIsErr));
-
-        // Deal with any errors.
-        if (*sipIsErr)
-        {
-            sipReleaseInstance(qp, sipClass_QPoint, state);
-
-            // Tidy up.
-            delete ql;
-
-            // There is no temporary instance.
-            return 0;
-        }
-
-        ql -> append(*qp);
-
-        // A copy of the TQPoint was appended to the list so we no longer
-        // need it.  It may be a temporary instance that should be
-        // destroyed, or a wrapped instance that should not be destroyed.
-        // sipReleaseInstance() will do the right thing.
-        sipReleaseInstance(qp, sipClass_QPoint, state);
-    }
-
-    // Return the instance.
-    *sipCppPtr = ql;
-
-    // The instance should be regarded as temporary (and be destroyed as
-    // soon as it has been used) unless it has been transferred from
-    // Python.  sipGetState() is a convenience function that implements
-    // this common transfer behaviour.
-    return sipGetState(sipTransferObj);
-%End
-
-

When used in a class specification the handwritten code replaces the code that -would normally be automatically generated. This means that the handwritten -code must also handle instances of the class itself and not just the additional -types that are being supported. This should be done by making calls to -sipCanConvertToInstance() to check the object type and -sipConvertToInstance() to convert the object. The SIP_NO_CONVERTORS -flag must be passed to both these functions to prevent recursive calls to the -handwritten code.

-
-
-

7.10   %Copying

-
-%Copying
-    text
-%End
-
-

This directive is used to specify some arbitrary text that will be included at -the start of all source files generated by SIP. It is normally used to -include copyright and licensing terms.

-

For example:

-
-%Copying
-Copyright (c) 2007 Riverbank Computing Limited
-%End
-
-
-
-

7.11   %Doc

-
-%Doc
-    text
-%End
-
-

This directive is used to specify some arbitrary text that will be extracted -by SIP when the -d command line option is used. The directive can be -specified any number of times and SIP will concatenate all the separate pieces -of text in the order that it sees them.

-

Documentation that is specified using this directive is local to the module in -which it appears. It is ignored by modules that %Import it. Use the -%ExportedDoc directive for documentation that should be included by all -modules that %Import this one.

-

For example:

-
-%Doc
-<h1>An Example</h1>
-<p>
-This fragment of documentation is HTML and is local to the module in
-which it is defined.
-</p>
-%End
-
-
-
-

7.12   %End

-

This isn't a directive in itself, but is used to terminate a number of -directives that allow a block of handwritten code or text to be specified.

-
-
-

7.13   %Exception

-
-%Exception name [(base-exception)]
-{
-    [*header-code]
-    raise-code
-};
-
-

This directive is used to define new Python exceptions, or to provide a stub -for existing Python exceptions. It allows handwritten code to be provided -that implements the translation between C++ exceptions and Python exceptions. -The arguments to throw () specifiers must either be names of classes or the -names of Python exceptions defined by this directive.

-

name is the name of the exception.

-

base-exception is the optional base exception. This may be either one of -the standard Python exceptions or one defined with a previous %Exception -directive.

-

header-code is the optional %TypeHeaderCode used to specify any external -interface to the exception being defined.

-

raise-code is the %RaiseCode used to specify the handwritten code that -converts a reference to the C++ exception to the Python exception.

-

For example:

-
-%Exception std::exception(SIP_Exception) /PyName=StdException/
-{
-%TypeHeaderCode
-#include <exception>
-%End
-%RaiseCode
-        const char *detail = sipExceptionReference.what();
-
-        SIP_BLOCK_THREADS
-        PyErr_SetString(sipException_StdException, detail);
-        SIP_UNBLOCK_THREADS
-%End
-};
-
-

In this example we map the standard C++ exception to a new Python exception. -The new exception is called StdException and is derived from the standard -Python exception Exception.

-
-
-

7.14   %ExportedDoc

-
-%ExportedDoc
-    text
-%End
-
-

This directive is used to specify some arbitrary text that will be extracted -by SIP when the -d command line option is used. The directive can be -specified any number of times and SIP will concatenate all the separate pieces -of text in the order that it sees them.

-

Documentation that is specified using this directive will also be included by -modules that %Import it.

-

For example:

-
-%ExportedDoc
-==========
-An Example
-==========
-
-This fragment of documentation is reStructuredText and will appear in the
-module in which it is defined and all modules that %Import it.
-%End
-
-
-
-

7.15   %ExportedHeaderCode

-
-%ExportedHeaderCode
-    code
-%End
-
-

This directive is used to specify handwritten code, typically the declarations -of types, that is placed in a header file that is included by all generated -code for all modules. It should not include function declarations because -Python modules should not explicitly call functions in another Python module.

-

See also %ModuleCode and %ModuleHeaderCode.

-
-
-

7.16   %Feature

-
-%Feature name
-
-

This directive is used to declare a feature. Features (along with -%Platforms and %Timeline) are used by the %If directive to control -whether or not parts of a specification are processed or ignored.

-

Features are mutually independent of each other - any combination of features -may be enabled or disable. By default all features are enabled. The SIP --x command line option is used to disable a feature.

-

If a feature is enabled then SIP will automatically generate a corresponding C -preprocessor symbol for use by handwritten code. The symbol is the name of -the feature prefixed by SIP_FEATURE_.

-

For example:

-
-%Feature FOO_SUPPORT
-
-%If (FOO_SUPPORT)
-void foo();
-%End
-
-
-
-

7.17   %GCClearCode

-
-%GCClearCode
-    code
-%End
-
-

Python has a cyclic garbage collector which can identify and release unneeded -objects even when their reference counts are not zero. If a wrapped C -structure or C++ class keeps its own reference to a Python object then, if the -garbage collector is to do its job, it needs to provide some handwritten code -to traverse and potentially clear those embedded references.

-

See the section Supporting cyclic garbage collection in Embedding and -Extending the Python Interpreter -for the details.

-

This directive is used to specify the code that clears any embedded references. -(See %GCTraverseCode for specifying the code that traverses any embedded -references.)

-

The following variables are made available to the handwritten code:

-
-
type *sipCpp
-
This is a pointer to the structure or class instance. Its type is a -pointer to the structure or class.
-
int sipRes
-
The handwritten code should set this to the result to be returned.
-
-

The following simplified example is taken from PyQt. The TQCustomEvent -class allows arbitary data to be attached to the event. In PyQt this data is -always a Python object and so should be handled by the garbage collector:

-
-%GCClearCode
-    PyObject *obj;
-
-    // Get the object.
-    obj = reinterpret_cast<PyObject *>(sipCpp -> data());
-
-    // Clear the pointer.
-    sipCpp -> setData(0);
-
-    // Clear the reference.
-    Py_XDECREF(obj);
-
-    // Report no error.
-    sipRes = 0;
-%End
-
-
-
-

7.18   %GCTraverseCode

-
-%GCTraverseCode
-    code
-%End
-
-

This directive is used to specify the code that traverses any embedded -references for Python's cyclic garbage collector. (See %GCClearCode for a -full explanation.)

-

The following variables are made available to the handwritten code:

-
-
type *sipCpp
-
This is a pointer to the structure or class instance. Its type is a -pointer to the structure or class.
-
visitproc sipVisit
-
This is the visit function provided by the garbage collector.
-
void *sipArg
-
This is the argument to the visit function provided by the garbage -collector.
-
int sipRes
-
The handwritten code should set this to the result to be returned.
-
-

The following simplified example is taken from PyQt's TQCustomEvent class:

-
-%GCTraverseCode
-    PyObject *obj;
-
-    // Get the object.
-    obj = reinterpret_cast<PyObject *>(sipCpp -> data());
-
-    // Call the visit function if there was an object.
-    if (obj)
-        sipRes = sipVisit(obj, sipArg);
-    else
-        sipRes = 0;
-%End
-
-
-
-

7.19   %GetCode

-
-%GetCode
-    code
-%End
-
-

This directive is used after the declaration of a C++ class variable or C -structure member to specify handwritten code to convert it to a Python object. -It is usually used to handle types that SIP cannot deal with automatically.

-

The following variables are made available to the handwritten code:

-
-
type *sipCpp
-
This is a pointer to the structure or class instance. Its type is a -pointer to the structure or class. It is not made available if the -variable being wrapped is a static class variable.
-
PyObject *sipPy
-
The handwritten code must set this to the Python representation of the -class variable or structure member. If there is an error then the code -must raise an exception and set this to NULL.
-
-

For example:

-
-struct Entity
-{
-    /*
-     * In this contrived example the C library we are wrapping actually
-     * defines this as char buffer[100] which SIP cannot handle
-     * automatically.
-     */
-    char *buffer;
-%GetCode
-        sipPy = PyString_FromStringAndSize(sipCpp -> buffer, 100);
-%End
-%SetCode
-        char *ptr;
-        int length;
-
-        if (PyString_AsStringAndSize(sipPy, &ptr, &length) == -1)
-            sipErr = 1;
-        else if (length != 100)
-        {
-            /*
-             * Raise an exception because the length isn't exactly right.
-             */
-
-            PyErr_SetString(PyExc_ValueError, "an Entity.buffer must be exactly 100 bytes");
-            sipErr = 1;
-        }
-        else
-            memcpy(sipCpp -> buffer, ptr, 100);
-%End
-}
-
-
-
-

7.20   %If

-
-%If (expression)
-    specification
-%End
-
-

where

-
-expression ::= [ored-qualifiers | range]
-
-ored-qualifiers ::= [qualifier | qualifier || ored-qualifiers]
-
-qualifier ::= [!] [feature | platform]
-
-range ::= [version] - [version]
-
-

This directive is used in conjunction with features (see %Feature), -platforms (see %Platforms) and versions (see %Timeline) to control -whether or not parts of a specification are processed or not.

-

A range of versions means all versions starting with the lower bound up to -but excluding the upper bound. If the lower bound is omitted then it is -interpreted as being before the earliest version. If the upper bound is -omitted then it is interpreted as being after the latest version.

-

For example:

-
-%Feature SUPPORT_FOO
-%Platforms {WIN32_PLATFORM POSIX_PLATFORM MACOS_PLATFORM}
-%Timeline {V1_0 V1_1 V2_0 V3_0}
-
-%If (!SUPPORT_FOO)
-    // Process this if the SUPPORT_FOO feature is disabled.
-%End
-
-%If (POSIX_PLATFORM || MACOS_PLATFORM)
-    // Process this if either the POSIX_PLATFORM or MACOS_PLATFORM
-    // platforms are enabled.
-%End
-
-%If (V1_0 - V2_0)
-    // Process this if either V1_0 or V1_1 is enabled.
-%End
-
-%If (V2_0 - )
-    // Process this if either V2_0 or V3_0 is enabled.
-%End
-
-%If ( - )
-    // Always process this.
-%End
-
-

Note that this directive is not implemented as a preprocessor. Only the -following parts of a specification are affected by it:

-
- -
-

Also note that the only way to specify the logical and of qualifiers is to use -nested %If directives.

-
-
-

7.21   %Import

-
-%Import filename
-
-

This directive is used to import the specification of another module. This is -needed if the current module makes use of any types defined in the imported -module, e.g. as an argument to a function, or to sub-class.

-

If filename cannot be opened then SIP prepends filename with the name of -the directory containing the current specification file (i.e. the one -containing the %Import directive) and tries again. If this also fails then -SIP prepends filename with each of the directories, in turn, specified by -the -I command line option.

-

For example:

-
-%Import qt/qtmod.sip
-
-
-
-

7.22   %Include

-
-%Include filename
-
-

This directive is used to include contents of another file as part of the -specification of the current module. It is the equivalent of the C -preprocessor's #include directive and is used to structure a large module -specification into manageable pieces.

-

%Include follows the same search process as %Import when trying to open -filename.

-

For example:

-
-%Include qwidget.sip
-
-
-
-

7.23   %License

-
-%License /license-annotations/
-
-

This directive is used to specify the contents of an optional license -dictionary. The license dictionary is called __license__ and is stored in -the module dictionary. The elements of the dictionary are specified using the -Licensee, Signature, Timestamp and Type annotations. Only the Type -annotation is compulsory.

-

Note that this directive isn't an attempt to impose any licensing restrictions -on a module. It is simply a method for easily embedding licensing information -in a module so that it is accessible to Python scripts.

-

For example:

-
-%License /Type="GPL"/
-
-
-
-

7.24   %MappedType

-
-template<type-list>
-%MappedType type
-{
-    [header-code]
-    [convert-to-code]
-    [convert-from-code]
-};
-
-%MappedType type
-{
-    [header-code]
-    [convert-to-code]
-    [convert-from-code]
-};
-
-

This directive is used to define an automatic mapping between a C or C++ type -and a Python type. It can be used as part of a template, or to map a specific -type.

-

When used as part of a template type cannot itself refer to a template. Any -occurrences of any of the type names (but not any * or &) in -type-list will be replaced by the actual type names used when the template is -instantiated. Template mapped types are instantiated automatically as required -(unlike template classes which are only instantiated using typedef).

-

Any explicit mapped type will be used in preference to any template that maps -the same type, ie. a template will not be automatically instantiated if there -is an explicit mapped type.

-

header-code is the %TypeHeaderCode used to specify the library interface -to the type being mapped.

-

convert-to-code is the %ConvertToTypeCode used to specify the handwritten -code that converts a Python object to an instance of the mapped type.

-

convert-from-code is the %ConvertFromTypeCode used to specify the -handwritten code that converts an instance of the mapped type to a Python -object.

-

For example:

-
-template<Type *>
-%MappedType QList
-{
-%TypeHeaderCode
-// Include the library interface to the type being mapped.
-#include <tqlist.h>
-%End
-
-%ConvertToTypeCode
-    // See if we are just being asked to check the type of the Python
-    // object.
-    if (sipIsErr == NULL)
-    {
-        // Check it is a list.
-        if (!PyList_Check(sipPy))
-            return 0;
-
-        // Now check each element of the list is of the type we expect.
-        // The template is for a pointer type so we don't disallow None.
-        for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
-            if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy, i),
-                                         sipClass_Type, 0))
-                return 0;
-
-        return 1;
-    }
-
-    // Create the instance on the heap.
-    QList<Type *> *ql = new QList<Type *>;
-
-    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
-    {
-        // Use the SIP API to convert the Python object to the
-        // corresponding C++ instance.  Note that we apply any ownership
-        // transfer to the list itself, not the individual elements.
-        Type *t = reinterpret_cast<Type *>(sipConvertToInstance(
-                                            PyList_GET_ITEM(sipPy, i),
-                                            sipClass_Type, 0, 0, 0,
-                                            sipIsErr));
-
-        if (*sipIsErr)
-        {
-            // Tidy up.
-            delete ql;
-
-            // There is nothing on the heap.
-            return 0;
-        }
-
-        // Add the pointer to the C++ instance.
-        ql -> append(t);
-    }
-
-    // Return the instance on the heap.
-    *sipCppPtr = ql;
-
-    // Apply the normal transfer.
-    return sipGetState(sipTransferObj);
-%End
-
-%ConvertFromTypeCode
-    PyObject *l;
-
-    // Create the Python list of the correct length.
-    if ((l = PyList_New(sipCpp -> size())) == NULL)
-        return NULL;
-
-    // Go through each element in the C++ instance and convert it to the
-    // corresponding Python object.
-    for (int i = 0; i < sipCpp -> size(); ++i)
-    {
-        Type *t = sipCpp -> at(i);
-        PyObject *tobj;
-
-        if ((tobj = sipConvertFromInstance(t, sipClass_Type, sipTransferObj)) == NULL)
-        {
-            // There was an error so garbage collect the Python list.
-            Py_DECREF(l);
-            return NULL;
-        }
-
-        PyList_SET_ITEM(l, i, tobj);
-    }
-
-    // Return the Python list.
-    return l;
-%End
-}
-
-

Using this we can use, for example, QList<TQObject *> throughout the -module's specification files (and in any module that imports this one). The -generated code will automatically map this to and from a Python list of QObject -instances when appropriate.

-
-
-

7.25   %MethodCode

-
-%MethodCode
-    code
-%End
-
-

This directive is used as part of the specification of a global function, class -method, operator, constructor or destructor to specify handwritten code that -replaces the normally generated call to the function being wrapped. It is -usually used to handle argument types and results that SIP cannot deal with -automatically.

-

The specified code is embedded in-line after the function's arguments have -been successfully converted from Python objects to their C or C++ equivalents. -The specified code must not include any return statements.

-

In the context of a destructor the specified code is embedded in-line in the -Python type's deallocation function. Unlike other contexts it supplements -rather than replaces the normally generated code, so it must not include code -to return the C structure or C++ class instance to the heap. The code is only -called if ownership of the structure or class is with Python.

-

The specified code must also handle the Python Global Interpreter Lock (GIL). -If compatibility with SIP v3.x is required then the GIL must be released -immediately before the C++ call and reacquired immediately afterwards as shown -in this example fragment:

-
-Py_BEGIN_ALLOW_THREADS
-sipCpp -> foo();
-Py_END_ALLOW_THREADS
-
-

If compatibility with SIP v3.x is not required then this is optional but -should be done if the C++ function might block the current thread or take a -significant amount of time to execute. (See The Python Global Interpreter -Lock and the ReleaseGIL and HoldGIL annotations.)

-

The following variables are made available to the handwritten code:

-
-
type a0
-

There is a variable for each argument of the Python signature (excluding -any self argument) named a0, a1, etc. The type of the -variable is the same as the type defined in the specification with the -following exceptions:

-
    -
  • if the argument is only used to return a value (e.g. it is an int * -without an In annotation) then the type has one less level of -indirection (e.g. it will be an int)
  • -
  • if the argument is a structure or class (or a reference or a pointer to a -structure or class) then type will always be a pointer to the structure -or class.
  • -
-

Note that handwritten code for destructors never has any arguments.

-
-
PyObject *a0Wrapper
-
This variable is made available only if the corresponding argument wraps a -C structure or C++ class instance and the GetWrapper annotation is -specified. The variable is a pointer to the Python object that wraps the -argument.
-
type *sipCpp
-
If the directive is used in the context of a class constructor then this -must be set by the handwritten code to the constructed instance. In any -other context then this is a pointer to the C structure or C++ class -instance. Its type is a pointer to the structure or class.
-
int sipIsErr
-

The handwritten code should set this to a non-zero value, and raise an -appropriate Python exception, if an error is detected.

-

sipIsErr is not provided for destructors.

-
-
type sipRes
-

The handwritten code should set this to the result to be returned. The -type of the variable is the same as the type defined in the Python -signature in the specification with the following exception:

-
    -
  • if the argument is a structure or class (or a reference or a pointer to a -structure or class) then type will always be a pointer to the structure -or class.
  • -
-

sipRes is not provided for inplace operators (e.g. += or -__imul__) as their results are handled automatically, nor for class -constructors.

-
-
PyObject *sipSelf
-
If the directive is used in the context of a class constructor or method -then this is the Python object that wraps the the structure or class -instance, i.e. self.
-
bool sipSelfWasArg
-

This is only made available for non-abstract, virtual methods. It is set -if self was explicitly passed as the first argument of the method -rather than being bound to the method. In other words, the call was:

-
-Klass.foo(self, ...)
-
-

rather than:

-
-self.foo(...)
-
-
-
-

The following is a complete example:

-
-class Klass
-{
-public:
-    virtual int foo(SIP_PYTUPLE);
-%MethodCode
-        // The C++ API takes a 2 element array of integers but passing a
-        // two element tuple is more Pythonic.
-
-        int iarr[2];
-
-        if (PyArg_ParseTuple(a0, "ii", &iarr[0], &iarr[1]))
-        {
-            Py_BEGIN_ALLOW_THREADS
-            sipRes = sipSelfWasArg ? sipCpp -> Klass::foo(iarr)
-                                   : sipCpp -> foo(iarr);
-            Py_END_ALLOW_THREADS
-        }
-        else
-        {
-            // PyArg_ParseTuple() will have raised the exception.
-            sipIsErr = 1;
-        }
-%End
-};
-
-

As the example is a virtual method [7], note the use of sipSelfWasArg to -determine exactly which implementation of foo() to call.

-

If a method is in the protected section of a C++ class then the call -should instead be:

-
-sipRes = sipCpp -> sipProtectVirt_foo(sipSelfWasArg, iarr);
-
-

If a method is in the protected section of a C++ class but is not virtual -then the call should instead be:

-
-sipRes = sipCpp -> sipProtect_foo(iarr);
-
- - - - - -
[7]See %VirtualCatcherCode for a description of how SIP generated code -handles the reimplementation of C++ virtual methods in Python.
-
-
-

7.26   %Module

-
-%Module name [version]
-
-

This directive is used to identify that the library being wrapped is a C++ -library and to define the name of the module and it's optional version number.

-

The name may contain periods to specify that the module is part of a Python -package.

-

The optional version number is useful if you (or others) might create other -modules that build on this module, i.e. if another module might %Import -this module. Under the covers, a module exports an API that is used by modules -that %Import it and the API is given a version number. A module built on -that module knows the version number of the API that it is expecting. If, -when the modules are imported at run-time, the version numbers do not match -then a Python exception is raised. The dependent module must then be re-built -using the correct specification files for the base module.

-

The version number should be incremented whenever a module is changed. Some -changes don't affect the exported API, but it is good practice to change the -version number anyway.

-

For example:

-
-%Module qt 5
-
-
-
-

7.27   %ModuleCode

-
-%ModuleCode
-    code
-%End
-
-

This directive is used to specify handwritten code, typically the -implementations of utility functions, that can be called by other handwritten -code in the module.

-

For example:

-
-%ModuleCode
-// Print an object on stderr for debugging purposes.
-void dump_object(PyObject *o)
-{
-    PyObject_Print(o, stderr, 0);
-    fprintf(stderr, "\n");
-}
-%End
-
-

See also %ExportedHeaderCode and %ModuleHeaderCode.

-
-
-

7.28   %ModuleHeaderCode

-
-%ModuleHeaderCode
-    code
-%End
-
-

This directive is used to specify handwritten code, typically the declarations -of utility functions, that is placed in a header file that is included by all -generated code for the same module.

-

For example:

-
-%ModuleHeaderCode
-void dump_object(PyObject *o);
-%End
-
-

See also %ExportedHeaderCode and %ModuleCode.

-
-
-

7.29   %OptionalInclude

-
-%OptionalInclude filename
-
-

This directive is identical to the %Include directive except that SIP -silently continues processing if filename could not be opened.

-

For example:

-
-%OptionalInclude license.sip
-
-
-
-

7.30   %Platforms

-
-%Platforms {name name ...}
-
-

This directive is used to declare a set of platforms. Platforms (along with -%Feature and %Timeline) are used by the %If directive to control -whether or not parts of a specification are processed or ignored.

-

Platforms are mutually exclusive - only one platform can be enabled at a time. -By default all platforms are disabled. The SIP -t command line option is -used to enable a platform.

-

For example:

-
-%Platforms {WIN32_PLATFORM POSIX_PLATFORM MACOS_PLATFORM}
-
-%If (WIN32_PLATFORM)
-void undocumented();
-%End
-
-%If (POSIX_PLATFORM)
-void documented();
-%End
-
-
-
-

7.31   %PostInitialisationCode

-
-%PostInitialisationCode
-    code
-%End
-
-

This directive is used to specify handwritten code that is embedded in-line -at the very end of the generated module initialisation code.

-

The following variables are made available to the handwritten code:

-
-
PyObject *sipModule
-
This is the module object returned by Py_InitModule().
-
PyObject *sipModuleDict
-
This is the module's dictionary object returned by Py_ModuleGetDict().
-
-

For example:

-
-%PostInitialisationCode
-    // The code will be executed when the module is first imported and
-    // after all other initialisation has been completed.
-%End
-
-
-
-

7.32   %PreInitialisationCode

-
-%PreInitialisationCode
-    code
-%End
-
-

This directive is used to specify handwritten code that is embedded in-line -at the very start of the generated module initialisation code.

-

For example:

-
-%PreInitialisationCode
-    // The code will be executed when the module is first imported and
-    // before other initialisation has been completed.
-%End
-
-
-
-

7.33   %RaiseCode

-
-%RaiseCode
-    code
-%End
-
-

This directive is used as part of the definition of an exception using the -%Exception directive to specify handwritten code that raises a Python -exception when a C++ exception has been caught. The code is embedded in-line -as the body of a C++ catch () clause.

-

The specified code must handle the Python Global Interpreter Lock (GIL) if -necessary. The GIL must be acquired before any calls to the Python API and -released after the last call as shown in this example fragment:

-
-SIP_BLOCK_THREADS
-PyErr_SetNone(PyErr_Exception);
-SIP_UNBLOCK_THREADS
-
-

Finally, the specified code must not include any return statements.

-

The following variable is made available to the handwritten code:

-
-
type &sipExceptionRef
-
This is a reference to the caught C++ exception. The type of the -reference is the same as the type defined in the throw () specifier.
-
-

See the %Exception directive for an example.

-
-
-

7.34   %SetCode

-
-%SetCode
-    code
-%End
-
-

This directive is used after the declaration of a C++ class variable or C -structure member to specify handwritten code to convert it from a Python -object. It is usually used to handle types that SIP cannot deal with -automatically.

-

The following variables are made available to the handwritten code:

-
-
type *sipCpp
-
This is a pointer to the structure or class instance. Its type is a -pointer to the structure or class. It is not made available if the -variable being wrapped is a static class variable.
-
int sipErr
-
If the conversion failed then the handwritten code should raise a Python -exception and set this to a non-zero value. Its initial value will be -automatically set to zero.
-
PyObject *sipPy
-
This is the Python object that the handwritten code should convert.
-
-

See the %GetCode directive for an example.

-
-
-

7.35   %SIPOptions

-

This directive sets one or more options that controls different aspects of -SIP's behaviour. In this version all the available options are provided -specifically to support PyQt and so are not documented.

-
-
-

7.36   %Timeline

-
-%Timeline {name name ...}
-
-

This directive is used to declare a set of versions released over a period of -time. Versions (along with %Feature and %Platforms) are used by the -%If directive to control whether or not parts of a specification are -processed or ignored.

-

Versions are mutually exclusive - only one version can be enabled at a time. -By default all versions are disabled. The SIP -t command line option is -used to enable a version.

-

For example:

-
-%Timeline {V1_0 V1_1 V2_0 V3_0}
-
-%If (V1_0 - V2_0)
-void foo();
-%End
-
-%If (V2_0 -)
-void foo(int = 0);
-%End
-
-

%Timeline can be used any number of times in a module to allow multiple -libraries to be wrapped in the same module.

-
-
-

7.37   %TypeCode

-
-%TypeCode
-    code
-%End
-
-

This directive is used as part of the specification of a C structure or a C++ -class to specify handwritten code, typically the implementations of utility -functions, that can be called by other handwritten code in the structure or -class.

-

For example:

-
-class Klass
-{
-%TypeCode
-// Print an instance on stderr for debugging purposes.
-static void dump_klass(const Klass *k)
-{
-    fprintf(stderr,"Klass %s at %p\n", k -> name(), k);
-}
-%End
-
-    // The rest of the class specification.
-
-};
-
-

Because the scope of the code is normally within the generated file that -implements the type, any utility functions would normally be declared -static. However a naming convention should still be adopted to prevent -clashes of function names within a module in case the SIP -j command line -option is used.

-
-
-

7.38   %TypeHeaderCode

-
-%TypeHeaderCode
-    code
-%End
-
-

This directive is used to specify handwritten code that defines the interface -to a C or C++ type being wrapped, either a structure, a class, or a template. -It is used within a class definition or a %MappedType directive.

-

Normally code will be a pre-processor #include statement.

-

For example:

-
-// Wrap the Klass class.
-class Klass
-{
-%TypeHeaderCode
-#include <klass.h>
-%End
-
-    // The rest of the class specification.
-};
-
-
-
-

7.39   %UnitCode

-
-%UnitCode
-    code
-%End
-
-

This directive is used to specify handwritten code that it included at the very -start of a generated compilation unit (ie. C or C++ source file). It is -typically used to #include a C++ precompiled header file.

-
-
-

7.40   %VirtualCatcherCode

-
-%VirtualCatcherCode
-    code
-%End
-
-

For most classes there are corresponding generated derived classes that -contain reimplementations of the class's virtual methods. These methods (which -SIP calls catchers) determine if there is a corresponding Python -reimplementation and call it if so. If there is no Python reimplementation -then the method in the original class is called instead.

-

This directive is used to specify handwritten code that replaces the normally -generated call to the Python reimplementation and the handling of any returned -results. It is usually used to handle argument types and results that SIP -cannot deal with automatically.

-

This directive can also be used in the context of a class destructor to -specify handwritten code that is embedded in-line in the internal derived -class's destructor.

-

In the context of a method the Python Global Interpreter Lock (GIL) is -automatically acquired before the specified code is executed and automatically -released afterwards.

-

In the context of a destructor the specified code must handle the GIL. The -GIL must be acquired before any calls to the Python API and released after the -last call as shown in this example fragment:

-
-SIP_BLOCK_THREADS
-Py_DECREF(obj);
-SIP_UNBLOCK_THREADS
-
-

The following variables are made available to the handwritten code in the -context of a method:

-
-
type a0
-
There is a variable for each argument of the C++ signature named a0, -a1, etc. The type of the variable is the same as the type defined in -the specification.
-
int sipIsErr
-
The handwritten code should set this to a non-zero value, and raise an -appropriate Python exception, if an error is detected.
-
PyObject *sipMethod
-
This object is the Python reimplementation of the virtual C++ method. It -is normally passed to sipCallMethod().
-
type sipRes
-
The handwritten code should set this to the result to be returned. The -type of the variable is the same as the type defined in the C++ signature -in the specification.
-
-

No variables are made available in the context of a destructor.

-

For example:

-
-class Klass
-{
-public:
-    virtual int foo(SIP_PYTUPLE) [int (int *)];
-%MethodCode
-        // The C++ API takes a 2 element array of integers but passing a
-        // two element tuple is more Pythonic.
-
-        int iarr[2];
-
-        if (PyArg_ParseTuple(a0, "ii", &iarr[0], &iarr[1]))
-        {
-            Py_BEGIN_ALLOW_THREADS
-            sipRes = sipCpp -> Klass::foo(iarr);
-            Py_END_ALLOW_THREADS
-        }
-        else
-        {
-            // PyArg_ParseTuple() will have raised the exception.
-            sipIsErr = 1;
-        }
-%End
-%VirtualCatcherCode
-        // Convert the 2 element array of integers to the two element
-        // tuple.
-
-        PyObject *result;
-
-        result = sipCallMethod(&sipIsErr, sipMethod, "ii", a0[0], a0[1]);
-
-        if (result != NULL)
-        {
-            // Convert the result to the C++ type.
-            sipParseResult(&sipIsErr, sipMethod, result, "i", &sipRes);
-
-            Py_DECREF(result);
-        }
-%End
-};
-
-
-
-
-

8   SIP Annotations

-

In this section we describe each of the annotations that can be used in -specification files.

-

Annotations can either be argument annotations, class annotations, enum -annotations, exception annotations, function annotations, license annotations, -or variable annotations depending on the context in which they can be used.

-

Annotations are placed between forward slashes (/). Multiple annotations -are comma separated within the slashes.

-

Annotations have a type and, possibly, a value. The type determines the -format of the value. The name of an annotation and its value are separated by -=.

-

Annotations can have one of the following types:

-
-
boolean
-
This type of annotation has no value and is implicitly true.
-
name
-
The value is a name that is compatible with a C/C++ identifier. In some -cases the value is optional.
-
string
-
The value is a double quoted string.
-
-

The following example shows argument and function annotations:

-
-void exec(TQWidget * /Transfer/) /ReleaseGIL, PyName=call_exec/;
-
-

Note that the current version of SIP does not complain about unknown -annotations, or annotations used out of their correct context.

-
-

8.1   Argument Annotations

-
-

8.1.1   AllowNone

-

This boolean annotation specifies that the value of the corresponding argument -(which should be either SIP_PYCALLABLE, SIP_PYDICT, SIP_PYLIST, -SIP_PYSLICE, SIP_PYTUPLE or SIP_PYTYPE) may be None.

-
-
-

8.1.2   Array

-

This boolean annotation specifies that the corresponding argument (which -should be either char * or unsigned char *) refers to an array -rather than a '\0' terminated string. There must be a corresponding -argument with the ArraySize annotation specified. The annotation may only be -specified once in a list of arguments.

-
-
-

8.1.3   ArraySize

-

This boolean annotation specifies that the corresponding argument (which -should be either short, unsigned short, int, unsigned, -long or unsigned long) refers to the size of an array. There must be -a corresponding argument with the Array annotation specified. The annotation -may only be specified once in a list of arguments.

-
-
-

8.1.4   Constrained

-

Python will automatically convert between certain compatible types. For -example, if a floating pointer number is expected and an integer supplied, -then the integer will be converted appropriately. This can cause problems -when wrapping C or C++ functions with similar signatures. For example:

-
-// The wrapper for this function will also accept an integer argument
-// which Python will automatically convert to a floating point number.
-void foo(double);
-
-// The wrapper for this function will never get used.
-void foo(int);
-
-

This boolean annotation specifies that the corresponding argument (which -should be either bool, int, float, double or a wrapped class) -must match the type without any automatic conversions. In the context of a -wrapped class the invocation of any %ConvertToTypeCode is suppressed.

-

The following example gets around the above problem:

-
-// The wrapper for this function will only accept floating point numbers.
-void foo(double /Constrained/);
-
-// The wrapper for this function will be used for anything that Python can
-// convert to an integer, except for floating point numbers.
-void foo(int);
-
-
-
-

8.1.5   GetWrapper

-

This boolean annotation is only ever used in conjunction with handwritten code -specified with the %MethodCode directive. It causes an extra variable to -be generated for the corresponding argument (which should be a wrapped C -structure or C++ class instance) which is a pointer to the Python object that -wraps the argument.

-

See the %MethodCode directive for more detail.

-
-
-

8.1.6   In

-

This boolean annotation is used to specify that the corresponding argument -(which should be a pointer type) is used to pass a value to the function.

-

For pointers to wrapped C structures or C++ class instances, char * and -unsigned char * then this annotation is assumed unless the Out annotation -is specified.

-

For pointers to other types then this annotation must be explicitly specified -if required. The argument will be dereferenced to obtain the actual value.

-

Both In and Out may be specified for the same argument.

-
-
-

8.1.7   Out

-

This boolean annotation is used to specify that the corresponding argument -(which should be a pointer type) is used by the function to return a value as -an element of a tuple.

-

For pointers to wrapped C structures or C++ class instances, char * and -unsigned char * then this annotation must be explicitly specified if -required.

-

For pointers to other types then this annotation is assumed unless the In -annotation is specified.

-

Both In and Out may be specified for the same argument.

-
-
-

8.1.8   Transfer

-

This boolean annotation is used to specify that ownership of the corresponding -argument (which should be a wrapped C structure or C++ class instance) is -transferred from Python to C++. In addition, if the argument is of a class -method, then it is associated with the class instance with regard to the -cyclic garbage collector.

-

See Ownership of Objects for more detail.

-
-
-

8.1.9   TransferBack

-

This boolean annotation is used to specify that ownership of the corresponding -argument (which should be a wrapped C structure or C++ class instance) is -transferred back to Python from C++. In addition, any association of the -argument with regard to the cyclic garbage collector with another instance is -removed.

-

Note that this can also be used as a function annotation.

-

See Ownership of Objects for more detail.

-
-
-

8.1.10   TransferThis

-

This boolean annotation is only used in C++ constructors or methods. In the -context of a constructor or factory method it specifies that ownership of the -instance being created is transferred from Python to C++ if the corresponding -argument (which should be a wrapped C structure or C++ class instance) is not -None. In addition, the newly created instance is associated with the -argument with regard to the cyclic garbage collector.

-

In the context of a non-factory method it specifies that ownership of this -is transferred from Python to C++ if the corresponding argument is not -None. If it is None then ownership is transferred to Python.

-

The annotation may be used more that once, in which case ownership is -transferred to last instance that is not None.

-

See Ownership of Objects for more detail.

-
-
-
-

8.2   Class Annotations

-
-

8.2.1   Abstract

-

This boolean annotation is used to specify that the class has additional pure -virtual methods that have not been specified and so it cannot be instantiated -or sub-classed from Python.

-
-
-

8.2.2   DelayDtor

-

This boolean annotation is used to specify that the class's destructor should -not be called until the Python interpreter exits. It would normally only be -applied to singleton classes.

-

When the Python interpreter exits the order in which any wrapped instances are -garbage collected is unpredictable. However, the underlying C or C++ instances -may need to be destroyed in a certain order. If this annotation is specified -then when the wrapped instance is garbage collected the C or C++ instance is -not destroyed but instead added to a list of delayed instances. When the -interpreter exits then the function sipDelayedDtors is called with the -list of delayed instances. sipDelayedDtors can then choose to call (or -ignore) the destructors in any desired order.

-

The sipDelayedDtors function must be specified using the %ModuleCode -directive. It's signature is as follows:

-
-static void sipDelayedDtors(const sipDelayedDtor *dd_list);
-
-

dd_list is the linked list of delayed instances. The following fields are -defined.

-
-
const char *dd_name
-
This is the name of the class excluding any package or module name.
-
void *dd_ptr
-
This is the address of the C or C++ instance to be destroyed. It's exact -type depends on the value of dd_isderived.
-
int dd_isderived
-
This is non-zero if the type of dd_ptr is actually the generated -derived class. This allows the correct destructor to be called. See -Generated Derived Classes.
-
sipDelayedDtor *dd_next
-
This is the address of the next entry in the list or zero if this is the -last one.
-
-

Note that the above applies only to C and C++ instances that are owned by -Python.

-
-
-

8.2.3   External

-

This boolean annotation is used to specify that the class is defined in another -module. Declarations of external classes are private to the module in which -they appear.

-
-
-

8.2.4   NoDefaultCtors

-

This boolean annotation is used to suppress the automatic generation of default -constructors for the class.

-
-
-

8.2.5   PyName

-

This name annotation specifies an alternative name for the class being wrapped -which is used when it is referred to from Python. It is required when a class -name is the same as a Python keyword. It may also be used to avoid name -clashes with other objects (e.g. enums, exceptions, functions) that have the -same name in the same C++ scope.

-
-
-
-

8.3   Enum Annotations

-
-

8.3.1   PyName

-

This name annotation specifies an alternative name for the enum or enum member -being wrapped which is used when it is referred to from Python. It is required -when an enum or enum member name is the same as a Python keyword. It may also -be used to avoid name clashes with other objects (e.g. classes, exceptions, -functions) that have the same name in the same C++ scope.

-
-
-
-

8.4   Exception Annotations

-
-

8.4.1   PyName

-

This name annotation specifies an alternative name for the exception being -defined which is used when it is referred to from Python. It is required when -an exception name is the same as a Python keyword. It may also be used to -avoid name clashes with other objects (e.g. classes, enums, functions) that -have the same name.

-
-
-
-

8.5   Function Annotations

-
-

8.5.1   AutoGen

-

This optional name annotation is used with class methods to specify that the -method be automatically included in all sub-classes. The value is the name of -a feature (specified using the %Feature directive) which must be enabled -for the method to be generated.

-
-
-

8.5.2   Default

-

This boolean annotation is only used with C++ constructors. Sometimes SIP -needs to create a class instance. By default it uses a constructor with no -compulsory arguments if one is specified. (SIP will automatically generate a -constructor with no arguments if no constructors are specified.) This -annotation is used to explicitly specify which constructor to use. Zero is -passed as the value of any arguments to the constructor.

-
-
-

8.5.3   Factory

-

This boolean annotation specifies that the value returned by the function -(which should be a wrapped C structure or C++ class instance) is a newly -created instance and is owned by Python.

-

See Ownership of Objects for more detail.

-
-
-

8.5.4   HoldGIL

-

This boolean annotation specifies that the Python Global Interpreter Lock (GIL) -is not released before the call to the underlying C or C++ function. See -The Python Global Interpreter Lock and the ReleaseGIL annotation.

-
-
-

8.5.5   NewThread

-

This boolean annotation specifies that the function will create a new thread.

-
-
-

8.5.6   NoDerived

-

This boolean annotation is only used with C++ constructors. In many cases SIP -generates a derived class for each class being wrapped (see Generated Derived -Classes). This derived class contains constructors with the same C++ -signatures as the class being wrapped. Sometimes you may want to define a -Python constructor that has no corresponding C++ constructor. This annotation -is used to suppress the generation of the constructor in the derived class.

-
-
-

8.5.7   Numeric

-

This boolean annotation specifies that the operator should be interpreted as a -numeric operator rather than a sequence operator. Python uses the + -operator for adding numbers and concatanating sequences, and the * operator -for multiplying numbers and repeating sequences. SIP tries to work out which -is meant by looking at other operators that have been defined for the type. -If it finds either -, -=, /, /=, % or %= defined then -it assumes that +, +=, * and *= should be numeric operators. -Otherwise, if it finds either [], __getitem__(), __setitem__() or -__delitem__() defined then it assumes that they should be sequence -operators. This annotation is used to force SIP to treat the operator as -numeric.

-
-
-

8.5.8   PostHook

-

This name annotation is used to specify the name of a Python builtin that is -called immediately after the call to the underlying C or C++ function or any -handwritten code. The builtin is not called if an error occurred. It is -primarily used to integrate with debuggers.

-
-
-

8.5.9   PreHook

-

This name annotation is used to specify the name of a Python builtin that is -called immediately after the function's arguments have been successfully -parsed and before the call to the underlying C or C++ function or any -handwritten code. It is primarily used to integrate with debuggers.

-
-
-

8.5.10   PyName

-

This name annotation specifies an alternative name for the function being -wrapped which is used when it is referred to from Python. It is required when -a function or method name is the same as a Python keyword. It may also be used -to avoid name clashes with other objects (e.g. classes, enums, exceptions) that -have the same name in the same C++ scope.

-
-
-

8.5.11   ReleaseGIL

-

This boolean annotation specifies that the Python Global Interpreter Lock (GIL) -is released before the call to the underlying C or C++ function and reacquired -afterwards. It should be used for functions that might block or take a -significant amount of time to execute. See The Python Global Interpreter -Lock and the HoldGIL annotation.

-
-
-

8.5.12   TransferBack

-

This boolean annotation specifies that ownership of the value returned by the -function (which should be a wrapped C structure or C++ class instance) is -transferred back to Python from C++. Normally returned values (unless they are -new references to already wrapped values) are owned by C++. In addition, any -association of the returned value with regard to the cyclic garbage collector -with another instance is removed.

-

Note that this can also be used as an argument annotation.

-

See Ownership of Objects for more detail.

-
-
-
-

8.6   License Annotations

-
-

8.6.1   Licensee

-

This optional string annotation specifies the license's licensee. No -restrictions are placed on the contents of the string.

-

See the %License directive.

-
-
-

8.6.2   Signature

-

This optional string annotation specifies the license's signature. No -restrictions are placed on the contents of the string.

-

See the %License directive.

-
-
-

8.6.3   Timestamp

-

This optional string annotation specifies the license's timestamp. No -restrictions are placed on the contents of the string.

-

See the %License directive.

-
-
-

8.6.4   Type

-

This string annotation specifies the license's type. No restrictions are -placed on the contents of the string.

-

See the %License directive.

-
-
-
-

8.7   Variable Annotations

-
-

8.7.1   PyName

-

This name annotation specifies an alternative name for the variable being -wrapped which is used when it is referred to from Python. It is required when -a variable name is the same as a Python keyword. It may also be used to avoid -name clashes with other objects (e.g. classes, functions) that have the same -name in the same C++ scope.

-
-
-
-
-

9   SIP API for Handwritten Code

-

In this section we describe the API that can be used by handwritten code in -specification files.

-
-

9.1   SIP_API_MAJOR_NR

-

This is a C preprocessor symbol that defines the major number of the SIP API. -Its value is a number. There is no direct relationship between this and the -SIP version number.

-
-
-

9.2   SIP_API_MINOR_NR

-

This is a C preprocessor symbol that defines the minor number of the SIP API. -Its value is a number. There is no direct relationship between this and the -SIP version number.

-
-
-

9.3   SIP_BLOCK_THREADS

-

This is a C preprocessor macro that will make sure the Python Global -Interpreter Lock (GIL) is acquired. Python API calls must only be made when -the GIL has been acquired. There must be a corresponding -SIP_UNBLOCK_THREADS at the same lexical scope.

-
-
-

9.4   SIP_SSIZE_T

-

This is a C preprocessor macro that is defined as Py_ssize_t for Python -v2.5 and later, and as int for earlier versions of Python. It makes it -easier to write PEP 353 compliant handwritten code.

-
-
-

9.5   SIP_UNBLOCK_THREADS

-

This is a C preprocessor macro that will restore the Python Global Interpreter -Lock (GIL) to the state it was prior to the corresponding SIP_BLOCK_THREADS.

-
-
-

9.6   SIP_VERSION

-

This is a C preprocessor symbol that defines the SIP version number -represented as a 3 part hexadecimal number (e.g. v4.0.0 is represented as -0x040000).

-
-
-

9.7   SIP_VERSION_STR

-

This is a C preprocessor symbol that defines the SIP version number -represented as a string. For development snapshots it will start with -snapshot-.

-
-
-

9.8   sipBadCatcherResult()

-
-
void sipBadCatcherResult(PyObject *method)
-
This raises a Python exception when the result of a Python reimplementation -of a C++ method doesn't have the expected type. It is normally called by -handwritten code specified with the %VirtualCatcherCode directive. -method is the Python method and would normally be the supplied -sipMethod.
-
-
-
-

9.9   sipBadLengthForSlice()

-
-
void sipBadLengthForSlice(SIP_SSIZE_T seqlen, SIP_SSIZE_T slicelen)
-
This raises a Python exception when the length of a slice object is -inappropriate for a sequence-like object. It is normally called by -handwritten code specified for __setitem__() methods. seqlen is the -length of the sequence. slicelen is the length of the slice. With -versions of Python prior to v2.5 the arguments have type int.
-
-
-
-

9.10   sipBuildResult()

-
-
PyObject *sipBuildResult(int *iserr, const char *format, ...)
-

This creates a Python object based on a format string and associated -values in a similar way to the Python Py_BuildValue() function. If -there was an error then NULL is returned and a Python exception is -raised. If iserr is not NULL then the location it points to is set -to a non-zero value. format is the string of format characters.

-

If format begins and ends with parentheses then a tuple of objects is -created. If format contains more than one format character then -parentheses must be specified.

-

In the following description the first letter is the format character, the -entry in parentheses is the Python object type that the format character -will create, and the entry in brackets are the types of the C/C++ values -to be passed.

-
-
a (string) [char *, int]
-
Convert a C/C++ character array and its length to a Python string. If -the array is NULL then the length is ignored and the result is -Py_None.
-
b (boolean) [int]
-
Convert a C/C++ int to a Python boolean.
-
c (string) [char]
-
Convert a C/C++ char to a Python string.
-
d (float) [double]
-
Convert a C/C++ double to a Python floating point number.
-
e (integer) [enum]
-
Convert an anonymous C/C++ enum to a Python integer.
-
f (float) [float]
-
Convert a C/C++ float to a Python floating point number.
-
h (integer) [short]
-
Convert a C/C++ short to a Python integer.
-
i (integer) [int]
-
Convert a C/C++ int to a Python integer.
-
l (long) [long]
-
Convert a C/C++ long to a Python integer.
-
m (long) [unsigned long]
-
Convert a C/C++ unsigned long to a Python long.
-
n (long) [long long]
-
Convert a C/C++ long long to a Python long.
-
o (long) [unsigned long long]
-
Convert a C/C++ unsigned long long to a Python long.
-
s (string) [char *]
-
Convert a C/C++ '\0' terminated string to a Python string. If the -string pointer is NULL then the result is Py_None.
-
t (long) [unsigned short]
-
Convert a C/C++ unsigned short to a Python long.
-
u (long) [unsigned int]
-
Convert a C/C++ unsigned int to a Python long.
-
w (unicode) [wchar_t]
-
Convert a C/C++ wide character to a Python unicode object.
-
x (unicode) [wchar_t *]
-
Convert a C/C++ L'\0' terminated wide character string to a Python -unicode object. If the string pointer is NULL then the result is -Py_None.
-
A (unicode) [wchar_t *, int]
-
Convert a C/C++ wide character array and its length to a Python unicode -object. If the array is NULL then the length is ignored and the -result is Py_None.
-
B (wrapped instance) [type *, sipWrapperType *, PyObject *]
-
Convert a new C structure or a new C++ class instance to a Python class -instance object. Ownership of the structure or instance is determined -by the PyObject * argument. If it is NULL and the instance has -already been wrapped then the ownership is unchanged. If it is -NULL or Py_None then ownership will be with Python. Otherwise -ownership will be with C/C++ and the instance associated with the -PyObject * argument. The Python class is influenced by any -applicable %ConvertToSubClassCode code.
-
C (wrapped instance) [type *, sipWrapperType *, PyObject *]
-
Convert a C structure or a C++ class instance to a Python class -instance object. If the structure or class instance has already been -wrapped then the result is a new reference to the existing class -instance object. Ownership of the structure or instance is determined -by the PyObject * argument. If it is NULL and the instance has -already been wrapped then the ownership is unchanged. If it is -NULL and the instance is newly wrapped then ownership will be with -C/C++. If it is Py_None then ownership is transferred to Python -via a call to sipTransferBack(). Otherwise ownership is transferred -to C/C++ and the instance associated with the PyObject * argument -via a call to sipTransferTo(). The Python class is influenced by -any applicable %ConvertToSubClassCode code.
-
D (object) [type *, const sipMappedType *, PyObject *]
-
Convert a C structure or a C++ class instance wrapped as a mapped type -to a Python object. Ownership of the structure or instance is -determined by the PyObject * argument. If it is NULL then the -ownership is unchanged. If it is Py_None then ownership is -transferred to Python via a call to sipTransferBack(). Otherwise -ownership is transferred to C/C++ and the instance associated with the -PyObject * argument via a call to sipTransferTo().
-
E (wrapped enum) [enum, PyTypeObject *]
-
Convert a named C/C++ enum to an instance of the corresponding -Python named enum type.
-
M (wrapped instance) [type *, sipWrapperType *]
-
Convert a C structure or a C++ class instance to a Python class -instance object. If the structure or class instance has already been -wrapped then the result is a new reference to the existing class -instance object. If the instance has already been wrapped then the -ownership is unchanged. If the instance is newly wrapped then -ownership will be with C/C++. The Python class is influenced by any -applicable %ConvertToSubClassCode code. This is deprecated from -SIP v4.4.
-
N (wrapped instance) [type *, sipWrapperType *]
-
Convert a C structure or a C++ class instance to a Python class -instance object. This should not be used if the structure or class -instance might already have been wrapped. Ownership of the structure -or instance will be with Python. The Python class is influenced by -any applicable %ConvertToSubClassCode code. This is deprecated -from SIP v4.4.
-
O (wrapped instance) [type *, sipWrapperType *]
-
Convert a C structure or a C++ class instance to a Python class -instance object. If the structure or class instance has already been -wrapped then the result is a new reference to the existing class -instance object. Ownership of the structure or instance will be with -C/C++. This is deprecated from SIP v4.4.
-
P (wrapped instance) [type *, sipWrapperType *]
-
Convert a C structure or a C++ class instance to a Python class -instance object. This should not be used if the structure or class -instance might already have been wrapped. Ownership of the structure -or instance will be with Python. This is deprecated from SIP v4.4.
-
R (object) [PyObject *]
-
The result is value passed without any conversions. The reference -count is unaffected, i.e. a reference is taken.
-
S (object) [PyObject *]
-
The result is value passed without any conversions. The reference -count is incremented.
-
T (object) [void *, PyObject *(*)(void *cppptr)]
-
Convert a C structure or a C++ class instance to a Python object using -a convertor function. See Generated Type Convertors. This is -deprecated from SIP v4.4.
-
V (sip.voidptr) [void *]
-
Convert a C/C++ void * Python sip.voidptr object.
-
-
-
-
-
-

9.11   sipCallMethod()

-
-
PyObject *sipCallMethod(int *iserr, PyObject *method, const char *format, ...)
-

This calls a Python method passing a tuple of arguments based on a format -string and associated values in a similar way to the Python -PyObject_CallObject() function. If there was an error then NULL is -returned and a Python exception is raised. If iserr is not NULL -then the location it points to is set to a non-zero value. method is the -Python bound method to call. format is the string of format characters -(see sipBuildResult()).

-

This is normally called by handwritten code specified with the -%VirtualCatcherCode directive with method being the supplied -sipMethod.

-
-
-
-
-

9.12   sipCanConvertToInstance()

-
-
int sipCanConvertToInstance(PyObject *obj, sipWrapperType *type, int flags)
-

This returns a non-zero value if a Python object can be converted to an -instance of a C structure or C++ class. obj is the Python object. -type is the generated type corresponding to the C/C++ type being checked. -flags is any combination of the following values used to fine tune the -check.

-
-
    -
  • SIP_NOT_NONE causes the check to fail if obj is None.
  • -
  • SIP_NO_CONVERTORS suppresses the use of of any -%ConvertToTypeCode for type.
  • -
-
-
-
-
-
-

9.13   sipCanConvertToMappedType()

-
-
int sipCanConvertToMappedType(PyObject *obj, const sipMappedType *mt, int flags)
-

This returns a non-zero value if a Python object can be converted to an -instance of a C structure or C++ class which has been implemented as a -mapped type. obj is the Python object. mt is an opaque structure -returned by sipFindMappedType(). flags is any combination of the -following values used to fine tune the check.

-
-
    -
  • SIP_NOT_NONE causes the check to fail if obj is None.
  • -
-
-
-
-
-
-

9.14   sipClassName()

-
-
PyObject *sipClassName(PyObject *obj)
-
This returns the class name of a wrapped instance as a Python string. It -comes with a reference.
-
-
-
-

9.15   sipConnectRx()

-
-
PyObject *sipConnectRx(PyObject *sender, const char *signal, PyObject *receiver, const char *slot, int type)
-
This connects a signal to a signal or slot and returns Py_True if the -signal was connected or Py_False if not. If there was some other -error then a Python exception is raised and NULL is returned. sender -is the wrapped TQObject derived instance that emits the signal. -signal is the typed name of the signal. receiver is the wrapped -TQObject derived instance or Python callable that the signal is -connected to. slot is the typed name of the slot, or NULL if -receiver is a Python callable. type is the type of connection and is -cast from Qt::ConnectionType. It is normally only used by PyQt to -implement TQObject.connect().
-
-
-
-

9.16   sipConvertFromInstance()

-
-
PyObject *sipConvertFromInstance(void *cpp, sipWrapperType *type, PyObject *transferObj)
-
Convert a C structure or a C++ class instance to a Python class instance -object. cpp is the C/C++ instance. If the instance has already been -wrapped then the result is a new reference to the existing instance object. -type is the generated type corresponding to the C/C++ type. -transferObj controls the ownership of the returned value. If the -structure or class instance has already been wrapped then the result is a -new reference to the existing class instance object. If it is NULL and -the instance has already been wrapped then the ownership is unchanged. If -it is NULL and the instance is newly wrapped then ownership will be -with C/C++. If it is Py_None then ownership is transferred to Python -via a call to sipTransferBack(). Otherwise ownership is transferred to -C/C++ and the instance associated with transferObj via a call to -sipTransferTo(). The Python class is influenced by any applicable -%ConvertToSubClassCode code.
-
-
-
-

9.17   sipConvertFromMappedType()

-
-
PyObject *sipConvertFromMappedType(void *cpp, const sipMappedType *mt, PyObject *transferObj)
-
Convert a C structure or a C++ class instance wrapped as a mapped type to a -Python object. cpp is the C/C++ instance. mt is the opaque structure -returned by sipFindMappedType(). transferObj controls any ownership -changes to obj. If it is NULL then the ownership is unchanged. If -it is Py_None then ownership is transferred to Python via a call to -sipTransferBack(). Otherwise ownership is transferred to C/C++ and the -instance associated with the PyObject * argument via a call to -sipTransferTo().
-
-
-
-

9.18   sipConvertFromNamedEnum()

-
-
PyObject *sipConvertFromNamedEnum(int eval, PyTypeObject *type)
-
Convert a named C/C++ enum to an instance of the corresponding Python -named enum type. eval is the enumerated value to convert. type is the -generated Python type object (see Generated Named Enum Type Objects).
-
-
-
-

9.19   sipConvertFromNewInstance()

-
-
PyObject *sipConvertFromNewInstance(void *cpp, sipWrapperType *type, PyObject *transferObj)
-
Convert a new C structure or a new C++ class instance to a Python class -instance object. cpp is the C/C++ instance. type is the generated -type corresponding to the C/C++ type. transferObj controls the ownership -of the returned value. If it is NULL or Py_None then ownership -will be with Python. Otherwise ownership will be with C/C++ and the -instance associated with transferObj. The Python class is influenced by -any applicable %ConvertToSubClassCode code.
-
-
-
-

9.20   sipConvertFromSequenceIndex()

-
-
SIP_SSIZE_T sipConvertFromSequenceIndex(SIP_SSIZE_T idx, SIP_SSIZE_T len)
-
This converts a Python sequence index (i.e. where a negative value refers -to the offset from the end of the sequence) to a C/C++ array index. If the -index was out of range then a negative value is returned and a Python -exception raised. With versions of Python prior to v2.5 the result and the -arguments have type int.
-
-
-
-

9.21   sipConvertFromSliceObject()

-
-
int sipConvertFromSliceObject(PyObject *slice, SIP_SSIZE_T length, SIP_SSIZE_T *start, SIP_SSIZE_T *stop, SIP_SSIZE_T *step, SIP_SSIZE_T *slicelength)
-
This is a thin wrapper around the Python PySlice_GetIndicesEx() -function provided to make it easier to write handwritten code that is -compatible with SIP v3.x and versions of Python earlier that v2.3.
-
-
-
-

9.22   sipConvertToCpp()

-
-
void *sipConvertToCpp(PyObject *obj, sipWrapperType *type, int *iserr)
-

This function is deprecated from SIP v4.4. It is equivalent to:

-
-sipConvertToInstance(obj, type, NULL, SIP_NO_CONVERTORS, NULL, iserr);
-
-
-
-
-
-

9.23   sipConvertToInstance()

-
-
void *sipConvertToInstance(PyObject *obj, sipWrapperType *type, PyObject *transferObj, int flags, int *state, int *iserr)
-

This converts a Python object to an instance of a C structure or C++ class -assuming that a previous call to sipCanConvertToInstance() has been -successful. obj is the Python object. type is the generated type -corresponding to the C/C++ type returned. It may be any class in the -object's class hierarchy. transferObj controls any ownership changes to -obj. If it is NULL then the ownership is unchanged. If it is -Py_None then ownership is transferred to Python via a call to -sipTransferBack(). Otherwise ownership is transferred to C/C++ and -obj associated with transferObj via a call to sipTransferTo(). -flags is any combination of the following values used to fine tune the -check.

-
-
    -
  • SIP_NOT_NONE causes the check to fail if obj is None.
  • -
  • SIP_NO_CONVERTORS suppresses the use of of any -%ConvertToTypeCode for type.
  • -
-
-

If state is not NULL then the location it points to is set to -describe the state of the returned C/C++ instance and is the value returned -by any %ConvertToTypeCode. The calling code must then release the value -at some point to prevent a memory leak by calling sipReleaseInstance(). -If there is an error then the location iserr points to is set to a -non-zero value. If it was initially a non-zero value then the conversion -isn't attempted in the first place. (This allows several calls to be made -that share the same error flag so that it only needs to be tested once -rather than after each call.)

-
-
-
-
-

9.24   sipConvertToMappedType()

-
-
void *sipConvertToMappedType(PyObject *obj, const sipMappedType *mt, PyObject *transferObj, int flags, int *state, int *iserr)
-

This converts a Python object to an instance of a C structure or C++ -class that is implemented as a mapped type assuming that a previous call to -sipCanConvertToMappedType() has been successful. obj is the Python -object. mt is the opaque structure returned by sipFindMappedType(). -transferObj controls any ownership changes to obj. If it is NULL -then the ownership is unchanged. If it is Py_None then ownership is -transferred to Python via a call to sipTransferBack(). Otherwise -ownership is transferred to C/C++ and obj associated with transferObj -via a call to sipTransferTo(). flags is any combination of the -following values used to fine tune the check.

-
-
    -
  • SIP_NOT_NONE causes the check to fail if obj is None.
  • -
-
-

If state is not NULL then the location it points to is set to -describe the state of the returned C/C++ instance and is the value returned -by any %ConvertToTypeCode. The calling code must then release the value -at some point to prevent a memory leak by calling -sipReleaseMappedType(). If there is an error then the location iserr -points to is set to a non-zero value. If it was initially a non-zero value -then the conversion isn't attempted in the first place. (This allows -several calls to be made that share the same error flag so that it only -needs to be tested once rather than after each call.)

-
-
-
-
-

9.25   sipDisconnectRx()

-
-
PyObject *sipDisconnectRx(PyObject *sender, const char *signal, PyObject *receiver, const char *slot)
-
This disconnects a signal from a signal or slot and returns Py_True if -the signal was disconnected or Py_False if not. If there was some -other error then a Python exception is raised and NULL is returned. -sender is the wrapped TQObject derived instance that emits the signal. -signal is the typed name of the signal. receiver is the wrapped -TQObject derived instance or Python callable that the signal is -connected to. slot is the typed name of the slot, or NULL if -receiver is a Python callable. It is normally only used by PyQt to -implement TQObject.disconnect().
-
-
-
-

9.26   sipEmitSignal()

-
-
int sipEmitSignal(PyObject *txobj, const char *signal, PyObject *args)
-
This emits a signal and returns zero if there was no error. If there was -an error then a Python exception is raised and a negative value is -returned. txobj is the wrapped TQObject derived instance that emits -the signal. signal is the typed name of the signal. args is a Python -tuple of the signal arguments. It is normally only used by PyQt to -implement TQObject.emit().
-
-
-
-

9.27   sipExportSymbol()

-
-
int sipExportSymbol(const char *name, void *sym)
-
Python does not allow extension modules to directly access symbols in -another extension module. This exports a symbol, referenced by a name, -that can subsequently be imported, using sipImportSymbol(), by another -module. name is the name of the symbol and sym is its value. Zero is -returned if there was no error. A negative value is returned if name is -already associated with a symbol or there was some other error.
-
-
-
-

9.28   sipFindClass()

-
-
sipWrapperType *sipFindClass(const char *type)
-
This returns a pointer to the generated type corresponding to a C/C++ type. -type is the C/C++ declaration of the type. NULL is returned if the -C/C++ type doesn't exist. The value of the pointer will not change and -may be saved in a static cache.
-
-
-
-

9.29   sipFindMappedType()

-
-
const sipMappedType *sipFindMappedType(const char *type)
-
This returns a pointer to an opaque structure describing a mapped type. -type is the C/C++ declaration of the type. NULL is returned if the -mapped type doesn't exist. The value of the pointer will not change and -may be saved in a static cache.
-
-
-
-

9.30   sipFindNamedEnum()

-
-
PyTypeObject *sipFindNamedEnum(const char *type)
-
This returns a pointer to the generated type corresponding to a named C/C++ -enum. type is the C/C++ declaration of the enum. NULL is returned -if the named C/C++ enum doesn't exist. The value of the pointer will not -change and may be saved in a static cache.
-
-
-
-

9.31   sipForceConvertToInstance()

-
-
void *sipForceConvertToInstance(PyObject *obj, sipWrapperType *type, PyObject *transferObj, int flags, int *state, int *iserr)
-
This converts a Python object to an instance of a C structure or C++ class -by calling sipCanConvertToInstance() and, if it is successfull, calling -sipConvertToInstance(). See sipConvertToInstance() for a full -description of the arguments.
-
-
-
-

9.32   sipForceConvertToMappedType()

-
-
void *sipForceConvertToMappedType(PyObject *obj, const sipMappedType *mt, PyObject *transferObj, int flags, int *state, int *iserr)
-
This converts a Python object to an instance of a C structure or C++ class -which has been implemented as a mapped type by calling -sipCanConvertToMappedType() and, if it is successfull, calling -sipConvertToMappedType(). See sipConvertToMappedType() for a full -description of the arguments.
-
-
-
-

9.33   sipFree()

-
-
void sipFree(void *mem)
-
This returns an area of memory allocated by sipMalloc() to the heap. -mem is a pointer to the area of memory.
-
-
-
-

9.34   sipGetSender()

-
-
const void *sipGetSender()
-
This returns a pointer to the last TQObject instance that emitted a Qt -signal. It is normally only used by PyQt to implement -TQObject.sender().
-
-
-
-

9.35   sipGetWrapper()

-
-
PyObject *sipGetWrapper(void *cppptr, sipWrapperType *type)
-
This returns a borrowed reference to the wrapped instance object for a C -structure or C++ class instance. If the structure or class instance -hasn't been wrapped then NULL is returned (and no Python exception is -raised). cppptr is the pointer to the structure or class instance. -type is the generated type corresponding to the C/C++ type.
-
-
-
-

9.36   sipImportSymbol()

-
-
void *sipImportSymbol(const char *name)
-
Python does not allow extension modules to directly access symbols in -another extension module. This imports a symbol, referenced by a name, -that has previously been exported, using sipExportSymbol(), by another -module. name is the name of the symbol. The value of the symbol is -returned if there was no error. NULL is returned if there is no such -symbol.
-
-
-
-

9.37   sipIntTypeClassMap

-

This C structure is used with sipMapIntToClass() to define a mapping -between integer based RTTI and generated type objects. The structure -elements are as follows.

-
-
int typeInt
-
The integer RTTI.
-
sipWrapperType **pyType.
-
A pointer to the corresponding Python type object.
-
-
-
-

9.38   sipIsSubClassInstance()

-
-
int sipIsSubClassInstance(PyObject *obj, sipWrapperType *type)
-

This function is deprecated from SIP v4.4. It is equivalent to:

-
-sipCanConvertToInstance(obj, type, SIP_NOT_NONE | SIP_NO_CONVERTORS);
-
-
-
-
-
-

9.39   sipLong_AsUnsignedLong()

-
-
unsigned long sipLong_AsUnsignedLong(PyObject *obj)
-
This function is a thin wrapper around PyLong_AsUnsignedLong() that works -around a bug in Python v2.3.x and earlier when converting integer objects.
-
-
-
-

9.40   sipMalloc()

-
-
void *sipMalloc(size_t nbytes)
-
This allocates an area of memory of size nytes on the heap using the -Python PyMem_Malloc() function. If there was an error then NULL is -returned and a Python exception raised. See sipFree().
-
-
-
-

9.41   sipMapIntToClass()

-
-
sipWrapperType *sipMapIntToClass(int type, const sipIntTypeClassMap *map, int maplen)
-
This is used in %ConvertToSubClassCode code as a convenient way of -converting integer based RTTI to the corresponding Python type object. -type is the RTTI. map is the table of known RTTI and the corresponding -type objects (see sipIntTypeClassMap). The entries in the table must be -sorted in ascending order of RTTI. maplen is the number of entries in -the table. The corresponding Python type object is returned, or NULL -if type wasn't in map.
-
-
-
-

9.42   sipMapStringToClass()

-
-
sipWrapperType *sipMapStringToClass(char *type, const sipStringTypeClassMap *map, int maplen)
-
This is used in %ConvertToSubClassCode code as a convenient way of -converting '\0' terminated string based RTTI to the corresponding -Python type object. type is the RTTI. map is the table of known RTTI -and the corresponding type objects (see sipStringTypeClassMap). The -entries in the table must be sorted in ascending order of RTTI. maplen -is the number of entries in the table. The corresponding Python type -object is returned, or NULL if type wasn't in map.
-
-
-
-

9.43   sipParseResult()

-
-
int sipParseResult(int *iserr, PyObject *method, PyObject *result, const char *format, ...)
-

This converts a Python object (usually returned by a method) to C/C++ based -on a format string and associated values in a similar way to the Python -PyArg_ParseTuple() function. If there was an error then a negative -value is returned and a Python exception is raised. If iserr is not -NULL then the location it points to is set to a non-zero value. -method is the Python bound method that returned the result object. -format is the string of format characters.

-

This is normally called by handwritten code specified with the -%VirtualCatcherCode directive with method being the supplied -sipMethod and result being the value returned by -sipCallMethod().

-

If format begins and ends with parentheses then result must be a Python -tuple and the rest of format is applied to the tuple contents.

-

In the following description the first letter is the format character, the -entry in parentheses is the Python object type that the format character -will convert, and the entry in brackets are the types of the C/C++ values -to be passed.

-
-
a (string) [char **, int *]
-
Convert a Python string to a C/C++ character array and its length. If -the Python object is Py_None then the array and length are NULL -and zero respectively.
-
b (integer) [bool *]
-
Convert a Python integer to a C/C++ bool.
-
c (string) [char *]
-
Convert a Python string of length 1 to a C/C++ char.
-
d (float) [double *]
-
Convert a Python floating point number to a C/C++ double.
-
e (integer) [enum *]
-
Convert a Python integer to an anonymous C/C++ enum.
-
f (float) [float *]
-
Convert a Python floating point number to a C/C++ float.
-
h (integer) [short *]
-
Convert a Python integer to a C/C++ short.
-
i (integer) [int *]
-
Convert a Python integer to a C/C++ int.
-
l (long) [long *]
-
Convert a Python long to a C/C++ long.
-
m (long) [unsigned long *]
-
Convert a Python long to a C/C++ unsigned long.
-
n (long) [long long *]
-
Convert a Python long to a C/C++ long long.
-
o (long) [unsigned long long *]
-
Convert a Python long to a C/C++ unsigned long long.
-
s (string) [char **]
-
Convert a Python string to a C/C++ '\0' terminated string. If the -Python object is Py_None then the string is NULL.
-
t (long) [unsigned short *]
-
Convert a Python long to a C/C++ unsigned short.
-
u (long) [unsigned int *]
-
Convert a Python long to a C/C++ unsigned int.
-
w (unicode) [wchar_t *]
-
Convert a Python unicode object of length 1 to a C/C++ wide character.
-
x (unicode) [wchar_t **]
-
Convert a Python unicode object to a C/C++ L'\0' terminated wide -character string. If the Python object is Py_None then the string -is NULL.
-
A (unicode) [wchar_t **, int *]
-
Convert a Python unicode object to a C/C++ wide character array and its -length. If the Python object is Py_None then the array and length -are NULL and zero respectively.
-
Cf (wrapped class) [sipWrapperType *, int *, void **]
-

Convert a Python object to a C structure or a C++ class instance and -return its state as described in sipConvertToInstance(). f is a -combination of the following flags encoded as an ASCII character by -adding 0 to the combined value:

-
-

0x01 disallows the conversion of Py_None to NULL

-

0x02 implements the Factory annotation

-
-
0x04 suppresses the return of the state of the returned C/C++
-
instance. Note that the int * used to return the state is -not passed if this flag is specified.
-
-
-
-
Df (mapped type) [const sipMappedType *, int *, void **]
-

Convert a Python object to a C structure or a C++ class instance -implemented as a mapped type and return its state as described in -sipConvertToMappedType(). f is a combination of the following -flags encoded as an ASCII character by adding 0 to the combined -value:

-
-

0x01 disallows the conversion of Py_None to NULL

-

0x02 implements the Factory annotation

-
-
0x04 suppresses the return of the state of the returned C/C++
-
instance. Note that the int * used to return the state is -not passed if this flag is specified.
-
-
-
-
E (wrapped enum) [PyTypeObject *, enum *]
-
Convert a Python named enum type to the corresponding C/C++ enum.
-
L (object) [type *(*)(PyObject *obj, int *iserr), void **]
-
Convert a Python object to a C structure or a C++ class instance using -a convertor function. See Generated Type Convertors. This is -deprecated from SIP v4.4.
-
M (object) [type *(*)(PyObject *obj, int *iserr), void **]
-
Convert a Python object to a C structure or a C++ class instance using -a convertor function. If the structure or class instance pointer is -NULL then return an error. See Generated Type Convertors. This -is deprecated from SIP v4.4.
-
N (object) [PyTypeObject *, PyObject **]
-
A Python object is checked to see if it is a certain type and then -returned without any conversions. The reference count is incremented. -The Python object may be Py_None.
-
O (object) [PyObject **]
-
A Python object is returned without any conversions. The reference -count is incremented.
-
T (object) [PyTypeObject *, PyObject **]
-
A Python object is checked to see if it is a certain type and then -returned without any conversions. The reference count is incremented. -The Python object may not be Py_None.
-
V (sip.voidptr) [void *]
-
Convert a Python sip.voidptr object to a C/C++ void *.
-
Z (object) []
-
Check that a Python object is Py_None. No value is returned.
-
-
-
-
-
-

9.44   sipReleaseInstance()

-
-
void sipReleaseInstance(void *cpp, sipWrapperType *type, int state)
-
This destroys a wrapped C/C++ instance if it was a temporary instance. It -is called after a call to either sipConvertToInstance() or -sipForceConvertToInstance(). cpp is the wrapped C/C++ instance. -type is the generated type corresponding to cpp. state describes the -state of the instance.
-
-
-
-

9.45   sipReleaseMappedType()

-
-
void sipReleaseMappedType(void *cpp, const sipMappedType *mt, int state)
-
This destroys a wrapped C/C++ mapped type if it was a temporary instance. -It is called after a call to either sipConvertToMappedType() or -sipForceConvertToMappedType(). cpp is the wrapped C/C++ instance. -mt is the opaque structure returned by sipFindMappedType(). state -describes the state of the instance.
-
-
-
-

9.46   sipStringTypeClassMap

-

This C structure is used with sipMapStringToClass() to define a mapping -between '\0' terminated string based RTTI and generated type objects. -The structure elements are as follows.

-
-
char *typeString
-
The '\0' terminated string RTTI.
-
sipWrapperType **pyType.
-
A pointer to the corresponding Python type object.
-
-
-
-

9.47   sipTransfer()

-
-
void sipTransfer(PyObject *obj, int tocpp)
-

This function is deprecated from SIP v4.3. If tocpp is non-zero then the -equivalent call is:

-
-sipTransferTo(obj, obj);
-
-

If tocpp is zero then the equivalent call is:

-
-sipTransferBack(obj);
-
-
-
-
-
-

9.48   sipTransferBack()

-
-
void sipTransferBack(PyObject *obj)
-
This transfers ownership of a Python wrapped instance to Python (see -Ownership of Objects). obj is the wrapped instance. In addition, -any association of the instance with regard to the cyclic garbage -collector with another instance is removed.
-
-
-
-

9.49   sipTransferTo()

-
-
void sipTransferTo(PyObject *obj, PyObject *owner)
-
This transfers ownership of a Python wrapped instance to C++ (see -Ownership of Objects). obj is the wrapped instance. owner is an -optional wrapped instance that obj becomes associated with with regard -to the cyclic garbage collector. If owner is NULL then no such -association is made. If owner is the same value as obj then any -reference cycles involving obj can never be detected or broken by the -cyclic garbage collector. Responsibility for calling the C++ instance's -destructor is always transfered to C++.
-
-
-
-

9.50   sipWrapper

-

This is a C structure that represents a Python wrapped instance. It is an -extension of the Python PyObject structure and so may be safely cast to -PyObject. It includes a member called user which is of type -PyObject *. This can be used for any purpose by handwritten code and will -automatically be garbage collected at the appropriate time.

-
-
-

9.51   sipWrapper_Check()

-
-
int sipWrapper_Check(PyObject *obj)
-
This returns a non-zero value if a Python object is a wrapped instance. -obj is the Python object.
-
-
-
-

9.52   sipWrapperType

-

This is a C structure that represents a SIP generated type object. It is an -extension of the Python PyTypeObject structure (which is itself an -extension of the Python PyObject structure) and so may be safely cast to -PyTypeObject (and PyObject).

-
-
-

9.53   Generated Type Convertors

-

These functions are deprecated from SIP v4.4.

-

SIP generates functions for all types being wrapped (including mapped types -defined with the %MappedType directive) that convert a Python object to the -C structure or C++ class instance. The name of this convertor is the name of -the structure or class prefixed by sipForceConvertTo_.

-
-
void *sipForceConvertTo_*class*(PyObject *obj, int *iserr)
-
obj is the Python object to convert. If obj is NULL or the -location pointed to by iserr is non-zero then the conversion is not -attempted and NULL is returned. If there was an error then the -location pointed to by iserr is set to a non-zero value, a Python -exception is raised, and NULL is returned.
-
-

SIP also generates functions for mapped types that convert a C structure or -C++ class instance to a Python object. The name of this convertor is the name -of the structure or class prefixed by sipConvertFrom_.

-
-
PyObject *sipConvertFrom_*class*(void *cppptr)
-
cppptr is a pointer to the C structure or C++ class instance to convert. -If there was an error then NULL is returned and a Python exception -raised.
-
-

The convertor functions of all imported types are available to handwritten -code.

-
-
-

9.54   Generated Type Objects

-

SIP generates a type object for each C structure or C++ class being wrapped. -These are sipWrapperType structures and are used extensively by the SIP API.

-

These objects are named with the structure or class name prefixed by -sipClass_. For example, the type object for class Klass is -sipClass_Klass.

-

The type objects of all imported classes are available to handwritten code.

-
-
-

9.55   Generated Named Enum Type Objects

-

SIP generates a type object for each named enum being wrapped. These are -PyTypeObject structures. (Anonymous enums are wrapped as Python integers.)

-

These objects are named with the fully qualified enum name (i.e. including any -enclosing scope) prefixed by sipEnum_. For example, the type object for -enum Enum defined in class Klass is sipEnum_Klass_Enum.

-

The type objects of all imported named enums are available to handwritten code.

-
-
-

9.56   Generated Derived Classes

-

For most C++ classes being wrapped SIP generates a derived class with the same -name prefixed by sip. For example, the derived class for class Klass -is sipKlass.

-

If a C++ class doesn't have any virtual or protected methods in it or any of -it's super-class hierarchy, or does not emit any Qt signals, then a derived -class is not generated.

-

Most of the time handwritten code should ignore the derived classes. The only -exception is that handwritten constructor code specified using the -%MethodCode directive should call the derived class's constructor (which -has the same C++ signature) rather then the wrapped class's constructor.

-
-
-

9.57   Generated Exception Objects

-

SIP generates a Python object for each exception defined with the %Exception_ -directive.

-

These objects are named with the fully qualified exception name (i.e. including -any enclosing scope) prefixed by sipException_. For example, the type -object for enum Except defined in class Klass is -sipException_Klass_Except.

-

The objects of all imported exceptions are available to handwritten code.

-
-
-
-

10   Using the SIP Module in Applications

-

The main purpose of the SIP module is to provide functionality common to all -SIP generated bindings. It is loaded automatically and most of the time you -will completely ignore it. However, it does expose some functionality that can -be used by applications.

-
-
cast(obj, type)
-
This does the Python equivalent of casting a C++ instance to one of its -sub or super-class types. obj is the Python object and type is the -type. A new Python object is returned that wraps the same C++ instance as -obj, but has the type type.
-
delete(obj)
-
For C++ instances this calls the C++ destructor. For C structures it -returns the structure's memory to the heap. obj is the Python object.
-
isdeleted(obj)
-
This returns True if the C++ instance or C structure has been destroyed or -returned to the heap. obj is the Python object.
-
setdeleted(obj)
-
This marks the C++ instance or C structure as having been destroyed or -returned to the heap so that future references to it raise an exception -rather than cause a program crash. Normally SIP handles such things -automatically, but there are circumstances where this isn't possible. -obj is the Python object.
-
settracemask(mask)
-

If the bindings have been created with SIP's -r command line option -then the generated code will produce debugging statements that trace the -execution of the code. (It is particularly useful when trying to -understand the operation of a C++ library's virtual function calls.)

-

Debugging statements are generated at the following points:

-
    -
  • in a C++ virtual function (mask is 0x0001)
  • -
  • in a C++ constructor (mask is 0x0002)
  • -
  • in a C++ destructor (mask is 0x0004)
  • -
  • in a Python type's __init__ method (mask is 0x0008)
  • -
  • in a Python type's __del__ method (mask is 0x0010)
  • -
  • in a Python type's ordinary method (mask is 0x0020).
  • -
-

By default the trace mask is zero and all debugging statements are -disabled.

-
-
SIP_VERSION
-
This is a Python integer object that represents the SIP version number as -a 3 part hexadecimal number (e.g. v4.0.0 is represented as 0x040000). -It was first implemented in SIP v4.2.
-
SIP_VERSION_STR
-
This is a Python string object that defines the SIP version number as -represented as a string. For development snapshots it will start with -snapshot-. It was first implemented in SIP v4.3.
-
transfer(obj, direction)
-

This function is deprecated from SIP v4.3. If direction is non-zero then -the equivalent call is:

-
-sip.transferto(obj, None)
-
-

If direction is zero then the equivalent call is:

-
-sip.transferback(obj)
-
-
-
transferback(obj)
-
This function is a wrapper around sipTransferBack().
-
transferto(obj, owner)
-
This function is a wrapper around sipTransferTo().
-
unwrapinstance(obj)
-
Return the address, as a number, of the wrapped C/C++ structure or class -instance obj.
-
voidptr
-

This is the type object for the type SIP uses to represent a C/C++ -void *. The type constructor takes a single argument that must either -be another voidptr, None, a Python CObject, or an integer. The -type has the following methods:

-
-
__int__()
-
This returns the pointer as an integer.
-
__hex__()
-
This returns the pointer as a hexadecimal string.
-
ascobject()
-
This returns the pointer as a Python CObject.
-
asstring(nbytes)
-
This returns a copy of the first nbytes of memory at the pointer as a -Python string.
-
-
-
wrapinstance(addr, type)
-
A C/C++ structure or class instance is wrapped and the Python object -created is returned. If the instance has already been wrapped then a new -reference to the existing object is returned. addr is the address of -the instance represented as a number. type is the type of the object -(e.g. qt.TQWidget).
-
wrapper
-
This is the type object of the base type of all instances wrapped by SIP.
-
wrappertype
-
This is the type object of the metatype of the wrapper type.
-
-
-
-

11   The SIP Build System

-

The purpose of the build system is to make it easy for you to write -configuration scripts in Python for your own bindings. The build system takes -care of the details of particular combinations of platform and compiler. It -supports over 50 different platform/compiler combinations.

-

The build system is implemented as a pure Python module called sipconfig -that contains a number of classes and functions. Using this module you can -write bespoke configuration scripts (e.g. PyQt's configure.py) or use it -with other Python based build systems (e.g. -Distutils and -SCons).

-

An important feature of SIP is the ability to generate bindings that are built -on top of existing bindings. For example, both -PyKDE and -PyQwt are built on top of PyQt but all three -packages are maintained by different developers. To make this easier PyQt -includes its own configuration module, pyqtconfig, that contains additional -classes intended to be used by the configuration scripts of bindings built on -top of PyQt. The SIP build system includes facilities that do a lot of the -work of creating these additional configuration modules.

-
-

11.1   sipconfig Functions

-
-
create_config_module(module, template, content, macros=None)
-

This creates a configuration module (e.g. pyqtconfig) from a template -file and a string.

-

module is the name of the configuration module file to create.

-

template is the name of the template file.

-

content is a string which replaces every occurence of the pattern -@SIP_CONFIGURATION@ in the template file. The content string is -usually created from a Python dictionary using -sipconfig.create_content(). content may also be a dictionary, in -which case sipconfig.create_content() is automatically called to -convert it to a string.

-

macros is an optional dictionary of platform specific build macros. It -is only used if sipconfig.create_content() is called automatically to -convert a content dictionary to a string.

-
-
create_content(dict, macros=None)
-

This converts a Python dictionary to a string that can be parsed by the -Python interpreter and converted back to an equivalent dictionary. It is -typically used to generate the content string for -sipconfig.create_config_module().

-

dict is the Python dictionary to convert.

-

macros is the optional dictionary of platform specific build macros.

-

Returns the dictionary as a string.

-
-
create_wrapper(script, wrapper, gui=0)
-

This creates a platform dependent executable wrapper around a Python -script.

-

script is the full pathname of the script.

-

wrapper is the pathname of the wrapper to create.

-

gui is non-zero if a GUI enabled version of the interpreter should be -used on platforms that require it.

-

Returns the platform specific name of the wrapper.

-
-
error(msg)
-

This displays an error message on stderr and calls sys.exit() with -a value of 1.

-

msg is the text of the message and should not include any newline -characters.

-
-
format(msg, leftmargin=0, rightmargin=78)
-

This formats a message by inserting newline characters at appropriate -places.

-

msg is the text of the message and should not include any newline -characters.

-

leftmargin is the optional position of the left margin.

-

rightmargin is the optional position of the right margin.

-
-
inform(msg)
-

This displays an information message on stdout.

-

msg is the text of the message and should not include any newline -characters.

-
-
parse_build_macros(filename, names, overrides=None, properties=None)
-

This parses a qmake compatible file of build system macros and converts it -to a dictionary. A macro is a name/value pair. The dictionary is returned -or None if any of the overrides was invalid.

-

filename is the name of the file to parse.

-

names is a list of the macro names to extract from the file.

-

overrides is an optional list of macro names and values that modify -those found in the file. They are of the form name=value (in which case -the value replaces the value found in the file) or name+=value (in which -case the value is appended to the value found in the file).

-

properties is an optional dictionary of property name and values that -are used to resolve any expressions of the form $[name] in the file.

-
-
read_version(filename, description, numdefine=None, strdefine=None)
-

This extracts version information for a package from a file, usually a C or -C++ header file. The version information must each be specified as a -#define of a numeric (hexadecimal or decimal) value and/or a string -value.

-

filename is the name of the file to read.

-

description is a descriptive name of the package used in error -messages.

-

numdefine is the optional name of the #define of the version as a -number. If it is None then the numeric version is ignored.

-

strdefine is the optional name of the #define of the version as a -string. If it is None then the string version is ignored.

-

Returns a tuple of the numeric and string versions. sipconfig.error() -is called if either were required but could not be found.

-
-
version_to_sip_tag(version, tags, description)
-

This converts a version number to a SIP version tag. SIP uses the -%Timeline directive to define the chronology of the different versions -of the C/C++ library being wrapped. Typically it is not necessary to -define a version tag for every version of the library, but only for those -versions that affect the library's API as SIP sees it.

-

version is the numeric version number of the C/C++ library being -wrapped. If it is negative then the latest version is assumed. (This is -typically useful if a snapshot is indicated by a negative version number.)

-

tags is the dictionary of SIP version tags keyed by the corresponding -C/C++ library version number. The tag used is the one with the smallest -key (i.e. earliest version) that is greater than version.

-

description is a descriptive name of the C/C++ library used in error -messages.

-

Returns the SIP version tag. sipconfig.error() is called if the C/C++ -library version number did not correspond to a SIP version tag.

-
-
version_to_string(v)
-

This converts a 3 part version number encoded as a hexadecimal value to a -string.

-

v is the version number.

-

Returns a string.

-
-
-
-
-

11.2   sipconfig Classes

-
-
Configuration
-

This class encapsulates configuration values that can be accessed as -instance objects. A sub-class may provide a dictionary of additional -configuration values in its constructor the elements of which will have -precedence over the super-class's values.

-

The following configuration values are provided:

-
-
-
default_bin_dir
-
The name of the directory where executables should be installed by -default.
-
default_mod_dir
-
The name of the directory where SIP generated modules should be -installed by default.
-
default_sip_dir
-
The name of the base directory where the .sip files for SIP -generated modules should be installed by default. A sub-directory -with the same name as the module should be created and its .sip -files should be installed in the sub-directory. The .sip -files only need to be installed if you might want to build other -bindings based on them.
-
platform
-
The name of the platform/compiler for which the build system has -been configured for.
-
py_conf_inc_dir
-
The name of the directory containing the pyconfig.h header -file.
-
py_inc_dir
-
The name of the directory containing the Python.h header file.
-
py_lib_dir
-
The name of the directory containing the Python interpreter -library.
-
py_version
-
The Python version as a 3 part hexadecimal number (e.g. v2.3.3 is -represented as 0x020303).
-
sip_bin
-
The full pathname of the SIP executable.
-
sip_config_args
-
The command line passed to configure.py when SIP was -configured.
-
sip_inc_dir
-
The name of the directory containing the sip.h header file.
-
sip_mod_dir
-
The name of the directory containing the SIP module.
-
sip_version
-
The SIP version as a 3 part hexadecimal number (e.g. v4.0.0 is -represented as 0x040000).
-
sip_version_str
-
The SIP version as a string. For development snapshots it will -start with snapshot-.
-
universal
-
The name of the MacOS/X SDK used when creating universal binaries.
-
-
-
-
__init__(self, sub_cfg=None)
-

Initialise the instance.

-

sub_cfg is an optional list of sub-class configurations. It should -only be used by the __init__() method of a sub-class to append its -own dictionary of configuration values before passing the list to its -super-class.

-
-
build_macros(self)
-
Return the dictionary of platform specific build macros.
-
set_build_macros(self, macros)
-
Set the dictionary of platform specific build macros to be use when -generating Makefiles. Normally there is no need to change the default -macros.
-
-
-
Makefile
-

This class encapsulates a Makefile. It is intended to be sub-classed to -generate Makefiles for particular purposes. It handles all platform and -compiler specific flags, but allows them to be adjusted to suit the -requirements of a particular module or program. These are defined using a -number of macros which can be accessed as instance objects.

-

The following instance objects are provided to help in fine tuning the -generated Makefile:

-
-
-
chkdir
-
A string that will check for the existence of a directory.
-
config
-
A reference to the configuration argument that was passed to -the constructor.
-
console
-
A reference to the console argument that was passed to the -constructor.
-
copy
-
A string that will copy a file.
-
extra_cflags
-
A list of additional flags passed to the C compiler.
-
extra_cxxflags
-
A list of additional flags passed to the C++ compiler.
-
extra_defines
-
A list of additional macro names passed to the C/C++ preprocessor.
-
extra_include_dirs
-
A list of additional include directories passed to the C/C++ -preprocessor.
-
extra_lflags
-
A list of additional flags passed to the linker.
-
extra_lib_dirs
-
A list of additional library directories passed to the linker.
-
extra_libs
-
A list of additional libraries passed to the linker. The names of -the libraries must be in platform neutral form (i.e. without any -platform specific prefixes, version numbers or extensions).
-
generator
-
A string that defines the platform specific style of Makefile. The -only supported values are UNIX and something else that is not -UNIX.
-
mkdir
-
A string that will create a directory.
-
rm
-
A string that will remove a file.
-
-
-
-
__init__(self, configuration, console=0, qt=0, opengl=0, python=0, threaded=0, warnings=None, debug=0, dir=None, makefile="Makefile", installs=None, universal='')
-

Initialise the instance.

-

configuration is the current configuration and is an instance of -the Configuration class or a sub-class.

-

console is set if the target is a console (rather than GUI) target. -This only affects Windows and is ignored on other platforms.

-

qt is set if the target uses Qt. For Qt v4 a list of Qt libraries -may be specified and a simple non-zero value implies QtCore and QtGui.

-

opengl is set if the target uses OpenGL.

-

python is set if the target uses Python.h.

-

threaded is set if the target requires thread support. It is set -automatically if the target uses Qt and Qt has thread support enabled.

-

warnings is set if compiler warning messages should be enabled. -The default of None means that warnings are enabled for SIP v4.x -and disabled for SIP v3.x.

-

debug is set if debugging symbols should be generated.

-

dir is the name of the directory where build files are read from -and Makefiles are written to. The default of None means the -current directory is used.

-

makefile is the name of the generated Makefile.

-

installs is a list of extra install targets. Each element is a two -part list, the first of which is the source and the second is the -destination. If the source is another list then it is a list of source -files and the destination is a directory.

-

universal is the name of the SDK if universal binaries are to be -created under MacOS/X.

-
-
clean_build_file_objects(self, mfile, build)
-

This generates the Makefile commands that will remove any files -generated during the build of the default target.

-

mfile is the Python file object of the Makefile.

-

build is the dictionary created from parsing the build file.

-
-
finalise(self)
-
This is called just before the Makefile is generated to ensure that it -is fully configured. It must be reimplemented by a sub-class.
-
generate(self)
-
This generates the Makefile.
-
generate_macros_and_rules(self, mfile)
-

This is the default implementation of the Makefile macros and rules -generation.

-

mfile is the Python file object of the Makefile.

-
-
generate_target_clean(self, mfile)
-

This is the default implementation of the Makefile clean target -generation.

-

mfile is the Python file object of the Makefile.

-
-
generate_target_default(self, mfile)
-

This is the default implementation of the Makefile default target -generation.

-

mfile is the Python file object of the Makefile.

-
-
generate_target_install(self, mfile)
-

This is the default implementation of the Makefile install target -generation.

-

mfile is the Python file object of the Makefile.

-
-
install_file(self, mfile, src, dst, strip=0)
-

This generates the Makefile commands to install one or more files to a -directory.

-

mfile is the Python file object of the Makefile.

-

src is the name of a single file to install or a list of a number -of files to install.

-

dst is the name of the destination directory.

-

strip is set if the files should be stripped of unneeded symbols -after having been installed.

-
-
optional_list(self, name)
-

This returns an optional Makefile macro as a list.

-

name is the name of the macro.

-

Returns the macro as a list.

-
-
optional_string(self, name, default="")
-

This returns an optional Makefile macro as a string.

-

name is the name of the macro.

-

default is the optional default value of the macro.

-

Returns the macro as a string.

-
-
parse_build_file(self, filename)
-

This parses a build file (created with the -b SIP command line -option) and converts it to a dictionary. It can also validate an -existing dictionary created through other means.

-

filename is the name of the build file, or is a dictionary to be -validated. A valid dictionary will contain the name of the target to -build (excluding any platform specific extension) keyed by target; -the names of all source files keyed by sources; and, optionally, -the names of all header files keyed by headers.

-

Returns a dictionary corresponding to the parsed build file.

-
-
platform_lib(self, clib, framework=0)
-

This converts a library name to a platform specific form.

-

clib is the name of the library in cannonical form.

-

framework is set if the library is implemented as a MacOS -framework.

-

Return the platform specific name.

-
-
ready(self)
-
This is called to ensure that the Makefile is fully configured. It is -normally called automatically when needed.
-
required_string(self, name)
-

This returns a required Makefile macro as a string.

-

name is the name of the macro.

-

Returns the macro as a string. An exception is raised if the macro -does not exist or has an empty value.

-
-
-
-
ModuleMakefile(Makefile)
-

This class encapsulates a Makefile to build a generic Python extension -module.

-
-
__init__(self, configuration, build_file, install_dir=None, static=0, console=0, opengl=0, threaded=0, warnings=None, debug=0, dir=None, makefile="Makefile", installs=None, strip=1, export_all=0, universal='')
-

Initialise the instance.

-

configuration - see sipconfig.Makefile.__init__().

-

build_file is the name of the build file. Build files are -generated using the -b SIP command line option.

-

install_dir is the name of the directory where the module will be -optionally installed.

-

static is set if the module should be built as a static library -(see Builtin Modules and Custom Interpreters).

-

console - see sipconfig.Makefile.__init__().

-

qt - see sipconfig.Makefile.__init__().

-

opengl - see sipconfig.Makefile.__init__().

-

threaded - see sipconfig.Makefile.__init__().

-

warnings - see sipconfig.Makefile.__init__().

-

debug - see sipconfig.Makefile.__init__().

-

dir - see sipconfig.Makefile.__init__().

-

makefile - see sipconfig.Makefile.__init__().

-

installs - see sipconfig.Makefile.__init__().

-

strip is set if the module should be stripped of unneeded symbols -after installation. It is ignored if either debug or static is -set, or if the platform doesn't support it.

-

export_all is set if all of the module's symbols should be exported -rather than just the module's initialisation function. Exporting all -symbols increases the size of the module and slows down module load -times but may avoid problems with modules that use C++ exceptions. All -symbols are exported if either debug or static is set, or if -the platform doesn't support it.

-
-
finalise(self)
-
This is a reimplementation of sipconfig.Makefile.finalise().
-
generate_macros_and_rules(self, mfile)
-
This is a reimplementation of -sipconfig.Makefile.generate_macros_and_rules().
-
generate_target_clean(self, mfile)
-
This is a reimplementation of -sipconfig.Makefile.generate_target_clean().
-
generate_target_default(self, mfile)
-
This is a reimplementation of -sipconfig.Makefile.generate_target_default().
-
generate_target_install(self, mfile)
-
This is a reimplementation of -sipconfig.Makefile.generate_target_install().
-
module_as_lib(self, mname)
-

This returns the name of a SIP v3.x module for when it is used as a -library to be linked against. An exception will be raised if it is -used with SIP v4.x modules.

-

mname is the name of the module.

-

Returns the corresponding library name.

-
-
-
-
ParentMakefile(Makefile)
-

This class encapsulates a Makefile that sits above a number of other -Makefiles in sub-directories.

-
-
__init__(self, configuration, subdirs, dir=None, makefile="Makefile", installs=None)
-

Initialise the instance.

-

configuration - see sipconfig.Makefile.__init__().

-

subdirs is the sequence of sub-directories.

-

dir - see sipconfig.Makefile.__init__().

-

makefile - see sipconfig.Makefile.__init__().

-

installs - see sipconfig.Makefile.__init__().

-
-
generate_macros_and_rules(self, mfile)
-
This is a reimplementation of -sipconfig.Makefile.generate_macros_and_rules().
-
generate_target_clean(self, mfile)
-
This is a reimplementation of -sipconfig.Makefile.generate_target_clean().
-
generate_target_default(self, mfile)
-
This is a reimplementation of -sipconfig.Makefile.generate_target_default().
-
generate_target_install(self, mfile)
-
This is a reimplementation of -sipconfig.Makefile.generate_target_install().
-
-
-
ProgramMakefile(Makefile)
-

This class encapsulates a Makefile to build an executable program.

-
-
__init__(self, configuration, build_file=None, install_dir=None, console=0, qt=0, opengl=0, python=0, threaded=0, warnings=None, debug=0, dir=None, makefile="Makefile", installs=None, universal='')
-

Initialise the instance.

-

configuration - see sipconfig.Makefile.__init__().

-

build_file is the name of the optional build file. Build files are -generated using the -b SIP command line option.

-

install_dir is the name of the directory where the executable -program will be optionally installed.

-

console - see sipconfig.Makefile.__init__().

-

qt - see sipconfig.Makefile.__init__().

-

opengl - see sipconfig.Makefile.__init__().

-

python - see sipconfig.Makefile.__init__().

-

threaded - see sipconfig.Makefile.__init__().

-

warnings - see sipconfig.Makefile.__init__().

-

debug - see sipconfig.Makefile.__init__().

-

dir - see sipconfig.Makefile.__init__().

-

makefile - see sipconfig.Makefile.__init__().

-

installs - see sipconfig.Makefile.__init__().

-
-
build_command(self, source)
-

This creates a single command line that will create an executable -program from a single source file.

-

source is the name of the source file.

-

Returns a tuple of the name of the executable that will be created and -the command line.

-
-
finalise(self)
-
This is a reimplementation of sipconfig.Makefile.finalise().
-
generate_macros_and_rules(self, mfile)
-
This is a reimplementation of -sipconfig.Makefile.generate_macros_and_rules().
-
generate_target_clean(self, mfile)
-
This is a reimplementation of -sipconfig.Makefile.generate_target_clean().
-
generate_target_default(self, mfile)
-
This is a reimplementation of -sipconfig.Makefile.generate_target_default().
-
generate_target_install(self, mfile)
-
This is a reimplementation of -sipconfig.Makefile.generate_target_install().
-
-
-
PythonModuleMakefile(Makefile)
-

This class encapsulates a Makefile that installs a pure Python module.

-
-
__init__(self, configuration, dstdir, srcdir=None, dir=None, makefile="Makefile", installs=None)
-

Initialise the instance.

-

configuration - see sipconfig.Makefile.__init__().

-

dstdir is the name of the directory in which the module's Python -code will be installed.

-

srcdir is the name of the directory (relative to dir) -containing the module's Python code. It defaults to the same -directory.

-

dir - see sipconfig.Makefile.__init__().

-

makefile - see sipconfig.Makefile.__init__().

-

installs - see sipconfig.Makefile.__init__().

-
-
generate_macros_and_rules(self, mfile)
-
This is a reimplementation of -sipconfig.Makefile.generate_macros_and_rules().
-
generate_target_install(self, mfile)
-
This is a reimplementation of -sipconfig.Makefile.generate_target_install().
-
-
-
SIPModuleMakefile(ModuleMakefile)
-

This class encapsulates a Makefile to build a SIP generated Python -extension module.

-
-
finalise(self)
-
This is a reimplementation of sipconfig.Makefile.finalise().
-
-
-
-
-
-
-

12   Building Your Extension with distutils

-

To build the example in A Simple C++ Example using distutils, it is -sufficient to create a standard setup.py, listing word.sip among the -files to build, and hook-up SIP into distutils:

-
-from distutils.core import setup, Extension
-import sipdistutils
-
-setup(
-  name = 'word',
-  versione = '1.0',
-  ext_modules=[
-    Extension("word", ["word.sip", "word.cpp"]),
-    ],
-
-  cmdclass = {'build_ext': sipdistutils.build_ext}
-)
-
-

As we can see, the above is a normal distutils setup script, with just a -special line which is needed so that SIP can see and process word.sip. -Then, running setup.py build will build our extension module.

-
-
-

13   Builtin Modules and Custom Interpreters

-

Sometimes you want to create a custom Python interpreter with some modules -built in to the interpreter itself rather than being dynamically loaded. To -do this the module must be created as a static library and linked with a -custom stub and the normal Python library.

-

To build the SIP module as a static library you must pass the -k command -line option to configure.py. You should then build and install SIP as -normal. (Note that, because the module is now a static library, you will not -be able to import it.)

-

To build a module you have created for your own library you must modify your -own configuration script to pass a non-zero value as the static argument -of the __init__() method of the ModuleMakefile class (or any derived -class you have created). Normally you would make this configurable using a -command line option in the same way that SIP's configure.py handles it.

-

The next stage is to create a custom stub and a Makefile. The SIP distribution -contains a directory called custom which contains example stubs and a -Python script that will create a correct Makefile. Note that, if your copy of -SIP was part of a standard Linux distribution, the custom directory may -not be installed on your system.

-

The custom directory contains the following files. They are provided as -examples - each needs to be modified according to your particular -requirements.

-
-
    -
  • mkcustom.py is a Python script that will create a Makefile which is -then used to build the custom interpreter. Comments in the file describe -how it should be modified.
  • -
  • custom.c is a stub for a custom interpreter on Linux/UNIX. It -should also be used for a custom console interpreter on Windows (i.e. -like python.exe). Comments in the file describe how it should be -modified.
  • -
  • customw.c is a stub for a custom GUI interpreter on Windows (i.e. -like pythonw.exe). Comments in the file describe how it should be -modified.
  • -
-
-

Note that this technique does not restrict how the interpreter can be used. -For example, it still allows users to write their own applications that can -import your builtin modules. If you want to prevent users from doing that, -perhaps to protect a proprietary API, then take a look at the -VendorID package.

-
-
- - diff --git a/python/sip/doc/sipref.txt b/python/sip/doc/sipref.txt deleted file mode 100644 index 4e14f79e..00000000 --- a/python/sip/doc/sipref.txt +++ /dev/null @@ -1,5353 +0,0 @@ -===================================================================== - SIP - A Tool for Generating Python Bindings for C and C++ Libraries -===================================================================== - ------------------ - Reference Guide ------------------ - -:Contact: info@riverbankcomputing.co.uk -:Version: 4.6 -:Copyright: Copyright (c) 2007 Riverbank Computing Limited - -.. contents:: -.. section-numbering:: - - -Introduction -============ - -This is the reference guide for SIP 4.6. SIP is a tool for -automatically generating `Python `__ bindings for C and -C++ libraries. SIP was originally developed in 1998 for -`PyQt `__ - the Python bindings for -the Qt GUI toolkit - but is suitable for generating bindings for any C or C++ -library. - -This version of SIP generates bindings for Python v2.3 or later. - -There are many other similar tools available. One of the original such tools -is `SWIG `__ and, in fact, SIP is so called because it -started out as a small SWIG. Unlike SWIG, SIP is specifically designed for -bringing together Python and C/C++ and goes to great lengths to make the -integration as tight as possible. - -The homepage for SIP is http://www.riverbankcomputing.co.uk/sip/. Here you -will always find the latest stable version, current development snapshots, and -the latest version of this documentation. - - -License -------- - -SIP is licensed under the same terms as Python itself. SIP places no -restrictions on the license you may apply to the bindings you create. - - -Features --------- - -SIP, and the bindings it produces, have the following features. - - - bindings are fast to load and minimise memory consumption especially when - only a small sub-set of a large library is being used - - - automatic conversion between standard Python and C/C++ data types - - - overloading of functions and methods with different argument signatures - - - access to a C++ class's protected methods - - - the ability to define a Python class that is a sub-class of a C++ class, - including abstract C++ classes - - - Python sub-classes can implement the ``__dtor__(self)`` method which - will be called from the C++ class's virtual destructor - - - support for ordinary C++ functions, class methods, static class methods, - virtual class methods and abstract class methods - - - the ability to re-implement C++ virtual and abstract methods in Python - - - support for global and class variables - - - support for global and class operators - - - support for C++ namespaces - - - support for C++ templates - - - support for C++ exceptions and wrapping them as Python exceptions - - - the ability to define mappings between C++ classes and similar Python - data types that are automatically invoked - - - the ability to automatically exploit any available run time type - information to ensure that the class of a Python instance object matches - the class of the corresponding C++ instance - - - full support of the Python global interpreter lock, including the ability - to specify that a C++ function of method may block, therefore allowing - the lock to be released and other Python threads to run - - - support for the concept of ownership of a C++ instance (i.e. what part of - the code is responsible for calling the instance's destructor) and how - the ownership may change during the execution of an application - - - the ability to generate bindings for a C++ class library that itself is - built on another C++ class library which also has had bindings generated - so that the different bindings integrate and share code properly - - - a sophisticated versioning system that allows the full lifetime of a C++ - class library, including any platform specific or optional features, to - be described in a single set of specification files - - - the ability to include documentation in the specification files which can - be extracted and subsequently processed by external tools - - - the ability to include copyright notices and licensing information in the - specification files that is automatically included in all generated - source code - - - a build system, written in Python, that you can extend to configure, - compile and install your own bindings without worrying about platform - specific issues - - - support for building your extensions using distutils - - - SIP, and the bindings it produces, runs under UNIX, Linux, Windows and - MacOS/X - - -SIP Components --------------- - -SIP comprises a number of different components. - - - The SIP code generator (``sip`` or ``sip.exe``). This processes ``.sip`` - specification files and generates C or C++ bindings. It is covered in - detail in `Using SIP`_. - - - The SIP header file (``sip.h``). This contains definitions and data - structures needed by the generated C and C++ code. - - - The SIP module (``sip.so`` or ``sip.pyd``). This is a Python extension - module that is imported automatically by SIP generated bindings and - provides them with some common utility functions. See also `Using the - SIP Module in Applications`_. - - - The SIP build system (``sipconfig.py``). This is a pure Python module - that is created when SIP is configured and encapsulates all the necessary - information about your system including relevant directory names, - compiler and linker flags, and version numbers. It also includes several - Python classes and functions which help you write configuration scripts - for your own bindings. It is covered in detail in `The SIP Build - System`_. - - - The SIP distutils extension (``sipdistutils.py``). This is a distutils - extension that can be used to build your extension modules using - distutils and is an alternative to writing configuration scripts with the - SIP build system. This can be as simple as adding your .sip files to the - list of files needed to build the extension module. It is covered in - detail in `Building Your Extension with distutils`_. - - -Qt Support ----------- - -SIP has specific support for the creation of bindings based on Trolltech's Qt -toolkit. - -The SIP code generator understands the signal/slot type safe callback mechanism -that Qt uses to connect objects together. This allows applications to define -new Python signals, and allows any Python callable object to be used as a slot. - -SIP itself does not require Qt to be installed. - - -Potential Incompatibilities with Earlier Versions -================================================= - -SIP v4.4 --------- - - - The ``SIP_BUILD`` C preprocessor symbol has been removed. - - - `sipConvertToCpp()`_, `sipIsSubClassInstance()`_ and the old `Generated - Type Convertors`_ have been deprecated. The functions - `sipCanConvertToInstance()`_, `sipConvertToInstance()`_, - `sipForceConvertToInstance()`_, `sipConvertFromInstance()`_, - `sipConvertFromNewInstance()`_, `sipCanConvertToMappedType()`_, - `sipConvertToMappedType()`_, `sipForceConvertToMappedType()`_ and - `sipConvertFromMappedType()`_ should be used instead. Handwritten - `%ConvertFromTypeCode`_ and `%ConvertToTypeCode`_ now has the - responsibility for using these to implement the ``Transfer`` and - ``TransferBack`` annotations. - - -Installing SIP -============== - -Downloading SIP ---------------- - -You can get the latest release of the SIP source code from -http://www.riverbankcomputing.co.uk/sip/download.php. - -SIP is also included with all of the major Linux distributions. However, it -may be a version or two out of date. - -You may also find more up to date pre-compiled binaries on -`SourceForge `_. - - -Configuring SIP ---------------- - -After unpacking the source package (either a ``.tar.gz`` or a ``.zip`` file -depending on your platform) you should then check for any ``README`` files -that relate to your platform. - -Next you need to configure SIP by executing the ``configure.py`` script. For -example:: - - python configure.py - -This assumes that the Python interpreter is on your path. Something like the -following may be appropriate on Windows:: - - c:\python25\python configure.py - -If you have multiple versions of Python installed then make sure you use the -interpreter for which you wish SIP to generate bindings for. - -The full set of command line options is: - --h Display a help message. --a Export all symbols in any SIP generated module and the SIP module - itself. This was the default behaviour of SIP prior to v4.2. - Normally only a module's inititialisation function is exported. This - option is deprecated as the ``ModuleMakefile`` class of `The SIP Build - System`_ allows this to be specified on a per module basis. --b dir The SIP code generator will be installed in the directory ``dir``. --d dir The SIP module will be installed in the directory ``dir``. --e dir The SIP header file will be installed in the directory ``dir``. --k The SIP module will be built as a static library. This is useful when - building the SIP module as a Python builtin (see - `Builtin Modules and Custom Interpreters`_). --n The SIP code generator and module will be built as universal binaries - under MacOS/X. --p plat Explicitly specify the platform/compiler to be used by the build - system, otherwise a platform specific default will be used. The - ``-h`` option will display all the supported platform/compilers and - the default. --u The SIP module will be built with debugging symbols. --v dir By default ``.sip`` files will be installed in the directory ``dir``. - -The configure.py script takes many other options that allows the build system -to be finely tuned. These are of the form ``name=value`` or ``name+=value``. -The ``-h`` option will display each supported ``name``, although not all are -applicable to all platforms. - -The ``name=value`` form means that ``value`` will replace the existing value of -``name``. - -The ``name+=value`` form means that ``value`` will be appended to the existing -value of ``name``. - -For example, the following will disable support for C++ exceptions (and so -reduce the size of module binaries) when used with GCC:: - - python configure.py CXXFLAGS+=-fno-exceptions - -A pure Python module called ``sipconfig.py`` is generated by ``configure.py``. -This defines each ``name`` and its corresponding ``value``. Looking at it will -give you a good idea of how the build system uses the different options. It is -covered in detail in `The SIP Build System`_. - - -Configuring SIP Using MinGW -*************************** - -SIP, and the modules it generates, can be built with MinGW, the Windows port of -GCC. You must use the ``-p`` command line option to specify the correct -platform. For example:: - - c:\python25\python configure.py -p win32-g++ - - -Configuring SIP Using the Borland C++ Compiler -********************************************** - -SIP, and the modules it generates, can be built with the free Borland C++ -compiler. You must use the ``-p`` command line option to specify the correct -platform. For example:: - - c:\python25\python configure.py -p win32-borland - -You must also make sure you have a Borland-compatible version of the Python -library. If you are using the standard Python distribution (built using the -Microsoft compiler) then you must convert the format of the Python library. -For example:: - - coff2omf python25.lib python25_bcpp.lib - - -Building SIP ------------- - -The next step is to build SIP by running your platform's ``make`` command. For -example:: - - make - -The final step is to install SIP by running the following command:: - - make install - -(Depending on your system you may require root or administrator privileges.) - -This will install the various SIP components. - - -Using SIP -========= - -Bindings are generated by the SIP code generator from a number of specification -files, typically with a ``.sip`` extension. Specification files look very -similar to C and C++ header files, but often with additional information (in -the form of a *directive* or an *annotation*) and code so that the bindings -generated can be finely tuned. - - -A Simple C++ Example --------------------- - -We start with a simple example. Let's say you have a (fictional) C++ library -that implements a single class called ``Word``. The class has one constructor -that takes a ``\0`` terminated character string as its single argument. The -class has one method called ``reverse()`` which takes no arguments and returns -a ``\0`` terminated character string. The interface to the class is defined in -a header file called ``word.h`` which might look something like this:: - - // Define the interface to the word library. - - class Word { - const char *the_word; - - public: - Word(const char *w); - - char *reverse() const; - }; - -The corresponding SIP specification file would then look something like this:: - - // Define the SIP wrapper to the word library. - - %Module word 0 - - class Word { - - %TypeHeaderCode - #include - %End - - public: - Word(const char *w); - - char *reverse() const; - }; - -Obviously a SIP specification file looks very much like a C++ (or C) header -file, but SIP does not include a full C++ parser. Let's look at the -differences between the two files. - - - The `%Module`_ directive has been added [#]_. This is used to name the - Python module that is being created and to give it a *generation* number. - In this example these are ``word`` and ``0`` respectively. The - generation number is effectively the version number of the module. - - - The `%TypeHeaderCode`_ directive has been added. The text between this - and the following `%End`_ directive is included literally in the code - that SIP generates. Normally it is used, as in this case, to - ``#include`` the corresponding C++ (or C) header file [#]_. - - - The declaration of the private variable ``this_word`` has been removed. - SIP does not support access to either private or protected instance - variables. - -If we want to we can now generate the C++ code in the current directory by -running the following command:: - - sip -c . word.sip - -However, that still leaves us with the task of compiling the generated code and -linking it against all the necessary libraries. It's much easier to use the -SIP build system to do the whole thing. - -Using the SIP build system is simply a matter of writing a small Python script. -In this simple example we will assume that the ``word`` library we are wrapping -and it's header file are installed in standard system locations and will be -found by the compiler and linker without having to specify any additional -flags. In a more realistic example your Python script may take command line -options, or search a set of directories to deal with different configurations -and installations. - -This is the simplest script (conventionally called ``configure.py``):: - - import os - import sipconfig - - # The name of the SIP build file generated by SIP and used by the build - # system. - build_file = "word.sbf" - - # Get the SIP configuration information. - config = sipconfig.Configuration() - - # Run SIP to generate the code. - os.system(" ".join([config.sip_bin, "-c", ".", "-b", build_file, "word.sip"])) - - # Create the Makefile. - makefile = sipconfig.SIPModuleMakefile(config, build_file) - - # Add the library we are wrapping. The name doesn't include any platform - # specific prefixes or extensions (e.g. the "lib" prefix on UNIX, or the - # ".dll" extension on Windows). - makefile.extra_libs = ["word"] - - # Generate the Makefile itself. - makefile.generate() - -Hopefully this script is self-documenting. The key parts are the -``Configuration`` and ``SIPModuleMakefile`` classes. The build system contains -other Makefile classes, for example to build programs or to call other -Makefiles in sub-directories. - -After running the script (using the Python interpreter the extension module is -being created for) the generated C++ code and ``Makefile`` will be in the -current directory. - -To compile and install the extension module, just run the following -commands [#]_:: - - make - make install - -That's all there is to it. - -See `Building Your Extension with distutils`_ for an example of how to build -this example using distutils. - -.. [#] All SIP directives start with a ``%`` as the first non-whitespace - character of a line. -.. [#] SIP includes many code directives like this. They differ in where the - supplied code is placed by SIP in the generated code. -.. [#] On Windows you might run ``nmake`` or ``mingw32-make`` instead. - - -A Simple C Example ------------------- - -Let's now look at a very similar example of wrapping a fictional C library:: - - /* Define the interface to the word library. */ - - struct Word { - const char *the_word; - }; - - struct Word *create_word(const char *w); - char *reverse(struct Word *word); - -The corresponding SIP specification file would then look something like this:: - - /* Define the SIP wrapper to the word library. */ - - %CModule word 0 - - struct Word { - - %TypeHeaderCode - #include - %End - - const char *the_word; - }; - - struct Word *create_word(const char *w) /Factory/; - char *reverse(struct Word *word); - -Again, let's look at the differences between the two files. - - - The `%CModule`_ directive has been added. This has the same syntax as - the `%Module`_ directive used in the previous example but tells SIP that - the library being wrapped is implemented in C rather than C++. - - - The `%TypeHeaderCode`_ directive has been added. - - - The Factory_ annotation has been added to the ``create_word()`` function. - This tells SIP that a newly created structure is being returned and it is - owned by Python. - -The ``configure.py`` build system script described in the previous example can -be used for this example without change. - - -A More Complex C++ Example --------------------------- - -In this last example we will wrap a fictional C++ library that contains a class -that is derived from a Qt class. This will demonstrate how SIP allows a class -hierarchy to be split across multiple Python extension modules, and will -introduce SIP's versioning system. - -The library contains a single C++ class called ``Hello`` which is derived from -Qt's ``QLabel`` class. It behaves just like ``QLabel`` except that the text -in the label is hard coded to be ``Hello World``. To make the example more -interesting we'll also say that the library only supports Qt v3.0 and later, -and also includes a function called ``setDefault()`` that is not implemented -in the Windows version of the library. - -The ``hello.h`` header file looks something like this:: - - // Define the interface to the hello library. - - #include - #include - #include - - class Hello : public QLabel { - // This is needed by the Qt Meta-Object Compiler. - Q_OBJECT - - public: - Hello(QWidget *parent, const char *name = 0, WFlags f = 0); - - private: - // Prevent instances from being copied. - Hello(const Hello &); - Hello &operator=(const Hello &); - }; - - #if !defined(Q_OS_WIN) - void setDefault(const QString &def); - #endif - -The corresponding SIP specification file would then look something like this:: - - // Define the SIP wrapper to the hello library. - - %Module hello 0 - - %Import qt/qtmod.sip - - %If (Qt_3_0_0 -) - - class Hello : QLabel { - - %TypeHeaderCode - #include - %End - - public: - Hello(QWidget *parent /TransferThis/, const char *name = 0, WFlags f = 0); - - private: - Hello(const Hello &); - }; - - %If (!WS_WIN) - void setDefault(const QString &def); - %End - - %End - -Again we look at the differences, but we'll skip those that we've looked at in -previous examples. - - - The `%Import`_ directive has been added to specify that we are extending - the class hierarchy defined in the file ``qt/qtmod.sip``. This file is - part of PyQt. The build system will take care of finding the file's - exact location. - - - The `%If`_ directive has been added to specify that - everything [#]_ up to the matching `%End`_ directive only applies to Qt - v3.0 and later. ``Qt_3_0_0`` is a *tag* defined in ``qtmod.sip`` [#]_ - using the `%Timeline`_ directive. `%Timeline`_ is used to define a tag - for each version of a library's API you are wrapping allowing you to - maintain all the different versions in a single SIP specification. The - build system provides support to ``configure.py`` scripts for working out - the correct tags to use according to which version of the library is - actually installed. - - - The ``public`` keyword used in defining the super-classes has been - removed. This is not supported by SIP. - - - The TransferThis_ annotation has been added to the first argument - of the constructor. It specifies that if the argument is not 0 (i.e. the - ``Hello`` instance being constructed has a parent) then ownership of the - instance is transferred from Python to C++. It is needed because Qt - maintains objects (i.e. instances derived from the ``QObject`` class) in - a hierachy. When an object is destroyed all of its children are also - automatically destroyed. It is important, therefore, that the Python - garbage collector doesn't also try and destroy them. This is covered in - more detail in `Ownership of Objects`_. SIP provides many other - annotations that can be applied to arguments, functions and classes. - Multiple annotations are separated by commas. Annotations may have - values. - - - The ``=`` operator has been removed. This operator is not supported by - SIP. - - - The `%If`_ directive has been added to specify that everything up to the - matching `%End`_ directive does not apply to Windows. ``WS_WIN`` is - another tag defined by PyQt, this time using the `%Platforms`_ directive. - Tags defined by the `%Platforms`_ directive are mutually exclusive, i.e. - only one may be valid at a time [#]_. - -One question you might have at this point is why bother to define the private -copy constructor when it can never be called from Python? The answer is to -prevent the automatic generation of a public copy constructor. - -We now look at the ``configure.py`` script. This is a little different to the -script in the previous examples for two related reasons. - -Firstly, PyQt includes a pure Python module called ``pyqtconfig`` that extends -the SIP build system for modules, like our example, that build on top of PyQt. -It deals with the details of which version of Qt is being used (i.e. it -determines what the correct tags are) and where it is installed. This is -called a module's configuration module. - -Secondly, we generate a configuration module (called ``helloconfig``) for our -own ``hello`` module. There is no need to do this, but if there is a chance -that somebody else might want to extend your C++ library then it would make -life easier for them. - -Now we have two scripts. First the ``configure.py`` script:: - - import os - import sipconfig - import pyqtconfig - - # The name of the SIP build file generated by SIP and used by the build - # system. - build_file = "hello.sbf" - - # Get the PyQt configuration information. - config = pyqtconfig.Configuration() - - # Get the extra SIP flags needed by the imported qt module. Note that - # this normally only includes those flags (-x and -t) that relate to SIP's - # versioning system. - qt_sip_flags = config.pyqt_qt_sip_flags - - # Run SIP to generate the code. Note that we tell SIP where to find the qt - # module's specification files using the -I flag. - os.system(" ".join([config.sip_bin, "-c", ".", "-b", build_file, "-I", config.pyqt_sip_dir, qt_sip_flags, "hello.sip"])) - - # We are going to install the SIP specification file for this module and - # its configuration module. - installs = [] - - installs.append(["hello.sip", os.path.join(config.default_sip_dir, "hello")]) - - installs.append(["helloconfig.py", config.default_mod_dir]) - - # Create the Makefile. The QtModuleMakefile class provided by the - # pyqtconfig module takes care of all the extra preprocessor, compiler and - # linker flags needed by the Qt library. - makefile = pyqtconfig.QtModuleMakefile( - configuration=config, - build_file=build_file, - installs=installs - ) - - # Add the library we are wrapping. The name doesn't include any platform - # specific prefixes or extensions (e.g. the "lib" prefix on UNIX, or the - # ".dll" extension on Windows). - makefile.extra_libs = ["hello"] - - # Generate the Makefile itself. - makefile.generate() - - # Now we create the configuration module. This is done by merging a Python - # dictionary (whose values are normally determined dynamically) with a - # (static) template. - content = { - # Publish where the SIP specifications for this module will be - # installed. - "hello_sip_dir": config.default_sip_dir, - - # Publish the set of SIP flags needed by this module. As these are the - # same flags needed by the qt module we could leave it out, but this - # allows us to change the flags at a later date without breaking - # scripts that import the configuration module. - "hello_sip_flags": qt_sip_flags - } - - # This creates the helloconfig.py module from the helloconfig.py.in - # template and the dictionary. - sipconfig.create_config_module("helloconfig.py", "helloconfig.py.in", content) - -Next we have the ``helloconfig.py.in`` template script:: - - import pyqtconfig - - # These are installation specific values created when Hello was configured. - # The following line will be replaced when this template is used to create - # the final configuration module. - # @SIP_CONFIGURATION@ - - class Configuration(pyqtconfig.Configuration): - """The class that represents Hello 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. - """ - # This is all standard code to be copied verbatim except for the - # name of the module containing the super-class. - if sub_cfg: - cfg = sub_cfg - else: - cfg = [] - - cfg.append(_pkg_config) - - pyqtconfig.Configuration.__init__(self, cfg) - - class HelloModuleMakefile(pyqtconfig.QtModuleMakefile): - """The Makefile class for modules that %Import hello. - """ - def finalise(self): - """Finalise the macros. - """ - # Make sure our C++ library is linked. - self.extra_libs.append("hello") - - # Let the super-class do what it needs to. - pyqtconfig.QtModuleMakefile.finalise(self) - -Again, we hope that the scripts are self documenting. - -.. [#] Some parts of a SIP specification aren't subject to version control. -.. [#] Actually in ``versions.sip``. PyQt uses the `%Include`_ directive to - split the SIP specification for Qt across a large number of separate - ``.sip`` files. -.. [#] Tags can also be defined by the `%Feature`_ directive. These tags are - not mutually exclusive, i.e. any number may be valid at a time. - - -Ownership of Objects --------------------- - -When a C++ instance is wrapped a corresponding Python object is created. The -Python object behaves as you would expect in regard to garbage collection - it -is garbage collected when its reference count reaches zero. What then happens -to the corresponding C++ instance? The obvious answer might be that the -instance's destructor is called. However the library API may say that when the -instance is passed to a particular function, the library takes ownership of the -instance, i.e. responsibility for calling the instance's destructor is -transferred from the SIP generated module to the library. - -Ownership of an instance may also be associated with another instance. The -implication being that the owned instance will automatically be destroyed if -the owning instance is destroyed. SIP keeps track of these relationships to -ensure that Python's cyclic garbage collector can detect and break any -reference cycles between the owning and owned instances. The association is -implemented as the owning instance taking a reference to the owned instance. - -The TransferThis_, Transfer_ and TransferBack annotations are used to specify -where, and it what direction, transfers of ownership happen. It is very -important that these are specified correctly to avoid crashes (where both -Python and C++ call the destructor) and memory leaks (where neither Python and -C++ call the destructor). - -This applies equally to C structures where the structure is returned to the -heap using the ``free()`` function. - -See also `sipTransferTo()`_ and `sipTransferBack()`_. - - -Support for Wide Characters ---------------------------- - -SIP v4.6 introduced support for wide characters (i.e. the ``wchar_t`` type). -Python's C API includes support for converting between unicode objects and wide -character strings and arrays. When converting from a unicode object to wide -characters SIP creates the string or array on the heap (using memory allocated -using `sipMalloc()`_). This then raises the problem of how this memory is -subsequently freed. - -The following describes how SIP handles this memory in the different situations -where this is an issue. - - - When a wide string or array is passed to a function or method then the - memory is freed (using `sipFree()`_) after than function or method - returns. - - - When a wide string or array is returned from a virtual method then SIP - does not free the memory until the next time the method is called. - - - When an assignment is made to a wide string or array instance variable - then SIP does not first free the instance's current string or array. - - -The Python Global Interpreter Lock ----------------------------------- - -Python's Global Interpretor Lock (GIL) must be acquired before calls can be -made to the Python API. It should also be released when a potentially -blocking call to C/C++ library is made in order to allow other Python threads -to be executed. In addition, some C/C++ libraries may implement their own -locking strategies that conflict with the GIL causing application deadlocks. -SIP provides ways of specifying when the GIL is released and acquired to -ensure that locking problems can be avoided. - -SIP always ensures that the GIL is acquired before making calls to the Python -API. By default SIP does not release the GIL when making calls to the C/C++ -library being wrapped. The ReleaseGIL_ annotation can be used to override -this behaviour when required. - -If SIP is given the ``-g`` command line option then the default behaviour is -changed and SIP releases the GIL every time is makes calls to the C/C++ -library being wrapped. The HoldGIL_ annotation can be used to override this -behaviour when required. - - -The SIP Command Line -==================== - -The syntax of the SIP command line is:: - - sip [options] [specification] - -``specification`` is the name of the specification file for the module. If it -is omitted then ``stdin`` is used. - -The full set of command line options is: - --h Display a help message. --V Display the SIP version number. --a file - The name of the QScintilla API file to generate. This file contains a - description of the module API in a form that the QScintilla editor - component can use for auto-completion and call tips. (The file may - also be used by the SciTE editor but must be sorted first.) By default - the file is not generated. --b file - The name of the build file to generate. This file contains the - information about the module needed by the SIP build system to generate - a platform and compiler specific Makefile for the module. By default - the file is not generated. --c dir The name of the directory (which must exist) into which all of the - generated C or C++ code is placed. By default no code is generated. --d file - The name of the documentation file to generate. Documentation is - included in specification files using the `%Doc`_ and `%ExportedDoc`_ - directives. By default the file is not generated. --e Support for C++ exceptions is enabled. This causes all calls to C++ - code to be enclosed in ``try``/``catch`` blocks and C++ exceptions to - be converted to Python exceptions. By default exception support is - disabled. --g The Python GIL is released before making any calls to the C/C++ library - being wrapped and reacquired afterwards. See `The Python Global - Interpreter Lock`_ and the ReleaseGIL_ and HoldGIL_ annotations. --I dir The directory is added to the list of directories searched when looking - for a specification file given in an `%Include`_ or `%Import`_ - directive. This option may be given any number of times. --j number - The generated code is split into the given number of files. This make - it easier to use the parallel build facility of most modern - implementations of ``make``. By default 1 file is generated for each C - structure or C++ class. --r Debugging statements that trace the execution of the bindings are - automatically generated. By default the statements are not generated. --s suffix - The suffix to use for generated C or C++ source files. By default - ``.c`` is used for C and ``.cpp`` for C++. --t tag The SIP version tag (declared using a `%Timeline`_ directive) or the - SIP platform tag (declared using the `%Platforms`_ directive) to - generate code for. This option may be given any number of times so - long as the tags do not conflict. --w The display of warning messages is enabled. By default warning - messages are disabled. --x feature - The feature (declared using the `%Feature`_ directive) is disabled. --z file - The name of a file containing more command line options. - - -SIP Specification Files -======================= - -A SIP specification consists of some C/C++ type and function declarations and -some directives. The declarations may contain annotations which provide SIP -with additional information that cannot be expressed in C/C++. SIP does not -include a full C/C++ parser. - -It is important to understand that a SIP specification describes the Python -API, i.e. the API available to the Python programmer when they ``import`` the -generated module. It does not have to accurately represent the underlying -C/C++ library. There is nothing wrong with omitting functions that make -little sense in a Python context, or adding functions implemented with -handwritten code that have no C/C++ equivalent. It is even possible (and -sometimes necessary) to specify a different super-class hierarchy for a C++ -class. All that matters is that the generated code compiles properly. - -In most cases the Python API matches the C/C++ API. In some cases handwritten -code (see `%MethodCode`_) is used to map from one to the other without SIP -having to know the details itself. However, there are a few cases where SIP -generates a thin wrapper around a C++ method or constructor (see `Generated -Derived Classes`_) and needs to know the exact C++ signature. To deal with -these cases SIP allows two signatures to be specified. For example:: - - class Klass - { - public: - // The Python signature is a tuple, but the underlying C++ signature - // is a 2 element array. - Klass(SIP_PYTUPLE) [(int *)]; - %MethodCode - int iarr[2]; - - if (PyArg_ParseTuple(a0, "ii", &iarr[0], &iarr[1])) - { - // Note that we use the SIP generated derived class - // constructor. - Py_BEGIN_ALLOW_THREADS - sipCpp = new sipKlass(iarr); - Py_END_ALLOW_THREADS - } - %End - }; - - -Syntax Definition ------------------ - -The following is a semi-formal description of the syntax of a specification -file. - -.. parsed-literal:: - - *specification* ::= {*module-statement*} - - *module-statement* ::= [*module-directive* | *statement*] - - *module-directive* ::= [`%CModule`_ | `%Copying`_ | `%Doc`_ | - `%ExportedDoc`_ | `%ExportedHeaderCode`_ | `%Feature`_ | - `%Import`_ | `%Include`_ | `%License`_ | `%MappedType`_ | - *mapped-type-template* | `%Module`_ | `%ModuleCode`_ | - `%ModuleHeaderCode`_ | `%OptionalInclude`_ | `%Platforms`_ | - `%PreInitialisationCode`_ | `%PostInitialisationCode`_ | - *sip-option-list* | `%Timeline`_ | `%UnitCode`_] - - *sip-option-list* :: `%SIPOptions`_ ``(`` *option-list* ``)`` - - *option-list* ::= *option* [``,`` *option-list*] - - *statement* :: [*class-statement* | *function* | *variable*] - - *class-statement* :: [`%If`_ | *class* | *class-template* | *enum* | - *namespace* | *opaque-class* | *operator* | *struct* | *typedef* | - *exception*] - - *class* ::= ``class`` *name* [``:`` *super-classes*] [*class-annotations*] - ``{`` {*class-line*} ``};`` - - *super-classes* ::= *name* [``,`` *super-classes*] - - *class-line* ::= [*class-statement* | `%BIGetReadBufferCode`_ | - `%BIGetWriteBufferCode`_ | `%BIGetSegCountCode`_ | - `%BIGetCharBufferCode`_ | `%ConvertToSubClassCode`_ | - `%ConvertToTypeCode`_ | `%GCClearCode`_ | `%GCTraverseCode`_ | - `%TypeCode`_ | `%TypeHeaderCode`_ | *constructor* | *destructor* | - *method* | *static-method* | *virtual-method* | *special-method* | - *operator* | *virtual-operator* | *class-variable* | ``public:`` | - ``public slots:`` | ``protected:`` | ``protected slots:`` | - ``private:`` | ``private slots:`` | ``signals:``] - - *constructor* ::= [``explicit``] *name* ``(`` [*argument-list*] ``)`` - [*exceptions*] [*function-annotations*] - [*c++-constructor-signature*] ``;`` [`%MethodCode`_] - - *c++-constructor-signature* ::= ``[(`` [*argument-list*] ``)]`` - - *destructor* ::= [``virtual``] ``~`` *name* ``()`` [*exceptions*] [``= 0``] - [*function-annotations*] ``;`` [`%MethodCode`_] - [`%VirtualCatcherCode`_] - - *method* ::= *type* *name* ``(`` [*argument-list*] ``)`` [``const``] - [*exceptions*] [``= 0``] [*function-annotations*] [*c++-signature*] - ``;`` [`%MethodCode`_] - - *c++-signature* ::= ``[`` *type* ``(`` [*argument-list*] ``)]`` - - *static-method* ::= ``static`` *function* - - *virtual-method* ::= ``virtual`` *type* *name* ``(`` [*argument-list*] ``)`` - [``const``] [*exceptions*] [``= 0``] [*function-annotations*] - [*c++-signature*] ``;`` [`%MethodCode`_] [`%VirtualCatcherCode`_] - - *special-method* ::= *type* *special-method-name* - ``(`` [*argument-list*] ``)`` [*function-annotations*] ``;`` - [`%MethodCode`_] - - *special-method-name* ::= [ ``__abs__`` | ``__add__`` | ``__and__`` | - ``__call__`` | ``__cmp__`` | ``__contains__`` | ``__delitem__`` | - ``__div__`` | ``__eq__`` | ``__float__`` | ``__ge__`` | - ``__getitem__`` | ``__gt__`` | ``__hash__`` | ``__iadd__`` | - ``__iand__`` | ``__idiv__`` | ``__ilshift__`` | ``__imod__`` | - ``__imul__`` | ``__int__`` | ``__invert__`` | ``__ior__`` | - ``__irshift__`` | ``__isub__`` | ``__ixor__`` | ``__le__`` | - ``__len__`` | ``__long__`` | ``__lshift__`` | ``__lt__`` | - ``__mod__`` | ``__mul__`` | ``__ne__`` | ``__neg__`` | - ``__nonzero__`` | ``__or__`` | ``__pos__`` | ``__repr__`` | - ``__rshift__`` | ``__setitem__`` | ``__str__`` | ``__sub__`` | - ``__xor__``] - - *operator* ::= *operator-type* - ``(`` [*argument-list*] ``)`` [``const``] [*exceptions*] - [*function-annotations*] ``;`` [`%MethodCode`_] - - *virtual-operator* ::= ``virtual`` *operator-type* - ``(`` [*argument-list*] ``)`` [``const``] [*exceptions*] [``= 0``] - [*function-annotations*] ``;`` [`%MethodCode`_] - [`%VirtualCatcherCode`_] - - *operatator-type* ::= [ *operator-function* | *operator-cast* ] - - *operator-function* ::= *type* ``operator`` *operator-name* - - *operator-cast* ::= ``operator`` *type* - - *operator-name* ::= [``+`` | ``-`` | ``*`` | ``/`` | ``%`` | ``&`` | - ``|`` | ``^`` | ``<<`` | ``>>`` | ``+=`` | ``-=`` | ``*=`` | - ``/=`` | ``%=`` | ``&=`` | ``|=`` | ``^=`` | ``<<=`` | ``>>=`` | - ``~`` | ``()`` | ``[]`` | ``<`` | ``<=`` | ``==`` | ``!=`` | - ``>`` | ``>>=``] - - *class-variable* ::= [``static``] *variable* - - *class-template* :: = ``template`` ``<`` *type-list* ``>`` *class* - - *mapped-type-template* :: = ``template`` ``<`` *type-list* ``>`` - `%MappedType`_ - - *enum* ::= ``enum`` [*name*] [*enum-annotations*] ``{`` {*enum-line*} ``};`` - - *enum-line* ::= [`%If`_ | *name* [*enum-annotations*] ``,`` - - *function* ::= *type* *name* ``(`` [*argument-list*] ``)`` [*exceptions*] - [*function-annotations*] ``;`` [`%MethodCode`_] - - *namespace* ::= ``namespace`` *name* ``{`` {*namespace-line*} ``};`` - - *namespace-line* ::= [`%TypeHeaderCode`_ | *statement*] - - *opaque-class* ::= ``class`` *scoped-name* ``;`` - - *struct* ::= ``struct`` *name* ``{`` {*class-line*} ``};`` - - *typedef* ::= ``typedef`` [*typed-name* | *function-pointer*] ``;`` - - *variable*::= *typed-name* [*variable-annotations*] ``;`` [`%AccessCode`_] - [`%GetCode`_] [`%SetCode`_] - - *exception* ::= `%Exception`_ *exception-name* [*exception-base*] ``{`` - [`%TypeHeaderCode`_] `%RaiseCode`_ `};`` - - *exception-name* ::= *scoped-name* - - *exception-base* ::= ``(`` [*exception-name* | *python-exception*] ``)`` - - *python-exception* ::= [``SIP_Exception`` | ``SIP_StopIteration`` | - ``SIP_StandardError`` | ``SIP_ArithmeticError`` | - ``SIP_LookupError`` | ``SIP_AssertionError`` | - ``SIP_AttributeError`` | ``SIP_EOFError`` | - ``SIP_FloatingPointError`` | ``SIP_EnvironmentError`` | - ``SIP_IOError`` | ``SIP_OSError`` | ``SIP_ImportError`` | - ``SIP_IndexError`` | ``SIP_KeyError`` | ``SIP_KeyboardInterrupt`` | - ``SIP_MemoryError`` | ``SIP_NameError`` | ``SIP_OverflowError`` | - ``SIP_RuntimeError`` | ``SIP_NotImplementedError`` | - ``SIP_SyntaxError`` | ``SIP_IndentationError`` | ``SIP_TabError`` | - ``SIP_ReferenceError`` | ``SIP_SystemError`` | ``SIP_SystemExit`` | - ``SIP_TypeError`` | ``SIP_UnboundLocalError`` | - ``SIP_UnicodeError`` | ``SIP_UnicodeEncodeError`` | - ``SIP_UnicodeDecodeError`` | ``SIP_UnicodeTranslateError`` | - ``SIP_ValueError`` | ``SIP_ZeroDivisionError`` | - ``SIP_WindowsError`` | ``SIP_VMSError``] - - *exceptions* ::= ``throw (`` [*exception-list*] ``)`` - - *exception-list* ::= *scoped-name* [``,`` *exception-list*] - - *argument-list* ::= *argument* [``,`` *argument-list*] [``,`` ``...``] - - *argument* ::= [*type* [*name*] [*argument-annotations*] - [*default-value*] | SIP_ANYSLOT_ [*default-value*] | SIP_QOBJECT_ | - SIP_RXOBJ_CON_ | SIP_RXOBJ_DIS_ | SIP_SIGNAL_ [*default-value*] | - SIP_SLOT_ [*default-value*] | SIP_SLOT_CON_ | SIP_SLOT_DIS_] - - *default-value* ::= ``=`` *expression* - - *expression* ::= [*value* | *value* *binary-operator* *expression*] - - *value* ::= [*unary-operator*] *simple-value* - - *simple-value* ::= [*scoped-name* | *function-call* | *real-value* | - *integer-value* | *boolean-value* | *string-value* | - *character-value*] - - *typed-name*::= *type* *name* - - *function-pointer*::= *type* ``(*`` *name* ``)(`` [*type-list*] ``)`` - - *type-list* ::= *type* [``,`` *type-list*] - - *function-call* ::= *scoped-name* ``(`` [*value-list*] ``)`` - - *value-list* ::= *value* [``,`` *value-list*] - - *real-value* ::= a floating point number - - *integer-value* ::= a number - - *boolean-value* ::= [``true`` | ``false``] - - *string-value* ::= ``"`` {*character*} ``"`` - - *character-value* ::= ````` *character* ````` - - *unary-operator* ::= [``!`` | ``~`` | ``-`` | ``+``] - - *binary-operator* ::= [``-`` | ``+`` | ``*`` | ``/`` | ``&`` | ``|``] - - *argument-annotations* ::= see `Argument Annotations`_ - - *class-annotations* ::= see `Class Annotations`_ - - *enum-annotations* ::= see `Enum Annotations`_ - - *function-annotations* ::= see `Function Annotations`_ - - *variable-annotations* ::= see `Variable Annotations`_ - - *type* ::= [``const``] *base-type* {``*``} [``&``] - - *type-list* ::= *type* [``,`` *type-list*] - - *base-type* ::= [*scoped-name* | *template* | ``struct`` *scoped-name* | - ``short`` | ``unsigned short`` | ``int`` | ``unsigned`` | - ``unsigned int`` | ``long`` | ``unsigned long`` | ``float`` | - ``double`` | ``bool`` | ``char`` | ``signed char`` | - ``unsigned char`` | ``void`` | ``wchar_t`` | SIP_PYCALLABLE_ | - SIP_PYDICT_ | SIP_PYLIST_ | SIP_PYOBJECT_ | SIP_PYSLICE_ | - SIP_PYTUPLE_ | SIP_PYTYPE_] - - *scoped-name* ::= *name* [``::`` *scoped-name*] - - *template* ::= *scoped-name* ``<`` *type-list* ``>`` - - *name* ::= _A-Za-z {_A-Za-z0-9} - -Here is a short list of differences between C++ and the subset supported by -SIP that might trip you up. - - - SIP does not support the use of ``[]`` in types. Use pointers instead. - - - A global ``operator`` can only be defined if its first argument is a - class or a named enum that has been wrapped in the same module. - - - Variables declared outside of a class are effectively read-only. - - - A class's list of super-classes doesn't not include any access specifier - (e.g. ``public``). - - -Variable Numbers of Arguments ------------------------------ - -SIP supports the use of ``...`` as the last part of a function signature. Any -remaining arguments are collected as a Python tuple. - - -Additional SIP Types --------------------- - -SIP supports a number of additional data types that can be used in Python -signatures. - - -SIP_ANYSLOT -*********** - -This is both a ``const char *`` and a ``PyObject *`` that is used as the type -of the member instead of ``const char *`` in functions that implement the -connection or disconnection of an explicitly generated signal to a slot. -Handwritten code must be provided to interpret the conversion correctly. - - -SIP_PYCALLABLE -************** - -This is a ``PyObject *`` that is a Python callable object. - - -SIP_PYDICT -********** - -This is a ``PyObject *`` that is a Python dictionary object. - - -SIP_PYLIST -********** - -This is a ``PyObject *`` that is a Python list object. - - -SIP_PYOBJECT -************ - -This is a ``PyObject *`` of any Python type. - - -SIP_PYSLICE -*********** - -This is a ``PyObject *`` that is a Python slice object. - - -SIP_PYTUPLE -*********** - -This is a ``PyObject *`` that is a Python tuple object. - - -SIP_PYTYPE -********** - -This is a ``PyObject *`` that is a Python type object. - - -SIP_QOBJECT -*********** - -This is a ``QObject *`` that is a C++ instance of a class derived from Qt's -``QObject`` class. - - -SIP_RXOBJ_CON -************* - -This is a ``QObject *`` that is a C++ instance of a class derived from Qt's -``QObject`` class. It is used as the type of the receiver instead of ``const -QObject *`` in functions that implement a connection to a slot. - - -SIP_RXOBJ_DIS -************* - -This is a ``QObject *`` that is a C++ instance of a class derived from Qt's -``QObject`` class. It is used as the type of the receiver instead of ``const -QObject *`` in functions that implement a disconnection from a slot. - - -SIP_SIGNAL -********** - -This is a ``const char *`` that is used as the type of the signal instead of -``const char *`` in functions that implement the connection or disconnection -of an explicitly generated signal to a slot. - - -SIP_SLOT -******** - -This is a ``const char *`` that is used as the type of the member instead of -``const char *`` in functions that implement the connection or disconnection -of an explicitly generated signal to a slot. - - -SIP_SLOT_CON -************ - -This is a ``const char *`` that is used as the type of the member instead of -``const char *`` in functions that implement the connection of an internally -generated signal to a slot. The type includes a comma separated list of types -that is the C++ signature of of the signal. - -To take an example, ``QAccel::connectItem()`` connects an internally generated -signal to a slot. The signal is emitted when the keyboard accelerator is -activated and it has a single integer argument that is the ID of the -accelerator. The C++ signature is:: - - bool connectItem(int id, const QObject *receiver, const char *member); - -The corresponding SIP specification is:: - - bool connectItem(int, SIP_RXOBJ_CON, SIP_SLOT_CON(int)); - - -SIP_SLOT_DIS -************ - -This is a ``const char *`` that is used as the type of the member instead of -``const char *`` in functions that implement the disconnection of an -internally generated signal to a slot. The type includes a comma separated -list of types that is the C++ signature of of the signal. - - -SIP Directives -============== - -In this section we describe each of the directives that can be used in -specification files. All directives begin with ``%`` as the first -non-whitespace character in a line. - -Some directives have arguments or contain blocks of code or documentation. In -the following descriptions these are shown in *italics*. Optional arguments -are enclosed in [*brackets*]. - -Some directives are used to specify handwritten code. Handwritten code must -not define names that start with the prefix ``sip``. - - -%AccessCode ------------ - -.. parsed-literal:: - - %AccessCode - *code* - %End - -This directive is used immediately after the declaration of an instance of a -wrapped class or structure, or a pointer to such an instance. You use it to -provide handwritten code that overrides the default behaviour. - -For example:: - - class Klass; - - Klass *klassInstance; - %AccessCode - // In this contrived example the C++ library we are wrapping defines - // klassInstance as Klass ** (which SIP doesn't support) so we - // explicitly dereference it. - if (klassInstance && *klassInstance) - return *klassInstance; - - // This will get converted to None. - return 0; - %End - - -%BIGetCharBufferCode --------------------- - -.. parsed-literal:: - - %BIGetCharBufferCode - *code* - %End - -This directive (along with `%BIGetReadBufferCode`_, `%BIGetSegCountCode`_ and -`%BIGetWriteBufferCode`_) is used to specify code that implements Python's -buffer interface. See the section `Buffer Object Structures -`__ for the -details. - -The following variables are made available to the handwritten code: - -*type* \*sipCpp - This is a pointer to the structure or class instance. Its *type* is a - pointer to the structure or class. - -void \*\*sipPtrPtr - This is the pointer used to return the address of the character buffer. - -SIP_SSIZE_T sipRes - The handwritten code should set this to the length of the character buffer - or -1 if there was an error. - -SIP_SSIZE_T sipSegment - This is the number of the segment of the character buffer. - -PyObject \*sipSelf - This is the Python object that wraps the the structure or class instance, - i.e. ``self``. - - -%BIGetReadBufferCode --------------------- - -.. parsed-literal:: - - %BIGetReadBufferCode - *code* - %End - -This directive (along with `%BIGetCharBufferCode`_, `%BIGetSegCountCode`_ and -`%BIGetWriteBufferCode`_) is used to specify code that implements Python's -buffer interface. - -The following variables are made available to the handwritten code: - -*type* \*sipCpp - This is a pointer to the structure or class instance. Its *type* is a - pointer to the structure or class. - -void \*\*sipPtrPtr - This is the pointer used to return the address of the read buffer. - -SIP_SSIZE_T sipRes - The handwritten code should set this to the length of the read buffer or - -1 if there was an error. - -SIP_SSIZE_T sipSegment - This is the number of the segment of the read buffer. - -PyObject \*sipSelf - This is the Python object that wraps the the structure or class instance, - i.e. ``self``. - - -%BIGetSegCountCode ------------------- - -.. parsed-literal:: - - %BIGetSegCountCode - *code* - %End - -This directive (along with `%BIGetCharBufferCode`_, `%BIGetReadBufferCode`_ and -`%BIGetWriteBufferCode`_) is used to specify code that implements Python's -buffer interface. - -The following variables are made available to the handwritten code: - -*type* \*sipCpp - This is a pointer to the structure or class instance. Its *type* is a - pointer to the structure or class. - -SIP_SSIZE_T \*sipLenPtr - This is the pointer used to return the total length in bytes of all - segments of the buffer. - -SIP_SSIZE_T sipRes - The handwritten code should set this to the number of segments that make - up the buffer. - -PyObject \*sipSelf - This is the Python object that wraps the the structure or class instance, - i.e. ``self``. - - -%BIGetWriteBufferCode ---------------------- - -.. parsed-literal:: - - %BIGetWriteBufferCode - *code* - %End - -This directive (along with `%BIGetCharBufferCode`_, `%BIGetReadBufferCode`_ -and `%BIGetSegCountCode`_ is used to specify code that implements Python's -buffer interface. - -The following variables are made available to the handwritten code: - -*type* \*sipCpp - This is a pointer to the structure or class instance. Its *type* is a - pointer to the structure or class. - -void \*\*sipPtrPtr - This is the pointer used to return the address of the write buffer. - -SIP_SSIZE_T sipRes - The handwritten code should set this to the length of the write buffer or - -1 if there was an error. - -SIP_SSIZE_T sipSegment - This is the number of the segment of the write buffer. - -PyObject \*sipSelf - This is the Python object that wraps the the structure or class instance, - i.e. ``self``. - - -%CModule --------- - -.. parsed-literal:: - - %CModule *name* [*version*] - -This directive is used to identify that the library being wrapped is a C -library and to define the name of the module and it's optional version number. - -See the `%Module`_ directive for an explanation of the version number. - -For example:: - - %CModule dbus 1 - - -%ConvertFromTypeCode --------------------- - -.. parsed-literal:: - - %ConvertFromTypeCode - *code* - %End - -This directive is used as part of the `%MappedType`_ directive to specify the -handwritten code that converts an instance of a mapped type to a Python -object. - -The following variables are made available to the handwritten code: - -*type* \*sipCpp - This is a pointer to the instance of the mapped type to be converted. It - will never be zero as the conversion from zero to ``Py_None`` is handled - before the handwritten code is called. - -PyObject \*sipTransferObj - This specifies any desired ownership changes to the returned object. If it - is ``NULL`` then the ownership should be left unchanged. If it is - ``Py_None`` then ownership should be transferred to Python. Otherwise - ownership should be transferred to C/C++ and the returned object associated - with *sipTransferObj*. The code can choose to interpret these changes in - any way. For example, if the code is converting a C++ container of wrapped - classes to a Python list it is likely that the ownership changes should be - made to each element of the list. - -The handwritten code must explicitly return a ``PyObject *``. If there was an -error then a Python exception must be raised and ``NULL`` returned. - -The following example converts a ``QList`` instance to a Python -list of ``QWidget`` instances:: - - %ConvertFromTypeCode - PyObject *l; - - // Create the Python list of the correct length. - if ((l = PyList_New(sipCpp -> size())) == NULL) - return NULL; - - // Go through each element in the C++ instance and convert it to a - // wrapped QWidget. - for (int i = 0; i < sipCpp -> size(); ++i) - { - QWidget *w = sipCpp -> at(i); - PyObject *wobj; - - // Get the Python wrapper for the QWidget instance, creating a new - // one if necessary, and handle any ownership transfer. - if ((wobj = sipConvertFromInstance(w, sipClass_QWidget, sipTransferObj)) == NULL) - { - // There was an error so garbage collect the Python list. - Py_DECREF(l); - return NULL; - } - - // Add the wrapper to the list. - PyList_SET_ITEM(l, i, wobj); - } - - // Return the Python list. - return l; - %End - - -%ConvertToSubClassCode ----------------------- - -.. parsed-literal:: - - %ConvertToSubClassCode - *code* - %End - -When SIP needs to wrap a C++ class instance it first checks to make sure it -hasn't already done so. If it has then it just returns a new reference to the -corresponding Python object. Otherwise it creates a new Python object of the -appropriate type. In C++ a function may be defined to return an instance of a -certain class, but can often return a sub-class instead. - -This directive is used to specify handwritten code that exploits any available -real-time type information (RTTI) to see if there is a more specific Python -type that can be used when wrapping the C++ instance. The RTTI may be -provided by the compiler or by the C++ instance itself. - -The directive is included in the specification of one of the classes that the -handwritten code handles the type conversion for. It doesn't matter which -one, but a sensible choice would be the one at the root of that class -hierarchy in the module. - -Note that if a class hierarchy extends over a number of modules then this -directive should be used in each of those modules to handle the part of the -hierarchy defined in that module. SIP will ensure that the different pieces -of code are called in the right order to determine the most specific Python -type to use. - -The following variables are made available to the handwritten code: - -*type* \*sipCpp - This is a pointer to the C++ class instance. - -void \*\*sipCppRet - When the sub-class is derived from more than one super-class then it is - possible that the C++ address of the instance as the sub-class is - different to that of the super-class. If so, then this must be set to the - C++ address of the instance when cast (usually using ``static_cast``) - from the super-class to the sub-class. - -sipWrapperType \*sipClass - The handwritten code must set this to the SIP generated Python type object - that corresponds to the class instance. (The type object for class - ``Klass`` is ``sipClass_Klass``.) If the RTTI of the class instance isn't - recognised then ``sipClass`` must be set to ``NULL``. The code doesn't - have to recognise the exact class, only the most specific sub-class that - it can. - -The handwritten code must not explicitly return. - -The following example shows the sub-class conversion code for ``QEvent`` based -class hierarchy in PyQt:: - - class QEvent - { - %ConvertToSubClassCode - // QEvent sub-classes provide a unique type ID. - switch (sipCpp -> type()) - { - case QEvent::Timer: - sipClass = sipClass_QTimerEvent; - break; - - case QEvent::KeyPress: - case QEvent::KeyRelease: - sipClass = sipClass_QKeyEvent; - break; - - // Skip the remaining event types to keep the example short. - - default: - // We don't recognise the type. - sipClass = NULL; - } - %End - - // The rest of the class specification. - - }; - -The SIP API includes the `sipMapIntToClass()`_ and `sipMapStringToClass()`_ -functions that convert integer and string based RTTI to Python type objects -based on ordered lookup tables. - - -%ConvertToTypeCode ------------------- - -.. parsed-literal:: - - %ConvertToTypeCode - *code* - %End - -This directive is used to specify the handwritten code that converts a Python -object to a mapped type instance and to handle any ownership transfers. It is -used as part of the `%MappedType`_ directive and as part of a class -specification. The code is also called to determine if the Python object is of -the correct type prior to conversion. - -When used as part of a class specification it can automatically convert -additional types of Python object. For example, PyQt uses it in the -specification of the ``QString`` class to allow Python string objects and -unicode objects to be used wherever ``QString`` instances are expected. - -The following variables are made available to the handwritten code: - -int \*sipIsErr - If this is ``NULL`` then the code is being asked to check the type of the - Python object. The check must not have any side effects. Otherwise the - code is being asked to convert the Python object and a non-zero value - should be returned through this pointer if an error occurred during the - conversion. - -PyObject \*sipPy - This is the Python object to be converted. - -*type* \*\*sipCppPtr - This is a pointer through which the address of the mapped type instance (or - zero if appropriate) is returned. Its value is undefined if ``sipIsErr`` - is ``NULL``. - -PyObject \*sipTransferObj - This specifies any desired ownership changes to *sipPy*. If it is ``NULL`` - then the ownership should be left unchanged. If it is ``Py_None`` then - ownership should be transferred to Python. Otherwise ownership should be - transferred to C/C++ and *sipPy* associated with *sipTransferObj*. The - code can choose to interpret these changes in any way. - -The handwritten code must explicitly return an ``int`` the meaning of which -depends on the value of ``sipIsErr``. - -If ``sipIsErr`` is ``NULL`` then a non-zero value is returned if the Python -object has a type that can be converted to the mapped type. Otherwise zero is -returned. - -If ``sipIsErr`` is not ``NULL`` then a combination of the following flags is -returned. - - - ``SIP_TEMPORARY`` is set to indicate that the returned instance is a - temporary and should be released to avoid a memory leak. - - - ``SIP_DERIVED_CLASS`` is set to indicate that the type of the - returned instance is a derived class. See `Generated Derived - Classes`_. - -The following example converts a Python list of ``QPoint`` instances to a -``QList`` instance:: - - %ConvertToTypeCode - // See if we are just being asked to check the type of the Python - // object. - if (!sipIsErr) - { - // Checking whether or not None has been passed instead of a list - // has already been done. - if (!PyList_Check(sipPy)) - return 0; - - // Check the type of each element. We specify SIP_NOT_NONE to - // disallow None because it is a list of QPoint, not of a pointer - // to a QPoint, so None isn't appropriate. - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy, i), - sipClass_QPoint, SIP_NOT_NONE)) - return 0; - - // The type is valid. - return 1; - } - - // Create the instance on the heap. - QList *ql = new QList; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - { - QPoint *qp; - int state; - - // Get the address of the element's C++ instance. Note that, in - // this case, we don't apply any ownership changes to the list - // elements, only to the list itself. - qp = reinterpret_cast(sipConvertToInstance( - PyList_GET_ITEM(sipPy, i), - sipClass_QPoint, 0, - SIP_NOT_NONE, - &state, sipIsErr)); - - // Deal with any errors. - if (*sipIsErr) - { - sipReleaseInstance(qp, sipClass_QPoint, state); - - // Tidy up. - delete ql; - - // There is no temporary instance. - return 0; - } - - ql -> append(*qp); - - // A copy of the QPoint was appended to the list so we no longer - // need it. It may be a temporary instance that should be - // destroyed, or a wrapped instance that should not be destroyed. - // sipReleaseInstance() will do the right thing. - sipReleaseInstance(qp, sipClass_QPoint, state); - } - - // Return the instance. - *sipCppPtr = ql; - - // The instance should be regarded as temporary (and be destroyed as - // soon as it has been used) unless it has been transferred from - // Python. sipGetState() is a convenience function that implements - // this common transfer behaviour. - return sipGetState(sipTransferObj); - %End - -When used in a class specification the handwritten code replaces the code that -would normally be automatically generated. This means that the handwritten -code must also handle instances of the class itself and not just the additional -types that are being supported. This should be done by making calls to -`sipCanConvertToInstance()`_ to check the object type and -`sipConvertToInstance()`_ to convert the object. The ``SIP_NO_CONVERTORS`` -flag *must* be passed to both these functions to prevent recursive calls to the -handwritten code. - - -%Copying --------- - -.. parsed-literal:: - - %Copying - *text* - %End - -This directive is used to specify some arbitrary text that will be included at -the start of all source files generated by SIP. It is normally used to -include copyright and licensing terms. - -For example:: - - %Copying - Copyright (c) 2007 Riverbank Computing Limited - %End - - -%Doc ----- - -.. parsed-literal:: - - %Doc - *text* - %End - -This directive is used to specify some arbitrary text that will be extracted -by SIP when the ``-d`` command line option is used. The directive can be -specified any number of times and SIP will concatenate all the separate pieces -of text in the order that it sees them. - -Documentation that is specified using this directive is local to the module in -which it appears. It is ignored by modules that `%Import`_ it. Use the -`%ExportedDoc`_ directive for documentation that should be included by all -modules that `%Import`_ this one. - -For example:: - - %Doc -

An Example

-

- This fragment of documentation is HTML and is local to the module in - which it is defined. -

- %End - - -%End ----- - -This isn't a directive in itself, but is used to terminate a number of -directives that allow a block of handwritten code or text to be specified. - - -%Exception ----------- - -.. parsed-literal:: - - %Exception *name* [(*base-exception)] - { - [*header-code*] - *raise-code* - }; - -This directive is used to define new Python exceptions, or to provide a stub -for existing Python exceptions. It allows handwritten code to be provided -that implements the translation between C++ exceptions and Python exceptions. -The arguments to ``throw ()`` specifiers must either be names of classes or the -names of Python exceptions defined by this directive. - -*name* is the name of the exception. - -*base-exception* is the optional base exception. This may be either one of -the standard Python exceptions or one defined with a previous `%Exception`_ -directive. - -*header-code* is the optional `%TypeHeaderCode`_ used to specify any external -interface to the exception being defined. - -*raise-code* is the `%RaiseCode`_ used to specify the handwritten code that -converts a reference to the C++ exception to the Python exception. - -For example:: - - %Exception std::exception(SIP_Exception) /PyName=StdException/ - { - %TypeHeaderCode - #include - %End - %RaiseCode - const char *detail = sipExceptionReference.what(); - - SIP_BLOCK_THREADS - PyErr_SetString(sipException_StdException, detail); - SIP_UNBLOCK_THREADS - %End - }; - -In this example we map the standard C++ exception to a new Python exception. -The new exception is called ``StdException`` and is derived from the standard -Python exception ``Exception``. - - -%ExportedDoc ------------- - -.. parsed-literal:: - - %ExportedDoc - *text* - %End - -This directive is used to specify some arbitrary text that will be extracted -by SIP when the ``-d`` command line option is used. The directive can be -specified any number of times and SIP will concatenate all the separate pieces -of text in the order that it sees them. - -Documentation that is specified using this directive will also be included by -modules that `%Import`_ it. - -For example:: - - %ExportedDoc - ========== - An Example - ========== - - This fragment of documentation is reStructuredText and will appear in the - module in which it is defined and all modules that %Import it. - %End - - -%ExportedHeaderCode -------------------- - -.. parsed-literal:: - - %ExportedHeaderCode - *code* - %End - -This directive is used to specify handwritten code, typically the declarations -of types, that is placed in a header file that is included by all generated -code for all modules. It should not include function declarations because -Python modules should not explicitly call functions in another Python module. - -See also `%ModuleCode`_ and `%ModuleHeaderCode`_. - - -%Feature --------- - -.. parsed-literal:: - - %Feature *name* - -This directive is used to declare a feature. Features (along with -`%Platforms`_ and `%Timeline`_) are used by the `%If`_ directive to control -whether or not parts of a specification are processed or ignored. - -Features are mutually independent of each other - any combination of features -may be enabled or disable. By default all features are enabled. The SIP -``-x`` command line option is used to disable a feature. - -If a feature is enabled then SIP will automatically generate a corresponding C -preprocessor symbol for use by handwritten code. The symbol is the name of -the feature prefixed by ``SIP_FEATURE_``. - -For example:: - - %Feature FOO_SUPPORT - - %If (FOO_SUPPORT) - void foo(); - %End - - -%GCClearCode ------------- - -.. parsed-literal:: - - %GCClearCode - *code* - %End - -Python has a cyclic garbage collector which can identify and release unneeded -objects even when their reference counts are not zero. If a wrapped C -structure or C++ class keeps its own reference to a Python object then, if the -garbage collector is to do its job, it needs to provide some handwritten code -to traverse and potentially clear those embedded references. - -See the section *Supporting cyclic garbage collection* in `Embedding and -Extending the Python Interpreter `__ -for the details. - -This directive is used to specify the code that clears any embedded references. -(See `%GCTraverseCode`_ for specifying the code that traverses any embedded -references.) - -The following variables are made available to the handwritten code: - -*type* \*sipCpp - This is a pointer to the structure or class instance. Its *type* is a - pointer to the structure or class. - -int sipRes - The handwritten code should set this to the result to be returned. - -The following simplified example is taken from PyQt. The ``QCustomEvent`` -class allows arbitary data to be attached to the event. In PyQt this data is -always a Python object and so should be handled by the garbage collector:: - - %GCClearCode - PyObject *obj; - - // Get the object. - obj = reinterpret_cast(sipCpp -> data()); - - // Clear the pointer. - sipCpp -> setData(0); - - // Clear the reference. - Py_XDECREF(obj); - - // Report no error. - sipRes = 0; - %End - - -%GCTraverseCode ---------------- - -.. parsed-literal:: - - %GCTraverseCode - *code* - %End - -This directive is used to specify the code that traverses any embedded -references for Python's cyclic garbage collector. (See `%GCClearCode`_ for a -full explanation.) - -The following variables are made available to the handwritten code: - -*type* \*sipCpp - This is a pointer to the structure or class instance. Its *type* is a - pointer to the structure or class. - -visitproc sipVisit - This is the visit function provided by the garbage collector. - -void \*sipArg - This is the argument to the visit function provided by the garbage - collector. - -int sipRes - The handwritten code should set this to the result to be returned. - -The following simplified example is taken from PyQt's ``QCustomEvent`` class:: - - %GCTraverseCode - PyObject *obj; - - // Get the object. - obj = reinterpret_cast(sipCpp -> data()); - - // Call the visit function if there was an object. - if (obj) - sipRes = sipVisit(obj, sipArg); - else - sipRes = 0; - %End - - -%GetCode --------- - -.. parsed-literal:: - - %GetCode - *code* - %End - -This directive is used after the declaration of a C++ class variable or C -structure member to specify handwritten code to convert it to a Python object. -It is usually used to handle types that SIP cannot deal with automatically. - -The following variables are made available to the handwritten code: - -*type* \*sipCpp - This is a pointer to the structure or class instance. Its *type* is a - pointer to the structure or class. It is not made available if the - variable being wrapped is a static class variable. - -PyObject \*sipPy - The handwritten code must set this to the Python representation of the - class variable or structure member. If there is an error then the code - must raise an exception and set this to ``NULL``. - -For example:: - - struct Entity - { - /* - * In this contrived example the C library we are wrapping actually - * defines this as char buffer[100] which SIP cannot handle - * automatically. - */ - char *buffer; - %GetCode - sipPy = PyString_FromStringAndSize(sipCpp -> buffer, 100); - %End - %SetCode - char *ptr; - int length; - - if (PyString_AsStringAndSize(sipPy, &ptr, &length) == -1) - sipErr = 1; - else if (length != 100) - { - /* - * Raise an exception because the length isn't exactly right. - */ - - PyErr_SetString(PyExc_ValueError, "an Entity.buffer must be exactly 100 bytes"); - sipErr = 1; - } - else - memcpy(sipCpp -> buffer, ptr, 100); - %End - } - - -%If ---- - -.. parsed-literal:: - - %If (*expression*) - *specification* - %End - -where - -.. parsed-literal:: - - *expression* ::= [*ored-qualifiers* | *range*] - - *ored-qualifiers* ::= [*qualifier* | *qualifier* ``||`` *ored-qualifiers*] - - *qualifier* ::= [``!``] [*feature* | *platform*] - - *range* ::= [*version*] ``-`` [*version*] - -This directive is used in conjunction with features (see `%Feature`_), -platforms (see `%Platforms`_) and versions (see `%Timeline`_) to control -whether or not parts of a specification are processed or not. - -A *range* of versions means all versions starting with the lower bound up to -but excluding the upper bound. If the lower bound is omitted then it is -interpreted as being before the earliest version. If the upper bound is -omitted then it is interpreted as being after the latest version. - -For example:: - - %Feature SUPPORT_FOO - %Platforms {WIN32_PLATFORM POSIX_PLATFORM MACOS_PLATFORM} - %Timeline {V1_0 V1_1 V2_0 V3_0} - - %If (!SUPPORT_FOO) - // Process this if the SUPPORT_FOO feature is disabled. - %End - - %If (POSIX_PLATFORM || MACOS_PLATFORM) - // Process this if either the POSIX_PLATFORM or MACOS_PLATFORM - // platforms are enabled. - %End - - %If (V1_0 - V2_0) - // Process this if either V1_0 or V1_1 is enabled. - %End - - %If (V2_0 - ) - // Process this if either V2_0 or V3_0 is enabled. - %End - - %If ( - ) - // Always process this. - %End - -Note that this directive is not implemented as a preprocessor. Only the -following parts of a specification are affected by it: - - - ``class`` - - `%ConvertFromTypeCode`_ - - `%ConvertToSubClassCode`_ - - `%ConvertToTypeCode`_ - - ``enum`` - - `%ExportedHeaderCode`_ - - functions - - `%GCClearCode`_ - - `%GCTraverseCode`_ - - `%If`_ - - `%MappedType`_ - - `%MethodCode`_ - - `%ModuleCode`_ - - `%ModuleHeaderCode`_ - - ``namespace`` - - `%PostInitialisationCode`_ - - `%PreInitialisationCode`_ - - ``struct`` - - ``typedef`` - - `%TypeCode`_ - - `%TypeHeaderCode`_ - - `%UnitCode`_ - - variables - - `%VirtualCatcherCode`_ - -Also note that the only way to specify the logical and of qualifiers is to use -nested `%If`_ directives. - - -%Import -------- - -.. parsed-literal:: - - %Import *filename* - -This directive is used to import the specification of another module. This is -needed if the current module makes use of any types defined in the imported -module, e.g. as an argument to a function, or to sub-class. - -If *filename* cannot be opened then SIP prepends *filename* with the name of -the directory containing the current specification file (i.e. the one -containing the `%Import`_ directive) and tries again. If this also fails then -SIP prepends *filename* with each of the directories, in turn, specified by -the ``-I`` command line option. - -For example:: - - %Import qt/qtmod.sip - - -%Include --------- - -.. parsed-literal:: - - %Include *filename* - -This directive is used to include contents of another file as part of the -specification of the current module. It is the equivalent of the C -preprocessor's ``#include`` directive and is used to structure a large module -specification into manageable pieces. - -`%Include`_ follows the same search process as `%Import`_ when trying to open -*filename*. - -For example:: - - %Include qwidget.sip - - -%License --------- - -.. parsed-literal:: - - %License /*license-annotations*/ - -This directive is used to specify the contents of an optional license -dictionary. The license dictionary is called ``__license__`` and is stored in -the module dictionary. The elements of the dictionary are specified using the -Licensee_, Signature_, Timestamp_ and Type_ annotations. Only the Type_ -annotation is compulsory. - -Note that this directive isn't an attempt to impose any licensing restrictions -on a module. It is simply a method for easily embedding licensing information -in a module so that it is accessible to Python scripts. - -For example:: - - %License /Type="GPL"/ - - -%MappedType ------------ - -.. parsed-literal:: - - template<*type-list*> - %MappedType *type* - { - [*header-code*] - [*convert-to-code*] - [*convert-from-code*] - }; - - %MappedType *type* - { - [*header-code*] - [*convert-to-code*] - [*convert-from-code*] - }; - -This directive is used to define an automatic mapping between a C or C++ type -and a Python type. It can be used as part of a template, or to map a specific -type. - -When used as part of a template *type* cannot itself refer to a template. Any -occurrences of any of the type names (but not any ``*`` or ``&``) in -*type-list* will be replaced by the actual type names used when the template is -instantiated. Template mapped types are instantiated automatically as required -(unlike template classes which are only instantiated using ``typedef``). - -Any explicit mapped type will be used in preference to any template that maps -the same type, ie. a template will not be automatically instantiated if there -is an explicit mapped type. - -*header-code* is the `%TypeHeaderCode`_ used to specify the library interface -to the type being mapped. - -*convert-to-code* is the `%ConvertToTypeCode`_ used to specify the handwritten -code that converts a Python object to an instance of the mapped type. - -*convert-from-code* is the `%ConvertFromTypeCode`_ used to specify the -handwritten code that converts an instance of the mapped type to a Python -object. - -For example:: - - template - %MappedType QList - { - %TypeHeaderCode - // Include the library interface to the type being mapped. - #include - %End - - %ConvertToTypeCode - // See if we are just being asked to check the type of the Python - // object. - if (sipIsErr == NULL) - { - // Check it is a list. - if (!PyList_Check(sipPy)) - return 0; - - // Now check each element of the list is of the type we expect. - // The template is for a pointer type so we don't disallow None. - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy, i), - sipClass_Type, 0)) - return 0; - - return 1; - } - - // Create the instance on the heap. - QList *ql = new QList; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - { - // Use the SIP API to convert the Python object to the - // corresponding C++ instance. Note that we apply any ownership - // transfer to the list itself, not the individual elements. - Type *t = reinterpret_cast(sipConvertToInstance( - PyList_GET_ITEM(sipPy, i), - sipClass_Type, 0, 0, 0, - sipIsErr)); - - if (*sipIsErr) - { - // Tidy up. - delete ql; - - // There is nothing on the heap. - return 0; - } - - // Add the pointer to the C++ instance. - ql -> append(t); - } - - // Return the instance on the heap. - *sipCppPtr = ql; - - // Apply the normal transfer. - return sipGetState(sipTransferObj); - %End - - %ConvertFromTypeCode - PyObject *l; - - // Create the Python list of the correct length. - if ((l = PyList_New(sipCpp -> size())) == NULL) - return NULL; - - // Go through each element in the C++ instance and convert it to the - // corresponding Python object. - for (int i = 0; i < sipCpp -> size(); ++i) - { - Type *t = sipCpp -> at(i); - PyObject *tobj; - - if ((tobj = sipConvertFromInstance(t, sipClass_Type, sipTransferObj)) == NULL) - { - // There was an error so garbage collect the Python list. - Py_DECREF(l); - return NULL; - } - - PyList_SET_ITEM(l, i, tobj); - } - - // Return the Python list. - return l; - %End - } - -Using this we can use, for example, ``QList`` throughout the -module's specification files (and in any module that imports this one). The -generated code will automatically map this to and from a Python list of QObject -instances when appropriate. - - -%MethodCode ------------ - -.. parsed-literal:: - - %MethodCode - *code* - %End - -This directive is used as part of the specification of a global function, class -method, operator, constructor or destructor to specify handwritten code that -replaces the normally generated call to the function being wrapped. It is -usually used to handle argument types and results that SIP cannot deal with -automatically. - -The specified code is embedded in-line after the function's arguments have -been successfully converted from Python objects to their C or C++ equivalents. -The specified code must not include any ``return`` statements. - -In the context of a destructor the specified code is embedded in-line in the -Python type's deallocation function. Unlike other contexts it supplements -rather than replaces the normally generated code, so it must not include code -to return the C structure or C++ class instance to the heap. The code is only -called if ownership of the structure or class is with Python. - -The specified code must also handle the Python Global Interpreter Lock (GIL). -If compatibility with SIP v3.x is required then the GIL must be released -immediately before the C++ call and reacquired immediately afterwards as shown -in this example fragment:: - - Py_BEGIN_ALLOW_THREADS - sipCpp -> foo(); - Py_END_ALLOW_THREADS - -If compatibility with SIP v3.x is not required then this is optional but -should be done if the C++ function might block the current thread or take a -significant amount of time to execute. (See `The Python Global Interpreter -Lock`_ and the ReleaseGIL_ and HoldGIL_ annotations.) - -The following variables are made available to the handwritten code: - -*type* a0 - There is a variable for each argument of the Python signature (excluding - any ``self`` argument) named ``a0``, ``a1``, etc. The *type* of the - variable is the same as the type defined in the specification with the - following exceptions: - - - if the argument is only used to return a value (e.g. it is an ``int *`` - without an In_ annotation) then the type has one less level of - indirection (e.g. it will be an ``int``) - - if the argument is a structure or class (or a reference or a pointer to a - structure or class) then *type* will always be a pointer to the structure - or class. - - Note that handwritten code for destructors never has any arguments. - -PyObject \*a0Wrapper - This variable is made available only if the corresponding argument wraps a - C structure or C++ class instance and the GetWrapper_ annotation is - specified. The variable is a pointer to the Python object that wraps the - argument. - -*type* \*sipCpp - If the directive is used in the context of a class constructor then this - must be set by the handwritten code to the constructed instance. In any - other context then this is a pointer to the C structure or C++ class - instance. Its *type* is a pointer to the structure or class. - -int sipIsErr - The handwritten code should set this to a non-zero value, and raise an - appropriate Python exception, if an error is detected. - - ``sipIsErr`` is not provided for destructors. - -*type* sipRes - The handwritten code should set this to the result to be returned. The - *type* of the variable is the same as the type defined in the Python - signature in the specification with the following exception: - - - if the argument is a structure or class (or a reference or a pointer to a - structure or class) then *type* will always be a pointer to the structure - or class. - - ``sipRes`` is not provided for inplace operators (e.g. ``+=`` or - ``__imul__``) as their results are handled automatically, nor for class - constructors. - -PyObject \*sipSelf - If the directive is used in the context of a class constructor or method - then this is the Python object that wraps the the structure or class - instance, i.e. ``self``. - -bool sipSelfWasArg - This is only made available for non-abstract, virtual methods. It is set - if ``self`` was explicitly passed as the first argument of the method - rather than being bound to the method. In other words, the call was:: - - Klass.foo(self, ...) - - rather than:: - - self.foo(...) - -The following is a complete example:: - - class Klass - { - public: - virtual int foo(SIP_PYTUPLE); - %MethodCode - // The C++ API takes a 2 element array of integers but passing a - // two element tuple is more Pythonic. - - int iarr[2]; - - if (PyArg_ParseTuple(a0, "ii", &iarr[0], &iarr[1])) - { - Py_BEGIN_ALLOW_THREADS - sipRes = sipSelfWasArg ? sipCpp -> Klass::foo(iarr) - : sipCpp -> foo(iarr); - Py_END_ALLOW_THREADS - } - else - { - // PyArg_ParseTuple() will have raised the exception. - sipIsErr = 1; - } - %End - }; - -As the example is a virtual method [#]_, note the use of ``sipSelfWasArg`` to -determine exactly which implementation of ``foo()`` to call. - -If a method is in the ``protected`` section of a C++ class then the call -should instead be:: - - sipRes = sipCpp -> sipProtectVirt_foo(sipSelfWasArg, iarr); - -If a method is in the ``protected`` section of a C++ class but is not virtual -then the call should instead be:: - - sipRes = sipCpp -> sipProtect_foo(iarr); - -.. [#] See `%VirtualCatcherCode`_ for a description of how SIP generated code - handles the reimplementation of C++ virtual methods in Python. - - -%Module -------- - -.. parsed-literal:: - - %Module *name* [*version*] - -This directive is used to identify that the library being wrapped is a C++ -library and to define the name of the module and it's optional version number. - -The name may contain periods to specify that the module is part of a Python -package. - -The optional version number is useful if you (or others) might create other -modules that build on this module, i.e. if another module might `%Import`_ -this module. Under the covers, a module exports an API that is used by modules -that `%Import`_ it and the API is given a version number. A module built on -that module knows the version number of the API that it is expecting. If, -when the modules are imported at run-time, the version numbers do not match -then a Python exception is raised. The dependent module must then be re-built -using the correct specification files for the base module. - -The version number should be incremented whenever a module is changed. Some -changes don't affect the exported API, but it is good practice to change the -version number anyway. - -For example:: - - %Module qt 5 - - -%ModuleCode ------------ - -.. parsed-literal:: - - %ModuleCode - *code* - %End - -This directive is used to specify handwritten code, typically the -implementations of utility functions, that can be called by other handwritten -code in the module. - -For example:: - - %ModuleCode - // Print an object on stderr for debugging purposes. - void dump_object(PyObject *o) - { - PyObject_Print(o, stderr, 0); - fprintf(stderr, "\n"); - } - %End - -See also `%ExportedHeaderCode`_ and `%ModuleHeaderCode`_. - - -%ModuleHeaderCode ------------------ - -.. parsed-literal:: - - %ModuleHeaderCode - *code* - %End - -This directive is used to specify handwritten code, typically the declarations -of utility functions, that is placed in a header file that is included by all -generated code for the same module. - -For example:: - - %ModuleHeaderCode - void dump_object(PyObject *o); - %End - -See also `%ExportedHeaderCode`_ and `%ModuleCode`_. - - -%OptionalInclude ----------------- - -.. parsed-literal:: - - %OptionalInclude *filename* - -This directive is identical to the `%Include`_ directive except that SIP -silently continues processing if *filename* could not be opened. - -For example:: - - %OptionalInclude license.sip - - -%Platforms ----------- - -.. parsed-literal:: - - %Platforms {*name* *name* ...} - -This directive is used to declare a set of platforms. Platforms (along with -`%Feature`_ and `%Timeline`_) are used by the `%If`_ directive to control -whether or not parts of a specification are processed or ignored. - -Platforms are mutually exclusive - only one platform can be enabled at a time. -By default all platforms are disabled. The SIP ``-t`` command line option is -used to enable a platform. - -For example:: - - %Platforms {WIN32_PLATFORM POSIX_PLATFORM MACOS_PLATFORM} - - %If (WIN32_PLATFORM) - void undocumented(); - %End - - %If (POSIX_PLATFORM) - void documented(); - %End - - -%PostInitialisationCode ------------------------ - -.. parsed-literal:: - - %PostInitialisationCode - *code* - %End - -This directive is used to specify handwritten code that is embedded in-line -at the very end of the generated module initialisation code. - -The following variables are made available to the handwritten code: - -PyObject \*sipModule - This is the module object returned by ``Py_InitModule()``. - -PyObject \*sipModuleDict - This is the module's dictionary object returned by ``Py_ModuleGetDict()``. - -For example:: - - %PostInitialisationCode - // The code will be executed when the module is first imported and - // after all other initialisation has been completed. - %End - - -%PreInitialisationCode ----------------------- - -.. parsed-literal:: - - %PreInitialisationCode - *code* - %End - -This directive is used to specify handwritten code that is embedded in-line -at the very start of the generated module initialisation code. - -For example:: - - %PreInitialisationCode - // The code will be executed when the module is first imported and - // before other initialisation has been completed. - %End - - -%RaiseCode ----------- - -.. parsed-literal:: - - %RaiseCode - *code* - %End - -This directive is used as part of the definition of an exception using the -`%Exception`_ directive to specify handwritten code that raises a Python -exception when a C++ exception has been caught. The code is embedded in-line -as the body of a C++ ``catch ()`` clause. - -The specified code must handle the Python Global Interpreter Lock (GIL) if -necessary. The GIL must be acquired before any calls to the Python API and -released after the last call as shown in this example fragment:: - - SIP_BLOCK_THREADS - PyErr_SetNone(PyErr_Exception); - SIP_UNBLOCK_THREADS - -Finally, the specified code must not include any ``return`` statements. - -The following variable is made available to the handwritten code: - -*type* &sipExceptionRef - This is a reference to the caught C++ exception. The *type* of the - reference is the same as the type defined in the ``throw ()`` specifier. - -See the `%Exception`_ directive for an example. - - -%SetCode --------- - -.. parsed-literal:: - - %SetCode - *code* - %End - -This directive is used after the declaration of a C++ class variable or C -structure member to specify handwritten code to convert it from a Python -object. It is usually used to handle types that SIP cannot deal with -automatically. - -The following variables are made available to the handwritten code: - -*type* \*sipCpp - This is a pointer to the structure or class instance. Its *type* is a - pointer to the structure or class. It is not made available if the - variable being wrapped is a static class variable. - -int sipErr - If the conversion failed then the handwritten code should raise a Python - exception and set this to a non-zero value. Its initial value will be - automatically set to zero. - -PyObject \*sipPy - This is the Python object that the handwritten code should convert. - -See the `%GetCode`_ directive for an example. - - -%SIPOptions ------------ - -This directive sets one or more options that controls different aspects of -SIP's behaviour. In this version all the available options are provided -specifically to support PyQt and so are not documented. - - -%Timeline ---------- - -.. parsed-literal:: - - %Timeline {*name* *name* ...} - -This directive is used to declare a set of versions released over a period of -time. Versions (along with `%Feature`_ and `%Platforms`_) are used by the -`%If`_ directive to control whether or not parts of a specification are -processed or ignored. - -Versions are mutually exclusive - only one version can be enabled at a time. -By default all versions are disabled. The SIP ``-t`` command line option is -used to enable a version. - -For example:: - - %Timeline {V1_0 V1_1 V2_0 V3_0} - - %If (V1_0 - V2_0) - void foo(); - %End - - %If (V2_0 -) - void foo(int = 0); - %End - -`%Timeline`_ can be used any number of times in a module to allow multiple -libraries to be wrapped in the same module. - - -%TypeCode ---------- - -.. parsed-literal:: - - %TypeCode - *code* - %End - -This directive is used as part of the specification of a C structure or a C++ -class to specify handwritten code, typically the implementations of utility -functions, that can be called by other handwritten code in the structure or -class. - -For example:: - - class Klass - { - %TypeCode - // Print an instance on stderr for debugging purposes. - static void dump_klass(const Klass *k) - { - fprintf(stderr,"Klass %s at %p\n", k -> name(), k); - } - %End - - // The rest of the class specification. - - }; - -Because the scope of the code is normally within the generated file that -implements the type, any utility functions would normally be declared -``static``. However a naming convention should still be adopted to prevent -clashes of function names within a module in case the SIP ``-j`` command line -option is used. - - -%TypeHeaderCode ---------------- - -.. parsed-literal:: - - %TypeHeaderCode - *code* - %End - -This directive is used to specify handwritten code that defines the interface -to a C or C++ type being wrapped, either a structure, a class, or a template. -It is used within a class definition or a `%MappedType`_ directive. - -Normally *code* will be a pre-processor ``#include`` statement. - -For example:: - - // Wrap the Klass class. - class Klass - { - %TypeHeaderCode - #include - %End - - // The rest of the class specification. - }; - - -%UnitCode ---------- - -.. parsed-literal:: - - %UnitCode - *code* - %End - -This directive is used to specify handwritten code that it included at the very -start of a generated compilation unit (ie. C or C++ source file). It is -typically used to ``#include`` a C++ precompiled header file. - - -%VirtualCatcherCode -------------------- - -.. parsed-literal:: - - %VirtualCatcherCode - *code* - %End - -For most classes there are corresponding `generated derived classes`_ that -contain reimplementations of the class's virtual methods. These methods (which -SIP calls catchers) determine if there is a corresponding Python -reimplementation and call it if so. If there is no Python reimplementation -then the method in the original class is called instead. - -This directive is used to specify handwritten code that replaces the normally -generated call to the Python reimplementation and the handling of any returned -results. It is usually used to handle argument types and results that SIP -cannot deal with automatically. - -This directive can also be used in the context of a class destructor to -specify handwritten code that is embedded in-line in the internal derived -class's destructor. - -In the context of a method the Python Global Interpreter Lock (GIL) is -automatically acquired before the specified code is executed and automatically -released afterwards. - -In the context of a destructor the specified code must handle the GIL. The -GIL must be acquired before any calls to the Python API and released after the -last call as shown in this example fragment:: - - SIP_BLOCK_THREADS - Py_DECREF(obj); - SIP_UNBLOCK_THREADS - -The following variables are made available to the handwritten code in the -context of a method: - -*type* a0 - There is a variable for each argument of the C++ signature named ``a0``, - ``a1``, etc. The *type* of the variable is the same as the type defined in - the specification. - -int sipIsErr - The handwritten code should set this to a non-zero value, and raise an - appropriate Python exception, if an error is detected. - -PyObject \*sipMethod - This object is the Python reimplementation of the virtual C++ method. It - is normally passed to `sipCallMethod()`_. - -*type* sipRes - The handwritten code should set this to the result to be returned. The - *type* of the variable is the same as the type defined in the C++ signature - in the specification. - -No variables are made available in the context of a destructor. - -For example:: - - class Klass - { - public: - virtual int foo(SIP_PYTUPLE) [int (int *)]; - %MethodCode - // The C++ API takes a 2 element array of integers but passing a - // two element tuple is more Pythonic. - - int iarr[2]; - - if (PyArg_ParseTuple(a0, "ii", &iarr[0], &iarr[1])) - { - Py_BEGIN_ALLOW_THREADS - sipRes = sipCpp -> Klass::foo(iarr); - Py_END_ALLOW_THREADS - } - else - { - // PyArg_ParseTuple() will have raised the exception. - sipIsErr = 1; - } - %End - %VirtualCatcherCode - // Convert the 2 element array of integers to the two element - // tuple. - - PyObject *result; - - result = sipCallMethod(&sipIsErr, sipMethod, "ii", a0[0], a0[1]); - - if (result != NULL) - { - // Convert the result to the C++ type. - sipParseResult(&sipIsErr, sipMethod, result, "i", &sipRes); - - Py_DECREF(result); - } - %End - }; - - -SIP Annotations -=============== - -In this section we describe each of the annotations that can be used in -specification files. - -Annotations can either be argument annotations, class annotations, enum -annotations, exception annotations, function annotations, license annotations, -or variable annotations depending on the context in which they can be used. - -Annotations are placed between forward slashes (``/``). Multiple annotations -are comma separated within the slashes. - -Annotations have a type and, possibly, a value. The type determines the -format of the value. The name of an annotation and its value are separated by -``=``. - -Annotations can have one of the following types: - -boolean - This type of annotation has no value and is implicitly true. - -name - The value is a name that is compatible with a C/C++ identifier. In some - cases the value is optional. - -string - The value is a double quoted string. - -The following example shows argument and function annotations:: - - void exec(QWidget * /Transfer/) /ReleaseGIL, PyName=call_exec/; - -Note that the current version of SIP does not complain about unknown -annotations, or annotations used out of their correct context. - - -Argument Annotations --------------------- - -AllowNone -********* - -This boolean annotation specifies that the value of the corresponding argument -(which should be either SIP_PYCALLABLE_, SIP_PYDICT_, SIP_PYLIST_, -SIP_PYSLICE_, SIP_PYTUPLE_ or SIP_PYTYPE_) may be ``None``. - - -Array -***** - -This boolean annotation specifies that the corresponding argument (which -should be either ``char *`` or ``unsigned char *``) refers to an array -rather than a ``'\0'`` terminated string. There must be a corresponding -argument with the ArraySize_ annotation specified. The annotation may only be -specified once in a list of arguments. - - -ArraySize -********* - -This boolean annotation specifies that the corresponding argument (which -should be either ``short``, ``unsigned short``, ``int``, ``unsigned``, -``long`` or ``unsigned long``) refers to the size of an array. There must be -a corresponding argument with the Array_ annotation specified. The annotation -may only be specified once in a list of arguments. - - -Constrained -*********** - -Python will automatically convert between certain compatible types. For -example, if a floating pointer number is expected and an integer supplied, -then the integer will be converted appropriately. This can cause problems -when wrapping C or C++ functions with similar signatures. For example:: - - // The wrapper for this function will also accept an integer argument - // which Python will automatically convert to a floating point number. - void foo(double); - - // The wrapper for this function will never get used. - void foo(int); - -This boolean annotation specifies that the corresponding argument (which -should be either ``bool``, ``int``, ``float``, ``double`` or a wrapped class) -must match the type without any automatic conversions. In the context of a -wrapped class the invocation of any `%ConvertToTypeCode`_ is suppressed. - -The following example gets around the above problem:: - - // The wrapper for this function will only accept floating point numbers. - void foo(double /Constrained/); - - // The wrapper for this function will be used for anything that Python can - // convert to an integer, except for floating point numbers. - void foo(int); - - -GetWrapper -********** - -This boolean annotation is only ever used in conjunction with handwritten code -specified with the `%MethodCode`_ directive. It causes an extra variable to -be generated for the corresponding argument (which should be a wrapped C -structure or C++ class instance) which is a pointer to the Python object that -wraps the argument. - -See the `%MethodCode`_ directive for more detail. - - -In -** - -This boolean annotation is used to specify that the corresponding argument -(which should be a pointer type) is used to pass a value to the function. - -For pointers to wrapped C structures or C++ class instances, ``char *`` and -``unsigned char *`` then this annotation is assumed unless the Out_ annotation -is specified. - -For pointers to other types then this annotation must be explicitly specified -if required. The argument will be dereferenced to obtain the actual value. - -Both In_ and Out_ may be specified for the same argument. - - -Out -*** - -This boolean annotation is used to specify that the corresponding argument -(which should be a pointer type) is used by the function to return a value as -an element of a tuple. - -For pointers to wrapped C structures or C++ class instances, ``char *`` and -``unsigned char *`` then this annotation must be explicitly specified if -required. - -For pointers to other types then this annotation is assumed unless the In_ -annotation is specified. - -Both In_ and Out_ may be specified for the same argument. - - -Transfer -******** - -This boolean annotation is used to specify that ownership of the corresponding -argument (which should be a wrapped C structure or C++ class instance) is -transferred from Python to C++. In addition, if the argument is of a class -method, then it is associated with the class instance with regard to the -cyclic garbage collector. - -See `Ownership of Objects`_ for more detail. - - -TransferBack -************ - -This boolean annotation is used to specify that ownership of the corresponding -argument (which should be a wrapped C structure or C++ class instance) is -transferred back to Python from C++. In addition, any association of the -argument with regard to the cyclic garbage collector with another instance is -removed. - -Note that this can also be used as a function annotation. - -See `Ownership of Objects`_ for more detail. - - -TransferThis -************ - -This boolean annotation is only used in C++ constructors or methods. In the -context of a constructor or factory method it specifies that ownership of the -instance being created is transferred from Python to C++ if the corresponding -argument (which should be a wrapped C structure or C++ class instance) is not -``None``. In addition, the newly created instance is associated with the -argument with regard to the cyclic garbage collector. - -In the context of a non-factory method it specifies that ownership of ``this`` -is transferred from Python to C++ if the corresponding argument is not -``None``. If it is ``None`` then ownership is transferred to Python. - -The annotation may be used more that once, in which case ownership is -transferred to last instance that is not ``None``. - -See `Ownership of Objects`_ for more detail. - - -Class Annotations ------------------ - -Abstract -******** - -This boolean annotation is used to specify that the class has additional pure -virtual methods that have not been specified and so it cannot be instantiated -or sub-classed from Python. - - -DelayDtor -********* - -This boolean annotation is used to specify that the class's destructor should -not be called until the Python interpreter exits. It would normally only be -applied to singleton classes. - -When the Python interpreter exits the order in which any wrapped instances are -garbage collected is unpredictable. However, the underlying C or C++ instances -may need to be destroyed in a certain order. If this annotation is specified -then when the wrapped instance is garbage collected the C or C++ instance is -not destroyed but instead added to a list of delayed instances. When the -interpreter exits then the function ``sipDelayedDtors`` is called with the -list of delayed instances. ``sipDelayedDtors`` can then choose to call (or -ignore) the destructors in any desired order. - -The ``sipDelayedDtors`` function must be specified using the `%ModuleCode`_ -directive. It's signature is as follows:: - - static void sipDelayedDtors(const sipDelayedDtor *dd_list); - -``dd_list`` is the linked list of delayed instances. The following fields are -defined. - -const char \*dd_name - This is the name of the class excluding any package or module name. - -void \*dd_ptr - This is the address of the C or C++ instance to be destroyed. It's exact - type depends on the value of ``dd_isderived``. - -int dd_isderived - This is non-zero if the type of ``dd_ptr`` is actually the generated - derived class. This allows the correct destructor to be called. See - `Generated Derived Classes`_. - -sipDelayedDtor \*dd_next - This is the address of the next entry in the list or zero if this is the - last one. - -Note that the above applies only to C and C++ instances that are owned by -Python. - - -External -******** - -This boolean annotation is used to specify that the class is defined in another -module. Declarations of external classes are private to the module in which -they appear. - - -NoDefaultCtors -************** - -This boolean annotation is used to suppress the automatic generation of default -constructors for the class. - - -PyName -****** - -This name annotation specifies an alternative name for the class being wrapped -which is used when it is referred to from Python. It is required when a class -name is the same as a Python keyword. It may also be used to avoid name -clashes with other objects (e.g. enums, exceptions, functions) that have the -same name in the same C++ scope. - - -Enum Annotations ----------------- - -PyName -****** - -This name annotation specifies an alternative name for the enum or enum member -being wrapped which is used when it is referred to from Python. It is required -when an enum or enum member name is the same as a Python keyword. It may also -be used to avoid name clashes with other objects (e.g. classes, exceptions, -functions) that have the same name in the same C++ scope. - - -Exception Annotations ---------------------- - -PyName -****** - -This name annotation specifies an alternative name for the exception being -defined which is used when it is referred to from Python. It is required when -an exception name is the same as a Python keyword. It may also be used to -avoid name clashes with other objects (e.g. classes, enums, functions) that -have the same name. - - -Function Annotations --------------------- - -AutoGen -******* - -This optional name annotation is used with class methods to specify that the -method be automatically included in all sub-classes. The value is the name of -a feature (specified using the `%Feature`_ directive) which must be enabled -for the method to be generated. - - -Default -******* - -This boolean annotation is only used with C++ constructors. Sometimes SIP -needs to create a class instance. By default it uses a constructor with no -compulsory arguments if one is specified. (SIP will automatically generate a -constructor with no arguments if no constructors are specified.) This -annotation is used to explicitly specify which constructor to use. Zero is -passed as the value of any arguments to the constructor. - - -Factory -******* - -This boolean annotation specifies that the value returned by the function -(which should be a wrapped C structure or C++ class instance) is a newly -created instance and is owned by Python. - -See `Ownership of Objects`_ for more detail. - - -HoldGIL -******* - -This boolean annotation specifies that the Python Global Interpreter Lock (GIL) -is not released before the call to the underlying C or C++ function. See -`The Python Global Interpreter Lock`_ and the ReleaseGIL_ annotation. - - -NewThread -********* - -This boolean annotation specifies that the function will create a new thread. - - -NoDerived -********* - -This boolean annotation is only used with C++ constructors. In many cases SIP -generates a derived class for each class being wrapped (see `Generated Derived -Classes`_). This derived class contains constructors with the same C++ -signatures as the class being wrapped. Sometimes you may want to define a -Python constructor that has no corresponding C++ constructor. This annotation -is used to suppress the generation of the constructor in the derived class. - - -Numeric -******* - -This boolean annotation specifies that the operator should be interpreted as a -numeric operator rather than a sequence operator. Python uses the ``+`` -operator for adding numbers and concatanating sequences, and the ``*`` operator -for multiplying numbers and repeating sequences. SIP tries to work out which -is meant by looking at other operators that have been defined for the type. -If it finds either ``-``, ``-=``, ``/``, ``/=``, ``%`` or ``%=`` defined then -it assumes that ``+``, ``+=``, ``*`` and ``*=`` should be numeric operators. -Otherwise, if it finds either ``[]``, ``__getitem__()``, ``__setitem__()`` or -``__delitem__()`` defined then it assumes that they should be sequence -operators. This annotation is used to force SIP to treat the operator as -numeric. - - -PostHook -******** - -This name annotation is used to specify the name of a Python builtin that is -called immediately after the call to the underlying C or C++ function or any -handwritten code. The builtin is not called if an error occurred. It is -primarily used to integrate with debuggers. - - -PreHook -******* - -This name annotation is used to specify the name of a Python builtin that is -called immediately after the function's arguments have been successfully -parsed and before the call to the underlying C or C++ function or any -handwritten code. It is primarily used to integrate with debuggers. - - -PyName -****** - -This name annotation specifies an alternative name for the function being -wrapped which is used when it is referred to from Python. It is required when -a function or method name is the same as a Python keyword. It may also be used -to avoid name clashes with other objects (e.g. classes, enums, exceptions) that -have the same name in the same C++ scope. - - -ReleaseGIL -********** - -This boolean annotation specifies that the Python Global Interpreter Lock (GIL) -is released before the call to the underlying C or C++ function and reacquired -afterwards. It should be used for functions that might block or take a -significant amount of time to execute. See `The Python Global Interpreter -Lock`_ and the HoldGIL_ annotation. - - -TransferBack -************ - -This boolean annotation specifies that ownership of the value returned by the -function (which should be a wrapped C structure or C++ class instance) is -transferred back to Python from C++. Normally returned values (unless they are -new references to already wrapped values) are owned by C++. In addition, any -association of the returned value with regard to the cyclic garbage collector -with another instance is removed. - -Note that this can also be used as an argument annotation. - -See `Ownership of Objects`_ for more detail. - - -License Annotations -------------------- - -Licensee -******** - -This optional string annotation specifies the license's licensee. No -restrictions are placed on the contents of the string. - -See the `%License`_ directive. - - -Signature -********* - -This optional string annotation specifies the license's signature. No -restrictions are placed on the contents of the string. - -See the `%License`_ directive. - - -Timestamp -********* - -This optional string annotation specifies the license's timestamp. No -restrictions are placed on the contents of the string. - -See the `%License`_ directive. - - -Type -**** - -This string annotation specifies the license's type. No restrictions are -placed on the contents of the string. - -See the `%License`_ directive. - - -Variable Annotations --------------------- - -PyName -****** - -This name annotation specifies an alternative name for the variable being -wrapped which is used when it is referred to from Python. It is required when -a variable name is the same as a Python keyword. It may also be used to avoid -name clashes with other objects (e.g. classes, functions) that have the same -name in the same C++ scope. - - -SIP API for Handwritten Code -============================ - -In this section we describe the API that can be used by handwritten code in -specification files. - - -SIP_API_MAJOR_NR ----------------- - -This is a C preprocessor symbol that defines the major number of the SIP API. -Its value is a number. There is no direct relationship between this and the -SIP version number. - - -SIP_API_MINOR_NR ----------------- - -This is a C preprocessor symbol that defines the minor number of the SIP API. -Its value is a number. There is no direct relationship between this and the -SIP version number. - - -SIP_BLOCK_THREADS ------------------ - -This is a C preprocessor macro that will make sure the Python Global -Interpreter Lock (GIL) is acquired. Python API calls must only be made when -the GIL has been acquired. There must be a corresponding -`SIP_UNBLOCK_THREADS`_ at the same lexical scope. - - -SIP_SSIZE_T ------------ - -This is a C preprocessor macro that is defined as ``Py_ssize_t`` for Python -v2.5 and later, and as ``int`` for earlier versions of Python. It makes it -easier to write PEP 353 compliant handwritten code. - - -SIP_UNBLOCK_THREADS -------------------- - -This is a C preprocessor macro that will restore the Python Global Interpreter -Lock (GIL) to the state it was prior to the corresponding `SIP_BLOCK_THREADS`_. - - -SIP_VERSION ------------ - -This is a C preprocessor symbol that defines the SIP version number -represented as a 3 part hexadecimal number (e.g. v4.0.0 is represented as -``0x040000``). - - -SIP_VERSION_STR ---------------- - -This is a C preprocessor symbol that defines the SIP version number -represented as a string. For development snapshots it will start with -``snapshot-``. - - -sipBadCatcherResult() ---------------------- - -void sipBadCatcherResult(PyObject \*method) - This raises a Python exception when the result of a Python reimplementation - of a C++ method doesn't have the expected type. It is normally called by - handwritten code specified with the `%VirtualCatcherCode`_ directive. - *method* is the Python method and would normally be the supplied - ``sipMethod``. - - -sipBadLengthForSlice() ----------------------- - -void sipBadLengthForSlice(SIP_SSIZE_T seqlen, SIP_SSIZE_T slicelen) - This raises a Python exception when the length of a slice object is - inappropriate for a sequence-like object. It is normally called by - handwritten code specified for ``__setitem__()`` methods. *seqlen* is the - length of the sequence. *slicelen* is the length of the slice. With - versions of Python prior to v2.5 the arguments have type ``int``. - - -sipBuildResult() ----------------- - -PyObject \*sipBuildResult(int \*iserr, const char \*format, ...) - This creates a Python object based on a format string and associated - values in a similar way to the Python ``Py_BuildValue()`` function. If - there was an error then ``NULL`` is returned and a Python exception is - raised. If *iserr* is not ``NULL`` then the location it points to is set - to a non-zero value. *format* is the string of format characters. - - If *format* begins and ends with parentheses then a tuple of objects is - created. If *format* contains more than one format character then - parentheses must be specified. - - In the following description the first letter is the format character, the - entry in parentheses is the Python object type that the format character - will create, and the entry in brackets are the types of the C/C++ values - to be passed. - - ``a`` (string) [char \*, int] - Convert a C/C++ character array and its length to a Python string. If - the array is ``NULL`` then the length is ignored and the result is - ``Py_None``. - - ``b`` (boolean) [int] - Convert a C/C++ ``int`` to a Python boolean. - - ``c`` (string) [char] - Convert a C/C++ ``char`` to a Python string. - - ``d`` (float) [double] - Convert a C/C++ ``double`` to a Python floating point number. - - ``e`` (integer) [enum] - Convert an anonymous C/C++ ``enum`` to a Python integer. - - ``f`` (float) [float] - Convert a C/C++ ``float`` to a Python floating point number. - - ``h`` (integer) [short] - Convert a C/C++ ``short`` to a Python integer. - - ``i`` (integer) [int] - Convert a C/C++ ``int`` to a Python integer. - - ``l`` (long) [long] - Convert a C/C++ ``long`` to a Python integer. - - ``m`` (long) [unsigned long] - Convert a C/C++ ``unsigned long`` to a Python long. - - ``n`` (long) [long long] - Convert a C/C++ ``long long`` to a Python long. - - ``o`` (long) [unsigned long long] - Convert a C/C++ ``unsigned long long`` to a Python long. - - ``s`` (string) [char \*] - Convert a C/C++ ``'\0'`` terminated string to a Python string. If the - string pointer is ``NULL`` then the result is ``Py_None``. - - ``t`` (long) [unsigned short] - Convert a C/C++ ``unsigned short`` to a Python long. - - ``u`` (long) [unsigned int] - Convert a C/C++ ``unsigned int`` to a Python long. - - ``w`` (unicode) [wchar_t] - Convert a C/C++ wide character to a Python unicode object. - - ``x`` (unicode) [wchar_t \*] - Convert a C/C++ ``L'\0'`` terminated wide character string to a Python - unicode object. If the string pointer is ``NULL`` then the result is - ``Py_None``. - - ``A`` (unicode) [wchar_t \*, int] - Convert a C/C++ wide character array and its length to a Python unicode - object. If the array is ``NULL`` then the length is ignored and the - result is ``Py_None``. - - ``B`` (wrapped instance) [*type* \*, sipWrapperType \*, PyObject \*] - Convert a new C structure or a new C++ class instance to a Python class - instance object. Ownership of the structure or instance is determined - by the ``PyObject *`` argument. If it is ``NULL`` and the instance has - already been wrapped then the ownership is unchanged. If it is - ``NULL`` or ``Py_None`` then ownership will be with Python. Otherwise - ownership will be with C/C++ and the instance associated with the - ``PyObject *`` argument. The Python class is influenced by any - applicable `%ConvertToSubClassCode`_ code. - - ``C`` (wrapped instance) [*type* \*, sipWrapperType \*, PyObject \*] - Convert a C structure or a C++ class instance to a Python class - instance object. If the structure or class instance has already been - wrapped then the result is a new reference to the existing class - instance object. Ownership of the structure or instance is determined - by the ``PyObject *`` argument. If it is ``NULL`` and the instance has - already been wrapped then the ownership is unchanged. If it is - ``NULL`` and the instance is newly wrapped then ownership will be with - C/C++. If it is ``Py_None`` then ownership is transferred to Python - via a call to `sipTransferBack()`_. Otherwise ownership is transferred - to C/C++ and the instance associated with the ``PyObject *`` argument - via a call to `sipTransferTo()`_. The Python class is influenced by - any applicable `%ConvertToSubClassCode`_ code. - - ``D`` (object) [*type* \*, const sipMappedType \*, PyObject \*] - Convert a C structure or a C++ class instance wrapped as a mapped type - to a Python object. Ownership of the structure or instance is - determined by the ``PyObject *`` argument. If it is ``NULL`` then the - ownership is unchanged. If it is ``Py_None`` then ownership is - transferred to Python via a call to `sipTransferBack()`_. Otherwise - ownership is transferred to C/C++ and the instance associated with the - ``PyObject *`` argument via a call to `sipTransferTo()`_. - - ``E`` (wrapped enum) [enum, PyTypeObject \*] - Convert a named C/C++ ``enum`` to an instance of the corresponding - Python named enum type. - - ``M`` (wrapped instance) [*type* \*, sipWrapperType \*] - Convert a C structure or a C++ class instance to a Python class - instance object. If the structure or class instance has already been - wrapped then the result is a new reference to the existing class - instance object. If the instance has already been wrapped then the - ownership is unchanged. If the instance is newly wrapped then - ownership will be with C/C++. The Python class is influenced by any - applicable `%ConvertToSubClassCode`_ code. This is deprecated from - SIP v4.4. - - ``N`` (wrapped instance) [*type* \*, sipWrapperType \*] - Convert a C structure or a C++ class instance to a Python class - instance object. This should not be used if the structure or class - instance might already have been wrapped. Ownership of the structure - or instance will be with Python. The Python class is influenced by - any applicable `%ConvertToSubClassCode`_ code. This is deprecated - from SIP v4.4. - - ``O`` (wrapped instance) [*type* \*, sipWrapperType \*] - Convert a C structure or a C++ class instance to a Python class - instance object. If the structure or class instance has already been - wrapped then the result is a new reference to the existing class - instance object. Ownership of the structure or instance will be with - C/C++. This is deprecated from SIP v4.4. - - ``P`` (wrapped instance) [*type* \*, sipWrapperType \*] - Convert a C structure or a C++ class instance to a Python class - instance object. This should not be used if the structure or class - instance might already have been wrapped. Ownership of the structure - or instance will be with Python. This is deprecated from SIP v4.4. - - ``R`` (object) [PyObject \*] - The result is value passed without any conversions. The reference - count is unaffected, i.e. a reference is taken. - - ``S`` (object) [PyObject \*] - The result is value passed without any conversions. The reference - count is incremented. - - ``T`` (object) [void \*, PyObject \*(\*)(void \*cppptr)] - Convert a C structure or a C++ class instance to a Python object using - a convertor function. See `Generated Type Convertors`_. This is - deprecated from SIP v4.4. - - ``V`` (sip.voidptr) [void \*] - Convert a C/C++ ``void *`` Python ``sip.voidptr`` object. - - -sipCallMethod() ---------------- - -PyObject \*sipCallMethod(int \*iserr, PyObject \*method, const char \*format, ...) - This calls a Python method passing a tuple of arguments based on a format - string and associated values in a similar way to the Python - ``PyObject_CallObject()`` function. If there was an error then ``NULL`` is - returned and a Python exception is raised. If *iserr* is not ``NULL`` - then the location it points to is set to a non-zero value. *method* is the - Python bound method to call. *format* is the string of format characters - (see `sipBuildResult()`_). - - This is normally called by handwritten code specified with the - `%VirtualCatcherCode`_ directive with *method* being the supplied - ``sipMethod``. - - -sipCanConvertToInstance() -------------------------- - -int sipCanConvertToInstance(PyObject \*obj, sipWrapperType \*type, int flags) - This returns a non-zero value if a Python object can be converted to an - instance of a C structure or C++ class. *obj* is the Python object. - *type* is the generated type corresponding to the C/C++ type being checked. - *flags* is any combination of the following values used to fine tune the - check. - - - ``SIP_NOT_NONE`` causes the check to fail if *obj* is ``None``. - - - ``SIP_NO_CONVERTORS`` suppresses the use of of any - `%ConvertToTypeCode`_ for *type*. - - -sipCanConvertToMappedType() ---------------------------- - -int sipCanConvertToMappedType(PyObject \*obj, const sipMappedType \*mt, int flags) - This returns a non-zero value if a Python object can be converted to an - instance of a C structure or C++ class which has been implemented as a - mapped type. *obj* is the Python object. *mt* is an opaque structure - returned by `sipFindMappedType()`_. *flags* is any combination of the - following values used to fine tune the check. - - - ``SIP_NOT_NONE`` causes the check to fail if *obj* is ``None``. - - -sipClassName() --------------- - -PyObject \*sipClassName(PyObject \*obj) - This returns the class name of a wrapped instance as a Python string. It - comes with a reference. - - -sipConnectRx() --------------- - -PyObject \*sipConnectRx(PyObject \*sender, const char \*signal, PyObject \*receiver, const char \*slot, int type) - This connects a signal to a signal or slot and returns ``Py_True`` if the - signal was connected or ``Py_False`` if not. If there was some other - error then a Python exception is raised and ``NULL`` is returned. *sender* - is the wrapped ``QObject`` derived instance that emits the signal. - *signal* is the typed name of the signal. *receiver* is the wrapped - ``QObject`` derived instance or Python callable that the signal is - connected to. *slot* is the typed name of the slot, or ``NULL`` if - *receiver* is a Python callable. *type* is the type of connection and is - cast from Qt::ConnectionType. It is normally only used by PyQt to - implement ``QObject.connect()``. - - -sipConvertFromInstance() ------------------------- - -PyObject \*sipConvertFromInstance(void \*cpp, sipWrapperType \*type, PyObject \*transferObj) - Convert a C structure or a C++ class instance to a Python class instance - object. *cpp* is the C/C++ instance. If the instance has already been - wrapped then the result is a new reference to the existing instance object. - *type* is the generated type corresponding to the C/C++ type. - *transferObj* controls the ownership of the returned value. If the - structure or class instance has already been wrapped then the result is a - new reference to the existing class instance object. If it is ``NULL`` and - the instance has already been wrapped then the ownership is unchanged. If - it is ``NULL`` and the instance is newly wrapped then ownership will be - with C/C++. If it is ``Py_None`` then ownership is transferred to Python - via a call to `sipTransferBack()`_. Otherwise ownership is transferred to - C/C++ and the instance associated with *transferObj* via a call to - `sipTransferTo()`_. The Python class is influenced by any applicable - `%ConvertToSubClassCode`_ code. - - -sipConvertFromMappedType() --------------------------- - -PyObject \*sipConvertFromMappedType(void \*cpp, const sipMappedType \*mt, PyObject \*transferObj) - Convert a C structure or a C++ class instance wrapped as a mapped type to a - Python object. *cpp* is the C/C++ instance. *mt* is the opaque structure - returned by `sipFindMappedType()`_. *transferObj* controls any ownership - changes to *obj*. If it is ``NULL`` then the ownership is unchanged. If - it is ``Py_None`` then ownership is transferred to Python via a call to - `sipTransferBack()`_. Otherwise ownership is transferred to C/C++ and the - instance associated with the ``PyObject *`` argument via a call to - `sipTransferTo()`_. - - -sipConvertFromNamedEnum() -------------------------- - -PyObject \*sipConvertFromNamedEnum(int eval, PyTypeObject \*type) - Convert a named C/C++ ``enum`` to an instance of the corresponding Python - named enum type. *eval* is the enumerated value to convert. *type* is the - generated Python type object (see `Generated Named Enum Type Objects`_). - - -sipConvertFromNewInstance() ---------------------------- - -PyObject \*sipConvertFromNewInstance(void \*cpp, sipWrapperType \*type, PyObject \*transferObj) - Convert a new C structure or a new C++ class instance to a Python class - instance object. *cpp* is the C/C++ instance. *type* is the generated - type corresponding to the C/C++ type. *transferObj* controls the ownership - of the returned value. If it is ``NULL`` or ``Py_None`` then ownership - will be with Python. Otherwise ownership will be with C/C++ and the - instance associated with *transferObj*. The Python class is influenced by - any applicable `%ConvertToSubClassCode`_ code. - - -sipConvertFromSequenceIndex() ------------------------------ - -SIP_SSIZE_T sipConvertFromSequenceIndex(SIP_SSIZE_T idx, SIP_SSIZE_T len) - This converts a Python sequence index (i.e. where a negative value refers - to the offset from the end of the sequence) to a C/C++ array index. If the - index was out of range then a negative value is returned and a Python - exception raised. With versions of Python prior to v2.5 the result and the - arguments have type ``int``. - - -sipConvertFromSliceObject() ---------------------------- - -int sipConvertFromSliceObject(PyObject \*slice, SIP_SSIZE_T length, SIP_SSIZE_T \*start, SIP_SSIZE_T \*stop, SIP_SSIZE_T \*step, SIP_SSIZE_T \*slicelength) - This is a thin wrapper around the Python ``PySlice_GetIndicesEx()`` - function provided to make it easier to write handwritten code that is - compatible with SIP v3.x and versions of Python earlier that v2.3. - - -sipConvertToCpp() ------------------ - -void \*sipConvertToCpp(PyObject \*obj, sipWrapperType \*type, int \*iserr) - This function is deprecated from SIP v4.4. It is equivalent to:: - - sipConvertToInstance(obj, type, NULL, SIP_NO_CONVERTORS, NULL, iserr); - - -sipConvertToInstance() ----------------------- - -void \*sipConvertToInstance(PyObject \*obj, sipWrapperType \*type, PyObject \*transferObj, int flags, int \*state, int \*iserr) - This converts a Python object to an instance of a C structure or C++ class - assuming that a previous call to `sipCanConvertToInstance()`_ has been - successful. *obj* is the Python object. *type* is the generated type - corresponding to the C/C++ type returned. It may be any class in the - object's class hierarchy. *transferObj* controls any ownership changes to - *obj*. If it is ``NULL`` then the ownership is unchanged. If it is - ``Py_None`` then ownership is transferred to Python via a call to - `sipTransferBack()`_. Otherwise ownership is transferred to C/C++ and - *obj* associated with *transferObj* via a call to `sipTransferTo()`_. - *flags* is any combination of the following values used to fine tune the - check. - - - ``SIP_NOT_NONE`` causes the check to fail if *obj* is ``None``. - - - ``SIP_NO_CONVERTORS`` suppresses the use of of any - `%ConvertToTypeCode`_ for *type*. - - If *state* is not ``NULL`` then the location it points to is set to - describe the state of the returned C/C++ instance and is the value returned - by any `%ConvertToTypeCode`_. The calling code must then release the value - at some point to prevent a memory leak by calling `sipReleaseInstance()`_. - If there is an error then the location *iserr* points to is set to a - non-zero value. If it was initially a non-zero value then the conversion - isn't attempted in the first place. (This allows several calls to be made - that share the same error flag so that it only needs to be tested once - rather than after each call.) - - -sipConvertToMappedType() ------------------------- - -void \*sipConvertToMappedType(PyObject \*obj, const sipMappedType \*mt, PyObject \*transferObj, int flags, int \*state, int \*iserr) - This converts a Python object to an instance of a C structure or C++ - class that is implemented as a mapped type assuming that a previous call to - `sipCanConvertToMappedType()`_ has been successful. *obj* is the Python - object. *mt* is the opaque structure returned by `sipFindMappedType()`_. - *transferObj* controls any ownership changes to *obj*. If it is ``NULL`` - then the ownership is unchanged. If it is ``Py_None`` then ownership is - transferred to Python via a call to `sipTransferBack()`_. Otherwise - ownership is transferred to C/C++ and *obj* associated with *transferObj* - via a call to `sipTransferTo()`_. *flags* is any combination of the - following values used to fine tune the check. - - - ``SIP_NOT_NONE`` causes the check to fail if *obj* is ``None``. - - If *state* is not ``NULL`` then the location it points to is set to - describe the state of the returned C/C++ instance and is the value returned - by any `%ConvertToTypeCode`_. The calling code must then release the value - at some point to prevent a memory leak by calling - `sipReleaseMappedType()`_. If there is an error then the location *iserr* - points to is set to a non-zero value. If it was initially a non-zero value - then the conversion isn't attempted in the first place. (This allows - several calls to be made that share the same error flag so that it only - needs to be tested once rather than after each call.) - - -sipDisconnectRx() ------------------ - -PyObject \*sipDisconnectRx(PyObject \*sender, const char \*signal, PyObject \*receiver, const char \*slot) - This disconnects a signal from a signal or slot and returns ``Py_True`` if - the signal was disconnected or ``Py_False`` if not. If there was some - other error then a Python exception is raised and ``NULL`` is returned. - *sender* is the wrapped ``QObject`` derived instance that emits the signal. - *signal* is the typed name of the signal. *receiver* is the wrapped - ``QObject`` derived instance or Python callable that the signal is - connected to. *slot* is the typed name of the slot, or ``NULL`` if - *receiver* is a Python callable. It is normally only used by PyQt to - implement ``QObject.disconnect()``. - - -sipEmitSignal() ---------------- - -int sipEmitSignal(PyObject \*txobj, const char \*signal, PyObject \*args) - This emits a signal and returns zero if there was no error. If there was - an error then a Python exception is raised and a negative value is - returned. *txobj* is the wrapped ``QObject`` derived instance that emits - the signal. *signal* is the typed name of the signal. *args* is a Python - tuple of the signal arguments. It is normally only used by PyQt to - implement ``QObject.emit()``. - - -sipExportSymbol() ------------------ - -int sipExportSymbol(const char \*name, void \*sym) - Python does not allow extension modules to directly access symbols in - another extension module. This exports a symbol, referenced by a name, - that can subsequently be imported, using `sipImportSymbol()`_, by another - module. *name* is the name of the symbol and *sym* is its value. Zero is - returned if there was no error. A negative value is returned if *name* is - already associated with a symbol or there was some other error. - - -sipFindClass() --------------- - -sipWrapperType \*sipFindClass(const char \*type) - This returns a pointer to the generated type corresponding to a C/C++ type. - *type* is the C/C++ declaration of the type. ``NULL`` is returned if the - C/C++ type doesn't exist. The value of the pointer will not change and - may be saved in a static cache. - - -sipFindMappedType() -------------------- - -const sipMappedType \*sipFindMappedType(const char \*type) - This returns a pointer to an opaque structure describing a mapped type. - *type* is the C/C++ declaration of the type. ``NULL`` is returned if the - mapped type doesn't exist. The value of the pointer will not change and - may be saved in a static cache. - - -sipFindNamedEnum() ------------------- - -PyTypeObject \*sipFindNamedEnum(const char \*type) - This returns a pointer to the generated type corresponding to a named C/C++ - enum. *type* is the C/C++ declaration of the enum. ``NULL`` is returned - if the named C/C++ enum doesn't exist. The value of the pointer will not - change and may be saved in a static cache. - - -sipForceConvertToInstance() ---------------------------- - -void \*sipForceConvertToInstance(PyObject \*obj, sipWrapperType \*type, PyObject \*transferObj, int flags, int \*state, int \*iserr) - This converts a Python object to an instance of a C structure or C++ class - by calling `sipCanConvertToInstance()`_ and, if it is successfull, calling - `sipConvertToInstance()`_. See `sipConvertToInstance()`_ for a full - description of the arguments. - - -sipForceConvertToMappedType() ------------------------------ - -void \*sipForceConvertToMappedType(PyObject \*obj, const sipMappedType \*mt, PyObject \*transferObj, int flags, int \*state, int \*iserr) - This converts a Python object to an instance of a C structure or C++ class - which has been implemented as a mapped type by calling - `sipCanConvertToMappedType()`_ and, if it is successfull, calling - `sipConvertToMappedType()`_. See `sipConvertToMappedType()`_ for a full - description of the arguments. - - -sipFree() ---------- - -void sipFree(void \*mem) - This returns an area of memory allocated by `sipMalloc()`_ to the heap. - *mem* is a pointer to the area of memory. - - -sipGetSender() --------------- - -const void \*sipGetSender() - This returns a pointer to the last ``QObject`` instance that emitted a Qt - signal. It is normally only used by PyQt to implement - ``QObject.sender()``. - - -sipGetWrapper() ---------------- - -PyObject \*sipGetWrapper(void \*cppptr, sipWrapperType \*type) - This returns a borrowed reference to the wrapped instance object for a C - structure or C++ class instance. If the structure or class instance - hasn't been wrapped then ``NULL`` is returned (and no Python exception is - raised). *cppptr* is the pointer to the structure or class instance. - *type* is the generated type corresponding to the C/C++ type. - - -sipImportSymbol() ------------------ - -void \*sipImportSymbol(const char \*name) - Python does not allow extension modules to directly access symbols in - another extension module. This imports a symbol, referenced by a name, - that has previously been exported, using `sipExportSymbol()`_, by another - module. *name* is the name of the symbol. The value of the symbol is - returned if there was no error. ``NULL`` is returned if there is no such - symbol. - - -sipIntTypeClassMap ------------------- - -This C structure is used with `sipMapIntToClass()`_ to define a mapping -between integer based RTTI and `generated type objects`_. The structure -elements are as follows. - -int typeInt - The integer RTTI. - -sipWrapperType \*\*pyType. - A pointer to the corresponding Python type object. - - -sipIsSubClassInstance() ------------------------ - -int sipIsSubClassInstance(PyObject \*obj, sipWrapperType \*type) - This function is deprecated from SIP v4.4. It is equivalent to:: - - sipCanConvertToInstance(obj, type, SIP_NOT_NONE | SIP_NO_CONVERTORS); - - -sipLong_AsUnsignedLong() ------------------------- - -unsigned long sipLong_AsUnsignedLong(PyObject \*obj) - This function is a thin wrapper around PyLong_AsUnsignedLong() that works - around a bug in Python v2.3.x and earlier when converting integer objects. - - -sipMalloc() ------------ - -void \*sipMalloc(size_t nbytes) - This allocates an area of memory of size *nytes* on the heap using the - Python ``PyMem_Malloc()`` function. If there was an error then ``NULL`` is - returned and a Python exception raised. See `sipFree()`_. - - -sipMapIntToClass() ------------------- - -sipWrapperType \*sipMapIntToClass(int type, const sipIntTypeClassMap \*map, int maplen) - This is used in `%ConvertToSubClassCode`_ code as a convenient way of - converting integer based RTTI to the corresponding Python type object. - *type* is the RTTI. *map* is the table of known RTTI and the corresponding - type objects (see sipIntTypeClassMap_). The entries in the table must be - sorted in ascending order of RTTI. *maplen* is the number of entries in - the table. The corresponding Python type object is returned, or ``NULL`` - if *type* wasn't in *map*. - - -sipMapStringToClass() ---------------------- - -sipWrapperType \*sipMapStringToClass(char \*type, const sipStringTypeClassMap \*map, int maplen) - This is used in `%ConvertToSubClassCode`_ code as a convenient way of - converting ``'\0'`` terminated string based RTTI to the corresponding - Python type object. *type* is the RTTI. *map* is the table of known RTTI - and the corresponding type objects (see sipStringTypeClassMap_). The - entries in the table must be sorted in ascending order of RTTI. *maplen* - is the number of entries in the table. The corresponding Python type - object is returned, or ``NULL`` if *type* wasn't in *map*. - - -sipParseResult() ----------------- - -int sipParseResult(int \*iserr, PyObject \*method, PyObject \*result, const char \*format, ...) - This converts a Python object (usually returned by a method) to C/C++ based - on a format string and associated values in a similar way to the Python - ``PyArg_ParseTuple()`` function. If there was an error then a negative - value is returned and a Python exception is raised. If *iserr* is not - ``NULL`` then the location it points to is set to a non-zero value. - *method* is the Python bound method that returned the *result* object. - *format* is the string of format characters. - - This is normally called by handwritten code specified with the - `%VirtualCatcherCode`_ directive with *method* being the supplied - ``sipMethod`` and ``result`` being the value returned by - `sipCallMethod()`_. - - If *format* begins and ends with parentheses then *result* must be a Python - tuple and the rest of *format* is applied to the tuple contents. - - In the following description the first letter is the format character, the - entry in parentheses is the Python object type that the format character - will convert, and the entry in brackets are the types of the C/C++ values - to be passed. - - ``a`` (string) [char \*\*, int \*] - Convert a Python string to a C/C++ character array and its length. If - the Python object is ``Py_None`` then the array and length are ``NULL`` - and zero respectively. - - ``b`` (integer) [bool \*] - Convert a Python integer to a C/C++ ``bool``. - - ``c`` (string) [char \*] - Convert a Python string of length 1 to a C/C++ ``char``. - - ``d`` (float) [double \*] - Convert a Python floating point number to a C/C++ ``double``. - - ``e`` (integer) [enum \*] - Convert a Python integer to an anonymous C/C++ ``enum``. - - ``f`` (float) [float \*] - Convert a Python floating point number to a C/C++ ``float``. - - ``h`` (integer) [short \*] - Convert a Python integer to a C/C++ ``short``. - - ``i`` (integer) [int \*] - Convert a Python integer to a C/C++ ``int``. - - ``l`` (long) [long \*] - Convert a Python long to a C/C++ ``long``. - - ``m`` (long) [unsigned long \*] - Convert a Python long to a C/C++ ``unsigned long``. - - ``n`` (long) [long long \*] - Convert a Python long to a C/C++ ``long long``. - - ``o`` (long) [unsigned long long \*] - Convert a Python long to a C/C++ ``unsigned long long``. - - ``s`` (string) [char \*\*] - Convert a Python string to a C/C++ ``'\0'`` terminated string. If the - Python object is ``Py_None`` then the string is ``NULL``. - - ``t`` (long) [unsigned short \*] - Convert a Python long to a C/C++ ``unsigned short``. - - ``u`` (long) [unsigned int \*] - Convert a Python long to a C/C++ ``unsigned int``. - - ``w`` (unicode) [wchar_t \*] - Convert a Python unicode object of length 1 to a C/C++ wide character. - - ``x`` (unicode) [wchar_t \*\*] - Convert a Python unicode object to a C/C++ ``L'\0'`` terminated wide - character string. If the Python object is ``Py_None`` then the string - is ``NULL``. - - ``A`` (unicode) [wchar_t \*\*, int \*] - Convert a Python unicode object to a C/C++ wide character array and its - length. If the Python object is ``Py_None`` then the array and length - are ``NULL`` and zero respectively. - - ``Cf`` (wrapped class) [sipWrapperType \*, int \*, void \*\*] - Convert a Python object to a C structure or a C++ class instance and - return its state as described in `sipConvertToInstance()`_. ``f`` is a - combination of the following flags encoded as an ASCII character by - adding ``0`` to the combined value: - - 0x01 disallows the conversion of ``Py_None`` to ``NULL`` - - 0x02 implements the `Factory`_ annotation - - 0x04 suppresses the return of the state of the returned C/C++ - instance. Note that the ``int *`` used to return the state is - not passed if this flag is specified. - - ``Df`` (mapped type) [const sipMappedType \*, int \*, void \*\*] - Convert a Python object to a C structure or a C++ class instance - implemented as a mapped type and return its state as described in - `sipConvertToMappedType()`_. ``f`` is a combination of the following - flags encoded as an ASCII character by adding ``0`` to the combined - value: - - 0x01 disallows the conversion of ``Py_None`` to ``NULL`` - - 0x02 implements the `Factory`_ annotation - - 0x04 suppresses the return of the state of the returned C/C++ - instance. Note that the ``int *`` used to return the state is - not passed if this flag is specified. - - ``E`` (wrapped enum) [PyTypeObject \*, enum \*] - Convert a Python named enum type to the corresponding C/C++ ``enum``. - - ``L`` (object) [*type* \*(\*)(PyObject \*obj, int \*iserr), void \*\*] - Convert a Python object to a C structure or a C++ class instance using - a convertor function. See `Generated Type Convertors`_. This is - deprecated from SIP v4.4. - - ``M`` (object) [*type* \*(\*)(PyObject \*obj, int \*iserr), void \*\*] - Convert a Python object to a C structure or a C++ class instance using - a convertor function. If the structure or class instance pointer is - ``NULL`` then return an error. See `Generated Type Convertors`_. This - is deprecated from SIP v4.4. - - ``N`` (object) [PyTypeObject \*, PyObject \*\*] - A Python object is checked to see if it is a certain type and then - returned without any conversions. The reference count is incremented. - The Python object may be ``Py_None``. - - ``O`` (object) [PyObject \*\*] - A Python object is returned without any conversions. The reference - count is incremented. - - ``T`` (object) [PyTypeObject \*, PyObject \*\*] - A Python object is checked to see if it is a certain type and then - returned without any conversions. The reference count is incremented. - The Python object may not be ``Py_None``. - - ``V`` (sip.voidptr) [void \*] - Convert a Python ``sip.voidptr`` object to a C/C++ ``void *``. - - ``Z`` (object) [] - Check that a Python object is ``Py_None``. No value is returned. - - -sipReleaseInstance() --------------------- - -void sipReleaseInstance(void \*cpp, sipWrapperType \*type, int state) - This destroys a wrapped C/C++ instance if it was a temporary instance. It - is called after a call to either `sipConvertToInstance()`_ or - `sipForceConvertToInstance()`_. *cpp* is the wrapped C/C++ instance. - *type* is the generated type corresponding to *cpp*. *state* describes the - state of the instance. - - -sipReleaseMappedType() ----------------------- - -void sipReleaseMappedType(void \*cpp, const sipMappedType \*mt, int state) - This destroys a wrapped C/C++ mapped type if it was a temporary instance. - It is called after a call to either `sipConvertToMappedType()`_ or - `sipForceConvertToMappedType()`_. *cpp* is the wrapped C/C++ instance. - *mt* is the opaque structure returned by `sipFindMappedType()`_. *state* - describes the state of the instance. - - -sipStringTypeClassMap ---------------------- - -This C structure is used with `sipMapStringToClass()`_ to define a mapping -between ``'\0'`` terminated string based RTTI and `generated type objects`_. -The structure elements are as follows. - -char \*typeString - The ``'\0'`` terminated string RTTI. - -sipWrapperType \*\*pyType. - A pointer to the corresponding Python type object. - - -sipTransfer() -------------- - -void sipTransfer(PyObject \*obj, int tocpp) - This function is deprecated from SIP v4.3. If *tocpp* is non-zero then the - equivalent call is:: - - sipTransferTo(obj, obj); - - If *tocpp* is zero then the equivalent call is:: - - sipTransferBack(obj); - - -sipTransferBack() ------------------ - -void sipTransferBack(PyObject \*obj) - This transfers ownership of a Python wrapped instance to Python (see - `Ownership of Objects`_). *obj* is the wrapped instance. In addition, - any association of the instance with regard to the cyclic garbage - collector with another instance is removed. - - -sipTransferTo() ---------------- - -void sipTransferTo(PyObject \*obj, PyObject \*owner) - This transfers ownership of a Python wrapped instance to C++ (see - `Ownership of Objects`_). *obj* is the wrapped instance. *owner* is an - optional wrapped instance that *obj* becomes associated with with regard - to the cyclic garbage collector. If *owner* is ``NULL`` then no such - association is made. If *owner* is the same value as *obj* then any - reference cycles involving *obj* can never be detected or broken by the - cyclic garbage collector. Responsibility for calling the C++ instance's - destructor is always transfered to C++. - - -sipWrapper ----------- - -This is a C structure that represents a Python wrapped instance. It is an -extension of the Python ``PyObject`` structure and so may be safely cast to -``PyObject``. It includes a member called ``user`` which is of type -``PyObject *``. This can be used for any purpose by handwritten code and will -automatically be garbage collected at the appropriate time. - - -sipWrapper_Check() ------------------- - -int sipWrapper_Check(PyObject \*obj) - This returns a non-zero value if a Python object is a wrapped instance. - *obj* is the Python object. - - -sipWrapperType --------------- - -This is a C structure that represents a SIP generated type object. It is an -extension of the Python ``PyTypeObject`` structure (which is itself an -extension of the Python ``PyObject`` structure) and so may be safely cast to -``PyTypeObject`` (and ``PyObject``). - - -Generated Type Convertors -------------------------- - -These functions are deprecated from SIP v4.4. - -SIP generates functions for all types being wrapped (including mapped types -defined with the `%MappedType`_ directive) that convert a Python object to the -C structure or C++ class instance. The name of this convertor is the name of -the structure or class prefixed by ``sipForceConvertTo_``. - -void \*sipForceConvertTo_*class*(PyObject \*obj, int \*iserr) - *obj* is the Python object to convert. If *obj* is ``NULL`` or the - location pointed to by *iserr* is non-zero then the conversion is not - attempted and ``NULL`` is returned. If there was an error then the - location pointed to by *iserr* is set to a non-zero value, a Python - exception is raised, and ``NULL`` is returned. - -SIP also generates functions for mapped types that convert a C structure or -C++ class instance to a Python object. The name of this convertor is the name -of the structure or class prefixed by ``sipConvertFrom_``. - -PyObject \*sipConvertFrom_*class*(void \*cppptr) - *cppptr* is a pointer to the C structure or C++ class instance to convert. - If there was an error then ``NULL`` is returned and a Python exception - raised. - -The convertor functions of all imported types are available to handwritten -code. - - -Generated Type Objects ----------------------- - -SIP generates a type object for each C structure or C++ class being wrapped. -These are sipWrapperType_ structures and are used extensively by the SIP API. - -These objects are named with the structure or class name prefixed by -``sipClass_``. For example, the type object for class ``Klass`` is -``sipClass_Klass``. - -The type objects of all imported classes are available to handwritten code. - - -Generated Named Enum Type Objects ---------------------------------- - -SIP generates a type object for each named enum being wrapped. These are -PyTypeObject structures. (Anonymous enums are wrapped as Python integers.) - -These objects are named with the fully qualified enum name (i.e. including any -enclosing scope) prefixed by ``sipEnum_``. For example, the type object for -enum ``Enum`` defined in class ``Klass`` is ``sipEnum_Klass_Enum``. - -The type objects of all imported named enums are available to handwritten code. - - -Generated Derived Classes -------------------------- - -For most C++ classes being wrapped SIP generates a derived class with the same -name prefixed by ``sip``. For example, the derived class for class ``Klass`` -is ``sipKlass``. - -If a C++ class doesn't have any virtual or protected methods in it or any of -it's super-class hierarchy, or does not emit any Qt signals, then a derived -class is not generated. - -Most of the time handwritten code should ignore the derived classes. The only -exception is that handwritten constructor code specified using the -`%MethodCode`_ directive should call the derived class's constructor (which -has the same C++ signature) rather then the wrapped class's constructor. - - -Generated Exception Objects ---------------------------- - -SIP generates a Python object for each exception defined with the `%Exception_` -directive. - -These objects are named with the fully qualified exception name (i.e. including -any enclosing scope) prefixed by ``sipException_``. For example, the type -object for enum ``Except`` defined in class ``Klass`` is -``sipException_Klass_Except``. - -The objects of all imported exceptions are available to handwritten code. - - -Using the SIP Module in Applications -==================================== - -The main purpose of the SIP module is to provide functionality common to all -SIP generated bindings. It is loaded automatically and most of the time you -will completely ignore it. However, it does expose some functionality that can -be used by applications. - -cast(obj, type) - This does the Python equivalent of casting a C++ instance to one of its - sub or super-class types. *obj* is the Python object and *type* is the - type. A new Python object is returned that wraps the same C++ instance as - *obj*, but has the type *type*. - -delete(obj) - For C++ instances this calls the C++ destructor. For C structures it - returns the structure's memory to the heap. *obj* is the Python object. - -isdeleted(obj) - This returns True if the C++ instance or C structure has been destroyed or - returned to the heap. *obj* is the Python object. - -setdeleted(obj) - This marks the C++ instance or C structure as having been destroyed or - returned to the heap so that future references to it raise an exception - rather than cause a program crash. Normally SIP handles such things - automatically, but there are circumstances where this isn't possible. - *obj* is the Python object. - -settracemask(mask) - If the bindings have been created with SIP's ``-r`` command line option - then the generated code will produce debugging statements that trace the - execution of the code. (It is particularly useful when trying to - understand the operation of a C++ library's virtual function calls.) - - Debugging statements are generated at the following points: - - - in a C++ virtual function (*mask* is ``0x0001``) - - in a C++ constructor (*mask* is ``0x0002``) - - in a C++ destructor (*mask* is ``0x0004``) - - in a Python type's __init__ method (*mask* is ``0x0008``) - - in a Python type's __del__ method (*mask* is ``0x0010``) - - in a Python type's ordinary method (*mask* is ``0x0020``). - - By default the trace mask is zero and all debugging statements are - disabled. - -SIP_VERSION - This is a Python integer object that represents the SIP version number as - a 3 part hexadecimal number (e.g. v4.0.0 is represented as ``0x040000``). - It was first implemented in SIP v4.2. - -SIP_VERSION_STR - This is a Python string object that defines the SIP version number as - represented as a string. For development snapshots it will start with - ``snapshot-``. It was first implemented in SIP v4.3. - -transfer(obj, direction) - This function is deprecated from SIP v4.3. If *direction* is non-zero then - the equivalent call is:: - - sip.transferto(obj, None) - - If *direction* is zero then the equivalent call is:: - - sip.transferback(obj) - -transferback(obj) - This function is a wrapper around `sipTransferBack()`_. - -transferto(obj, owner) - This function is a wrapper around `sipTransferTo()`_. - -unwrapinstance(obj) - Return the address, as a number, of the wrapped C/C++ structure or class - instance *obj*. - -voidptr - This is the type object for the type SIP uses to represent a C/C++ - ``void *``. The type constructor takes a single argument that must either - be another ``voidptr``, ``None``, a Python CObject, or an integer. The - type has the following methods: - - __int__() - This returns the pointer as an integer. - - __hex__() - This returns the pointer as a hexadecimal string. - - ascobject() - This returns the pointer as a Python CObject. - - asstring(nbytes) - This returns a copy of the first *nbytes* of memory at the pointer as a - Python string. - -wrapinstance(addr, type) - A C/C++ structure or class instance is wrapped and the Python object - created is returned. If the instance has already been wrapped then a new - reference to the existing object is returned. *addr* is the address of - the instance represented as a number. *type* is the type of the object - (e.g. ``qt.QWidget``). - -wrapper - This is the type object of the base type of all instances wrapped by SIP. - -wrappertype - This is the type object of the metatype of the ``wrapper`` type. - - -The SIP Build System -==================== - -The purpose of the build system is to make it easy for you to write -configuration scripts in Python for your own bindings. The build system takes -care of the details of particular combinations of platform and compiler. It -supports over 50 different platform/compiler combinations. - -The build system is implemented as a pure Python module called ``sipconfig`` -that contains a number of classes and functions. Using this module you can -write bespoke configuration scripts (e.g. PyQt's ``configure.py``) or use it -with other Python based build systems (e.g. -`Distutils `_ and -`SCons `_). - -An important feature of SIP is the ability to generate bindings that are built -on top of existing bindings. For example, both -`PyKDE `_ and -`PyQwt `_ are built on top of PyQt but all three -packages are maintained by different developers. To make this easier PyQt -includes its own configuration module, ``pyqtconfig``, that contains additional -classes intended to be used by the configuration scripts of bindings built on -top of PyQt. The SIP build system includes facilities that do a lot of the -work of creating these additional configuration modules. - - -``sipconfig`` Functions ------------------------ - -create_config_module(module, template, content, macros=None) - This creates a configuration module (e.g. ``pyqtconfig``) from a template - file and a string. - - ``module`` is the name of the configuration module file to create. - - ``template`` is the name of the template file. - - ``content`` is a string which replaces every occurence of the pattern - ``@SIP_CONFIGURATION@`` in the template file. The content string is - usually created from a Python dictionary using - ``sipconfig.create_content()``. ``content`` may also be a dictionary, in - which case ``sipconfig.create_content()`` is automatically called to - convert it to a string. - - ``macros`` is an optional dictionary of platform specific build macros. It - is only used if ``sipconfig.create_content()`` is called automatically to - convert a ``content`` dictionary to a string. - -create_content(dict, macros=None) - This converts a Python dictionary to a string that can be parsed by the - Python interpreter and converted back to an equivalent dictionary. It is - typically used to generate the content string for - ``sipconfig.create_config_module()``. - - ``dict`` is the Python dictionary to convert. - - ``macros`` is the optional dictionary of platform specific build macros. - - Returns the dictionary as a string. - -create_wrapper(script, wrapper, gui=0) - This creates a platform dependent executable wrapper around a Python - script. - - ``script`` is the full pathname of the script. - - ``wrapper`` is the pathname of the wrapper to create. - - ``gui`` is non-zero if a GUI enabled version of the interpreter should be - used on platforms that require it. - - Returns the platform specific name of the wrapper. - -error(msg) - This displays an error message on ``stderr`` and calls ``sys.exit()`` with - a value of 1. - - ``msg`` is the text of the message and should not include any newline - characters. - -format(msg, leftmargin=0, rightmargin=78) - This formats a message by inserting newline characters at appropriate - places. - - ``msg`` is the text of the message and should not include any newline - characters. - - ``leftmargin`` is the optional position of the left margin. - - ``rightmargin`` is the optional position of the right margin. - -inform(msg) - This displays an information message on ``stdout``. - - ``msg`` is the text of the message and should not include any newline - characters. - -parse_build_macros(filename, names, overrides=None, properties=None) - This parses a qmake compatible file of build system macros and converts it - to a dictionary. A macro is a name/value pair. The dictionary is returned - or None if any of the overrides was invalid. - - ``filename`` is the name of the file to parse. - - ``names`` is a list of the macro names to extract from the file. - - ``overrides`` is an optional list of macro names and values that modify - those found in the file. They are of the form *name=value* (in which case - the value replaces the value found in the file) or *name+=value* (in which - case the value is appended to the value found in the file). - - ``properties`` is an optional dictionary of property name and values that - are used to resolve any expressions of the form ``$[name]`` in the file. - -read_version(filename, description, numdefine=None, strdefine=None) - This extracts version information for a package from a file, usually a C or - C++ header file. The version information must each be specified as a - ``#define`` of a numeric (hexadecimal or decimal) value and/or a string - value. - - ``filename`` is the name of the file to read. - - ``description`` is a descriptive name of the package used in error - messages. - - ``numdefine`` is the optional name of the ``#define`` of the version as a - number. If it is ``None`` then the numeric version is ignored. - - ``strdefine`` is the optional name of the ``#define`` of the version as a - string. If it is ``None`` then the string version is ignored. - - Returns a tuple of the numeric and string versions. ``sipconfig.error()`` - is called if either were required but could not be found. - -version_to_sip_tag(version, tags, description) - This converts a version number to a SIP version tag. SIP uses the - `%Timeline`_ directive to define the chronology of the different versions - of the C/C++ library being wrapped. Typically it is not necessary to - define a version tag for every version of the library, but only for those - versions that affect the library's API as SIP sees it. - - ``version`` is the numeric version number of the C/C++ library being - wrapped. If it is negative then the latest version is assumed. (This is - typically useful if a snapshot is indicated by a negative version number.) - - ``tags`` is the dictionary of SIP version tags keyed by the corresponding - C/C++ library version number. The tag used is the one with the smallest - key (i.e. earliest version) that is greater than ``version``. - - ``description`` is a descriptive name of the C/C++ library used in error - messages. - - Returns the SIP version tag. ``sipconfig.error()`` is called if the C/C++ - library version number did not correspond to a SIP version tag. - -version_to_string(v) - This converts a 3 part version number encoded as a hexadecimal value to a - string. - - ``v`` is the version number. - - Returns a string. - - -``sipconfig`` Classes ---------------------- - -Configuration - This class encapsulates configuration values that can be accessed as - instance objects. A sub-class may provide a dictionary of additional - configuration values in its constructor the elements of which will have - precedence over the super-class's values. - - The following configuration values are provided: - - default_bin_dir - The name of the directory where executables should be installed by - default. - - default_mod_dir - The name of the directory where SIP generated modules should be - installed by default. - - default_sip_dir - The name of the base directory where the ``.sip`` files for SIP - generated modules should be installed by default. A sub-directory - with the same name as the module should be created and its ``.sip`` - files should be installed in the sub-directory. The ``.sip`` - files only need to be installed if you might want to build other - bindings based on them. - - platform - The name of the platform/compiler for which the build system has - been configured for. - - py_conf_inc_dir - The name of the directory containing the ``pyconfig.h`` header - file. - - py_inc_dir - The name of the directory containing the ``Python.h`` header file. - - py_lib_dir - The name of the directory containing the Python interpreter - library. - - py_version - The Python version as a 3 part hexadecimal number (e.g. v2.3.3 is - represented as ``0x020303``). - - sip_bin - The full pathname of the SIP executable. - - sip_config_args - The command line passed to ``configure.py`` when SIP was - configured. - - sip_inc_dir - The name of the directory containing the ``sip.h`` header file. - - sip_mod_dir - The name of the directory containing the SIP module. - - sip_version - The SIP version as a 3 part hexadecimal number (e.g. v4.0.0 is - represented as ``0x040000``). - - sip_version_str - The SIP version as a string. For development snapshots it will - start with ``snapshot-``. - - universal - The name of the MacOS/X SDK used when creating universal binaries. - - __init__(self, sub_cfg=None) - Initialise the instance. - - ``sub_cfg`` is an optional list of sub-class configurations. It should - only be used by the ``__init__()`` method of a sub-class to append its - own dictionary of configuration values before passing the list to its - super-class. - - build_macros(self) - Return the dictionary of platform specific build macros. - - set_build_macros(self, macros) - Set the dictionary of platform specific build macros to be use when - generating Makefiles. Normally there is no need to change the default - macros. - -Makefile - This class encapsulates a Makefile. It is intended to be sub-classed to - generate Makefiles for particular purposes. It handles all platform and - compiler specific flags, but allows them to be adjusted to suit the - requirements of a particular module or program. These are defined using a - number of macros which can be accessed as instance objects. - - The following instance objects are provided to help in fine tuning the - generated Makefile: - - chkdir - A string that will check for the existence of a directory. - - config - A reference to the ``configuration`` argument that was passed to - the constructor. - - console - A reference to the ``console`` argument that was passed to the - constructor. - - copy - A string that will copy a file. - - extra_cflags - A list of additional flags passed to the C compiler. - - extra_cxxflags - A list of additional flags passed to the C++ compiler. - - extra_defines - A list of additional macro names passed to the C/C++ preprocessor. - - extra_include_dirs - A list of additional include directories passed to the C/C++ - preprocessor. - - extra_lflags - A list of additional flags passed to the linker. - - extra_lib_dirs - A list of additional library directories passed to the linker. - - extra_libs - A list of additional libraries passed to the linker. The names of - the libraries must be in platform neutral form (i.e. without any - platform specific prefixes, version numbers or extensions). - - generator - A string that defines the platform specific style of Makefile. The - only supported values are ``UNIX`` and something else that is not - ``UNIX``. - - mkdir - A string that will create a directory. - - rm - A string that will remove a file. - - __init__(self, configuration, console=0, qt=0, opengl=0, python=0, threaded=0, warnings=None, debug=0, dir=None, makefile="Makefile", installs=None, universal='') - Initialise the instance. - - ``configuration`` is the current configuration and is an instance of - the ``Configuration`` class or a sub-class. - - ``console`` is set if the target is a console (rather than GUI) target. - This only affects Windows and is ignored on other platforms. - - ``qt`` is set if the target uses Qt. For Qt v4 a list of Qt libraries - may be specified and a simple non-zero value implies QtCore and QtGui. - - ``opengl`` is set if the target uses OpenGL. - - ``python`` is set if the target uses Python.h. - - ``threaded`` is set if the target requires thread support. It is set - automatically if the target uses Qt and Qt has thread support enabled. - - ``warnings`` is set if compiler warning messages should be enabled. - The default of ``None`` means that warnings are enabled for SIP v4.x - and disabled for SIP v3.x. - - ``debug`` is set if debugging symbols should be generated. - - ``dir`` is the name of the directory where build files are read from - and Makefiles are written to. The default of ``None`` means the - current directory is used. - - ``makefile`` is the name of the generated Makefile. - - ``installs`` is a list of extra install targets. Each element is a two - part list, the first of which is the source and the second is the - destination. If the source is another list then it is a list of source - files and the destination is a directory. - - ``universal`` is the name of the SDK if universal binaries are to be - created under MacOS/X. - - clean_build_file_objects(self, mfile, build) - This generates the Makefile commands that will remove any files - generated during the build of the default target. - - ``mfile`` is the Python file object of the Makefile. - - ``build`` is the dictionary created from parsing the build file. - - finalise(self) - This is called just before the Makefile is generated to ensure that it - is fully configured. It must be reimplemented by a sub-class. - - generate(self) - This generates the Makefile. - - generate_macros_and_rules(self, mfile) - This is the default implementation of the Makefile macros and rules - generation. - - ``mfile`` is the Python file object of the Makefile. - - generate_target_clean(self, mfile) - This is the default implementation of the Makefile clean target - generation. - - ``mfile`` is the Python file object of the Makefile. - - generate_target_default(self, mfile) - This is the default implementation of the Makefile default target - generation. - - ``mfile`` is the Python file object of the Makefile. - - generate_target_install(self, mfile) - This is the default implementation of the Makefile install target - generation. - - ``mfile`` is the Python file object of the Makefile. - - install_file(self, mfile, src, dst, strip=0) - This generates the Makefile commands to install one or more files to a - directory. - - ``mfile`` is the Python file object of the Makefile. - - ``src`` is the name of a single file to install or a list of a number - of files to install. - - ``dst`` is the name of the destination directory. - - ``strip`` is set if the files should be stripped of unneeded symbols - after having been installed. - - optional_list(self, name) - This returns an optional Makefile macro as a list. - - ``name`` is the name of the macro. - - Returns the macro as a list. - - optional_string(self, name, default="") - This returns an optional Makefile macro as a string. - - ``name`` is the name of the macro. - - ``default`` is the optional default value of the macro. - - Returns the macro as a string. - - parse_build_file(self, filename) - This parses a build file (created with the ``-b`` SIP command line - option) and converts it to a dictionary. It can also validate an - existing dictionary created through other means. - - ``filename`` is the name of the build file, or is a dictionary to be - validated. A valid dictionary will contain the name of the target to - build (excluding any platform specific extension) keyed by ``target``; - the names of all source files keyed by ``sources``; and, optionally, - the names of all header files keyed by ``headers``. - - Returns a dictionary corresponding to the parsed build file. - - platform_lib(self, clib, framework=0) - This converts a library name to a platform specific form. - - ``clib`` is the name of the library in cannonical form. - - ``framework`` is set if the library is implemented as a MacOS - framework. - - Return the platform specific name. - - ready(self) - This is called to ensure that the Makefile is fully configured. It is - normally called automatically when needed. - - required_string(self, name) - This returns a required Makefile macro as a string. - - ``name`` is the name of the macro. - - Returns the macro as a string. An exception is raised if the macro - does not exist or has an empty value. - -ModuleMakefile(Makefile) - This class encapsulates a Makefile to build a generic Python extension - module. - - __init__(self, configuration, build_file, install_dir=None, static=0, console=0, opengl=0, threaded=0, warnings=None, debug=0, dir=None, makefile="Makefile", installs=None, strip=1, export_all=0, universal='') - Initialise the instance. - - ``configuration`` - see ``sipconfig.Makefile.__init__()``. - - ``build_file`` is the name of the build file. Build files are - generated using the ``-b`` SIP command line option. - - ``install_dir`` is the name of the directory where the module will be - optionally installed. - - ``static`` is set if the module should be built as a static library - (see `Builtin Modules and Custom Interpreters`_). - - ``console`` - see ``sipconfig.Makefile.__init__()``. - - ``qt`` - see ``sipconfig.Makefile.__init__()``. - - ``opengl`` - see ``sipconfig.Makefile.__init__()``. - - ``threaded`` - see ``sipconfig.Makefile.__init__()``. - - ``warnings`` - see ``sipconfig.Makefile.__init__()``. - - ``debug`` - see ``sipconfig.Makefile.__init__()``. - - ``dir`` - see ``sipconfig.Makefile.__init__()``. - - ``makefile`` - see ``sipconfig.Makefile.__init__()``. - - ``installs`` - see ``sipconfig.Makefile.__init__()``. - - ``strip`` is set if the module should be stripped of unneeded symbols - after installation. It is ignored if either ``debug`` or ``static`` is - set, or if the platform doesn't support it. - - ``export_all`` is set if all of the module's symbols should be exported - rather than just the module's initialisation function. Exporting all - symbols increases the size of the module and slows down module load - times but may avoid problems with modules that use C++ exceptions. All - symbols are exported if either ``debug`` or ``static`` is set, or if - the platform doesn't support it. - - finalise(self) - This is a reimplementation of ``sipconfig.Makefile.finalise()``. - - generate_macros_and_rules(self, mfile) - This is a reimplementation of - ``sipconfig.Makefile.generate_macros_and_rules()``. - - generate_target_clean(self, mfile) - This is a reimplementation of - ``sipconfig.Makefile.generate_target_clean()``. - - generate_target_default(self, mfile) - This is a reimplementation of - ``sipconfig.Makefile.generate_target_default()``. - - generate_target_install(self, mfile) - This is a reimplementation of - ``sipconfig.Makefile.generate_target_install()``. - - module_as_lib(self, mname) - This returns the name of a SIP v3.x module for when it is used as a - library to be linked against. An exception will be raised if it is - used with SIP v4.x modules. - - ``mname`` is the name of the module. - - Returns the corresponding library name. - -ParentMakefile(Makefile) - This class encapsulates a Makefile that sits above a number of other - Makefiles in sub-directories. - - __init__(self, configuration, subdirs, dir=None, makefile="Makefile", installs=None) - Initialise the instance. - - ``configuration`` - see ``sipconfig.Makefile.__init__()``. - - ``subdirs`` is the sequence of sub-directories. - - ``dir`` - see ``sipconfig.Makefile.__init__()``. - - ``makefile`` - see ``sipconfig.Makefile.__init__()``. - - ``installs`` - see ``sipconfig.Makefile.__init__()``. - - generate_macros_and_rules(self, mfile) - This is a reimplementation of - ``sipconfig.Makefile.generate_macros_and_rules()``. - - generate_target_clean(self, mfile) - This is a reimplementation of - ``sipconfig.Makefile.generate_target_clean()``. - - generate_target_default(self, mfile) - This is a reimplementation of - ``sipconfig.Makefile.generate_target_default()``. - - generate_target_install(self, mfile) - This is a reimplementation of - ``sipconfig.Makefile.generate_target_install()``. - -ProgramMakefile(Makefile) - This class encapsulates a Makefile to build an executable program. - - __init__(self, configuration, build_file=None, install_dir=None, console=0, qt=0, opengl=0, python=0, threaded=0, warnings=None, debug=0, dir=None, makefile="Makefile", installs=None, universal='') - Initialise the instance. - - ``configuration`` - see ``sipconfig.Makefile.__init__()``. - - ``build_file`` is the name of the optional build file. Build files are - generated using the ``-b`` SIP command line option. - - ``install_dir`` is the name of the directory where the executable - program will be optionally installed. - - ``console`` - see ``sipconfig.Makefile.__init__()``. - - ``qt`` - see ``sipconfig.Makefile.__init__()``. - - ``opengl`` - see ``sipconfig.Makefile.__init__()``. - - ``python`` - see ``sipconfig.Makefile.__init__()``. - - ``threaded`` - see ``sipconfig.Makefile.__init__()``. - - ``warnings`` - see ``sipconfig.Makefile.__init__()``. - - ``debug`` - see ``sipconfig.Makefile.__init__()``. - - ``dir`` - see ``sipconfig.Makefile.__init__()``. - - ``makefile`` - see ``sipconfig.Makefile.__init__()``. - - ``installs`` - see ``sipconfig.Makefile.__init__()``. - - build_command(self, source) - This creates a single command line that will create an executable - program from a single source file. - - ``source`` is the name of the source file. - - Returns a tuple of the name of the executable that will be created and - the command line. - - finalise(self) - This is a reimplementation of ``sipconfig.Makefile.finalise()``. - - generate_macros_and_rules(self, mfile) - This is a reimplementation of - ``sipconfig.Makefile.generate_macros_and_rules()``. - - generate_target_clean(self, mfile) - This is a reimplementation of - ``sipconfig.Makefile.generate_target_clean()``. - - generate_target_default(self, mfile) - This is a reimplementation of - ``sipconfig.Makefile.generate_target_default()``. - - generate_target_install(self, mfile) - This is a reimplementation of - ``sipconfig.Makefile.generate_target_install()``. - -PythonModuleMakefile(Makefile) - This class encapsulates a Makefile that installs a pure Python module. - - __init__(self, configuration, dstdir, srcdir=None, dir=None, makefile="Makefile", installs=None) - Initialise the instance. - - ``configuration`` - see ``sipconfig.Makefile.__init__()``. - - ``dstdir`` is the name of the directory in which the module's Python - code will be installed. - - ``srcdir`` is the name of the directory (relative to ``dir``) - containing the module's Python code. It defaults to the same - directory. - - ``dir`` - see ``sipconfig.Makefile.__init__()``. - - ``makefile`` - see ``sipconfig.Makefile.__init__()``. - - ``installs`` - see ``sipconfig.Makefile.__init__()``. - - generate_macros_and_rules(self, mfile) - This is a reimplementation of - ``sipconfig.Makefile.generate_macros_and_rules()``. - - generate_target_install(self, mfile) - This is a reimplementation of - ``sipconfig.Makefile.generate_target_install()``. - -SIPModuleMakefile(ModuleMakefile) - This class encapsulates a Makefile to build a SIP generated Python - extension module. - - finalise(self) - This is a reimplementation of ``sipconfig.Makefile.finalise()``. - - -Building Your Extension with distutils -====================================== - -To build the example in `A Simple C++ Example`_ using distutils, it is -sufficient to create a standard ``setup.py``, listing ``word.sip`` among the -files to build, and hook-up SIP into distutils:: - - from distutils.core import setup, Extension - import sipdistutils - - setup( - name = 'word', - versione = '1.0', - ext_modules=[ - Extension("word", ["word.sip", "word.cpp"]), - ], - - cmdclass = {'build_ext': sipdistutils.build_ext} - ) - -As we can see, the above is a normal distutils setup script, with just a -special line which is needed so that SIP can see and process ``word.sip``. -Then, running ``setup.py build`` will build our extension module. - - -Builtin Modules and Custom Interpreters -======================================= - -Sometimes you want to create a custom Python interpreter with some modules -built in to the interpreter itself rather than being dynamically loaded. To -do this the module must be created as a static library and linked with a -custom stub and the normal Python library. - -To build the SIP module as a static library you must pass the ``-k`` command -line option to ``configure.py``. You should then build and install SIP as -normal. (Note that, because the module is now a static library, you will not -be able to import it.) - -To build a module you have created for your own library you must modify your -own configuration script to pass a non-zero value as the ``static`` argument -of the ``__init__()`` method of the ``ModuleMakefile`` class (or any derived -class you have created). Normally you would make this configurable using a -command line option in the same way that SIP's ``configure.py`` handles it. - -The next stage is to create a custom stub and a Makefile. The SIP distribution -contains a directory called ``custom`` which contains example stubs and a -Python script that will create a correct Makefile. Note that, if your copy of -SIP was part of a standard Linux distribution, the ``custom`` directory may -not be installed on your system. - -The ``custom`` directory contains the following files. They are provided as -examples - each needs to be modified according to your particular -requirements. - - - ``mkcustom.py`` is a Python script that will create a Makefile which is - then used to build the custom interpreter. Comments in the file describe - how it should be modified. - - - ``custom.c`` is a stub for a custom interpreter on Linux/UNIX. It - should also be used for a custom console interpreter on Windows (i.e. - like ``python.exe``). Comments in the file describe how it should be - modified. - - - ``customw.c`` is a stub for a custom GUI interpreter on Windows (i.e. - like ``pythonw.exe``). Comments in the file describe how it should be - modified. - -Note that this technique does not restrict how the interpreter can be used. -For example, it still allows users to write their own applications that can -import your builtin modules. If you want to prevent users from doing that, -perhaps to protect a proprietary API, then take a look at the -`VendorID `__ package. diff --git a/python/sip/sipdistutils.py b/python/sip/sipdistutils.py deleted file mode 100644 index 1c2ab7ed..00000000 --- a/python/sip/sipdistutils.py +++ /dev/null @@ -1,90 +0,0 @@ -# Subclasses disutils.command.build_ext, -# replacing it with a SIP version that compiles .sip -> .cpp -# before calling the original build_ext command. -# Written by Giovanni Bajo -# Based on Pyrex.Distutils, written by Graham Fawcett and Darrel Gallion. - -import distutils.command.build_ext -from distutils.dep_util import newer, newer_group -import os -import sys - -def replace_suffix(path, new_suffix): - return os.path.splitext(path)[0] + new_suffix - -class build_ext (distutils.command.build_ext.build_ext): - - description = "Compiler SIP descriptions, then build C/C++ extensions (compile/link to build directory)" - - def _get_sip_output_list(self, sbf): - """ - Parse the sbf file specified to extract the name of the generated source - files. Make them absolute assuming they reside in the temp directory. - """ - for L in file(sbf): - key, value = L.split("=", 1) - if key.strip() == "sources": - out = [] - for o in value.split(): - out.append(os.path.join(self.build_temp, o)) - return out - - raise RuntimeError, "cannot parse SIP-generated '%s'" % sbf - - def _find_sip(self): - import sipconfig - cfg = sipconfig.Configuration() - return cfg.sip_bin - - def _sip_inc_dir(self): - import sipconfig - cfg = sipconfig.Configuration() - return cfg.sip_inc_dir - - def swig_sources (self, sources, extension=None): - if not self.extensions: - return - - # Add the SIP include directory to the include path - if extension is not None: - extension.include_dirs.append(self._sip_inc_dir()) - depends = extension.depends - else: - # pre-2.4 compatibility - self.include_dirs.append(self._sip_inc_dir()) - depends = [] # ? - - # Filter dependencies list: we are interested only in .sip files, - # since the main .sip files can only depend on additional .sip - # files. For instance, if a .h changes, there is no need to - # run sip again. - depends = [f for f in depends if os.path.splitext(f)[1] == ".sip"] - - # Create the temporary directory if it does not exist already - if not os.path.isdir(self.build_temp): - os.makedirs(self.build_temp) - - # Collect the names of the source (.sip) files - sip_sources = [] - sip_sources = [source for source in sources if source.endswith('.sip')] - other_sources = [source for source in sources if not source.endswith('.sip')] - generated_sources = [] - - sip_bin = self._find_sip() - - for sip in sip_sources: - # Use the sbf file as dependency check - sipbasename = os.path.basename(sip) - sbf = os.path.join(self.build_temp, replace_suffix(sipbasename, ".sbf")) - if newer_group([sip]+depends, sbf) or self.force: - self._sip_compile(sip_bin, sip, sbf) - out = self._get_sip_output_list(sbf) - generated_sources.extend(out) - - return generated_sources + other_sources - - def _sip_compile(self, sip_bin, source, sbf): - self.spawn([sip_bin, - "-c", self.build_temp, - "-b", sbf, - source]) diff --git a/python/sip/sipgen/export.c b/python/sip/sipgen/export.c deleted file mode 100644 index 5200b2cf..00000000 --- a/python/sip/sipgen/export.c +++ /dev/null @@ -1,998 +0,0 @@ -/* - * The XML and API file generator module for SIP. - * - * Copyright (c) 2007 - * Riverbank Computing Limited - * - * This file is part of SIP. - * - * This copy of SIP is licensed for use under the terms of the SIP License - * Agreement. See the file LICENSE for more details. - * - * SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ - - -#include - -#include "sip.h" - - -#define XML_VERSION_NR 0 /* The schema version number. */ - - -static void apiEnums(sipSpec *pt, classDef *scope, FILE *fp); -static void apiVars(sipSpec *pt, classDef *scope, FILE *fp); -static int apiCtor(sipSpec *pt, classDef *scope, ctorDef *ct, int sec, - FILE *fp); -static int apiOverload(sipSpec *pt, classDef *scope, overDef *od, int sec, - FILE *fp); -static int apiArgument(argDef *ad, int out, int need_comma, int sec, FILE *fp); -static void xmlClass(sipSpec *pt, classDef *cd, FILE *fp); -static void xmlEnums(sipSpec *pt, classDef *scope, int indent, FILE *fp); -static void xmlVars(sipSpec *pt, classDef *scope, int indent, FILE *fp); -static void xmlFunction(classDef *scope, memberDef *md, overDef *oloads, - int indent, FILE *fp); -static int xmlCtor(classDef *scope, ctorDef *ct, int sec, int indent, FILE *fp); -static int xmlOverload(classDef *scope, memberDef *md, overDef *od, - classDef *xtnds, int stat, int sec, int indent, FILE *fp); -static void xmlCppSignature(FILE *fp, overDef *od); -static void xmlArgument(argDef *ad, const char *dir, int res_xfer, int sec, - int indent, FILE *fp); -static void xmlType(argDef *ad, int sec, FILE *fp); -static void xmlIndent(int indent, FILE *fp); -static const char *dirAttribute(argDef *ad); -static void exportDefaultValue(argDef *ad, FILE *fp); -static const char *pyType(argDef *ad, int sec, classDef **scope); - - -/* - * Generate the API file. - */ -void generateAPI(sipSpec *pt, const char *apiFile) -{ - overDef *od; - classDef *cd; - FILE *fp; - - /* Generate the file. */ - if ((fp = fopen(apiFile, "w")) == NULL) - fatal("Unable to create file \"%s\"\n", apiFile); - - apiEnums(pt, NULL, fp); - apiVars(pt, NULL, fp); - - for (od = pt->overs; od != NULL; od = od->next) - { - if (od->common->module != pt->module) - continue; - - if (od->common->slot != no_slot) - continue; - - if (apiOverload(pt, NULL, od, FALSE, fp)) - apiOverload(pt, NULL, od, TRUE, fp); - } - - for (cd = pt->classes; cd != NULL; cd = cd->next) - { - ctorDef *ct; - - if (cd->iff->module != pt->module) - continue; - - if (isExternal(cd)) - continue; - - apiEnums(pt, cd, fp); - apiVars(pt, cd, fp); - - for (ct = cd->ctors; ct != NULL; ct = ct->next) - { - if (isPrivateCtor(ct)) - continue; - - if (apiCtor(pt, cd, ct, FALSE, fp)) - apiCtor(pt, cd, ct, TRUE, fp); - } - - for (od = cd->overs; od != NULL; od = od->next) - { - if (isPrivate(od)) - continue; - - if (od->common->slot != no_slot) - continue; - - if (apiOverload(pt, cd, od, FALSE, fp)) - apiOverload(pt, cd, od, TRUE, fp); - } - } - - fclose(fp); -} - - -/* - * Generate an API ctor. - */ -static int apiCtor(sipSpec *pt, classDef *scope, ctorDef *ct, int sec, - FILE *fp) -{ - int need_sec = FALSE, need_comma, a; - - /* Do the callable type form. */ - fprintf(fp, "%s.", pt->module->name); - prScopedPythonName(fp, scope->ecd, scope->pyname); - fprintf(fp, "("); - - need_comma = FALSE; - - for (a = 0; a < ct->pysig.nrArgs; ++a) - { - argDef *ad = &ct->pysig.args[a]; - - need_comma = apiArgument(ad, FALSE, need_comma, sec, fp); - - if (ad->atype == rxcon_type || ad->atype == rxdis_type) - need_sec = TRUE; - } - - fprintf(fp, ")\n"); - - /* Do the call __init__ form. */ - fprintf(fp, "%s.", pt->module->name); - prScopedPythonName(fp, scope->ecd, scope->pyname); - fprintf(fp, ".__init__(self"); - - for (a = 0; a < ct->pysig.nrArgs; ++a) - apiArgument(&ct->pysig.args[a], FALSE, TRUE, sec, fp); - - fprintf(fp, ")\n"); - - return need_sec; -} - - -/* - * Generate the APIs for all the enums in a scope. - */ -static void apiEnums(sipSpec *pt, classDef *scope, FILE *fp) -{ - enumDef *ed; - - for (ed = pt->enums; ed != NULL; ed = ed->next) - { - enumMemberDef *emd; - - if (ed->module != pt->module) - continue; - - if (ed->ecd != scope) - continue; - - if (ed->pyname != NULL) - { - fprintf(fp, "%s.", pt->module->name); - prScopedPythonName(fp, ed->ecd, ed->pyname->text); - fprintf(fp, "\n"); - } - - for (emd = ed->members; emd != NULL; emd = emd->next) - { - fprintf(fp, "%s.", pt->module->name); - prScopedPythonName(fp, ed->ecd, emd->pyname->text); - fprintf(fp, "\n"); - } - } -} - - -/* - * Generate the APIs for all the variables in a scope. - */ -static void apiVars(sipSpec *pt, classDef *scope, FILE *fp) -{ - varDef *vd; - - for (vd = pt->vars; vd != NULL; vd = vd->next) - { - if (vd->module != pt->module) - continue; - - if (vd->ecd != scope) - continue; - - fprintf(fp, "%s.", pt->module->name); - prScopedPythonName(fp, vd->ecd, vd->pyname->text); - fprintf(fp, "\n"); - } -} - - -/* - * Generate a single API overload. - */ -static int apiOverload(sipSpec *pt, classDef *scope, overDef *od, int sec, - FILE *fp) -{ - int need_sec = FALSE, need_comma = FALSE, is_res, nr_out, a; - - fprintf(fp, "%s.", pt->module->name); - prScopedPythonName(fp, scope, od->common->pyname->text); - fprintf(fp, "("); - - if (scope != NULL && scope->iff->type != namespace_iface && !isStatic(od)) - { - fprintf(fp, "self"); - need_comma = TRUE; - } - - nr_out = 0; - - for (a = 0; a < od->pysig.nrArgs; ++a) - { - argDef *ad = &od->pysig.args[a]; - - if (isOutArg(ad)) - ++nr_out; - - if (!isInArg(ad)) - continue; - - need_comma = apiArgument(ad, FALSE, need_comma, sec, fp); - - if (ad->atype == rxcon_type || ad->atype == rxdis_type) - need_sec = TRUE; - } - - fprintf(fp, ")"); - - is_res = (od->pysig.result.atype != void_type || od->pysig.result.nrderefs != 0); - - if (is_res || nr_out > 0) - { - fprintf(fp, " -> "); - - if ((is_res && nr_out > 0) || nr_out > 1) - fprintf(fp, "("); - - if (is_res) - need_comma = apiArgument(&od->pysig.result, TRUE, FALSE, sec, fp); - else - need_comma = FALSE; - - for (a = 0; a < od->pysig.nrArgs; ++a) - { - argDef *ad = &od->pysig.args[a]; - - if (!isOutArg(ad)) - continue; - - need_comma = apiArgument(ad, TRUE, need_comma, sec, fp); - } - - if ((is_res && nr_out > 0) || nr_out > 1) - fprintf(fp, ")"); - } - - fprintf(fp, "\n"); - - return need_sec; -} - - -/* - * Generate the API for an argument. - */ -static int apiArgument(argDef *ad, int out, int need_comma, int sec, FILE *fp) -{ - const char *tname; - classDef *tscope; - - if (isArraySize(ad)) - return need_comma; - - if (sec && (ad->atype == slotcon_type || ad->atype == slotdis_type)) - return need_comma; - - if ((tname = pyType(ad, sec, &tscope)) == NULL) - return need_comma; - - if (need_comma) - fprintf(fp, ", "); - - prScopedPythonName(fp, tscope, tname); - - if (ad->name != NULL) - fprintf(fp, " %s", ad->name); - - /* - * Handle the default value, but ignore it if it is an output only - * argument. - */ - if (ad->defval && !out) - { - fprintf(fp, "="); - prcode(fp, "%M"); - exportDefaultValue(ad, fp); - prcode(fp, "%M"); - } - - return TRUE; -} - - -/* - * Generate the XML export file. - */ -void generateXML(sipSpec *pt, const char *xmlFile) -{ - FILE *fp; - classDef *cd; - memberDef *md; - - if ((fp = fopen(xmlFile, "w")) == NULL) - fatal("Unable to create file \"%s\"\n", xmlFile); - - fprintf(fp, "\n"); - fprintf(fp, "\n", - XML_VERSION_NR, pt->module->name); - - /* - * Note that we don't yet handle mapped types, templates or exceptions. - */ - - for (cd = pt->classes; cd != NULL; cd = cd->next) - { - if (cd->iff->module != pt->module) - continue; - - if (isExternal(cd)) - continue; - - xmlClass(pt, cd, fp); - } - - for (cd = pt->proxies; cd != NULL; cd = cd->next) - xmlClass(pt, cd, fp); - - xmlEnums(pt, NULL, 1, fp); - xmlVars(pt, NULL, 1, fp); - - for (md = pt->othfuncs; md != NULL; md = md->next) - { - if (md->module != pt->module) - continue; - - xmlFunction(NULL, md, pt->overs, 1, fp); - } - - fprintf(fp, "\n"); - - fclose(fp); -} - - -/* - * Generate the XML for a class. - */ -static void xmlClass(sipSpec *pt, classDef *cd, FILE *fp) -{ - int indent = 1; - ctorDef *ct; - memberDef *md; - - if (isOpaque(cd)) - { - xmlIndent(indent, fp); - fprintf(fp, "pyname); - prScopedPythonName(fp, cd->ecd, cd->pyname); - fprintf(fp, "\"/>\n"); - - return; - } - - xmlIndent(indent++, fp); - fprintf(fp, "pyname); - prScopedPythonName(fp, cd->ecd, cd->pyname); - fprintf(fp, "\""); - - if (cd->convtocode != NULL) - fprintf(fp, " convert=\"1\""); - - if (cd->real != NULL) - fprintf(fp, " extends=\"%s\"", cd->real->iff->module->name); - - if (cd->supers != NULL) - { - classList *cl; - - fprintf(fp, " inherits=\""); - - for (cl = cd->supers; cl != NULL; cl = cl->next) - { - if (cl != cd->supers) - fprintf(fp, " "); - - prScopedPythonName(fp, cl->cd->ecd, cl->cd->pyname); - } - - fprintf(fp, "\""); - } - - fprintf(fp, ">\n"); - - xmlEnums(pt, cd, indent, fp); - xmlVars(pt, cd, indent, fp); - - for (ct = cd->ctors; ct != NULL; ct = ct->next) - { - if (isPrivateCtor(ct)) - continue; - - if (xmlCtor(cd, ct, FALSE, indent, fp)) - xmlCtor(cd, ct, TRUE, indent, fp); - } - - for (md = cd->members; md != NULL; md = md->next) - xmlFunction(cd, md, cd->overs, indent, fp); - - xmlIndent(--indent, fp); - fprintf(fp, "\n"); -} - - -/* - * Generate the XML for all the enums in a scope. - */ -static void xmlEnums(sipSpec *pt, classDef *scope, int indent, FILE *fp) -{ - enumDef *ed; - - for (ed = pt->enums; ed != NULL; ed = ed->next) - { - if (ed->module != pt->module) - continue; - - if (ed->ecd != scope) - continue; - - if (ed->pyname != NULL) - { - enumMemberDef *emd; - - xmlIndent(indent++, fp); - fprintf(fp, "ecd, ed->pyname->text); - fprintf(fp, "\">\n"); - - for (emd = ed->members; emd != NULL; emd = emd->next) - { - xmlIndent(indent, fp); - fprintf(fp, "ecd, emd->pyname->text); - fprintf(fp, "\"/>\n"); - } - - xmlIndent(--indent, fp); - fprintf(fp, "\n"); - } - else - { - enumMemberDef *emd; - - for (emd = ed->members; emd != NULL; emd = emd->next) - { - xmlIndent(indent, fp); - fprintf(fp, "ecd, emd->pyname->text); - fprintf(fp, "\" const=\"1\" typename=\"int\"/>\n"); - } - } - } -} - - -/* - * Generate the XML for all the variables in a scope. - */ -static void xmlVars(sipSpec *pt, classDef *scope, int indent, FILE *fp) -{ - varDef *vd; - - for (vd = pt->vars; vd != NULL; vd = vd->next) - { - if (vd->module != pt->module) - continue; - - if (vd->ecd != scope) - continue; - - xmlIndent(indent, fp); - fprintf(fp, "ecd, vd->pyname->text); - fprintf(fp, "\""); - - if (isConstArg(&vd->type) || scope == NULL) - fprintf(fp, " const=\"1\""); - - if (isStaticVar(vd)) - fprintf(fp, " static=\"1\""); - - xmlType(&vd->type, FALSE, fp); - fprintf(fp, "/>\n"); - } -} - - -/* - * Generate the XML for a ctor. - */ -static int xmlCtor(classDef *scope, ctorDef *ct, int sec, int indent, FILE *fp) -{ - int a, need_sec; - - xmlIndent(indent++, fp); - fprintf(fp, "pysig.nrArgs == 0) - { - fprintf(fp, "/>\n"); - return FALSE; - } - - fprintf(fp, ">\n"); - - need_sec = FALSE; - - for (a = 0; a < ct->pysig.nrArgs; ++a) - { - argDef *ad = &ct->pysig.args[a]; - - xmlArgument(ad, dirAttribute(ad), FALSE, sec, indent, fp); - - if (ad->atype == rxcon_type || ad->atype == rxdis_type) - need_sec = TRUE; - } - - xmlIndent(--indent, fp); - fprintf(fp, "\n"); - - return need_sec; -} - - -/* - * Generate the XML for a function. - */ -static void xmlFunction(classDef *scope, memberDef *md, overDef *oloads, - int indent, FILE *fp) -{ - overDef *od; - - for (od = oloads; od != NULL; od = od->next) - { - int isstat; - classDef *xtnds; - - if (od->common != md) - continue; - - if (isPrivate(od)) - continue; - - if (isSignal(od)) - { - xmlIndent(indent, fp); - fprintf(fp, "pyname->text); - fprintf(fp, "\" sig=\""); - xmlCppSignature(fp, od); - fprintf(fp, "\"/>\n", md->pyname->text); - - continue; - } - - xtnds = NULL; - isstat = (scope == NULL || scope->iff->type == namespace_iface || isStatic(od)); - - if (scope == NULL && md->slot != no_slot && od->pysig.args[0].atype == class_type) - { - xtnds = od->pysig.args[0].u.cd; - isstat = FALSE; - } - - if (xmlOverload(scope, md, od, xtnds, isstat, FALSE, indent, fp)) - xmlOverload(scope, md, od, xtnds, isstat, TRUE, indent, fp); - } -} - - -/* - * Generate the XML for an overload. - */ -static int xmlOverload(classDef *scope, memberDef *md, overDef *od, - classDef *xtnds, int stat, int sec, int indent, FILE *fp) -{ - int a, need_sec, no_res; - - xmlIndent(indent++, fp); - fprintf(fp, "pyname->text); - fprintf(fp, "\""); - - if (isAbstract(od)) - fprintf(fp, " abstract=\"1\""); - - if (stat) - fprintf(fp, " static=\"1\""); - - if (isSlot(od)) - { - fprintf(fp, " slot=\""); - xmlCppSignature(fp, od); - fprintf(fp, "\""); - } - - if (xtnds != NULL) - { - fprintf(fp, " extends=\""); - prScopedPythonName(fp, xtnds->ecd, xtnds->pyname); - fprintf(fp, "\""); - } - - no_res = (od->pysig.result.atype == void_type && od->pysig.result.nrderefs == 0); - - /* Handle the trivial case. */ - if (no_res && od->pysig.nrArgs == 0) - { - fprintf(fp, "/>\n"); - return FALSE; - } - - fprintf(fp, ">\n"); - - if (!no_res) - xmlArgument(&od->pysig.result, "out", isResultTransferredBack(od), FALSE, indent, fp); - - need_sec = FALSE; - - for (a = 0; a < od->pysig.nrArgs; ++a) - { - argDef *ad = &od->pysig.args[a]; - - /* Ignore the first argument of number slots. */ - if (isNumberSlot(md) && a == 0 && od->pysig.nrArgs == 2) - continue; - - xmlArgument(ad, dirAttribute(ad), FALSE, sec, indent, fp); - - if (ad->atype == rxcon_type || ad->atype == rxdis_type) - need_sec = TRUE; - } - - xmlIndent(--indent, fp); - fprintf(fp, "\n"); - - return need_sec; -} - - -/* - * Generate the XML for a C++ signature. - */ -static void xmlCppSignature(FILE *fp, overDef *od) -{ - prcode(fp, "%M"); - prOverloadDecl(fp, od, TRUE); - prcode(fp, "%M"); -} - - -/* - * Convert an arguments direction to an XML attribute value. - */ -static const char *dirAttribute(argDef *ad) -{ - if (isInArg(ad)) - { - if (isOutArg(ad)) - return "inout"; - - return NULL; - } - - return "out"; -} - - -/* - * Generate the XML for an argument. - */ -static void xmlArgument(argDef *ad, const char *dir, int res_xfer, int sec, - int indent, FILE *fp) -{ - if (isArraySize(ad)) - return; - - if (sec && (ad->atype == slotcon_type || ad->atype == slotdis_type)) - return; - - xmlIndent(indent, fp); - fprintf(fp, "defval && (dir == NULL || strcmp(dir, "out") != 0)) - { - prcode(fp, " default=\"%M"); - exportDefaultValue(ad, fp); - prcode(fp, "%M\""); - } - - fprintf(fp, "/>\n"); -} - - -/* - * Generate the XML for a type. - */ -static void xmlType(argDef *ad, int sec, FILE *fp) -{ - const char *type_type = NULL, *type_name; - classDef *type_scope; - - fprintf(fp, " typename=\""); - - switch (ad->atype) - { - case class_type: - type_type = (isOpaque(ad->u.cd) ? "opaque" : "class"); - break; - - case enum_type: - if (ad->u.ed->pyname != NULL) - type_type = "enum"; - break; - - case rxcon_type: - case rxdis_type: - if (!sec) - type_type = "class"; - break; - - case qobject_type: - type_type = "class"; - break; - - case slotcon_type: - case slotdis_type: - { - int a; - - prcode(fp, "TQT_SLOT("); - - for (a = 0; a < ad->u.sa->nrArgs; ++a) - { - if (a > 0) - prcode(fp, ", "); - - prcode(fp, "%M%B%M", &ad->u.sa->args[a]); - } - - prcode(fp, ")"); - } - - break; - - case mapped_type: - prcode(fp, "%M%B%M", &ad->u.mtd->type); - type_type = "mappedtype"; - break; - } - - if ((type_name = pyType(ad, sec, &type_scope)) != NULL) - prScopedPythonName(fp, type_scope, type_name); - - fprintf(fp, "\""); - - if (type_type != NULL) - fprintf(fp, " typetype=\"%s\"", type_type); - - if (ad->name != NULL) - fprintf(fp, " name=\"%s\"", ad->name); -} - - -/* - * Generate the indentation for a line. - */ -static void xmlIndent(int indent, FILE *fp) -{ - while (indent-- > 0) - fprintf(fp, " "); -} - - -/* - * Export the default value of an argument. - */ -static void exportDefaultValue(argDef *ad, FILE *fp) -{ - /* Translate some special cases. */ - if (ad->defval->next == NULL && ad->defval->vtype == numeric_value) - { - if (ad->nrderefs > 0 && ad->defval->u.vnum == 0) - { - prcode(fp, "None"); - return; - } - - if (ad->atype == bool_type || ad->atype == cbool_type) - { - prcode(fp, ad->defval->u.vnum ? "True" : "False"); - return; - } - } - - generateExpression(ad->defval, fp); -} - - -/* - * Get the Python representation of a type. - */ -static const char *pyType(argDef *ad, int sec, classDef **scope) -{ - const char *type_name; - - *scope = NULL; - - switch (ad->atype) - { - case class_type: - type_name = ad->u.cd->pyname; - *scope = ad->u.cd->ecd; - break; - - case struct_type: - case void_type: - type_name = "sip.voidptr"; - break; - - case enum_type: - if (ad->u.ed->pyname != NULL) - { - type_name = ad->u.ed->pyname->text; - *scope = ad->u.ed->ecd; - } - else - type_name = "int"; - break; - - case signal_type: - type_name = "TQT_SIGNAL()"; - break; - - case slot_type: - type_name = "TQT_SLOT()"; - break; - - case rxcon_type: - case rxdis_type: - if (sec) - type_name = "callable"; - else - type_name = "TQObject"; - - break; - - case qobject_type: - type_name = "TQObject"; - break; - - case ustring_type: - case string_type: - case sstring_type: - case wstring_type: - if (ad->nrderefs > 0) - type_name = "str"; - else - type_name = "char"; - - break; - - case short_type: - case int_type: - case cint_type: - type_name = "int"; - break; - - case ushort_type: - case uint_type: - case ulong_type: - case ulonglong_type: - type_name = "unsigned long"; - break; - - case long_type: - case longlong_type: - type_name = "long"; - break; - - case float_type: - case cfloat_type: - case double_type: - case cdouble_type: - type_name = "float"; - break; - - case bool_type: - case cbool_type: - type_name = "bool"; - break; - - case pyobject_type: - type_name = "object"; - break; - - case pytuple_type: - type_name = "tuple"; - break; - - case pylist_type: - type_name = "list"; - break; - - case pydict_type: - type_name = "dict"; - break; - - case pycallable_type: - type_name = "callable"; - break; - - case pyslice_type: - type_name = "slice"; - break; - - case pytype_type: - type_name = "type"; - break; - - case ellipsis_type: - type_name = "..."; - break; - - case anyslot_type: - /* Need to check if this is enough. */ - type_name = "TQT_SLOT()"; - break; - - default: - type_name = NULL; - } - - return type_name; -} diff --git a/python/sip/sipgen/gencode.c b/python/sip/sipgen/gencode.c deleted file mode 100644 index ff1b93b9..00000000 --- a/python/sip/sipgen/gencode.c +++ /dev/null @@ -1,10820 +0,0 @@ -/* - * The code generator module for SIP. - * - * Copyright (c) 2007 - * Riverbank Computing Limited - * - * This file is part of SIP. - * - * This copy of SIP is licensed for use under the terms of the SIP License - * Agreement. See the file LICENSE for more details. - * - * SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ - - -#include -#include -#include -#include -#include -#include - -#include "sip.h" - - -/* - * These must match the values of SIP_TYPE_FLAGS_SHIFT and SIP_TYPE_FLAGS_MASK - * in siplib/sip.h. - */ -#define TYPE_FLAGS_SHIFT 8 -#define TYPE_FLAGS_MASK 0x0f00 - - -/* Control what generateSingleArg() actually generates. */ -typedef enum { - Call, - Declaration, - Definition -} funcArgType; - - -/* An entry in the sorted array of methods. */ -typedef struct { - memberDef *md; /* The method. */ - int is_static; /* Set if all overloads are static. */ -} sortedMethTab; - - -static int currentLineNr; /* Current output line number. */ -static char *currentFileName; /* Current output file name. */ -static int previousLineNr; /* Previous output line number. */ -static char *previousFileName; /* Previous output file name. */ -static int exceptions; /* Set if exceptions are enabled. */ -static int tracing; /* Set if tracing is enabled. */ -static int generating_c; /* Set if generating C. */ -static int release_gil; /* Set if always releasing the GIL. */ -static const char *prcode_last = NULL; /* The last prcode format string. */ -static int prcode_xml = FALSE; /* Set if prcode is XML aware. */ - - -static void generateDocumentation(sipSpec *, char *); -static void generateBuildFile(sipSpec *, char *, char *, int); -static void generateInternalAPIHeader(sipSpec *, char *, stringList *); -static void generateCpp(sipSpec *, char *, char *, int *); -static void generateIfaceCpp(sipSpec *, ifaceFileDef *, char *, char *, - FILE *); -static void generateMappedTypeCpp(mappedTypeDef *, FILE *); -static void generateImportedMappedTypeHeader(mappedTypeDef *mtd, sipSpec *pt, - FILE *fp); -static void generateMappedTypeHeader(mappedTypeDef *, int, FILE *); -static void generateClassCpp(classDef *cd, sipSpec *pt, FILE *fp); -static void generateImportedClassHeader(classDef *cd, sipSpec *pt, FILE *fp); -static void generateClassTableEntries(sipSpec *pt, nodeDef *nd, FILE *fp); -static void generateClassHeader(classDef *, int, sipSpec *, FILE *); -static void generateClassFunctions(sipSpec *, classDef *, FILE *); -static void generateShadowCode(sipSpec *, classDef *, FILE *); -static void generateFunction(sipSpec *, memberDef *, overDef *, classDef *, - classDef *, FILE *); -static void generateFunctionBody(sipSpec *, overDef *, classDef *, classDef *, - int deref, FILE *); -static void generateTypeDefinition(sipSpec *pt, classDef *cd, FILE *fp); -static void generateTypeInit(sipSpec *, classDef *, FILE *); -static void generateCppCodeBlock(codeBlock *, FILE *); -static void generateUsedIncludes(ifaceFileList *, int, FILE *); -static void generateIfaceHeader(sipSpec *, ifaceFileDef *, char *); -static void generateShadowClassDeclaration(sipSpec *, classDef *, FILE *); -static int hasConvertToCode(argDef *ad); -static void deleteTemps(signatureDef *sd, FILE *fp); -static void gc_ellipsis(signatureDef *sd, FILE *fp); -static void generateArgs(signatureDef *, funcArgType, FILE *); -static void generateVariable(argDef *, int, FILE *); -static void generateNamedValueType(argDef *, char *, FILE *); -static void generateSingleArg(argDef *, int, funcArgType, FILE *); -static void generateBaseType(argDef *, FILE *); -static void generateNamedBaseType(argDef *, char *, FILE *); -static void generateTupleBuilder(signatureDef *, FILE *); -static void generateEmitters(sipSpec *pt, classDef *cd, FILE *fp); -static void generateEmitter(sipSpec *, classDef *, visibleList *, FILE *); -static void generateVirtualHandler(sipSpec *, virtHandlerDef *, FILE *); -static void generateVirtHandlerErrorReturn(argDef *res, FILE *fp); -static void generateVirtualCatcher(sipSpec *, classDef *, int, virtOverDef *, - FILE *); -static void generateUnambiguousClass(classDef *cd, classDef *scope, FILE *fp); -static void generateProtectedEnums(sipSpec *, classDef *, FILE *); -static void generateProtectedDeclarations(classDef *, FILE *); -static void generateProtectedDefinitions(classDef *, FILE *); -static void generateProtectedCallArgs(overDef *od, FILE *fp); -static void generateConstructorCall(classDef *, ctorDef *, int, FILE *); -static void generateHandleResult(overDef *, int, char *, FILE *); -static void generateOrdinaryFunction(sipSpec *, classDef *, memberDef *, - FILE *); -static void generateSimpleFunctionCall(fcallDef *, FILE *); -static void generateFunctionCall(classDef *cd, classDef *ocd, overDef *od, - int deref, FILE *fp); -static void generateCppFunctionCall(classDef *cd, classDef *ocd, overDef *od, - FILE *fp); -static void generateSlotArg(signatureDef *sd, int argnr, FILE *fp); -static void generateBinarySlotCall(overDef *od, char *op, int deref, FILE *fp); -static void generateNumberSlotCall(overDef *od, char *op, FILE *fp); -static void generateVariableHandler(varDef *, FILE *); -static int generateObjToCppConversion(argDef *, FILE *); -static void generateVarClassConversion(varDef *, FILE *); -static void generateVarMember(varDef *vd, FILE *fp); -static int generateVoidPointers(sipSpec *, classDef *, FILE *); -static int generateChars(sipSpec *, classDef *, FILE *); -static int generateStrings(sipSpec *, classDef *, FILE *); -static sortedMethTab *createFunctionTable(classDef *, int *); -static sortedMethTab *createMethodTable(classDef *, int *); -static int generateMethodTable(classDef *, FILE *); -static void generateEnumMacros(sipSpec *pt, classDef *cd, FILE *fp); -static int generateEnumMemberTable(sipSpec *, classDef *, FILE *); -static int generateInts(sipSpec *, classDef *, FILE *); -static int generateLongs(sipSpec *, classDef *, FILE *); -static int generateUnsignedLongs(sipSpec *, classDef *, FILE *); -static int generateLongLongs(sipSpec *, classDef *, FILE *); -static int generateUnsignedLongLongs(sipSpec *, classDef *, FILE *); -static int generateVariableType(sipSpec *pt, classDef *cd, argType atype, - const char *eng, const char *s1, const char *s2, FILE *fp); -static int generateDoubles(sipSpec *, classDef *, FILE *); -static int generateEnums(sipSpec *, classDef *, FILE *); -static int generateClasses(sipSpec *, classDef *, FILE *); -static void generateEnumsInline(sipSpec *, FILE *); -static void generateClassesInline(sipSpec *, FILE *); -static void generateAccessFunctions(sipSpec *, classDef *, FILE *); -static void generateConvertToDefinitions(mappedTypeDef *, classDef *, FILE *); -static void generateEncodedClass(sipSpec *, classDef *, int, FILE *); -static int generateArgParser(sipSpec *, signatureDef *, classDef *, ctorDef *, - overDef *, int, FILE *); -static void generateTry(throwArgs *, FILE *); -static void generateCatch(throwArgs *ta, signatureDef *sd, FILE *fp); -static void generateThrowSpecifier(throwArgs *, FILE *); -static void generateSlot(sipSpec *pt, classDef *cd, enumDef *ed, memberDef *md, - FILE *fp); -static void generateCastZero(argDef *ad, FILE *fp); -static void generateCallDefaultCtor(ctorDef *ct, FILE *fp); -static int countVirtuals(classDef *); -static int skipOverload(overDef *, memberDef *, classDef *, classDef *, int); -static int compareMethTab(const void *, const void *); -static int compareEnumMembers(const void *, const void *); -static char *getSubFormatChar(char, argDef *); -static char *createIfaceFileName(char *, ifaceFileDef *, char *); -static FILE *createCompilationUnit(sipSpec *pt, char *fname, - char *description); -static FILE *createFile(sipSpec *, char *, char *); -static void closeFile(FILE *); -static void prScopedName(FILE *fp, scopedNameDef *snd, char *sep); -static void prTypeName(FILE *, argDef *, int); -static void prScopedClassName(FILE *, classDef *, char *); -static int isZeroArgSlot(memberDef *md); -static int isMultiArgSlot(memberDef *md); -static int isIntArgSlot(memberDef *md); -static int isInplaceNumberSlot(memberDef *md); -static int isInplaceSequenceSlot(memberDef *md); -static int needErrorFlag(codeBlock *cb); -static int needNewInstance(argDef *ad); -static int needDealloc(classDef *cd); -static char getBuildResultFormat(argDef *ad); -static const char *getParseResultFormat(argDef *ad, int isres, int xfervh); -static void generateParseResultExtraArgs(argDef *ad, int isres, FILE *fp); -static char *makePartName(char *codeDir, char *mname, int part, - char *srcSuffix); -static void normaliseArgs(signatureDef *); -static void restoreArgs(signatureDef *); -static const char *slotName(slotType st); -static void ints_intro(classDef *cd, FILE *fp); -static const char *argName(const char *name, codeBlock *cb); -static int usedInCode(codeBlock *code, const char *str); -static void generateDefaultValue(argDef *ad, int argnr, FILE *fp); -static void generateClassFromVoid(classDef *cd, const char *cname, - const char *vname, FILE *fp); -static void generateMappedTypeFromVoid(mappedTypeDef *mtd, const char *cname, - const char *vname, FILE *fp); -static int generateSubClassConvertors(sipSpec *pt, FILE *fp); -static void generateRegisterMetaType(classDef *cd, FILE *fp); - - -/* - * Generate the code from a specification. - */ -void generateCode(sipSpec *pt, char *codeDir, char *buildfile, char *docFile, - char *srcSuffix, int except, int trace, int releaseGIL, int parts, - stringList *xsl) -{ - exceptions = except; - tracing = trace; - release_gil = releaseGIL; - generating_c = pt->genc; - - if (srcSuffix == NULL) - srcSuffix = (generating_c ? ".c" : ".cpp"); - - /* Generate the documentation. */ - if (docFile != NULL) - generateDocumentation(pt,docFile); - - /* Generate the code. */ - if (codeDir != NULL) - { - generateCpp(pt,codeDir,srcSuffix,&parts); - generateInternalAPIHeader(pt,codeDir,xsl); - } - - /* Generate the build file. */ - if (buildfile != NULL) - generateBuildFile(pt,buildfile,srcSuffix,parts); -} - - -/* - * Generate the documentation. - */ -static void generateDocumentation(sipSpec *pt, char *docFile) -{ - FILE *fp; - codeBlock *cb; - - fp = createFile(pt, docFile, NULL); - - for (cb = pt->docs; cb != NULL; cb = cb->next) - fputs(cb->frag, fp); - - closeFile(fp); -} - - -/* - * Generate the build file. - */ -static void generateBuildFile(sipSpec *pt, char *buildFile, char *srcSuffix, - int parts) -{ - char *mname = pt->module->name; - ifaceFileDef *iff; - FILE *fp; - - fp = createFile(pt, buildFile, NULL); - - prcode(fp, "target = %s\nsources = ", mname); - - if (parts) - { - int p; - - for (p = 0; p < parts; ++p) - { - if (p > 0) - prcode(fp, " "); - - prcode(fp, "sip%spart%d%s", mname, p, srcSuffix); - } - } - else - { - prcode(fp, "sip%scmodule%s", mname, srcSuffix); - - for (iff = pt->ifacefiles; iff != NULL; iff = iff->next) - { - if (iff->module != pt->module) - continue; - - if (iff->type == exception_iface) - continue; - - prcode(fp, " sip%s%F%s", mname, iff->fqcname, srcSuffix); - } - } - - prcode(fp, "\nheaders = sipAPI%s.h", mname); - - for (iff = pt->ifacefiles; iff != NULL; iff = iff->next) - { - char *imname; - - imname = (iff->module == pt->module ? mname : iff->module->name); - - prcode(fp, " sip%s%F.h", imname, iff->fqcname); - } - - prcode(fp, "\n"); - - closeFile(fp); -} - - -/* - * Generate an expression in C++. - */ -void generateExpression(valueDef *vd, FILE *fp) -{ - while (vd != NULL) - { - if (vd->vunop != '\0') - prcode(fp,"%c",vd->vunop); - - switch (vd->vtype) - { - case qchar_value: - prcode(fp,"'%c'",vd->u.vqchar); - break; - - case string_value: - prcode(fp,"\"%s\"",vd->u.vstr); - break; - - case numeric_value: - prcode(fp,"%l",vd->u.vnum); - break; - - case real_value: - prcode(fp,"%g",vd->u.vreal); - break; - - case scoped_value: - if (prcode_xml) - prScopedName(fp, vd->u.vscp, "."); - else - prcode(fp, "%S", vd->u.vscp); - - break; - - case fcall_value: - generateSimpleFunctionCall(vd->u.fcd,fp); - break; - } - - if (vd->vbinop != '\0') - prcode(fp," %c ",vd->vbinop); - - vd = vd->next; - } -} - - -/* - * Generate the C++ internal module API header file. - */ -static void generateInternalAPIHeader(sipSpec *pt,char *codeDir,stringList *xsl) -{ - char *hfile, *mname = pt->module->name; - int noIntro; - FILE *fp; - nameDef *nd; - moduleDef *mod; - moduleListDef *mld; - - hfile = concat(codeDir,"/sipAPI",mname,".h",NULL); - fp = createFile(pt,hfile,"Internal module API header file."); - - /* Include files. */ - - prcode(fp, -"\n" -"#ifndef _%sAPI_H\n" -"#define _%sAPI_H\n" -"\n" -"\n" -"#include \n" - ,mname - ,mname); - - if (optRegisterTypes(pt)) - prcode(fp, -"\n" -"#include \n" - ); - - /* Define the enabled features. */ - noIntro = TRUE; - - for (mod = pt->modules; mod != NULL; mod = mod->next) - { - qualDef *qd; - - for (qd = mod->qualifiers; qd != NULL; qd = qd->next) - if (qd->qtype == feature_qualifier && !excludedFeature(xsl,qd)) - { - if (noIntro) - { - prcode(fp, -"\n" -"\n" -"/* These are the features that are enabled. */\n" - ); - - noIntro = FALSE; - } - - prcode(fp, -"#define SIP_FEATURE_%s\n" - ,qd->name); - } - } - - generateCppCodeBlock(pt->exphdrcode,fp); - generateCppCodeBlock(pt->hdrcode,fp); - - /* Shortcuts that hide the messy detail of the APIs. */ - noIntro = TRUE; - - for (nd = pt->namecache; nd != NULL; nd = nd->next) - { - if (!isClassName(nd)) - continue; - - if (noIntro) - { - prcode(fp, -"\n" -"\n" -"/*\n" -" * Convenient names to refer to the names of classes defined in this module.\n" -" * These are part of the public API.\n" -" */\n" -"\n" - ); - - noIntro = FALSE; - } - - prcode(fp, -"#define sipName_%s %N\n" - ,nd->text,nd); - } - - prcode(fp, -"\n" -"\n" -"/* Convenient names to call the SIP API. */\n" -"#define sipConvertFromSliceObject(o,len,start,stop,step,slen) PySlice_GetIndicesEx((PySliceObject *)(o),(len),(start),(stop),(step),(slen))\n" -"#define sipIsSubClassInstance(o,wt) PyObject_TypeCheck((o),(PyTypeObject *)(wt))\n" -"\n" -"#define sipMapStringToClass sipAPI_%s->api_map_string_to_class\n" -"#define sipMapIntToClass sipAPI_%s->api_map_int_to_class\n" -"#define sipMalloc sipAPI_%s->api_malloc\n" -"#define sipFree sipAPI_%s->api_free\n" -"#define sipBuildResult sipAPI_%s->api_build_result\n" -"#define sipCallMethod sipAPI_%s->api_call_method\n" -"#define sipParseResult sipAPI_%s->api_parse_result\n" -"#define sipParseArgs sipAPI_%s->api_parse_args\n" -"#define sipParsePair sipAPI_%s->api_parse_pair\n" -"#define sipCommonCtor sipAPI_%s->api_common_ctor\n" -"#define sipCommonDtor sipAPI_%s->api_common_dtor\n" -"#define sipConvertFromSequenceIndex sipAPI_%s->api_convert_from_sequence_index\n" -"#define sipConvertFromVoidPtr sipAPI_%s->api_convert_from_void_ptr\n" -"#define sipConvertToCpp sipAPI_%s->api_convert_to_cpp\n" -"#define sipConvertToVoidPtr sipAPI_%s->api_convert_to_void_ptr\n" -"#define sipNoFunction sipAPI_%s->api_no_function\n" -"#define sipNoMethod sipAPI_%s->api_no_method\n" -"#define sipAbstractMethod sipAPI_%s->api_abstract_method\n" -"#define sipBadClass sipAPI_%s->api_bad_class\n" -"#define sipBadSetType sipAPI_%s->api_bad_set_type\n" -"#define sipBadCatcherResult sipAPI_%s->api_bad_catcher_result\n" -"#define sipBadOperatorArg sipAPI_%s->api_bad_operator_arg\n" -"#define sipTrace sipAPI_%s->api_trace\n" -"#define sipTransfer sipAPI_%s->api_transfer\n" -"#define sipTransferBack sipAPI_%s->api_transfer_back\n" -"#define sipTransferTo sipAPI_%s->api_transfer_to\n" -"#define sipWrapper_Check sipAPI_%s->api_wrapper_check\n" -"#define sipGetWrapper sipAPI_%s->api_get_wrapper\n" -"#define sipGetCppPtr sipAPI_%s->api_get_cpp_ptr\n" -"#define sipGetComplexCppPtr sipAPI_%s->api_get_complex_cpp_ptr\n" -"#define sipIsPyMethod sipAPI_%s->api_is_py_method\n" -"#define sipCallHook sipAPI_%s->api_call_hook\n" -"#define sipStartThread sipAPI_%s->api_start_thread\n" -"#define sipEndThread sipAPI_%s->api_end_thread\n" -"#define sipEmitSignal sipAPI_%s->api_emit_signal\n" -"#define sipConnectRx sipAPI_%s->api_connect_rx\n" -"#define sipDisconnectRx sipAPI_%s->api_disconnect_rx\n" -"#define sipGetSender sipAPI_%s->api_get_sender\n" -"#define sipRaiseUnknownException sipAPI_%s->api_raise_unknown_exception\n" -"#define sipRaiseClassException sipAPI_%s->api_raise_class_exception\n" -"#define sipRaiseSubClassException sipAPI_%s->api_raise_sub_class_exception\n" -"#define sipBadLengthForSlice sipAPI_%s->api_bad_length_for_slice\n" -"#define sipClassName sipAPI_%s->api_class_name\n" -"#define sipAddClassInstance sipAPI_%s->api_add_class_instance\n" -"#define sipAddMappedTypeInstance sipAPI_%s->api_add_mapped_type_instance\n" -"#define sipAddEnumInstance sipAPI_%s->api_add_enum_instance\n" -"#define sipConvertFromNamedEnum sipAPI_%s->api_convert_from_named_enum\n" -"#define sipGetAddress sipAPI_%s->api_get_address\n" -"#define sipFreeConnection sipAPI_%s->api_free_connection\n" -"#define sipEmitToSlot sipAPI_%s->api_emit_to_slot\n" -"#define sipSameConnection sipAPI_%s->api_same_connection\n" -"#define sipPySlotExtend sipAPI_%s->api_pyslot_extend\n" -"#define sipConvertRx sipAPI_%s->api_convert_rx\n" -"#define sipAddDelayedDtor sipAPI_%s->api_add_delayed_dtor\n" -"#define sipCanConvertToInstance sipAPI_%s->api_can_convert_to_instance\n" -"#define sipCanConvertToMappedType sipAPI_%s->api_can_convert_to_mapped_type\n" -"#define sipConvertToInstance sipAPI_%s->api_convert_to_instance\n" -"#define sipConvertToMappedType sipAPI_%s->api_convert_to_mapped_type\n" -"#define sipForceConvertToInstance sipAPI_%s->api_force_convert_to_instance\n" -"#define sipForceConvertToMappedType sipAPI_%s->api_force_convert_to_mapped_type\n" -"#define sipReleaseInstance sipAPI_%s->api_release_instance\n" -"#define sipReleaseMappedType sipAPI_%s->api_release_mapped_type\n" -"#define sipConvertFromInstance sipAPI_%s->api_convert_from_instance\n" -"#define sipConvertFromNewInstance sipAPI_%s->api_convert_from_new_instance\n" -"#define sipConvertFromMappedType sipAPI_%s->api_convert_from_mapped_type\n" -"#define sipGetState sipAPI_%s->api_get_state\n" -"#define sipFindMappedType sipAPI_%s->api_find_mapped_type\n" -"#define sipLong_AsUnsignedLong sipAPI_%s->api_long_as_unsigned_long\n" -"#define sipExportSymbol sipAPI_%s->api_export_symbol\n" -"#define sipImportSymbol sipAPI_%s->api_import_symbol\n" -"#define sipRegisterIntTypes sipAPI_%s->api_register_int_types\n" -"#define sipParseSignature sipAPI_%s->api_parse_signature\n" -"#define sipFindClass sipAPI_%s->api_find_class\n" -"#define sipFindNamedEnum sipAPI_%s->api_find_named_enum\n" -"#define sipString_AsChar sipAPI_%s->api_string_as_char\n" -"#define sipUnicode_AsWChar sipAPI_%s->api_unicode_as_wchar\n" -"#define sipUnicode_AsWString sipAPI_%s->api_unicode_as_wstring\n" - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname - ,mname); - - /* The name strings. */ - noIntro = TRUE; - - for (nd = pt->namecache; nd != NULL; nd = nd->next) - { - if (!isUsedName(nd)) - continue; - - if (noIntro) - { - prcode(fp, -"\n" -"\n" -"/* The strings used by this module. */\n" - ); - - noIntro = FALSE; - } - - prcode(fp, -"extern char %N[];\n" - ,nd); - } - - /* The unscoped enum macros. */ - generateEnumMacros(pt, NULL, fp); - - prcode(fp, -"\n" -"\n" -"/* The SIP API, this module's API and the APIs of any imported modules. */\n" -"extern const sipAPIDef *sipAPI_%s;\n" -"extern sipExportedModuleDef sipModuleAPI_%s;\n" - ,mname - ,mname,mname); - - for (mld = pt->module->allimports; mld != NULL; mld = mld->next) - prcode(fp, -"extern const sipExportedModuleDef *sipModuleAPI_%s_%s;\n" - ,mname,mld->module->name); - - if (optQ_OBJECT4(pt)) - prcode(fp, -"\n" -"typedef const TQMetaObject *(*sip_qt_metaobject_func)(sipWrapper *,sipWrapperType *,const TQMetaObject *);\n" -"extern sip_qt_metaobject_func sip_%s_qt_metaobject;\n" -"\n" -"typedef int (*sip_qt_metacall_func)(sipWrapper *,sipWrapperType *,TQMetaObject::Call,int,void **);\n" -"extern sip_qt_metacall_func sip_%s_qt_metacall;\n" - , mname - , mname); - - /* - * Note that we don't forward declare the virtual handlers. This is - * because we would need to #include everything needed for their - * argument types. - */ - - prcode(fp, -"\n" -"#endif\n" - ); - - closeFile(fp); - free(hfile); -} - - -/* - * Return the filename of a source code part on the heap. - */ -static char *makePartName(char *codeDir,char *mname,int part,char *srcSuffix) -{ - char buf[20]; - - sprintf(buf,"part%d",part); - - return concat(codeDir,"/sip",mname,buf,srcSuffix,NULL); -} - - -/* - * Generate the C/C++ code. - */ -static void generateCpp(sipSpec *pt, char *codeDir, char *srcSuffix, int *parts) -{ - char *cppfile, *mname = pt->module->name; - int noIntro, nrSccs = 0, files_in_part, max_per_part, this_part; - int is_inst_class, is_inst_voidp, is_inst_char, is_inst_string; - int is_inst_int, is_inst_long, is_inst_ulong, is_inst_longlong; - int is_inst_ulonglong, is_inst_double, is_inst_enum, nr_enummembers; - int hasexternal = FALSE, slot_extenders = FALSE, ctor_extenders = FALSE; - FILE *fp; - moduleListDef *mld; - classDef *cd; - memberDef *md; - ifaceFileDef *iff; - virtHandlerDef *vhd; - nameDef *nd; - exceptionDef *xd; - - /* Calculate the number of files in each part. */ - if (*parts) - { - int nr_files = 1; - - for (iff = pt->ifacefiles; iff != NULL; iff = iff->next) - if (iff->module == pt->module) - ++nr_files; - - max_per_part = (nr_files + *parts - 1) / *parts; - files_in_part = 1; - this_part = 0; - - cppfile = makePartName(codeDir,mname,0,srcSuffix); - } - else - cppfile = concat(codeDir,"/sip",mname,"cmodule",srcSuffix,NULL); - - fp = createCompilationUnit(pt, cppfile, "Module code."); - - prcode(fp, -"\n" -"#include \"sipAPI%s.h\"\n" -"\n" - ,mname); - - for (iff = pt->ifacefiles; iff != NULL; iff = iff->next) - if (iff->module == pt->module && iff->type != exception_iface) - prcode(fp, -"#include \"sip%s%F.h\"\n" - ,iff->module->name,iff->fqcname); - - generateUsedIncludes(pt->used, FALSE, fp); - - /* - * If there should be a Qt support API then generate stubs values for the - * optional parts. These should be undefined in %ModuleCode if a C++ - * implementation is provided. - */ - if (pt->qobjclass >= 0) - prcode(fp, -"\n" -"#define sipQtIsQtSignal 0\n" -"#define sipQtCreateUniversalSignalShortcut 0\n" -"#define sipQtCreateUniversalSignal 0\n" -"#define sipQtFindUniversalSignalShortcut 0\n" -"#define sipQtFindUniversalSignal 0\n" -"#define sipQtEmitSignalShortcut 0\n" -"#define sipQtEmitSignal 0\n" - ); - - /* Define the names. */ - noIntro = TRUE; - - for (nd = pt->namecache; nd != NULL; nd = nd->next) - { - if (!isUsedName(nd)) - continue; - - if (noIntro) - { - prcode(fp, -"\n" -"\n" -"/* Define the strings used by this module. */\n" - ); - - noIntro = FALSE; - } - - prcode(fp, -"char %N[] = \"%s\";\n" - ,nd,nd->text); - } - - /* Generate the C++ code blocks. */ - generateCppCodeBlock(pt->cppcode,fp); - - /* Generate any virtual handler declarations. */ - for (vhd = pt->module->virthandlers; vhd != NULL; vhd = vhd->next) - if (!isDuplicateVH(vhd)) - generateVirtualHandler(pt,vhd,fp); - - /* Generate the global functions. */ - for (md = pt->othfuncs; md != NULL; md = md->next) - { - if (md->module != pt->module) - continue; - - if (md->slot == no_slot) - generateOrdinaryFunction(pt,NULL,md,fp); - else - { - overDef *od; - - /* - * Make sure that there is still an overload and we - * haven't moved them all to classes. - */ - for (od = pt->overs; od != NULL; od = od->next) - if (od->common == md) - { - generateSlot(pt, NULL, NULL, md, fp); - slot_extenders = TRUE; - break; - } - } - } - - /* Generate any class specific ctor or slot extenders. */ - for (cd = pt->proxies; cd != NULL; cd = cd->next) - { - if (cd->ctors != NULL) - { - generateTypeInit(pt, cd, fp); - ctor_extenders = TRUE; - } - - for (md = cd->members; md != NULL; md = md->next) - { - generateSlot(pt, cd, NULL, md, fp); - slot_extenders = TRUE; - } - } - - /* Generate any ctor extender table. */ - if (ctor_extenders) - { - prcode(fp, -"\n" -"static sipInitExtenderDef initExtenders[] = {\n" - ); - - for (cd = pt->proxies; cd != NULL; cd = cd->next) - if (cd->ctors != NULL) - { - prcode(fp, -" {init_%C, ", classFQCName(cd)); - - generateEncodedClass(pt, cd, 0, fp); - - prcode(fp, ", NULL},\n" - ); - } - - prcode(fp, -" {NULL, {0, 0, 0}, NULL}\n" -"};\n" - ); - } - - /* Generate any slot extender table. */ - if (slot_extenders) - { - prcode(fp, -"\n" -"static sipPySlotExtenderDef slotExtenders[] = {\n" - ); - - for (md = pt->othfuncs; md != NULL; md = md->next) - { - overDef *od; - - if (md->module != pt->module) - continue; - - if (md->slot == no_slot) - continue; - - for (od = pt->overs; od != NULL; od = od->next) - if (od->common == md) - { - prcode(fp, -" {(void *)slot_%s, %s, {0, 0, 0}},\n" - , md->pyname->text, slotName(md->slot)); - - break; - } - } - - for (cd = pt->proxies; cd != NULL; cd = cd->next) - for (md = cd->members; md != NULL; md = md->next) - { - prcode(fp, -" {(void *)slot_%C_%s, %s, ", classFQCName(cd), md->pyname->text, slotName(md->slot)); - - generateEncodedClass(pt, cd, 0, fp); - - prcode(fp, "},\n" - ); - } - - prcode(fp, -" {NULL, (sipPySlotType)0, {0, 0, 0}}\n" -"};\n" - ); - } - - /* Generate the global access functions. */ - generateAccessFunctions(pt,NULL,fp); - - /* Generate the module data structures. */ - if (pt->module->nrclasses > 0) - { - nrSccs = generateSubClassConvertors(pt, fp); - - prcode(fp, -"\n" -"\n" -"/*\n" -" * This defines each class in this module. The values are replaced by the\n" -" * proper Python types during the export process.\n" -" */\n" -"static sipWrapperType *typesTable[] = {\n" - ); - - generateClassTableEntries(pt, &pt->module->root, fp); - - prcode(fp, -"};\n" - ); - - /* Generate the external classes table if needed. */ - for (cd = pt->classes; cd != NULL; cd = cd->next) - { - if (!isExternal(cd)) - continue; - - if (cd->iff->module != pt->module) - continue; - - if (!hasexternal) - { - prcode(fp, -"\n" -"\n" -"/* This defines each external type declared in this module, */\n" -"static sipExternalTypeDef externalTypesTable[] = {\n" - ); - - hasexternal = TRUE; - } - - prcode(fp, -" {%d, \"", cd->classnr); - prScopedName(fp, classFQCName(cd), "."); - prcode(fp,"\"},\n" - ); - } - - if (hasexternal) - prcode(fp, -" {-1, NULL}\n" -"};\n" - ); - } - - if (pt->module->nrmappedtypes > 0) - { - mappedTypeDef *mtd; - argDef type; - - type.argflags = 0; - type.name = NULL; - type.nrderefs = 0; - type.defval = NULL; - - prcode(fp, -"\n" -"\n" -"/* This defines each mapped type in this module. */\n" -"static sipMappedType *mappedTypesTable[] = {\n" - ); - - for (mtd = pt->mappedtypes; mtd != NULL; mtd = mtd->next) - { - if (mtd->iff->module != pt->module) - continue; - - type.atype = mapped_type; - type.u.mtd = mtd; - - prcode(fp, -" &sipMappedTypeDef_%T,\n" - ,&type); - } - - prcode(fp, -" 0\n" -"};\n" - ); - } - - if (pt->module->nrenums > 0) - { - enumDef *ed; - - prcode(fp, -"\n" -"\n" -"/* Define each named enum in this module. */\n" - ); - - /* Generate any slot tables. */ - for (ed = pt->enums; ed != NULL; ed = ed->next) - { - memberDef *slot; - - if (ed->module != pt->module || ed->fqcname == NULL) - continue; - - if (ed->slots == NULL) - continue; - - for (slot = ed->slots; slot != NULL; slot = slot->next) - generateSlot(pt, NULL, ed, slot, fp); - - prcode(fp, -"\n" -"static sipPySlotDef slots_%C[] = {\n" - , ed->fqcname); - - for (slot = ed->slots; slot != NULL; slot = slot->next) - { - const char *stype; - - if ((stype = slotName(slot->slot)) != NULL) - prcode(fp, -" {(void *)slot_%C_%s, %s},\n" - , ed->fqcname, slot->pyname->text, stype); - } - - prcode(fp, -" {0, (sipPySlotType)0}\n" -"};\n" -"\n" - ); - } - - prcode(fp, -"static sipEnumDef enumTypesTable[] = {\n" - ); - - for (ed = pt->enums; ed != NULL; ed = ed->next) - { - char *emname; - - if (ed->module != pt->module || ed->fqcname == NULL) - continue; - - if (ed->ecd == NULL) - emname = mname; - else if (ed->ecd->real == NULL) - emname = ed->module->name; - else - emname = ed->ecd->real->iff->module->name; - - prcode(fp, -" {\"%s.%P\", ", emname, ed->ecd, ed->pyname->text); - - if (isRenamedEnum(ed) || (ed->ecd != NULL && isRenamedClass(ed->ecd))) - prcode(fp, "\"%S\", ", ed->fqcname); - else - prcode(fp, "NULL, "); - - if (ed->ecd == NULL) - prcode(fp, "-1"); - else - prcode(fp, "%d", ed->ecd->classnr); - - if (ed->slots != NULL) - prcode(fp, ", slots_%C", ed->fqcname); - else - prcode(fp, ", NULL"); - - prcode(fp, "},\n" - ); - } - - prcode(fp, -"};\n" - ); - - nr_enummembers = generateEnumMemberTable(pt,NULL,fp); - } - else - nr_enummembers = 0; - - if (pt->module->nrtypedefs > 0) - { - typedefDef *td; - - prcode(fp, -"\n" -"\n" -"/*\n" -" * These define each typedef in this module. They are only needed in case\n" -" * they are used as arguments to Qt signals.\n" -" */\n" -"\n" -"static sipTypedefDef typedefsTable[] = {\n" - ); - - for (td = pt->typedefs; td != NULL; td = td->next) - { - char *tdmname, *sat; - scopedNameDef *fqname; - - if (td->module != pt->module) - continue; - - fqname = NULL; - tdmname = NULL; - sat = "unknown"; - - switch (td->type.atype) - { - case string_type: - sat = (td->type.nrderefs == 0 ? "char" : "string"); - break; - - case sstring_type: - sat = (td->type.nrderefs == 0 ? "schar" : "sstring"); - break; - - case ustring_type: - sat = (td->type.nrderefs == 0 ? "uchar" : "ustring"); - break; - - case wstring_type: - sat = (td->type.nrderefs == 0 ? "wchar" : "wstring"); - break; - - case short_type: - sat = "short"; - break; - - case ushort_type: - sat = "ushort"; - break; - - case cint_type: - case int_type: - sat = "int"; - break; - - case uint_type: - sat = "uint"; - break; - - case long_type: - sat = "long"; - break; - - case ulong_type: - sat = "ulong"; - break; - - case longlong_type: - sat = "longlong"; - break; - - case ulonglong_type: - sat = "ulonglong"; - break; - - case cfloat_type: - case float_type: - sat = "float"; - break; - - case cdouble_type: - case double_type: - sat = "double"; - break; - - case bool_type: - case cbool_type: - sat = "bool"; - break; - - case void_type: - if (td->type.nrderefs != 0) - sat = "void"; - break; - - case enum_type: - if ((fqname = td->type.u.ed->fqcname) != NULL) - { - sat = "enum"; - - if (td->type.u.ed->module != pt->module) - tdmname = td->type.u.ed->module->fullname; - } - break; - - case class_type: - sat = "class"; - fqname = classFQCName(td->type.u.cd); - - if (td->type.u.cd->iff->module != pt->module) - tdmname = td->type.u.cd->iff->module->fullname; - break; - - case mapped_type: - sat = "mtype"; - fqname = td->type.u.mtd->iff->fqcname; - - if (td->type.u.mtd->iff->module != pt->module) - tdmname = td->type.u.mtd->iff->module->fullname; - break; - } - - prcode(fp, -" {\"%S\", %s_sat", td->fqname, sat); - - if (fqname != NULL) - prcode(fp, ", \"%S\"", fqname); - else - prcode(fp, ", NULL"); - - if (tdmname != NULL) - prcode(fp, ", \"%s\"", tdmname); - else - prcode(fp, ", NULL"); - - prcode(fp, "},\n" - ); - } - - prcode(fp, -" {NULL, unknown_sat, NULL, NULL}\n" -"};\n" - ); - } - - if (pt->module->nrvirthandlers > 0) - { - prcode(fp, -"\n" -"\n" -"/*\n" -" * This defines the virtual handlers that this module implements and can be\n" -" * used by other modules.\n" -" */\n" -"static sipVirtHandlerFunc virtHandlersTable[] = {\n" - ); - - for (vhd = pt->module->virthandlers; vhd != NULL; vhd = vhd->next) - if (!isDuplicateVH(vhd)) - prcode(fp, -" (sipVirtHandlerFunc)sipVH_%s_%d,\n" - ,mname,vhd->virthandlernr); - - prcode(fp, -"};\n" - ); - } - - if (pt->module->allimports != NULL) - { - prcode(fp, -"\n" -"\n" -"/* This defines the modules that this module needs to import. */\n" -"static sipImportedModuleDef importsTable[] = {\n" - ); - - for (mld = pt->module->allimports; mld != NULL; mld = mld->next) - prcode(fp, -" {\"%s\", %d, NULL},\n" - , mld->module->fullname, mld->module->version); - - prcode(fp, -" {NULL, -1, NULL}\n" -"};\n" - ); - } - - if (nrSccs > 0) - { - prcode(fp, -"\n" -"\n" -"/* This defines the class sub-convertors that this module defines. */\n" -"static sipSubClassConvertorDef convertorsTable[] = {\n" - ); - - for (cd = pt->classes; cd != NULL; cd = cd->next) - { - if (cd->iff->module != pt->module) - continue; - - if (cd->convtosubcode == NULL) - continue; - - prcode(fp, -" {sipSubClass_%C, ",classFQCName(cd)); - - generateEncodedClass(pt,cd->subbase,0,fp); - - prcode(fp,", NULL},\n"); - } - - prcode(fp, -" {NULL, {0, 0, 0}, NULL}\n" -"};\n" - ); - } - - /* Generate any license information. */ - if (pt->module->license != NULL) - { - licenseDef *ld = pt->module->license; - - prcode(fp, -"\n" -"\n" -"/* Define the module's license. */\n" -"static sipLicenseDef module_license = {\n" - ); - - prcode(fp, -" \"%s\",\n" - ,ld->type); - - if (ld->licensee != NULL) - prcode(fp, -" \"%s\",\n" - ,ld->licensee); - else - prcode(fp, -" NULL,\n" - ); - - if (ld->timestamp != NULL) - prcode(fp, -" \"%s\",\n" - ,ld->timestamp); - else - prcode(fp, -" NULL,\n" - ); - - if (ld->sig != NULL) - prcode(fp, -" \"%s\"\n" - ,ld->sig); - else - prcode(fp, -" NULL\n" - ); - - prcode(fp, -"};\n" - ); - } - - /* Generate each instance table. */ - is_inst_class = generateClasses(pt,NULL,fp); - is_inst_voidp = generateVoidPointers(pt,NULL,fp); - is_inst_char = generateChars(pt,NULL,fp); - is_inst_string = generateStrings(pt,NULL,fp); - is_inst_int = generateInts(pt,NULL,fp); - is_inst_long = generateLongs(pt,NULL,fp); - is_inst_ulong = generateUnsignedLongs(pt,NULL,fp); - is_inst_longlong = generateLongLongs(pt,NULL,fp); - is_inst_ulonglong = generateUnsignedLongLongs(pt,NULL,fp); - is_inst_double = generateDoubles(pt,NULL,fp); - is_inst_enum = generateEnums(pt,NULL,fp); - - /* Generate any exceptions table. */ - if (pt->module->nrexceptions > 0) - prcode(fp, -"\n" -"\n" -"static PyObject *exceptionsTable[%d];\n" - ,pt->module->nrexceptions); - - /* Generate any Qt support API. */ - if (pt->qobjclass >= 0) - prcode(fp, -"\n" -"\n" -"/* This defines the Qt support API. */\n" -"\n" -"static sipQtAPI qtAPI = {\n" -" &typesTable[%d],\n" -" sipQtIsQtSignal,\n" -" sipQtCreateUniversalSignalShortcut,\n" -" sipQtCreateUniversalSignal,\n" -" sipQtFindUniversalSignalShortcut,\n" -" sipQtFindUniversalSignal,\n" -" sipQtEmitSignalShortcut,\n" -" sipQtEmitSignal,\n" -" sipQtCreateUniversalSlot,\n" -" sipQtDestroyUniversalSlot,\n" -" sipQtFindSlot,\n" -" sipQtConnect,\n" -" sipQtDisconnect,\n" -" sipQtSignalsBlocked,\n" -" sipQtGetSender,\n" -" sipQtForgetSender,\n" -" sipQtSameSignalSlotName,\n" -" sipQtFindConnection\n" -"};\n" - ,pt->qobjclass); - - prcode(fp, -"\n" -"\n" -"/* This defines this module. */\n" -"sipExportedModuleDef sipModuleAPI_%s = {\n" -" NULL,\n" -" SIP_API_MINOR_NR,\n" -" \"%s\",\n" -" NULL,\n" -" %d,\n" -" %s,\n" -" %s,\n" -" %d,\n" -" %s,\n" -" %s,\n" -" %s,\n" -" %d,\n" -" NULL,\n" -" %s,\n" -" %d,\n" -" %s,\n" -" %s,\n" -" %s,\n" -" %s,\n" -" {%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s},\n" -" %s,\n" -" %s,\n" -" %s,\n" -" %s,\n" -" %s,\n" -" NULL\n" -"};\n" - , mname - , pt->module->fullname - , pt->module->version - , pt->module->allimports != NULL ? "importsTable" : "NULL" - , pt->qobjclass >= 0 ? "&qtAPI" : "NULL" - , pt->module->nrclasses - , pt->module->nrclasses > 0 ? "typesTable" : "NULL" - , hasexternal ? "externalTypesTable" : "NULL" - , pt->module->nrmappedtypes > 0 ? "mappedTypesTable" : "NULL" - , pt->module->nrenums - , pt->module->nrenums > 0 ? "enumTypesTable" : "NULL" - , nr_enummembers - , nr_enummembers > 0 ? "enummembers" : "NULL" - , pt->module->nrtypedefs > 0 ? "typedefsTable" : "NULL" - , pt->module->nrvirthandlers > 0 ? "virtHandlersTable" : "NULL" - , nrSccs > 0 ? "convertorsTable" : "NULL" - , is_inst_class ? "classInstances" : "NULL" - , is_inst_voidp ? "voidPtrInstances" : "NULL" - , is_inst_char ? "charInstances" : "NULL" - , is_inst_string ? "stringInstances" : "NULL" - , is_inst_int ? "intInstances" : "NULL" - , is_inst_long ? "longInstances" : "NULL" - , is_inst_ulong ? "unsignedLongInstances" : "NULL" - , is_inst_longlong ? "longLongInstances" : "NULL" - , is_inst_ulonglong ? "unsignedLongLongInstances" : "NULL" - , is_inst_double ? "doubleInstances" : "NULL" - , is_inst_enum ? "enumInstances" : "NULL" - , pt->module->license != NULL ? "&module_license" : "NULL" - , pt->module->nrexceptions > 0 ? "exceptionsTable" : "NULL" - , slot_extenders ? "slotExtenders" : "NULL" - , ctor_extenders ? "initExtenders" : "NULL" - , hasDelayedDtors(pt->module) ? "sipDelayedDtors" : "NULL"); - - /* Generate the storage for the external API pointers. */ - prcode(fp, -"\n" -"\n" -"/* The SIP API and the APIs of any imported modules. */\n" -"const sipAPIDef *sipAPI_%s;\n" - ,mname); - - for (mld = pt->module->allimports; mld != NULL; mld = mld->next) - prcode(fp, -"const sipExportedModuleDef *sipModuleAPI_%s_%s;\n" - ,mname,mld->module->name); - - if (optQ_OBJECT4(pt)) - prcode(fp, -"\n" -"sip_qt_metaobject_func sip_%s_qt_metaobject;\n" -"sip_qt_metacall_func sip_%s_qt_metacall;\n" - , mname - , mname); - - /* Generate the Python module initialisation function. */ - prcode(fp, -"\n" -"\n" -"/* The Python module initialisation function. */\n" -"#if defined(SIP_STATIC_MODULE)\n" -"%svoid init%s()\n" -"#else\n" -"PyMODINIT_FUNC init%s()\n" -"#endif\n" -"{\n" -" static PyMethodDef sip_methods[] = {\n" - ,(generating_c ? "" : "extern \"C\" "), mname - ,mname); - - /* Generate the global functions. */ - - for (md = pt->othfuncs; md != NULL; md = md->next) - if (md->module == pt->module && md->slot == no_slot) - prcode(fp, -" {%N, func_%s, METH_VARARGS, NULL},\n" - ,md->pyname,md->pyname->text); - - prcode(fp, -" {0, 0, 0, 0}\n" -" };\n" -"\n" -" PyObject *sipModule, *sipModuleDict, *sip_sipmod, *sip_capiobj;\n" -"\n" - ); - - /* Generate the pre-initialisation code. */ - generateCppCodeBlock(pt->preinitcode,fp); - - prcode(fp, -" /* Initialise the module and get it's dictionary. */\n" -" sipModule = Py_InitModule((char *)sipModuleAPI_%s.em_name,sip_methods);\n" -" sipModuleDict = PyModule_GetDict(sipModule);\n" -"\n" -" /* Import the SIP module and get it's API. */\n" -" sip_sipmod = PyImport_ImportModule((char *)\"sip\");\n" -"\n" -" if (sip_sipmod == NULL)\n" -" return;\n" -"\n" -" sip_capiobj = PyDict_GetItemString(PyModule_GetDict(sip_sipmod),\"_C_API\");\n" -"\n" -" if (sip_capiobj == NULL || !PyCObject_Check(sip_capiobj))\n" -" return;\n" -"\n" - ,mname); - - if (generating_c) - prcode(fp, -" sipAPI_%s = (const sipAPIDef *)PyCObject_AsVoidPtr(sip_capiobj);\n" - ,mname); - else - prcode(fp, -" sipAPI_%s = reinterpret_cast(PyCObject_AsVoidPtr(sip_capiobj));\n" - ,mname); - - prcode(fp, -"\n" -" /* Export the module and publish it's API. */\n" -" if (sipAPI_%s->api_export_module(&sipModuleAPI_%s,SIP_API_MAJOR_NR,SIP_API_MINOR_NR,sipModuleDict) < 0)\n" -" return;\n" - ,mname - ,mname); - - noIntro = TRUE; - - for (mld = pt->module->allimports; mld != NULL; mld = mld->next) - { - if (noIntro) - { - prcode(fp, -"\n" -" /* Get the APIs of the modules that this one is dependent on. */\n" - ); - - noIntro = FALSE; - } - - prcode(fp, -" sipModuleAPI_%s_%s = sipModuleAPI_%s.em_imports[%d].im_module;\n" - ,mname,mld->module->name,mname,mld->module->modulenr); - } - - generateClassesInline(pt,fp); - generateEnumsInline(pt, fp); - - /* Create any exceptions. */ - for (xd = pt->exceptions; xd != NULL; xd = xd->next) - { - if (xd->iff->module != pt->module) - continue; - - if (xd->iff->type != exception_iface) - continue; - - if (xd->exceptionnr < 0) - continue; - - prcode(fp, -"\n" -" if ((exceptionsTable[%d] = PyErr_NewException((char *)\"%s.%s\",", xd->exceptionnr, xd->iff->module->name, xd->pyname); - - if (xd->bibase != NULL) - prcode(fp, "PyExc_%s", xd->bibase); - else if (xd->base->iff->module == pt->module) - prcode(fp, "exceptionsTable[%d]", xd->base->exceptionnr); - else - prcode(fp, "sipException_%C", xd->base->iff->fqcname); - - prcode(fp, ",NULL)) == NULL || PyDict_SetItemString(sipModuleDict,\"%s\",exceptionsTable[%d]) < 0)\n" -" return;\n" - , xd->pyname, xd->exceptionnr); - } - - /* Generate any Qt metatype registration calls. */ - if (optRegisterTypes(pt)) - for (cd = pt->classes; cd != NULL; cd = cd->next) - { - if (cd->iff->module != pt->module) - continue; - - generateRegisterMetaType(cd, fp); - } - - /* Generate the post-initialisation code. */ - generateCppCodeBlock(pt->postinitcode,fp); - - /* - * This has to be done after the post-initialisation code in case this - * module is exporting the symbol. - */ - if (optQ_OBJECT4(pt)) - prcode(fp, -"\n" -" sip_%s_qt_metaobject = (sip_qt_metaobject_func)sipImportSymbol(\"qtcore_qt_metaobject\");\n" -" sip_%s_qt_metacall = (sip_qt_metacall_func)sipImportSymbol(\"qtcore_qt_metacall\");\n" - , mname - , mname); - - prcode(fp, -"}\n" - ); - - /* Generate the interface source and header files. */ - for (iff = pt->ifacefiles; iff != NULL; iff = iff->next) - { - if (iff->module == pt->module && iff->type != exception_iface) - { - if (*parts && files_in_part++ == max_per_part) - { - /* Close the old part. */ - closeFile(fp); - free(cppfile); - - /* Create a new one. */ - files_in_part = 1; - ++this_part; - - cppfile = makePartName(codeDir,mname,this_part,srcSuffix); - fp = createCompilationUnit(pt, cppfile, "Module code."); - } - - generateIfaceCpp(pt,iff,codeDir,srcSuffix,(*parts ? fp : NULL)); - } - - generateIfaceHeader(pt,iff,codeDir); - } - - closeFile(fp); - free(cppfile); - - /* How many parts we actually generated. */ - if (*parts) - *parts = this_part + 1; -} - - -/* - * Generate all the sub-class convertors for a module. - */ -static int generateSubClassConvertors(sipSpec *pt, FILE *fp) -{ - int nrSccs = 0; - classDef *cd; - - for (cd = pt->classes; cd != NULL; cd = cd->next) - { - if (cd->iff->module != pt->module) - continue; - - if (cd->convtosubcode == NULL) - continue; - - prcode(fp, -"\n" -"\n" -"/* Convert to a sub-class if possible. */\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static sipWrapperType *sipSubClass_%C(void **);}\n" - , classFQCName(cd)); - - prcode(fp, -"static sipWrapperType *sipSubClass_%C(void **sipCppRet)\n" -"{\n" -" %S *sipCpp = reinterpret_cast<%S *>(*sipCppRet);\n" -" sipWrapperType *sipClass;\n" -"\n" - , classFQCName(cd) - , classFQCName(cd->subbase), classFQCName(cd->subbase)); - - generateCppCodeBlock(cd->convtosubcode, fp); - - prcode(fp, -"\n" -" return sipClass;\n" -"}\n" - ); - - ++nrSccs; - } - - return nrSccs; -} - - -/* - * Generate an entry for a class in the classes table and all its children. - */ -static void generateClassTableEntries(sipSpec *pt, nodeDef *nd, FILE *fp) -{ - nodeDef *cnd; - - /* Generate the entry if it's not the root. */ - if (nd->cd != NULL) - if (isExternal(nd->cd)) - prcode(fp, -" 0,\n" - ); - else - prcode(fp, -" (sipWrapperType *)(void *)&sipType_%s_%C,\n" - , pt->module->name, classFQCName(nd->cd)); - - /* Generate all it's children. */ - for (cnd = nd->child; cnd != NULL; cnd = cnd->next) - generateClassTableEntries(pt, cnd, fp); -} - - -/* - * Generate the structure representing an encoded class. - */ -static void generateEncodedClass(sipSpec *pt,classDef *cd,int last,FILE *fp) -{ - moduleDef *mod = cd->iff->module; - - prcode(fp,"{%u, ",cd->classnr); - - if (mod == pt->module) - prcode(fp,"255"); - else - prcode(fp,"%u",mod->modulenr); - - prcode(fp,", %u}",last); -} - - -/* - * Generate an ordinary function (ie. not a class method). - */ -static void generateOrdinaryFunction(sipSpec *pt,classDef *cd,memberDef *md, - FILE *fp) -{ - overDef *od; - - prcode(fp, -"\n" -"\n" - ); - - if (cd != NULL) - { - if (!generating_c) - prcode(fp, -"extern \"C\" {static PyObject *meth_%C_%s(PyObject *,PyObject *);}\n" - , classFQCName(cd), md->pyname->text); - - prcode(fp, -"static PyObject *meth_%C_%s(PyObject *,PyObject *sipArgs)\n" - ,classFQCName(cd),md->pyname->text); - - od = cd->overs; - } - else - { - if (!generating_c) - prcode(fp, -"extern \"C\" {static PyObject *func_%s(PyObject *,PyObject *);}\n" - , md->pyname->text); - - prcode(fp, -"static PyObject *func_%s(PyObject *%s,PyObject *sipArgs)\n" - ,md->pyname->text,(generating_c ? "sipSelf" : "")); - - od = pt->overs; - } - - prcode(fp, -"{\n" -" int sipArgsParsed = 0;\n" - ); - - while (od != NULL) - { - if (od->common == md) - generateFunctionBody(pt,od,cd,cd,TRUE,fp); - - od = od->next; - } - - prcode(fp, -"\n" -" /* Raise an exception if the arguments couldn't be parsed. */\n" -" sipNoFunction(sipArgsParsed,%N);\n" -"\n" -" return NULL;\n" -"}\n" - ,md->pyname); -} - - -/* - * Generate the table of enum members for a scope. Return the number of them. - */ -static int generateEnumMemberTable(sipSpec *pt,classDef *cd,FILE *fp) -{ - int i, nr_members; - enumDef *ed; - enumMemberDef **etab, **et; - - /* First we count how many. */ - - nr_members = 0; - - for (ed = pt->enums; ed != NULL; ed = ed->next) - { - enumMemberDef *emd; - - if (ed->ecd != cd || ed->module != pt->module) - continue; - - if (cd == NULL && ed->fqcname == NULL) - continue; - - for (emd = ed->members; emd != NULL; emd = emd->next) - ++nr_members; - } - - if (nr_members == 0) - return 0; - - /* Create a table so they can be sorted. */ - - etab = sipMalloc(sizeof (enumMemberDef *) * nr_members); - - et = etab; - - for (ed = pt->enums; ed != NULL; ed = ed->next) - { - enumMemberDef *emd; - - if (ed->ecd != cd || ed->module != pt->module) - continue; - - if (cd == NULL && ed->fqcname == NULL) - continue; - - for (emd = ed->members; emd != NULL; emd = emd->next) - *et++ = emd; - } - - qsort(etab,nr_members,sizeof (enumMemberDef *),compareEnumMembers); - - /* Now generate the table. */ - - if (cd != NULL) - prcode(fp, -"\n" -"static sipEnumMemberDef enummembers_%C[] = {\n" - ,classFQCName(cd)); - else - prcode(fp, -"\n" -"/* These are the enum members of all global enums. */\n" -"static sipEnumMemberDef enummembers[] = {\n" - ); - - for (i = 0; i < nr_members; ++i) - { - enumMemberDef *emd; - - emd = etab[i]; - - prcode(fp, -" {%N, ",emd->pyname); - - if (cd != NULL) - { - if (isProtectedEnum(emd->ed)) - prcode(fp,"sip"); - - prcode(fp,"%S::%s",classFQCName(cd),emd->cname); - } - else - prcode(fp,"%s" - ,emd->cname); - - prcode(fp, ", %d},\n", emd->ed->enumnr); - } - - prcode(fp, -"};\n" - ); - - return nr_members; -} - - -/* - * The qsort helper to compare two enumMemberDef structures based on the name - * of the enum member. - */ - -static int compareEnumMembers(const void *m1,const void *m2) -{ - return strcmp((*(enumMemberDef **)m1)->pyname->text, - (*(enumMemberDef **)m2)->pyname->text); -} - - -/* - * Generate the access functions for the variables. - */ -static void generateAccessFunctions(sipSpec *pt,classDef *cd,FILE *fp) -{ - varDef *vd; - - for (vd = pt->vars; vd != NULL; vd = vd->next) - { - if (vd->accessfunc == NULL) - continue; - - if (vd->ecd != cd || vd->module != pt->module) - continue; - - prcode(fp, -"\n" -"\n" -"/* Access function. */\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static void *access_%C();}\n" - , vd->fqcname); - - prcode(fp, -"static void *access_%C()\n" -"{\n" - ,vd->fqcname); - - generateCppCodeBlock(vd->accessfunc,fp); - - prcode(fp, -"}\n" - ); - } -} - - -/* - * Generate the inline code to add a set of enum instances to a dictionary. - */ -static void generateEnumsInline(sipSpec *pt, FILE *fp) -{ - int noIntro; - varDef *vd; - - noIntro = TRUE; - - for (vd = pt->vars; vd != NULL; vd = vd->next) - { - if (vd->module != pt->module) - continue; - - if (vd->type.atype != enum_type) - continue; - - if (needsHandler(vd)) - continue; - - /* Skip enums that don't need inline code. */ - if (generating_c || vd->accessfunc != NULL || vd->type.nrderefs != 0) - continue; - - if (noIntro) - { - prcode(fp, -"\n" -" /* Define the enum instances that have to be added inline. */\n" - ); - - noIntro = FALSE; - } - - prcode(fp, -" sipAddEnumInstance("); - - if (vd->ecd == NULL) - prcode(fp,"sipModuleDict"); - else - prcode(fp,"(PyObject *)sipClass_%C",classFQCName(vd->ecd)); - - prcode(fp,",%N,(int)%S,sipEnum_%C);\n" - , vd->pyname, vd->fqcname, vd->type.u.ed->fqcname); - } -} - - -/* - * Generate the inline code to add a set of class instances to a dictionary. - */ -static void generateClassesInline(sipSpec *pt,FILE *fp) -{ - int noIntro; - varDef *vd; - - noIntro = TRUE; - - for (vd = pt->vars; vd != NULL; vd = vd->next) - { - if (vd->module != pt->module) - continue; - - if (vd->type.atype != class_type && vd->type.atype != mapped_type) - continue; - - if (needsHandler(vd)) - continue; - - /* Skip classes that don't need inline code. */ - if (generating_c || vd->accessfunc != NULL || vd->type.nrderefs != 0) - continue; - - if (noIntro) - { - prcode(fp, -"\n" -" /*\n" -" * Define the class and mapped type instances that have to be added\n" -" * inline.\n" -" */\n" - ); - - noIntro = FALSE; - } - - if (vd->type.atype == class_type) - prcode(fp, -" sipAddClassInstance("); - else - prcode(fp, -" sipAddMappedTypeInstance("); - - if (vd->ecd == NULL) - prcode(fp,"sipModuleDict"); - else - prcode(fp,"(PyObject *)sipClass_%C",classFQCName(vd->ecd)); - - prcode(fp,",%N,",vd->pyname); - - if (isConstArg(&vd->type)) - prcode(fp,"const_cast<%b *>(&%S)",&vd->type,vd->fqcname); - else - prcode(fp,"&%S",vd->fqcname); - - if (vd->type.atype == class_type) - prcode(fp, ",sipClass_%C);\n" - , classFQCName(vd->type.u.cd)); - else - prcode(fp, ",sipMappedType_%T);\n" - , &vd->type); - } -} - - -/* - * Generate the code to add a set of class instances to a dictionary. Return - * TRUE if there was at least one. - */ -static int generateClasses(sipSpec *pt,classDef *cd,FILE *fp) -{ - int noIntro; - varDef *vd; - - noIntro = TRUE; - - for (vd = pt->vars; vd != NULL; vd = vd->next) - { - scopedNameDef *vcname; - - if (vd->ecd != cd || vd->module != pt->module) - continue; - - if (vd->type.atype != class_type) - continue; - - if (needsHandler(vd)) - continue; - - /* - * Skip ordinary C++ class instances which need to be done with - * inline code rather than through a static table. This is - * because C++ does not guarantee the order in which the table - * and the instance will be created. So far this has only been - * seen to be a problem when statically linking SIP generated - * modules on Windows. - */ - if (!generating_c && vd->accessfunc == NULL && vd->type.nrderefs == 0) - continue; - - if (noIntro) - { - if (cd != NULL) - prcode(fp, -"\n" -"\n" -"/* Define the class instances to be added to this type dictionary. */\n" -"static sipClassInstanceDef classInstances_%C[] = {\n" - ,classFQCName(cd)); - else - prcode(fp, -"\n" -"\n" -"/* Define the class instances to be added to this module dictionary. */\n" -"static sipClassInstanceDef classInstances[] = {\n" - ); - - noIntro = FALSE; - } - - vcname = classFQCName(vd->type.u.cd); - - if (vd->accessfunc != NULL) - { - prcode(fp, -" {%N, (void *)access_%C, &sipClass_%C, SIP_ACCFUNC},\n" - ,vd->pyname,vd->fqcname,vcname); - } - else if (vd->type.nrderefs != 0) - { - prcode(fp, -" {%N, &%S, &sipClass_%C, SIP_INDIRECT},\n" - ,vd->pyname,vd->fqcname,vcname); - } - else if (isConstArg(&vd->type)) - { - prcode(fp, -" {%N, const_cast<%b *>(&%S), &sipClass_%C, 0},\n" - ,vd->pyname,&vd->type,vd->fqcname,vcname); - } - else - { - prcode(fp, -" {%N, &%S, &sipClass_%C, 0},\n" - ,vd->pyname,vd->fqcname,vcname); - } - } - - if (!noIntro) - prcode(fp, -" {0, 0, 0, 0}\n" -"};\n" - ); - - return !noIntro; -} - - -/* - * Generate the code to add a set of void pointers to a dictionary. Return - * TRUE if there was at least one. - */ -static int generateVoidPointers(sipSpec *pt,classDef *cd,FILE *fp) -{ - int noIntro; - varDef *vd; - - noIntro = TRUE; - - for (vd = pt->vars; vd != NULL; vd = vd->next) - { - if (vd->ecd != cd || vd->module != pt->module) - continue; - - if (vd->type.atype != void_type && vd->type.atype != struct_type) - continue; - - if (needsHandler(vd)) - continue; - - if (noIntro) - { - if (cd != NULL) - prcode(fp, -"\n" -"\n" -"/* Define the void pointers to be added to this type dictionary. */\n" -"static sipVoidPtrInstanceDef voidPtrInstances_%C[] = {\n" - ,classFQCName(cd)); - else - prcode(fp, -"\n" -"\n" -"/* Define the void pointers to be added to this module dictionary. */\n" -"static sipVoidPtrInstanceDef voidPtrInstances[] = {\n" - ); - - noIntro = FALSE; - } - - if (isConstArg(&vd->type)) - prcode(fp, -" {%N, const_cast<%b *>(%S)},\n" - , vd->pyname, &vd->type, vd->fqcname); - else - prcode(fp, -" {%N, %S},\n" - , vd->pyname, vd->fqcname); - } - - if (!noIntro) - prcode(fp, -" {0, 0}\n" -"};\n" - ); - - return !noIntro; -} - - -/* - * Generate the code to add a set of characters to a dictionary. Return TRUE - * if there was at least one. - */ -static int generateChars(sipSpec *pt,classDef *cd,FILE *fp) -{ - int noIntro; - varDef *vd; - - noIntro = TRUE; - - for (vd = pt->vars; vd != NULL; vd = vd->next) - { - argType vtype = vd->type.atype; - - if (vd->ecd != cd || vd->module != pt->module) - continue; - - if (!((vtype == sstring_type || vtype == ustring_type || vtype == string_type || vtype == wstring_type) && vd->type.nrderefs == 0)) - continue; - - if (needsHandler(vd)) - continue; - - if (noIntro) - { - if (cd != NULL) - prcode(fp, -"\n" -"\n" -"/* Define the chars to be added to this type dictionary. */\n" -"static sipCharInstanceDef charInstances_%C[] = {\n" - ,classFQCName(cd)); - else - prcode(fp, -"\n" -"\n" -"/* Define the chars to be added to this module dictionary. */\n" -"static sipCharInstanceDef charInstances[] = {\n" - ); - - noIntro = FALSE; - } - - prcode(fp, -" {%N, %S},\n" - ,vd->pyname,vd->fqcname); - } - - if (!noIntro) - prcode(fp, -" {0, 0}\n" -"};\n" - ); - - return !noIntro; -} - - -/* - * Generate the code to add a set of strings to a dictionary. Return TRUE if - * there is at least one. - */ -static int generateStrings(sipSpec *pt,classDef *cd,FILE *fp) -{ - int noIntro; - varDef *vd; - - noIntro = TRUE; - - for (vd = pt->vars; vd != NULL; vd = vd->next) - { - argType vtype = vd->type.atype; - - if (vd->ecd != cd || vd->module != pt->module) - continue; - - if (!((vtype == sstring_type || vtype == ustring_type || vtype == string_type || vtype == wstring_type) && vd->type.nrderefs != 0)) - continue; - - if (needsHandler(vd)) - continue; - - if (noIntro) - { - if (cd != NULL) - prcode(fp, -"\n" -"\n" -"/* Define the strings to be added to this type dictionary. */\n" -"static sipStringInstanceDef stringInstances_%C[] = {\n" - ,classFQCName(cd)); - else - prcode(fp, -"\n" -"\n" -"/* Define the strings to be added to this module dictionary. */\n" -"static sipStringInstanceDef stringInstances[] = {\n" - ); - - noIntro = FALSE; - } - - prcode(fp, -" {%N, %S},\n" - ,vd->pyname,vd->fqcname); - } - - if (!noIntro) - prcode(fp, -" {0, 0}\n" -"};\n" - ); - - return !noIntro; -} - - -/* - * Generate the code to add a set of enum instances to a dictionary. Return - * TRUE if there was at least one. - */ -static int generateEnums(sipSpec *pt, classDef *cd, FILE *fp) -{ - int noIntro; - varDef *vd; - - noIntro = TRUE; - - for (vd = pt->vars; vd != NULL; vd = vd->next) - { - if (vd->ecd != cd || vd->module != pt->module) - continue; - - if (vd->type.atype != enum_type || vd->type.u.ed->fqcname == NULL) - continue; - - if (needsHandler(vd)) - continue; - - /* Skip enums that need inline code. */ - if (!generating_c && vd->accessfunc == NULL && vd->type.nrderefs == 0) - continue; - - if (noIntro) - { - if (cd != NULL) - prcode(fp, -"\n" -"\n" -"/* Define the enum instances to be added to this type dictionary. */\n" -"static sipEnumInstanceDef enumInstances_%C[] = {\n" - ,classFQCName(cd)); - else - prcode(fp, -"\n" -"\n" -"/* Define the enum instances to be added to this module dictionary. */\n" -"static sipEnumInstanceDef enumInstances[] = {\n" - ); - - noIntro = FALSE; - } - - prcode(fp, -" {%N, (int)%S, &sipEnum_%C},\n" - ,vd->pyname,vd->fqcname,vd->type.u.ed->fqcname); - } - - if (!noIntro) - prcode(fp, -" {0, 0, 0}\n" -"};\n" - ); - - return !noIntro; -} - - -/* - * Generate the code to add a set of ints to a dictionary. Return TRUE if - * there was at least one. - */ -static int generateInts(sipSpec *pt, classDef *cd, FILE *fp) -{ - int noIntro; - varDef *vd; - enumDef *ed; - - noIntro = TRUE; - - for (vd = pt->vars; vd != NULL; vd = vd->next) - { - argType vtype = vd->type.atype; - - if (vd->ecd != cd || vd->module != pt->module) - continue; - - if (!(vtype == enum_type || vtype == ushort_type || - vtype == short_type || vtype == uint_type || - vtype == cint_type || vtype == int_type || - vtype == bool_type || vtype == cbool_type)) - continue; - - if (needsHandler(vd)) - continue; - - /* Named enums are handled elsewhere. */ - if (vtype == enum_type && vd->type.u.ed->fqcname != NULL) - continue; - - if (noIntro) - { - ints_intro(cd, fp); - noIntro = FALSE; - } - - prcode(fp, -" {%N, %S},\n" - ,vd->pyname,vd->fqcname); - } - - /* Now do global anonymous enums. */ - if (cd == NULL) - for (ed = pt->enums; ed != NULL; ed = ed->next) - { - enumMemberDef *em; - - if (ed->ecd != cd || ed->module != pt->module) - continue; - - if (ed->fqcname != NULL) - continue; - - for (em = ed->members; em != NULL; em = em->next) - { - if (noIntro) - { - ints_intro(cd, fp); - noIntro = FALSE; - } - - prcode(fp, -" {%N, %s},\n" - , em->pyname, em->cname); - } - } - - if (!noIntro) - prcode(fp, -" {0, 0}\n" -"};\n" - ); - - return !noIntro; -} - - -/* - * Generate the intro for a table of int instances. - */ -static void ints_intro(classDef *cd, FILE *fp) -{ - if (cd != NULL) - prcode(fp, -"\n" -"\n" -"/* Define the ints to be added to this type dictionary. */\n" -"static sipIntInstanceDef intInstances_%C[] = {\n" - ,classFQCName(cd)); - else - prcode(fp, -"\n" -"\n" -"/* Define the ints to be added to this module dictionary. */\n" -"static sipIntInstanceDef intInstances[] = {\n" - ); -} - - -/* - * Generate the code to add a set of longs to a dictionary. Return TRUE if - * there was at least one. - */ -static int generateLongs(sipSpec *pt, classDef *cd, FILE *fp) -{ - return generateVariableType(pt, cd, long_type, "long", "Long", "long", fp); -} - - -/* - * Generate the code to add a set of unsigned longs to a dictionary. Return - * TRUE if there was at least one. - */ -static int generateUnsignedLongs(sipSpec *pt, classDef *cd, FILE *fp) -{ - return generateVariableType(pt, cd, ulong_type, "unsigned long", "UnsignedLong", "unsignedLong", fp); -} - - -/* - * Generate the code to add a set of long longs to a dictionary. Return TRUE - * if there was at least one. - */ -static int generateLongLongs(sipSpec *pt, classDef *cd, FILE *fp) -{ - return generateVariableType(pt, cd, longlong_type, "long long", "LongLong", "longLong", fp); -} - - -/* - * Generate the code to add a set of unsigned long longs to a dictionary. - * Return TRUE if there was at least one. - */ -static int generateUnsignedLongLongs(sipSpec *pt, classDef *cd, FILE *fp) -{ - return generateVariableType(pt, cd, ulonglong_type, "unsigned long long", "UnsignedLongLong", "unsignedLongLong", fp); -} - - -/* - * Generate the code to add a set of a particular type to a dictionary. Return - * TRUE if there was at least one. - */ -static int generateVariableType(sipSpec *pt, classDef *cd, argType atype, const char *eng, const char *s1, const char *s2, FILE *fp) -{ - int noIntro; - varDef *vd; - - noIntro = TRUE; - - for (vd = pt->vars; vd != NULL; vd = vd->next) - { - argType vtype = vd->type.atype; - - if (vd->ecd != cd || vd->module != pt->module) - continue; - - if (vtype != atype) - continue; - - if (needsHandler(vd)) - continue; - - if (noIntro) - { - if (cd != NULL) - prcode(fp, -"\n" -"\n" -"/* Define the %ss to be added to this type dictionary. */\n" -"static sip%sInstanceDef %sInstances_%C[] = {\n" - , eng - , s1, s2, classFQCName(cd)); - else - prcode(fp, -"\n" -"\n" -"/* Define the %ss to be added to this module dictionary. */\n" -"static sip%sInstanceDef %sInstances[] = {\n" - , eng - , s1, s2); - - noIntro = FALSE; - } - - prcode(fp, -" {%N, %S},\n" - ,vd->pyname,vd->fqcname); - } - - if (!noIntro) - prcode(fp, -" {0, 0}\n" -"};\n" - ); - - return !noIntro; -} - - -/* - * Generate the code to add a set of doubles to a dictionary. Return TRUE if - * there was at least one. - */ -static int generateDoubles(sipSpec *pt,classDef *cd,FILE *fp) -{ - int noIntro; - varDef *vd; - - noIntro = TRUE; - - for (vd = pt->vars; vd != NULL; vd = vd->next) - { - argType vtype = vd->type.atype; - - if (vd->ecd != cd || vd->module != pt->module) - continue; - - if (!(vtype == float_type || vtype == cfloat_type || vtype == double_type || vtype == cdouble_type)) - continue; - - if (needsHandler(vd)) - continue; - - if (noIntro) - { - if (cd != NULL) - prcode(fp, -"\n" -"\n" -"/* Define the doubles to be added to this type dictionary. */\n" -"static sipDoubleInstanceDef doubleInstances_%C[] = {\n" - ,classFQCName(cd)); - else - prcode(fp, -"\n" -"\n" -"/* Define the doubles to be added to this module dictionary. */\n" -"static sipDoubleInstanceDef doubleInstances[] = {\n" - ); - - noIntro = FALSE; - } - - prcode(fp, -" {%N, %S},\n" - ,vd->pyname,vd->fqcname); - } - - if (!noIntro) - prcode(fp, -" {0, 0}\n" -"};\n" - ); - - return !noIntro; -} - - -/* - * Generate the C/C++ code for an interface. - */ -static void generateIfaceCpp(sipSpec *pt,ifaceFileDef *iff,char *codeDir, - char *srcSuffix,FILE *master) -{ - char *cppfile, *cmname = iff->module->name; - classDef *cd; - mappedTypeDef *mtd; - FILE *fp; - - if (master == NULL) - { - cppfile = createIfaceFileName(codeDir,iff,srcSuffix); - fp = createCompilationUnit(pt, cppfile, "Interface wrapper code."); - } - else - fp = master; - - prcode(fp, -"\n" -"#include \"sipAPI%s.h\"\n" -"#include \"sip%s%F.h\"\n" - ,cmname - ,cmname,iff->fqcname); - - generateUsedIncludes(iff->used, FALSE, fp); - - for (cd = pt->classes; cd != NULL; cd = cd->next) - if (cd->iff == iff) - { - if (isProtectedClass(cd)) - prcode(fp, -"\n" -"#include \"sip%s%F.h\"\n" - ,cmname,cd->ecd->iff->fqcname); - - if (!isExternal(cd)) - generateClassCpp(cd, pt, fp); - } - - for (mtd = pt->mappedtypes; mtd != NULL; mtd = mtd->next) - if (mtd->iff == iff) - generateMappedTypeCpp(mtd,fp); - - if (master == NULL) - { - closeFile(fp); - free(cppfile); - } -} - - -/* - * Return a filename for an interface C++ or header file on the heap. - */ -static char *createIfaceFileName(char *codeDir,ifaceFileDef *iff,char *suffix) -{ - char *fn; - scopedNameDef *snd; - - fn = concat(codeDir,"/sip",iff->module->name,NULL); - - for (snd = iff->fqcname; snd != NULL; snd = snd->next) - append(&fn,snd->name); - - append(&fn,suffix); - - return fn; -} - - -/* - * Generate the C++ code for a mapped type version. - */ -static void generateMappedTypeCpp(mappedTypeDef *mtd,FILE *fp) -{ - int need_xfer; - - prcode(fp, -"\n" -"\n" -"/* Call the mapped type's destructor. */\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static void release_%T(void *, int);}\n" - , &mtd->type); - - prcode(fp, -"static void release_%T(void *ptr, int%s)\n" -"{\n" - , &mtd->type, (generating_c ? " status" : "")); - - if (release_gil) - prcode(fp, -" Py_BEGIN_ALLOW_THREADS\n" - ); - - if (generating_c) - prcode(fp, -" sipFree(ptr);\n" - ); - else - prcode(fp, -" delete reinterpret_cast<%b *>(ptr);\n" - , &mtd->type); - - if (release_gil) - prcode(fp, -" Py_END_ALLOW_THREADS\n" - ); - - prcode(fp, -"}\n" -"\n" - ); - - generateConvertToDefinitions(mtd,NULL,fp); - - /* Generate the from type convertor. */ - - need_xfer = (generating_c || usedInCode(mtd->convfromcode, "sipTransferObj")); - - prcode(fp, -"\n" -"\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static PyObject *convertFrom_%T(void *, PyObject *);}\n" - , &mtd->type); - - prcode(fp, -"static PyObject *convertFrom_%T(void *sipCppV,PyObject *%s)\n" -"{\n" -" ", &mtd->type, (need_xfer ? "sipTransferObj" : "")); - - generateMappedTypeFromVoid(mtd, "sipCpp", "sipCppV", fp); - - prcode(fp, ";\n" -"\n" - ); - - generateCppCodeBlock(mtd->convfromcode,fp); - - prcode(fp, -"}\n" -"\n" -"\n" -"sipMappedType sipMappedTypeDef_%T = {\n" -" \"%B\",\n" -" release_%T,\n" -" forceConvertTo_%T,\n" -" convertTo_%T,\n" -" convertFrom_%T\n" -"};\n" - , &mtd->type - , &mtd->type - , &mtd->type - , &mtd->type - , &mtd->type - , &mtd->type - , &mtd->type); -} - - -/* - * Generate the C++ code for a class. - */ -static void generateClassCpp(classDef *cd,sipSpec *pt,FILE *fp) -{ - varDef *vd; - - /* Generate any local class code. */ - - generateCppCodeBlock(cd->cppcode,fp); - - generateClassFunctions(pt,cd,fp); - - generateAccessFunctions(pt,cd,fp); - - /* Generate the variable handlers. */ - if (hasVarHandlers(cd)) - { - for (vd = pt->vars; vd != NULL; vd = vd->next) - if (vd->ecd == cd && needsHandler(vd)) - generateVariableHandler(vd,fp); - - /* Generate the variable table. */ - prcode(fp, -"\n" -"PyMethodDef variables_%C[] = {\n" - ,classFQCName(cd)); - - for (vd = pt->vars; vd != NULL; vd = vd->next) - if (vd->ecd == cd && needsHandler(vd)) - prcode(fp, -" {%N, var_%C, %s, NULL},\n" - ,vd->pyname,vd->fqcname,(isStaticVar(vd) ? "METH_STATIC" : "0")); - - prcode(fp, -" {0, 0, 0, 0}\n" -"};\n" - ); - } - - if (cd->iff->type != namespace_iface) - generateConvertToDefinitions(NULL,cd,fp); - - /* The type definition structure. */ - generateTypeDefinition(pt, cd, fp); -} - - -/* - * Return a sorted array of relevant functions for a namespace. - */ - -static sortedMethTab *createFunctionTable(classDef *cd,int *nrp) -{ - int nr; - sortedMethTab *mtab, *mt; - memberDef *md; - - /* First we need to count the number of applicable functions. */ - - nr = 0; - - for (md = cd->members; md != NULL; md = md->next) - ++nr; - - if ((*nrp = nr) == 0) - return NULL; - - /* Create the table of methods. */ - - mtab = sipMalloc(sizeof (sortedMethTab) * nr); - - /* Initialise the table. */ - - mt = mtab; - - for (md = cd->members; md != NULL; md = md->next) - { - mt->md = md; - mt->is_static = TRUE; - - ++mt; - } - - /* Finally sort the table. */ - - qsort(mtab,nr,sizeof (sortedMethTab),compareMethTab); - - return mtab; -} - - -/* - * Return a sorted array of relevant methods (either lazy or non-lazy) for a - * class. - */ -static sortedMethTab *createMethodTable(classDef *cd, int *nrp) -{ - int nr; - visibleList *vl; - sortedMethTab *mtab, *mt; - - /* - * First we need to count the number of applicable methods. Only provide - * an entry point if there is at least one overload that is defined in this - * class and is a non-abstract function or slot. We allow private (even - * though we don't actually generate code) because we need to intercept the - * name before it reaches a more public version further up the class - * hierarchy. We add the ctor and any variable handlers as special - * entries. - */ - nr = 0; - - for (vl = cd->visible; vl != NULL; vl = vl->next) - { - overDef *od; - - if (vl->m->slot != no_slot) - continue; - - for (od = vl->cd->overs; od != NULL; od = od->next) - { - /* - * Skip protected methods if we don't have the means to - * handle them. - */ - if (isProtected(od) && !hasShadow(cd)) - continue; - - if (skipOverload(od,vl->m,cd,vl->cd,TRUE)) - continue; - - ++nr; - - break; - } - } - - if ((*nrp = nr) == 0) - return NULL; - - /* Create the table of methods. */ - - mtab = sipMalloc(sizeof (sortedMethTab) * nr); - - /* Initialise the table. */ - - mt = mtab; - - for (vl = cd->visible; vl != NULL; vl = vl->next) - { - int need_method, is_static; - overDef *od; - - if (vl->m->slot != no_slot) - continue; - - need_method = FALSE; - is_static = TRUE; - - for (od = vl->cd->overs; od != NULL; od = od->next) - { - /* - * Skip protected methods if we don't have the means to - * handle them. - */ - if (isProtected(od) && !hasShadow(cd)) - continue; - - if (!skipOverload(od,vl->m,cd,vl->cd,TRUE)) - { - need_method = TRUE; - - if (!isPrivate(od) && !isStatic(od)) - is_static = FALSE; - } - } - - if (need_method) - { - mt->md = vl->m; - mt->is_static = is_static; - - ++mt; - } - } - - /* Finally sort the table. */ - - qsort(mtab,nr,sizeof (sortedMethTab),compareMethTab); - - return mtab; -} - - -/* - * The qsort helper to compare two sortedMethTab structures based on the Python - * name of the method. - */ - -static int compareMethTab(const void *m1,const void *m2) -{ - return strcmp(((sortedMethTab *)m1)->md->pyname->text, - ((sortedMethTab *)m2)->md->pyname->text); -} - - -/* - * Generate the sorted table of methods and return the number of entries. - */ -static int generateMethodTable(classDef *cd,FILE *fp) -{ - int nr; - sortedMethTab *mtab; - - mtab = (cd->iff->type == namespace_iface) ? - createFunctionTable(cd,&nr) : - createMethodTable(cd,&nr); - - if (mtab != NULL) - { - int i; - - prcode(fp, -"\n" -"\n" -"static PyMethodDef methods_%C[] = {\n" - ,classFQCName(cd)); - - for (i = 0; i < nr; ++i) - { - memberDef *md = mtab[i].md; - - /* - * For the moment we are suppressing the generation of - * METH_STATIC until we understand descriptors better. - * It could be that they will simplify the handling of - * lazy attributes and allow things to be cached in the - * type dictionary. - */ - mtab[i].is_static = FALSE; - - prcode(fp, -" {%N, meth_%C_%s, METH_VARARGS%s, NULL}%s\n" - ,md->pyname,classFQCName(cd),md->pyname->text,(mtab[i].is_static ? "|METH_STATIC" : ""),((i + 1) < nr) ? "," : ""); - } - - free(mtab); - - prcode(fp, -"};\n" - ); - } - - return nr; -} - - -/* - * Generate the "to type" convertor definitions. - */ - -static void generateConvertToDefinitions(mappedTypeDef *mtd,classDef *cd, - FILE *fp) -{ - codeBlock *convtocode; - ifaceFileDef *iff; - argDef type; - - if (cd != NULL) - { - convtocode = cd->convtocode; - - iff = cd->iff; - - type.atype = class_type; - type.u.cd = cd; - } - else - { - convtocode = mtd->convtocode; - - iff = mtd->iff; - - type.atype = mapped_type; - type.u.mtd = mtd; - } - - type.argflags = 0; - type.name = NULL; - type.nrderefs = 0; - type.defval = NULL; - - /* Generate the type convertors. */ - - if (convtocode != NULL) - { - int need_ptr, need_xfer; - - /* - * Sometimes type convertors are just stubs that set the error - * flag, so check if we actually need everything so that we - * can avoid compiler warnings. - */ - need_ptr = (generating_c || usedInCode(convtocode, "sipCppPtr")); - need_xfer = (generating_c || usedInCode(convtocode, "sipTransferObj")); - - prcode(fp, -"\n" -"\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static int convertTo_%T(PyObject *, void **, int *, PyObject *);}\n" - , &type); - - prcode(fp, -"static int convertTo_%T(PyObject *sipPy,void **%s,int *sipIsErr,PyObject *%s)\n" -"{\n" - , &type, (need_ptr ? "sipCppPtrV" : ""), (need_xfer ? "sipTransferObj" : "")); - - if (need_ptr) - if (generating_c) - prcode(fp, -" %b **sipCppPtr = (%b **)sipCppPtrV;\n" -"\n" - , &type, &type); - else - prcode(fp, -" %b **sipCppPtr = reinterpret_cast<%b **>(sipCppPtrV);\n" -"\n" - , &type, &type); - - generateCppCodeBlock(convtocode,fp); - - prcode(fp, -"}\n" - ); - } - - prcode(fp, -"\n" -"\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static void *forceConvertTo_%T(PyObject *, int *);}\n" - , &type); - - prcode(fp, -"static void *forceConvertTo_%T(PyObject *valobj,int *iserrp)\n" -"{\n" -" if (*iserrp || valobj == NULL)\n" -" return NULL;\n" -"\n" - ,&type); - - if (convtocode != NULL) - prcode(fp, -" if (convertTo_%T(valobj,NULL,NULL,NULL))\n" -" {\n" -" void *val;\n" -"\n" -" /*\n" -" * Note that we throw away the flag that says if the value\n" -" * has just been created on the heap or not.\n" -" */\n" -" convertTo_%T(valobj,&val,iserrp,NULL);\n" -"\n" -" return val;\n" -" }\n" - ,&type - ,&type); - else - prcode(fp, -" if (valobj == Py_None || sipIsSubClassInstance(valobj,sipClass_%T))\n" -" return sipConvertToCpp(valobj,sipClass_%T,iserrp);\n" - ,&type - ,&type); - - if (cd != NULL) - prcode(fp, -"\n" -" sipBadClass(%N);\n" - , iff->name); - else - prcode(fp, -"\n" -" sipBadClass(\"%B\");\n" - , &mtd->type); - - prcode(fp, -"\n" -" *iserrp = 1;\n" -"\n" -" return NULL;\n" -"}\n" - ); -} - - -/* - * Generate a variable handler. - */ -static void generateVariableHandler(varDef *vd,FILE *fp) -{ - argType atype = vd->type.atype; - - prcode(fp, -"\n" -"\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static PyObject *var_%C(PyObject *, PyObject *);}\n" - , vd->fqcname); - - prcode(fp, -"static PyObject *var_%C(PyObject *%s,PyObject *sipPy)\n" -"{\n" - ,vd->fqcname,(isStaticVar(vd) ? "" : "sipSelf")); - - if (atype == class_type || atype == mapped_type) - prcode(fp, -" int sipIsErr = 0;\n" - ); - - if (vd->type.nrderefs == 0 && (atype == mapped_type || (atype == class_type && vd->type.u.cd->convtocode != NULL))) - prcode(fp, -" int sipValState;\n" - ); - - if (vd->getcode == NULL || vd->setcode == NULL) - { - prcode(fp, -" "); - - generateNamedValueType(&vd->type, "sipVal", fp); - - prcode(fp, ";\n" - ); - } - - if (!isStaticVar(vd)) - { - if (generating_c) - prcode(fp, -" %S *sipCpp = (%S *)sipGetCppPtr((sipWrapper *)sipSelf,sipClass_%C);\n" - ,classFQCName(vd->ecd),classFQCName(vd->ecd),classFQCName(vd->ecd)); - else - prcode(fp, -" %S *sipCpp = reinterpret_cast<%S *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_%C));\n" - ,classFQCName(vd->ecd),classFQCName(vd->ecd),classFQCName(vd->ecd)); - - prcode(fp, -"\n" -" if (!sipCpp)\n" -" return NULL;\n" - ); - } - - prcode(fp, -"\n" -" if (sipPy == NULL)\n" -" {\n" - ); - - /* Generate the get handler part. */ - - if (vd->getcode != NULL) - { - generateCppCodeBlock(vd->getcode, fp); - - prcode(fp, -"\n" -" return sipPy;\n" - ); - } - else - { - int pyobj = FALSE; - - prcode(fp, -" sipVal = %s", (((atype == class_type || atype == mapped_type) && vd->type.nrderefs == 0) ? "&" : "")); - - generateVarMember(vd, fp); - - prcode(fp, ";\n" -"\n" - ); - - switch (atype) - { - case mapped_type: - prcode(fp, -" sipPy = sipConvertFromMappedType(sipVal,sipMappedType_%T,NULL);\n" - ,&vd->type); - - break; - - case class_type: - generateVarClassConversion(vd,fp); - break; - - case bool_type: - case cbool_type: - prcode(fp, -" sipPy = PyBool_FromLong(sipVal);\n" - ); - - break; - - case sstring_type: - case ustring_type: - case string_type: - if (vd->type.nrderefs == 0) - prcode(fp, -" sipPy = PyString_FromStringAndSize(%s&sipVal,1);\n" - ,(atype != string_type) ? "(char *)" : ""); - else - prcode(fp, -" sipPy = PyString_FromString(%ssipVal);\n" - ,(atype != string_type) ? "(char *)" : ""); - - break; - - case wstring_type: - if (vd->type.nrderefs == 0) - prcode(fp, -" sipPy = PyUnicode_FromWideChar(&sipVal,1);\n" - ); - else - prcode(fp, -" sipPy = PyUnicode_FromWideChar(sipVal,(SIP_SSIZE_T)wcslen(sipVal));\n" - ); - - break; - - case float_type: - case cfloat_type: - prcode(fp, -" sipPy = PyFloat_FromDouble((double)sipVal);\n" - ); - break; - - case double_type: - case cdouble_type: - prcode(fp, -" sipPy = PyFloat_FromDouble(sipVal);\n" - ); - break; - - case enum_type: - if (vd->type.u.ed->fqcname != NULL) - { - prcode(fp, -" sipPy = sipConvertFromNamedEnum(sipVal,sipEnum_%C);\n" - ,vd->type.u.ed->fqcname); - - break; - } - - /* Drop through. */ - - case short_type: - case cint_type: - case int_type: - prcode(fp, -" sipPy = PyInt_FromLong(sipVal);\n" - ); - break; - - case long_type: - prcode(fp, -" sipPy = PyLong_FromLong(sipVal);\n" - ); - break; - - case ushort_type: - case uint_type: - case ulong_type: - prcode(fp, -" sipPy = PyLong_FromUnsignedLong(sipVal);\n" - ); - break; - - case longlong_type: - prcode(fp, -" sipPy = PyLong_FromLongLong(sipVal);\n" - ); - break; - - case ulonglong_type: - prcode(fp, -" sipPy = PyLong_FromUnsignedLongLong(sipVal);\n" - ); - break; - - case struct_type: - prcode(fp, -" sipPy = sipConvertFromVoidPtr("); - - if (isConstArg(&vd->type)) - prcode(fp, "const_cast<%b *>(sipVal)", &vd->type); - else - prcode(fp, "sipVal"); - - prcode(fp, ");\n" - ); - - break; - - case void_type: - prcode(fp, -" sipPy = sipConvertFromVoidPtr("); - - if (isConstArg(&vd->type)) - prcode(fp, "const_cast(sipVal)"); - else - prcode(fp, "sipVal"); - - prcode(fp, ");\n" - ); - - break; - - case pyobject_type: - case pytuple_type: - case pylist_type: - case pydict_type: - case pycallable_type: - case pyslice_type: - case pytype_type: - prcode(fp, -" Py_XINCREF(sipVal);\n" - ); - pyobj = TRUE; - break; - } - - prcode(fp, -"\n" -" return %s;\n" - ,(pyobj ? "sipVal" : "sipPy")); - } - - prcode(fp, -" }\n" -"\n" - ); - - /* Generate the set handler part. */ - - if (vd->setcode != NULL) - { - prcode(fp, -" {\n" -" int sipErr = 0;\n" -"\n" - ); - - generateCppCodeBlock(vd->setcode, fp); - - prcode(fp, -"\n" -" if (sipErr)\n" -" return NULL;\n" -" }\n" - ); - } - else - { - char *deref; - int might_be_temp; - - might_be_temp = generateObjToCppConversion(&vd->type,fp); - - deref = ""; - - if (atype == class_type || atype == mapped_type) - { - if (vd->type.nrderefs == 0) - deref = "*"; - - prcode(fp, -"\n" -" if (sipIsErr)\n" -" return NULL;\n" -"\n" - ); - } - else - { - if ((atype == sstring_type || atype == ustring_type || atype == string_type || atype == wstring_type) && vd->type.nrderefs != 0) - { - prcode(fp, -"\n" -" if (sipVal == NULL)\n" - ); - } - else - prcode(fp, -"\n" -" if (PyErr_Occurred() != NULL)\n" - ); - - prcode(fp, -" {\n" -" sipBadSetType(%N,%N);\n" -" return NULL;\n" -" }\n" -"\n" - ,vd->ecd->iff->name,vd->pyname); - } - - if (atype == pyobject_type || atype == pytuple_type || - atype == pylist_type || atype == pydict_type || - atype == pycallable_type || atype == pyslice_type || - atype == pytype_type) - { - prcode(fp, -" Py_XDECREF("); - - generateVarMember(vd, fp); - - prcode(fp, ");\n" -" Py_INCREF(sipVal);\n" -"\n" - ); - } - - prcode(fp, -" "); - - generateVarMember(vd, fp); - - prcode(fp, " = %ssipVal;\n" - , deref); - - /* Note that wchar_t * leaks here. */ - - if (might_be_temp) - prcode(fp, -"\n" -" sipReleaseInstance(sipVal,sipClass_%C,sipValState);\n" - , classFQCName(vd->type.u.cd)); - else if (vd->type.atype == mapped_type && vd->type.nrderefs == 0) - prcode(fp, -"\n" -" sipReleaseMappedType(sipVal,sipMappedType_%T,sipValState);\n" - , &vd->type); - } - - prcode(fp, -"\n" -" Py_INCREF(Py_None);\n" -" return Py_None;\n" -"}\n" - ); -} - - -/* - * Generate the member variable of a class. - */ -static void generateVarMember(varDef *vd, FILE *fp) -{ - if (isStaticVar(vd)) - prcode(fp,"%S::",classFQCName(vd->ecd)); - else - prcode(fp,"sipCpp->"); - - prcode(fp, "%s", scopedNameTail(vd->fqcname)); -} - - -/* - * Generate an variable class conversion fragment. - */ -static void generateVarClassConversion(varDef *vd,FILE *fp) -{ - classDef *cd = vd->type.u.cd; - - prcode(fp, -" sipPy = sipConvertFromInstance("); - - if (isConstArg(&vd->type)) - prcode(fp,"const_cast<%b *>(sipVal)",&vd->type); - else - prcode(fp,"sipVal"); - - prcode(fp,",sipClass_%C,NULL);\n" - ,classFQCName(cd)); -} - - -/* - * Generate the declaration of a variable that is initialised from a Python - * object. Return TRUE if the value might be a temporary on the heap. - */ -static int generateObjToCppConversion(argDef *ad,FILE *fp) -{ - int might_be_temp = FALSE; - char *rhs = NULL; - - prcode(fp, -" sipVal = "); - - switch (ad->atype) - { - case mapped_type: - { - const char *tail; - - if (generating_c) - { - prcode(fp, "(%b *)", ad); - tail = ""; - } - else - { - prcode(fp, "reinterpret_cast<%b *>(", ad); - tail = ")"; - } - - /* - * Note that we don't support /Transfer/ but could do. - */ - - prcode(fp, "sipForceConvertToMappedType(sipPy,sipMappedType_%T,NULL,%s,%s,&sipIsErr)", ad, (ad->nrderefs ? "0" : "SIP_NOT_NONE"), (ad->nrderefs ? "NULL" : "&sipValState")); - - prcode(fp, "%s;\n" - , tail); - } - break; - - case class_type: - { - const char *tail; - - if (ad->nrderefs == 0 && ad->u.cd->convtocode != NULL) - might_be_temp = TRUE; - - if (generating_c) - { - prcode(fp, "(%b *)", ad); - tail = ""; - } - else - { - prcode(fp, "reinterpret_cast<%b *>(", ad); - tail = ")"; - } - - /* - * Note that we don't support /Transfer/ but could do. - * We could also support /Constrained/ (so long as we - * also supported it for all types). - */ - - prcode(fp, "sipForceConvertToInstance(sipPy,sipClass_%C,NULL,%s,%s,&sipIsErr)", classFQCName(ad->u.cd), (ad->nrderefs ? "0" : "SIP_NOT_NONE"), (might_be_temp ? "&sipValState" : "NULL")); - - prcode(fp, "%s;\n" - , tail); - } - break; - - case enum_type: - prcode(fp, "(%E)PyInt_AsLong(sipPy);\n" - , ad->u.ed); - break; - - case sstring_type: - if (ad->nrderefs == 0) - rhs = "(signed char)sipString_AsChar(sipPy)"; - else - rhs = "(signed char *)PyString_AsString(sipPy)"; - break; - - case ustring_type: - if (ad->nrderefs == 0) - rhs = "(unsigned char)sipString_AsChar(sipPy)"; - else - rhs = "(unsigned char *)PyString_AsString(sipPy)"; - break; - - case string_type: - if (ad->nrderefs == 0) - rhs = "sipString_AsChar(sipPy)"; - else - rhs = "PyString_AsString(sipPy)"; - break; - - case wstring_type: - if (ad->nrderefs == 0) - rhs = "sipUnicode_AsWChar(sipPy)"; - else - rhs = "sipUnicode_AsWString(sipPy)"; - break; - - case float_type: - case cfloat_type: - rhs = "(float)PyFloat_AsDouble(sipPy)"; - break; - - case double_type: - case cdouble_type: - rhs = "PyFloat_AsDouble(sipPy)"; - break; - - case bool_type: - case cbool_type: - rhs = "(bool)PyInt_AsLong(sipPy)"; - break; - - case ushort_type: - rhs = "(unsigned short)sipLong_AsUnsignedLong(sipPy)"; - break; - - case short_type: - rhs = "(short)PyInt_AsLong(sipPy)"; - break; - - case uint_type: - rhs = "(unsigned)sipLong_AsUnsignedLong(sipPy)"; - break; - - case int_type: - case cint_type: - rhs = "(int)PyInt_AsLong(sipPy)"; - break; - - case ulong_type: - rhs = "sipLong_AsUnsignedLong(sipPy)"; - break; - - case long_type: - rhs = "PyLong_AsLong(sipPy)"; - break; - - case ulonglong_type: - rhs = "PyLong_AsUnsignedLongLong(sipPy)"; - break; - - case longlong_type: - rhs = "PyLong_AsLongLong(sipPy)"; - break; - - case struct_type: - prcode(fp, "(struct %S *)sipConvertToVoidPtr(sipPy);\n" - , ad->u.sname); - break; - - case void_type: - rhs = "sipConvertToVoidPtr(sipPy)"; - break; - - case pyobject_type: - case pytuple_type: - case pylist_type: - case pydict_type: - case pycallable_type: - case pyslice_type: - case pytype_type: - rhs = "sipPy"; - break; - } - - if (rhs != NULL) - prcode(fp, "%s;\n" - , rhs); - - return might_be_temp; -} - - -/* - * Returns TRUE if the given method is a slot that takes zero arguments. - */ -static int isZeroArgSlot(memberDef *md) -{ - slotType st = md->slot; - - return (st == str_slot || st == int_slot || st == long_slot || - st == float_slot || st == invert_slot || st == neg_slot || - st == len_slot || st == nonzero_slot || st == pos_slot || - st == abs_slot || st == repr_slot || st == hash_slot); -} - - -/* - * Returns TRUE if the given method is a slot that takes more than one - * argument. - */ -static int isMultiArgSlot(memberDef *md) -{ - slotType st = md->slot; - - return (st == setitem_slot || st == call_slot); -} - - -/* - * Returns TRUE if the given method is a slot that returns void (ie. nothing - * other than an error indicator). - */ -int isVoidReturnSlot(memberDef *md) -{ - slotType st = md->slot; - - return (st == setitem_slot || st == delitem_slot); -} - - -/* - * Returns TRUE if the given method is a slot that returns int. - */ -int isIntReturnSlot(memberDef *md) -{ - slotType st = md->slot; - - return (st == len_slot || st == nonzero_slot || st == contains_slot || - st == cmp_slot); -} - - -/* - * Returns TRUE if the given method is a slot that returns long. - */ -int isLongReturnSlot(memberDef *md) -{ - slotType st = md->slot; - - return (st == hash_slot); -} - - -/* - * Returns TRUE if the given method is a slot that takes an int argument. - */ -static int isIntArgSlot(memberDef *md) -{ - slotType st = md->slot; - - return (st == repeat_slot || st == irepeat_slot); -} - - -/* - * Returns TRUE if the given method is an inplace number slot. - */ -static int isInplaceNumberSlot(memberDef *md) -{ - slotType st = md->slot; - - return (st == iadd_slot || st == isub_slot || st == imul_slot || - st == idiv_slot || st == imod_slot || - st == ior_slot || st == ixor_slot || st == iand_slot || - st == ilshift_slot || st == irshift_slot); -} - - -/* - * Returns TRUE if the given method is an inplace sequence slot. - */ -static int isInplaceSequenceSlot(memberDef *md) -{ - slotType st = md->slot; - - return (st == iconcat_slot || st == irepeat_slot); -} - - -/* - * Returns TRUE if the given method is a number slot slot. - */ -int isNumberSlot(memberDef *md) -{ - slotType st = md->slot; - - return (st == add_slot || st == sub_slot || st == mul_slot || - st == div_slot || st == mod_slot || - st == and_slot || st == or_slot || st == xor_slot || - st == lshift_slot || st == rshift_slot); -} - - -/* - * Returns TRUE if the given method is a rich compare slot. - */ -int isRichCompareSlot(memberDef *md) -{ - slotType st = md->slot; - - return (st == lt_slot || st == le_slot || st == eq_slot || - st == ne_slot || st == gt_slot || st == ge_slot); -} - - -/* - * Generate a Python slot handler for either a class, an enum or an extender. - */ -static void generateSlot(sipSpec *pt, classDef *cd, enumDef *ed, memberDef *md, FILE *fp) -{ - char *arg_str, *prefix, *ret_type; - int ret_int, nr_args; - overDef *od, *overs; - scopedNameDef *fqcname; - nameDef *pyname; - - if (ed != NULL) - { - prefix = "Enum"; - pyname = ed->pyname; - fqcname = ed->fqcname; - overs = ed->overs; - } - else if (cd != NULL) - { - prefix = "Class"; - pyname = cd->iff->name; - fqcname = classFQCName(cd); - overs = cd->overs; - } - else - { - prefix = NULL; - pyname = NULL; - fqcname = NULL; - overs = pt->overs; - } - - if (isVoidReturnSlot(md) || isIntReturnSlot(md)) - { - ret_int = TRUE; - ret_type = "int "; - } - else - { - ret_int = FALSE; - - if (isLongReturnSlot(md)) - ret_type = "long "; - else - ret_type = "PyObject *"; - } - - if (isIntArgSlot(md)) - { - nr_args = 0; - arg_str = "PyObject *sipSelf,int a0"; - } - else if (isMultiArgSlot(md)) - { - nr_args = 2; - arg_str = "PyObject *sipSelf,PyObject *sipArgs"; - } - else if (isZeroArgSlot(md)) - { - nr_args = 0; - arg_str = "PyObject *sipSelf"; - } - else if (isNumberSlot(md)) - { - nr_args = 2; - arg_str = "PyObject *sipArg0,PyObject *sipArg1"; - } - else - { - nr_args = 1; - arg_str = "PyObject *sipSelf,PyObject *sipArg"; - } - - prcode(fp, -"\n" -"\n" - ); - - if (!generating_c) - { - prcode(fp, -"extern \"C\" {static %sslot_", ret_type); - - if (fqcname != NULL) - prcode(fp, "%C_", fqcname); - - prcode(fp, "%s(%s);}\n" - , md->pyname->text, arg_str); - } - - prcode(fp, -"static %sslot_", ret_type); - - if (fqcname != NULL) - prcode(fp, "%C_", fqcname); - - prcode(fp, "%s(%s)\n" -"{\n" - , md->pyname->text, arg_str); - - if (isInplaceNumberSlot(md)) - prcode(fp, -" if (!PyObject_TypeCheck(sipSelf,(PyTypeObject *)sip%s_%C))\n" -" {\n" -" Py_INCREF(Py_NotImplemented);\n" -" return Py_NotImplemented;\n" -" }\n" -"\n" - , prefix, fqcname); - - if (!isNumberSlot(md)) - if (cd != NULL) - prcode(fp, -" %S *sipCpp = reinterpret_cast<%S *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_%C));\n" -"\n" -" if (!sipCpp)\n" -" return %s;\n" -"\n" - , fqcname, fqcname, fqcname - , (md->slot == cmp_slot ? "-2" : (ret_int ? "-1" : "0"))); - else - prcode(fp, -" %S sipCpp = static_cast<%S>(PyInt_AsLong(sipSelf));\n" -"\n" - , fqcname, fqcname); - - if (nr_args > 0) - prcode(fp, -" int sipArgsParsed = 0;\n" - ); - - for (od = overs; od != NULL; od = od->next) - if (od->common == md && isAbstract(od)) - { - prcode(fp, -" bool sipSelfWasArg = !sipSelf;\n" - ); - - break; - } - - for (od = overs; od != NULL; od = od->next) - if (od->common == md) - generateFunctionBody(pt, od, cd, cd, (ed == NULL && !dontDerefSelf(od)), fp); - - if (nr_args > 0) - switch (md->slot) - { - case cmp_slot: - prcode(fp, -"\n" -" return 2;\n" - ); - break; - - case concat_slot: - case iconcat_slot: - case repeat_slot: - case irepeat_slot: - prcode(fp, -"\n" -" /* Raise an exception if the argument couldn't be parsed. */\n" -" sipBadOperatorArg(sipSelf,sipArg,%s);\n" -"\n" -" return NULL;\n" - ,slotName(md->slot)); - break; - - default: - if (isNumberSlot(md) || isRichCompareSlot(md)) - { - /* We can't extend enum slots. */ - if (cd == NULL) - prcode(fp, -"\n" -" Py_INCREF(Py_NotImplemented);\n" -" return Py_NotImplemented;\n" - ); - else if (isNumberSlot(md)) - prcode(fp, -"\n" -" return sipPySlotExtend(&sipModuleAPI_%s,%s,NULL,sipArg0,sipArg1);\n" - , pt->module->name, slotName(md->slot)); - else - prcode(fp, -"\n" -" return sipPySlotExtend(&sipModuleAPI_%s,%s,sip%s_%C,sipSelf,sipArg);\n" - , pt->module->name, slotName(md->slot), prefix, fqcname); - } - else if (isInplaceNumberSlot(md)) - prcode(fp, -"\n" -" PyErr_Clear();\n" -"\n" -" Py_INCREF(Py_NotImplemented);\n" -" return Py_NotImplemented;\n" - ); - else - prcode(fp, -"\n" -" /* Raise an exception if the arguments couldn't be parsed. */\n" -" sipNoMethod(sipArgsParsed,%N,%N);\n" -"\n" -" return %s;\n" - , pyname, md->pyname - ,ret_int ? "-1" : "0"); - } - - prcode(fp, -"}\n" - ); -} - - -/* - * Generate the member functions for a class. - */ -static void generateClassFunctions(sipSpec *pt,classDef *cd,FILE *fp) -{ - visibleList *vl; - memberDef *md; - - /* Any shadow code. */ - if (hasShadow(cd)) - generateShadowCode(pt,cd,fp); - - /* The member functions. */ - for (vl = cd->visible; vl != NULL; vl = vl->next) - if (vl->m->slot == no_slot) - generateFunction(pt, vl->m, vl->cd->overs, cd, vl->cd, fp); - - /* The slot functions. */ - for (md = cd->members; md != NULL; md = md->next) - if (cd->iff->type == namespace_iface) - generateOrdinaryFunction(pt,cd,md,fp); - else if (md->slot != no_slot && md->slot != unicode_slot) - generateSlot(pt, cd, NULL, md, fp); - - if (cd->iff->type != namespace_iface && !generating_c) - { - classList *cl; - int need_ptr, need_state; - - /* The cast function. */ - prcode(fp, -"\n" -"\n" -"/* Cast a pointer to a type somewhere in its superclass hierarchy. */\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static void *cast_%C(void *, sipWrapperType *);}\n" - , classFQCName(cd)); - - prcode(fp, -"static void *cast_%C(void *ptr,sipWrapperType *targetClass)\n" -"{\n" - ,classFQCName(cd)); - - if (cd->supers != NULL) - prcode(fp, -" void *res;\n" -"\n" - ); - - prcode(fp, -" if (targetClass == sipClass_%C)\n" -" return ptr;\n" - ,classFQCName(cd)); - - for (cl = cd->supers; cl != NULL; cl = cl->next) - { - scopedNameDef *sname = cl->cd->iff->fqcname; - - prcode(fp, -"\n" -" if ((res = sipCast_%C((%S *)(%S *)ptr,targetClass)) != NULL)\n" -" return res;\n" - ,sname,sname,classFQCName(cd)); - } - - prcode(fp, -"\n" -" return NULL;\n" -"}\n" - ); - - /* Generate the release function without compiler warnings. */ - need_ptr = need_state = FALSE; - - if (canCreate(cd) || isPublicDtor(cd)) - { - if (hasShadow(cd)) - need_ptr = need_state = TRUE; - else if (isPublicDtor(cd)) - need_ptr = TRUE; - } - - prcode(fp, -"\n" -"\n" -"/* Call the instance's destructor. */\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static void release_%C(void *, int);}\n" - , classFQCName(cd)); - - prcode(fp, -"static void release_%C(void *%s,int%s)\n" -"{\n" - , classFQCName(cd), (need_ptr ? "ptr" : ""), (need_state ? " state" : "")); - - /* - * If there is an explicit public dtor then assume there is - * some way to call it which we haven't worked out (because we - * don't fully understand C++). - */ - if (canCreate(cd) || isPublicDtor(cd)) - { - int rgil = ((release_gil || isReleaseGILDtor(cd)) && !isHoldGILDtor(cd)); - - if (rgil) - prcode(fp, -" Py_BEGIN_ALLOW_THREADS\n" -"\n" - ); - - if (hasShadow(cd)) - { - prcode(fp, -" if (state & SIP_DERIVED_CLASS)\n" -" delete reinterpret_cast(ptr);\n" - , classFQCName(cd)); - - if (isPublicDtor(cd)) - prcode(fp, -" else\n" -" delete reinterpret_cast<%U *>(ptr);\n" - , cd); - } - else if (isPublicDtor(cd)) - prcode(fp, -" delete reinterpret_cast<%U *>(ptr);\n" - , cd); - - if (rgil) - prcode(fp, -"\n" -" Py_END_ALLOW_THREADS\n" - ); - } - - prcode(fp, -"}\n" - ); - } - - /* The traverse function. */ - if (cd->travcode != NULL) - { - prcode(fp, -"\n" -"\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static int traverse_%C(void *, visitproc, void *);}\n" - , classFQCName(cd)); - - prcode(fp, -"static int traverse_%C(void *sipCppV,visitproc sipVisit,void *sipArg)\n" -"{\n" -" ", classFQCName(cd)); - - generateClassFromVoid(cd, "sipCpp", "sipCppV", fp); - - prcode(fp, ";\n" -" int sipRes;\n" -"\n" - ); - - generateCppCodeBlock(cd->travcode, fp); - - prcode(fp, -"\n" -" return sipRes;\n" -"}\n" - ); - } - - /* The clear function. */ - if (cd->clearcode != NULL) - { - prcode(fp, -"\n" -"\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static int clear_%C(void *);}\n" - , classFQCName(cd)); - - prcode(fp, -"static int clear_%C(void *sipCppV)\n" -"{\n" -" ", classFQCName(cd)); - - generateClassFromVoid(cd, "sipCpp", "sipCppV", fp); - - prcode(fp, ";\n" -" int sipRes;\n" -"\n" - ); - - generateCppCodeBlock(cd->clearcode, fp); - - prcode(fp, -"\n" -" return sipRes;\n" -"}\n" - ); - } - - /* The buffer interface functions. */ - if (cd->readbufcode != NULL) - { - prcode(fp, -"\n" -"\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static SIP_SSIZE_T getreadbuffer_%C(PyObject *, void *, SIP_SSIZE_T, void **);}\n" - , classFQCName(cd)); - - prcode(fp, -"static SIP_SSIZE_T getreadbuffer_%C(PyObject *%s, void *sipCppV, SIP_SSIZE_T %s, void **%s)\n" -"{\n" -" ", classFQCName(cd) - , argName("sipSelf", cd->readbufcode) - , argName("sipSegment", cd->readbufcode) - , argName("sipPtrPtr", cd->readbufcode)); - - generateClassFromVoid(cd, "sipCpp", "sipCppV", fp); - - prcode(fp, ";\n" -" SIP_SSIZE_T sipRes;\n" -"\n" - ); - - generateCppCodeBlock(cd->readbufcode, fp); - - prcode(fp, -"\n" -" return sipRes;\n" -"}\n" - ); - } - - if (cd->writebufcode != NULL) - { - prcode(fp, -"\n" -"\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static SIP_SSIZE_T getwritebuffer_%C(PyObject *, void *, SIP_SSIZE_T, void **);}\n" - , classFQCName(cd)); - - prcode(fp, -"static SIP_SSIZE_T getwritebuffer_%C(PyObject *%s, void *sipCppV, SIP_SSIZE_T %s, void **%s)\n" -"{\n" -" ", classFQCName(cd) - , argName("sipSelf", cd->writebufcode) - , argName("sipSegment", cd->writebufcode) - , argName("sipPtrPtr", cd->writebufcode)); - - generateClassFromVoid(cd, "sipCpp", "sipCppV", fp); - - prcode(fp, ";\n" -" SIP_SSIZE_T sipRes;\n" -"\n" - ); - - generateCppCodeBlock(cd->writebufcode, fp); - - prcode(fp, -"\n" -" return sipRes;\n" -"}\n" - ); - } - - if (cd->segcountcode != NULL) - { - prcode(fp, -"\n" -"\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static SIP_SSIZE_T getsegcount_%C(PyObject *, void *, SIP_SSIZE_T *);}\n" - , classFQCName(cd)); - - prcode(fp, -"static SIP_SSIZE_T getsegcount_%C(PyObject *%s, void *sipCppV, SIP_SSIZE_T *%s)\n" -"{\n" -" ", classFQCName(cd) - , argName("sipSelf", cd->segcountcode) - , argName("sipLenPtr", cd->segcountcode)); - - generateClassFromVoid(cd, "sipCpp", "sipCppV", fp); - - prcode(fp, ";\n" -" SIP_SSIZE_T sipRes;\n" -"\n" - ); - - generateCppCodeBlock(cd->segcountcode, fp); - - prcode(fp, -"\n" -" return sipRes;\n" -"}\n" - ); - } - - if (cd->charbufcode != NULL) - { - prcode(fp, -"\n" -"\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static SIP_SSIZE_T getcharbuffer_%C(PyObject *, void *, SIP_SSIZE_T, void **);}\n" - , classFQCName(cd)); - - prcode(fp, -"static SIP_SSIZE_T getcharbuffer_%C(PyObject *%s, void *sipCppV, SIP_SSIZE_T %s, void **%s)\n" -"{\n" -" ", classFQCName(cd) - , argName("sipSelf", cd->charbufcode) - , argName("sipSegment", cd->charbufcode) - , argName("sipPtrPtr", cd->charbufcode)); - - generateClassFromVoid(cd, "sipCpp", "sipCppV", fp); - - prcode(fp, ";\n" -" SIP_SSIZE_T sipRes;\n" -"\n" - ); - - generateCppCodeBlock(cd->charbufcode, fp); - - prcode(fp, -"\n" -" return sipRes;\n" -"}\n" - ); - } - - /* The dealloc function. */ - if (needDealloc(cd)) - { - prcode(fp, -"\n" -"\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static void dealloc_%C(sipWrapper *);}\n" - , classFQCName(cd)); - - prcode(fp, -"static void dealloc_%C(sipWrapper *sipSelf)\n" -"{\n" - ,classFQCName(cd)); - - if (tracing) - prcode(fp, -" sipTrace(SIP_TRACE_DEALLOCS,\"dealloc_%C()\\n\");\n" -"\n" - ,classFQCName(cd)); - - /* Disable the virtual handlers. */ - if (hasShadow(cd)) - prcode(fp, -" if (sipIsDerived(sipSelf))\n" -" reinterpret_cast(sipSelf->u.cppPtr)->sipPySelf = NULL;\n" -"\n" - ,classFQCName(cd)); - - if (generating_c || isPublicDtor(cd) || (hasShadow(cd) && isProtectedDtor(cd))) - { - prcode(fp, -" if (sipIsPyOwned(sipSelf))\n" -" {\n" - ); - - if (cd->dealloccode != NULL) - { - if (usedInCode(cd->dealloccode, "sipCpp")) - { - prcode(fp, -" "); - - generateClassFromVoid(cd, "sipCpp", "sipSelf->u.cppPtr", fp); - - prcode(fp, ";\n" - ); - } - - generateCppCodeBlock(cd->dealloccode,fp); - - prcode(fp, -"\n" - ); - } - - if (isDelayedDtor(cd)) - prcode(fp, -" sipAddDelayedDtor(sipSelf);\n" - ); - else if (generating_c) - prcode(fp, -" sipFree(sipSelf->u.cppPtr);\n" - ); - else - prcode(fp, -" release_%C(sipSelf->u.cppPtr,%s);\n" - , classFQCName(cd), (hasShadow(cd) ? "sipSelf->flags" : "0")); - - prcode(fp, -" }\n" - ); - } - - prcode(fp, -"}\n" - ); - } - - /* The type initialisation function. */ - if (canCreate(cd)) - generateTypeInit(pt, cd, fp); -} - - -/* - * Generate the shadow (derived) class code. - */ -static void generateShadowCode(sipSpec *pt,classDef *cd,FILE *fp) -{ - int nrVirts, virtNr; - virtOverDef *vod; - ctorDef *ct; - - nrVirts = countVirtuals(cd); - - /* Generate the wrapper class constructors. */ - - for (ct = cd->ctors; ct != NULL; ct = ct->next) - { - char *prefix; - int a; - ctorDef *dct; - - if (isPrivateCtor(ct)) - continue; - - if (ct->cppsig == NULL) - continue; - - /* Check we haven't already handled this C++ signature. */ - for (dct = cd->ctors; dct != ct; dct = dct->next) - if (dct->cppsig != NULL && sameSignature(dct->cppsig, ct->cppsig, TRUE)) - break; - - if (dct != ct) - continue; - - prcode(fp, -"\n" -"sip%C::sip%C(",classFQCName(cd),classFQCName(cd)); - - generateArgs(ct->cppsig,Definition,fp); - - prcode(fp,")%X: %S(",ct->exceptions,classFQCName(cd)); - - prefix = ""; - - for (a = 0; a < ct->cppsig->nrArgs; ++a) - { - prcode(fp,"%sa%d",prefix,a); - prefix = ","; - } - - prcode(fp,"), sipPySelf(0)\n" -"{\n" - ); - - if (tracing) - { - prcode(fp, -" sipTrace(SIP_TRACE_CTORS,\"sip%C::sip%C(",classFQCName(cd),classFQCName(cd)); - generateArgs(ct->cppsig,Declaration,fp); - prcode(fp,")%X (this=0x%%08x)\\n\",this);\n" -"\n" - ,ct->exceptions); - } - - prcode(fp, -" sipCommonCtor(%s,%d);\n" -"}\n" - ,(nrVirts > 0 ? "sipPyMethods" : "NULL"),nrVirts); - } - - /* The destructor. */ - - if (!isPrivateDtor(cd)) - { - prcode(fp, -"\n" -"sip%C::~sip%C()%X\n" -"{\n" - ,classFQCName(cd),classFQCName(cd),cd->dtorexceptions); - - if (tracing) - prcode(fp, -" sipTrace(SIP_TRACE_DTORS,\"sip%C::~sip%C()%X (this=0x%%08x)\\n\",this);\n" -"\n" - ,classFQCName(cd),classFQCName(cd),cd->dtorexceptions); - - if (cd->dtorcode != NULL) - generateCppCodeBlock(cd->dtorcode,fp); - - prcode(fp, -" sipCommonDtor(sipPySelf);\n" -"}\n" - ); - } - - /* The metacall method if required. */ - if (isQObjectSubClass(cd) && optQ_OBJECT4(pt)) - { - prcode(fp, -"\n" -"const TQMetaObject *sip%C::metaObject() const\n" -"{\n" -" return sip_%s_qt_metaobject(sipPySelf,sipClass_%C,%S::metaObject());\n" -"}\n" -"\n" -"int sip%C::qt_metacall(TQMetaObject::Call _c,int _id,void **_a)\n" -"{\n" -" sip%C::metaObject();\n" -"\n" -" _id = %S::qt_metacall(_c,_id,_a);\n" -"\n" -" if (_id >= 0)\n" -" {\n" -" SIP_BLOCK_THREADS\n" -" _id = sip_%s_qt_metacall(sipPySelf,sipClass_%C,_c,_id,_a);\n" -" SIP_UNBLOCK_THREADS\n" -" }\n" -"\n" -" return _id;\n" -"}\n" - , classFQCName(cd) - , pt->module->name, classFQCName(cd), classFQCName(cd) - , classFQCName(cd) - , classFQCName(cd) - , classFQCName(cd) - , pt->module->name, classFQCName(cd)); - } - - /* Generate the virtual catchers. */ - - virtNr = 0; - - for (vod = cd->vmembers; vod != NULL; vod = vod->next) - { - overDef *od = &vod->o; - virtOverDef *dvod; - - if (isPrivate(od)) - continue; - - /* Check we haven't already handled this C++ signature. */ - for (dvod = cd->vmembers; dvod != vod; dvod = dvod->next) - if (strcmp(dvod->o.cppname,od->cppname) == 0 && sameSignature(dvod->o.cppsig,od->cppsig,TRUE)) - break; - - if (dvod != vod) - continue; - - generateVirtualCatcher(pt,cd,virtNr++,vod,fp); - } - - /* Generate the wrapper around each protected member function. */ - - generateProtectedDefinitions(cd,fp); - - /* Generate the emitters if needed. */ - if (!optNoEmitters(pt)) - generateEmitters(pt, cd, fp); -} - - -/* - * Generate the emitter functions. - */ -static void generateEmitters(sipSpec *pt, classDef *cd, FILE *fp) -{ - int noIntro; - visibleList *vl; - - for (vl = cd->visible; vl != NULL; vl = vl->next) - { - overDef *od; - - for (od = vl->cd->overs; od != NULL; od = od->next) - if (od->common == vl->m && isSignal(od)) - { - generateEmitter(pt,cd,vl,fp); - break; - } - } - - /* Generate the table of signals to support fan-outs. */ - - noIntro = TRUE; - - for (vl = cd->visible; vl != NULL; vl = vl->next) - { - overDef *od; - - for (od = vl->cd->overs; od != NULL; od = od->next) - if (od->common == vl->m && isSignal(od)) - { - if (noIntro) - { - setHasSigSlots(cd); - - prcode(fp, -"\n" -"static sipQtSignal signals_%C[] = {\n" - ,classFQCName(cd)); - - noIntro = FALSE; - } - - prcode(fp, -" {%N, %C_emit_%s},\n" - ,vl->m->pyname,classFQCName(cd),vl->m->pyname->text); - - break; - } - } - - if (!noIntro) - prcode(fp, -" {NULL, NULL}\n" -"};\n" - ); -} - - -/* - * Generate the protected enums for a class. - */ -static void generateProtectedEnums(sipSpec *pt,classDef *cd,FILE *fp) -{ - enumDef *ed; - - for (ed = pt->enums; ed != NULL; ed = ed->next) - { - char *eol; - enumMemberDef *emd; - - /* Ignore unless this class is the publisher. */ - if (cd != ed->pcd) - continue; - - prcode(fp, -"\n" -" /* Expose this protected enum. */\n" -" enum"); - - if (ed->fqcname != NULL) - prcode(fp," sip%s",scopedNameTail(ed->fqcname)); - - prcode(fp," {"); - - eol = "\n"; - - for (emd = ed->members; emd != NULL; emd = emd->next) - { - prcode(fp,"%s" -" %s = %S::%s",eol,emd->cname,classFQCName(ed->ecd),emd->cname); - - eol = ",\n"; - } - - prcode(fp,"\n" -" };\n" - ); - } -} - - -/* - * Generate the catcher for a virtual function. - */ -static void generateVirtualCatcher(sipSpec *pt, classDef *cd, int virtNr, - virtOverDef *vod, FILE *fp) -{ - overDef *od = &vod->o; - virtHandlerDef *vhd = od->virthandler; - argDef *res, *ad; - int a; - - normaliseArgs(od->cppsig); - - res = &od->cppsig->result; - - if (res->atype == void_type && res->nrderefs == 0) - res = NULL; - - prcode(fp, -"\n"); - - generateBaseType(&od->cppsig->result,fp); - - prcode(fp," sip%C::%O(",classFQCName(cd),od); - generateArgs(od->cppsig,Definition,fp); - prcode(fp,")%s%X\n" -"{\n" - ,(isConst(od) ? " const" : ""),od->exceptions); - - if (tracing) - { - prcode(fp, -" sipTrace(SIP_TRACE_CATCHERS,\""); - - generateBaseType(&od->cppsig->result,fp); - prcode(fp," sip%C::%O(",classFQCName(cd),od); - generateArgs(od->cppsig,Declaration,fp); - prcode(fp,")%s%X (this=0x%%08x)\\n\",this);\n" -"\n" - ,(isConst(od) ? " const" : ""),od->exceptions); - } - - restoreArgs(od->cppsig); - - if (vhd->module == pt->module) - { - prcode(fp, -" extern "); - - generateBaseType(&od->cppsig->result,fp); - - prcode(fp," sipVH_%s_%d(sip_gilstate_t,PyObject *",vhd->module->name,vhd->virthandlernr); - } - else - { - prcode(fp, -" typedef "); - - generateBaseType(&od->cppsig->result,fp); - - prcode(fp," (*sipVH_%s_%d)(sip_gilstate_t,PyObject *",vhd->module->name,vhd->virthandlernr); - } - - if (vhd->cppsig->nrArgs > 0) - { - prcode(fp,","); - generateArgs(vhd->cppsig,Declaration,fp); - } - - prcode(fp,");\n" - ); - - if (isNewThread(od)) - prcode(fp, -"\n" -" SIP_BLOCK_THREADS\n" - ); - - prcode(fp, -"\n" -" sip_gilstate_t sipGILState;\n" -" PyObject *meth;\n" -"\n" -" meth = sipIsPyMethod(&sipGILState,"); - - if (isConst(od)) - prcode(fp,"const_cast("); - - prcode(fp,"&sipPyMethods[%d]",virtNr); - - if (isConst(od)) - prcode(fp,")"); - - prcode(fp,",sipPySelf,"); - - if (isAbstract(od)) - prcode(fp,"%N",cd->iff->name); - else - prcode(fp,"NULL"); - - prcode(fp,",%N);\n" -"\n" - ,od->common->pyname); - - if (isNewThread(od)) - prcode(fp, -" if (meth)\n" -" {\n" -" sipStartThread();\n" -" "); - else - { - prcode(fp, -" if (!meth)\n" - ); - - if (isAbstract(od)) - generateVirtHandlerErrorReturn(res,fp); - else - { - if (res == NULL) - prcode(fp, -" {\n" -" "); - else - prcode(fp, -" return "); - - generateUnambiguousClass(cd,vod->scope,fp); - - prcode(fp,"::%O(",od); - - for (a = 0; a < od->cppsig->nrArgs; ++a) - prcode(fp,"%sa%d",(a == 0 ? "" : ","),a); - - prcode(fp,");\n" - ); - - if (res == NULL) - prcode(fp, -" return;\n" -" }\n" - ); - } - - prcode(fp, -"\n" -" "); - - if (res != NULL) - prcode(fp,"return "); - } - - if (vhd->module == pt->module) - prcode(fp,"sipVH_%s_%d",vhd->module->name,vhd->virthandlernr); - else - prcode(fp,"((sipVH_%s_%d)(sipModuleAPI_%s_%s->em_virthandlers[%d]))",vhd->module->name,vhd->virthandlernr,pt->module->name,vhd->module->name,vhd->virthandlernr); - - prcode(fp,"(sipGILState,meth"); - - ad = od->cppsig->args; - - for (a = 0; a < od->cppsig->nrArgs; ++a) - { - if (ad->atype == class_type && isProtectedClass(ad->u.cd)) - prcode(fp,",static_cast<%U *>(a%d)",ad->u.cd,a); - else if (ad->atype == enum_type && isProtectedEnum(ad->u.ed)) - prcode(fp, ",(%E)a%d", ad->u.ed, a); - else - prcode(fp,",a%d",a); - - ++ad; - } - - prcode(fp,");\n" - ); - - if (isNewThread(od)) - prcode(fp, -" sipEndThread();\n" -" }\n" -"\n" -" SIP_UNBLOCK_THREADS\n" - ); - - prcode(fp, -"}\n" - ); -} - - -/* - * Generate the scope of the near class of a virtual taking duplicate - * super-classes into account. - */ -static void generateUnambiguousClass(classDef *cd,classDef *scope,FILE *fp) -{ - mroDef *mro; - - /* See if the near class has a duplicate. */ - for (mro = cd->mro; mro != NULL; mro = mro->next) - if (mro->cd == scope) - { - if (hasDuplicateSuper(mro)) - { - mroDef *guardc; - - /* - * Backtrack to find the class that directly - * sub-classes the duplicated one. This will - * be the one that disambiguates the duplicated - * one. - */ - guardc = mro; - - while (guardc != cd->mro) - { - mroDef *sub; - classList *cl; - - for (sub = cd->mro; sub->next != guardc; sub = sub->next) - ; - - for (cl = sub->cd->supers; cl != NULL; cl = cl->next) - if (cl->cd == mro->cd) - { - prcode(fp,"%S",classFQCName(sub->cd)); - - return; - } - - /* Try the previous one. */ - guardc = sub; - } - } - - break; - } - - /* If we got here there is nothing to worry about. */ - prcode(fp,"%S",classFQCName(scope)); -} - - -/* - * Generate a cast to zero. - */ -static void generateCastZero(argDef *ad,FILE *fp) -{ - if (ad->atype == enum_type) - prcode(fp,"(%E)",ad->u.ed); - - prcode(fp,"0"); -} - - -/* - * Generate the return statement for a virtual handler when there has been an - * error (ie. there is nothing sensible to return). - */ -static void generateVirtHandlerErrorReturn(argDef *res,FILE *fp) -{ - prcode(fp, -" return"); - - if (res == NULL) - { - prcode(fp,";\n" - ); - - return; - } - - prcode(fp," "); - - if (res->atype == mapped_type && res->nrderefs == 0) - { - argDef res_noconstref; - - /* - * We don't know anything about the mapped type so we just hope - * is has a default ctor. - */ - - if (isReference(res)) - prcode(fp,"*new "); - - res_noconstref = *res; - resetIsConstArg(&res_noconstref); - resetIsReference(&res_noconstref); - prcode(fp,"%B()",&res_noconstref); - } - else if (res->atype == class_type && res->nrderefs == 0) - { - ctorDef *ct = res->u.cd->defctor; - - /* - * If we don't have a suitable ctor then the generated code - * will issue an error message. - */ - if (ct != NULL && isPublicCtor(ct) && ct->cppsig != NULL) - { - argDef res_noconstref; - - /* - * If this is a badly designed class. We can only - * generate correct code by leaking memory. - */ - if (isReference(res)) - prcode(fp,"*new "); - - res_noconstref = *res; - resetIsConstArg(&res_noconstref); - resetIsReference(&res_noconstref); - prcode(fp,"%B",&res_noconstref); - - generateCallDefaultCtor(ct,fp); - } - else - { - fatalScopedName(classFQCName(res->u.cd)); - fatal(" must have a default constructor\n"); - } - } - else - generateCastZero(res,fp); - - prcode(fp,";\n" - ); -} - - -/* - * Generate the call to a default ctor. - */ -static void generateCallDefaultCtor(ctorDef *ct, FILE *fp) -{ - int a; - - prcode(fp, "("); - - for (a = 0; a < ct->cppsig->nrArgs; ++a) - { - argDef *ad = &ct->cppsig->args[a]; - - if (ad->defval != NULL) - break; - - if (a > 0) - prcode(fp, ","); - - /* - * Do what we can to provide type information to the compiler. - */ - if (ad->atype == class_type && ad->nrderefs > 0 && !isReference(ad)) - prcode(fp, "static_cast<%B>(0)", ad); - else if (ad->atype == enum_type) - prcode(fp, "static_cast<%E>(0)", ad->u.ed); - else if (ad->atype == float_type || ad->atype == cfloat_type) - prcode(fp, "0.0F"); - else if (ad->atype == double_type || ad->atype == cdouble_type) - prcode(fp, "0.0"); - else if (ad->atype == uint_type) - prcode(fp, "0U"); - else if (ad->atype == long_type || ad->atype == longlong_type) - prcode(fp, "0L"); - else if (ad->atype == ulong_type || ad->atype == ulonglong_type) - prcode(fp, "0UL"); - else if ((ad->atype == ustring_type || ad->atype == sstring_type || ad->atype == string_type) && ad->nrderefs == 0) - prcode(fp, "'\\0'"); - else if (ad->atype == wstring_type && ad->nrderefs == 0) - prcode(fp, "L'\\0'"); - else - prcode(fp, "0"); - } - - prcode(fp, ")"); -} - - -/* - * Generate the emitter function for a signal. - */ -static void generateEmitter(sipSpec *pt,classDef *cd,visibleList *vl,FILE *fp) -{ - char *pname = vl->m->pyname->text; - overDef *od; - - prcode(fp, -"\n" -"int sip%C::sipEmit_%s(PyObject *sipArgs)\n" -"{\n" -" int sipArgsParsed = 0;\n" - ,classFQCName(cd),pname); - - for (od = vl->cd->overs; od != NULL; od = od->next) - { - int rgil = ((release_gil || isReleaseGIL(od)) && !isHoldGIL(od)); - - if (od->common != vl->m || !isSignal(od)) - continue; - - /* - * Generate the code that parses the args and emits the - * appropriate overloaded signal. - */ - prcode(fp, -"\n" -" {\n" - ); - - generateArgParser(pt, &od->pysig, cd, NULL, NULL, FALSE, fp); - - prcode(fp, -" {\n" - ); - - if (rgil) - prcode(fp, -" Py_BEGIN_ALLOW_THREADS\n" - ); - - prcode(fp, -" emit %s(" - ,od->cppname); - - generateArgs(od->cppsig,Call,fp); - - prcode(fp,");\n" - ); - - if (rgil) - prcode(fp, -" Py_END_ALLOW_THREADS\n" - ); - - deleteTemps(&od->pysig, fp); - - prcode(fp, -"\n" -" return 0;\n" -" }\n" -" }\n" - ); - } - - prcode(fp, -"\n" -" sipNoMethod(sipArgsParsed,%N,%N);\n" -"\n" -" return -1;\n" -"}\n" -"\n" - , cd->iff->name, vl->m->pyname); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static int %C_emit_%s(sipWrapper *, PyObject *);}\n" - , classFQCName(cd), pname); - - prcode(fp, -"static int %C_emit_%s(sipWrapper *w,PyObject *sipArgs)\n" -"{\n" -" sip%C *ptr = reinterpret_cast(sipGetComplexCppPtr(w));\n" -"\n" -" return (ptr ? ptr->sipEmit_%s(sipArgs) : -1);\n" -"}\n" - ,classFQCName(cd),pname - ,classFQCName(cd),classFQCName(cd) - ,pname); -} - - -/* - * Generate the declarations of the protected wrapper functions for a class. - */ - -static void generateProtectedDeclarations(classDef *cd,FILE *fp) -{ - int noIntro; - visibleList *vl; - - noIntro = TRUE; - - for (vl = cd->visible; vl != NULL; vl = vl->next) - { - overDef *od; - - if (vl->m->slot != no_slot) - continue; - - for (od = vl->cd->overs; od != NULL; od = od->next) - { - if (od->common != vl->m || !isProtected(od)) - continue; - - if (noIntro) - { - prcode(fp, -"\n" -" /*\n" -" * There is a public method for every protected method visible from\n" -" * this class.\n" -" */\n" - ); - - noIntro = FALSE; - } - - prcode(fp, -" "); - - if (isStatic(od)) - prcode(fp,"static "); - - generateBaseType(&od->cppsig->result,fp); - - if (!isStatic(od) && !isAbstract(od) && (isVirtual(od) || isVirtualReimp(od))) - { - prcode(fp, " sipProtectVirt_%s(bool", od->cppname); - - if (od->cppsig->nrArgs > 0) - prcode(fp, ","); - } - else - prcode(fp, " sipProtect_%s(", od->cppname); - - generateArgs(od->cppsig,Declaration,fp); - prcode(fp,")%s;\n" - ,(isConst(od) ? " const" : "")); - } - } -} - - -/* - * Generate the definitions of the protected wrapper functions for a class. - */ -static void generateProtectedDefinitions(classDef *cd,FILE *fp) -{ - visibleList *vl; - - for (vl = cd->visible; vl != NULL; vl = vl->next) - { - overDef *od; - - if (vl->m->slot != no_slot) - continue; - - for (od = vl->cd->overs; od != NULL; od = od->next) - { - char *mname = od->cppname; - int parens; - argDef *res; - - if (od->common != vl->m || !isProtected(od)) - continue; - - prcode(fp, -"\n" - ); - - generateBaseType(&od->cppsig->result,fp); - - if (!isStatic(od) && !isAbstract(od) && (isVirtual(od) || isVirtualReimp(od))) - { - prcode(fp, " sip%C::sipProtectVirt_%s(bool sipSelfWasArg", classFQCName(cd), mname); - - if (od->cppsig->nrArgs > 0) - prcode(fp, ","); - } - else - prcode(fp, " sip%C::sipProtect_%s(", classFQCName(cd), mname); - - generateArgs(od->cppsig,Definition,fp); - prcode(fp,")%s\n" -"{\n" - ,(isConst(od) ? " const" : "")); - - parens = 1; - - res = &od->cppsig->result; - - if (res->atype == void_type && res->nrderefs == 0) - prcode(fp, -" "); - else - { - prcode(fp, -" return "); - - if (res->atype == class_type && isProtectedClass(res->u.cd)) - { - prcode(fp,"static_cast<%U *>(",res->u.cd); - ++parens; - } - else if (res->atype == enum_type && isProtectedEnum(res->u.ed)) - /* - * One or two older compilers can't - * handle a static_cast here so we - * revert to a C-style cast. - */ - prcode(fp,"(%E)",res->u.ed); - } - - if (!isAbstract(od)) - if (isVirtual(od) || isVirtualReimp(od)) - { - prcode(fp, "(sipSelfWasArg ? %S::%s(", classFQCName(vl->cd), mname); - - generateProtectedCallArgs(od, fp); - - prcode(fp, ") : "); - ++parens; - } - else - prcode(fp, "%S::", classFQCName(vl->cd)); - - prcode(fp,"%s(",mname); - - generateProtectedCallArgs(od, fp); - - while (parens--) - prcode(fp,")"); - - prcode(fp,";\n" -"}\n" - ); - } - } -} - - -/* - * Generate the arguments for a call to a protected method. - */ -static void generateProtectedCallArgs(overDef *od, FILE *fp) -{ - int a; - - for (a = 0; a < od->cppsig->nrArgs; ++a) - { - argDef *ad = &od->cppsig->args[a]; - - if (a > 0) - prcode(fp, ","); - - if (ad->atype == enum_type && isProtectedEnum(ad->u.ed)) - prcode(fp, "(%S)", ad->u.ed->fqcname); - - prcode(fp, "a%d", a); - } -} - - -/* - * Generate the function that does most of the work to handle a particular - * virtual function. - */ -static void generateVirtualHandler(sipSpec *pt,virtHandlerDef *vhd,FILE *fp) -{ - int a, nrvals, copy, isref; - argDef *res, res_noconstref; - - res = &vhd->cppsig->result; - - copy = isref = FALSE; - - if (res->atype == void_type && res->nrderefs == 0) - res = NULL; - else - { - /* - * If we are returning a reference to an instance then we take care to - * handle Python errors but still return a valid C++ instance. If we - * are returning an instance then we take care to make a local copy of - * the instance returned from Python before the Python object is - * garbage collected and the C++ instance (possibly) destroyed. - */ - if ((res->atype == class_type || res->atype == mapped_type) && res->nrderefs == 0) - if (isReference(res)) - isref = TRUE; - else - copy = TRUE; - - res_noconstref = *res; - resetIsConstArg(&res_noconstref); - resetIsReference(&res_noconstref); - } - - prcode(fp, -"\n" - ); - - generateBaseType(&vhd->cppsig->result, fp); - - prcode(fp," sipVH_%s_%d(sip_gilstate_t sipGILState,PyObject *sipMethod" - ,pt->module->name,vhd->virthandlernr); - - if (vhd->cppsig->nrArgs > 0) - { - prcode(fp,","); - - generateArgs(vhd->cppsig, Definition, fp); - } - - prcode(fp,")\n" -"{\n" - ); - - if (res != NULL) - { - prcode(fp, " "); - - /* - * wchar_t * return values are always on the heap. To reduce memory - * leaks we keep the last result around until we have a new one. This - * means that ownership of the return value stays with the function - * returning it - which is consistent with how other types work, even - * thought it may not be what's required in all cases. - */ - if (res->atype == wstring_type && res->nrderefs == 1) - prcode(fp, "static "); - - generateBaseType(&res_noconstref,fp); - - prcode(fp," %ssipRes",(isref ? "*" : "")); - - if (copy && res->atype == class_type && res->nrderefs == 0) - { - ctorDef *ct = res->u.cd->defctor; - - if (ct != NULL && isPublicCtor(ct) && ct->cppsig != NULL && ct->cppsig->nrArgs > 0 && ct->cppsig->args[0].defval == NULL) - generateCallDefaultCtor(ct,fp); - } - else if (!copy) - { - /* - * We initialise the result to try and suppress a - * compiler warning. - */ - prcode(fp," = "); - generateCastZero(res,fp); - } - - prcode(fp,";\n" - ); - - if (res->atype == wstring_type && res->nrderefs == 1) - prcode(fp, -"\n" -" if (sipRes)\n" -" {\n" -" // Return any previous result to the heap.\n" -" sipFree(%s);\n" -" sipRes = 0;\n" -" }\n" -"\n" - , (isConstArg(res) ? "const_cast(sipRes)" : "sipRes")); - } - - if (vhd->virtcode != NULL) - { - int error_flag = needErrorFlag(vhd->virtcode); - - if (error_flag) - prcode(fp, -" int sipIsErr = 0;\n" - ); - - prcode(fp, -"\n" - ); - - generateCppCodeBlock(vhd->virtcode,fp); - - if (error_flag) - prcode(fp, -"\n" -" if (sipIsErr)\n" -" PyErr_Print();\n" - ); - - prcode(fp, -"\n" -" Py_DECREF(sipMethod);\n" -"\n" -" SIP_RELEASE_GIL(sipGILState)\n" - ); - - if (res != NULL) - prcode(fp, -"\n" -" return sipRes;\n" - ); - - prcode(fp, -"}\n" - ); - - return; - } - - /* See how many values we expect. */ - nrvals = (res != NULL ? 1 : 0); - - for (a = 0; a < vhd->pysig->nrArgs; ++a) - if (isOutArg(&vhd->pysig->args[a])) - ++nrvals; - - if (copy) - { - prcode(fp, -" "); - - generateBaseType(&res_noconstref,fp); - - prcode(fp," *sipResOrig;\n"); - - if (res->atype == class_type && res->u.cd->convtocode != NULL) - prcode(fp, -" int sipResState;\n" - ); - } - - /* Call the method. */ - prcode(fp, -" PyObject *sipResObj = sipCallMethod(0,sipMethod,"); - - generateTupleBuilder(vhd->pysig, fp); - - prcode(fp,");\n" -"\n" -" %s (!sipResObj || sipParseResult(0,sipMethod,sipResObj,\"",(isref ? "int sipIsErr =" : "if")); - - /* Build the format string. */ - if (nrvals == 0) - prcode(fp,"Z"); - else - { - if (nrvals > 1) - prcode(fp,"("); - - if (res != NULL) - prcode(fp, "%s", getParseResultFormat(res, TRUE, isTransferVH(vhd))); - - for (a = 0; a < vhd->pysig->nrArgs; ++a) - { - argDef *ad = &vhd->pysig->args[a]; - - if (isOutArg(ad)) - prcode(fp, "%s", getParseResultFormat(ad, FALSE, FALSE)); - } - - if (nrvals > 1) - prcode(fp,")"); - } - - prcode(fp,"\""); - - /* Pass the destination pointers. */ - if (res != NULL) - { - generateParseResultExtraArgs(res, TRUE, fp); - prcode(fp,",&sipRes%s",(copy ? "Orig" : "")); - } - - for (a = 0; a < vhd->pysig->nrArgs; ++a) - { - argDef *ad = &vhd->pysig->args[a]; - - if (isOutArg(ad)) - { - generateParseResultExtraArgs(ad, FALSE, fp); - prcode(fp,",%sa%d",(isReference(ad) ? "&" : ""),a); - } - } - - if (isref) - prcode(fp,") < 0);\n" -"\n" -" if (sipIsErr)\n" - ); - else - prcode(fp,") < 0)\n" - ); - - prcode(fp, -" PyErr_Print();\n" - ); - - /* Make a copy if needed. */ - if (copy) - { - prcode(fp, -" else\n" -" {\n" -" sipRes = *sipResOrig;\n" - ); - - if (res->atype == mapped_type) - prcode(fp, -" delete sipResOrig;\n" - ); - else if (res->atype == class_type && res->u.cd->convtocode != NULL) - prcode(fp, -" sipReleaseInstance(sipResOrig,sipClass_%C,sipResState);\n" - , classFQCName(res->u.cd)); - - prcode(fp, -" }\n" - ); - } - - prcode(fp, -"\n" -" Py_XDECREF(sipResObj);\n" -" Py_DECREF(sipMethod);\n" -"\n" -" SIP_RELEASE_GIL(sipGILState)\n" - ); - - if (res != NULL) - { - if (isref) - { - prcode(fp, -"\n" -" if (sipIsErr)\n" - ); - - generateVirtHandlerErrorReturn(res,fp); - } - - prcode(fp, -"\n" -" return %ssipRes;\n" - ,(isref ? "*" : "")); - } - - prcode(fp, -"}\n" - ); -} - - -/* - * Generate the extra arguments needed by sipParseResult() for a particular - * type. - */ -static void generateParseResultExtraArgs(argDef *ad, int isres, FILE *fp) -{ - switch (ad->atype) - { - case mapped_type: - prcode(fp, ",sipMappedType_%T", ad); - break; - - case class_type: - prcode(fp, ",sipClass_%C", classFQCName(ad->u.cd)); - - if (isres && ad->nrderefs == 0 && ad->u.cd->convtocode != NULL && !isReference(ad)) - prcode(fp, ",&sipResState"); - - break; - - case pytuple_type: - prcode(fp,",&PyTuple_Type"); - break; - - case pylist_type: - prcode(fp,",&PyList_Type"); - break; - - case pydict_type: - prcode(fp,",&PyDict_Type"); - break; - - case pyslice_type: - prcode(fp,",&PySlice_Type"); - break; - - case pytype_type: - prcode(fp,",&PyType_Type"); - break; - - case enum_type: - if (ad->u.ed->fqcname != NULL) - prcode(fp,",sipEnum_%C",ad->u.ed->fqcname); - break; - } -} - - -/* - * Return the format characters used by sipParseResult() for a particular type. - */ -static const char *getParseResultFormat(argDef *ad, int isres, int xfervh) -{ - switch (ad->atype) - { - case mapped_type: - { - static const char *s[] = { - "D0", "D1", "D2", "D3", - "D4", "D5", "D6", "D7" - }; - - int f = 0x04; - - if (isres && ad->nrderefs == 0) - f |= 0x01; - - if (isres && xfervh) - f |= 0x02; - - return s[f]; - } - - case class_type: - { - static char s[] = "C?"; - - int f = 0x04; - - if (isres && ad->nrderefs == 0) - { - f |= 0x01; - - if (ad->u.cd->convtocode != NULL) - { - f &= ~0x04; - - /* - * If it is a reference then we are - * going to return the dereference. To - * make sure it remains valid we can - * either leak the temporary from the - * %ConvertToCode or we can suppress - * the %ConvertToCode. We choose the - * latter. - */ - if (isReference(ad)) - f |= 0x10; - } - } - - if (isres && xfervh) - f |= 0x02; - - s[1] = '0' + f; - - return s; - } - - case bool_type: - case cbool_type: - return "b"; - - case sstring_type: - case ustring_type: - case string_type: - return ((ad->nrderefs == 0) ? "c" : "s"); - - case wstring_type: - return ((ad->nrderefs == 0) ? "w" : "x"); - - case enum_type: - return ((ad->u.ed->fqcname != NULL) ? "E" : "e"); - - case ushort_type: - return "t"; - - case short_type: - return "h"; - - case int_type: - case cint_type: - return "i"; - - case uint_type: - return "u"; - - case long_type: - return "l"; - - case ulong_type: - return "m"; - - case longlong_type: - return "n"; - - case ulonglong_type: - return "o"; - - case void_type: - case struct_type: - return "V"; - - case float_type: - case cfloat_type: - return "f"; - - case double_type: - case cdouble_type: - return "d"; - - case pyobject_type: - return "O"; - - case pytuple_type: - case pylist_type: - case pydict_type: - case pyslice_type: - case pytype_type: - return (isAllowNone(ad) ? "N" : "T"); - } - - /* We should never get here. */ - return " "; -} - - -/* - * Generate the code to build a tuple of Python arguments. - */ -static void generateTupleBuilder(signatureDef *sd,FILE *fp) -{ - int a, arraylenarg; - - prcode(fp,"\""); - - for (a = 0; a < sd->nrArgs; ++a) - { - char *fmt = ""; - argDef *ad = &sd->args[a]; - - if (!isInArg(ad)) - continue; - - switch (ad->atype) - { - case sstring_type: - case ustring_type: - case string_type: - if (ad->nrderefs == 0 || (ad->nrderefs == 1 && isOutArg(ad))) - fmt = "c"; - else if (isArray(ad)) - fmt = "a"; - else - fmt = "s"; - - break; - - case wstring_type: - if (ad->nrderefs == 0 || (ad->nrderefs == 1 && isOutArg(ad))) - fmt = "w"; - else if (isArray(ad)) - fmt = "A"; - else - fmt = "x"; - - break; - - case bool_type: - case cbool_type: - fmt = "b"; - break; - - case enum_type: - fmt = (ad->u.ed->fqcname != NULL) ? "E" : "e"; - break; - - case cint_type: - fmt = "i"; - break; - - case uint_type: - if (isArraySize(ad)) - arraylenarg = a; - else - fmt = "u"; - - break; - - case int_type: - if (isArraySize(ad)) - arraylenarg = a; - else - fmt = "i"; - - break; - - case ushort_type: - if (isArraySize(ad)) - arraylenarg = a; - else - fmt = "t"; - - break; - - case short_type: - if (isArraySize(ad)) - arraylenarg = a; - else - fmt = "h"; - - break; - - case long_type: - if (isArraySize(ad)) - arraylenarg = a; - else - fmt = "l"; - - break; - - case ulong_type: - if (isArraySize(ad)) - arraylenarg = a; - else - fmt = "m"; - - break; - - case longlong_type: - if (isArraySize(ad)) - arraylenarg = a; - else - fmt = "n"; - - break; - - case ulonglong_type: - if (isArraySize(ad)) - arraylenarg = a; - else - fmt = "o"; - - break; - - case struct_type: - case void_type: - fmt = "V"; - break; - - case float_type: - case cfloat_type: - fmt = "f"; - break; - - case double_type: - case cdouble_type: - fmt = "d"; - break; - - case signal_type: - case slot_type: - case slotcon_type: - case slotdis_type: - fmt = "s"; - break; - - case mapped_type: - fmt = "D"; - break; - - case class_type: - fmt = "C"; - break; - - case rxcon_type: - case rxdis_type: - case qobject_type: - fmt = "O"; - break; - - case pyobject_type: - case pytuple_type: - case pylist_type: - case pydict_type: - case pycallable_type: - case pyslice_type: - case pytype_type: - fmt = "S"; - break; - } - - prcode(fp,fmt); - } - - prcode(fp,"\""); - - for (a = 0; a < sd->nrArgs; ++a) - { - int derefs; - argDef *ad = &sd->args[a]; - - if (!isInArg(ad)) - continue; - - derefs = ad->nrderefs; - - switch (ad->atype) - { - case sstring_type: - case ustring_type: - case string_type: - case wstring_type: - if (!(ad->nrderefs == 0 || (ad->nrderefs == 1 && isOutArg(ad)))) - --derefs; - - break; - - case mapped_type: - case class_type: - if (ad->nrderefs > 0) - --derefs; - - break; - - case struct_type: - case void_type: - --derefs; - break; - } - - if (ad->atype == mapped_type || ad->atype == class_type || - ad->atype == rxcon_type || ad->atype == rxdis_type || - ad->atype == qobject_type) - { - prcode(fp,","); - - if (isConstArg(ad)) - prcode(fp,"const_cast<%b *>(",ad); - - if (ad->nrderefs == 0) - prcode(fp,"&"); - else - while (derefs-- != 0) - prcode(fp,"*"); - - prcode(fp,"a%d",a); - - if (isConstArg(ad)) - prcode(fp,")"); - - if (ad->atype == mapped_type) - prcode(fp, ",sipMappedType_%T,NULL", ad); - else if (ad->atype == class_type) - prcode(fp, ",sipClass_%C,NULL", classFQCName(ad->u.cd)); - else - prcode(fp,",sipClass_QObject"); - } - else - { - if (!isArraySize(ad)) - { - prcode(fp,","); - - while (derefs-- != 0) - prcode(fp,"*"); - - prcode(fp,"a%d",a); - } - - if (isArray(ad)) - { - argType astype = sd->args[arraylenarg].atype; - - prcode(fp,",%sa%d",(astype == int_type ? "" : "(int)"),arraylenarg); - } - else if (ad->atype == enum_type && ad->u.ed->fqcname != NULL) - prcode(fp,",sipEnum_%C",ad->u.ed->fqcname); - } - } -} - - -/* - * Generate the class interface #include directives required by either a class - * or a module. - */ -static void generateUsedIncludes(ifaceFileList *iffl, int header, FILE *fp) -{ - int newl = TRUE; - - while (iffl != NULL) - { - if (header == iffl->header) - { - if (newl) - { - prcode(fp, -"\n" - ); - - newl = FALSE; - } - - prcode(fp, -"#include \"sip%s%F.h\"\n" - , iffl->iff->module->name, iffl->iff->fqcname); - } - - iffl = iffl->next; - } - - if (!newl) - prcode(fp, -"\n" - ); -} - - -/* - * Generate the header file for the C++ interface. - */ -static void generateIfaceHeader(sipSpec *pt,ifaceFileDef *iff,char *codeDir) -{ - char *wfile; - char *cmname = iff->module->name; - classDef *cd; - mappedTypeDef *mtd; - exceptionDef *xd; - int genused; - FILE *fp; - - /* Create the header file. */ - - wfile = createIfaceFileName(codeDir,iff,".h"); - fp = createFile(pt,wfile,"Interface header file."); - - prcode(fp, -"\n" -"#ifndef _%s%F_h\n" -"#define _%s%F_h\n" -"\n" - ,cmname,iff->fqcname,cmname,iff->fqcname); - - genused = TRUE; - - for (cd = pt->classes; cd != NULL; cd = cd->next) - if (cd->iff == iff) - { - if (iff->module == pt->module) - generateClassHeader(cd,genused,pt,fp); - else if (!isExternal(cd)) - generateImportedClassHeader(cd,pt,fp); - - genused = FALSE; - } - - genused = TRUE; - - for (mtd = pt->mappedtypes; mtd != NULL; mtd = mtd->next) - if (mtd->iff == iff) - { - if (iff->module == pt->module) - generateMappedTypeHeader(mtd,genused,fp); - else - generateImportedMappedTypeHeader(mtd,pt,fp); - - genused = FALSE; - } - - for (xd = pt->exceptions; xd != NULL; xd = xd->next) - if (xd->iff == iff) - { - generateCppCodeBlock(xd->hdrcode,fp); - - if (xd->exceptionnr >= 0) - { - prcode(fp, -"\n" -"#define sipException_%C sipModuleAPI_%s" - ,iff->fqcname,pt->module->name); - - if (iff->module == pt->module) - prcode(fp,"."); - else - prcode(fp,"_%s->",iff->module->name); - - prcode(fp,"em_exceptions[%d]\n" - ,xd->exceptionnr); - } - } - - prcode(fp, -"\n" -"#endif\n" - ); - - closeFile(fp); - free(wfile); -} - - -/* - * Generate the C++ header code for an imported mapped type. - */ -static void generateImportedMappedTypeHeader(mappedTypeDef *mtd,sipSpec *pt, - FILE *fp) -{ - char *mname = pt->module->name; - char *imname = mtd->iff->module->name; - argDef type; - - generateCppCodeBlock(mtd->hdrcode,fp); - - type.atype = mapped_type; - type.u.mtd = mtd; - type.argflags = 0; - type.name = NULL; - type.nrderefs = 0; - type.defval = NULL; - - prcode(fp, -"\n" -"#define sipMappedType_%T sipModuleAPI_%s_%s->em_mappedtypes[%d]\n" -"#define sipForceConvertTo_%T sipModuleAPI_%s_%s->em_mappedtypes[%d]->mt_fcto\n" -"#define sipConvertFrom_%T sipModuleAPI_%s_%s->em_mappedtypes[%d]->mt_cfrom\n" - ,&type,mname,imname,mtd->mappednr - ,&type,mname,imname,mtd->mappednr - ,&type,mname,imname,mtd->mappednr); -} - - -/* - * Generate the C++ header code for a generated mapped type. - */ -static void generateMappedTypeHeader(mappedTypeDef *mtd,int genused,FILE *fp) -{ - prcode(fp, -"\n" -"\n" - ); - - generateCppCodeBlock(mtd->hdrcode,fp); - - if (genused) - generateUsedIncludes(mtd->iff->used, TRUE, fp); - - prcode(fp, -"\n" -"#define sipMappedType_%T &sipMappedTypeDef_%T\n" -"#define sipForceConvertTo_%T sipMappedTypeDef_%T.mt_fcto\n" -"#define sipConvertFrom_%T sipMappedTypeDef_%T.mt_cfrom\n" -"\n" -"extern sipMappedType sipMappedTypeDef_%T;\n" - ,&mtd->type,&mtd->type - ,&mtd->type,&mtd->type - ,&mtd->type,&mtd->type - ,&mtd->type); -} - - -/* - * Generate the C++ header code for an imported class. - */ -static void generateImportedClassHeader(classDef *cd,sipSpec *pt,FILE *fp) -{ - char *mname = pt->module->name; - char *imname = cd->iff->module->name; - classDef *hcd; - - for (hcd = cd; hcd != NULL; hcd = hcd->ecd) - generateCppCodeBlock(hcd->hdrcode,fp); - - prcode(fp, -"\n" -"#define sipClass_%C sipModuleAPI_%s_%s->em_types[%d]\n" -"#define sipCast_%C sipModuleAPI_%s_%s->em_types[%d]->type->td_cast\n" -"#define sipForceConvertTo_%C sipModuleAPI_%s_%s->em_types[%d]->type->td_fcto\n" - ,classFQCName(cd),mname,imname,cd->classnr - ,classFQCName(cd),mname,imname,cd->classnr - ,classFQCName(cd),mname,imname,cd->classnr); - - generateEnumMacros(pt, cd, fp); -} - - -/* - * Generate the C++ header code for a generated class. - */ -static void generateClassHeader(classDef *cd,int genused,sipSpec *pt,FILE *fp) -{ - char *mname = pt->module->name; - classDef *hcd; - - for (hcd = cd; hcd != NULL; hcd = hcd->ecd) - generateCppCodeBlock(hcd->hdrcode,fp); - - if (genused) - generateUsedIncludes(cd->iff->used, TRUE, fp); - - if (cd->iff->type != namespace_iface) - { - prcode(fp, -"\n" -"#define sipClass_%C sipModuleAPI_%s.em_types[%d]\n" - ,classFQCName(cd),mname,cd->classnr); - - if (!isExternal(cd)) - prcode(fp, -"#define sipCast_%C sipType_%s_%C.td_cast\n" -"#define sipForceConvertTo_%C sipType_%s_%C.td_fcto\n" - , classFQCName(cd), mname, classFQCName(cd) - , classFQCName(cd), mname, classFQCName(cd)); - } - - generateEnumMacros(pt, cd, fp); - - if (!isExternal(cd)) - prcode(fp, -"\n" -"extern sipTypeDef sipType_%s_%C;\n" - , mname, classFQCName(cd)); - - if (hasShadow(cd)) - generateShadowClassDeclaration(pt,cd,fp); -} - - -/* - * Generate the sipEnum_* macros. - */ -static void generateEnumMacros(sipSpec *pt, classDef *cd, FILE *fp) -{ - enumDef *ed; - int noIntro = TRUE; - - for (ed = pt->enums; ed != NULL; ed = ed->next) - { - if (ed->fqcname == NULL || ed->ecd != cd) - continue; - - if (noIntro) - { - prcode(fp, -"\n" - ); - - noIntro = FALSE; - } - - prcode(fp, -"#define sipEnum_%C sipModuleAPI_%s", ed->fqcname, pt->module->name); - - if (pt->module == ed->module) - prcode(fp, "."); - else - prcode(fp, "_%s->", ed->module->name); - - prcode(fp, "em_enums[%d]\n" - , ed->enumnr); - } -} - - -/* - * Generate the shadow class declaration. - */ -static void generateShadowClassDeclaration(sipSpec *pt,classDef *cd,FILE *fp) -{ - int noIntro, nrVirts; - ctorDef *ct; - virtOverDef *vod; - classDef *pcd; - - prcode(fp, -"\n" -"\n" -"class sip%C : public %S\n" -"{\n" -"public:\n" - ,classFQCName(cd),classFQCName(cd)); - - /* Define a shadow class for any protected classes we have. */ - - for (pcd = pt->classes; pcd != NULL; pcd = pcd->next) - { - if (pcd->ecd != cd || !isProtectedClass(pcd)) - continue; - - prcode(fp, -" class sip%s : public %s {};\n" - ,classBaseName(pcd),classBaseName(pcd)); - } - - /* The constructor declarations. */ - - for (ct = cd->ctors; ct != NULL; ct = ct->next) - { - ctorDef *dct; - - if (isPrivateCtor(ct)) - continue; - - if (ct->cppsig == NULL) - continue; - - /* Check we haven't already handled this C++ signature. */ - for (dct = cd->ctors; dct != ct; dct = dct->next) - if (dct->cppsig != NULL && sameSignature(dct->cppsig, ct->cppsig, TRUE)) - break; - - if (dct != ct) - continue; - - prcode(fp, -" sip%C(",classFQCName(cd)); - - generateArgs(ct->cppsig,Declaration,fp); - - prcode(fp,")%X;\n" - ,ct->exceptions); - } - - /* The destructor. */ - - if (!isPrivateDtor(cd)) - prcode(fp, -" %s~sip%C()%X;\n" - ,(cd->vmembers != NULL ? "virtual " : ""),classFQCName(cd),cd->dtorexceptions); - - /* The metacall methods if required. */ - if (isQObjectSubClass(cd) && optQ_OBJECT4(pt)) - prcode(fp, -"\n" -" const TQMetaObject *metaObject() const;\n" -" int qt_metacall(TQMetaObject::Call,int,void **);\n" - ); - - /* The exposure of protected enums. */ - - generateProtectedEnums(pt,cd,fp); - - /* The wrapper around each protected member function. */ - - generateProtectedDeclarations(cd,fp); - - /* The public wrapper around each signal emitter. */ - if (!optNoEmitters(pt)) - { - visibleList *vl; - - noIntro = TRUE; - - for (vl = cd->visible; vl != NULL; vl = vl->next) - { - overDef *od; - - if (vl->m->slot != no_slot) - continue; - - for (od = vl->cd->overs; od != NULL; od = od->next) - { - if (od->common != vl->m || !isSignal(od)) - continue; - - if (noIntro) - { - prcode(fp, -"\n" -" /*\n" -" * There is a public method for every Qt signal that can be emitted\n" -" * by this object. This function is called by Python to emit the\n" -" * signal.\n" -" */\n" - ); - - noIntro = FALSE; - } - - prcode(fp, -" int sipEmit_%s(PyObject *);\n" - ,vl->m->pyname->text); - - break; - } - } - } - - /* The catcher around each virtual function in the hierarchy. */ - noIntro = TRUE; - - for (vod = cd->vmembers; vod != NULL; vod = vod->next) - { - overDef *od = &vod->o; - virtOverDef *dvod; - - if (isPrivate(od)) - continue; - - /* Check we haven't already handled this C++ signature. */ - for (dvod = cd->vmembers; dvod != vod; dvod = dvod->next) - if (strcmp(dvod->o.cppname,od->cppname) == 0 && sameSignature(dvod->o.cppsig,od->cppsig,TRUE)) - break; - - if (dvod != vod) - continue; - - if (noIntro) - { - prcode(fp, -"\n" -" /*\n" -" * There is a protected method for every virtual method visible from\n" -" * this class.\n" -" */\n" -"protected:\n" - ); - - noIntro = FALSE; - } - - prcode(fp, -" "); - - prOverloadDecl(fp, od, FALSE); - prcode(fp, ";\n"); - } - - prcode(fp, -"\n" -"public:\n" -" sipWrapper *sipPySelf;\n" - ); - - /* The private declarations. */ - - prcode(fp, -"\n" -"private:\n" -" sip%C(const sip%C &);\n" -" sip%C &operator = (const sip%C &);\n" - ,classFQCName(cd),classFQCName(cd) - ,classFQCName(cd),classFQCName(cd)); - - if ((nrVirts = countVirtuals(cd)) > 0) - prcode(fp, -"\n" -" sipMethodCache sipPyMethods[%d];\n" - ,nrVirts); - - prcode(fp, -"};\n" - ); -} - - -/* - * Generate the C++ declaration for an overload. - */ -void prOverloadDecl(FILE *fp, overDef *od, int defval) -{ - int a; - - normaliseArgs(od->cppsig); - - generateBaseType(&od->cppsig->result, fp); - - prcode(fp, " %O(", od); - - for (a = 0; a < od->cppsig->nrArgs; ++a) - { - argDef *ad = &od->cppsig->args[a]; - - if (a > 0) - prcode(fp, ","); - - generateBaseType(ad, fp); - - if (defval && ad->defval != NULL) - { - prcode(fp, " = "); - generateExpression(ad->defval, fp); - } - } - - prcode(fp, ")%s%X", (isConst(od) ? " const" : ""), od->exceptions); - - restoreArgs(od->cppsig); -} - - -/* - * Generate typed arguments. - */ -static void generateArgs(signatureDef *sd,funcArgType ftype,FILE *fp) -{ - int a; - - for (a = 0; a < sd->nrArgs; ++a) - { - if (a > 0) - prcode(fp,","); - - generateSingleArg(&sd->args[a],a,ftype,fp); - } -} - - -/* - * Generate the declaration of a named variable to hold a result from a C++ - * function call. - */ -static void generateNamedValueType(argDef *ad,char *name,FILE *fp) -{ - argDef mod = *ad; - - if (ad->nrderefs == 0) - if (ad->atype == class_type || ad->atype == mapped_type) - mod.nrderefs = 1; - else - resetIsConstArg(&mod); - - resetIsReference(&mod); - generateNamedBaseType(&mod,name,fp); -} - - -/* - * Generate a single argument. - */ -static void generateSingleArg(argDef *ad,int argnr,funcArgType ftype,FILE *fp) -{ - char name[50]; - int genType, genName, derefPtr; - - /* Break the type down to individual modifications. */ - - genType = FALSE; - genName = FALSE; - derefPtr = FALSE; - - switch (ftype) - { - case Call: - genName = TRUE; - derefPtr = TRUE; - break; - - case Declaration: - genType = TRUE; - break; - - case Definition: - genType = TRUE; - genName = TRUE; - break; - } - - if (genName) - { - char *ind = ""; - - if (derefPtr) - switch (ad->atype) - { - case sstring_type: - case ustring_type: - case string_type: - case wstring_type: - if (ad->nrderefs > (isOutArg(ad) ? 0 : 1)) - ind = "&"; - - break; - - case mapped_type: - case class_type: - if (ad->nrderefs == 2) - ind = "&"; - else if (ad->nrderefs == 0) - ind = "*"; - - break; - - case struct_type: - case void_type: - if (ad->nrderefs == 2) - ind = "&"; - - break; - - default: - if (ad->nrderefs == 1) - ind = "&"; - } - - sprintf(name,"%sa%d",ind,argnr); - } - else - name[0] = '\0'; - - if (genType) - generateNamedBaseType(ad,name,fp); - else if (genName) - prcode(fp,name); -} - - -/* - * Generate a C++ type. - */ -static void generateBaseType(argDef *ad,FILE *fp) -{ - generateNamedBaseType(ad,"",fp); -} - - -/* - * Generate a C++ type and name. - */ -static void generateNamedBaseType(argDef *ad,char *name,FILE *fp) -{ - int nr_derefs = ad->nrderefs; - - /* - * A function type is handled differently because of the position of - * the name. - */ - if (ad->atype == function_type) - { - int i; - signatureDef *sig = ad->u.sa; - - generateBaseType(&sig->result,fp); - - prcode(fp," ("); - - for (i = 0; i < nr_derefs; ++i) - prcode(fp,"*"); - - prcode(fp,"%s)(",name); - generateArgs(sig,Declaration,fp); - prcode(fp,")"); - - return; - } - - if (isConstArg(ad)) - prcode(fp,"const "); - - switch (ad->atype) - { - case sstring_type: - prcode(fp,"signed char"); - break; - - case ustring_type: - prcode(fp,"unsigned char"); - break; - - case wstring_type: - prcode(fp,"wchar_t"); - break; - - case signal_type: - case slot_type: - case anyslot_type: - case slotcon_type: - case slotdis_type: - nr_derefs = 1; - - /* Drop through. */ - - case string_type: - prcode(fp,"char"); - break; - - case ushort_type: - prcode(fp,"unsigned short"); - break; - - case short_type: - prcode(fp,"short"); - break; - - case uint_type: - prcode(fp,"unsigned"); - break; - - case int_type: - case cint_type: - prcode(fp,"int"); - break; - - case ulong_type: - prcode(fp,"unsigned long"); - break; - - case long_type: - prcode(fp,"long"); - break; - - case ulonglong_type: - prcode(fp,"unsigned PY_LONG_LONG"); - break; - - case longlong_type: - prcode(fp,"PY_LONG_LONG"); - break; - - case struct_type: - prcode(fp,"struct %S",ad->u.sname); - break; - - case void_type: - prcode(fp,"void"); - break; - - case bool_type: - case cbool_type: - prcode(fp,"bool"); - break; - - case float_type: - case cfloat_type: - prcode(fp,"float"); - break; - - case double_type: - case cdouble_type: - prcode(fp,"double"); - break; - - case defined_type: - /* - * The only defined types still remaining are arguments to - * templates. - */ - - prcode(fp,"%S",ad->u.snd); - break; - - case rxcon_type: - case rxdis_type: - nr_derefs = 1; - prcode(fp,"TQObject"); - break; - - case mapped_type: - generateBaseType(&ad->u.mtd->type,fp); - break; - - case class_type: - prcode(fp,"%U",ad->u.cd); - break; - - case template_type: - { - static const char tail[] = ">"; - int a; - templateDef *td = ad->u.td; - - prcode(fp, "%S%s", td->fqname, (prcode_xml ? "<" : "<")); - - for (a = 0; a < td->types.nrArgs; ++a) - { - if (a > 0) - prcode(fp,","); - - generateBaseType(&td->types.args[a],fp); - } - - if (prcode_last == tail) - prcode(fp, " "); - - prcode(fp, (prcode_xml ? ">" : tail)); - break; - } - - case enum_type: - prcode(fp,"%E",ad->u.ed); - break; - - case pyobject_type: - case pytuple_type: - case pylist_type: - case pydict_type: - case pycallable_type: - case pyslice_type: - case pytype_type: - case qobject_type: - case ellipsis_type: - prcode(fp, "PyObject *"); - break; - } - - if (nr_derefs > 0) - { - int i; - - prcode(fp," "); - - for (i = 0; i < nr_derefs; ++i) - prcode(fp,"*"); - } - - if (isReference(ad)) - prcode(fp, (prcode_xml ? "&" : "&")); - - if (*name != '\0') - { - if (nr_derefs == 0) - prcode(fp," "); - - prcode(fp,name); - } -} - - -/* - * Generate the definition of an argument variable and any supporting - * variables. - */ -static void generateVariable(argDef *ad,int argnr,FILE *fp) -{ - argType atype = ad->atype; - argDef orig; - - if (isInArg(ad) && ad->defval != NULL && - (atype == class_type || atype == mapped_type) && - (ad->nrderefs == 0 || isReference(ad))) - { - /* - * Generate something to hold the default value as it cannot be - * assigned straight away. - */ - prcode(fp, -" %B a%ddef = ",ad,argnr); - - generateExpression(ad->defval,fp); - - prcode(fp,";\n" - ); - } - - /* Adjust the type so we have the type that will really handle it. */ - - orig = *ad; - - switch (atype) - { - case sstring_type: - case ustring_type: - case string_type: - case wstring_type: - if (!isReference(ad)) - if (ad->nrderefs == 2) - ad->nrderefs = 1; - else if (ad->nrderefs == 1 && isOutArg(ad)) - ad->nrderefs = 0; - - break; - - case mapped_type: - case class_type: - case void_type: - case struct_type: - ad->nrderefs = 1; - break; - - default: - ad->nrderefs = 0; - } - - /* Array sizes are always integers. */ - if (isArraySize(ad)) - ad->atype = int_type; - - resetIsReference(ad); - - if (ad->nrderefs == 0) - resetIsConstArg(ad); - - prcode(fp, -" %B a%d",ad,argnr); - - if (atype == anyslot_type) - prcode(fp, "Name"); - - *ad = orig; - - generateDefaultValue(ad, argnr, fp); - - prcode(fp,";\n" - ); - - /* Some types have supporting variables. */ - if (isInArg(ad)) - switch (atype) - { - case class_type: - if (ad->u.cd->convtocode != NULL && !isConstrained(ad)) - prcode(fp, -" int a%dState = 0;\n" - ,argnr); - - if (isGetWrapper(ad)) - prcode(fp, -" PyObject *a%dWrapper;\n" - ,argnr); - - break; - - case mapped_type: - prcode(fp, -" int a%dState = 0;\n" - ,argnr); - break; - - case anyslot_type: - prcode(fp, -" PyObject *a%dCallable", argnr); - generateDefaultValue(ad, argnr, fp); - prcode(fp, ";\n" - ); - break; - } -} - - -/* - * Generate a default value. - */ -static void generateDefaultValue(argDef *ad, int argnr, FILE *fp) -{ - if (isInArg(ad) && ad->defval != NULL) - { - prcode(fp," = "); - - if ((ad->atype == class_type || ad->atype == mapped_type) && - (ad->nrderefs == 0 || isReference(ad))) - prcode(fp, "&a%ddef", argnr); - else - generateExpression(ad->defval,fp); - } -} - - -/* - * Generate a simple function call. - */ -static void generateSimpleFunctionCall(fcallDef *fcd,FILE *fp) -{ - int i; - - prcode(fp, "%B(", &fcd->type); - - for (i = 0; i < fcd->nrArgs; ++i) - { - if (i > 0) - prcode(fp,","); - - generateExpression(fcd->args[i],fp); - } - - prcode(fp,")"); -} - - -/* - * Generate the type structure that contains all the information needed by the - * metatype. A sub-set of this is used to extend namespaces. - */ -static void generateTypeDefinition(sipSpec *pt, classDef *cd, FILE *fp) -{ - char *mname = pt->module->name; - const char *sep; - int is_slots, nr_methods, nr_enums; - int is_inst_class, is_inst_voidp, is_inst_char, is_inst_string; - int is_inst_int, is_inst_long, is_inst_ulong, is_inst_longlong; - int is_inst_ulonglong, is_inst_double, is_inst_enum; - memberDef *md; - - if (cd->supers != NULL) - { - classList *cl; - - prcode(fp, -"\n" -"\n" -"/* Define this type's super-types. */\n" -"static sipEncodedClassDef supers_%C[] = {",classFQCName(cd)); - - for (cl = cd->supers; cl != NULL; cl = cl->next) - { - if (cl != cd->supers) - prcode(fp,", "); - - generateEncodedClass(pt,cl->cd,(cl->next == NULL),fp); - } - - prcode(fp,"};\n" - ); - } - - /* Generate the slots table. */ - is_slots = FALSE; - - for (md = cd->members; md != NULL; md = md->next) - { - const char *stype; - - if (md->slot == no_slot) - continue; - - if (!is_slots) - { - prcode(fp, -"\n" -"\n" -"/* Define this type's Python slots. */\n" -"static sipPySlotDef slots_%C[] = {\n" - ,classFQCName(cd)); - - is_slots = TRUE; - } - - if ((stype = slotName(md->slot)) != NULL) - prcode(fp, -" {(void *)slot_%C_%s, %s},\n" - ,classFQCName(cd),md->pyname->text,stype); - } - - if (is_slots) - prcode(fp, -" {0, (sipPySlotType)0}\n" -"};\n" - ); - - /* Generate the attributes tables. */ - nr_methods = generateMethodTable(cd,fp); - nr_enums = generateEnumMemberTable(pt,cd,fp); - - /* Generate each instance table. */ - is_inst_class = generateClasses(pt,cd,fp); - is_inst_voidp = generateVoidPointers(pt,cd,fp); - is_inst_char = generateChars(pt,cd,fp); - is_inst_string = generateStrings(pt,cd,fp); - is_inst_int = generateInts(pt,cd,fp); - is_inst_long = generateLongs(pt,cd,fp); - is_inst_ulong = generateUnsignedLongs(pt,cd,fp); - is_inst_longlong = generateLongLongs(pt,cd,fp); - is_inst_ulonglong = generateUnsignedLongLongs(pt,cd,fp); - is_inst_double = generateDoubles(pt,cd,fp); - is_inst_enum = generateEnums(pt,cd,fp); - - prcode(fp, -"\n" -"\n" -"sipTypeDef sipType_%s_%C = {\n" -" 0,\n" -" ", mname, classFQCName(cd)); - - sep = ""; - - if (cd->userflags) - { - prcode(fp, "%s%x", sep, ((cd->userflags << TYPE_FLAGS_SHIFT) & TYPE_FLAGS_MASK)); - sep = "|"; - } - - if (isAbstractClass(cd)) - { - prcode(fp, "%sSIP_TYPE_ABSTRACT", sep); - sep = "|"; - } - - if (cd->subbase != NULL) - { - prcode(fp, "%sSIP_TYPE_SCC", sep); - sep = "|"; - } - - if (*sep == '\0') - prcode(fp, "0"); - - prcode(fp, ",\n"); - - if (cd->real != NULL) - prcode(fp, -" 0,\n" - ); - else if (cd->ecd != NULL && cd->ecd->real != NULL) - prcode(fp, -" \"%s.%P\",\n" - , cd->ecd->real->iff->module->name, cd->ecd, cd->pyname); - else - prcode(fp, -" \"%s.%P\",\n" - , mname, cd->ecd, cd->pyname); - - if (isRenamedClass(cd)) - prcode(fp, -" \"%S\",\n" - , classFQCName(cd)); - else - prcode(fp, -" 0,\n" - ); - - prcode(fp, -" "); - - if (cd->real != NULL) - generateEncodedClass(pt, cd->real, 0, fp); - else if (cd->ecd != NULL) - generateEncodedClass(pt, cd->ecd, 0, fp); - else - prcode(fp, "{0, 0, 1}"); - - prcode(fp, ",\n" - ); - - if (cd->supers != NULL) - prcode(fp, -" supers_%C,\n" - ,classFQCName(cd)); - else - prcode(fp, -" 0,\n" - ); - - if (is_slots) - prcode(fp, -" slots_%C,\n" - ,classFQCName(cd)); - else - prcode(fp, -" 0,\n" - ); - - if (nr_methods == 0) - prcode(fp, -" 0, 0,\n" - ); - else - prcode(fp, -" %d, methods_%C,\n" - ,nr_methods,classFQCName(cd)); - - if (nr_enums == 0) - prcode(fp, -" 0, 0,\n" - ); - else - prcode(fp, -" %d, enummembers_%C,\n" - ,nr_enums,classFQCName(cd)); - - if (hasVarHandlers(cd)) - prcode(fp, -" variables_%C,\n" - ,classFQCName(cd)); - else - prcode(fp, -" 0,\n" - ); - - if (canCreate(cd)) - prcode(fp, -" init_%C,\n" - ,classFQCName(cd)); - else - prcode(fp, -" 0,\n" - ); - - if (cd->travcode != NULL) - prcode(fp, -" traverse_%C,\n" - ,classFQCName(cd)); - else - prcode(fp, -" 0,\n" - ); - - if (cd->clearcode != NULL) - prcode(fp, -" clear_%C,\n" - ,classFQCName(cd)); - else - prcode(fp, -" 0,\n" - ); - - if (cd->readbufcode != NULL) - prcode(fp, -" getreadbuffer_%C,\n" - ,classFQCName(cd)); - else - prcode(fp, -" 0,\n" - ); - - if (cd->writebufcode != NULL) - prcode(fp, -" getwritebuffer_%C,\n" - ,classFQCName(cd)); - else - prcode(fp, -" 0,\n" - ); - - if (cd->segcountcode != NULL) - prcode(fp, -" getsegcount_%C,\n" - ,classFQCName(cd)); - else - prcode(fp, -" 0,\n" - ); - - if (cd->charbufcode != NULL) - prcode(fp, -" getcharbuffer_%C,\n" - ,classFQCName(cd)); - else - prcode(fp, -" 0,\n" - ); - - if (needDealloc(cd)) - prcode(fp, -" dealloc_%C,\n" - ,classFQCName(cd)); - else - prcode(fp, -" 0,\n" - ); - - if (cd->iff->type == namespace_iface || generating_c) - prcode(fp, -" 0,\n" -" 0,\n" - ); - else - prcode(fp, -" cast_%C,\n" -" release_%C,\n" - , classFQCName(cd) - , classFQCName(cd)); - - if (cd->iff->type == namespace_iface) - prcode(fp, -" 0,\n" -" 0,\n" - ); - else - { - prcode(fp, -" forceConvertTo_%C,\n" - ,classFQCName(cd)); - - if (cd->convtocode != NULL) - prcode(fp, -" convertTo_%C,\n" - ,classFQCName(cd)); - else - prcode(fp, -" 0,\n" - ); - } - - if (!optNoEmitters(pt) && hasSigSlots(cd)) - prcode(fp, -" signals_%C,\n" - ,classFQCName(cd)); - else - prcode(fp, -" 0,\n" - ); - - prcode(fp, -" {"); - - if (is_inst_class) - prcode(fp,"classInstances_%C, ",classFQCName(cd)); - else - prcode(fp,"0, "); - - if (is_inst_voidp) - prcode(fp,"voidPtrInstances_%C, ",classFQCName(cd)); - else - prcode(fp,"0, "); - - if (is_inst_char) - prcode(fp,"charInstances_%C, ",classFQCName(cd)); - else - prcode(fp,"0, "); - - if (is_inst_string) - prcode(fp,"stringInstances_%C, ",classFQCName(cd)); - else - prcode(fp,"0, "); - - if (is_inst_int) - prcode(fp,"intInstances_%C, ",classFQCName(cd)); - else - prcode(fp,"0, "); - - if (is_inst_long) - prcode(fp,"longInstances_%C, ",classFQCName(cd)); - else - prcode(fp,"0, "); - - if (is_inst_ulong) - prcode(fp,"unsignedLongInstances_%C, ",classFQCName(cd)); - else - prcode(fp,"0, "); - - if (is_inst_longlong) - prcode(fp,"longLongInstances_%C, ",classFQCName(cd)); - else - prcode(fp,"0, "); - - if (is_inst_ulonglong) - prcode(fp,"unsignedLongLongInstances_%C, ",classFQCName(cd)); - else - prcode(fp,"0, "); - - if (is_inst_double) - prcode(fp,"doubleInstances_%C, ",classFQCName(cd)); - else - prcode(fp,"0, "); - - if (is_inst_enum) - prcode(fp,"enumInstances_%C",classFQCName(cd)); - else - prcode(fp,"0"); - - prcode(fp,"},\n" -" 0\n" -"};\n" - ); -} - - -/* - * Return the sip module's string equivalent of a slot. - */ -static const char *slotName(slotType st) -{ - const char *sn; - - switch (st) - { - case str_slot: - sn = "str_slot"; - break; - - case int_slot: - sn = "int_slot"; - break; - - case long_slot: - sn = "long_slot"; - break; - - case float_slot: - sn = "float_slot"; - break; - - case len_slot: - sn = "len_slot"; - break; - - case contains_slot: - sn = "contains_slot"; - break; - - case add_slot: - sn = "add_slot"; - break; - - case concat_slot: - sn = "concat_slot"; - break; - - case sub_slot: - sn = "sub_slot"; - break; - - case mul_slot: - sn = "mul_slot"; - break; - - case repeat_slot: - sn = "repeat_slot"; - break; - - case div_slot: - sn = "div_slot"; - break; - - case mod_slot: - sn = "mod_slot"; - break; - - case and_slot: - sn = "and_slot"; - break; - - case or_slot: - sn = "or_slot"; - break; - - case xor_slot: - sn = "xor_slot"; - break; - - case lshift_slot: - sn = "lshift_slot"; - break; - - case rshift_slot: - sn = "rshift_slot"; - break; - - case iadd_slot: - sn = "iadd_slot"; - break; - - case iconcat_slot: - sn = "iconcat_slot"; - break; - - case isub_slot: - sn = "isub_slot"; - break; - - case imul_slot: - sn = "imul_slot"; - break; - - case irepeat_slot: - sn = "irepeat_slot"; - break; - - case idiv_slot: - sn = "idiv_slot"; - break; - - case imod_slot: - sn = "imod_slot"; - break; - - case iand_slot: - sn = "iand_slot"; - break; - - case ior_slot: - sn = "ior_slot"; - break; - - case ixor_slot: - sn = "ixor_slot"; - break; - - case ilshift_slot: - sn = "ilshift_slot"; - break; - - case irshift_slot: - sn = "irshift_slot"; - break; - - case invert_slot: - sn = "invert_slot"; - break; - - case call_slot: - sn = "call_slot"; - break; - - case getitem_slot: - sn = "getitem_slot"; - break; - - case setitem_slot: - sn = "setitem_slot"; - break; - - case delitem_slot: - sn = "delitem_slot"; - break; - - case lt_slot: - sn = "lt_slot"; - break; - - case le_slot: - sn = "le_slot"; - break; - - case eq_slot: - sn = "eq_slot"; - break; - - case ne_slot: - sn = "ne_slot"; - break; - - case gt_slot: - sn = "gt_slot"; - break; - - case ge_slot: - sn = "ge_slot"; - break; - - case cmp_slot: - sn = "cmp_slot"; - break; - - case nonzero_slot: - sn = "nonzero_slot"; - break; - - case neg_slot: - sn = "neg_slot"; - break; - - case pos_slot: - sn = "pos_slot"; - break; - - case abs_slot: - sn = "abs_slot"; - break; - - case repr_slot: - sn = "repr_slot"; - break; - - case hash_slot: - sn = "hash_slot"; - break; - - default: - sn = NULL; - } - - return sn; -} - - -/* - * Generate the code to register a class as a Qt metatype. - */ -static void generateRegisterMetaType(classDef *cd, FILE *fp) -{ - int pub_def_ctor, pub_copy_ctor; - ctorDef *ct; - - /* - * We register types with Qt if the class is not abstract, has a public - * default ctor, a public copy ctor, a public dtor and isn't one of the - * internally supported types. - */ - if (isAbstractClass(cd)) - return; - - if (!isPublicDtor(cd)) - return; - - if (classFQCName(cd)->next == NULL) - { - if (strcmp(classBaseName(cd), "TQChar") == 0) - return; - - if (strcmp(classBaseName(cd), "TQString") == 0) - return; - - if (strcmp(classBaseName(cd), "TQByteArray") == 0) - return; - } - - pub_def_ctor = pub_copy_ctor = FALSE; - - for (ct = cd->ctors; ct != NULL; ct = ct->next) - { - if (ct->cppsig == NULL || !isPublicCtor(ct)) - continue; - - if (ct->cppsig->nrArgs == 0) - pub_def_ctor = TRUE; - else if (ct->cppsig->nrArgs == 1) - { - argDef *ad = &ct->cppsig->args[0]; - - if (ad->atype == class_type && ad->u.cd == cd && isReference(ad) && - isConstArg(ad) && ad->nrderefs == 0 && ad->defval == NULL) - pub_copy_ctor = TRUE; - } - } - - if (pub_def_ctor && pub_copy_ctor) - prcode(fp, -" qRegisterMetaType<%S>(\"%S\");\n" - , classFQCName(cd), classFQCName(cd)); -} - - -/* - * Generate the initialisation function or cast operators for the type. - */ -static void generateTypeInit(sipSpec *pt, classDef *cd, FILE *fp) -{ - ctorDef *ct; - int need_self, need_owner; - - /* - * See if we need to name the self and owner arguments so that we can - * avoid a compiler warning about an unused argument. - */ - need_self = (generating_c || hasShadow(cd)); - need_owner = generating_c; - - for (ct = cd->ctors; ct != NULL; ct = ct->next) - { - int a; - - if (usedInCode(ct->methodcode, "sipSelf")) - need_self = TRUE; - - for (a = 0; a < ct->pysig.nrArgs; ++a) - if (isThisTransferred(&ct->pysig.args[a])) - { - need_owner = TRUE; - break; - } - } - - prcode(fp, -"\n" -"\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static void *init_%C(sipWrapper *, PyObject *, sipWrapper **, int *);}\n" - , classFQCName(cd)); - - prcode(fp, -"static void *init_%C(sipWrapper *%s,PyObject *sipArgs,sipWrapper **%s,int *sipArgsParsed)\n" -"{\n" - ,classFQCName(cd),(need_self ? "sipSelf" : ""),(need_owner ? "sipOwner" : "")); - - if (hasShadow(cd)) - prcode(fp, -" sip%C *sipCpp = 0;\n" - ,classFQCName(cd)); - else - prcode(fp, -" %U *sipCpp = 0;\n" - ,cd); - - if (tracing) - prcode(fp, -"\n" -" sipTrace(SIP_TRACE_INITS,\"init_%C()\\n\");\n" - ,classFQCName(cd)); - - /* - * Generate the code that parses the Python arguments and calls the - * correct constructor. - */ - for (ct = cd->ctors; ct != NULL; ct = ct->next) - { - int needSecCall, error_flag = FALSE; - - if (isPrivateCtor(ct)) - continue; - - prcode(fp, -"\n" -" if (!sipCpp)\n" -" {\n" - ); - - if (ct->methodcode != NULL && needErrorFlag(ct->methodcode)) - { - prcode(fp, -" int sipIsErr = 0;\n" - ); - - error_flag = TRUE; - } - - needSecCall = generateArgParser(pt, &ct->pysig, cd, ct, NULL, FALSE, fp); - generateConstructorCall(cd,ct,error_flag,fp); - - if (needSecCall) - { - prcode(fp, -" }\n" -"\n" -" if (!sipCpp)\n" -" {\n" - ); - - if (error_flag) - prcode(fp, -" int sipIsErr = 0;\n" - ); - - generateArgParser(pt, &ct->pysig, cd, ct, NULL, TRUE, fp); - generateConstructorCall(cd,ct,error_flag,fp); - } - - prcode(fp, -" }\n" - ); - } - - if (hasShadow(cd)) - prcode(fp, -"\n" -" if (sipCpp)\n" -" sipCpp->sipPySelf = sipSelf;\n" - ); - - prcode(fp, -"\n" -" return sipCpp;\n" -"}\n" - ); -} - - -/* - * Count the number of virtual members in a class. - */ -static int countVirtuals(classDef *cd) -{ - int nrvirts; - virtOverDef *vod; - - nrvirts = 0; - - for (vod = cd->vmembers; vod != NULL; vod = vod->next) - if (!isPrivate(&vod->o)) - ++nrvirts; - - return nrvirts; -} - - -/* - * Generate the try block for a call. - */ -static void generateTry(throwArgs *ta,FILE *fp) -{ - /* - * Generate the block if there was no throw specifier, or a non-empty - * throw specifier. - */ - if (exceptions && (ta == NULL || ta->nrArgs > 0)) - prcode(fp, -" try\n" -" {\n" - ); -} - - -/* - * Generate the catch block for a call. - */ -static void generateCatch(throwArgs *ta, signatureDef *sd, FILE *fp) -{ - /* - * Generate the block if there was no throw specifier, or a non-empty - * throw specifier. - */ - if (exceptions && (ta == NULL || ta->nrArgs > 0)) - { - prcode(fp, -" }\n" - ); - - if (ta == NULL) - { - prcode(fp, -" catch (...)\n" -" {\n" - ); - - deleteTemps(sd, fp); - - if (release_gil) - prcode(fp, -" Py_BLOCK_THREADS\n" -"\n" - ); - - prcode(fp, -" sipRaiseUnknownException();\n" -" return NULL;\n" -" }\n" - ); - } - else - { - int a; - - for (a = 0; a < ta->nrArgs; ++a) - { - exceptionDef *xd = ta->args[a]; - scopedNameDef *ename = xd->iff->fqcname; - - prcode(fp, -" catch (%S &%s)\n" -" {\n" - ,ename,(xd->cd != NULL || usedInCode(xd->raisecode, "sipExceptionRef")) ? "sipExceptionRef" : ""); - - deleteTemps(sd, fp); - - if (xd->cd != NULL) - { - /* The exception is a wrapped class. */ - - prcode(fp, -" /* Hope that there is a valid copy ctor. */\n" -" %S *sipExceptionCopy = new %S(sipExceptionRef);\n" -"\n" - ,ename,ename); - - if (release_gil) - prcode(fp, -" Py_BLOCK_THREADS\n" -"\n" - ); - - prcode(fp, -" sipRaise%sClassException(sipClass_%C,sipExceptionCopy);\n" - ,(xd->cd->subbase != NULL ? "Sub" : ""),ename); - } - else - generateCppCodeBlock(xd->raisecode,fp); - - prcode(fp, -"\n" -" return NULL;\n" -" }\n" - ); - } - } - } -} - - -/* - * Generate a throw specifier. - */ -static void generateThrowSpecifier(throwArgs *ta,FILE *fp) -{ - if (exceptions && ta != NULL) - { - int a; - - prcode(fp," throw("); - - for (a = 0; a < ta->nrArgs; ++a) - { - if (a > 0) - prcode(fp,","); - - prcode(fp,"%S",ta->args[a]->iff->fqcname); - } - - prcode(fp,")"); - } -} - - -/* - * Generate a single constructor call. - */ -static void generateConstructorCall(classDef *cd,ctorDef *ct,int error_flag, - FILE *fp) -{ - prcode(fp, -" {\n" - ); - - /* Call any pre-hook. */ - if (ct->prehook != NULL) - prcode(fp, -" sipCallHook(\"%s\");\n" -"\n" - ,ct->prehook); - - if (ct->methodcode != NULL) - generateCppCodeBlock(ct->methodcode,fp); - else if (generating_c) - prcode(fp, -" sipCpp = sipMalloc(sizeof (%S));\n" - ,classFQCName(cd)); - else - { - int rgil = ((release_gil || isReleaseGILCtor(ct)) && !isHoldGILCtor(ct)); - - if (rgil) - prcode(fp, -" Py_BEGIN_ALLOW_THREADS\n" - ); - - generateTry(ct->exceptions,fp); - - if (hasShadow(cd)) - prcode(fp, -" sipCpp = new sip%C(",classFQCName(cd)); - else - prcode(fp, -" sipCpp = new %U(",cd); - - if (isCastCtor(ct)) - { - classDef *ocd; - - /* We have to fiddle the type to generate the correct code. */ - ocd = ct->pysig.args[0].u.cd; - ct->pysig.args[0].u.cd = cd; - prcode(fp, "a0->operator %B()", &ct->pysig.args[0]); - ct->pysig.args[0].u.cd = ocd; - } - else - generateArgs(ct->cppsig, Call, fp); - - prcode(fp,");\n" - ); - - generateCatch(ct->exceptions, &ct->pysig, fp); - - if (rgil) - prcode(fp, -" Py_END_ALLOW_THREADS\n" - ); - } - - gc_ellipsis(&ct->pysig, fp); - - deleteTemps(&ct->pysig, fp); - - if (error_flag) - prcode(fp, -"\n" -" if (sipIsErr)\n" -" return 0;\n" - ); - - /* Call any post-hook. */ - if (ct->posthook != NULL) - prcode(fp, -"\n" -" sipCallHook(\"%s\");\n" - ,ct->posthook); - - prcode(fp, -" }\n" - ); -} - - -/* - * See if a member overload should be skipped. - */ -static int skipOverload(overDef *od,memberDef *md,classDef *cd,classDef *ccd, - int want_local) -{ - /* Skip if it's not the right name. */ - if (od->common != md) - return TRUE; - - /* Skip if it's a signal. */ - if (isSignal(od)) - return TRUE; - - /* Skip if it's a private abstract. */ - if (isAbstract(od) && isPrivate(od)) - return TRUE; - - /* - * If we are disallowing them, skip if it's not in the current class - * unless it is protected. - */ - if (want_local && !isProtected(od) && ccd != cd) - return TRUE; - - return FALSE; -} - - -/* - * Generate a class member function. - */ -static void generateFunction(sipSpec *pt,memberDef *md,overDef *overs, - classDef *cd,classDef *ocd,FILE *fp) -{ - overDef *od; - int need_method, need_self, need_args, need_selfarg; - - /* - * Check that there is at least one overload that needs to be handled. - * See if we can avoid naming the "self" argument (and suppress a - * compiler warning). Finally see if we need to remember if "self" was - * explicitly passed as an argument. - */ - need_method = need_self = need_args = need_selfarg = FALSE; - - for (od = overs; od != NULL; od = od->next) - { - /* - * Skip protected methods if we don't have the means to handle - * them. - */ - if (isProtected(od) && !hasShadow(cd)) - continue; - - if (!skipOverload(od,md,cd,ocd,TRUE)) - { - need_method = TRUE; - - if (!isPrivate(od)) - { - need_args = TRUE; - - if (!isStatic(od)) - { - need_self = TRUE; - - if (isAbstract(od) || isVirtual(od) || isVirtualReimp(od) || usedInCode(od->methodcode, "sipSelfWasArg")) - need_selfarg = TRUE; - } - } - } - } - - if (need_method) - { - char *pname = md->pyname->text; - - prcode(fp, -"\n" -"\n" - ); - - if (!generating_c) - prcode(fp, -"extern \"C\" {static PyObject *meth_%C_%s(PyObject *, PyObject *);}\n" - , classFQCName(cd), pname); - - prcode(fp, -"static PyObject *meth_%C_%s(PyObject *%s,PyObject *%s)\n" -"{\n" - ,classFQCName(cd),pname,(need_self ? "sipSelf" : ""),(need_args ? "sipArgs" : "")); - - if (tracing) - prcode(fp, -" sipTrace(SIP_TRACE_METHODS,\"meth_%C_%s()\\n\");\n" -"\n" - ,classFQCName(cd),pname); - - if (need_args) - prcode(fp, -" int sipArgsParsed = 0;\n" - ); - - if (need_selfarg) - prcode(fp, -" bool sipSelfWasArg = !sipSelf;\n" - ); - - for (od = overs; od != NULL; od = od->next) - { - /* - * If we are handling one variant then we must handle - * them all. - */ - if (skipOverload(od,md,cd,ocd,FALSE)) - continue; - - if (isPrivate(od)) - continue; - - generateFunctionBody(pt,od,cd,ocd,TRUE,fp); - } - - prcode(fp, -"\n" -" /* Raise an exception if the arguments couldn't be parsed. */\n" -" sipNoMethod(%s,%N,%N);\n" -"\n" -" return NULL;\n" -"}\n" - ,(need_args ? "sipArgsParsed" : "0"),cd->iff->name,md->pyname); - } -} - - -/* - * Generate the function calls for a particular overload. - */ -static void generateFunctionBody(sipSpec *pt,overDef *od,classDef *cd, - classDef *ocd,int deref,FILE *fp) -{ - int needSecCall; - signatureDef saved; - - prcode(fp, -"\n" -" {\n" - ); - - /* In case we have to fiddle with it. */ - saved = od->pysig; - - if (isNumberSlot(od->common)) - { - /* - * Number slots must have two arguments because we parse them - * slightly differently. - */ - if (od->pysig.nrArgs == 1) - { - od->pysig.nrArgs = 2; - od->pysig.args[1] = od->pysig.args[0]; - - /* Insert self as the first argument. */ - od->pysig.args[0].atype = class_type; - od->pysig.args[0].name = NULL; - od->pysig.args[0].argflags = ARG_IS_REF|ARG_IN; - od->pysig.args[0].nrderefs = 0; - od->pysig.args[0].defval = NULL; - od->pysig.args[0].u.cd = ocd; - } - - generateArgParser(pt, &od->pysig, cd, NULL, od, FALSE, fp); - needSecCall = FALSE; - } - else if (isIntArgSlot(od->common) || isZeroArgSlot(od->common)) - needSecCall = FALSE; - else - needSecCall = generateArgParser(pt, &od->pysig, cd, NULL, od, FALSE, fp); - - generateFunctionCall(cd,ocd,od,deref,fp); - - if (needSecCall) - { - prcode(fp, -" }\n" -"\n" -" {\n" - ); - - generateArgParser(pt, &od->pysig, cd, NULL, od, TRUE, fp); - generateFunctionCall(cd,ocd,od,deref,fp); - } - - prcode(fp, -" }\n" - ); - - od->pysig = saved; -} - - -/* - * Generate the code to handle the result of a call to a member function. - */ -static void generateHandleResult(overDef *od,int isNew,char *prefix,FILE *fp) -{ - char *vname, vnamebuf[50]; - int a, nrvals, only, has_owner; - argDef *res, *ad; - - res = &od->pysig.result; - - if (res->atype == void_type && res->nrderefs == 0) - res = NULL; - - /* See if we are returning 0, 1 or more values. */ - nrvals = 0; - - if (res != NULL) - { - only = -1; - ++nrvals; - } - - has_owner = FALSE; - - for (a = 0; a < od->pysig.nrArgs; ++a) - { - if (isOutArg(&od->pysig.args[a])) - { - only = a; - ++nrvals; - } - - if (isThisTransferred(&od->pysig.args[a])) - has_owner = TRUE; - } - - /* Handle the trivial case. */ - if (nrvals == 0) - { - prcode(fp, -" Py_INCREF(Py_None);\n" -" %s Py_None;\n" - ,prefix); - - return; - } - - /* Handle results that are classes or mapped types separately. */ - if (res != NULL) - if (res->atype == mapped_type) - { - prcode(fp, -" PyObject *sipResObj = sipConvertFromMappedType("); - - if (isConstArg(res)) - prcode(fp,"const_cast<%b *>(sipRes)",res); - else - prcode(fp,"sipRes"); - - prcode(fp,",sipMappedType_%T,%s);\n" - , res, isResultTransferredBack(od) ? "Py_None" : "NULL"); - - if (isNew) - prcode(fp, -" delete sipRes;\n" - ); - - /* Shortcut if this is the only value returned. */ - if (nrvals == 1) - { - prcode(fp, -"\n" -" %s sipResObj;\n" - ,prefix); - - return; - } - } - else if (res->atype == class_type) - { - classDef *cd = res->u.cd; - - if (isNew || isFactory(od)) - { - prcode(fp, -" %s sipConvertFromNewInstance(",(nrvals == 1 ? prefix : "PyObject *sipResObj =")); - - if (isConstArg(res)) - prcode(fp,"const_cast<%b *>(sipRes)",res); - else - prcode(fp,"sipRes"); - - prcode(fp,",sipClass_%C,%s);\n" - ,classFQCName(cd),((has_owner && isFactory(od)) ? "(PyObject *)sipOwner" : "NULL")); - - /* - * Shortcut if this is the only value returned. - */ - if (nrvals == 1) - return; - } - else - { - prcode(fp, -" %s sipConvertFromInstance(",(nrvals == 1 ? prefix : "PyObject *sipResObj =")); - - if (isConstArg(res)) - prcode(fp,"const_cast<%b *>(sipRes)",res); - else - prcode(fp,"sipRes"); - - prcode(fp, ",sipClass_%C,%s);\n" - , classFQCName(cd), (isResultTransferredBack(od) ? "Py_None" : "NULL")); - - /* - * Shortcut if this is the only value returned. - */ - if (nrvals == 1) - return; - } - } - - /* If there are multiple values then build a tuple. */ - if (nrvals > 1) - { - prcode(fp, -" %s sipBuildResult(0,\"(",prefix); - - /* Build the format string. */ - if (res != NULL) - prcode(fp,"%c",((res->atype == mapped_type || res->atype == class_type) ? 'R' : getBuildResultFormat(res))); - - for (a = 0; a < od->pysig.nrArgs; ++a) - { - argDef *ad = &od->pysig.args[a]; - - if (isOutArg(ad)) - prcode(fp,"%c",getBuildResultFormat(ad)); - } - - prcode(fp,")\""); - - /* Pass the values for conversion. */ - if (res != NULL) - { - prcode(fp,",sipRes"); - - if (res->atype == mapped_type || res->atype == class_type) - prcode(fp,"Obj"); - else if (res->atype == enum_type && res->u.ed->fqcname != NULL) - prcode(fp,",sipEnum_%C",res->u.ed->fqcname); - } - - for (a = 0; a < od->pysig.nrArgs; ++a) - { - argDef *ad = &od->pysig.args[a]; - - if (isOutArg(ad)) - { - prcode(fp,",a%d",a); - - if (ad->atype == mapped_type) - prcode(fp, ",sipMappedType_%T,%s", ad, (isTransferredBack(ad) ? "Py_None" : "NULL")); - else if (ad->atype == class_type) - prcode(fp, ",sipClass_%C,%s", classFQCName(ad->u.cd), (isTransferredBack(ad) ? "Py_None" : "NULL")); - else if (ad->atype == enum_type && ad->u.ed->fqcname != NULL) - prcode(fp,",sipEnum_%C",ad->u.ed->fqcname); - } - } - - prcode(fp,");\n" - ); - - /* All done for multiple values. */ - return; - } - - /* Deal with the only returned value. */ - if (only < 0) - { - ad = res; - vname = "sipRes"; - } - else - { - ad = &od->pysig.args[only]; - - sprintf(vnamebuf,"a%d",only); - vname = vnamebuf; - } - - switch (ad->atype) - { - case mapped_type: - prcode(fp, -" %s sipConvertFromMappedType(", prefix); - - if (isConstArg(ad)) - prcode(fp,"const_cast<%b *>(%s)",ad,vname); - else - prcode(fp,"%s",vname); - - prcode(fp,",sipMappedType_%T,%s);\n" - , ad, (isTransferredBack(ad) ? "Py_None" : "NULL")); - - break; - - case class_type: - { - classDef *cd = ad->u.cd; - int needNew = needNewInstance(ad); - - if (needNew) - prcode(fp, -" %s sipConvertFromNewInstance(", prefix); - else - prcode(fp, -" %s sipConvertFromInstance(", prefix); - - if (isConstArg(ad)) - prcode(fp,"const_cast<%b *>(%s)",ad,vname); - else - prcode(fp,"%s",vname); - - prcode(fp,",sipClass_%C,",classFQCName(cd)); - - if (needNew) - prcode(fp,"NULL"); - else - prcode(fp,"%s\n" - , (isTransferredBack(ad) ? "Py_None" : "NULL")); - - prcode(fp,");\n" - ); - } - - break; - - case bool_type: - case cbool_type: - prcode(fp, -" %s PyBool_FromLong(%s);\n" - ,prefix,vname); - - break; - - case sstring_type: - case ustring_type: - case string_type: - if (ad->nrderefs == 0) - prcode(fp, -" %s PyString_FromStringAndSize(%s&%s,1);\n" - ,prefix,(ad->atype != string_type) ? "(char *)" : "",vname); - else - prcode(fp, -" if (%s == NULL)\n" -" {\n" -" Py_INCREF(Py_None);\n" -" return Py_None;\n" -" }\n" -"\n" -" %s PyString_FromString(%s%s);\n" - ,vname - ,prefix,(ad->atype != string_type) ? "(char *)" : "",vname); - - break; - - case wstring_type: - if (ad->nrderefs == 0) - prcode(fp, -" %s PyUnicode_FromWideChar(&%s,1);\n" - , prefix, vname); - else - prcode(fp, -" if (%s == NULL)\n" -" {\n" -" Py_INCREF(Py_None);\n" -" return Py_None;\n" -" }\n" -"\n" -" %s PyUnicode_FromWideChar(%s,(SIP_SSIZE_T)wcslen(%s));\n" - , vname - , prefix, vname, vname); - - break; - - case enum_type: - if (ad->u.ed->fqcname != NULL) - { - prcode(fp, -" %s sipConvertFromNamedEnum(%s,sipEnum_%C);\n" - ,prefix,vname,ad->u.ed->fqcname); - - break; - } - - /* Drop through. */ - - case short_type: - case int_type: - case cint_type: - prcode(fp, -" %s PyInt_FromLong(%s);\n" - ,prefix,vname); - - break; - - case long_type: - prcode(fp, -" %s PyLong_FromLong(%s);\n" - ,prefix,vname); - - break; - - case ushort_type: - case uint_type: - case ulong_type: - prcode(fp, -" %s PyLong_FromUnsignedLong(%s);\n" - ,prefix,vname); - - break; - - case longlong_type: - prcode(fp, -" %s PyLong_FromLongLong(%s);\n" - ,prefix,vname); - - break; - - case ulonglong_type: - prcode(fp, -" %s PyLong_FromUnsignedLongLong(%s);\n" - ,prefix,vname); - - break; - - case void_type: - prcode(fp, -" %s sipConvertFromVoidPtr(", prefix); - - if (isConstArg(ad)) - prcode(fp, "const_cast(%s)", vname); - else - prcode(fp, "%s", vname); - - prcode(fp, ");\n" - ); - - break; - - case struct_type: - prcode(fp, -" %s sipConvertFromVoidPtr(",prefix); - - if (isConstArg(ad)) - prcode(fp,"const_cast<%b *>(%s)",ad,vname); - else - prcode(fp,"%s",vname); - - prcode(fp,");\n" - ); - - break; - - case float_type: - case cfloat_type: - prcode(fp, -" %s PyFloat_FromDouble((double)%s);\n" - ,prefix,vname); - - break; - - case double_type: - case cdouble_type: - prcode(fp, -" %s PyFloat_FromDouble(%s);\n" - ,prefix,vname); - - break; - - case pyobject_type: - case pytuple_type: - case pylist_type: - case pydict_type: - case pycallable_type: - case pyslice_type: - case pytype_type: - prcode(fp, -" %s %s;\n" - ,prefix,vname); - - break; - } -} - - -/* - * Return the format character used by sipBuildResult() for a particular type. - */ -static char getBuildResultFormat(argDef *ad) -{ - switch (ad->atype) - { - case mapped_type: - return 'D'; - - case class_type: - if (needNewInstance(ad)) - return 'B'; - - return 'C'; - - case bool_type: - case cbool_type: - return 'b'; - - case sstring_type: - case ustring_type: - case string_type: - return (ad->nrderefs > (isOutArg(ad) ? 1 : 0)) ? 's' : 'c'; - - case wstring_type: - return (ad->nrderefs > (isOutArg(ad) ? 1 : 0)) ? 'x' : 'w'; - - case enum_type: - return (ad->u.ed->fqcname != NULL) ? 'E' : 'e'; - - case short_type: - return 'h'; - - case ushort_type: - return 't'; - - case int_type: - case cint_type: - return 'i'; - - case uint_type: - return 'u'; - - case long_type: - return 'l'; - - case ulong_type: - return 'm'; - - case longlong_type: - return 'n'; - - case ulonglong_type: - return 'o'; - - case void_type: - case struct_type: - return 'V'; - - case float_type: - case cfloat_type: - return 'f'; - - case double_type: - case cdouble_type: - return 'd'; - - case pyobject_type: - case pytuple_type: - case pylist_type: - case pydict_type: - case pycallable_type: - case pyslice_type: - case pytype_type: - return 'R'; - } - - /* We should never get here. */ - return ' '; -} - - -/* - * Generate a function call. - */ -static void generateFunctionCall(classDef *cd,classDef *ocd,overDef *od, - int deref, FILE *fp) -{ - int needsNew, error_flag = FALSE, newline, is_result, a, deltemps; - argDef *res = &od->pysig.result, orig_res; - - prcode(fp, -" {\n" - ); - - /* - * If there is no shadow class then protected methods can never be - * called. - */ - if (isProtected(od) && !hasShadow(cd)) - { - prcode(fp, -" /* Never reached. */\n" -" }\n" - ); - - return; - } - - /* Save the full result type as we may want to fiddle with it. */ - orig_res = *res; - - /* See if we need to make a copy of the result on the heap. */ - if ((res->atype == class_type || res->atype == mapped_type) && - !isReference(res) && - res->nrderefs == 0) - { - needsNew = TRUE; - resetIsConstArg(res); - } - else - needsNew = FALSE; - - /* See if sipRes is needed. */ - is_result = (!isInplaceNumberSlot(od->common) && - !isInplaceSequenceSlot(od->common) && - (res->atype != void_type || res->nrderefs != 0)); - - newline = FALSE; - - if (is_result) - { - prcode(fp, -" "); - - generateNamedValueType(res,"sipRes",fp); - - /* - * The typical %MethodCode usually causes a compiler warning, - * so we initialise the result in that case to try and suppress - * it. - */ - if (od->methodcode != NULL) - { - prcode(fp," = "); - - generateCastZero(res,fp); - } - - prcode(fp,";\n" - ); - - newline = TRUE; - } - - deltemps = TRUE; - - for (a = 0; a < od->pysig.nrArgs; ++a) - { - argDef *ad = &od->pysig.args[a]; - - /* - * If we have an In,Out argument that has conversion code then we delay - * the destruction of any temporary variables until after we have - * converted the outputs. - */ - if (isInArg(ad) && isOutArg(ad) && hasConvertToCode(ad) && deltemps) - { - deltemps = FALSE; - - prcode(fp, -" PyObject *sipResult;\n" - ); - - newline = TRUE; - } - - /* - * If we are returning a class via an output only reference or pointer - * then we need an instance on the heap. - */ - if (needNewInstance(ad)) - { - prcode(fp, -" a%d = new %b();\n" - ,a,ad); - - newline = TRUE; - } - } - - if (od->methodcode != NULL) - { - /* See if the handwritten code seems to be using the error flag. */ - if (needErrorFlag(od->methodcode)) - { - prcode(fp, -" int sipIsErr = 0;\n" - ); - - newline = TRUE; - error_flag = TRUE; - } - } - - if (newline) - prcode(fp, -"\n" - ); - - /* If it is abstract make sure that self was bound. */ - if (isAbstract(od)) - prcode(fp, -" if (sipSelfWasArg)\n" -" {\n" -" sipAbstractMethod(%N,%N);\n" -" return NULL;\n" -" }\n" -"\n" - , cd->iff->name, od->common->pyname); - - /* Call any pre-hook. */ - if (od->prehook != NULL) - prcode(fp, -" sipCallHook(\"%s\");\n" -"\n" - ,od->prehook); - - if (od->methodcode != NULL) - generateCppCodeBlock(od->methodcode,fp); - else - { - int rgil = ((release_gil || isReleaseGIL(od)) && !isHoldGIL(od)); - - if (needsNew && generating_c) - { - prcode(fp, -" if ((sipRes = (%b *)sipMalloc(sizeof (%b))) == NULL)\n" -" {\n" - ,res,res); - - gc_ellipsis(&od->pysig, fp); - - prcode(fp, -" return NULL;\n" -" }\n" -"\n" - ); - } - - if (rgil) - prcode(fp, -" Py_BEGIN_ALLOW_THREADS\n" - ); - - generateTry(od->exceptions,fp); - - prcode(fp, -" "); - - if (od->common->slot != cmp_slot && is_result) - { - /* Construct a copy on the heap if needed. */ - if (needsNew) - { - if (generating_c) - prcode(fp,"*sipRes = "); - else - prcode(fp,"sipRes = new %b(",res); - } - else - prcode(fp,"sipRes = "); - - /* See if we need the address of the result. */ - if ((res->atype == class_type || res->atype == mapped_type) && isReference(res)) - prcode(fp,"&"); - } - - switch (od->common->slot) - { - case no_slot: - generateCppFunctionCall(cd,ocd,od,fp); - break; - - case getitem_slot: - prcode(fp, "(*sipCpp)["); - generateSlotArg(&od->pysig, 0, fp); - prcode(fp,"]"); - break; - - case call_slot: - prcode(fp, "(*sipCpp)("); - generateArgs(od->cppsig,Call,fp); - prcode(fp,")"); - break; - - case int_slot: - case long_slot: - case float_slot: - prcode(fp, "*sipCpp"); - break; - - case add_slot: - generateNumberSlotCall(od,"+",fp); - break; - - case concat_slot: - generateBinarySlotCall(od,"+",deref,fp); - break; - - case sub_slot: - generateNumberSlotCall(od,"-",fp); - break; - - case mul_slot: - generateNumberSlotCall(od,"*",fp); - break; - - case repeat_slot: - generateBinarySlotCall(od,"*",deref,fp); - break; - - case div_slot: - generateNumberSlotCall(od,"/",fp); - break; - - case mod_slot: - generateNumberSlotCall(od,"%",fp); - break; - - case and_slot: - generateNumberSlotCall(od,"&",fp); - break; - - case or_slot: - generateNumberSlotCall(od,"|",fp); - break; - - case xor_slot: - generateNumberSlotCall(od,"^",fp); - break; - - case lshift_slot: - generateNumberSlotCall(od,"<<",fp); - break; - - case rshift_slot: - generateNumberSlotCall(od,">>",fp); - break; - - case iadd_slot: - case iconcat_slot: - generateBinarySlotCall(od,"+=",deref,fp); - break; - - case isub_slot: - generateBinarySlotCall(od,"-=",deref,fp); - break; - - case imul_slot: - case irepeat_slot: - generateBinarySlotCall(od,"*=",deref,fp); - break; - - case idiv_slot: - generateBinarySlotCall(od,"/=",deref,fp); - break; - - case imod_slot: - generateBinarySlotCall(od,"%=",deref,fp); - break; - - case iand_slot: - generateBinarySlotCall(od,"&=",deref,fp); - break; - - case ior_slot: - generateBinarySlotCall(od,"|=",deref,fp); - break; - - case ixor_slot: - generateBinarySlotCall(od,"^=",deref,fp); - break; - - case ilshift_slot: - generateBinarySlotCall(od,"<<=",deref,fp); - break; - - case irshift_slot: - generateBinarySlotCall(od,">>=",deref,fp); - break; - - case invert_slot: - prcode(fp, "~(*sipCpp)"); - break; - - case lt_slot: - generateBinarySlotCall(od,"<",deref,fp); - break; - - case le_slot: - generateBinarySlotCall(od,"<=",deref,fp); - break; - - case eq_slot: - generateBinarySlotCall(od,"==",deref,fp); - break; - - case ne_slot: - generateBinarySlotCall(od,"!=",deref,fp); - break; - - case gt_slot: - generateBinarySlotCall(od,">",deref,fp); - break; - - case ge_slot: - generateBinarySlotCall(od,">=",deref,fp); - break; - - case neg_slot: - prcode(fp, "-(*sipCpp)"); - break; - - case pos_slot: - prcode(fp, "+(*sipCpp)"); - break; - - case cmp_slot: - prcode(fp,"if "); - generateBinarySlotCall(od,"<",deref,fp); - prcode(fp,"\n" -" sipRes = -1;\n" -" else if "); - generateBinarySlotCall(od,">",deref,fp); - prcode(fp,"\n" -" sipRes = 1;\n" -" else\n" -" sipRes = 0"); - - break; - } - - if (needsNew && !generating_c) - prcode(fp,")"); - - prcode(fp,";\n" - ); - - generateCatch(od->exceptions, &od->pysig, fp); - - if (rgil) - prcode(fp, -" Py_END_ALLOW_THREADS\n" - ); - } - - /* Handle /TransferThis/ for non-factory methods. */ - if (!isFactory(od)) - for (a = 0; a < od->pysig.nrArgs; ++a) - { - argDef *ad = &od->pysig.args[a]; - - if (!isInArg(ad)) - continue; - - if (isThisTransferred(ad)) - { - prcode(fp, -"\n" -" if (sipOwner)\n" -" sipTransferTo(sipSelf, (PyObject *)sipOwner);\n" -" else\n" -" sipTransferBack(sipSelf);\n" - ); - - break; - } - } - - gc_ellipsis(&od->pysig, fp); - - if (deltemps) - deleteTemps(&od->pysig, fp); - - prcode(fp, -"\n" - ); - - /* Handle sipIsErr if it was used. */ - if (error_flag) - prcode(fp, -" if (sipIsErr)\n" -" return %s;\n" -"\n" - ,((isVoidReturnSlot(od->common) || isIntReturnSlot(od->common) || isLongReturnSlot(od->common)) ? "-1" : "0")); - - /* Call any post-hook. */ - if (od->posthook != NULL) - prcode(fp, -"\n" -" sipCallHook(\"%s\");\n" - ,od->posthook); - - if (isVoidReturnSlot(od->common)) - prcode(fp, -" return 0;\n" - ); - else if (isInplaceNumberSlot(od->common) || isInplaceSequenceSlot(od->common)) - prcode(fp, -" Py_INCREF(sipSelf);\n" -" return sipSelf;\n" - ); - else if (isIntReturnSlot(od->common) || isLongReturnSlot(od->common)) - prcode(fp, -" return sipRes;\n" - ); - else - { - generateHandleResult(od,needsNew,(deltemps ? "return" : "sipResult ="),fp); - - /* Delete the temporaries now if we haven't already done so. */ - if (!deltemps) - { - deleteTemps(&od->pysig, fp); - - prcode(fp, -"\n" -" return sipResult;\n" - ); - } - } - - prcode(fp, -" }\n" - ); - - /* Restore the full type of the result. */ - *res = orig_res; -} - - -/* - * Generate a call to a C++ function. - */ -static void generateCppFunctionCall(classDef *cd,classDef *ocd,overDef *od, - FILE *fp) -{ - char *mname = od->cppname; - int parens = 1; - - /* - * If the function is protected then call the public wrapper. If it is - * virtual then call explicit scoped function if "self" was passed as - * the first argument. - */ - - if (cd == NULL) - prcode(fp,"%s(",mname); - else if (cd->iff->type == namespace_iface) - prcode(fp,"%S::%s(",classFQCName(cd),mname); - else if (isStatic(od)) - { - if (isProtected(od)) - prcode(fp,"sip%C::sipProtect_%s(",classFQCName(cd),mname); - else - prcode(fp,"%S::%s(",classFQCName(ocd),mname); - } - else if (isProtected(od)) - { - if (!isAbstract(od) && (isVirtual(od) || isVirtualReimp(od))) - { - prcode(fp, "sipCpp->sipProtectVirt_%s(sipSelfWasArg", mname); - - if (od->cppsig->nrArgs > 0) - prcode(fp, ","); - } - else - prcode(fp, "sipCpp->sipProtect_%s(", mname); - } - else if (!isAbstract(od) && (isVirtual(od) || isVirtualReimp(od))) - { - prcode(fp, "(sipSelfWasArg ? sipCpp->%U::%s(", ocd, mname); - generateArgs(od->cppsig, Call, fp); - prcode(fp, ") : sipCpp->%s(", mname); - ++parens; - } - else - prcode(fp, "sipCpp->%s(", mname); - - generateArgs(od->cppsig, Call, fp); - - while (parens--) - prcode(fp, ")"); -} - - -/* - * Generate argument to a slot. - */ -static void generateSlotArg(signatureDef *sd, int argnr, FILE *fp) -{ - argDef *ad; - int deref; - - ad = &sd->args[argnr]; - deref = ((ad->atype == class_type || ad->atype == mapped_type) && ad->nrderefs == 0); - - prcode(fp, "%sa%d", (deref ? "*" : ""), argnr); -} - - -/* - * Generate the call to a binary (non-number) slot method. - */ -static void generateBinarySlotCall(overDef *od, char *op, int deref, FILE *fp) -{ - if (deref) - prcode(fp, "((*sipCpp) %s ", op); - else - prcode(fp, "(sipCpp %s ", op); - - generateSlotArg(&od->pysig, 0, fp); - prcode(fp, ")"); -} - - -/* - * Generate the call to a binary number slot method. - */ -static void generateNumberSlotCall(overDef *od, char *op, FILE *fp) -{ - prcode(fp, "("); - generateSlotArg(&od->pysig, 0, fp); - prcode(fp, " %s ", op); - generateSlotArg(&od->pysig, 1, fp); - prcode(fp, ")"); -} - - -/* - * Generate the argument variables for a member function/constructor/operator. - */ -static int generateArgParser(sipSpec *pt, signatureDef *sd, classDef *cd, - ctorDef *ct, overDef *od, int secCall, FILE *fp) -{ - int a, isQtSlot, optargs, arraylenarg, sigarg, handle_self; - int slotconarg, slotdisarg, need_owner; - - /* If the class is just a namespace, then ignore it. */ - - if (cd != NULL && cd->iff->type == namespace_iface) - cd = NULL; - - handle_self = (od != NULL && od->common->slot == no_slot && !isStatic(od) && cd != NULL); - - /* Assume there isn't a Qt slot. */ - - isQtSlot = FALSE; - - /* - * Generate the local variables that will hold the parsed arguments and - * values returned via arguments. - */ - - sigarg = -1; - need_owner = FALSE; - - for (a = 0; a < sd->nrArgs; ++a) - { - argDef *ad = &sd->args[a]; - - switch (ad->atype) - { - case signal_type: - sigarg = a; - break; - - case rxcon_type: - case rxdis_type: - isQtSlot = TRUE; - break; - - case slotcon_type: - slotconarg = a; - break; - - case slotdis_type: - slotdisarg = a; - break; - } - - if (isArraySize(ad)) - arraylenarg = a; - - generateVariable(ad,a,fp); - - if (isThisTransferred(ad)) - need_owner = TRUE; - } - - if (od != NULL && need_owner) - prcode(fp, -" sipWrapper *sipOwner = 0;\n" - ); - - if (handle_self) - { - if (isProtected(od) && hasShadow(cd)) - prcode(fp, -" sip%C *sipCpp;\n" - ,classFQCName(cd)); - else - prcode(fp, -" %U *sipCpp;\n" - ,cd); - - prcode(fp, -"\n" - ); - } - else if (sd->nrArgs != 0) - prcode(fp, -"\n" - ); - - /* Generate the call to the parser function. */ - if (od != NULL && isNumberSlot(od->common)) - prcode(fp, -" if (sipParsePair(%ssipArgsParsed,sipArg0,sipArg1,\"", (ct != NULL ? "" : "&")); - else - prcode(fp, -" if (sipParseArgs(%ssipArgsParsed,sipArg%s,\"", (ct != NULL ? "" : "&"), (od == NULL || od->common->slot == no_slot || isMultiArgSlot(od->common)) ? "s" : ""); - - /* Generate the format string. */ - optargs = FALSE; - - if (handle_self) - prcode(fp,"%c",(isProtected(od) ? 'p' : 'B')); - else if (isQtSlot && od == NULL) - prcode(fp,"C"); - - for (a = 0; a < sd->nrArgs; ++a) - { - char *fmt = ""; - argDef *ad = &sd->args[a]; - - if (!isInArg(ad)) - continue; - - if (ad->defval != NULL && !optargs) - { - prcode(fp,"|"); - optargs = TRUE; - } - - switch (ad->atype) - { - case sstring_type: - case ustring_type: - case string_type: - if (ad->nrderefs == 0 || (isOutArg(ad) && ad->nrderefs == 1)) - fmt = "c"; - else if (isArray(ad)) - fmt = "a"; - else - fmt = "s"; - - break; - - case wstring_type: - if (ad->nrderefs == 0 || (isOutArg(ad) && ad->nrderefs == 1)) - fmt = "w"; - else if (isArray(ad)) - fmt = "A"; - else - fmt = "x"; - - break; - - case enum_type: - fmt = (ad->u.ed->fqcname != NULL) ? "E" : "e"; - break; - - case bool_type: - fmt = "b"; - break; - - case cbool_type: - fmt = "Xb"; - break; - - case int_type: - if (!isArraySize(ad)) - fmt = "i"; - - break; - - case uint_type: - if (!isArraySize(ad)) - fmt = "u"; - - break; - - case cint_type: - fmt = "Xi"; - break; - - case short_type: - if (!isArraySize(ad)) - fmt = "h"; - - break; - - case ushort_type: - if (!isArraySize(ad)) - fmt = "t"; - - break; - - case long_type: - if (!isArraySize(ad)) - fmt = "l"; - - break; - - case ulong_type: - if (!isArraySize(ad)) - fmt = "m"; - - break; - - case longlong_type: - if (!isArraySize(ad)) - fmt = "n"; - - break; - - case ulonglong_type: - if (!isArraySize(ad)) - fmt = "o"; - - break; - - case struct_type: - case void_type: - fmt = "v"; - break; - - case float_type: - fmt = "f"; - break; - - case cfloat_type: - fmt = "Xf"; - break; - - case double_type: - fmt = "d"; - break; - - case cdouble_type: - fmt = "Xd"; - break; - - case signal_type: - fmt = "G"; - break; - - case slot_type: - fmt = "S"; - break; - - case anyslot_type: - fmt = "U"; - break; - - case slotcon_type: - case slotdis_type: - fmt = (secCall ? "" : "S"); - break; - - case rxcon_type: - fmt = (secCall ? "y" : "q"); - break; - - case rxdis_type: - fmt = (secCall ? "Y" : "Q"); - break; - - case mapped_type: - fmt = getSubFormatChar('M',ad); - break; - - case class_type: - fmt = getSubFormatChar('J', ad); - break; - - case pyobject_type: - fmt = getSubFormatChar('P',ad); - break; - - case pytuple_type: - case pylist_type: - case pydict_type: - case pyslice_type: - case pytype_type: - fmt = (isAllowNone(ad) ? "N" : "T"); - break; - - case pycallable_type: - fmt = (isAllowNone(ad) ? "H" : "F"); - break; - - case qobject_type: - fmt = "R"; - break; - - case ellipsis_type: - fmt = "W"; - break; - } - - prcode(fp,fmt); - } - - prcode(fp,"\""); - - /* Generate the parameters corresponding to the format string. */ - - if (handle_self) - prcode(fp,",&sipSelf,sipClass_%C,&sipCpp",classFQCName(cd)); - else if (isQtSlot && od == NULL) - prcode(fp,",sipSelf"); - - for (a = 0; a < sd->nrArgs; ++a) - { - argDef *ad = &sd->args[a]; - - if (!isInArg(ad)) - continue; - - switch (ad->atype) - { - case mapped_type: - prcode(fp,",sipMappedType_%T,&a%d,&a%dState",ad,a,a); - break; - - case class_type: - prcode(fp, ",sipClass_%T,&a%d", ad, a); - - if (isThisTransferred(ad)) - prcode(fp, ",%ssipOwner", (ct != NULL ? "" : "&")); - else if (isGetWrapper(ad)) - prcode(fp, ",&a%dWrapper", a); - - if (ad->u.cd->convtocode != NULL && !isConstrained(ad)) - prcode(fp, ",&a%dState", a); - - break; - - case rxcon_type: - { - if (sigarg > 0) - prcode(fp,",a%d",sigarg); - else - { - prcode(fp,",\"("); - - generateArgs(sd->args[slotconarg].u.sa,Declaration,fp); - - prcode(fp,")\""); - } - - prcode(fp,",&a%d,&a%d",a,slotconarg); - - break; - } - - case rxdis_type: - { - prcode(fp,",\"("); - - generateArgs(sd->args[slotdisarg].u.sa,Declaration,fp); - - prcode(fp,")\",&a%d,&a%d",a,slotdisarg); - - break; - } - - case slotcon_type: - case slotdis_type: - if (!secCall) - prcode(fp,",&a%d",a); - - break; - - case anyslot_type: - prcode(fp, ",&a%dName,&a%dCallable", a, a); - break; - - case pytuple_type: - prcode(fp,",&PyTuple_Type,&a%d",a); - break; - - case pylist_type: - prcode(fp,",&PyList_Type,&a%d",a); - break; - - case pydict_type: - prcode(fp,",&PyDict_Type,&a%d",a); - break; - - case pyslice_type: - prcode(fp,",&PySlice_Type,&a%d",a); - break; - - case pytype_type: - prcode(fp,",&PyType_Type,&a%d",a); - break; - - case enum_type: - if (ad->u.ed->fqcname != NULL) - prcode(fp,",sipEnum_%C",ad->u.ed->fqcname); - - prcode(fp,",&a%d",a); - break; - - default: - if (!isArraySize(ad)) - prcode(fp,",&a%d",a); - - if (isArray(ad)) - prcode(fp,",&a%d",arraylenarg); - } - } - - prcode(fp,"))\n"); - - return isQtSlot; -} - - -/* - * Get the format character string for something that has sub-formats. - */ - -static char *getSubFormatChar(char fc,argDef *ad) -{ - static char fmt[3]; - char flags; - - fmt[0] = fc; - - flags = 0; - - if (fc != 'P' && ad->nrderefs == 0) - flags |= 0x01; - - if (isTransferred(ad)) - flags |= 0x02; - - if (isTransferredBack(ad)) - flags |= 0x04; - - if (fc == 'J') - { - if (isThisTransferred(ad)) - flags |= 0x20; - - if (isGetWrapper(ad)) - flags |= 0x08; - - if (ad->u.cd->convtocode == NULL || isConstrained(ad)) - flags |= 0x10; - } - - fmt[1] = '0' + flags; - - fmt[2] = '\0'; - - return fmt; -} - - -/* - * Return TRUE if a type has %ConvertToTypeCode. - */ -static int hasConvertToCode(argDef *ad) -{ - codeBlock *convtocode; - - if (ad->atype == class_type && !isConstrained(ad)) - convtocode = ad->u.cd->convtocode; - else if (ad->atype == mapped_type) - convtocode = ad->u.mtd->convtocode; - else - convtocode = NULL; - - return (convtocode != NULL); -} - - -/* - * Garbage collect any ellipsis argument. - */ -static void gc_ellipsis(signatureDef *sd, FILE *fp) -{ - if (sd->nrArgs > 0 && sd->args[sd->nrArgs - 1].atype == ellipsis_type) - prcode(fp, -"\n" -" Py_DECREF(a%d);\n" - , sd->nrArgs - 1); -} - - -/* - * Delete any temporary variables on the heap created by type convertors. - */ -static void deleteTemps(signatureDef *sd, FILE *fp) -{ - int a, first = TRUE; - - for (a = 0; a < sd->nrArgs; ++a) - { - argDef *ad = &sd->args[a]; - - if (!isInArg(ad)) - continue; - - if (ad->atype == wstring_type && ad->nrderefs == 1) - { - if (generating_c || !isConstArg(ad)) - prcode(fp, -" sipFree(a%d);\n" - , a); - else - prcode(fp, -" sipFree(const_cast(a%d));\n" - , a); - } - else if (hasConvertToCode(ad)) - { - const char *fstr, *sstr; - - if (ad->atype == mapped_type) - fstr = sstr = "MappedType"; - else - { - fstr = "Instance"; - sstr = "Class"; - } - - if (first) - { - prcode(fp, -"\n" - ); - - first = FALSE; - } - - if (generating_c || !isConstArg(ad)) - prcode(fp, -" sipRelease%s(a%d,sip%s_%T,a%dState);\n" - , fstr, a, sstr, ad, a); - else - prcode(fp, -" sipRelease%s(const_cast<%b *>(a%d),sip%s_%T,a%dState);\n" - , fstr, ad, a, sstr, ad, a); - } - } -} - - -/* - * Generate a C++ code block. - */ -static void generateCppCodeBlock(codeBlock *code,FILE *fp) -{ - int reset_line = FALSE; - codeBlock *cb; - - for (cb = code; cb != NULL; cb = cb->next) - { - char *cp; - - /* - * Fragmented fragments (possibly created when applying - * template types) don't have a filename. - */ - if ((cp = cb->filename) != NULL) - { - reset_line = TRUE; - - prcode(fp, -"#line %d \"", cb->linenr); - - while (*cp != '\0') - { - prcode(fp, "%c", *cp); - - if (*cp == '\\') - prcode(fp, "\\"); - - ++cp; - } - - prcode(fp, "\"\n" - ); - } - - prcode(fp, "%s", cb->frag); - } - - if (reset_line) - { - char *bn; - - /* Just use the base name. */ - - if ((bn = strrchr(currentFileName,'/')) != NULL) - ++bn; - else - bn = currentFileName; - - prcode(fp, -"#line %d \"%s\"\n" - ,currentLineNr + 1,bn); - } -} - - -/* - * Create a source file. - */ -static FILE *createCompilationUnit(sipSpec *pt, char *fname, char *description) -{ - FILE *fp = createFile(pt, fname, description); - - if (fp != NULL) - generateCppCodeBlock(pt->unitcode, fp); - - return fp; -} - - -/* - * Create a file with an optional standard header. - */ -static FILE *createFile(sipSpec *pt,char *fname,char *description) -{ - FILE *fp; - - /* Create the file. */ - - if ((fp = fopen(fname,"w")) == NULL) - fatal("Unable to create file \"%s\"\n",fname); - - /* The "stack" doesn't have to be very deep. */ - previousLineNr = currentLineNr; - currentLineNr = 1; - previousFileName = currentFileName; - currentFileName = fname; - - if (description != NULL) - { - int needComment; - codeBlock *cb; - time_t now; - - /* Write the header. */ - now = time(NULL); - - prcode(fp, -"/*\n" -" * %s\n" -" *\n" -" * Generated by SIP %s on %s" - ,description - ,sipVersion,ctime(&now)); - - if (pt->copying != NULL) - prcode(fp, -" *\n" - ); - - needComment = TRUE; - - for (cb = pt->copying; cb != NULL; cb = cb->next) - { - char *cp; - - for (cp = cb->frag; *cp != '\0'; ++cp) - { - if (needComment) - { - needComment = FALSE; - prcode(fp," * "); - } - - prcode(fp,"%c",*cp); - - if (*cp == '\n') - needComment = TRUE; - } - } - - prcode(fp, -" */\n" - ); - } - - return fp; -} - - -/* - * Close a file and report any errors. - */ -static void closeFile(FILE *fp) -{ - if (ferror(fp)) - fatal("Error writing to \"%s\"\n",currentFileName); - - if (fclose(fp)) - fatal("Error closing \"%s\"\n",currentFileName); - - currentLineNr = previousLineNr; - currentFileName = previousFileName; -} - - -/* - * Print formatted code. - */ -void prcode(FILE *fp, const char *fmt, ...) -{ - char ch; - va_list ap; - - prcode_last = fmt; - - va_start(ap,fmt); - - while ((ch = *fmt++) != '\0') - if (ch == '%') - { - ch = *fmt++; - - switch (ch) - { - case 'c': - { - char c = (char)va_arg(ap,int); - - if (c == '\n') - ++currentLineNr; - - fputc(c,fp); - break; - } - - case 's': - { - const char *cp = va_arg(ap,const char *); - - while (*cp != '\0') - { - if (*cp == '\n') - ++currentLineNr; - - fputc(*cp,fp); - ++cp; - } - - break; - } - - case 'l': - fprintf(fp,"%ld",va_arg(ap,long)); - break; - - case 'u': - fprintf(fp,"%u",va_arg(ap,unsigned)); - break; - - case 'd': - fprintf(fp,"%d",va_arg(ap,int)); - break; - - case 'g': - fprintf(fp,"%g",va_arg(ap,double)); - break; - - case 'x': - fprintf(fp,"0x%08x",va_arg(ap,unsigned)); - break; - - case '\0': - fputc('%',fp); - --fmt; - break; - - case '\n': - fputc('\n',fp); - ++currentLineNr; - break; - - case 'b': - { - argDef *ad, orig; - - ad = va_arg(ap,argDef *); - orig = *ad; - - resetIsConstArg(ad); - resetIsReference(ad); - ad->nrderefs = 0; - - generateBaseType(ad,fp); - - *ad = orig; - - break; - } - - case 'M': - prcode_xml = !prcode_xml; - break; - - case 'B': - generateBaseType(va_arg(ap,argDef *),fp); - break; - - case 'T': - prTypeName(fp,va_arg(ap,argDef *),FALSE); - break; - - case 'I': - { - int indent = va_arg(ap,int); - - while (indent-- > 0) - fputc('\t',fp); - - break; - } - - case 'N': - { - nameDef *nd = va_arg(ap,nameDef *); - - fprintf(fp,"sipNm_%s_%s",nd->module->name,nd->text); - break; - } - - case 'E': - { - enumDef *ed = va_arg(ap,enumDef *); - - if (ed->fqcname == NULL) - fprintf(fp,"int"); - else if (isProtectedEnum(ed)) - { - fprintf(fp,"sip"); - prScopedName(fp,classFQCName(ed->pcd),"_"); - - fprintf(fp,"::sip%s",scopedNameTail(ed->fqcname)); - } - else - prScopedName(fp,ed->fqcname,"::"); - - break; - } - - case 'F': - prScopedName(fp,va_arg(ap,scopedNameDef *),""); - break; - - case 'C': - prScopedName(fp,va_arg(ap,scopedNameDef *),"_"); - break; - - case 'S': - if (generating_c) - fprintf(fp,"struct "); - - prScopedName(fp,va_arg(ap,scopedNameDef *),"::"); - break; - - case 'U': - if (generating_c) - fprintf(fp,"struct "); - - prScopedClassName(fp,va_arg(ap,classDef *),"::"); - break; - - case 'O': - prOverloadName(fp, va_arg(ap, overDef *)); - break; - - case 'P': - { - classDef *ecd = va_arg(ap, classDef *); - const char *pyname = va_arg(ap, const char *); - - prScopedPythonName(fp, ecd, pyname); - break; - } - - case 'X': - generateThrowSpecifier(va_arg(ap,throwArgs *),fp); - break; - - default: - fputc(ch,fp); - } - } - else if (ch == '\n') - { - fputc('\n',fp); - ++currentLineNr; - } - else - fputc(ch,fp); - - va_end(ap); -} - - -/* - * Generate the C++ name of an overloaded function. - */ -void prOverloadName(FILE *fp, overDef *od) -{ - char *pt1, *pt2; - - pt1 = "operator"; - - switch (od->common->slot) - { - case add_slot: - pt2 = "+"; - break; - - case sub_slot: - pt2 = "-"; - break; - - case mul_slot: - pt2 = "*"; - break; - - case div_slot: - pt2 = "/"; - break; - - case mod_slot: - pt2 = "%"; - break; - - case and_slot: - pt2 = "&"; - break; - - case or_slot: - pt2 = "|"; - break; - - case xor_slot: - pt2 = "^"; - break; - - case lshift_slot: - pt2 = "<<"; - break; - - case rshift_slot: - pt2 = ">>"; - break; - - case iadd_slot: - pt2 = "+="; - break; - - case isub_slot: - pt2 = "-="; - break; - - case imul_slot: - pt2 = "*="; - break; - - case idiv_slot: - pt2 = "/="; - break; - - case imod_slot: - pt2 = "%="; - break; - - case iand_slot: - pt2 = "&="; - break; - - case ior_slot: - pt2 = "|="; - break; - - case ixor_slot: - pt2 = "^="; - break; - - case ilshift_slot: - pt2 = "<<="; - break; - - case irshift_slot: - pt2 = ">>="; - break; - - case invert_slot: - pt2 = "~"; - break; - - case call_slot: - pt2 = "()"; - break; - - case getitem_slot: - pt2 = "[]"; - break; - - case lt_slot: - pt2 = "<"; - break; - - case le_slot: - pt2 = "<="; - break; - - case eq_slot: - pt2 = "=="; - break; - - case ne_slot: - pt2 = "!="; - break; - - case gt_slot: - pt2 = ">"; - break; - - case ge_slot: - pt2 = ">="; - break; - - default: - pt1 = ""; - pt2 = od->cppname; - } - - fprintf(fp, "%s%s", pt1, pt2); -} - - -/* - * Generate a scoped name with the given separator string. - */ -static void prScopedName(FILE *fp,scopedNameDef *snd,char *sep) -{ - while (snd != NULL) - { - fprintf(fp,"%s",snd->name); - - if ((snd = snd->next) != NULL) - fprintf(fp,"%s",sep); - } -} - - -/* - * Generate a scoped class name with the given separator string. At the moment - * this provides (probably) broken support for protected classes. - */ -static void prScopedClassName(FILE *fp,classDef *cd,char *sep) -{ - scopedNameDef *snd = classFQCName(cd); - - while (snd != NULL) - { - if (isProtectedClass(cd)) - fprintf(fp,"sip"); - - fprintf(fp,"%s",snd->name); - - if ((snd = snd->next) != NULL) - fprintf(fp,"%s",sep); - } -} - - -/* - * Generate a scoped Python name. - */ -void prScopedPythonName(FILE *fp, classDef *scope, const char *pyname) -{ - if (scope != NULL) - { - prScopedPythonName(fp, scope->ecd, NULL); - fprintf(fp, "%s.", scope->pyname); - } - - if (pyname != NULL) - fprintf(fp, "%s", pyname); -} - - -/* - * Generate a type name to be used as part of an identifier name. - */ -static void prTypeName(FILE *fp,argDef *ad,int intmpl) -{ - if (intmpl) - { - char buf[10]; - int flgs; - - /* We use numbers so they don't conflict with names. */ - - sprintf(buf,"%02d",ad->atype); - - flgs = 0; - - if (isConstArg(ad)) - flgs += 1; - - if (isReference(ad)) - flgs += 2; - - prcode(fp,"%s%d%d",buf,flgs,ad->nrderefs); - } - - /* Now add a name if there is one associated with the type. */ - - switch (ad->atype) - { - case struct_type: - prcode(fp,"%C",ad->u.sname); - break; - - case defined_type: - prcode(fp,"%C",ad->u.snd); - break; - - case enum_type: - prcode(fp,"%C",ad->u.ed->fqcname); - break; - - case mapped_type: - prTypeName(fp,&ad->u.mtd->type,intmpl); - break; - - case class_type: - prcode(fp,"%C",classFQCName(ad->u.cd)); - break; - - case template_type: - { - int a; - templateDef *td = ad->u.td; - - prcode(fp,"%C",td->fqname); - - for (a = 0; a < td->types.nrArgs; ++a) - { - prcode(fp,"_"); - prTypeName(fp,&td->types.args[a],TRUE); - } - - break; - } - } -} - - -/* - * Return TRUE if handwritten code uses the error flag. - */ -static int needErrorFlag(codeBlock *cb) -{ - return usedInCode(cb, "sipIsErr"); -} - - -/* - * Return TRUE if the argument type means an instance needs to be created on - * the heap to pass back to Python. - */ -static int needNewInstance(argDef *ad) -{ - return ((ad->atype == mapped_type || ad->atype == class_type) && - ((isReference(ad) && ad->nrderefs == 0) || (!isReference(ad) && ad->nrderefs == 1)) && - !isInArg(ad) && isOutArg(ad)); -} - - -/* - * Reset and save any argument flags so that the signature will be rendered - * exactly as defined in C++. - */ -static void normaliseArgs(signatureDef *sd) -{ - int a; - argDef *ad = sd->args; - - for (a = 0; a < sd->nrArgs; ++a) - { - if (ad->atype == class_type && isProtectedClass(ad->u.cd)) - { - resetIsProtectedClass(ad->u.cd); - setWasProtectedClass(ad->u.cd); - } - else if (ad->atype == enum_type && isProtectedEnum(ad->u.ed)) - { - resetIsProtectedEnum(ad->u.ed); - setWasProtectedEnum(ad->u.ed); - } - - ++ad; - } -} - - -/* - * Restore any argument flags modified by normaliseArgs(). - */ -static void restoreArgs(signatureDef *sd) -{ - int a; - argDef *ad = sd->args; - - for (a = 0; a < sd->nrArgs; ++a) - { - if (ad->atype == class_type && wasProtectedClass(ad->u.cd)) - { - resetWasProtectedClass(ad->u.cd); - setIsProtectedClass(ad->u.cd); - } - else if (ad->atype == enum_type && wasProtectedEnum(ad->u.ed)) - { - resetWasProtectedEnum(ad->u.ed); - setIsProtectedEnum(ad->u.ed); - } - - ++ad; - } -} - - -/* - * Return TRUE if a dealloc function is needed for a class. - */ -static int needDealloc(classDef *cd) -{ - if (cd->iff->type == namespace_iface) - return FALSE; - - /* All of these conditions cause some code to be generated. */ - - if (tracing) - return TRUE; - - if (generating_c) - return TRUE; - - if (cd->dealloccode != NULL) - return TRUE; - - if (isPublicDtor(cd)) - return TRUE; - - if (hasShadow(cd)) - return TRUE; - - return FALSE; -} - - -/* - * Return the argument name to use in a function definition for handwritten - * code. - */ -static const char *argName(const char *name, codeBlock *cb) -{ - static const char noname[] = ""; - - /* Always use the name in C code. */ - if (generating_c) - return name; - - /* Use the name if it is used in the handwritten code. */ - if (usedInCode(cb, name)) - return name; - - /* Don't use the name and avoid a compiler warning. */ - return noname; -} - - -/* - * Returns TRUE if a string is used in a code block. - */ -static int usedInCode(codeBlock *code, const char *str) -{ - while (code != NULL) - { - if (strstr(code->frag, str) != NULL) - return TRUE; - - code = code->next; - } - - return FALSE; -} - - -/* - * Generate an assignment statement from a void * variable to a class instance - * variable. - */ -static void generateClassFromVoid(classDef *cd, const char *cname, - const char *vname, FILE *fp) -{ - if (generating_c) - prcode(fp, "%S *%s = (%S *)%s", classFQCName(cd), cname, classFQCName(cd), vname); - else - prcode(fp, "%S *%s = reinterpret_cast<%S *>(%s)", classFQCName(cd), cname, classFQCName(cd), vname); -} - - -/* - * Generate an assignment statement from a void * variable to a mapped type - * variable. - */ -static void generateMappedTypeFromVoid(mappedTypeDef *mtd, const char *cname, - const char *vname, FILE *fp) -{ - if (generating_c) - prcode(fp, "%b *%s = (%b *)%s", &mtd->type, cname, &mtd->type, vname); - else - prcode(fp, "%b *%s = reinterpret_cast<%b *>(%s)", &mtd->type, cname, &mtd->type, vname); -} diff --git a/python/sip/sipgen/heap.c b/python/sip/sipgen/heap.c deleted file mode 100644 index d6e94ccc..00000000 --- a/python/sip/sipgen/heap.c +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Wrappers around standard functions that use the heap. - * - * Copyright (c) 2007 - * Riverbank Computing Limited - * - * This file is part of SIP. - * - * This copy of SIP is licensed for use under the terms of the SIP License - * Agreement. See the file LICENSE for more details. - * - * SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ - - -#include -#include -#include -#include - -#include "sip.h" - - -static void nomem(void); - - -/* - * Wrap malloc() and handle any errors. - */ - -void *sipMalloc(size_t n) -{ - void *h; - - if ((h = malloc(n)) == NULL) - nomem(); - - return h; -} - - -/* - * Wrap strdup() and handle any errors. - */ - -char *sipStrdup(char *s) -{ - char *h; - - if ((h = strdup(s)) == NULL) - nomem(); - - return h; -} - - -/* - * Return a string on the heap which is the concatonation of all the arguments. - */ - -char *concat(const char *s, ...) -{ - const char *sp; - char *new; - size_t len; - va_list ap; - - /* Find the length of the final string. */ - - len = 1; - va_start(ap,s); - - for (sp = s; sp != NULL; sp = va_arg(ap, const char *)) - len += strlen(sp); - - va_end(ap); - - /* Create the new string. */ - - new = sipMalloc(len); - *new = '\0'; - - va_start(ap,s); - - for (sp = s; sp != NULL; sp = va_arg(ap, const char *)) - strcat(new,sp); - - va_end(ap); - - return new; -} - - -/* - * Append a string to another that is on the heap. - */ - -void append(char **s,char *new) -{ - if ((*s = realloc(*s,strlen(*s) + strlen(new) + 1)) == NULL) - nomem(); - - strcat(*s,new); -} - - -/* - * Display a standard error message when the heap is exhausted. - */ - -static void nomem(void) -{ - fatal("Unable to allocate memory on the heap\n"); -} diff --git a/python/sip/sipgen/lexer.c b/python/sip/sipgen/lexer.c deleted file mode 100644 index 138acfeb..00000000 --- a/python/sip/sipgen/lexer.c +++ /dev/null @@ -1,3266 +0,0 @@ -#line 2 "lexer.c.tmp" - -#line 4 "lexer.c.tmp" - -#define YY_INT_ALIGNED short int - -/* A lexical scanner generated by flex */ - -#define FLEX_SCANNER -#define YY_FLEX_MAJOR_VERSION 2 -#define YY_FLEX_MINOR_VERSION 5 -#define YY_FLEX_SUBMINOR_VERSION 33 -#if YY_FLEX_SUBMINOR_VERSION > 0 -#define FLEX_BETA -#endif - -/* First, we deal with platform-specific or compiler-specific issues. */ - -/* begin standard C headers. */ -#include -#include -#include -#include - -/* end standard C headers. */ - -/* flex integer type definitions */ - -#ifndef FLEXINT_H -#define FLEXINT_H - -/* C99 systems have . Non-C99 systems may or may not. */ - -#if __STDC_VERSION__ >= 199901L - -/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, - * if you want the limit (max/min) macros for int types. - */ -#ifndef __STDC_LIMIT_MACROS -#define __STDC_LIMIT_MACROS 1 -#endif - -#include -typedef int8_t flex_int8_t; -typedef uint8_t flex_uint8_t; -typedef int16_t flex_int16_t; -typedef uint16_t flex_uint16_t; -typedef int32_t flex_int32_t; -typedef uint32_t flex_uint32_t; -#else -typedef signed char flex_int8_t; -typedef short int flex_int16_t; -typedef int flex_int32_t; -typedef unsigned char flex_uint8_t; -typedef unsigned short int flex_uint16_t; -typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ - -/* Limits of integral types. */ -#ifndef INT8_MIN -#define INT8_MIN (-128) -#endif -#ifndef INT16_MIN -#define INT16_MIN (-32767-1) -#endif -#ifndef INT32_MIN -#define INT32_MIN (-2147483647-1) -#endif -#ifndef INT8_MAX -#define INT8_MAX (127) -#endif -#ifndef INT16_MAX -#define INT16_MAX (32767) -#endif -#ifndef INT32_MAX -#define INT32_MAX (2147483647) -#endif -#ifndef UINT8_MAX -#define UINT8_MAX (255U) -#endif -#ifndef UINT16_MAX -#define UINT16_MAX (65535U) -#endif -#ifndef UINT32_MAX -#define UINT32_MAX (4294967295U) -#endif - -#endif /* ! FLEXINT_H */ - -#ifdef __cplusplus - -/* The "const" storage-class-modifier is valid. */ -#define YY_USE_CONST - -#else /* ! __cplusplus */ - -#if __STDC__ - -#define YY_USE_CONST - -#endif /* __STDC__ */ -#endif /* ! __cplusplus */ - -#ifdef YY_USE_CONST -#define yyconst const -#else -#define yyconst -#endif - -/* Returned upon end-of-file. */ -#define YY_NULL 0 - -/* Promotes a possibly negative, possibly signed char to an unsigned - * integer for use as an array index. If the signed char is negative, - * we want to instead treat it as an 8-bit unsigned char, hence the - * double cast. - */ -#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) - -/* Enter a start condition. This macro really ought to take a parameter, - * but we do it the disgusting crufty way forced on us by the ()-less - * definition of BEGIN. - */ -#define BEGIN (yy_start) = 1 + 2 * - -/* Translate the current start state into a value that can be later handed - * to BEGIN to return to the state. The YYSTATE alias is for lex - * compatibility. - */ -#define YY_START (((yy_start) - 1) / 2) -#define YYSTATE YY_START - -/* Action number for EOF rule of a given start state. */ -#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) - -/* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE yyrestart(yyin ) - -#define YY_END_OF_BUFFER_CHAR 0 - -/* Size of default input buffer. */ -#ifndef YY_BUF_SIZE -#define YY_BUF_SIZE 16384 -#endif - -/* The state buf must be large enough to hold one state per character in the main buffer. - */ -#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) - -#ifndef YY_TYPEDEF_YY_BUFFER_STATE -#define YY_TYPEDEF_YY_BUFFER_STATE -typedef struct yy_buffer_state *YY_BUFFER_STATE; -#endif - -extern int yyleng; - -extern FILE *yyin, *yyout; - -#define EOB_ACT_CONTINUE_SCAN 0 -#define EOB_ACT_END_OF_FILE 1 -#define EOB_ACT_LAST_MATCH 2 - - #define YY_LESS_LINENO(n) - -/* Return all but the first "n" matched characters back to the input stream. */ -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - *yy_cp = (yy_hold_char); \ - YY_RESTORE_YY_MORE_OFFSET \ - (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ - YY_DO_BEFORE_ACTION; /* set up yytext again */ \ - } \ - while ( 0 ) - -#define unput(c) yyunput( c, (yytext_ptr) ) - -/* The following is because we cannot portably get our hands on size_t - * (without autoconf's help, which isn't available because we want - * flex-generated scanners to compile on their own). - */ - -#ifndef YY_TYPEDEF_YY_SIZE_T -#define YY_TYPEDEF_YY_SIZE_T -typedef unsigned int yy_size_t; -#endif - -#ifndef YY_STRUCT_YY_BUFFER_STATE -#define YY_STRUCT_YY_BUFFER_STATE -struct yy_buffer_state - { - FILE *yy_input_file; - - char *yy_ch_buf; /* input buffer */ - char *yy_buf_pos; /* current position in input buffer */ - - /* Size of input buffer in bytes, not including room for EOB - * characters. - */ - yy_size_t yy_buf_size; - - /* Number of characters read into yy_ch_buf, not including EOB - * characters. - */ - int yy_n_chars; - - /* Whether we "own" the buffer - i.e., we know we created it, - * and can realloc() it to grow it, and should free() it to - * delete it. - */ - int yy_is_our_buffer; - - /* Whether this is an "interactive" input source; if so, and - * if we're using stdio for input, then we want to use getc() - * instead of fread(), to make sure we stop fetching input after - * each newline. - */ - int yy_is_interactive; - - /* Whether we're considered to be at the beginning of a line. - * If so, '^' rules will be active on the next match, otherwise - * not. - */ - int yy_at_bol; - - int yy_bs_lineno; /**< The line count. */ - int yy_bs_column; /**< The column count. */ - - /* Whether to try to fill the input buffer when we reach the - * end of it. - */ - int yy_fill_buffer; - - int yy_buffer_status; - -#define YY_BUFFER_NEW 0 -#define YY_BUFFER_NORMAL 1 - /* When an EOF's been seen but there's still some text to process - * then we mark the buffer as YY_EOF_PENDING, to indicate that we - * shouldn't try reading from the input source any more. We might - * still have a bunch of tokens to match, though, because of - * possible backing-up. - * - * When we actually see the EOF, we change the status to "new" - * (via yyrestart()), so that the user can continue scanning by - * just pointing yyin at a new input file. - */ -#define YY_BUFFER_EOF_PENDING 2 - - }; -#endif /* !YY_STRUCT_YY_BUFFER_STATE */ - -/* Stack of input buffers. */ -static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ -static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ -static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ - -/* We provide macros for accessing buffer states in case in the - * future we want to put the buffer states in a more general - * "scanner state". - * - * Returns the top of the stack, or NULL. - */ -#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ - ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ - : NULL) - -/* Same as previous macro, but useful when we know that the buffer stack is not - * NULL or when we need an lvalue. For internal use only. - */ -#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] - -/* yy_hold_char holds the character lost when yytext is formed. */ -static char yy_hold_char; -static int yy_n_chars; /* number of characters read into yy_ch_buf */ -int yyleng; - -/* Points to current character in buffer. */ -static char *yy_c_buf_p = (char *) 0; -static int yy_init = 0; /* whether we need to initialize */ -static int yy_start = 0; /* start state number */ - -/* Flag which is used to allow yywrap()'s to do buffer switches - * instead of setting up a fresh yyin. A bit of a hack ... - */ -static int yy_did_buffer_switch_on_eof; - -void yyrestart (FILE *input_file ); -void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); -YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); -void yy_delete_buffer (YY_BUFFER_STATE b ); -void yy_flush_buffer (YY_BUFFER_STATE b ); -void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); -void yypop_buffer_state (void ); - -static void yyensure_buffer_stack (void ); -static void yy_load_buffer_state (void ); -static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); - -#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) - -YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); -YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); -YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ); - -void *yyalloc (yy_size_t ); -void *yyrealloc (void *,yy_size_t ); -void yyfree (void * ); - -#define yy_new_buffer yy_create_buffer - -#define yy_set_interactive(is_interactive) \ - { \ - if ( ! YY_CURRENT_BUFFER ){ \ - yyensure_buffer_stack (); \ - YY_CURRENT_BUFFER_LVALUE = \ - yy_create_buffer(yyin,YY_BUF_SIZE ); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ - } - -#define yy_set_bol(at_bol) \ - { \ - if ( ! YY_CURRENT_BUFFER ){\ - yyensure_buffer_stack (); \ - YY_CURRENT_BUFFER_LVALUE = \ - yy_create_buffer(yyin,YY_BUF_SIZE ); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ - } - -#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) - -/* Begin user sect3 */ - -typedef unsigned char YY_CHAR; - -FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; - -typedef int yy_state_type; - -extern int yylineno; - -int yylineno = 1; - -extern char *yytext; -#define yytext_ptr yytext - -static yy_state_type yy_get_previous_state (void ); -static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); -static int yy_get_next_buffer (void ); -static void yy_fatal_error (yyconst char msg[] ); - -/* Done after the current pattern has been matched and before the - * corresponding action - sets up yytext. - */ -#define YY_DO_BEFORE_ACTION \ - (yytext_ptr) = yy_bp; \ - yyleng = (size_t) (yy_cp - yy_bp); \ - (yy_hold_char) = *yy_cp; \ - *yy_cp = '\0'; \ - (yy_c_buf_p) = yy_cp; - -#define YY_NUM_RULES 111 -#define YY_END_OF_BUFFER 112 -/* This struct is not used in this scanner, - but its presence is necessary. */ -struct yy_trans_info - { - flex_int32_t yy_verify; - flex_int32_t yy_nxt; - }; -static yyconst flex_int16_t yy_accept[735] = - { 0, - 0, 0, 0, 0, 0, 0, 112, 110, 65, 66, - 110, 110, 110, 110, 110, 68, 68, 110, 71, 71, - 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, - 71, 71, 71, 71, 71, 71, 110, 65, 110, 109, - 108, 109, 78, 76, 78, 0, 73, 0, 74, 0, - 68, 0, 72, 69, 72, 75, 67, 0, 47, 71, - 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, - 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, - 71, 71, 71, 71, 71, 71, 71, 71, 71, 48, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 77, 69, 64, 72, 67, 70, 71, 71, 71, 71, - 71, 71, 71, 71, 71, 71, 71, 27, 71, 71, - 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, - 71, 71, 71, 71, 71, 71, 71, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 69, 40, 71, 25, 23, - 71, 71, 71, 33, 71, 71, 71, 28, 71, 71, - - 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, - 38, 71, 71, 71, 31, 71, 0, 0, 0, 0, - 0, 0, 0, 0, 101, 15, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 107, 69, 71, 71, 71, 71, 71, 16, 36, 71, - 71, 39, 29, 71, 71, 71, 71, 71, 26, 71, - 71, 22, 71, 71, 71, 44, 71, 71, 71, 71, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 71, 71, 71, 71, 71, 71, 30, 71, - 71, 71, 71, 71, 18, 71, 34, 37, 17, 71, - 71, 71, 71, 71, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 71, 71, 71, - 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, - 71, 20, 71, 21, 71, 41, 71, 32, 24, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - - 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, - 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 71, 71, 71, 71, 71, - 71, 71, 71, 71, 71, 71, 57, 45, 71, 43, - 71, 46, 35, 6, 0, 0, 0, 0, 0, 7, - 0, 79, 0, 0, 10, 0, 0, 105, 3, 11, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 106, 0, 0, 0, 0, 0, 71, - 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, - 71, 42, 19, 0, 0, 0, 0, 0, 0, 0, - - 0, 0, 0, 0, 103, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 8, 90, 0, - 88, 0, 71, 71, 52, 51, 71, 71, 71, 55, - 71, 71, 56, 71, 71, 0, 0, 0, 0, 0, - 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 9, 0, 0, 0, 100, 0, 0, 0, - 0, 58, 71, 71, 54, 50, 63, 71, 71, 71, - 71, 104, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 12, 91, 89, 0, 0, 0, 0, - 0, 0, 1, 0, 0, 71, 49, 71, 71, 61, - - 62, 0, 0, 0, 0, 0, 0, 0, 102, 0, - 94, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 71, 59, 60, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 99, 2, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 93, 0, 0, 0, - 0, 85, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 84, 0, 0, 0, 0, 0, - - 97, 0, 0, 0, 81, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 83, 0, 0, 92, 98, 95, - 0, 80, 0, 0, 0, 96, 0, 0, 0, 82, - 0, 86, 87, 0 - } ; - -static yyconst flex_int32_t yy_ec[256] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, - 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 2, 1, 5, 1, 1, 6, 1, 7, 1, - 1, 8, 9, 1, 10, 11, 12, 13, 14, 14, - 14, 14, 14, 14, 14, 14, 14, 15, 1, 1, - 1, 1, 1, 1, 16, 17, 18, 19, 20, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 26, - 1, 1, 1, 1, 41, 1, 42, 43, 44, 45, - - 46, 47, 48, 49, 50, 26, 51, 52, 53, 54, - 55, 56, 26, 57, 58, 59, 60, 61, 62, 63, - 64, 26, 1, 65, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1 - } ; - -static yyconst flex_int32_t yy_meta[66] = - { 0, - 1, 1, 2, 1, 1, 1, 1, 1, 1, 3, - 3, 3, 4, 4, 1, 4, 4, 4, 4, 4, - 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 4, 4, 4, 4, 4, 4, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 1 - } ; - -static yyconst flex_int16_t yy_base[743] = - { 0, - 0, 64, 1581, 65, 64, 66, 1583, 1585, 1585, 1585, - 70, 73, 68, 73, 80, 80, 84, 1567, 89, 92, - 95, 98, 102, 105, 110, 113, 120, 123, 126, 129, - 134, 137, 151, 159, 169, 165, 1516, 150, 209, 1585, - 1585, 1560, 1585, 1585, 1567, 124, 1585, 181, 1585, 64, - 179, 189, 192, 237, 195, 1585, 0, 0, 1585, 200, - 211, 242, 206, 248, 252, 255, 258, 264, 267, 270, - 274, 277, 281, 285, 288, 291, 294, 300, 303, 309, - 315, 320, 332, 337, 342, 348, 351, 355, 358, 1585, - 369, 391, 1534, 1553, 186, 1521, 96, 1529, 72, 286, - - 1524, 332, 1517, 324, 1530, 65, 108, 1517, 1520, 1515, - 1585, 370, 222, 382, 0, 0, 390, 417, 420, 423, - 426, 429, 432, 435, 438, 441, 444, 449, 452, 455, - 458, 466, 471, 481, 484, 492, 495, 498, 501, 506, - 509, 512, 524, 527, 532, 537, 541, 1540, 253, 140, - 1515, 1542, 1515, 1520, 1541, 1507, 326, 1517, 1515, 429, - 1517, 148, 1499, 1585, 1501, 1512, 1511, 294, 1495, 1508, - 1493, 1509, 1492, 1503, 1498, 1516, 1487, 1492, 1488, 1493, - 1485, 1496, 546, 242, 553, 559, 564, 568, 575, 578, - 582, 585, 593, 596, 599, 602, 605, 608, 611, 614, - - 617, 620, 623, 626, 640, 631, 643, 650, 660, 664, - 667, 680, 685, 688, 691, 694, 1496, 1483, 1493, 1491, - 1490, 1490, 1473, 1469, 1585, 1585, 1486, 1476, 1471, 1477, - 1471, 1509, 1471, 1473, 1478, 1477, 1466, 1472, 1460, 1469, - 1459, 1458, 362, 1458, 242, 1497, 1468, 1467, 1453, 1452, - 1585, 390, 698, 703, 706, 710, 718, 727, 742, 745, - 748, 751, 754, 757, 760, 763, 766, 770, 773, 776, - 784, 787, 790, 793, 796, 805, 813, 820, 825, 829, - 1450, 1451, 1449, 1447, 1460, 1455, 1448, 1446, 1442, 1455, - 1458, 1444, 1441, 1437, 1442, 1448, 1448, 1438, 1440, 1436, - - 1443, 1465, 1434, 1423, 1440, 1430, 1428, 1428, 1430, 456, - 1463, 1420, 832, 846, 836, 839, 867, 872, 850, 875, - 880, 883, 886, 889, 893, 896, 899, 902, 905, 908, - 916, 919, 923, 929, 1427, 1420, 650, 1425, 1419, 1421, - 1415, 1414, 1415, 1429, 1409, 1424, 1409, 1422, 1408, 1415, - 1419, 1418, 1416, 1407, 1405, 1405, 1408, 1398, 1438, 1435, - 1395, 1408, 1402, 1396, 1404, 1394, 1406, 932, 935, 945, - 948, 966, 969, 974, 979, 982, 990, 995, 1001, 1005, - 1010, 1013, 1016, 1021, 1024, 1027, 1030, 1033, 1036, 1401, - 1428, 1396, 1398, 1397, 1385, 1395, 1381, 1391, 1388, 1391, - - 1390, 1378, 1388, 1387, 1585, 1386, 1385, 1378, 1394, 1410, - 508, 1385, 1369, 1375, 1365, 1374, 1367, 1368, 1370, 1373, - 1364, 1372, 1374, 1370, 1362, 1041, 1044, 1047, 1062, 1066, - 1069, 1072, 1075, 1078, 1089, 1097, 1100, 1105, 1108, 1111, - 1114, 1117, 1120, 1585, 1358, 1370, 1369, 1362, 1359, 1585, - 185, 1585, 1353, 1362, 1585, 1388, 1348, 1585, 1585, 1585, - 1358, 1339, 1347, 1346, 1354, 1347, 1345, 1338, 1346, 1340, - 1349, 1343, 1337, 1585, 1345, 1344, 1344, 1342, 1369, 1123, - 1128, 1132, 1135, 1138, 1150, 1153, 1161, 1164, 1167, 1173, - 1176, 1179, 1186, 1341, 1328, 1339, 1365, 1323, 1324, 1325, - - 1325, 391, 1323, 1319, 1585, 1320, 1330, 1329, 1331, 1348, - 1313, 1320, 1327, 1314, 1321, 1305, 1284, 1585, 1585, 1290, - 1585, 1283, 1191, 1194, 1201, 1204, 1207, 1210, 1217, 1221, - 1224, 1228, 1231, 1238, 1241, 1278, 1296, 1294, 1255, 1259, - 1245, 389, 1585, 1244, 1247, 1221, 1218, 1217, 1212, 1211, - 1200, 1190, 1585, 1182, 1171, 1191, 1585, 1148, 1141, 1136, - 1133, 1244, 1250, 1259, 1262, 1265, 1268, 1271, 1274, 1277, - 1280, 1585, 1109, 1106, 1097, 1139, 1099, 1091, 1073, 1092, - 1063, 1058, 1084, 1585, 1585, 1585, 1051, 1051, 1042, 1042, - 1014, 1020, 1585, 1046, 1019, 1285, 1292, 1297, 1305, 1308, - - 1311, 1014, 1003, 975, 958, 974, 965, 947, 1585, 953, - 1585, 942, 938, 935, 932, 916, 928, 914, 915, 919, - 1317, 1320, 1323, 917, 915, 902, 906, 888, 932, 903, - 891, 891, 906, 863, 863, 846, 829, 813, 823, 820, - 1330, 817, 809, 836, 798, 777, 775, 808, 764, 774, - 763, 767, 769, 750, 1585, 1585, 747, 733, 732, 722, - 695, 701, 700, 702, 686, 722, 1585, 690, 688, 673, - 681, 1585, 706, 705, 701, 666, 650, 669, 623, 635, - 612, 619, 1585, 613, 603, 602, 592, 591, 593, 580, - 526, 510, 504, 500, 1585, 485, 478, 484, 483, 480, - - 1585, 459, 453, 479, 1585, 443, 417, 439, 374, 367, - 353, 343, 339, 322, 1585, 338, 273, 1585, 1585, 1585, - 271, 1585, 263, 193, 190, 1585, 152, 122, 96, 1585, - 80, 1585, 1585, 1585, 1342, 1346, 1350, 1354, 1356, 1358, - 1362, 92 - } ; - -static yyconst flex_int16_t yy_def[743] = - { 0, - 734, 1, 735, 735, 736, 736, 734, 734, 734, 734, - 737, 738, 734, 739, 734, 734, 734, 734, 740, 740, - 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, - 740, 740, 740, 740, 740, 740, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 737, 734, 738, 734, 734, - 734, 739, 739, 739, 739, 734, 741, 742, 734, 740, - 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, - 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, - 740, 740, 740, 740, 740, 740, 740, 740, 740, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 739, 739, 741, 742, 740, 740, 740, 740, - 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, - 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, - 740, 740, 740, 740, 740, 740, 740, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 739, 739, 740, 740, 740, 740, - 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, - - 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, - 740, 740, 740, 740, 740, 740, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 740, 740, 740, 740, 740, 740, 740, 740, - 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, - 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 740, 740, 740, 740, 740, 740, 740, 740, - 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, - 740, 740, 740, 740, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 740, 740, 740, - 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, - 740, 740, 740, 740, 740, 740, 740, 740, 740, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 740, 740, 740, 740, 740, - 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, - 740, 740, 740, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 740, - 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, - 740, 740, 740, 734, 734, 734, 734, 734, 734, 734, - - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 740, 740, 740, 740, 740, 740, 740, 740, - 740, 740, 740, 740, 740, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 740, 740, 740, 740, 740, 740, 740, 740, 740, - 740, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 740, 740, 740, 740, 740, - - 740, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 740, 740, 740, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 740, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 0, 734, 734, 734, 734, 734, 734, - 734, 734 - } ; - -static yyconst flex_int16_t yy_nxt[1651] = - { 0, - 8, 9, 10, 9, 11, 8, 12, 8, 8, 13, - 14, 15, 16, 17, 18, 19, 19, 19, 19, 19, - 19, 19, 19, 19, 19, 19, 19, 19, 20, 19, - 19, 19, 19, 21, 19, 19, 19, 19, 19, 19, - 19, 19, 22, 23, 24, 25, 26, 19, 19, 27, - 19, 28, 19, 29, 30, 31, 19, 32, 33, 34, - 35, 36, 19, 19, 37, 38, 44, 41, 44, 39, - 42, 45, 47, 45, 47, 49, 112, 112, 50, 49, - 51, 51, 52, 53, 52, 54, 54, 56, 176, 162, - 50, 57, 51, 51, 50, 116, 51, 51, 52, 55, - - 52, 52, 55, 52, 52, 55, 52, 52, 55, 52, - 177, 52, 55, 52, 52, 55, 52, 163, 62, 52, - 55, 52, 52, 55, 52, 733, 47, 61, 47, 52, - 55, 52, 52, 55, 52, 52, 55, 52, 52, 55, - 52, 732, 58, 52, 55, 52, 52, 55, 52, 159, - 64, 91, 63, 65, 70, 92, 66, 178, 160, 67, - 52, 55, 52, 68, 71, 230, 731, 74, 52, 55, - 52, 179, 69, 72, 52, 55, 52, 73, 52, 55, - 52, 218, 231, 49, 75, 78, 79, 49, 80, 50, - 76, 51, 51, 77, 219, 81, 82, 730, 52, 83, - - 52, 52, 113, 52, 52, 499, 52, 84, 89, 52, - 55, 52, 86, 156, 85, 52, 55, 52, 87, 500, - 52, 55, 52, 88, 93, 94, 95, 96, 97, 98, - 99, 52, 100, 52, 729, 101, 102, 117, 103, 104, - 157, 105, 106, 107, 108, 109, 52, 728, 52, 54, - 54, 52, 55, 52, 252, 252, 114, 52, 55, 52, - 119, 52, 55, 52, 52, 55, 52, 52, 55, 52, - 306, 307, 118, 52, 55, 52, 52, 55, 52, 52, - 55, 52, 114, 52, 55, 52, 52, 55, 52, 120, - 52, 55, 52, 121, 52, 55, 52, 52, 55, 52, - - 52, 55, 52, 52, 55, 52, 159, 727, 122, 52, - 55, 52, 52, 55, 52, 217, 726, 123, 52, 55, - 52, 126, 125, 124, 52, 55, 52, 725, 127, 52, - 55, 52, 164, 131, 129, 128, 134, 130, 165, 166, - 132, 52, 55, 52, 236, 133, 52, 55, 52, 237, - 136, 52, 55, 52, 135, 724, 138, 52, 55, 52, - 52, 55, 52, 137, 52, 55, 52, 52, 55, 52, - 91, 139, 140, 168, 92, 172, 723, 169, 173, 223, - 174, 224, 112, 112, 722, 303, 170, 721, 141, 183, - 184, 185, 304, 52, 186, 186, 142, 143, 720, 52, - - 55, 52, 252, 252, 146, 144, 147, 145, 148, 544, - 149, 98, 719, 545, 100, 183, 187, 101, 150, 718, - 103, 151, 578, 579, 152, 153, 52, 55, 52, 52, - 55, 52, 52, 55, 52, 52, 55, 52, 52, 55, - 52, 52, 55, 52, 52, 55, 52, 52, 55, 52, - 52, 55, 52, 52, 55, 52, 717, 188, 52, 55, - 52, 52, 55, 52, 52, 55, 52, 52, 55, 52, - 716, 189, 227, 364, 193, 52, 55, 52, 365, 190, - 52, 55, 52, 191, 228, 197, 192, 194, 715, 195, - 52, 55, 52, 52, 55, 52, 714, 713, 196, 198, - - 199, 52, 55, 52, 52, 55, 52, 52, 55, 52, - 52, 55, 52, 712, 200, 52, 55, 52, 52, 55, - 52, 52, 55, 52, 711, 464, 201, 710, 709, 202, - 465, 708, 203, 52, 55, 52, 52, 55, 52, 707, - 204, 52, 55, 52, 706, 205, 52, 55, 52, 705, - 52, 55, 52, 206, 184, 184, 207, 211, 252, 252, - 208, 209, 52, 210, 52, 186, 186, 704, 52, 212, - 52, 186, 186, 52, 55, 52, 213, 52, 55, 52, - 703, 215, 216, 253, 52, 55, 52, 52, 55, 52, - 214, 52, 55, 52, 52, 55, 52, 702, 254, 255, - - 256, 257, 52, 55, 52, 52, 55, 52, 52, 55, - 52, 52, 55, 52, 52, 55, 52, 52, 55, 52, - 52, 55, 52, 52, 55, 52, 52, 55, 52, 52, - 55, 52, 52, 55, 52, 52, 55, 52, 701, 258, - 52, 55, 52, 259, 260, 700, 699, 262, 261, 52, - 55, 52, 52, 55, 52, 265, 698, 697, 266, 52, - 55, 52, 696, 263, 695, 267, 694, 392, 264, 52, - 55, 52, 268, 52, 55, 52, 52, 55, 52, 693, - 692, 270, 393, 394, 269, 271, 691, 395, 272, 52, - 55, 52, 273, 274, 52, 55, 52, 52, 55, 52, - - 52, 55, 52, 52, 55, 52, 690, 52, 55, 52, - 689, 275, 52, 55, 52, 52, 55, 52, 688, 52, - 55, 52, 687, 686, 277, 276, 313, 52, 55, 52, - 685, 684, 278, 683, 682, 315, 52, 55, 52, 681, - 680, 317, 314, 679, 318, 678, 677, 279, 316, 676, - 280, 52, 55, 52, 52, 55, 52, 52, 55, 52, - 52, 55, 52, 52, 55, 52, 52, 55, 52, 52, - 55, 52, 52, 55, 52, 52, 55, 52, 675, 52, - 55, 52, 52, 55, 52, 52, 55, 52, 674, 673, - 319, 320, 672, 52, 55, 52, 52, 55, 52, 52, - - 55, 52, 52, 55, 52, 52, 55, 52, 671, 324, - 670, 669, 321, 325, 52, 55, 52, 668, 322, 667, - 666, 323, 52, 55, 52, 665, 664, 326, 327, 52, - 55, 52, 663, 328, 52, 55, 52, 330, 52, 55, - 52, 52, 55, 52, 662, 52, 55, 52, 52, 55, - 52, 329, 375, 661, 660, 52, 55, 52, 331, 52, - 55, 52, 659, 369, 370, 658, 333, 657, 376, 334, - 656, 368, 371, 332, 655, 372, 52, 55, 52, 373, - 374, 52, 55, 52, 52, 55, 52, 654, 377, 52, - 55, 52, 52, 55, 52, 52, 55, 52, 52, 55, - - 52, 378, 52, 55, 52, 52, 55, 52, 52, 55, - 52, 52, 55, 52, 52, 55, 52, 52, 55, 52, - 653, 380, 652, 651, 379, 52, 55, 52, 52, 55, - 52, 382, 52, 55, 52, 650, 649, 381, 52, 55, - 52, 52, 55, 52, 52, 55, 52, 383, 648, 647, - 427, 646, 645, 384, 52, 55, 52, 52, 55, 52, - 644, 643, 386, 642, 387, 426, 385, 640, 428, 639, - 638, 429, 637, 636, 388, 52, 55, 52, 52, 55, - 52, 635, 430, 52, 55, 52, 634, 389, 52, 55, - 52, 52, 55, 52, 633, 431, 632, 631, 435, 52, - - 55, 52, 630, 434, 52, 55, 52, 629, 628, 432, - 52, 55, 52, 433, 52, 55, 52, 627, 436, 52, - 55, 52, 52, 55, 52, 52, 55, 52, 626, 437, - 52, 55, 52, 52, 55, 52, 52, 55, 52, 52, - 55, 52, 52, 55, 52, 52, 55, 52, 439, 625, - 52, 55, 52, 52, 55, 52, 52, 55, 52, 438, - 624, 441, 620, 619, 482, 618, 440, 480, 617, 442, - 481, 52, 55, 52, 443, 52, 55, 52, 52, 55, - 52, 52, 55, 52, 52, 55, 52, 52, 55, 52, - 484, 616, 485, 615, 614, 483, 613, 488, 52, 55, - - 52, 612, 486, 611, 610, 487, 52, 55, 52, 52, - 55, 52, 490, 489, 52, 55, 52, 52, 55, 52, - 52, 55, 52, 52, 55, 52, 52, 55, 52, 52, - 55, 52, 52, 55, 52, 609, 608, 52, 55, 52, - 491, 52, 55, 52, 52, 55, 52, 52, 55, 52, - 607, 606, 523, 492, 524, 605, 604, 527, 493, 52, - 55, 52, 52, 55, 52, 603, 525, 528, 602, 526, - 52, 55, 52, 52, 55, 52, 52, 55, 52, 529, - 530, 531, 52, 55, 52, 52, 55, 52, 52, 55, - 52, 595, 594, 534, 535, 52, 55, 52, 593, 533, - - 52, 55, 52, 52, 55, 52, 592, 532, 591, 563, - 52, 55, 52, 52, 55, 52, 52, 55, 52, 52, - 55, 52, 590, 589, 564, 562, 52, 55, 52, 565, - 52, 55, 52, 52, 55, 52, 566, 52, 55, 52, - 52, 55, 52, 588, 587, 568, 569, 52, 55, 52, - 52, 55, 52, 52, 55, 52, 586, 585, 567, 52, - 55, 52, 584, 583, 571, 582, 596, 570, 52, 55, - 52, 52, 55, 52, 52, 55, 52, 52, 55, 52, - 52, 55, 52, 52, 55, 52, 52, 55, 52, 52, - 55, 52, 581, 597, 52, 55, 52, 599, 580, 577, - - 598, 52, 55, 52, 576, 600, 52, 55, 52, 575, - 574, 621, 573, 601, 52, 55, 52, 52, 55, 52, - 52, 55, 52, 572, 561, 622, 52, 55, 52, 52, - 55, 52, 52, 55, 52, 560, 641, 559, 623, 52, - 55, 52, 40, 40, 40, 40, 43, 43, 43, 43, - 46, 46, 46, 46, 48, 48, 48, 48, 55, 55, - 60, 60, 115, 558, 115, 115, 557, 556, 555, 554, - 553, 552, 551, 550, 549, 548, 547, 546, 543, 542, - 541, 540, 539, 538, 537, 536, 522, 521, 520, 519, - 518, 517, 516, 515, 514, 513, 512, 511, 510, 509, - - 508, 507, 506, 505, 504, 503, 502, 501, 498, 497, - 496, 495, 494, 479, 478, 477, 476, 475, 474, 473, - 472, 471, 470, 469, 468, 467, 466, 463, 462, 461, - 460, 459, 458, 457, 456, 455, 454, 453, 452, 451, - 450, 449, 448, 447, 446, 445, 444, 425, 424, 423, - 422, 421, 420, 419, 418, 417, 416, 415, 414, 413, - 412, 411, 410, 409, 408, 407, 406, 405, 404, 403, - 402, 401, 400, 399, 398, 397, 396, 391, 390, 367, - 366, 363, 362, 361, 360, 359, 358, 357, 356, 355, - 354, 353, 352, 351, 350, 349, 348, 347, 346, 345, - - 344, 343, 342, 341, 340, 339, 338, 337, 336, 335, - 312, 311, 310, 309, 308, 305, 302, 301, 300, 299, - 298, 297, 296, 295, 294, 293, 292, 291, 290, 289, - 288, 287, 286, 285, 284, 283, 282, 281, 237, 227, - 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, - 241, 240, 239, 238, 235, 234, 233, 232, 229, 226, - 225, 222, 221, 220, 178, 176, 172, 156, 182, 181, - 180, 175, 171, 167, 161, 158, 155, 154, 111, 110, - 90, 59, 734, 41, 7, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734 - } ; - -static yyconst flex_int16_t yy_chk[1651] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 2, 5, 4, 6, 2, - 4, 5, 11, 6, 11, 12, 50, 50, 13, 12, - 13, 13, 14, 14, 14, 14, 14, 15, 106, 99, - 16, 15, 16, 16, 17, 742, 17, 17, 19, 19, - - 19, 20, 20, 20, 21, 21, 21, 22, 22, 22, - 106, 23, 23, 23, 24, 24, 24, 99, 21, 25, - 25, 25, 26, 26, 26, 731, 46, 20, 46, 27, - 27, 27, 28, 28, 28, 29, 29, 29, 30, 30, - 30, 729, 16, 31, 31, 31, 32, 32, 32, 97, - 23, 38, 22, 23, 26, 38, 23, 107, 97, 24, - 33, 33, 33, 25, 26, 162, 728, 29, 34, 34, - 34, 107, 25, 27, 36, 36, 36, 28, 35, 35, - 35, 150, 162, 48, 30, 32, 32, 48, 32, 51, - 31, 51, 51, 31, 150, 32, 33, 727, 52, 33, - - 52, 53, 53, 53, 55, 451, 55, 33, 36, 60, - 60, 60, 34, 95, 33, 63, 63, 63, 35, 451, - 61, 61, 61, 35, 39, 39, 39, 39, 39, 39, - 39, 113, 39, 113, 725, 39, 39, 61, 39, 39, - 95, 39, 39, 39, 39, 39, 54, 724, 54, 54, - 54, 62, 62, 62, 184, 184, 54, 64, 64, 64, - 63, 65, 65, 65, 66, 66, 66, 67, 67, 67, - 245, 245, 62, 68, 68, 68, 69, 69, 69, 70, - 70, 70, 54, 71, 71, 71, 72, 72, 72, 64, - 73, 73, 73, 65, 74, 74, 74, 75, 75, 75, - - 76, 76, 76, 77, 77, 77, 149, 723, 66, 78, - 78, 78, 79, 79, 79, 149, 721, 67, 80, 80, - 80, 70, 69, 68, 81, 81, 81, 717, 71, 82, - 82, 82, 100, 75, 73, 72, 77, 74, 100, 100, - 76, 83, 83, 83, 168, 76, 84, 84, 84, 168, - 79, 85, 85, 85, 78, 716, 81, 86, 86, 86, - 87, 87, 87, 80, 88, 88, 88, 89, 89, 89, - 91, 81, 82, 102, 91, 104, 714, 102, 104, 157, - 104, 157, 112, 112, 713, 243, 102, 712, 83, 112, - 114, 114, 243, 114, 114, 114, 84, 85, 711, 117, - - 117, 117, 252, 252, 88, 86, 89, 87, 92, 502, - 92, 92, 710, 502, 92, 112, 117, 92, 92, 709, - 92, 92, 542, 542, 92, 92, 118, 118, 118, 119, - 119, 119, 120, 120, 120, 121, 121, 121, 122, 122, - 122, 123, 123, 123, 124, 124, 124, 125, 125, 125, - 126, 126, 126, 127, 127, 127, 708, 118, 128, 128, - 128, 129, 129, 129, 130, 130, 130, 131, 131, 131, - 707, 119, 160, 310, 123, 132, 132, 132, 310, 120, - 133, 133, 133, 121, 160, 127, 122, 124, 706, 125, - 134, 134, 134, 135, 135, 135, 704, 703, 126, 129, - - 130, 136, 136, 136, 137, 137, 137, 138, 138, 138, - 139, 139, 139, 702, 131, 140, 140, 140, 141, 141, - 141, 142, 142, 142, 700, 411, 132, 699, 698, 133, - 411, 697, 134, 143, 143, 143, 144, 144, 144, 696, - 135, 145, 145, 145, 694, 136, 146, 146, 146, 693, - 147, 147, 147, 137, 183, 183, 138, 142, 183, 183, - 139, 140, 185, 141, 185, 185, 185, 692, 186, 143, - 186, 186, 186, 187, 187, 187, 144, 188, 188, 188, - 691, 146, 147, 188, 189, 189, 189, 190, 190, 190, - 145, 191, 191, 191, 192, 192, 192, 690, 188, 188, - - 188, 188, 193, 193, 193, 194, 194, 194, 195, 195, - 195, 196, 196, 196, 197, 197, 197, 198, 198, 198, - 199, 199, 199, 200, 200, 200, 201, 201, 201, 202, - 202, 202, 203, 203, 203, 204, 204, 204, 689, 191, - 206, 206, 206, 192, 193, 688, 687, 196, 195, 205, - 205, 205, 207, 207, 207, 200, 686, 685, 201, 208, - 208, 208, 684, 197, 682, 202, 681, 337, 199, 209, - 209, 209, 203, 210, 210, 210, 211, 211, 211, 680, - 679, 205, 337, 337, 204, 205, 678, 337, 206, 212, - 212, 212, 207, 208, 213, 213, 213, 214, 214, 214, - - 215, 215, 215, 216, 216, 216, 677, 253, 253, 253, - 676, 209, 254, 254, 254, 255, 255, 255, 675, 256, - 256, 256, 674, 673, 212, 210, 253, 257, 257, 257, - 671, 670, 213, 669, 668, 255, 258, 258, 258, 666, - 665, 257, 254, 664, 257, 663, 662, 214, 256, 661, - 216, 259, 259, 259, 260, 260, 260, 261, 261, 261, - 262, 262, 262, 263, 263, 263, 264, 264, 264, 265, - 265, 265, 266, 266, 266, 267, 267, 267, 660, 268, - 268, 268, 269, 269, 269, 270, 270, 270, 659, 658, - 260, 261, 657, 271, 271, 271, 272, 272, 272, 273, - - 273, 273, 274, 274, 274, 275, 275, 275, 654, 267, - 653, 652, 264, 268, 276, 276, 276, 651, 265, 650, - 649, 266, 277, 277, 277, 648, 647, 270, 271, 278, - 278, 278, 646, 273, 279, 279, 279, 275, 280, 280, - 280, 313, 313, 313, 645, 315, 315, 315, 316, 316, - 316, 274, 315, 644, 643, 314, 314, 314, 277, 319, - 319, 319, 642, 314, 314, 640, 279, 639, 316, 280, - 638, 313, 314, 278, 637, 314, 317, 317, 317, 314, - 314, 318, 318, 318, 320, 320, 320, 636, 317, 321, - 321, 321, 322, 322, 322, 323, 323, 323, 324, 324, - - 324, 318, 325, 325, 325, 326, 326, 326, 327, 327, - 327, 328, 328, 328, 329, 329, 329, 330, 330, 330, - 635, 321, 634, 633, 320, 331, 331, 331, 332, 332, - 332, 323, 333, 333, 333, 632, 631, 322, 334, 334, - 334, 368, 368, 368, 369, 369, 369, 324, 630, 629, - 369, 628, 627, 326, 370, 370, 370, 371, 371, 371, - 626, 625, 331, 624, 332, 368, 330, 620, 370, 619, - 618, 371, 617, 616, 333, 372, 372, 372, 373, 373, - 373, 615, 372, 374, 374, 374, 614, 334, 375, 375, - 375, 376, 376, 376, 613, 373, 612, 610, 376, 377, - - 377, 377, 608, 375, 378, 378, 378, 607, 606, 374, - 379, 379, 379, 374, 380, 380, 380, 605, 377, 381, - 381, 381, 382, 382, 382, 383, 383, 383, 604, 378, - 384, 384, 384, 385, 385, 385, 386, 386, 386, 387, - 387, 387, 388, 388, 388, 389, 389, 389, 380, 603, - 426, 426, 426, 427, 427, 427, 428, 428, 428, 379, - 602, 383, 595, 594, 428, 592, 381, 426, 591, 385, - 427, 429, 429, 429, 387, 430, 430, 430, 431, 431, - 431, 432, 432, 432, 433, 433, 433, 434, 434, 434, - 430, 590, 431, 589, 588, 429, 587, 434, 435, 435, - - 435, 583, 432, 582, 581, 433, 436, 436, 436, 437, - 437, 437, 436, 435, 438, 438, 438, 439, 439, 439, - 440, 440, 440, 441, 441, 441, 442, 442, 442, 443, - 443, 443, 480, 480, 480, 580, 579, 481, 481, 481, - 437, 482, 482, 482, 483, 483, 483, 484, 484, 484, - 578, 577, 480, 439, 481, 576, 575, 484, 441, 485, - 485, 485, 486, 486, 486, 574, 482, 485, 573, 483, - 487, 487, 487, 488, 488, 488, 489, 489, 489, 486, - 487, 488, 490, 490, 490, 491, 491, 491, 492, 492, - 492, 561, 560, 491, 491, 493, 493, 493, 559, 490, - - 523, 523, 523, 524, 524, 524, 558, 489, 556, 524, - 525, 525, 525, 526, 526, 526, 527, 527, 527, 528, - 528, 528, 555, 554, 527, 523, 529, 529, 529, 528, - 530, 530, 530, 531, 531, 531, 529, 532, 532, 532, - 533, 533, 533, 552, 551, 532, 532, 534, 534, 534, - 535, 535, 535, 562, 562, 562, 550, 549, 531, 563, - 563, 563, 548, 547, 535, 546, 563, 534, 564, 564, - 564, 565, 565, 565, 566, 566, 566, 567, 567, 567, - 568, 568, 568, 569, 569, 569, 570, 570, 570, 571, - 571, 571, 545, 564, 596, 596, 596, 569, 544, 541, - - 568, 597, 597, 597, 540, 570, 598, 598, 598, 539, - 538, 596, 537, 571, 599, 599, 599, 600, 600, 600, - 601, 601, 601, 536, 522, 598, 621, 621, 621, 622, - 622, 622, 623, 623, 623, 520, 621, 517, 599, 641, - 641, 641, 735, 735, 735, 735, 736, 736, 736, 736, - 737, 737, 737, 737, 738, 738, 738, 738, 739, 739, - 740, 740, 741, 516, 741, 741, 515, 514, 513, 512, - 511, 510, 509, 508, 507, 506, 504, 503, 501, 500, - 499, 498, 497, 496, 495, 494, 479, 478, 477, 476, - 475, 473, 472, 471, 470, 469, 468, 467, 466, 465, - - 464, 463, 462, 461, 457, 456, 454, 453, 449, 448, - 447, 446, 445, 425, 424, 423, 422, 421, 420, 419, - 418, 417, 416, 415, 414, 413, 412, 410, 409, 408, - 407, 406, 404, 403, 402, 401, 400, 399, 398, 397, - 396, 395, 394, 393, 392, 391, 390, 367, 366, 365, - 364, 363, 362, 361, 360, 359, 358, 357, 356, 355, - 354, 353, 352, 351, 350, 349, 348, 347, 346, 345, - 344, 343, 342, 341, 340, 339, 338, 336, 335, 312, - 311, 309, 308, 307, 306, 305, 304, 303, 302, 301, - 300, 299, 298, 297, 296, 295, 294, 293, 292, 291, - - 290, 289, 288, 287, 286, 285, 284, 283, 282, 281, - 250, 249, 248, 247, 246, 244, 242, 241, 240, 239, - 238, 237, 236, 235, 234, 233, 232, 231, 230, 229, - 228, 227, 224, 223, 222, 221, 220, 219, 218, 217, - 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, - 172, 171, 170, 169, 167, 166, 165, 163, 161, 159, - 158, 156, 155, 154, 153, 152, 151, 148, 110, 109, - 108, 105, 103, 101, 98, 96, 94, 93, 45, 42, - 37, 18, 7, 3, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 734 - } ; - -static yy_state_type yy_last_accepting_state; -static char *yy_last_accepting_cpos; - -extern int yy_flex_debug; -int yy_flex_debug = 0; - -/* The intent behind this definition is that it'll catch - * any uses of REJECT which flex missed. - */ -#define REJECT reject_used_but_not_detected -#define yymore() yymore_used_but_not_detected -#define YY_MORE_ADJ 0 -#define YY_RESTORE_YY_MORE_OFFSET -char *yytext; -#line 1 "lexer.l" -/* - * The SIP lexer. - * - * Copyright (c) 2007 - * Riverbank Computing Limited - * - * This file is part of SIP. - * - * This copy of SIP is licensed for use under the terms of the SIP License - * Agreement. See the file LICENSE for more details. - * - * SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ -#line 17 "lexer.l" -#include -#include -#include -#include - -#include "sip.h" -#include "parser.h" - - -#ifndef FLEX_SCANNER -#error "Only flex is supported at the moment" -#endif - - -#define YY_FATAL_ERROR(s) fatallex(s) - -#define MAX_INCLUDE_DEPTH 10 -#define MAX_CODE_LINE_LENGTH 1000 - - -static struct inputFile { - int lineno; /* The line number. */ - YY_BUFFER_STATE bs; /* The flex buffer state handle. */ - char *name; /* The file name. */ - char *cwd; /* The path part of the file name. */ - parserContext pc; /* The parser context. */ -} inputFileStack[MAX_INCLUDE_DEPTH]; - -static int currentFile = -1; /* Index of the current input file. */ -static char codeLine[MAX_CODE_LINE_LENGTH + 2]; /* The current code line. */ -static int codeIdx = -1; /* Index of next code character. */ - -static FILE *openFile(char *); -static void fatallex(char *); - - -#line 1113 "lexer.c.tmp" - -#define INITIAL 0 -#define code 1 -#define ccomment 2 - -#ifndef YY_NO_UNISTD_H -/* Special case for "unistd.h", since it is non-ANSI. We include it way - * down here because we want the user's section 1 to have been scanned first. - * The user has a chance to override it with an option. - */ - -#endif - -#ifndef YY_EXTRA_TYPE -#define YY_EXTRA_TYPE void * -#endif - -static int yy_init_globals (void ); - -/* Macros after this point can all be overridden by user definitions in - * section 1. - */ - -#ifndef YY_SKIP_YYWRAP -#ifdef __cplusplus -extern "C" int yywrap (void ); -#else -extern int yywrap (void ); -#endif -#endif - - static void yyunput (int c,char *buf_ptr ); - -#ifndef yytext_ptr -static void yy_flex_strncpy (char *,yyconst char *,int ); -#endif - -#ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * ); -#endif - -#ifndef YY_NO_INPUT - -#ifdef __cplusplus -static int yyinput (void ); -#else -static int input (void ); -#endif - -#endif - -/* Amount of stuff to slurp up with each read. */ -#ifndef YY_READ_BUF_SIZE -#define YY_READ_BUF_SIZE 8192 -#endif - -/* Copy whatever the last rule matched to the standard output. */ -#ifndef ECHO -/* This used to be an fputs(), but since the string might contain NUL's, - * we now use fwrite(). - */ -#define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) -#endif - -/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, - * is returned in "result". - */ -#ifndef YY_INPUT -#define YY_INPUT(buf,result,max_size) \ - if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ - { \ - int c = '*'; \ - size_t n; \ - for ( n = 0; n < max_size && \ - (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ - buf[n] = (char) c; \ - if ( c == '\n' ) \ - buf[n++] = (char) c; \ - if ( c == EOF && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - result = n; \ - } \ - else \ - { \ - errno=0; \ - while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ - { \ - if( errno != EINTR) \ - { \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - break; \ - } \ - errno=0; \ - clearerr(yyin); \ - } \ - }\ -\ - -#endif - -/* No semi-colon after return; correct usage is to write "yyterminate();" - - * we don't want an extra ';' after the "return" because that will cause - * some compilers to complain about unreachable statements. - */ -#ifndef yyterminate -#define yyterminate() return YY_NULL -#endif - -/* Number of entries by which start-condition stack grows. */ -#ifndef YY_START_STACK_INCR -#define YY_START_STACK_INCR 25 -#endif - -/* Report a fatal error. */ -#ifndef YY_FATAL_ERROR -#define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) -#endif - -/* end tables serialization structures and prototypes */ - -/* Default declaration of generated scanner - a define so the user can - * easily add parameters. - */ -#ifndef YY_DECL -#define YY_DECL_IS_OURS 1 - -extern int yylex (void); - -#define YY_DECL int yylex (void) -#endif /* !YY_DECL */ - -/* Code executed at the beginning of each rule, after yytext and yyleng - * have been set up. - */ -#ifndef YY_USER_ACTION -#define YY_USER_ACTION -#endif - -/* Code executed at the end of each rule. */ -#ifndef YY_BREAK -#define YY_BREAK break; -#endif - -#define YY_RULE_SETUP \ - if ( yyleng > 0 ) \ - YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ - (yytext[yyleng - 1] == '\n'); \ - YY_USER_ACTION - -/** The main scanner function which does all the work. - */ -YY_DECL -{ - register yy_state_type yy_current_state; - register char *yy_cp, *yy_bp; - register int yy_act; - -#line 56 "lexer.l" - - -#line 1274 "lexer.c.tmp" - - if ( !(yy_init) ) - { - (yy_init) = 1; - -#ifdef YY_USER_INIT - YY_USER_INIT; -#endif - - if ( ! (yy_start) ) - (yy_start) = 1; /* first start state */ - - if ( ! yyin ) - yyin = stdin; - - if ( ! yyout ) - yyout = stdout; - - if ( ! YY_CURRENT_BUFFER ) { - yyensure_buffer_stack (); - YY_CURRENT_BUFFER_LVALUE = - yy_create_buffer(yyin,YY_BUF_SIZE ); - } - - yy_load_buffer_state( ); - } - - while ( 1 ) /* loops until end-of-file is reached */ - { - yy_cp = (yy_c_buf_p); - - /* Support of yytext. */ - *yy_cp = (yy_hold_char); - - /* yy_bp points to the position in yy_ch_buf of the start of - * the current run. - */ - yy_bp = yy_cp; - - yy_current_state = (yy_start); - yy_current_state += YY_AT_BOL(); -yy_match: - do - { - register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; - if ( yy_accept[yy_current_state] ) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 735 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - ++yy_cp; - } - while ( yy_base[yy_current_state] != 1585 ); - -yy_find_action: - yy_act = yy_accept[yy_current_state]; - if ( yy_act == 0 ) - { /* have to back up */ - yy_cp = (yy_last_accepting_cpos); - yy_current_state = (yy_last_accepting_state); - yy_act = yy_accept[yy_current_state]; - } - - YY_DO_BEFORE_ACTION; - -do_action: /* This label is used only to access EOF actions. */ - - switch ( yy_act ) - { /* beginning of action switch */ - case 0: /* must back up */ - /* undo the effects of YY_DO_BEFORE_ACTION */ - *yy_cp = (yy_hold_char); - yy_cp = (yy_last_accepting_cpos); - yy_current_state = (yy_last_accepting_state); - goto yy_find_action; - -case 1: -YY_RULE_SETUP -#line 58 "lexer.l" -{return TK_OPTIONS;} - YY_BREAK -case 2: -YY_RULE_SETUP -#line 59 "lexer.l" -{return TK_NOEMITTERS;} - YY_BREAK -case 3: -YY_RULE_SETUP -#line 60 "lexer.l" -{return TK_INCLUDE;} - YY_BREAK -case 4: -YY_RULE_SETUP -#line 61 "lexer.l" -{return TK_OPTINCLUDE;} - YY_BREAK -case 5: -YY_RULE_SETUP -#line 62 "lexer.l" -{return TK_IMPORT;} - YY_BREAK -case 6: -YY_RULE_SETUP -#line 63 "lexer.l" -{return TK_MODULE;} - YY_BREAK -case 7: -YY_RULE_SETUP -#line 64 "lexer.l" -{return TK_CMODULE;} - YY_BREAK -case 8: -YY_RULE_SETUP -#line 65 "lexer.l" -{return TK_TIMELINE;} - YY_BREAK -case 9: -YY_RULE_SETUP -#line 66 "lexer.l" -{return TK_PLATFORMS;} - YY_BREAK -case 10: -YY_RULE_SETUP -#line 67 "lexer.l" -{return TK_FEATURE;} - YY_BREAK -case 11: -YY_RULE_SETUP -#line 68 "lexer.l" -{return TK_LICENSE;} - YY_BREAK -case 12: -YY_RULE_SETUP -#line 69 "lexer.l" -{return TK_MAPPEDTYPE;} - YY_BREAK -case 13: -YY_RULE_SETUP -#line 70 "lexer.l" -{return TK_EXCEPTION;} - YY_BREAK -case 14: -YY_RULE_SETUP -#line 71 "lexer.l" -{return TK_IF;} - YY_BREAK -case 15: -YY_RULE_SETUP -#line 72 "lexer.l" -{return TK_END;} - YY_BREAK -case 16: -YY_RULE_SETUP -#line 73 "lexer.l" -{return TK_CLASS;} - YY_BREAK -case 17: -YY_RULE_SETUP -#line 74 "lexer.l" -{return TK_STRUCT;} - YY_BREAK -case 18: -YY_RULE_SETUP -#line 75 "lexer.l" -{return TK_PUBLIC;} - YY_BREAK -case 19: -YY_RULE_SETUP -#line 76 "lexer.l" -{return TK_PROTECTED;} - YY_BREAK -case 20: -YY_RULE_SETUP -#line 77 "lexer.l" -{return TK_PRIVATE;} - YY_BREAK -case 21: -YY_RULE_SETUP -#line 78 "lexer.l" -{return TK_SIGNALS;} - YY_BREAK -case 22: -YY_RULE_SETUP -#line 79 "lexer.l" -{return TK_SLOTS;} - YY_BREAK -case 23: -YY_RULE_SETUP -#line 80 "lexer.l" -{return TK_CHAR;} - YY_BREAK -case 24: -YY_RULE_SETUP -#line 81 "lexer.l" -{return TK_WCHAR_T;} - YY_BREAK -case 25: -YY_RULE_SETUP -#line 82 "lexer.l" -{return TK_BOOL;} - YY_BREAK -case 26: -YY_RULE_SETUP -#line 83 "lexer.l" -{return TK_SHORT;} - YY_BREAK -case 27: -YY_RULE_SETUP -#line 84 "lexer.l" -{return TK_INT;} - YY_BREAK -case 28: -YY_RULE_SETUP -#line 85 "lexer.l" -{return TK_LONG;} - YY_BREAK -case 29: -YY_RULE_SETUP -#line 86 "lexer.l" -{return TK_FLOAT;} - YY_BREAK -case 30: -YY_RULE_SETUP -#line 87 "lexer.l" -{return TK_DOUBLE;} - YY_BREAK -case 31: -YY_RULE_SETUP -#line 88 "lexer.l" -{return TK_VOID;} - YY_BREAK -case 32: -YY_RULE_SETUP -#line 89 "lexer.l" -{return TK_VIRTUAL;} - YY_BREAK -case 33: -YY_RULE_SETUP -#line 90 "lexer.l" -{return TK_ENUM;} - YY_BREAK -case 34: -YY_RULE_SETUP -#line 91 "lexer.l" -{return TK_SIGNED;} - YY_BREAK -case 35: -YY_RULE_SETUP -#line 92 "lexer.l" -{return TK_UNSIGNED;} - YY_BREAK -case 36: -YY_RULE_SETUP -#line 93 "lexer.l" -{return TK_CONST;} - YY_BREAK -case 37: -YY_RULE_SETUP -#line 94 "lexer.l" -{return TK_STATIC;} - YY_BREAK -case 38: -YY_RULE_SETUP -#line 95 "lexer.l" -{return TK_TRUE;} - YY_BREAK -case 39: -YY_RULE_SETUP -#line 96 "lexer.l" -{return TK_FALSE;} - YY_BREAK -case 40: -YY_RULE_SETUP -#line 97 "lexer.l" -{return TK_NULL;} - YY_BREAK -case 41: -YY_RULE_SETUP -#line 98 "lexer.l" -{return TK_TYPEDEF;} - YY_BREAK -case 42: -YY_RULE_SETUP -#line 99 "lexer.l" -{return TK_NAMESPACE;} - YY_BREAK -case 43: -YY_RULE_SETUP -#line 100 "lexer.l" -{return TK_OPERATOR;} - YY_BREAK -case 44: -YY_RULE_SETUP -#line 101 "lexer.l" -{return TK_THROW;} - YY_BREAK -case 45: -YY_RULE_SETUP -#line 102 "lexer.l" -{return TK_EXPLICIT;} - YY_BREAK -case 46: -YY_RULE_SETUP -#line 103 "lexer.l" -{return TK_TEMPLATE;} - YY_BREAK -case 47: -YY_RULE_SETUP -#line 104 "lexer.l" -{return TK_SCOPE;} - YY_BREAK -case 48: -YY_RULE_SETUP -#line 105 "lexer.l" -{return TK_LOGICAL_OR;} - YY_BREAK -case 49: -YY_RULE_SETUP -#line 106 "lexer.l" -{return TK_PYOBJECT;} - YY_BREAK -case 50: -YY_RULE_SETUP -#line 107 "lexer.l" -{return TK_PYTUPLE;} - YY_BREAK -case 51: -YY_RULE_SETUP -#line 108 "lexer.l" -{return TK_PYLIST;} - YY_BREAK -case 52: -YY_RULE_SETUP -#line 109 "lexer.l" -{return TK_PYDICT;} - YY_BREAK -case 53: -YY_RULE_SETUP -#line 110 "lexer.l" -{return TK_PYCALLABLE;} - YY_BREAK -case 54: -YY_RULE_SETUP -#line 111 "lexer.l" -{return TK_PYSLICE;} - YY_BREAK -case 55: -YY_RULE_SETUP -#line 112 "lexer.l" -{return TK_PYTYPE;} - YY_BREAK -case 56: -YY_RULE_SETUP -#line 113 "lexer.l" -{return TK_SIPSIGNAL;} - YY_BREAK -case 57: -YY_RULE_SETUP -#line 114 "lexer.l" -{return TK_SIPSLOT;} - YY_BREAK -case 58: -YY_RULE_SETUP -#line 115 "lexer.l" -{return TK_SIPANYSLOT;} - YY_BREAK -case 59: -YY_RULE_SETUP -#line 116 "lexer.l" -{return TK_SIPRXCON;} - YY_BREAK -case 60: -YY_RULE_SETUP -#line 117 "lexer.l" -{return TK_SIPRXDIS;} - YY_BREAK -case 61: -YY_RULE_SETUP -#line 118 "lexer.l" -{return TK_SIPSLOTCON;} - YY_BREAK -case 62: -YY_RULE_SETUP -#line 119 "lexer.l" -{return TK_SIPSLOTDIS;} - YY_BREAK -case 63: -YY_RULE_SETUP -#line 120 "lexer.l" -{return TK_QOBJECT;} - YY_BREAK -case 64: -YY_RULE_SETUP -#line 121 "lexer.l" -{return TK_ELLIPSIS;} - YY_BREAK -case 65: -YY_RULE_SETUP -#line 124 "lexer.l" -{ /* Ignore whitespace. */ - ; -} - YY_BREAK -case 66: -/* rule 66 can match eol */ -YY_RULE_SETUP -#line 128 "lexer.l" -{ /* Maintain the line number. */ - ++inputFileStack[currentFile].lineno; - - if (codeIdx == 0) - { - BEGIN code; - } -} - YY_BREAK -case 67: -YY_RULE_SETUP -#line 137 "lexer.l" -{ /* Ignore C++ style comments. */ - ; -} - YY_BREAK -case 68: -YY_RULE_SETUP -#line 142 "lexer.l" -{ /* A signed decimal number. */ - yylval.number = strtol(yytext,NULL,0); - return TK_NUMBER; -} - YY_BREAK -case 69: -YY_RULE_SETUP -#line 148 "lexer.l" -{/* A floating point number. */ - yylval.real = strtod(yytext,NULL); - return TK_REAL; -} - YY_BREAK -case 70: -YY_RULE_SETUP -#line 154 "lexer.l" -{ /* An unsigned hexadecimal number. */ - yylval.number = strtol(yytext,NULL,16); - return TK_NUMBER; -} - YY_BREAK -case 71: -YY_RULE_SETUP -#line 160 "lexer.l" -{ /* An identifier name. */ - yylval.text = sipStrdup(yytext); - return TK_NAME; -} - YY_BREAK -case 72: -YY_RULE_SETUP -#line 166 "lexer.l" -{ /* A relative pathname. */ - yylval.text = sipStrdup(yytext); - return TK_PATHNAME; -} - YY_BREAK -case 73: -/* rule 73 can match eol */ -YY_RULE_SETUP -#line 172 "lexer.l" -{ /* A double-quoted string. */ - char *dp, *sp; - - /* Copy the string without the quotes. */ - - yylval.text = sipMalloc(strlen(yytext) + 1); - - dp = yylval.text; - sp = yytext; - - while (*sp != '\0') - { - if (*sp != '"') - *dp++ = *sp; - - ++sp; - } - - *dp = '\0'; - - return TK_STRING; -} - YY_BREAK -case 74: -/* rule 74 can match eol */ -YY_RULE_SETUP -#line 196 "lexer.l" -{ /* A single-quoted character. */ - if (strlen(yytext) != 3) - fatallex("Exactly one character expected between single quotes"); - - yylval.qchar = yytext[1]; - - return TK_QCHAR; -} - YY_BREAK -case 75: -YY_RULE_SETUP -#line 206 "lexer.l" -{ /* Ignore C-style comments. */ - BEGIN ccomment; -} - YY_BREAK -case 76: -/* rule 76 can match eol */ -YY_RULE_SETUP -#line 209 "lexer.l" -{ - ++inputFileStack[currentFile].lineno; -} - YY_BREAK -case 77: -YY_RULE_SETUP -#line 212 "lexer.l" -{ - BEGIN INITIAL; -} - YY_BREAK -case 78: -YY_RULE_SETUP -#line 215 "lexer.l" -{ - ; -} - YY_BREAK -case 79: -YY_RULE_SETUP -#line 220 "lexer.l" -{ /* The software license. */ - codeIdx = 0; - return TK_COPYING; -} - YY_BREAK -case 80: -YY_RULE_SETUP -#line 225 "lexer.l" -{ /* The start of a from-type code block. */ - codeIdx = 0; - return TK_FROMTYPE; -} - YY_BREAK -case 81: -YY_RULE_SETUP -#line 230 "lexer.l" -{ /* The start of a to-type code block. */ - codeIdx = 0; - return TK_TOTYPE; -} - YY_BREAK -case 82: -YY_RULE_SETUP -#line 235 "lexer.l" -{ /* The start of a to-sub-class code block. */ - codeIdx = 0; - return TK_TOSUBCLASS; -} - YY_BREAK -case 83: -YY_RULE_SETUP -#line 240 "lexer.l" -{ /* The start of an exported header code block. */ - codeIdx = 0; - return TK_EXPHEADERCODE; -} - YY_BREAK -case 84: -YY_RULE_SETUP -#line 245 "lexer.l" -{ /* The start of a module header code block. */ - codeIdx = 0; - return TK_MODHEADERCODE; -} - YY_BREAK -case 85: -YY_RULE_SETUP -#line 250 "lexer.l" -{ /* The start of a type header code block. */ - codeIdx = 0; - return TK_TYPEHEADERCODE; -} - YY_BREAK -case 86: -YY_RULE_SETUP -#line 255 "lexer.l" -{ /* The start of a pre-initialisation code block. */ - codeIdx = 0; - return TK_PREINITCODE; -} - YY_BREAK -case 87: -YY_RULE_SETUP -#line 260 "lexer.l" -{ /* The start of a post-initialisation code block. */ - codeIdx = 0; - return TK_POSTINITCODE; -} - YY_BREAK -case 88: -YY_RULE_SETUP -#line 265 "lexer.l" -{ /* The start of a unit code block. */ - codeIdx = 0; - return TK_UNITCODE; -} - YY_BREAK -case 89: -YY_RULE_SETUP -#line 270 "lexer.l" -{ /* The start of a module code block. */ - codeIdx = 0; - return TK_MODCODE; -} - YY_BREAK -case 90: -YY_RULE_SETUP -#line 275 "lexer.l" -{ /* The start of a type code block. */ - codeIdx = 0; - return TK_TYPECODE; -} - YY_BREAK -case 91: -YY_RULE_SETUP -#line 280 "lexer.l" -{ /* The start of a C++ method code block. */ - codeIdx = 0; - return TK_METHODCODE; -} - YY_BREAK -case 92: -YY_RULE_SETUP -#line 285 "lexer.l" -{ /* The start of a C++ virtual code block. */ - codeIdx = 0; - return TK_VIRTUALCATCHERCODE; -} - YY_BREAK -case 93: -YY_RULE_SETUP -#line 290 "lexer.l" -{ /* The start of a traverse code block. */ - codeIdx = 0; - return TK_TRAVERSECODE; -} - YY_BREAK -case 94: -YY_RULE_SETUP -#line 295 "lexer.l" -{ /* The start of a clear code block. */ - codeIdx = 0; - return TK_CLEARCODE; -} - YY_BREAK -case 95: -YY_RULE_SETUP -#line 300 "lexer.l" -{ /* The start of a read buffer code block. */ - codeIdx = 0; - return TK_READBUFFERCODE; -} - YY_BREAK -case 96: -YY_RULE_SETUP -#line 305 "lexer.l" -{ /* The start of a write buffer code block. */ - codeIdx = 0; - return TK_WRITEBUFFERCODE; -} - YY_BREAK -case 97: -YY_RULE_SETUP -#line 310 "lexer.l" -{ /* The start of a segment count code block. */ - codeIdx = 0; - return TK_SEGCOUNTCODE; -} - YY_BREAK -case 98: -YY_RULE_SETUP -#line 315 "lexer.l" -{ /* The start of a char buffer code block. */ - codeIdx = 0; - return TK_CHARBUFFERCODE; -} - YY_BREAK -case 99: -YY_RULE_SETUP -#line 320 "lexer.l" -{ /* The start of a pre-Python code block. */ - codeIdx = 0; - return TK_PREPYCODE; -} - YY_BREAK -case 100: -YY_RULE_SETUP -#line 325 "lexer.l" -{ /* The start of a raise exception code block. */ - codeIdx = 0; - return TK_RAISECODE; -} - YY_BREAK -case 101: -YY_RULE_SETUP -#line 330 "lexer.l" -{ /* The start of a documentation block. */ - codeIdx = 0; - return TK_DOC; -} - YY_BREAK -case 102: -YY_RULE_SETUP -#line 335 "lexer.l" -{ /* The start of an exported documentation block. */ - codeIdx = 0; - return TK_EXPORTEDDOC; -} - YY_BREAK -case 103: -YY_RULE_SETUP -#line 340 "lexer.l" -{ /* The start of a Makefile code block. */ - codeIdx = 0; - return TK_MAKEFILE; -} - YY_BREAK -case 104: -YY_RULE_SETUP -#line 345 "lexer.l" -{ /* The start of an access code block. */ - codeIdx = 0; - return TK_ACCESSCODE; -} - YY_BREAK -case 105: -YY_RULE_SETUP -#line 350 "lexer.l" -{ /* The start of a get code block. */ - codeIdx = 0; - return TK_GETCODE; -} - YY_BREAK -case 106: -YY_RULE_SETUP -#line 355 "lexer.l" -{ /* The start of a set code block. */ - codeIdx = 0; - return TK_SETCODE; -} - YY_BREAK -case 107: -YY_RULE_SETUP -#line 360 "lexer.l" -{ /* The end of a code block. */ - BEGIN INITIAL; - codeIdx = -1; - return TK_END; -} - YY_BREAK -case 108: -/* rule 108 can match eol */ -YY_RULE_SETUP -#line 366 "lexer.l" -{ /* The end of a code line . */ - struct inputFile *ifp; - - codeLine[codeIdx] = '\n'; - codeLine[codeIdx + 1] = '\0'; - codeIdx = 0; - - ifp = &inputFileStack[currentFile]; - - yylval.codeb = sipMalloc(sizeof (codeBlock)); - - yylval.codeb -> frag = sipStrdup(codeLine); - yylval.codeb -> linenr = ifp -> lineno++; - yylval.codeb -> filename = sipStrdup(ifp -> name); - yylval.codeb -> next = NULL; - - return TK_CODELINE; -} - YY_BREAK -case 109: -YY_RULE_SETUP -#line 385 "lexer.l" -{ /* The contents of a code line. */ - if (codeIdx == MAX_CODE_LINE_LENGTH) - fatallex("Line is too long"); - - codeLine[codeIdx++] = yytext[0]; -} - YY_BREAK -case 110: -YY_RULE_SETUP -#line 392 "lexer.l" -{ /* Anything else is returned as is. */ - return yytext[0]; -} - YY_BREAK -case 111: -YY_RULE_SETUP -#line 396 "lexer.l" -ECHO; - YY_BREAK -#line 2092 "lexer.c.tmp" -case YY_STATE_EOF(INITIAL): -case YY_STATE_EOF(code): -case YY_STATE_EOF(ccomment): - yyterminate(); - - case YY_END_OF_BUFFER: - { - /* Amount of text matched not including the EOB char. */ - int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; - - /* Undo the effects of YY_DO_BEFORE_ACTION. */ - *yy_cp = (yy_hold_char); - YY_RESTORE_YY_MORE_OFFSET - - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) - { - /* We're scanning a new file or input source. It's - * possible that this happened because the user - * just pointed yyin at a new source and called - * yylex(). If so, then we have to assure - * consistency between YY_CURRENT_BUFFER and our - * globals. Here is the right place to do so, because - * this is the first action (other than possibly a - * back-up) that will match for the new input source. - */ - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; - } - - /* Note that here we test for yy_c_buf_p "<=" to the position - * of the first EOB in the buffer, since yy_c_buf_p will - * already have been incremented past the NUL character - * (since all states make transitions on EOB to the - * end-of-buffer state). Contrast this with the test - * in input(). - */ - if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) - { /* This was really a NUL. */ - yy_state_type yy_next_state; - - (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state( ); - - /* Okay, we're now positioned to make the NUL - * transition. We couldn't have - * yy_get_previous_state() go ahead and do it - * for us because it doesn't know how to deal - * with the possibility of jamming (and we don't - * want to build jamming into it because then it - * will run more slowly). - */ - - yy_next_state = yy_try_NUL_trans( yy_current_state ); - - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - - if ( yy_next_state ) - { - /* Consume the NUL. */ - yy_cp = ++(yy_c_buf_p); - yy_current_state = yy_next_state; - goto yy_match; - } - - else - { - yy_cp = (yy_c_buf_p); - goto yy_find_action; - } - } - - else switch ( yy_get_next_buffer( ) ) - { - case EOB_ACT_END_OF_FILE: - { - (yy_did_buffer_switch_on_eof) = 0; - - if ( yywrap( ) ) - { - /* Note: because we've taken care in - * yy_get_next_buffer() to have set up - * yytext, we can now set up - * yy_c_buf_p so that if some total - * hoser (like flex itself) wants to - * call the scanner after we return the - * YY_NULL, it'll still work - another - * YY_NULL will get returned. - */ - (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; - - yy_act = YY_STATE_EOF(YY_START); - goto do_action; - } - - else - { - if ( ! (yy_did_buffer_switch_on_eof) ) - YY_NEW_FILE; - } - break; - } - - case EOB_ACT_CONTINUE_SCAN: - (yy_c_buf_p) = - (yytext_ptr) + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state( ); - - yy_cp = (yy_c_buf_p); - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - goto yy_match; - - case EOB_ACT_LAST_MATCH: - (yy_c_buf_p) = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; - - yy_current_state = yy_get_previous_state( ); - - yy_cp = (yy_c_buf_p); - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - goto yy_find_action; - } - break; - } - - default: - YY_FATAL_ERROR( - "fatal flex scanner internal error--no action found" ); - } /* end of action switch */ - } /* end of scanning one token */ -} /* end of yylex */ - -/* yy_get_next_buffer - try to read in a new buffer - * - * Returns a code representing an action: - * EOB_ACT_LAST_MATCH - - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position - * EOB_ACT_END_OF_FILE - end of file - */ -static int yy_get_next_buffer (void) -{ - register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; - register char *source = (yytext_ptr); - register int number_to_move, i; - int ret_val; - - if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) - YY_FATAL_ERROR( - "fatal flex scanner internal error--end of buffer missed" ); - - if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) - { /* Don't try to fill the buffer, so this is an EOF. */ - if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) - { - /* We matched a single character, the EOB, so - * treat this as a final EOF. - */ - return EOB_ACT_END_OF_FILE; - } - - else - { - /* We matched some text prior to the EOB, first - * process it. - */ - return EOB_ACT_LAST_MATCH; - } - } - - /* Try to read more data. */ - - /* First move last chars to start of buffer. */ - number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; - - for ( i = 0; i < number_to_move; ++i ) - *(dest++) = *(source++); - - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) - /* don't do the read, it's not guaranteed to return an EOF, - * just force an EOF - */ - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; - - else - { - int num_to_read = - YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; - - while ( num_to_read <= 0 ) - { /* Not enough room in the buffer - grow it. */ - - /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER; - - int yy_c_buf_p_offset = - (int) ((yy_c_buf_p) - b->yy_ch_buf); - - if ( b->yy_is_our_buffer ) - { - int new_size = b->yy_buf_size * 2; - - if ( new_size <= 0 ) - b->yy_buf_size += b->yy_buf_size / 8; - else - b->yy_buf_size *= 2; - - b->yy_ch_buf = (char *) - /* Include room in for 2 EOB chars. */ - yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); - } - else - /* Can't grow it, we don't own it. */ - b->yy_ch_buf = 0; - - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( - "fatal error - scanner input buffer overflow" ); - - (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; - - num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - - number_to_move - 1; - - } - - if ( num_to_read > YY_READ_BUF_SIZE ) - num_to_read = YY_READ_BUF_SIZE; - - /* Read in more data. */ - YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - (yy_n_chars), num_to_read ); - - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - if ( (yy_n_chars) == 0 ) - { - if ( number_to_move == YY_MORE_ADJ ) - { - ret_val = EOB_ACT_END_OF_FILE; - yyrestart(yyin ); - } - - else - { - ret_val = EOB_ACT_LAST_MATCH; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = - YY_BUFFER_EOF_PENDING; - } - } - - else - ret_val = EOB_ACT_CONTINUE_SCAN; - - (yy_n_chars) += number_to_move; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; - - (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; - - return ret_val; -} - -/* yy_get_previous_state - get the state just before the EOB char was reached */ - - static yy_state_type yy_get_previous_state (void) -{ - register yy_state_type yy_current_state; - register char *yy_cp; - - yy_current_state = (yy_start); - yy_current_state += YY_AT_BOL(); - - for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) - { - register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); - if ( yy_accept[yy_current_state] ) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 735 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - } - - return yy_current_state; -} - -/* yy_try_NUL_trans - try to make a transition on the NUL character - * - * synopsis - * next_state = yy_try_NUL_trans( current_state ); - */ - static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) -{ - register int yy_is_jam; - register char *yy_cp = (yy_c_buf_p); - - register YY_CHAR yy_c = 1; - if ( yy_accept[yy_current_state] ) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 735 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - yy_is_jam = (yy_current_state == 734); - - return yy_is_jam ? 0 : yy_current_state; -} - - static void yyunput (int c, register char * yy_bp ) -{ - register char *yy_cp; - - yy_cp = (yy_c_buf_p); - - /* undo effects of setting up yytext */ - *yy_cp = (yy_hold_char); - - if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) - { /* need to shift things up to make room */ - /* +2 for EOB chars. */ - register int number_to_move = (yy_n_chars) + 2; - register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ - YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; - register char *source = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; - - while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) - *--dest = *--source; - - yy_cp += (int) (dest - source); - yy_bp += (int) (dest - source); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; - - if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) - YY_FATAL_ERROR( "flex scanner push-back overflow" ); - } - - *--yy_cp = (char) c; - - (yytext_ptr) = yy_bp; - (yy_hold_char) = *yy_cp; - (yy_c_buf_p) = yy_cp; -} - -#ifndef YY_NO_INPUT -#ifdef __cplusplus - static int yyinput (void) -#else - static int input (void) -#endif - -{ - int c; - - *(yy_c_buf_p) = (yy_hold_char); - - if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) - { - /* yy_c_buf_p now points to the character we want to return. - * If this occurs *before* the EOB characters, then it's a - * valid NUL; if not, then we've hit the end of the buffer. - */ - if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) - /* This was really a NUL. */ - *(yy_c_buf_p) = '\0'; - - else - { /* need more input */ - int offset = (yy_c_buf_p) - (yytext_ptr); - ++(yy_c_buf_p); - - switch ( yy_get_next_buffer( ) ) - { - case EOB_ACT_LAST_MATCH: - /* This happens because yy_g_n_b() - * sees that we've accumulated a - * token and flags that we need to - * try matching the token before - * proceeding. But for input(), - * there's no matching to consider. - * So convert the EOB_ACT_LAST_MATCH - * to EOB_ACT_END_OF_FILE. - */ - - /* Reset buffer status. */ - yyrestart(yyin ); - - /*FALLTHROUGH*/ - - case EOB_ACT_END_OF_FILE: - { - if ( yywrap( ) ) - return EOF; - - if ( ! (yy_did_buffer_switch_on_eof) ) - YY_NEW_FILE; -#ifdef __cplusplus - return yyinput(); -#else - return input(); -#endif - } - - case EOB_ACT_CONTINUE_SCAN: - (yy_c_buf_p) = (yytext_ptr) + offset; - break; - } - } - } - - c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ - *(yy_c_buf_p) = '\0'; /* preserve yytext */ - (yy_hold_char) = *++(yy_c_buf_p); - - YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); - - return c; -} -#endif /* ifndef YY_NO_INPUT */ - -/** Immediately switch to a different input stream. - * @param input_file A readable stream. - * - * @note This function does not reset the start condition to @c INITIAL . - */ - void yyrestart (FILE * input_file ) -{ - - if ( ! YY_CURRENT_BUFFER ){ - yyensure_buffer_stack (); - YY_CURRENT_BUFFER_LVALUE = - yy_create_buffer(yyin,YY_BUF_SIZE ); - } - - yy_init_buffer(YY_CURRENT_BUFFER,input_file ); - yy_load_buffer_state( ); -} - -/** Switch to a different input buffer. - * @param new_buffer The new input buffer. - * - */ - void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) -{ - - /* TODO. We should be able to replace this entire function body - * with - * yypop_buffer_state(); - * yypush_buffer_state(new_buffer); - */ - yyensure_buffer_stack (); - if ( YY_CURRENT_BUFFER == new_buffer ) - return; - - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *(yy_c_buf_p) = (yy_hold_char); - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - YY_CURRENT_BUFFER_LVALUE = new_buffer; - yy_load_buffer_state( ); - - /* We don't actually know whether we did this switch during - * EOF (yywrap()) processing, but the only time this flag - * is looked at is after yywrap() is called, so it's safe - * to go ahead and always set it. - */ - (yy_did_buffer_switch_on_eof) = 1; -} - -static void yy_load_buffer_state (void) -{ - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; - yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; - (yy_hold_char) = *(yy_c_buf_p); -} - -/** Allocate and initialize an input buffer state. - * @param file A readable stream. - * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. - * - * @return the allocated buffer state. - */ - YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) -{ - YY_BUFFER_STATE b; - - b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - - b->yy_buf_size = size; - - /* yy_ch_buf has to be 2 characters longer than the size given because - * we need to put in 2 end-of-buffer characters. - */ - b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - - b->yy_is_our_buffer = 1; - - yy_init_buffer(b,file ); - - return b; -} - -/** Destroy the buffer. - * @param b a buffer created with yy_create_buffer() - * - */ - void yy_delete_buffer (YY_BUFFER_STATE b ) -{ - - if ( ! b ) - return; - - if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ - YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; - - if ( b->yy_is_our_buffer ) - yyfree((void *) b->yy_ch_buf ); - - yyfree((void *) b ); -} - -#ifndef _UNISTD_H /* assume unistd.h has isatty() for us */ -#ifdef __cplusplus -extern "C" { -#endif -#ifdef __THROW /* this is a gnuism */ -extern int isatty (int ) __THROW; -#else -extern int isatty (int ); -#endif -#ifdef __cplusplus -} -#endif -#endif - -/* Initializes or reinitializes a buffer. - * This function is sometimes called more than once on the same buffer, - * such as during a yyrestart() or at EOF. - */ - static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) - -{ - int oerrno = errno; - - yy_flush_buffer(b ); - - b->yy_input_file = file; - b->yy_fill_buffer = 1; - - /* If b is the current buffer, then yy_init_buffer was _probably_ - * called from yyrestart() or through yy_get_next_buffer. - * In that case, we don't want to reset the lineno or column. - */ - if (b != YY_CURRENT_BUFFER){ - b->yy_bs_lineno = 1; - b->yy_bs_column = 0; - } - - b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; - - errno = oerrno; -} - -/** Discard all buffered characters. On the next scan, YY_INPUT will be called. - * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. - * - */ - void yy_flush_buffer (YY_BUFFER_STATE b ) -{ - if ( ! b ) - return; - - b->yy_n_chars = 0; - - /* We always need two end-of-buffer characters. The first causes - * a transition to the end-of-buffer state. The second causes - * a jam in that state. - */ - b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; - b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; - - b->yy_buf_pos = &b->yy_ch_buf[0]; - - b->yy_at_bol = 1; - b->yy_buffer_status = YY_BUFFER_NEW; - - if ( b == YY_CURRENT_BUFFER ) - yy_load_buffer_state( ); -} - -/** Pushes the new state onto the stack. The new state becomes - * the current state. This function will allocate the stack - * if necessary. - * @param new_buffer The new state. - * - */ -void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) -{ - if (new_buffer == NULL) - return; - - yyensure_buffer_stack(); - - /* This block is copied from yy_switch_to_buffer. */ - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *(yy_c_buf_p) = (yy_hold_char); - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - /* Only push if top exists. Otherwise, replace top. */ - if (YY_CURRENT_BUFFER) - (yy_buffer_stack_top)++; - YY_CURRENT_BUFFER_LVALUE = new_buffer; - - /* copied from yy_switch_to_buffer. */ - yy_load_buffer_state( ); - (yy_did_buffer_switch_on_eof) = 1; -} - -/** Removes and deletes the top of the stack, if present. - * The next element becomes the new top. - * - */ -void yypop_buffer_state (void) -{ - if (!YY_CURRENT_BUFFER) - return; - - yy_delete_buffer(YY_CURRENT_BUFFER ); - YY_CURRENT_BUFFER_LVALUE = NULL; - if ((yy_buffer_stack_top) > 0) - --(yy_buffer_stack_top); - - if (YY_CURRENT_BUFFER) { - yy_load_buffer_state( ); - (yy_did_buffer_switch_on_eof) = 1; - } -} - -/* Allocates the stack if it does not exist. - * Guarantees space for at least one push. - */ -static void yyensure_buffer_stack (void) -{ - int num_to_alloc; - - if (!(yy_buffer_stack)) { - - /* First allocation is just for 2 elements, since we don't know if this - * scanner will even need a stack. We use 2 instead of 1 to avoid an - * immediate realloc on the next call. - */ - num_to_alloc = 1; - (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc - (num_to_alloc * sizeof(struct yy_buffer_state*) - ); - - memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); - - (yy_buffer_stack_max) = num_to_alloc; - (yy_buffer_stack_top) = 0; - return; - } - - if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ - - /* Increase the buffer to prepare for a possible push. */ - int grow_size = 8 /* arbitrary grow size */; - - num_to_alloc = (yy_buffer_stack_max) + grow_size; - (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc - ((yy_buffer_stack), - num_to_alloc * sizeof(struct yy_buffer_state*) - ); - - /* zero only the new slots.*/ - memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); - (yy_buffer_stack_max) = num_to_alloc; - } -} - -/** Setup the input buffer state to scan directly from a user-specified character buffer. - * @param base the character buffer - * @param size the size in bytes of the character buffer - * - * @return the newly allocated buffer state object. - */ -YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) -{ - YY_BUFFER_STATE b; - - if ( size < 2 || - base[size-2] != YY_END_OF_BUFFER_CHAR || - base[size-1] != YY_END_OF_BUFFER_CHAR ) - /* They forgot to leave room for the EOB's. */ - return 0; - - b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); - - b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ - b->yy_buf_pos = b->yy_ch_buf = base; - b->yy_is_our_buffer = 0; - b->yy_input_file = 0; - b->yy_n_chars = b->yy_buf_size; - b->yy_is_interactive = 0; - b->yy_at_bol = 1; - b->yy_fill_buffer = 0; - b->yy_buffer_status = YY_BUFFER_NEW; - - yy_switch_to_buffer(b ); - - return b; -} - -/** Setup the input buffer state to scan a string. The next call to yylex() will - * scan from a @e copy of @a str. - * @param str a NUL-terminated string to scan - * - * @return the newly allocated buffer state object. - * @note If you want to scan bytes that may contain NUL values, then use - * yy_scan_bytes() instead. - */ -YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) -{ - - return yy_scan_bytes(yystr,strlen(yystr) ); -} - -/** Setup the input buffer state to scan the given bytes. The next call to yylex() will - * scan from a @e copy of @a bytes. - * @param bytes the byte buffer to scan - * @param len the number of bytes in the buffer pointed to by @a bytes. - * - * @return the newly allocated buffer state object. - */ -YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len ) -{ - YY_BUFFER_STATE b; - char *buf; - yy_size_t n; - int i; - - /* Get memory for full buffer, including space for trailing EOB's. */ - n = _yybytes_len + 2; - buf = (char *) yyalloc(n ); - if ( ! buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); - - for ( i = 0; i < _yybytes_len; ++i ) - buf[i] = yybytes[i]; - - buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; - - b = yy_scan_buffer(buf,n ); - if ( ! b ) - YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); - - /* It's okay to grow etc. this buffer, and we should throw it - * away when we're done. - */ - b->yy_is_our_buffer = 1; - - return b; -} - -#ifndef YY_EXIT_FAILURE -#define YY_EXIT_FAILURE 2 -#endif - -static void yy_fatal_error (yyconst char* msg ) -{ - (void) fprintf( stderr, "%s\n", msg ); - exit( YY_EXIT_FAILURE ); -} - -/* Redefine yyless() so it works in section 3 code. */ - -#undef yyless -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - yytext[yyleng] = (yy_hold_char); \ - (yy_c_buf_p) = yytext + yyless_macro_arg; \ - (yy_hold_char) = *(yy_c_buf_p); \ - *(yy_c_buf_p) = '\0'; \ - yyleng = yyless_macro_arg; \ - } \ - while ( 0 ) - -/* Accessor methods (get/set functions) to struct members. */ - -/** Get the current line number. - * - */ -int yyget_lineno (void) -{ - - return yylineno; -} - -/** Get the input stream. - * - */ -FILE *yyget_in (void) -{ - return yyin; -} - -/** Get the output stream. - * - */ -FILE *yyget_out (void) -{ - return yyout; -} - -/** Get the length of the current token. - * - */ -int yyget_leng (void) -{ - return yyleng; -} - -/** Get the current token. - * - */ - -char *yyget_text (void) -{ - return yytext; -} - -/** Set the current line number. - * @param line_number - * - */ -void yyset_lineno (int line_number ) -{ - - yylineno = line_number; -} - -/** Set the input stream. This does not discard the current - * input buffer. - * @param in_str A readable stream. - * - * @see yy_switch_to_buffer - */ -void yyset_in (FILE * in_str ) -{ - yyin = in_str ; -} - -void yyset_out (FILE * out_str ) -{ - yyout = out_str ; -} - -int yyget_debug (void) -{ - return yy_flex_debug; -} - -void yyset_debug (int bdebug ) -{ - yy_flex_debug = bdebug ; -} - -static int yy_init_globals (void) -{ - /* Initialization is the same as for the non-reentrant scanner. - * This function is called from yylex_destroy(), so don't allocate here. - */ - - (yy_buffer_stack) = 0; - (yy_buffer_stack_top) = 0; - (yy_buffer_stack_max) = 0; - (yy_c_buf_p) = (char *) 0; - (yy_init) = 0; - (yy_start) = 0; - -/* Defined in main.c */ -#ifdef YY_STDINIT - yyin = stdin; - yyout = stdout; -#else - yyin = (FILE *) 0; - yyout = (FILE *) 0; -#endif - - /* For future reference: Set errno on error, since we are called by - * yylex_init() - */ - return 0; -} - -/* yylex_destroy is for both reentrant and non-reentrant scanners. */ -int yylex_destroy (void) -{ - - /* Pop the buffer stack, destroying each element. */ - while(YY_CURRENT_BUFFER){ - yy_delete_buffer(YY_CURRENT_BUFFER ); - YY_CURRENT_BUFFER_LVALUE = NULL; - yypop_buffer_state(); - } - - /* Destroy the stack itself. */ - yyfree((yy_buffer_stack) ); - (yy_buffer_stack) = NULL; - - /* Reset the globals. This is important in a non-reentrant scanner so the next time - * yylex() is called, initialization will occur. */ - yy_init_globals( ); - - return 0; -} - -/* - * Internal utility routines. - */ - -#ifndef yytext_ptr -static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) -{ - register int i; - for ( i = 0; i < n; ++i ) - s1[i] = s2[i]; -} -#endif - -#ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * s ) -{ - register int n; - for ( n = 0; s[n]; ++n ) - ; - - return n; -} -#endif - -void *yyalloc (yy_size_t size ) -{ - return (void *) malloc( size ); -} - -void *yyrealloc (void * ptr, yy_size_t size ) -{ - /* The cast to (char *) in the following accommodates both - * implementations that use char* generic pointers, and those - * that use void* generic pointers. It works with the latter - * because both ANSI C and C++ allow castless assignment from - * any pointer type to void*, and deal with argument conversions - * as though doing an assignment. - */ - return (void *) realloc( (char *) ptr, size ); -} - -void yyfree (void * ptr ) -{ - free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ -} - -#define YYTABLES_NAME "yytables" - -#line 396 "lexer.l" - - - -/* - * Hook into EOF handling. Return 0 if there is more to process. - */ - -int yywrap() -{ - char *cwd; - struct inputFile *ifp; - - if ((cwd = inputFileStack[currentFile].cwd) != NULL) - free(cwd); - - ifp = &inputFileStack[currentFile--]; - - /* Tell the parser if this is the end of a file. */ - - parserEOF(ifp -> name,&ifp -> pc); - - /* Tidy up this file. */ - - fclose(yyin); - free(ifp -> name); - - /* See if this was the original file. */ - - if (currentFile < 0) - return 1; - - yy_delete_buffer(YY_CURRENT_BUFFER); - yy_switch_to_buffer(ifp -> bs); - - return 0; -} - - -/* - * Set up an input file to be read by the lexer, opening it if necessary. - */ -void setInputFile(FILE *fp,char *name,parserContext *pc,int optional) -{ - char *fullname = NULL; - - if (currentFile >= MAX_INCLUDE_DEPTH - 1) - fatal("Too many nested %%Include, %%OptionalInclude or %%Import statements\n"); - - if (fp != NULL || (fp = openFile(name)) != NULL) - fullname = sipStrdup(name); - else - { - char *cwd; - - /* Try the directory that contains the current file. */ - if (currentFile >= 0 && (cwd = inputFileStack[currentFile].cwd) != NULL) - { - fullname = concat(cwd,"/",name,NULL); - - if ((fp = openFile(fullname)) == NULL) - { - free(fullname); - fullname = NULL; - } - } - } - - /* Try the include path if we haven't found anything yet. */ - if (fullname == NULL) - { - stringList *sl; - - fullname = NULL; - - for (sl = includeDirList; sl != NULL; sl = sl -> next) - { - if (fullname != NULL) - free(fullname); - - fullname = concat(sl -> s,"/",name,NULL); - - if ((fp = openFile(fullname)) != NULL) - break; - } - - if (fp == NULL && !optional) - fatal("Unable to find file \"%s\"\n",name); - } - - if (fp != NULL) - { - char *cwd; - - yyin = fp; - - ++currentFile; - - /* - * Remember the directory containing the new file and make it - * "current". - */ - if ((cwd = strchr(fullname,'/')) != NULL) - { - cwd = sipStrdup(fullname); - *strrchr(cwd,'/') = '\0'; - } - - inputFileStack[currentFile].lineno = 1; - inputFileStack[currentFile].name = fullname; - inputFileStack[currentFile].pc = *pc; - inputFileStack[currentFile].cwd = cwd; - - if (currentFile > 0) - { - inputFileStack[currentFile].bs = YY_CURRENT_BUFFER; - yy_switch_to_buffer(yy_create_buffer(yyin,YY_BUF_SIZE)); - } - } -} - - -/* - * Open a file for reading or return NULL if it doesn't exist. Any other error - * is fatal. - */ -static FILE *openFile(char *name) -{ - FILE *fp; - - if ((fp = fopen(name,"r")) == NULL && errno != ENOENT) - fatal("Error in opening file %s\n",name); - - return fp; -} - - -/* - * Handle fatal yacc errors. - */ -void yyerror(char *s) -{ - if (currentFile < 0) - fatal("%s\n", s); - - fatal("%s:%d: %s\n", - inputFileStack[currentFile].name, - inputFileStack[currentFile].lineno, - s); -} - - -/* - * Handle warnings while parsing. - */ -void yywarning(char *s) -{ - warning("%s:%d: %s\n", - inputFileStack[currentFile].name, - inputFileStack[currentFile].lineno, - s); -} - - -/* - * Handle fatal lex errors. - */ -static void fatallex(char *s) -{ - fatal("%s:%d: Lexical analyser error: %s\n", - inputFileStack[currentFile].name, - inputFileStack[currentFile].lineno, - s); -} - diff --git a/python/sip/sipgen/lexer.l b/python/sip/sipgen/lexer.l deleted file mode 100644 index ef234193..00000000 --- a/python/sip/sipgen/lexer.l +++ /dev/null @@ -1,567 +0,0 @@ -/* - * The SIP lexer. - * - * Copyright (c) 2007 - * Riverbank Computing Limited - * - * This file is part of SIP. - * - * This copy of SIP is licensed for use under the terms of the SIP License - * Agreement. See the file LICENSE for more details. - * - * SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ - -%{ -#include -#include -#include -#include - -#include "sip.h" -#include "parser.h" - - -#ifndef FLEX_SCANNER -#error "Only flex is supported at the moment" -#endif - - -#define YY_FATAL_ERROR(s) fatallex(s) - -#define MAX_INCLUDE_DEPTH 10 -#define MAX_CODE_LINE_LENGTH 1000 - - -static struct inputFile { - int lineno; /* The line number. */ - YY_BUFFER_STATE bs; /* The flex buffer state handle. */ - char *name; /* The file name. */ - char *cwd; /* The path part of the file name. */ - parserContext pc; /* The parser context. */ -} inputFileStack[MAX_INCLUDE_DEPTH]; - -static int currentFile = -1; /* Index of the current input file. */ -static char codeLine[MAX_CODE_LINE_LENGTH + 2]; /* The current code line. */ -static int codeIdx = -1; /* Index of next code character. */ - -static FILE *openFile(char *); -static void fatallex(char *); -%} - -%x code -%x ccomment - -%% - -^[ \t]*%SIPOptions {return TK_OPTIONS;} -^[ \t]*%SIPNoEmitters {return TK_NOEMITTERS;} -^[ \t]*%Include {return TK_INCLUDE;} -^[ \t]*%OptionalInclude {return TK_OPTINCLUDE;} -^[ \t]*%Import {return TK_IMPORT;} -^[ \t]*%Module {return TK_MODULE;} -^[ \t]*%CModule {return TK_CMODULE;} -^[ \t]*%Timeline {return TK_TIMELINE;} -^[ \t]*%Platforms {return TK_PLATFORMS;} -^[ \t]*%Feature {return TK_FEATURE;} -^[ \t]*%License {return TK_LICENSE;} -^[ \t]*%MappedType {return TK_MAPPEDTYPE;} -^[ \t]*%Exception {return TK_EXCEPTION;} -^[ \t]*%If {return TK_IF;} -^[ \t]*%End {return TK_END;} -class {return TK_CLASS;} -struct {return TK_STRUCT;} -public {return TK_PUBLIC;} -protected {return TK_PROTECTED;} -private {return TK_PRIVATE;} -signals {return TK_SIGNALS;} -slots {return TK_SLOTS;} -char {return TK_CHAR;} -wchar_t {return TK_WCHAR_T;} -bool {return TK_BOOL;} -short {return TK_SHORT;} -int {return TK_INT;} -long {return TK_LONG;} -float {return TK_FLOAT;} -double {return TK_DOUBLE;} -void {return TK_VOID;} -virtual {return TK_VIRTUAL;} -enum {return TK_ENUM;} -signed {return TK_SIGNED;} -unsigned {return TK_UNSIGNED;} -const {return TK_CONST;} -static {return TK_STATIC;} -true {return TK_TRUE;} -false {return TK_FALSE;} -NULL {return TK_NULL;} -typedef {return TK_TYPEDEF;} -namespace {return TK_NAMESPACE;} -operator {return TK_OPERATOR;} -throw {return TK_THROW;} -explicit {return TK_EXPLICIT;} -template {return TK_TEMPLATE;} -:: {return TK_SCOPE;} -\|\| {return TK_LOGICAL_OR;} -SIP_PYOBJECT {return TK_PYOBJECT;} -SIP_PYTUPLE {return TK_PYTUPLE;} -SIP_PYLIST {return TK_PYLIST;} -SIP_PYDICT {return TK_PYDICT;} -SIP_PYCALLABLE {return TK_PYCALLABLE;} -SIP_PYSLICE {return TK_PYSLICE;} -SIP_PYTYPE {return TK_PYTYPE;} -SIP_SIGNAL {return TK_SIPSIGNAL;} -SIP_SLOT {return TK_SIPSLOT;} -SIP_ANYSLOT {return TK_SIPANYSLOT;} -SIP_RXOBJ_CON {return TK_SIPRXCON;} -SIP_RXOBJ_DIS {return TK_SIPRXDIS;} -SIP_SLOT_CON {return TK_SIPSLOTCON;} -SIP_SLOT_DIS {return TK_SIPSLOTDIS;} -SIP_QOBJECT {return TK_QOBJECT;} -\.\.\. {return TK_ELLIPSIS;} - - -[ \t\r] { /* Ignore whitespace. */ - ; -} - -\n { /* Maintain the line number. */ - ++inputFileStack[currentFile].lineno; - - if (codeIdx == 0) - { - BEGIN code; - } -} - -\/\/.* { /* Ignore C++ style comments. */ - ; -} - - --?[0-9]+ { /* A signed decimal number. */ - yylval.number = strtol(yytext,NULL,0); - return TK_NUMBER; -} - - --?(([0-9]+)|([0-9]*\.[0-9]+)([eE][-+]?[0-9]+)?) {/* A floating point number. */ - yylval.real = strtod(yytext,NULL); - return TK_REAL; -} - - -0x[0-9a-fA-F]+ { /* An unsigned hexadecimal number. */ - yylval.number = strtol(yytext,NULL,16); - return TK_NUMBER; -} - - -[_A-Za-z][_A-Za-z0-9]* { /* An identifier name. */ - yylval.text = sipStrdup(yytext); - return TK_NAME; -} - - -[._A-Za-z][._/A-Za-z0-9\-]*[._A-Za-z0-9] { /* A relative pathname. */ - yylval.text = sipStrdup(yytext); - return TK_PATHNAME; -} - - -\"[^"\n]*["\n] { /* A double-quoted string. */ - char *dp, *sp; - - /* Copy the string without the quotes. */ - - yylval.text = sipMalloc(strlen(yytext) + 1); - - dp = yylval.text; - sp = yytext; - - while (*sp != '\0') - { - if (*sp != '"') - *dp++ = *sp; - - ++sp; - } - - *dp = '\0'; - - return TK_STRING; -} - - -\'[^'\n]*['\n] { /* A single-quoted character. */ - if (strlen(yytext) != 3) - fatallex("Exactly one character expected between single quotes"); - - yylval.qchar = yytext[1]; - - return TK_QCHAR; -} - - -\/\* { /* Ignore C-style comments. */ - BEGIN ccomment; -} -\n { - ++inputFileStack[currentFile].lineno; -} -\*\/ { - BEGIN INITIAL; -} -. { - ; -} - - -^%Copying { /* The software license. */ - codeIdx = 0; - return TK_COPYING; -} - -^%ConvertFromTypeCode { /* The start of a from-type code block. */ - codeIdx = 0; - return TK_FROMTYPE; -} - -^%ConvertToTypeCode { /* The start of a to-type code block. */ - codeIdx = 0; - return TK_TOTYPE; -} - -^%ConvertToSubClassCode { /* The start of a to-sub-class code block. */ - codeIdx = 0; - return TK_TOSUBCLASS; -} - -^%ExportedHeaderCode { /* The start of an exported header code block. */ - codeIdx = 0; - return TK_EXPHEADERCODE; -} - -^%ModuleHeaderCode { /* The start of a module header code block. */ - codeIdx = 0; - return TK_MODHEADERCODE; -} - -^%TypeHeaderCode { /* The start of a type header code block. */ - codeIdx = 0; - return TK_TYPEHEADERCODE; -} - -^%PreInitialisationCode { /* The start of a pre-initialisation code block. */ - codeIdx = 0; - return TK_PREINITCODE; -} - -^%PostInitialisationCode { /* The start of a post-initialisation code block. */ - codeIdx = 0; - return TK_POSTINITCODE; -} - -^%UnitCode { /* The start of a unit code block. */ - codeIdx = 0; - return TK_UNITCODE; -} - -^%ModuleCode { /* The start of a module code block. */ - codeIdx = 0; - return TK_MODCODE; -} - -^%TypeCode { /* The start of a type code block. */ - codeIdx = 0; - return TK_TYPECODE; -} - -^%MethodCode { /* The start of a C++ method code block. */ - codeIdx = 0; - return TK_METHODCODE; -} - -^%VirtualCatcherCode { /* The start of a C++ virtual code block. */ - codeIdx = 0; - return TK_VIRTUALCATCHERCODE; -} - -^%GCTraverseCode { /* The start of a traverse code block. */ - codeIdx = 0; - return TK_TRAVERSECODE; -} - -^%GCClearCode { /* The start of a clear code block. */ - codeIdx = 0; - return TK_CLEARCODE; -} - -^%BIGetReadBufferCode { /* The start of a read buffer code block. */ - codeIdx = 0; - return TK_READBUFFERCODE; -} - -^%BIGetWriteBufferCode { /* The start of a write buffer code block. */ - codeIdx = 0; - return TK_WRITEBUFFERCODE; -} - -^%BIGetSegCountCode { /* The start of a segment count code block. */ - codeIdx = 0; - return TK_SEGCOUNTCODE; -} - -^%BIGetCharBufferCode { /* The start of a char buffer code block. */ - codeIdx = 0; - return TK_CHARBUFFERCODE; -} - -^%PrePythonCode { /* The start of a pre-Python code block. */ - codeIdx = 0; - return TK_PREPYCODE; -} - -^%RaiseCode { /* The start of a raise exception code block. */ - codeIdx = 0; - return TK_RAISECODE; -} - -^%Doc { /* The start of a documentation block. */ - codeIdx = 0; - return TK_DOC; -} - -^%ExportedDoc { /* The start of an exported documentation block. */ - codeIdx = 0; - return TK_EXPORTEDDOC; -} - -^%Makefile { /* The start of a Makefile code block. */ - codeIdx = 0; - return TK_MAKEFILE; -} - -^%AccessCode { /* The start of an access code block. */ - codeIdx = 0; - return TK_ACCESSCODE; -} - -^%GetCode { /* The start of a get code block. */ - codeIdx = 0; - return TK_GETCODE; -} - -^%SetCode { /* The start of a set code block. */ - codeIdx = 0; - return TK_SETCODE; -} - -^%End { /* The end of a code block. */ - BEGIN INITIAL; - codeIdx = -1; - return TK_END; -} - -\n { /* The end of a code line . */ - struct inputFile *ifp; - - codeLine[codeIdx] = '\n'; - codeLine[codeIdx + 1] = '\0'; - codeIdx = 0; - - ifp = &inputFileStack[currentFile]; - - yylval.codeb = sipMalloc(sizeof (codeBlock)); - - yylval.codeb -> frag = sipStrdup(codeLine); - yylval.codeb -> linenr = ifp -> lineno++; - yylval.codeb -> filename = sipStrdup(ifp -> name); - yylval.codeb -> next = NULL; - - return TK_CODELINE; -} - -. { /* The contents of a code line. */ - if (codeIdx == MAX_CODE_LINE_LENGTH) - fatallex("Line is too long"); - - codeLine[codeIdx++] = yytext[0]; -} - -. { /* Anything else is returned as is. */ - return yytext[0]; -} - -%% - -/* - * Hook into EOF handling. Return 0 if there is more to process. - */ - -int yywrap() -{ - char *cwd; - struct inputFile *ifp; - - if ((cwd = inputFileStack[currentFile].cwd) != NULL) - free(cwd); - - ifp = &inputFileStack[currentFile--]; - - /* Tell the parser if this is the end of a file. */ - - parserEOF(ifp -> name,&ifp -> pc); - - /* Tidy up this file. */ - - fclose(yyin); - free(ifp -> name); - - /* See if this was the original file. */ - - if (currentFile < 0) - return 1; - - yy_delete_buffer(YY_CURRENT_BUFFER); - yy_switch_to_buffer(ifp -> bs); - - return 0; -} - - -/* - * Set up an input file to be read by the lexer, opening it if necessary. - */ -void setInputFile(FILE *fp,char *name,parserContext *pc,int optional) -{ - char *fullname = NULL; - - if (currentFile >= MAX_INCLUDE_DEPTH - 1) - fatal("Too many nested %%Include, %%OptionalInclude or %%Import statements\n"); - - if (fp != NULL || (fp = openFile(name)) != NULL) - fullname = sipStrdup(name); - else - { - char *cwd; - - /* Try the directory that contains the current file. */ - if (currentFile >= 0 && (cwd = inputFileStack[currentFile].cwd) != NULL) - { - fullname = concat(cwd,"/",name,NULL); - - if ((fp = openFile(fullname)) == NULL) - { - free(fullname); - fullname = NULL; - } - } - } - - /* Try the include path if we haven't found anything yet. */ - if (fullname == NULL) - { - stringList *sl; - - fullname = NULL; - - for (sl = includeDirList; sl != NULL; sl = sl -> next) - { - if (fullname != NULL) - free(fullname); - - fullname = concat(sl -> s,"/",name,NULL); - - if ((fp = openFile(fullname)) != NULL) - break; - } - - if (fp == NULL && !optional) - fatal("Unable to find file \"%s\"\n",name); - } - - if (fp != NULL) - { - char *cwd; - - yyin = fp; - - ++currentFile; - - /* - * Remember the directory containing the new file and make it - * "current". - */ - if ((cwd = strchr(fullname,'/')) != NULL) - { - cwd = sipStrdup(fullname); - *strrchr(cwd,'/') = '\0'; - } - - inputFileStack[currentFile].lineno = 1; - inputFileStack[currentFile].name = fullname; - inputFileStack[currentFile].pc = *pc; - inputFileStack[currentFile].cwd = cwd; - - if (currentFile > 0) - { - inputFileStack[currentFile].bs = YY_CURRENT_BUFFER; - yy_switch_to_buffer(yy_create_buffer(yyin,YY_BUF_SIZE)); - } - } -} - - -/* - * Open a file for reading or return NULL if it doesn't exist. Any other error - * is fatal. - */ -static FILE *openFile(char *name) -{ - FILE *fp; - - if ((fp = fopen(name,"r")) == NULL && errno != ENOENT) - fatal("Error in opening file %s\n",name); - - return fp; -} - - -/* - * Handle fatal yacc errors. - */ -void yyerror(char *s) -{ - if (currentFile < 0) - fatal("%s\n", s); - - fatal("%s:%d: %s\n", - inputFileStack[currentFile].name, - inputFileStack[currentFile].lineno, - s); -} - - -/* - * Handle warnings while parsing. - */ -void yywarning(char *s) -{ - warning("%s:%d: %s\n", - inputFileStack[currentFile].name, - inputFileStack[currentFile].lineno, - s); -} - - -/* - * Handle fatal lex errors. - */ -static void fatallex(char *s) -{ - fatal("%s:%d: Lexical analyser error: %s\n", - inputFileStack[currentFile].name, - inputFileStack[currentFile].lineno, - s); -} diff --git a/python/sip/sipgen/main.c b/python/sip/sipgen/main.c deleted file mode 100644 index ce1e859b..00000000 --- a/python/sip/sipgen/main.c +++ /dev/null @@ -1,484 +0,0 @@ -/* - * The main module for SIP. - * - * Copyright (c) 2007 - * Riverbank Computing Limited - * - * This file is part of SIP. - * - * This copy of SIP is licensed for use under the terms of the SIP License - * Agreement. See the file LICENSE for more details. - * - * SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ - - -#include -#include -#include -#include -#include - -#include "sip.h" - - -#ifndef PACKAGE -#define PACKAGE "sip" -#endif - -#define VERSION "4.6 (4.6)" - - -/* Global variables - see sip.h for their meaning. */ -char *sipVersion; -stringList *includeDirList; - -static char *sipPackage = PACKAGE; -static int warnings = FALSE; - - -static void help(void); -static void version(void); -static void usage(void); -static char parseopt(int,char **,char *,char **,int *,char **); -static int parseInt(char *,char); - - -int main(int argc,char **argv) -{ - char *filename, *docFile, *codeDir, *srcSuffix, *flagFile; - char arg, *optarg, *buildFile, *apiFile, *xmlFile; - int optnr, exceptions, tracing, releaseGIL, parts; - FILE *file; - sipSpec spec; - stringList *versions, *xfeatures; - - /* Initialise. */ - sipVersion = VERSION; - includeDirList = NULL; - versions = NULL; - xfeatures = NULL; - buildFile = NULL; - codeDir = NULL; - docFile = NULL; - srcSuffix = NULL; - flagFile = NULL; - apiFile = NULL; - xmlFile = NULL; - exceptions = FALSE; - tracing = FALSE; - releaseGIL = FALSE; - parts = 0; - - /* Parse the command line. */ - optnr = 1; - - while ((arg = parseopt(argc, argv, "hVa:b:ec:d:gI:j:m:rs:t:wx:z:", &flagFile, &optnr, &optarg)) != '\0') - switch (arg) - { - case 'a': - /* Where to generate the API file. */ - apiFile = optarg; - break; - - case 'm': - /* Where to generate the XML file. */ - xmlFile = optarg; - break; - - case 'b': - /* Generate a build file. */ - buildFile = optarg; - break; - - case 'e': - /* Enable exceptions. */ - exceptions = TRUE; - break; - - case 'g': - /* Always release the GIL. */ - releaseGIL = TRUE; - break; - - case 'j': - /* Generate the code in this number of parts. */ - parts = parseInt(optarg,'j'); - break; - - case 'z': - /* Read a file for the next flags. */ - if (flagFile != NULL) - fatal("The -z flag cannot be specified in an argument file\n"); - - flagFile = optarg; - break; - - case 'c': - /* Where to generate the code. */ - codeDir = optarg; - break; - - case 'd': - /* Where to generate the documentation. */ - docFile = optarg; - break; - - case 't': - /* Which platform or version to generate code for. */ - appendString(&versions,optarg); - break; - - case 'x': - /* Which features are disabled. */ - appendString(&xfeatures,optarg); - break; - - case 'I': - /* Where to get included files from. */ - appendString(&includeDirList,optarg); - break; - - case 'r': - /* Enable tracing. */ - tracing = TRUE; - break; - - case 's': - /* The suffix to use for source files. */ - srcSuffix = optarg; - break; - - case 'w': - /* Enable warning messages. */ - warnings = TRUE; - break; - - case 'h': - /* Help message. */ - help(); - break; - - case 'V': - /* Display the version number. */ - version(); - break; - - default: - usage(); - } - - if (optnr < argc) - { - file = NULL; - filename = argv[optnr++]; - - if (optnr < argc) - usage(); - } - else - { - file = stdin; - filename = "stdin"; - } - - /* Parse the input file. */ - parse(&spec,file,filename,versions,xfeatures); - - /* Verify and transform the parse tree. */ - transform(&spec); - - /* Generate code. */ - generateCode(&spec, codeDir, buildFile, docFile, srcSuffix, exceptions, - tracing, releaseGIL, parts, xfeatures); - - /* Generate the API file. */ - if (apiFile != NULL) - generateAPI(&spec, apiFile); - - /* Generate the XML export. */ - if (xmlFile != NULL) - generateXML(&spec, xmlFile); - - /* All done. */ - return 0; -} - - -/* - * Parse the next command line argument - similar to UNIX getopts(). Allow a - * flag to specify that a file contains further arguments. - */ -static char parseopt(int argc,char **argv,char *opts,char **flags,int *optnrp, - char **optargp) -{ - char arg, *op, *fname; - int optnr; - static FILE *fp = NULL; - - /* Deal with any file first. */ - - fname = *flags; - - if (fname != NULL && fp == NULL && (fp = fopen(fname,"r")) == NULL) - fatal("Unable to open %s\n",fname); - - if (fp != NULL) - { - char buf[200], *cp, *fname; - int ch; - - fname = *flags; - cp = buf; - - while ((ch = fgetc(fp)) != EOF) - { - /* Skip leading whitespace. */ - - if (cp == buf && isspace(ch)) - continue; - - if (ch == '\n') - break; - - if (cp == &buf[sizeof (buf) - 1]) - fatal("A flag in %s is too long\n",fname); - - *cp++ = (char)ch; - } - - *cp = '\0'; - - if (ch == EOF) - { - fclose(fp); - fp = NULL; - *flags = NULL; - } - - /* - * Get the option character and any optional argument from the - * line. - */ - - if (buf[0] != '\0') - { - if (buf[0] != '-' || buf[1] == '\0') - fatal("An non-flag was given in %s\n",fname); - - arg = buf[1]; - - /* Find any optional argument. */ - - for (cp = &buf[2]; *cp != '\0'; ++cp) - if (!isspace(*cp)) - break; - - if (*cp == '\0') - cp = NULL; - else - cp = sipStrdup(cp); - - *optargp = cp; - - if ((op = strchr(opts,arg)) == NULL) - fatal("An invalid flag was given in %s\n",fname); - - if (op[1] == ':' && cp == NULL) - fatal("Missing flag argument in %s\n",fname); - - if (op[1] != ':' && cp != NULL) - fatal("Unexpected flag argument in %s\n",fname); - - return arg; - } - } - - /* Check there is an argument and it is a switch. */ - - optnr = *optnrp; - - if (optnr >= argc || argv[optnr] == NULL || argv[optnr][0] != '-') - return '\0'; - - /* Check it is a valid switch. */ - - arg = argv[optnr][1]; - - if (arg == '\0' || (op = strchr(opts,arg)) == NULL) - usage(); - - /* Check for the switch parameter, if any. */ - - if (op[1] == ':') - { - if (argv[optnr][2] != '\0') - { - *optargp = &argv[optnr][2]; - ++optnr; - } - else if (optnr + 1 >= argc || argv[optnr + 1] == NULL) - usage(); - else - { - *optargp = argv[optnr + 1]; - optnr += 2; - } - } - else if (argv[optnr][2] != '\0') - usage(); - else - { - *optargp = NULL; - ++optnr; - } - - *optnrp = optnr; - - return arg; -} - - -/* - * Parse an integer option. - */ -static int parseInt(char *arg, char opt) -{ - char *endptr; - int val; - - val = strtol(arg, &endptr, 10); - - if (*arg == '\0' || *endptr != '\0') - fatal("Invalid integer argument for -%c flag\n", opt); - - return val; -} - - -/* - * Append a string to a list of them. - */ -void appendString(stringList **headp, const char *s) -{ - stringList *sl; - - /* Create the new entry. */ - - sl = sipMalloc(sizeof (stringList)); - - sl -> s = s; - sl -> next = NULL; - - /* Append it to the list. */ - - while (*headp != NULL) - headp = &(*headp) -> next; - - *headp = sl; -} - - -/* - * Display a warning message. - */ -void warning(char *fmt,...) -{ - static int start = TRUE; - - va_list ap; - - if (!warnings) - return; - - if (start) - { - fprintf(stderr,"%s: Warning: ",sipPackage); - start = FALSE; - } - - va_start(ap,fmt); - vfprintf(stderr,fmt,ap); - va_end(ap); - - if (strchr(fmt,'\n') != NULL) - start = TRUE; -} - - -/* - * Display all or part of a one line error message describing a fatal error. - * If the message is complete (it has a newline) then the program exits. - */ -void fatal(char *fmt,...) -{ - static int start = TRUE; - - va_list ap; - - if (start) - { - fprintf(stderr,"%s: ",sipPackage); - start = FALSE; - } - - va_start(ap,fmt); - vfprintf(stderr,fmt,ap); - va_end(ap); - - if (strchr(fmt,'\n') != NULL) - exit(1); -} - - -/* - * Display the SIP version number on stdout and exit with zero exit status. - */ -static void version(void) -{ - printf("%s\n",sipVersion); - exit(0); -} - - -/* - * Display the help message on stdout and exit with zero exit status. - */ -static void help(void) -{ - printf( -"Usage:\n" -" %s [-h] [-V] [-a file] [-c dir] [-d file] [-e] [-g] [-I dir] [-j #] [-m file] [-r] [-s suffix] [-t version] [-w] [-x feature] [-z file] [file]\n" -"where:\n" -" -h display this help message\n" -" -V display the %s version number\n" -" -a file the name of the QScintilla API file [default not generated]\n" -" -b file the name of the build file [default none generated]\n" -" -c dir the name of the code directory [default not generated]\n" -" -d file the name of the documentation file [default not generated]\n" -" -e enable support for exceptions [default disabled]\n" -" -g always release and reacquire the GIL [default only when specified]\n" -" -I dir look in this directory when including files\n" -" -j # split the generated code into # files [default 1 per class]\n" -" -m file the name of the XML export file [default not generated]\n" -" -r generate code with tracing enabled [default disabled]\n" -" -s suffix the suffix to use for C or C++ source files [default \".c\" or \".cpp\"]\n" -" -t tag the version/platform to generate code for\n" -" -w enable warning messages\n" -" -x feature this feature is disabled\n" -" -z file the name of a file containing more command line flags\n" -" file the name of the specification file [default stdin]\n" - ,sipPackage,sipPackage); - - exit(0); -} - - -/* - * Display the usage message. - */ -static void usage(void) -{ - fatal("Usage: %s [-h] [-V] [-a file] [-b file] [-c dir] [-d file] [-e] [-g] [-I dir] [-j #] [-m file] [-r] [-s suffix] [-t tag] [-w] [-x feature] [-z file] [file]\n",sipPackage); -} diff --git a/python/sip/sipgen/parser.c b/python/sip/sipgen/parser.c deleted file mode 100644 index 04a72f68..00000000 --- a/python/sip/sipgen/parser.c +++ /dev/null @@ -1,7526 +0,0 @@ -/* A Bison parser, made by GNU Bison 1.875d. */ - -/* Skeleton parser for Yacc-like parsing with Bison, - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. - - 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, 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. */ - -/* As a special exception, when this file is copied by Bison into a - Bison output file, you may use that output file without restriction. - This special exception was added by the Free Software Foundation - in version 1.24 of Bison. */ - -/* Written by Richard Stallman by simplifying the original so called - ``semantic'' parser. */ - -/* All symbols defined below should begin with yy or YY, to avoid - infringing on user name space. This should be done even for local - variables, as they might otherwise be expanded by user macros. - There are some unavoidable exceptions within include files to - define necessary library symbols; they are noted "INFRINGES ON - USER NAME SPACE" below. */ - -/* Identify Bison output. */ -#define YYBISON 1 - -/* Skeleton name. */ -#define YYSKELETON_NAME "yacc.c" - -/* Pure parsers. */ -#define YYPURE 0 - -/* Using locations. */ -#define YYLSP_NEEDED 0 - - - -/* Tokens. */ -#ifndef YYTOKENTYPE -# define YYTOKENTYPE - /* Put the tokens into the symbol table, so that GDB and other debuggers - know about them. */ - enum yytokentype { - TK_OPTIONS = 258, - TK_NOEMITTERS = 259, - TK_DOC = 260, - TK_EXPORTEDDOC = 261, - TK_MAKEFILE = 262, - TK_ACCESSCODE = 263, - TK_GETCODE = 264, - TK_SETCODE = 265, - TK_PREINITCODE = 266, - TK_POSTINITCODE = 267, - TK_UNITCODE = 268, - TK_MODCODE = 269, - TK_TYPECODE = 270, - TK_PREPYCODE = 271, - TK_COPYING = 272, - TK_MAPPEDTYPE = 273, - TK_CODELINE = 274, - TK_IF = 275, - TK_END = 276, - TK_NAME = 277, - TK_PATHNAME = 278, - TK_STRING = 279, - TK_VIRTUALCATCHERCODE = 280, - TK_TRAVERSECODE = 281, - TK_CLEARCODE = 282, - TK_READBUFFERCODE = 283, - TK_WRITEBUFFERCODE = 284, - TK_SEGCOUNTCODE = 285, - TK_CHARBUFFERCODE = 286, - TK_METHODCODE = 287, - TK_FROMTYPE = 288, - TK_TOTYPE = 289, - TK_TOSUBCLASS = 290, - TK_INCLUDE = 291, - TK_OPTINCLUDE = 292, - TK_IMPORT = 293, - TK_EXPHEADERCODE = 294, - TK_MODHEADERCODE = 295, - TK_TYPEHEADERCODE = 296, - TK_MODULE = 297, - TK_CMODULE = 298, - TK_CLASS = 299, - TK_STRUCT = 300, - TK_PUBLIC = 301, - TK_PROTECTED = 302, - TK_PRIVATE = 303, - TK_SIGNALS = 304, - TK_SLOTS = 305, - TK_BOOL = 306, - TK_SHORT = 307, - TK_INT = 308, - TK_LONG = 309, - TK_FLOAT = 310, - TK_DOUBLE = 311, - TK_CHAR = 312, - TK_WCHAR_T = 313, - TK_VOID = 314, - TK_PYOBJECT = 315, - TK_PYTUPLE = 316, - TK_PYLIST = 317, - TK_PYDICT = 318, - TK_PYCALLABLE = 319, - TK_PYSLICE = 320, - TK_PYTYPE = 321, - TK_VIRTUAL = 322, - TK_ENUM = 323, - TK_SIGNED = 324, - TK_UNSIGNED = 325, - TK_SCOPE = 326, - TK_LOGICAL_OR = 327, - TK_CONST = 328, - TK_STATIC = 329, - TK_SIPQT_SIGNAL = 330, - TK_SIPQT_SLOT = 331, - TK_SIPANYQT_SLOT = 332, - TK_SIPRXCON = 333, - TK_SIPRXDIS = 334, - TK_SIPSLOTCON = 335, - TK_SIPSLOTDIS = 336, - TK_NUMBER = 337, - TK_REAL = 338, - TK_TYPEDEF = 339, - TK_NAMESPACE = 340, - TK_TIMELINE = 341, - TK_PLATFORMS = 342, - TK_FEATURE = 343, - TK_LICENSE = 344, - TK_QCHAR = 345, - TK_TRUE = 346, - TK_FALSE = 347, - TK_NULL = 348, - TK_OPERATOR = 349, - TK_THROW = 350, - TK_QOBJECT = 351, - TK_EXCEPTION = 352, - TK_RAISECODE = 353, - TK_EXPLICIT = 354, - TK_TEMPLATE = 355, - TK_ELLIPSIS = 356 - }; -#endif -#define TK_OPTIONS 258 -#define TK_NOEMITTERS 259 -#define TK_DOC 260 -#define TK_EXPORTEDDOC 261 -#define TK_MAKEFILE 262 -#define TK_ACCESSCODE 263 -#define TK_GETCODE 264 -#define TK_SETCODE 265 -#define TK_PREINITCODE 266 -#define TK_POSTINITCODE 267 -#define TK_UNITCODE 268 -#define TK_MODCODE 269 -#define TK_TYPECODE 270 -#define TK_PREPYCODE 271 -#define TK_COPYING 272 -#define TK_MAPPEDTYPE 273 -#define TK_CODELINE 274 -#define TK_IF 275 -#define TK_END 276 -#define TK_NAME 277 -#define TK_PATHNAME 278 -#define TK_STRING 279 -#define TK_VIRTUALCATCHERCODE 280 -#define TK_TRAVERSECODE 281 -#define TK_CLEARCODE 282 -#define TK_READBUFFERCODE 283 -#define TK_WRITEBUFFERCODE 284 -#define TK_SEGCOUNTCODE 285 -#define TK_CHARBUFFERCODE 286 -#define TK_METHODCODE 287 -#define TK_FROMTYPE 288 -#define TK_TOTYPE 289 -#define TK_TOSUBCLASS 290 -#define TK_INCLUDE 291 -#define TK_OPTINCLUDE 292 -#define TK_IMPORT 293 -#define TK_EXPHEADERCODE 294 -#define TK_MODHEADERCODE 295 -#define TK_TYPEHEADERCODE 296 -#define TK_MODULE 297 -#define TK_CMODULE 298 -#define TK_CLASS 299 -#define TK_STRUCT 300 -#define TK_PUBLIC 301 -#define TK_PROTECTED 302 -#define TK_PRIVATE 303 -#define TK_SIGNALS 304 -#define TK_SLOTS 305 -#define TK_BOOL 306 -#define TK_SHORT 307 -#define TK_INT 308 -#define TK_LONG 309 -#define TK_FLOAT 310 -#define TK_DOUBLE 311 -#define TK_CHAR 312 -#define TK_WCHAR_T 313 -#define TK_VOID 314 -#define TK_PYOBJECT 315 -#define TK_PYTUPLE 316 -#define TK_PYLIST 317 -#define TK_PYDICT 318 -#define TK_PYCALLABLE 319 -#define TK_PYSLICE 320 -#define TK_PYTYPE 321 -#define TK_VIRTUAL 322 -#define TK_ENUM 323 -#define TK_SIGNED 324 -#define TK_UNSIGNED 325 -#define TK_SCOPE 326 -#define TK_LOGICAL_OR 327 -#define TK_CONST 328 -#define TK_STATIC 329 -#define TK_SIPQT_SIGNAL 330 -#define TK_SIPQT_SLOT 331 -#define TK_SIPANYQT_SLOT 332 -#define TK_SIPRXCON 333 -#define TK_SIPRXDIS 334 -#define TK_SIPSLOTCON 335 -#define TK_SIPSLOTDIS 336 -#define TK_NUMBER 337 -#define TK_REAL 338 -#define TK_TYPEDEF 339 -#define TK_NAMESPACE 340 -#define TK_TIMELINE 341 -#define TK_PLATFORMS 342 -#define TK_FEATURE 343 -#define TK_LICENSE 344 -#define TK_QCHAR 345 -#define TK_TRUE 346 -#define TK_FALSE 347 -#define TK_NULL 348 -#define TK_OPERATOR 349 -#define TK_THROW 350 -#define TK_QOBJECT 351 -#define TK_EXCEPTION 352 -#define TK_RAISECODE 353 -#define TK_EXPLICIT 354 -#define TK_TEMPLATE 355 -#define TK_ELLIPSIS 356 - - - - -/* Copy the first part of user declarations. */ -#line 16 "parser.y" - -#include -#include -#include - -#include "sip.h" - - -#define MAX_NESTED_IF 10 -#define MAX_NESTED_SCOPE 10 - -#define inMainModule() (currentSpec -> module == currentModule) - - -static sipSpec *currentSpec; /* The current spec being parsed. */ -static stringList *neededQualifiers; /* The list of required qualifiers. */ -static stringList *excludedQualifiers; /* The list of excluded qualifiers. */ -static moduleDef *currentModule; /* The current module being parsed. */ -static mappedTypeDef *currentMappedType; /* The current mapped type. */ -static enumDef *currentEnum; /* The current enum being parsed. */ -static int sectionFlags; /* The current section flags. */ -static int currentOverIsVirt; /* Set if the overload is virtual. */ -static int currentCtorIsExplicit; /* Set if the ctor is explicit. */ -static int currentIsStatic; /* Set if the current is static. */ -static char *previousFile; /* The file just parsed. */ -static parserContext newContext; /* The new pending context. */ -static int skipStackPtr; /* The skip stack pointer. */ -static int skipStack[MAX_NESTED_IF]; /* Stack of skip flags. */ -static classDef *scopeStack[MAX_NESTED_SCOPE]; /* The scope stack. */ -static int sectFlagsStack[MAX_NESTED_SCOPE]; /* The section flags stack. */ -static int currentScopeIdx; /* The scope stack index. */ -static int currentTimelineOrder; /* The current timeline order. */ - - -static char *getPythonName(optFlags *optflgs, char *cname); -static nameDef *cacheName(sipSpec *,char *); -static classDef *findClass(sipSpec *,ifaceFileType,scopedNameDef *); -static classDef *findClassWithInterface(sipSpec *pt, ifaceFileDef *iff); -static classDef *newClass(sipSpec *,ifaceFileType,scopedNameDef *); -static void finishClass(sipSpec *,moduleDef *,classDef *,optFlags *); -static exceptionDef *findException(sipSpec *pt, scopedNameDef *fqname, int new); -static mappedTypeDef *newMappedType(sipSpec *,argDef *); -static enumDef *newEnum(sipSpec *,moduleDef *,char *,optFlags *,int); -static void instantiateClassTemplate(sipSpec *pt, moduleDef *mod, classDef *scope, scopedNameDef *fqname, classTmplDef *tcd, templateDef *td); -static void newTypedef(sipSpec *,moduleDef *,char *,argDef *); -static void newVar(sipSpec *,moduleDef *,char *,int,argDef *,optFlags *, - codeBlock *,codeBlock *,codeBlock *); -static void newCtor(char *,int,signatureDef *,optFlags *,codeBlock *, - throwArgs *,signatureDef *,int); -static void newFunction(sipSpec *,moduleDef *,int,int,int,char *, - signatureDef *,int,int,optFlags *,codeBlock *, - codeBlock *,throwArgs *,signatureDef *); -static optFlag *findOptFlag(optFlags *,char *,flagType); -static memberDef *findFunction(sipSpec *,moduleDef *,classDef *,nameDef *,int, - int); -static void checkAttributes(sipSpec *,classDef *,char *,int); -static void newModule(FILE *,char *); -static void appendCodeBlock(codeBlock **,codeBlock *); -static void parseFile(FILE *,char *,moduleDef *,int); -static void handleEOF(void); -static void handleEOM(void); -static qualDef *findQualifier(char *); -static scopedNameDef *text2scopedName(char *); -static scopedNameDef *scopeScopedName(scopedNameDef *name); -static void pushScope(classDef *); -static void popScope(void); -static classDef *currentScope(void); -static void newQualifier(moduleDef *,int,int,char *,qualType); -static void newImport(char *); -static void usedInMainModule(sipSpec *,ifaceFileDef *); -static int timePeriod(char *,char *); -static int platOrFeature(char *,int); -static int isNeeded(qualDef *); -static int notSkipping(void); -static void getHooks(optFlags *,char **,char **); -static int getReleaseGIL(optFlags *); -static int getHoldGIL(optFlags *); -static void templateSignature(signatureDef *sd, int result, classTmplDef *tcd, templateDef *td, classDef *ncd); -static void templateType(argDef *ad, classTmplDef *tcd, templateDef *td, classDef *ncd); -static int search_back(const char *end, const char *start, const char *target); -static char *getType(scopedNameDef *ename, argDef *ad); -static char *scopedNameToString(scopedNameDef *name); -static void addUsedFromCode(sipSpec *pt, ifaceFileList **used, const char *sname); -static int sameName(scopedNameDef *snd, const char *sname); -static int optFind(sipSpec *pt, const char *opt); - - -/* Enabling traces. */ -#ifndef YYDEBUG -# define YYDEBUG 0 -#endif - -/* Enabling verbose error messages. */ -#ifdef YYERROR_VERBOSE -# undef YYERROR_VERBOSE -# define YYERROR_VERBOSE 1 -#else -# define YYERROR_VERBOSE 0 -#endif - -#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) -#line 103 "parser.y" -typedef union YYSTYPE { - char qchar; - char *text; - long number; - double real; - argDef memArg; - signatureDef signature; - signatureDef *optsignature; - throwArgs *throwlist; - codeBlock *codeb; - valueDef value; - valueDef *valp; - optFlags optflags; - optFlag flag; - scopedNameDef *scpvalp; - fcallDef fcall; - int boolean; - exceptionDef exceptionbase; - classDef *klass; -} YYSTYPE; -/* Line 191 of yacc.c. */ -#line 386 "parser.c" -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ -# define YYSTYPE_IS_DECLARED 1 -# define YYSTYPE_IS_TRIVIAL 1 -#endif - - - -/* Copy the second part of user declarations. */ - - -/* Line 214 of yacc.c. */ -#line 398 "parser.c" - -#if ! defined (yyoverflow) || YYERROR_VERBOSE - -# ifndef YYFREE -# define YYFREE free -# endif -# ifndef YYMALLOC -# define YYMALLOC malloc -# endif - -/* The parser invokes alloca or malloc; define the necessary symbols. */ - -# ifdef YYSTACK_USE_ALLOCA -# if YYSTACK_USE_ALLOCA -# define YYSTACK_ALLOC alloca -# endif -# else -# if defined (alloca) || defined (_ALLOCA_H) -# define YYSTACK_ALLOC alloca -# else -# ifdef __GNUC__ -# define YYSTACK_ALLOC __builtin_alloca -# endif -# endif -# endif - -# ifdef YYSTACK_ALLOC - /* Pacify GCC's `empty if-body' warning. */ -# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) -# else -# if defined (__STDC__) || defined (__cplusplus) -# include /* INFRINGES ON USER NAME SPACE */ -# define YYSIZE_T size_t -# endif -# define YYSTACK_ALLOC YYMALLOC -# define YYSTACK_FREE YYFREE -# endif -#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */ - - -#if (! defined (yyoverflow) \ - && (! defined (__cplusplus) \ - || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL))) - -/* A type that is properly aligned for any stack member. */ -union yyalloc -{ - short int yyss; - YYSTYPE yyvs; - }; - -/* The size of the maximum gap between one aligned stack and the next. */ -# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) - -/* The size of an array large to enough to hold all stacks, each with - N elements. */ -# define YYSTACK_BYTES(N) \ - ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \ - + YYSTACK_GAP_MAXIMUM) - -/* Copy COUNT objects from FROM to TO. The source and destination do - not overlap. */ -# ifndef YYCOPY -# if defined (__GNUC__) && 1 < __GNUC__ -# define YYCOPY(To, From, Count) \ - __builtin_memcpy (To, From, (Count) * sizeof (*(From))) -# else -# define YYCOPY(To, From, Count) \ - do \ - { \ - register YYSIZE_T yyi; \ - for (yyi = 0; yyi < (Count); yyi++) \ - (To)[yyi] = (From)[yyi]; \ - } \ - while (0) -# endif -# endif - -/* Relocate STACK from its old location to the new one. The - local variables YYSIZE and YYSTACKSIZE give the old and new number of - elements in the stack, and YYPTR gives the new location of the - stack. Advance YYPTR to a properly aligned location for the next - stack. */ -# define YYSTACK_RELOCATE(Stack) \ - do \ - { \ - YYSIZE_T yynewbytes; \ - YYCOPY (&yyptr->Stack, Stack, yysize); \ - Stack = &yyptr->Stack; \ - yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ - yyptr += yynewbytes / sizeof (*yyptr); \ - } \ - while (0) - -#endif - -#if defined (__STDC__) || defined (__cplusplus) - typedef signed char yysigned_char; -#else - typedef short int yysigned_char; -#endif - -/* YYFINAL -- State number of the termination state. */ -#define YYFINAL 4 -/* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 1105 - -/* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 124 -/* YYNNTS -- Number of nonterminals. */ -#define YYNNTS 134 -/* YYNRULES -- Number of rules. */ -#define YYNRULES 339 -/* YYNRULES -- Number of states. */ -#define YYNSTATES 562 - -/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ -#define YYUNDEFTOK 2 -#define YYMAXUTOK 356 - -#define YYTRANSLATE(YYX) \ - ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) - -/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ -static const unsigned char yytranslate[] = -{ - 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 108, 2, 2, 2, 122, 114, 2, - 102, 103, 112, 111, 104, 109, 2, 113, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 119, 107, - 117, 110, 118, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 120, 2, 121, 123, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 105, 115, 106, 116, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, - 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, - 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, - 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, - 95, 96, 97, 98, 99, 100, 101 -}; - -#if YYDEBUG -/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in - YYRHS. */ -static const unsigned short int yyprhs[] = -{ - 0, 0, 3, 5, 8, 9, 12, 14, 16, 18, - 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, - 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, - 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, - 80, 82, 84, 89, 91, 95, 97, 107, 108, 112, - 115, 116, 121, 122, 128, 133, 135, 138, 140, 143, - 146, 147, 155, 157, 160, 161, 167, 169, 172, 174, - 177, 178, 184, 186, 189, 191, 196, 198, 201, 205, - 210, 212, 216, 218, 221, 225, 227, 229, 231, 233, - 234, 236, 239, 242, 245, 246, 249, 250, 253, 254, - 257, 260, 263, 266, 269, 270, 272, 275, 278, 281, - 284, 287, 290, 293, 296, 299, 302, 305, 308, 311, - 314, 319, 322, 324, 327, 328, 337, 338, 340, 341, - 343, 344, 346, 348, 351, 353, 355, 360, 361, 363, - 364, 367, 368, 371, 373, 377, 379, 381, 383, 385, - 387, 389, 390, 392, 394, 396, 398, 401, 403, 407, - 409, 411, 416, 418, 420, 422, 424, 426, 428, 430, - 431, 433, 437, 442, 453, 454, 463, 466, 471, 472, - 480, 481, 484, 486, 490, 492, 493, 497, 499, 502, - 504, 506, 508, 510, 512, 514, 516, 518, 520, 522, - 524, 526, 528, 530, 532, 534, 536, 538, 540, 543, - 546, 550, 554, 558, 561, 562, 564, 576, 577, 581, - 583, 593, 594, 600, 601, 608, 609, 611, 625, 640, - 654, 656, 658, 660, 662, 664, 666, 668, 670, 673, - 676, 679, 682, 685, 688, 691, 694, 697, 700, 704, - 708, 710, 713, 716, 718, 721, 724, 727, 729, 732, - 733, 735, 736, 739, 740, 744, 746, 750, 752, 756, - 758, 760, 762, 763, 766, 767, 770, 772, 773, 775, - 779, 783, 787, 791, 794, 797, 803, 809, 812, 815, - 816, 820, 822, 824, 826, 827, 831, 833, 841, 846, - 850, 854, 855, 857, 858, 861, 863, 868, 871, 874, - 876, 878, 881, 883, 885, 888, 891, 895, 897, 899, - 901, 904, 907, 909, 911, 913, 915, 917, 919, 921, - 923, 925, 927, 929, 931, 935, 936, 941, 942, 944 -}; - -/* YYRHS -- A `-1'-separated list of the rules' RHS. */ -static const short int yyrhs[] = -{ - 125, 0, -1, 126, -1, 125, 126, -1, -1, 127, - 128, -1, 160, -1, 130, -1, 132, -1, 170, -1, - 164, -1, 165, -1, 166, -1, 151, -1, 146, -1, - 150, -1, 159, -1, 171, -1, 172, -1, 181, -1, - 183, -1, 184, -1, 185, -1, 186, -1, 187, -1, - 188, -1, 189, -1, 136, -1, 138, -1, 129, -1, - 155, -1, 158, -1, 143, -1, 211, -1, 215, -1, - 213, -1, 133, -1, 210, -1, 192, -1, 231, -1, - 249, -1, 173, -1, 3, 102, 131, 103, -1, 22, - -1, 131, 104, 22, -1, 4, -1, 97, 206, 134, - 235, 105, 174, 135, 106, 107, -1, -1, 102, 206, - 103, -1, 98, 190, -1, -1, 18, 254, 137, 140, - -1, -1, 214, 18, 254, 139, 140, -1, 105, 141, - 106, 107, -1, 142, -1, 141, 142, -1, 173, -1, - 33, 190, -1, 34, 190, -1, -1, 85, 22, 144, - 105, 145, 106, 107, -1, 129, -1, 145, 129, -1, - -1, 87, 147, 105, 148, 106, -1, 149, -1, 148, - 149, -1, 22, -1, 88, 22, -1, -1, 86, 152, - 105, 153, 106, -1, 154, -1, 153, 154, -1, 22, - -1, 20, 102, 157, 103, -1, 22, -1, 108, 22, - -1, 156, 72, 22, -1, 156, 72, 108, 22, -1, - 156, -1, 195, 109, 195, -1, 21, -1, 89, 235, - -1, 161, 162, 163, -1, 42, -1, 43, -1, 22, - -1, 23, -1, -1, 82, -1, 36, 23, -1, 37, - 23, -1, 38, 23, -1, -1, 8, 190, -1, -1, - 9, 190, -1, -1, 10, 190, -1, 17, 190, -1, - 39, 190, -1, 40, 190, -1, 41, 190, -1, -1, - 173, -1, 26, 190, -1, 27, 190, -1, 28, 190, - -1, 29, 190, -1, 30, 190, -1, 31, 190, -1, - 14, 190, -1, 15, 190, -1, 11, 190, -1, 12, - 190, -1, 13, 190, -1, 16, 190, -1, 5, 190, - -1, 6, 190, -1, 7, 23, 194, 190, -1, 191, - 21, -1, 19, -1, 191, 19, -1, -1, 68, 195, - 235, 193, 105, 196, 106, 107, -1, -1, 23, -1, - -1, 22, -1, -1, 197, -1, 198, -1, 197, 198, - -1, 155, -1, 158, -1, 22, 200, 235, 199, -1, - -1, 104, -1, -1, 110, 205, -1, -1, 110, 202, - -1, 205, -1, 202, 203, 205, -1, 109, -1, 111, - -1, 112, -1, 113, -1, 114, -1, 115, -1, -1, - 108, -1, 116, -1, 109, -1, 111, -1, 204, 208, - -1, 207, -1, 206, 71, 207, -1, 22, -1, 206, - -1, 254, 102, 209, 103, -1, 83, -1, 82, -1, - 91, -1, 92, -1, 93, -1, 24, -1, 90, -1, - -1, 202, -1, 209, 104, 202, -1, 84, 250, 22, - 107, -1, 84, 250, 102, 253, 22, 103, 102, 255, - 103, 107, -1, -1, 45, 22, 212, 235, 105, 221, - 106, 107, -1, 214, 215, -1, 100, 117, 255, 118, - -1, -1, 44, 206, 216, 217, 235, 220, 107, -1, - -1, 119, 218, -1, 219, -1, 218, 104, 219, -1, - 206, -1, -1, 105, 221, 106, -1, 222, -1, 221, - 222, -1, 155, -1, 158, -1, 143, -1, 211, -1, - 215, -1, 133, -1, 210, -1, 192, -1, 182, -1, - 173, -1, 175, -1, 176, -1, 177, -1, 178, -1, - 179, -1, 180, -1, 225, -1, 224, -1, 244, -1, - 35, 190, -1, 34, 190, -1, 46, 223, 119, -1, - 47, 223, 119, -1, 48, 223, 119, -1, 49, 119, - -1, -1, 50, -1, 230, 116, 22, 102, 103, 256, - 234, 235, 107, 239, 240, -1, -1, 99, 226, 227, - -1, 227, -1, 22, 102, 241, 103, 256, 235, 228, - 107, 239, -1, -1, 120, 102, 241, 103, 121, -1, - -1, 120, 250, 102, 241, 103, 121, -1, -1, 67, - -1, 250, 22, 102, 241, 103, 233, 256, 234, 235, - 229, 107, 239, 240, -1, 250, 94, 232, 102, 241, - 103, 233, 256, 234, 235, 229, 107, 239, 240, -1, - 94, 250, 102, 241, 103, 233, 256, 234, 235, 229, - 107, 239, 240, -1, 111, -1, 109, -1, 112, -1, - 113, -1, 122, -1, 114, -1, 115, -1, 123, -1, - 117, 117, -1, 118, 118, -1, 111, 110, -1, 109, - 110, -1, 112, 110, -1, 113, 110, -1, 122, 110, - -1, 114, 110, -1, 115, 110, -1, 123, 110, -1, - 117, 117, 110, -1, 118, 118, 110, -1, 116, -1, - 102, 103, -1, 120, 121, -1, 117, -1, 117, 110, - -1, 110, 110, -1, 108, 110, -1, 118, -1, 118, - 110, -1, -1, 73, -1, -1, 110, 82, -1, -1, - 113, 236, 113, -1, 237, -1, 236, 104, 237, -1, - 22, -1, 22, 110, 238, -1, 22, -1, 24, -1, - 82, -1, -1, 32, 190, -1, -1, 25, 190, -1, - 242, -1, -1, 243, -1, 242, 104, 243, -1, 75, - 195, 201, -1, 76, 195, 201, -1, 77, 195, 201, - -1, 78, 195, -1, 79, 195, -1, 80, 102, 241, - 103, 195, -1, 81, 102, 241, 103, 195, -1, 96, - 195, -1, 251, 201, -1, -1, 74, 245, 246, -1, - 246, -1, 247, -1, 249, -1, -1, 67, 248, 231, - -1, 231, -1, 250, 22, 235, 107, 167, 168, 169, - -1, 73, 254, 253, 252, -1, 254, 253, 252, -1, - 250, 195, 235, -1, -1, 114, -1, -1, 253, 112, - -1, 206, -1, 206, 117, 255, 118, -1, 45, 206, - -1, 70, 52, -1, 52, -1, 70, -1, 70, 53, - -1, 53, -1, 54, -1, 70, 54, -1, 54, 54, - -1, 70, 54, 54, -1, 55, -1, 56, -1, 51, - -1, 69, 57, -1, 70, 57, -1, 57, -1, 58, - -1, 59, -1, 60, -1, 61, -1, 62, -1, 63, - -1, 64, -1, 65, -1, 66, -1, 101, -1, 250, - -1, 255, 104, 250, -1, -1, 95, 102, 257, 103, - -1, -1, 206, -1, 257, 104, 206, -1 -}; - -/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ -static const unsigned short int yyrline[] = -{ - 0, 289, 289, 290, 293, 293, 312, 313, 314, 315, - 316, 317, 318, 319, 320, 321, 322, 323, 327, 331, - 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, - 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, - 357, 358, 371, 374, 377, 382, 391, 430, 434, 508, - 513, 513, 519, 519, 558, 572, 573, 576, 580, 589, - 600, 600, 637, 638, 641, 641, 668, 669, 672, 677, - 682, 682, 707, 708, 711, 716, 729, 732, 735, 738, - 743, 744, 749, 755, 782, 807, 810, 815, 816, 832, - 835, 838, 843, 848, 853, 856, 861, 864, 869, 872, - 877, 883, 888, 893, 898, 901, 904, 909, 914, 919, - 924, 929, 934, 939, 944, 950, 956, 962, 971, 977, - 982, 988, 991, 992, 1003, 1003, 1014, 1017, 1022, 1025, - 1030, 1031, 1034, 1035, 1038, 1039, 1040, 1073, 1074, 1077, - 1078, 1081, 1084, 1089, 1090, 1108, 1111, 1114, 1117, 1120, - 1123, 1128, 1131, 1134, 1137, 1140, 1145, 1163, 1164, 1172, - 1177, 1187, 1197, 1201, 1205, 1209, 1213, 1217, 1221, 1227, - 1232, 1238, 1256, 1260, 1283, 1283, 1303, 1328, 1333, 1333, - 1382, 1383, 1386, 1387, 1390, 1405, 1408, 1413, 1414, 1417, - 1418, 1419, 1420, 1421, 1422, 1423, 1424, 1425, 1429, 1433, - 1440, 1447, 1454, 1461, 1468, 1475, 1476, 1477, 1478, 1489, - 1500, 1507, 1514, 1521, 1530, 1533, 1538, 1587, 1587, 1588, - 1591, 1617, 1620, 1627, 1630, 1638, 1641, 1646, 1663, 1688, - 1766, 1767, 1768, 1769, 1770, 1771, 1772, 1773, 1774, 1775, - 1776, 1777, 1778, 1779, 1780, 1781, 1782, 1783, 1784, 1785, - 1786, 1787, 1788, 1789, 1790, 1791, 1792, 1793, 1794, 1797, - 1800, 1805, 1808, 1816, 1819, 1825, 1829, 1841, 1845, 1851, - 1855, 1859, 1865, 1868, 1873, 1876, 1881, 1929, 1934, 1940, - 1967, 1976, 1985, 1994, 2002, 2010, 2025, 2040, 2046, 2052, - 2052, 2053, 2056, 2057, 2060, 2060, 2061, 2064, 2097, 2103, - 2111, 2168, 2171, 2179, 2182, 2187, 2191, 2201, 2214, 2217, - 2220, 2223, 2226, 2229, 2232, 2235, 2238, 2241, 2244, 2247, - 2250, 2253, 2256, 2259, 2262, 2265, 2268, 2271, 2274, 2277, - 2280, 2283, 2286, 2291, 2297, 2313, 2316, 2343, 2349, 2356 -}; -#endif - -#if YYDEBUG || YYERROR_VERBOSE -/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. - First, the terminals, then, starting at YYNTOKENS, nonterminals. */ -static const char *const yytname[] = -{ - "$end", "error", "$undefined", "TK_OPTIONS", "TK_NOEMITTERS", "TK_DOC", - "TK_EXPORTEDDOC", "TK_MAKEFILE", "TK_ACCESSCODE", "TK_GETCODE", - "TK_SETCODE", "TK_PREINITCODE", "TK_POSTINITCODE", "TK_UNITCODE", - "TK_MODCODE", "TK_TYPECODE", "TK_PREPYCODE", "TK_COPYING", - "TK_MAPPEDTYPE", "TK_CODELINE", "TK_IF", "TK_END", "TK_NAME", - "TK_PATHNAME", "TK_STRING", "TK_VIRTUALCATCHERCODE", "TK_TRAVERSECODE", - "TK_CLEARCODE", "TK_READBUFFERCODE", "TK_WRITEBUFFERCODE", - "TK_SEGCOUNTCODE", "TK_CHARBUFFERCODE", "TK_METHODCODE", "TK_FROMTYPE", - "TK_TOTYPE", "TK_TOSUBCLASS", "TK_INCLUDE", "TK_OPTINCLUDE", "TK_IMPORT", - "TK_EXPHEADERCODE", "TK_MODHEADERCODE", "TK_TYPEHEADERCODE", "TK_MODULE", - "TK_CMODULE", "TK_CLASS", "TK_STRUCT", "TK_PUBLIC", "TK_PROTECTED", - "TK_PRIVATE", "TK_SIGNALS", "TK_SLOTS", "TK_BOOL", "TK_SHORT", "TK_INT", - "TK_LONG", "TK_FLOAT", "TK_DOUBLE", "TK_CHAR", "TK_WCHAR_T", "TK_VOID", - "TK_PYOBJECT", "TK_PYTUPLE", "TK_PYLIST", "TK_PYDICT", "TK_PYCALLABLE", - "TK_PYSLICE", "TK_PYTYPE", "TK_VIRTUAL", "TK_ENUM", "TK_SIGNED", - "TK_UNSIGNED", "TK_SCOPE", "TK_LOGICAL_OR", "TK_CONST", "TK_STATIC", - "TK_SIPSIGNAL", "TK_SIPSLOT", "TK_SIPANYSLOT", "TK_SIPRXCON", - "TK_SIPRXDIS", "TK_SIPSLOTCON", "TK_SIPSLOTDIS", "TK_NUMBER", "TK_REAL", - "TK_TYPEDEF", "TK_NAMESPACE", "TK_TIMELINE", "TK_PLATFORMS", - "TK_FEATURE", "TK_LICENSE", "TK_QCHAR", "TK_TRUE", "TK_FALSE", "TK_NULL", - "TK_OPERATOR", "TK_THROW", "TK_QOBJECT", "TK_EXCEPTION", "TK_RAISECODE", - "TK_EXPLICIT", "TK_TEMPLATE", "TK_ELLIPSIS", "'('", "')'", "','", "'{'", - "'}'", "';'", "'!'", "'-'", "'='", "'+'", "'*'", "'/'", "'&'", "'|'", - "'~'", "'<'", "'>'", "':'", "'['", "']'", "'%'", "'^'", "$accept", - "specification", "statement", "@1", "modstatement", "nsstatement", - "options", "optionlist", "noemitters", "exception", "baseexception", - "raisecode", "mappedtype", "@2", "mappedtypetmpl", "@3", "mtdefinition", - "mtbody", "mtline", "namespace", "@4", "nsbody", "platforms", "@5", - "platformlist", "platform", "feature", "timeline", "@6", "qualifierlist", - "qualifiername", "ifstart", "oredqualifiers", "qualifiers", "ifend", - "license", "module", "modlang", "modname", "optnumber", "include", - "optinclude", "import", "optaccesscode", "optgetcode", "optsetcode", - "copying", "exphdrcode", "modhdrcode", "typehdrcode", "opttypehdrcode", - "travcode", "clearcode", "readbufcode", "writebufcode", "segcountcode", - "charbufcode", "modcode", "typecode", "preinitcode", "postinitcode", - "unitcode", "prepycode", "doc", "exporteddoc", "makefile", "codeblock", - "codelines", "enum", "@7", "optfilename", "optname", "optenumbody", - "enumbody", "enumline", "optcomma", "optenumassign", "optassign", "expr", - "binop", "optunop", "value", "scopedname", "scopepart", "simplevalue", - "exprlist", "typedef", "struct", "@8", "classtmpl", "template", "class", - "@9", "superclasses", "superlist", "superclass", "optclassbody", - "classbody", "classline", "optslot", "dtor", "ctor", "@10", "simplector", - "optctorsig", "optsig", "optvirtual", "function", "operatorname", - "optconst", "optabstract", "optflags", "flaglist", "flag", "flagvalue", - "methodcode", "virtualcatchercode", "arglist", "rawarglist", "argvalue", - "varmember", "@11", "varmem", "member", "@12", "variable", "cpptype", - "argtype", "optref", "deref", "basetype", "cpptypelist", "optexceptions", - "exceptionlist", 0 -}; -#endif - -# ifdef YYPRINT -/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to - token YYLEX-NUM. */ -static const unsigned short int yytoknum[] = -{ - 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, - 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, - 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, - 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, - 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, - 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, - 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, - 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, - 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, - 355, 356, 40, 41, 44, 123, 125, 59, 33, 45, - 61, 43, 42, 47, 38, 124, 126, 60, 62, 58, - 91, 93, 37, 94 -}; -# endif - -/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ -static const unsigned short int yyr1[] = -{ - 0, 124, 125, 125, 127, 126, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, - 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, - 129, 129, 130, 131, 131, 132, 133, 134, 134, 135, - 137, 136, 139, 138, 140, 141, 141, 142, 142, 142, - 144, 143, 145, 145, 147, 146, 148, 148, 149, 150, - 152, 151, 153, 153, 154, 155, 156, 156, 156, 156, - 157, 157, 158, 159, 160, 161, 161, 162, 162, 163, - 163, 164, 165, 166, 167, 167, 168, 168, 169, 169, - 170, 171, 172, 173, 174, 174, 175, 176, 177, 178, - 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, - 189, 190, 191, 191, 193, 192, 194, 194, 195, 195, - 196, 196, 197, 197, 198, 198, 198, 199, 199, 200, - 200, 201, 201, 202, 202, 203, 203, 203, 203, 203, - 203, 204, 204, 204, 204, 204, 205, 206, 206, 207, - 208, 208, 208, 208, 208, 208, 208, 208, 208, 209, - 209, 209, 210, 210, 212, 211, 213, 214, 216, 215, - 217, 217, 218, 218, 219, 220, 220, 221, 221, 222, - 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, - 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, - 222, 222, 222, 222, 223, 223, 224, 226, 225, 225, - 227, 228, 228, 229, 229, 230, 230, 231, 231, 231, - 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, - 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, - 232, 232, 232, 232, 232, 232, 232, 232, 232, 233, - 233, 234, 234, 235, 235, 236, 236, 237, 237, 238, - 238, 238, 239, 239, 240, 240, 241, 242, 242, 242, - 243, 243, 243, 243, 243, 243, 243, 243, 243, 245, - 244, 244, 246, 246, 248, 247, 247, 249, 250, 250, - 251, 252, 252, 253, 253, 254, 254, 254, 254, 254, - 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, - 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, - 254, 254, 254, 255, 255, 256, 256, 257, 257, 257 -}; - -/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ -static const unsigned char yyr2[] = -{ - 0, 2, 1, 2, 0, 2, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 4, 1, 3, 1, 9, 0, 3, 2, - 0, 4, 0, 5, 4, 1, 2, 1, 2, 2, - 0, 7, 1, 2, 0, 5, 1, 2, 1, 2, - 0, 5, 1, 2, 1, 4, 1, 2, 3, 4, - 1, 3, 1, 2, 3, 1, 1, 1, 1, 0, - 1, 2, 2, 2, 0, 2, 0, 2, 0, 2, - 2, 2, 2, 2, 0, 1, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 4, 2, 1, 2, 0, 8, 0, 1, 0, 1, - 0, 1, 1, 2, 1, 1, 4, 0, 1, 0, - 2, 0, 2, 1, 3, 1, 1, 1, 1, 1, - 1, 0, 1, 1, 1, 1, 2, 1, 3, 1, - 1, 4, 1, 1, 1, 1, 1, 1, 1, 0, - 1, 3, 4, 10, 0, 8, 2, 4, 0, 7, - 0, 2, 1, 3, 1, 0, 3, 1, 2, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, - 3, 3, 3, 2, 0, 1, 11, 0, 3, 1, - 9, 0, 5, 0, 6, 0, 1, 13, 14, 13, - 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, - 1, 2, 2, 1, 2, 2, 2, 1, 2, 0, - 1, 0, 2, 0, 3, 1, 3, 1, 3, 1, - 1, 1, 0, 2, 0, 2, 1, 0, 1, 3, - 3, 3, 3, 2, 2, 5, 5, 2, 2, 0, - 3, 1, 1, 1, 0, 3, 1, 7, 4, 3, - 3, 0, 1, 0, 2, 1, 4, 2, 2, 1, - 1, 2, 1, 1, 2, 2, 3, 1, 1, 1, - 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 3, 0, 4, 0, 1, 3 -}; - -/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state - STATE-NUM when YYTABLE doesn't specify something else to do. Zero - means the default is an error. */ -static const unsigned short int yydefact[] = -{ - 4, 4, 2, 0, 1, 3, 0, 45, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 82, - 159, 0, 0, 0, 0, 0, 0, 85, 86, 0, - 0, 319, 309, 312, 313, 317, 318, 322, 323, 324, - 325, 326, 327, 328, 329, 330, 331, 128, 0, 310, - 0, 0, 0, 70, 64, 0, 263, 0, 0, 0, - 332, 5, 29, 7, 8, 36, 27, 28, 32, 14, - 15, 13, 30, 31, 16, 6, 0, 10, 11, 12, - 9, 17, 18, 41, 19, 20, 21, 22, 23, 24, - 25, 26, 38, 305, 157, 37, 33, 35, 0, 34, - 39, 40, 0, 303, 0, 122, 118, 0, 119, 126, - 114, 115, 116, 112, 117, 100, 0, 50, 128, 91, - 92, 93, 101, 102, 103, 178, 159, 307, 315, 129, - 263, 320, 308, 311, 314, 321, 303, 0, 60, 0, - 0, 69, 0, 83, 0, 47, 0, 87, 88, 89, - 0, 0, 0, 176, 263, 0, 301, 43, 0, 123, - 121, 127, 0, 0, 76, 0, 80, 0, 0, 180, - 263, 124, 316, 301, 0, 303, 0, 0, 0, 267, - 0, 265, 277, 0, 263, 333, 0, 90, 84, 158, - 0, 52, 277, 0, 0, 0, 231, 0, 230, 232, - 233, 235, 236, 250, 253, 257, 0, 234, 237, 0, - 304, 302, 299, 42, 0, 120, 0, 51, 77, 0, - 75, 128, 0, 263, 0, 0, 298, 172, 0, 0, - 74, 0, 72, 68, 0, 66, 0, 0, 264, 128, - 128, 128, 128, 128, 0, 0, 128, 0, 276, 278, - 128, 141, 0, 0, 0, 177, 306, 0, 0, 94, - 251, 256, 241, 255, 240, 242, 243, 245, 246, 254, - 238, 258, 239, 252, 244, 247, 277, 44, 0, 0, - 0, 55, 57, 78, 0, 81, 184, 181, 182, 185, - 225, 130, 0, 62, 0, 0, 71, 73, 65, 67, - 269, 270, 271, 268, 266, 141, 141, 141, 283, 284, - 277, 277, 287, 259, 0, 263, 151, 288, 48, 104, - 334, 53, 259, 0, 96, 248, 249, 0, 58, 59, - 0, 56, 79, 0, 225, 0, 0, 159, 0, 0, - 0, 0, 0, 0, 0, 0, 214, 214, 214, 0, - 294, 289, 217, 194, 191, 189, 190, 198, 199, 200, - 201, 202, 203, 204, 197, 196, 195, 192, 193, 225, - 187, 206, 205, 219, 0, 296, 207, 291, 292, 293, - 139, 134, 135, 0, 131, 132, 0, 0, 63, 280, - 281, 282, 0, 0, 260, 335, 279, 300, 152, 154, - 155, 153, 142, 0, 143, 105, 0, 335, 95, 0, - 98, 259, 54, 183, 225, 179, 113, 277, 106, 107, - 108, 109, 110, 111, 209, 208, 215, 0, 0, 0, - 213, 0, 0, 0, 0, 188, 0, 151, 263, 0, - 133, 0, 61, 128, 128, 0, 261, 145, 146, 147, - 148, 149, 150, 151, 167, 163, 162, 168, 164, 165, - 166, 160, 156, 0, 0, 0, 261, 97, 0, 297, - 335, 186, 0, 210, 211, 212, 295, 0, 294, 290, - 0, 218, 175, 0, 140, 137, 125, 0, 285, 286, - 337, 0, 263, 144, 151, 49, 0, 263, 99, 261, - 335, 0, 0, 138, 136, 0, 338, 0, 262, 223, - 170, 0, 46, 223, 263, 263, 335, 173, 336, 0, - 0, 0, 161, 151, 0, 223, 221, 261, 339, 0, - 272, 171, 272, 0, 0, 0, 263, 277, 0, 274, - 274, 272, 277, 272, 0, 0, 273, 0, 229, 227, - 274, 0, 220, 272, 0, 275, 228, 0, 274, 224, - 222, 216 -}; - -/* YYDEFGOTO[NTERM-NUM]. */ -static const short int yydefgoto[] = -{ - -1, 1, 2, 3, 61, 62, 63, 158, 64, 353, - 184, 465, 66, 163, 67, 257, 217, 280, 281, 354, - 176, 294, 69, 140, 234, 235, 70, 71, 139, 231, - 232, 355, 166, 167, 356, 74, 75, 76, 149, 188, - 77, 78, 79, 324, 410, 469, 80, 81, 82, 357, - 406, 358, 359, 360, 361, 362, 363, 84, 364, 85, - 86, 87, 88, 89, 90, 91, 106, 107, 365, 225, - 162, 130, 383, 384, 385, 504, 438, 317, 402, 453, - 403, 404, 93, 94, 462, 511, 366, 367, 170, 97, - 295, 368, 169, 223, 287, 288, 335, 369, 370, 427, - 371, 372, 433, 373, 535, 521, 374, 375, 209, 395, - 492, 143, 180, 181, 303, 539, 548, 247, 248, 249, - 376, 432, 377, 378, 431, 379, 250, 251, 212, 156, - 103, 186, 446, 507 -}; - -/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing - STATE-NUM. */ -#define YYPACT_NINF -484 -static const short int yypact[] = -{ - -484, 79, -484, 506, -484, -484, 29, -484, 127, 127, - 132, 127, 127, 127, 127, 127, 127, 1004, 58, -484, - -484, 139, 157, 176, 127, 127, 127, -484, -484, 179, - 189, -484, -484, -484, 158, -484, -484, -484, -484, -484, - -484, -484, -484, -484, -484, -484, -484, 193, 159, 137, - 1004, 221, 195, -484, -484, 203, 115, 221, 179, 112, - -484, -484, -484, -484, -484, -484, -484, -484, -484, -484, - -484, -484, -484, -484, -484, -484, 69, -484, -484, -484, - -484, -484, -484, -484, -484, -484, -484, -484, -484, -484, - -484, -484, -484, -28, -484, -484, -484, -484, 41, -484, - -484, -484, 12, -484, 204, -484, -484, 92, -484, 207, - -484, -484, -484, -484, -484, -484, 179, -484, 14, -484, - -484, -484, -484, -484, -484, 160, 2, 160, -484, -484, - 115, -484, -484, -484, 178, -484, -484, 19, -484, 128, - 130, -484, 214, -484, 135, -18, 221, -484, -484, 165, - 179, 221, 1004, -484, -39, 240, 47, -484, 46, -484, - -484, -484, 127, 136, 133, 226, 177, 151, 148, 141, - 115, -484, -484, 47, 154, -484, 153, 241, 242, 152, - -14, -484, 867, 179, 115, -484, -40, -484, -484, -484, - -6, -484, 867, 161, 162, 183, 186, 187, 188, 190, - 197, 198, 213, -484, -15, -1, 146, 215, 216, 169, - -484, -484, -484, -484, 266, -484, 39, -484, -484, 17, - -484, 193, 179, 115, 184, 219, -484, -484, 6, 814, - -484, 18, -484, -484, 20, -484, 28, 214, -484, 193, - 193, 193, 193, 193, 201, 235, 193, 225, 234, -484, - 193, 230, -27, 238, 221, -484, -484, 136, 244, 336, - -484, -484, -484, -484, -484, -484, -484, -484, -484, -484, - 249, -484, 251, -484, -484, -484, 867, -484, 127, 127, - 13, -484, -484, -484, 342, -484, 160, 261, -484, 262, - 755, 108, 265, -484, 113, 325, -484, -484, -484, -484, - -484, -484, -484, -484, -484, 230, 230, 230, -484, -484, - 867, 867, -484, 297, 867, 115, -8, -484, -484, 331, - -484, -484, 297, 127, 366, -484, -484, 273, -484, -484, - 270, -484, -484, 179, 755, 272, 127, 278, 127, 127, - 127, 127, 127, 127, 127, 127, 332, 332, 332, 267, - 268, -484, -484, -484, -484, -484, -484, -484, -484, -484, - -484, -484, -484, -484, -484, -484, -484, -484, -484, 589, - -484, -484, -484, -484, 269, -484, -484, -484, -484, -484, - 271, -484, -484, 281, 108, -484, 286, 282, -484, -484, - -484, -484, 287, 288, -484, 298, -484, -484, -484, -484, - -484, -484, 109, 927, -484, -484, 294, 298, -484, 127, - 387, 297, -484, -484, 672, -484, -484, 867, -484, -484, - -484, -484, -484, -484, -484, -484, -484, 283, 284, 285, - -484, 978, 420, 379, 299, -484, 383, -8, 115, 300, - -484, 221, -484, 193, 193, 306, 301, -484, -484, -484, - -484, -484, -484, -8, -484, -484, -484, -484, -484, -484, - -484, -34, -484, 307, 127, 304, 301, -484, 127, -484, - 298, -484, 309, -484, -484, -484, -484, 33, -484, -484, - 278, -484, -484, 311, -484, 310, -484, 81, -484, -484, - 179, 333, 115, -484, 84, -484, 313, 115, -484, 301, - 298, 314, 315, -484, -484, 316, 160, 100, -484, 302, - 109, 102, -484, 302, 115, 115, 298, -484, -484, 179, - 221, 317, -484, -8, 318, 302, 308, 301, 160, 319, - 394, 109, 394, 320, 328, 324, 115, 867, 127, 407, - 407, 394, 867, 394, 326, 335, -484, 127, -484, -484, - 407, 337, -484, 394, 322, -484, -484, 323, 407, -484, - -484, -484 -}; - -/* YYPGOTO[NTERM-NUM]. */ -static const short int yypgoto[] = -{ - -484, -484, 433, -484, -484, -197, -484, -484, -484, 11, - -484, -484, -484, -484, -484, -484, 182, -484, 155, 21, - -484, -484, -484, -484, -484, 211, -484, -484, -484, -484, - 210, 10, -484, -484, 15, -484, -484, -484, -484, -484, - -484, -484, -484, -484, -484, -484, -484, -484, -484, 22, - -484, -484, -484, -484, -484, -484, -484, -484, -484, -484, - -484, -484, -484, -484, -484, -484, -9, -484, 23, -484, - -484, -98, -484, -484, 63, -484, -484, -169, -436, -484, - -484, -376, -20, 303, -484, -484, 24, 26, -484, -484, - 445, 16, -484, -484, -484, 116, -484, 117, -321, -139, - -484, -484, -484, 25, -484, -443, -484, -2, -484, -291, - -433, -119, -484, 217, -484, -472, -483, -171, -484, 138, - -484, -484, 30, -484, -484, 27, 5, -484, 277, -87, - -5, -129, -384, -484 -}; - -/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If - positive, shift that token. If negative, reduce the rule which - number is the opposite. If zero, do what YYDEFACT says. - If YYTABLE_NINF, syntax error. */ -#define YYTABLE_NINF -306 -static const short int yytable[] = -{ - 108, 100, 110, 111, 112, 113, 114, 115, 102, 125, - 127, 171, 117, 72, 65, 122, 123, 124, 73, 99, - 168, 258, 190, 466, 68, 83, 92, 95, 292, 96, - 101, 407, 293, 497, 154, 193, 164, 150, 145, 283, - 230, 174, 233, 150, 150, 136, 278, 279, 435, 173, - 300, 224, 301, 150, 26, 501, 137, 549, 510, 152, - 540, 484, 144, 192, 254, 253, 514, 556, -305, 550, - 524, 552, 278, 279, 142, 561, 318, 493, 255, 4, - 26, 558, 533, 151, 183, 29, 499, 531, 228, 151, - 237, 147, 148, 435, 536, 269, 127, 388, 254, 238, - 398, 399, 270, 400, 289, 327, 155, -174, 401, 271, - 302, 159, 256, 160, 153, -174, 515, 272, 210, 330, - 470, 175, 165, 285, 296, 284, 298, 155, 18, 19, - 380, 104, 527, 18, 19, 20, 389, 390, 391, 392, - 393, 305, 306, 307, 308, 309, 105, 191, 312, 213, - 214, 185, 315, 215, 26, 109, 185, 29, 30, 210, - 118, 211, 119, 252, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, - 120, 47, 48, 49, 505, 254, 50, -169, -169, 132, - 133, 134, 398, 399, 135, 400, 397, 51, 52, 121, - 401, 20, 286, 518, 519, 522, 523, 57, 428, 429, - 58, 126, 128, 59, 60, 129, 131, 138, 447, 387, - 448, 449, 450, 451, 452, 141, 157, 100, 142, 146, - 161, 150, 172, 177, 102, 178, 179, 182, 282, 72, - 65, 216, -129, 20, 73, 99, 472, 187, 218, 219, - 68, 83, 92, 95, 220, 96, 101, 221, 229, 320, - 222, 227, 236, 230, 233, 260, 116, 273, 259, 328, - 329, 276, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 42, 43, 44, 45, 46, 277, 290, - 48, 49, 100, 261, 50, 102, 262, 263, 264, 102, - 265, 381, 282, 310, 72, 65, 382, 266, 267, 73, - 99, 153, 487, 286, 408, 68, 83, 92, 95, 485, - 96, 101, 60, 268, 291, 274, 275, 416, 313, 418, - 419, 420, 421, 422, 423, 424, 425, 311, 314, 102, - 316, 405, 194, 319, 323, 488, 489, 322, 195, 196, - 197, 198, 199, 200, 201, 202, 203, 204, 205, 325, - 206, 326, 207, 208, 332, 333, 545, 334, 386, 29, - 394, 551, 26, 509, 102, 409, 411, 412, 513, 415, - 417, 437, 426, 461, -226, 436, 430, 439, 441, 442, - 443, 444, 464, 445, 381, 525, 526, 468, 463, 382, - 467, 480, 473, 474, 475, 483, 482, 486, 490, 494, - 496, 491, 500, 502, 503, 508, 192, 544, 516, 102, - 512, 537, 520, 517, 530, 532, 538, 541, 534, 476, - 542, 543, 547, 553, 5, 331, 477, 102, 554, 321, - 557, 297, 20, 559, 560, 299, 185, 440, 98, 413, - 226, 414, 396, 189, 304, 495, 0, 0, 481, 498, - 0, 0, 479, 0, 0, 116, 0, 0, 0, 0, - 506, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 42, 43, 44, 45, 46, 478, 0, 48, - 49, 0, 0, 50, 0, 0, 0, 0, 0, 528, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, - 7, 8, 9, 10, 57, 0, 0, 11, 12, 13, - 14, 60, 15, 16, 17, 529, 18, 19, 20, 546, - 0, 0, 0, 0, 0, 0, 0, 0, 555, 0, - 0, 0, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 0, 0, 0, 0, 0, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, - 44, 45, 46, 0, 47, 48, 49, 0, 0, 50, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, - 57, 0, 0, 58, 336, 0, 59, 60, 0, 18, - 19, 337, 0, 0, 0, 338, 339, 340, 341, 342, - 343, 0, 0, 344, 345, 0, 0, 0, 0, 0, - 26, 0, 0, 29, 30, 346, 347, 348, 349, 0, - 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 42, 43, 44, 45, 46, 350, 47, 48, 49, - 0, 0, 50, 351, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 51, 52, 0, 0, 0, 0, 0, - 0, 0, 0, 57, 0, 0, 58, 336, 352, 0, - 60, 0, 18, 19, 337, 434, 0, 0, 338, 339, - 340, 341, 342, 343, 0, 0, 344, 345, 0, 0, - 0, 0, 0, 26, 0, 0, 29, 30, 346, 347, - 348, 349, 0, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 42, 43, 44, 45, 46, 350, - 47, 48, 49, 0, 0, 50, 351, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 51, 52, 0, 0, - 0, 0, 0, 0, 0, 0, 57, 0, 0, 58, - 336, 352, 0, 60, 0, 18, 19, 337, 471, 0, - 0, 338, 339, 340, 341, 342, 343, 0, 0, 344, - 345, 0, 0, 0, 0, 0, 26, 0, 0, 29, - 30, 346, 347, 348, 349, 0, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 46, 350, 47, 48, 49, 0, 0, 50, 351, - 0, 0, 0, 0, 18, 19, 20, 0, 0, 51, - 52, 0, 0, 0, 0, 0, 0, 0, 0, 57, - 0, 0, 58, 0, 352, 26, 60, 0, 29, 30, - 0, 0, 0, 0, 0, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, - 46, 0, 47, 48, 49, 0, 0, 50, 0, 20, - 0, 0, 0, 0, 0, 0, 0, 0, 51, 52, - 0, 0, 0, 0, 0, 0, 0, 0, 57, 0, - 0, 58, 116, 0, 59, 60, 0, 0, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, - 43, 44, 45, 46, 0, 0, 48, 49, 0, 0, - 50, 0, 239, 240, 241, 242, 243, 244, 245, 20, - 0, 454, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 246, 0, 0, 0, 0, 60, 0, - 0, 0, 116, 0, 0, 0, 0, 0, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, - 43, 44, 45, 46, 0, 0, 48, 49, 0, 0, - 20, 0, 0, 0, 0, 0, 0, 0, 0, 455, - 456, 0, 0, 0, 0, 0, 0, 457, 458, 459, - 460, 0, 0, 116, 0, 0, 20, 0, 60, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 42, 43, 44, 45, 46, 0, 0, 48, 49, 116, - 0, 50, 0, 0, 0, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, - 46, 0, 57, 48, 49, 0, 0, 0, 0, 60, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 60 -}; - -static const short int yycheck[] = -{ - 9, 3, 11, 12, 13, 14, 15, 16, 3, 29, - 30, 130, 17, 3, 3, 24, 25, 26, 3, 3, - 118, 192, 151, 407, 3, 3, 3, 3, 22, 3, - 3, 322, 229, 466, 22, 154, 22, 71, 58, 22, - 22, 22, 22, 71, 71, 50, 33, 34, 369, 136, - 22, 170, 24, 71, 41, 22, 51, 540, 494, 18, - 532, 437, 57, 102, 104, 184, 499, 550, 102, 541, - 513, 543, 33, 34, 113, 558, 103, 453, 118, 0, - 41, 553, 525, 117, 102, 44, 470, 523, 175, 117, - 104, 22, 23, 414, 527, 110, 116, 294, 104, 113, - 108, 109, 117, 111, 223, 276, 94, 105, 116, 110, - 82, 19, 118, 21, 98, 113, 500, 118, 112, 106, - 411, 102, 108, 221, 106, 108, 106, 94, 20, 21, - 22, 102, 516, 20, 21, 22, 305, 306, 307, 310, - 311, 239, 240, 241, 242, 243, 19, 152, 246, 103, - 104, 146, 250, 162, 41, 23, 151, 44, 45, 112, - 102, 114, 23, 183, 51, 52, 53, 54, 55, 56, - 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, - 23, 68, 69, 70, 103, 104, 73, 103, 104, 52, - 53, 54, 108, 109, 57, 111, 315, 84, 85, 23, - 116, 22, 222, 103, 104, 103, 104, 94, 347, 348, - 97, 22, 54, 100, 101, 22, 57, 22, 109, 106, - 111, 112, 113, 114, 115, 22, 22, 229, 113, 117, - 23, 71, 54, 105, 229, 105, 22, 102, 216, 229, - 229, 105, 109, 22, 229, 229, 417, 82, 22, 72, - 229, 229, 229, 229, 103, 229, 229, 109, 105, 254, - 119, 107, 110, 22, 22, 103, 45, 121, 107, 278, - 279, 102, 51, 52, 53, 54, 55, 56, 57, 58, - 59, 60, 61, 62, 63, 64, 65, 66, 22, 105, - 69, 70, 294, 110, 73, 290, 110, 110, 110, 294, - 110, 291, 280, 102, 294, 294, 291, 110, 110, 294, - 294, 295, 441, 333, 323, 294, 294, 294, 294, 438, - 294, 294, 101, 110, 105, 110, 110, 336, 103, 338, - 339, 340, 341, 342, 343, 344, 345, 102, 104, 334, - 110, 319, 102, 105, 8, 443, 444, 103, 108, 109, - 110, 111, 112, 113, 114, 115, 116, 117, 118, 110, - 120, 110, 122, 123, 22, 104, 537, 105, 103, 44, - 73, 542, 41, 492, 369, 9, 103, 107, 497, 107, - 102, 110, 50, 403, 116, 116, 119, 106, 102, 107, - 103, 103, 98, 95, 384, 514, 515, 10, 403, 384, - 409, 22, 119, 119, 119, 22, 107, 107, 102, 102, - 106, 110, 103, 102, 104, 82, 102, 536, 103, 414, - 107, 102, 120, 107, 107, 107, 32, 107, 120, 431, - 102, 107, 25, 107, 1, 280, 431, 432, 103, 257, - 103, 231, 22, 121, 121, 234, 441, 384, 3, 333, - 173, 334, 314, 150, 237, 464, -1, -1, 433, 468, - -1, -1, 432, -1, -1, 45, -1, -1, -1, -1, - 490, 51, 52, 53, 54, 55, 56, 57, 58, 59, - 60, 61, 62, 63, 64, 65, 66, 67, -1, 69, - 70, -1, -1, 73, -1, -1, -1, -1, -1, 519, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 3, - 4, 5, 6, 7, 94, -1, -1, 11, 12, 13, - 14, 101, 16, 17, 18, 520, 20, 21, 22, 538, - -1, -1, -1, -1, -1, -1, -1, -1, 547, -1, - -1, -1, 36, 37, 38, 39, 40, 41, 42, 43, - 44, 45, -1, -1, -1, -1, -1, 51, 52, 53, - 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, - 64, 65, 66, -1, 68, 69, 70, -1, -1, 73, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 84, 85, 86, 87, 88, 89, -1, -1, -1, -1, - 94, -1, -1, 97, 15, -1, 100, 101, -1, 20, - 21, 22, -1, -1, -1, 26, 27, 28, 29, 30, - 31, -1, -1, 34, 35, -1, -1, -1, -1, -1, - 41, -1, -1, 44, 45, 46, 47, 48, 49, -1, - 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, - 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, - -1, -1, 73, 74, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 84, 85, -1, -1, -1, -1, -1, - -1, -1, -1, 94, -1, -1, 97, 15, 99, -1, - 101, -1, 20, 21, 22, 106, -1, -1, 26, 27, - 28, 29, 30, 31, -1, -1, 34, 35, -1, -1, - -1, -1, -1, 41, -1, -1, 44, 45, 46, 47, - 48, 49, -1, 51, 52, 53, 54, 55, 56, 57, - 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, - 68, 69, 70, -1, -1, 73, 74, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 84, 85, -1, -1, - -1, -1, -1, -1, -1, -1, 94, -1, -1, 97, - 15, 99, -1, 101, -1, 20, 21, 22, 106, -1, - -1, 26, 27, 28, 29, 30, 31, -1, -1, 34, - 35, -1, -1, -1, -1, -1, 41, -1, -1, 44, - 45, 46, 47, 48, 49, -1, 51, 52, 53, 54, - 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, - 65, 66, 67, 68, 69, 70, -1, -1, 73, 74, - -1, -1, -1, -1, 20, 21, 22, -1, -1, 84, - 85, -1, -1, -1, -1, -1, -1, -1, -1, 94, - -1, -1, 97, -1, 99, 41, 101, -1, 44, 45, - -1, -1, -1, -1, -1, 51, 52, 53, 54, 55, - 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, - 66, -1, 68, 69, 70, -1, -1, 73, -1, 22, - -1, -1, -1, -1, -1, -1, -1, -1, 84, 85, - -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, - -1, 97, 45, -1, 100, 101, -1, -1, 51, 52, - 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, - 63, 64, 65, 66, -1, -1, 69, 70, -1, -1, - 73, -1, 75, 76, 77, 78, 79, 80, 81, 22, - -1, 24, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 96, -1, -1, -1, -1, 101, -1, - -1, -1, 45, -1, -1, -1, -1, -1, 51, 52, - 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, - 63, 64, 65, 66, -1, -1, 69, 70, -1, -1, - 22, -1, -1, -1, -1, -1, -1, -1, -1, 82, - 83, -1, -1, -1, -1, -1, -1, 90, 91, 92, - 93, -1, -1, 45, -1, -1, 22, -1, 101, 51, - 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, - 62, 63, 64, 65, 66, -1, -1, 69, 70, 45, - -1, 73, -1, -1, -1, 51, 52, 53, 54, 55, - 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, - 66, -1, 94, 69, 70, -1, -1, -1, -1, 101, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 101 -}; - -/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing - symbol of state STATE-NUM. */ -static const unsigned short int yystos[] = -{ - 0, 125, 126, 127, 0, 126, 3, 4, 5, 6, - 7, 11, 12, 13, 14, 16, 17, 18, 20, 21, - 22, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 51, 52, 53, 54, 55, 56, 57, 58, 59, - 60, 61, 62, 63, 64, 65, 66, 68, 69, 70, - 73, 84, 85, 86, 87, 88, 89, 94, 97, 100, - 101, 128, 129, 130, 132, 133, 136, 138, 143, 146, - 150, 151, 155, 158, 159, 160, 161, 164, 165, 166, - 170, 171, 172, 173, 181, 183, 184, 185, 186, 187, - 188, 189, 192, 206, 207, 210, 211, 213, 214, 215, - 231, 249, 250, 254, 102, 19, 190, 191, 190, 23, - 190, 190, 190, 190, 190, 190, 45, 254, 102, 23, - 23, 23, 190, 190, 190, 206, 22, 206, 54, 22, - 195, 57, 52, 53, 54, 57, 254, 250, 22, 152, - 147, 22, 113, 235, 250, 206, 117, 22, 23, 162, - 71, 117, 18, 215, 22, 94, 253, 22, 131, 19, - 21, 23, 194, 137, 22, 108, 156, 157, 195, 216, - 212, 235, 54, 253, 22, 102, 144, 105, 105, 22, - 236, 237, 102, 102, 134, 250, 255, 82, 163, 207, - 255, 254, 102, 235, 102, 108, 109, 110, 111, 112, - 113, 114, 115, 116, 117, 118, 120, 122, 123, 232, - 112, 114, 252, 103, 104, 190, 105, 140, 22, 72, - 103, 109, 119, 217, 235, 193, 252, 107, 253, 105, - 22, 153, 154, 22, 148, 149, 110, 104, 113, 75, - 76, 77, 78, 79, 80, 81, 96, 241, 242, 243, - 250, 251, 206, 235, 104, 118, 118, 139, 241, 107, - 103, 110, 110, 110, 110, 110, 110, 110, 110, 110, - 117, 110, 118, 121, 110, 110, 102, 22, 33, 34, - 141, 142, 173, 22, 108, 195, 206, 218, 219, 235, - 105, 105, 22, 129, 145, 214, 106, 154, 106, 149, - 22, 24, 82, 238, 237, 195, 195, 195, 195, 195, - 102, 102, 195, 103, 104, 195, 110, 201, 103, 105, - 250, 140, 103, 8, 167, 110, 110, 241, 190, 190, - 106, 142, 22, 104, 105, 220, 15, 22, 26, 27, - 28, 29, 30, 31, 34, 35, 46, 47, 48, 49, - 67, 74, 99, 133, 143, 155, 158, 173, 175, 176, - 177, 178, 179, 180, 182, 192, 210, 211, 215, 221, - 222, 224, 225, 227, 230, 231, 244, 246, 247, 249, - 22, 155, 158, 196, 197, 198, 103, 106, 129, 201, - 201, 201, 241, 241, 73, 233, 243, 235, 108, 109, - 111, 116, 202, 204, 205, 173, 174, 233, 190, 9, - 168, 103, 107, 219, 221, 107, 190, 102, 190, 190, - 190, 190, 190, 190, 190, 190, 50, 223, 223, 223, - 119, 248, 245, 226, 106, 222, 116, 110, 200, 106, - 198, 102, 107, 103, 103, 95, 256, 109, 111, 112, - 113, 114, 115, 203, 24, 82, 83, 90, 91, 92, - 93, 206, 208, 254, 98, 135, 256, 190, 10, 169, - 233, 106, 241, 119, 119, 119, 231, 250, 67, 246, - 22, 227, 107, 22, 205, 235, 107, 255, 195, 195, - 102, 110, 234, 205, 102, 190, 106, 234, 190, 256, - 103, 22, 102, 104, 199, 103, 206, 257, 82, 235, - 202, 209, 107, 235, 234, 256, 103, 107, 103, 104, - 120, 229, 103, 104, 229, 235, 235, 256, 206, 250, - 107, 202, 107, 229, 120, 228, 234, 102, 32, 239, - 239, 107, 102, 107, 235, 241, 190, 25, 240, 240, - 239, 241, 239, 107, 103, 190, 240, 103, 239, 121, - 121, 240 -}; - -#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) -# define YYSIZE_T __SIZE_TYPE__ -#endif -#if ! defined (YYSIZE_T) && defined (size_t) -# define YYSIZE_T size_t -#endif -#if ! defined (YYSIZE_T) -# if defined (__STDC__) || defined (__cplusplus) -# include /* INFRINGES ON USER NAME SPACE */ -# define YYSIZE_T size_t -# endif -#endif -#if ! defined (YYSIZE_T) -# define YYSIZE_T unsigned int -#endif - -#define yyerrok (yyerrstatus = 0) -#define yyclearin (yychar = YYEMPTY) -#define YYEMPTY (-2) -#define YYEOF 0 - -#define YYACCEPT goto yyacceptlab -#define YYABORT goto yyabortlab -#define YYERROR goto yyerrorlab - - -/* Like YYERROR except do call yyerror. This remains here temporarily - to ease the transition to the new meaning of YYERROR, for GCC. - Once GCC version 2 has supplanted version 1, this can go. */ - -#define YYFAIL goto yyerrlab - -#define YYRECOVERING() (!!yyerrstatus) - -#define YYBACKUP(Token, Value) \ -do \ - if (yychar == YYEMPTY && yylen == 1) \ - { \ - yychar = (Token); \ - yylval = (Value); \ - yytoken = YYTRANSLATE (yychar); \ - YYPOPSTACK; \ - goto yybackup; \ - } \ - else \ - { \ - yyerror ("syntax error: cannot back up");\ - YYERROR; \ - } \ -while (0) - -#define YYTERROR 1 -#define YYERRCODE 256 - -/* YYLLOC_DEFAULT -- Compute the default location (before the actions - are run). */ - -#ifndef YYLLOC_DEFAULT -# define YYLLOC_DEFAULT(Current, Rhs, N) \ - ((Current).first_line = (Rhs)[1].first_line, \ - (Current).first_column = (Rhs)[1].first_column, \ - (Current).last_line = (Rhs)[N].last_line, \ - (Current).last_column = (Rhs)[N].last_column) -#endif - -/* YYLEX -- calling `yylex' with the right arguments. */ - -#ifdef YYLEX_PARAM -# define YYLEX yylex (YYLEX_PARAM) -#else -# define YYLEX yylex () -#endif - -/* Enable debugging if requested. */ -#if YYDEBUG - -# ifndef YYFPRINTF -# include /* INFRINGES ON USER NAME SPACE */ -# define YYFPRINTF fprintf -# endif - -# define YYDPRINTF(Args) \ -do { \ - if (yydebug) \ - YYFPRINTF Args; \ -} while (0) - -# define YYDSYMPRINT(Args) \ -do { \ - if (yydebug) \ - yysymprint Args; \ -} while (0) - -# define YYDSYMPRINTF(Title, Token, Value, Location) \ -do { \ - if (yydebug) \ - { \ - YYFPRINTF (stderr, "%s ", Title); \ - yysymprint (stderr, \ - Token, Value); \ - YYFPRINTF (stderr, "\n"); \ - } \ -} while (0) - -/*------------------------------------------------------------------. -| yy_stack_print -- Print the state stack from its BOTTOM up to its | -| TOP (included). | -`------------------------------------------------------------------*/ - -#if defined (__STDC__) || defined (__cplusplus) -static void -yy_stack_print (short int *bottom, short int *top) -#else -static void -yy_stack_print (bottom, top) - short int *bottom; - short int *top; -#endif -{ - YYFPRINTF (stderr, "Stack now"); - for (/* Nothing. */; bottom <= top; ++bottom) - YYFPRINTF (stderr, " %d", *bottom); - YYFPRINTF (stderr, "\n"); -} - -# define YY_STACK_PRINT(Bottom, Top) \ -do { \ - if (yydebug) \ - yy_stack_print ((Bottom), (Top)); \ -} while (0) - - -/*------------------------------------------------. -| Report that the YYRULE is going to be reduced. | -`------------------------------------------------*/ - -#if defined (__STDC__) || defined (__cplusplus) -static void -yy_reduce_print (int yyrule) -#else -static void -yy_reduce_print (yyrule) - int yyrule; -#endif -{ - int yyi; - unsigned int yylno = yyrline[yyrule]; - YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ", - yyrule - 1, yylno); - /* Print the symbols being reduced, and their result. */ - for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++) - YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]); - YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]); -} - -# define YY_REDUCE_PRINT(Rule) \ -do { \ - if (yydebug) \ - yy_reduce_print (Rule); \ -} while (0) - -/* Nonzero means print parse trace. It is left uninitialized so that - multiple parsers can coexist. */ -int yydebug; -#else /* !YYDEBUG */ -# define YYDPRINTF(Args) -# define YYDSYMPRINT(Args) -# define YYDSYMPRINTF(Title, Token, Value, Location) -# define YY_STACK_PRINT(Bottom, Top) -# define YY_REDUCE_PRINT(Rule) -#endif /* !YYDEBUG */ - - -/* YYINITDEPTH -- initial size of the parser's stacks. */ -#ifndef YYINITDEPTH -# define YYINITDEPTH 200 -#endif - -/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only - if the built-in stack extension method is used). - - Do not make this value too large; the results are undefined if - SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) - evaluated with infinite-precision integer arithmetic. */ - -#if defined (YYMAXDEPTH) && YYMAXDEPTH == 0 -# undef YYMAXDEPTH -#endif - -#ifndef YYMAXDEPTH -# define YYMAXDEPTH 10000 -#endif - - - -#if YYERROR_VERBOSE - -# ifndef yystrlen -# if defined (__GLIBC__) && defined (_STRING_H) -# define yystrlen strlen -# else -/* Return the length of YYSTR. */ -static YYSIZE_T -# if defined (__STDC__) || defined (__cplusplus) -yystrlen (const char *yystr) -# else -yystrlen (yystr) - const char *yystr; -# endif -{ - register const char *yys = yystr; - - while (*yys++ != '\0') - continue; - - return yys - yystr - 1; -} -# endif -# endif - -# ifndef yystpcpy -# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE) -# define yystpcpy stpcpy -# else -/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in - YYDEST. */ -static char * -# if defined (__STDC__) || defined (__cplusplus) -yystpcpy (char *yydest, const char *yysrc) -# else -yystpcpy (yydest, yysrc) - char *yydest; - const char *yysrc; -# endif -{ - register char *yyd = yydest; - register const char *yys = yysrc; - - while ((*yyd++ = *yys++) != '\0') - continue; - - return yyd - 1; -} -# endif -# endif - -#endif /* !YYERROR_VERBOSE */ - - - -#if YYDEBUG -/*--------------------------------. -| Print this symbol on YYOUTPUT. | -`--------------------------------*/ - -#if defined (__STDC__) || defined (__cplusplus) -static void -yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep) -#else -static void -yysymprint (yyoutput, yytype, yyvaluep) - FILE *yyoutput; - int yytype; - YYSTYPE *yyvaluep; -#endif -{ - /* Pacify ``unused variable'' warnings. */ - (void) yyvaluep; - - if (yytype < YYNTOKENS) - { - YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); -# ifdef YYPRINT - YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); -# endif - } - else - YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); - - switch (yytype) - { - default: - break; - } - YYFPRINTF (yyoutput, ")"); -} - -#endif /* ! YYDEBUG */ -/*-----------------------------------------------. -| Release the memory associated to this symbol. | -`-----------------------------------------------*/ - -#if defined (__STDC__) || defined (__cplusplus) -static void -yydestruct (int yytype, YYSTYPE *yyvaluep) -#else -static void -yydestruct (yytype, yyvaluep) - int yytype; - YYSTYPE *yyvaluep; -#endif -{ - /* Pacify ``unused variable'' warnings. */ - (void) yyvaluep; - - switch (yytype) - { - - default: - break; - } -} - - -/* Prevent warnings from -Wmissing-prototypes. */ - -#ifdef YYPARSE_PARAM -# if defined (__STDC__) || defined (__cplusplus) -int yyparse (void *YYPARSE_PARAM); -# else -int yyparse (); -# endif -#else /* ! YYPARSE_PARAM */ -#if defined (__STDC__) || defined (__cplusplus) -int yyparse (void); -#else -int yyparse (); -#endif -#endif /* ! YYPARSE_PARAM */ - - - -/* The lookahead symbol. */ -int yychar; - -/* The semantic value of the lookahead symbol. */ -YYSTYPE yylval; - -/* Number of syntax errors so far. */ -int yynerrs; - - - -/*----------. -| yyparse. | -`----------*/ - -#ifdef YYPARSE_PARAM -# if defined (__STDC__) || defined (__cplusplus) -int yyparse (void *YYPARSE_PARAM) -# else -int yyparse (YYPARSE_PARAM) - void *YYPARSE_PARAM; -# endif -#else /* ! YYPARSE_PARAM */ -#if defined (__STDC__) || defined (__cplusplus) -int -yyparse (void) -#else -int -yyparse () - -#endif -#endif -{ - - register int yystate; - register int yyn; - int yyresult; - /* Number of tokens to shift before error messages enabled. */ - int yyerrstatus; - /* Lookahead token as an internal (translated) token number. */ - int yytoken = 0; - - /* Three stacks and their tools: - `yyss': related to states, - `yyvs': related to semantic values, - `yyls': related to locations. - - Refer to the stacks thru separate pointers, to allow yyoverflow - to reallocate them elsewhere. */ - - /* The state stack. */ - short int yyssa[YYINITDEPTH]; - short int *yyss = yyssa; - register short int *yyssp; - - /* The semantic value stack. */ - YYSTYPE yyvsa[YYINITDEPTH]; - YYSTYPE *yyvs = yyvsa; - register YYSTYPE *yyvsp; - - - -#define YYPOPSTACK (yyvsp--, yyssp--) - - YYSIZE_T yystacksize = YYINITDEPTH; - - /* The variables used to return semantic value and location from the - action routines. */ - YYSTYPE yyval; - - - /* When reducing, the number of symbols on the RHS of the reduced - rule. */ - int yylen; - - YYDPRINTF ((stderr, "Starting parse\n")); - - yystate = 0; - yyerrstatus = 0; - yynerrs = 0; - yychar = YYEMPTY; /* Cause a token to be read. */ - - /* Initialize stack pointers. - Waste one element of value and location stack - so that they stay on the same level as the state stack. - The wasted elements are never initialized. */ - - yyssp = yyss; - yyvsp = yyvs; - - - goto yysetstate; - -/*------------------------------------------------------------. -| yynewstate -- Push a new state, which is found in yystate. | -`------------------------------------------------------------*/ - yynewstate: - /* In all cases, when you get here, the value and location stacks - have just been pushed. so pushing a state here evens the stacks. - */ - yyssp++; - - yysetstate: - *yyssp = yystate; - - if (yyss + yystacksize - 1 <= yyssp) - { - /* Get the current used size of the three stacks, in elements. */ - YYSIZE_T yysize = yyssp - yyss + 1; - -#ifdef yyoverflow - { - /* Give user a chance to reallocate the stack. Use copies of - these so that the &'s don't force the real ones into - memory. */ - YYSTYPE *yyvs1 = yyvs; - short int *yyss1 = yyss; - - - /* Each stack pointer address is followed by the size of the - data in use in that stack, in bytes. This used to be a - conditional around just the two extra args, but that might - be undefined if yyoverflow is a macro. */ - yyoverflow ("parser stack overflow", - &yyss1, yysize * sizeof (*yyssp), - &yyvs1, yysize * sizeof (*yyvsp), - - &yystacksize); - - yyss = yyss1; - yyvs = yyvs1; - } -#else /* no yyoverflow */ -# ifndef YYSTACK_RELOCATE - goto yyoverflowlab; -# else - /* Extend the stack our own way. */ - if (YYMAXDEPTH <= yystacksize) - goto yyoverflowlab; - yystacksize *= 2; - if (YYMAXDEPTH < yystacksize) - yystacksize = YYMAXDEPTH; - - { - short int *yyss1 = yyss; - union yyalloc *yyptr = - (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); - if (! yyptr) - goto yyoverflowlab; - YYSTACK_RELOCATE (yyss); - YYSTACK_RELOCATE (yyvs); - -# undef YYSTACK_RELOCATE - if (yyss1 != yyssa) - YYSTACK_FREE (yyss1); - } -# endif -#endif /* no yyoverflow */ - - yyssp = yyss + yysize - 1; - yyvsp = yyvs + yysize - 1; - - - YYDPRINTF ((stderr, "Stack size increased to %lu\n", - (unsigned long int) yystacksize)); - - if (yyss + yystacksize - 1 <= yyssp) - YYABORT; - } - - YYDPRINTF ((stderr, "Entering state %d\n", yystate)); - - goto yybackup; - -/*-----------. -| yybackup. | -`-----------*/ -yybackup: - -/* Do appropriate processing given the current state. */ -/* Read a lookahead token if we need one and don't already have one. */ -/* yyresume: */ - - /* First try to decide what to do without reference to lookahead token. */ - - yyn = yypact[yystate]; - if (yyn == YYPACT_NINF) - goto yydefault; - - /* Not known => get a lookahead token if don't already have one. */ - - /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ - if (yychar == YYEMPTY) - { - YYDPRINTF ((stderr, "Reading a token: ")); - yychar = YYLEX; - } - - if (yychar <= YYEOF) - { - yychar = yytoken = YYEOF; - YYDPRINTF ((stderr, "Now at end of input.\n")); - } - else - { - yytoken = YYTRANSLATE (yychar); - YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc); - } - - /* If the proper action on seeing token YYTOKEN is to reduce or to - detect an error, take that action. */ - yyn += yytoken; - if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) - goto yydefault; - yyn = yytable[yyn]; - if (yyn <= 0) - { - if (yyn == 0 || yyn == YYTABLE_NINF) - goto yyerrlab; - yyn = -yyn; - goto yyreduce; - } - - if (yyn == YYFINAL) - YYACCEPT; - - /* Shift the lookahead token. */ - YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken])); - - /* Discard the token being shifted unless it is eof. */ - if (yychar != YYEOF) - yychar = YYEMPTY; - - *++yyvsp = yylval; - - - /* Count tokens shifted since error; after three, turn off error - status. */ - if (yyerrstatus) - yyerrstatus--; - - yystate = yyn; - goto yynewstate; - - -/*-----------------------------------------------------------. -| yydefault -- do the default action for the current state. | -`-----------------------------------------------------------*/ -yydefault: - yyn = yydefact[yystate]; - if (yyn == 0) - goto yyerrlab; - goto yyreduce; - - -/*-----------------------------. -| yyreduce -- Do a reduction. | -`-----------------------------*/ -yyreduce: - /* yyn is the number of a rule to reduce with. */ - yylen = yyr2[yyn]; - - /* If YYLEN is nonzero, implement the default value of the action: - `$$ = $1'. - - Otherwise, the following line sets YYVAL to garbage. - This behavior is undocumented and Bison - users should not rely upon it. Assigning to YYVAL - unconditionally makes the parser a bit smaller, and it avoids a - GCC warning that YYVAL may be used uninitialized. */ - yyval = yyvsp[1-yylen]; - - - YY_REDUCE_PRINT (yyn); - switch (yyn) - { - case 4: -#line 293 "parser.y" - { - /* - * We don't do these in parserEOF() because the parser - * is reading ahead and that would be too early. - */ - - if (previousFile != NULL) - { - handleEOF(); - - if (newContext.prevmod != NULL) - handleEOM(); - - free(previousFile); - previousFile = NULL; - } - } - break; - - case 17: -#line 323 "parser.y" - { - if (notSkipping()) - appendCodeBlock(¤tSpec->exphdrcode, yyvsp[0].codeb); - } - break; - - case 18: -#line 327 "parser.y" - { - if (notSkipping() && inMainModule()) - appendCodeBlock(¤tSpec -> hdrcode,yyvsp[0].codeb); - } - break; - - case 19: -#line 331 "parser.y" - { - if (notSkipping() && inMainModule()) - appendCodeBlock(¤tSpec -> cppcode,yyvsp[0].codeb); - } - break; - - case 41: -#line 358 "parser.y" - { - if (notSkipping()) - { - classDef *scope = currentScope(); - - if (scope == NULL) - yyerror("%TypeHeaderCode can only be used in a namespace, class or mapped type"); - - appendCodeBlock(&scope->hdrcode, yyvsp[0].codeb); - } - } - break; - - case 43: -#line 374 "parser.y" - { - appendString(¤tSpec->options, yyvsp[0].text); - } - break; - - case 44: -#line 377 "parser.y" - { - appendString(¤tSpec->options, yyvsp[0].text); - } - break; - - case 45: -#line 382 "parser.y" - { - if (notSkipping()) - { - yywarning("%SIPNoEmitters is deprecated, please use %SIPOptions instead"); - appendString(¤tSpec->options, "QtNoEmitters"); - } - } - break; - - case 46: -#line 391 "parser.y" - { - if (notSkipping()) - { - exceptionDef *xd; - char *pyname; - - if (currentSpec->genc) - yyerror("%Exception not allowed in a C module"); - - pyname = getPythonName(&yyvsp[-5].optflags, scopedNameTail(yyvsp[-7].scpvalp)); - - checkAttributes(currentSpec, NULL, pyname, FALSE); - - xd = findException(currentSpec, yyvsp[-7].scpvalp, TRUE); - - if (xd->cd != NULL) - yyerror("%Exception name has already been seen as a class name - it must be defined before being used"); - - if (xd->iff->module != NULL) - yyerror("The %Exception has already been defined"); - - /* Complete the definition. */ - - xd->iff->module = currentModule; - xd->pyname = pyname; - xd->bibase = yyvsp[-6].exceptionbase.bibase; - xd->base = yyvsp[-6].exceptionbase.base; - xd->hdrcode = yyvsp[-3].codeb; - xd->raisecode = yyvsp[-2].codeb; - - if (xd->bibase != NULL || xd->base != NULL) - xd->exceptionnr = currentModule->nrexceptions++; - - if (inMainModule() && xd->base != NULL && xd->base->iff->module != currentModule) - addToUsedList(¤tSpec->used, xd->base->iff); - } - } - break; - - case 47: -#line 430 "parser.y" - { - yyval.exceptionbase.bibase = NULL; - yyval.exceptionbase.base = NULL; - } - break; - - case 48: -#line 434 "parser.y" - { - exceptionDef *xd; - - yyval.exceptionbase.bibase = NULL; - yyval.exceptionbase.base = NULL; - - /* See if it is a defined exception. */ - for (xd = currentSpec->exceptions; xd != NULL; xd = xd->next) - if (sameScopedName(xd->iff->fqcname, yyvsp[-1].scpvalp)) - { - yyval.exceptionbase.base = xd; - break; - } - - if (xd == NULL && yyvsp[-1].scpvalp->next == NULL && strncmp(yyvsp[-1].scpvalp->name, "SIP_", 4) == 0) - { - /* See if it is a builtin exception. */ - - static char *builtins[] = { - "Exception", - "StopIteration", - "StandardError", - "ArithmeticError", - "LookupError", - "AssertionError", - "AttributeError", - "EOFError", - "FloatingPointError", - "EnvironmentError", - "IOError", - "OSError", - "ImportError", - "IndexError", - "KeyError", - "KeyboardInterrupt", - "MemoryError", - "NameError", - "OverflowError", - "RuntimeError", - "NotImplementedError", - "SyntaxError", - "IndentationError", - "TabError", - "ReferenceError", - "SystemError", - "SystemExit", - "TypeError", - "UnboundLocalError", - "UnicodeError", - "UnicodeEncodeError", - "UnicodeDecodeError", - "UnicodeTranslateError", - "ValueError", - "ZeroDivisionError", - "WindowsError", - "VMSError", - NULL - }; - - char **cp; - - for (cp = builtins; *cp != NULL; ++cp) - if (strcmp(yyvsp[-1].scpvalp->name + 4, *cp) == 0) - { - yyval.exceptionbase.bibase = *cp; - break; - } - } - - if (yyval.exceptionbase.bibase == NULL && yyval.exceptionbase.base == NULL) - yyerror("Unknown exception base type"); - } - break; - - case 49: -#line 508 "parser.y" - { - yyval.codeb = yyvsp[0].codeb; - } - break; - - case 50: -#line 513 "parser.y" - { - if (notSkipping()) - currentMappedType = newMappedType(currentSpec,&yyvsp[0].memArg); - } - break; - - case 52: -#line 519 "parser.y" - { - int a; - - if (currentSpec->genc) - yyerror("%MappedType templates not allowed in a C module"); - - /* Check the template arguments are all just simple names. */ - for (a = 0; a < yyvsp[-2].signature.nrArgs; ++a) - if (yyvsp[-2].signature.args[a].atype != defined_type || yyvsp[-2].signature.args[a].u.snd->next != NULL) - yyerror("%MappedType template arguments must be simple names"); - - if (yyvsp[0].memArg.atype != template_type) - yyerror("%MappedType template must map a template type"); - - if (notSkipping()) - { - mappedTypeTmplDef *mtt; - - /* Check a template hasn't already been provided. */ - for (mtt = currentSpec->mappedtypetemplates; mtt != NULL; mtt = mtt->next) - if (sameScopedName(mtt->mt->type.u.td->fqname, yyvsp[0].memArg.u.td->fqname) && sameTemplateSignature(&mtt->mt->type.u.td->types, &yyvsp[0].memArg.u.td->types, TRUE)) - yyerror("%MappedType template for this type has already been defined"); - - yyvsp[0].memArg.nrderefs = 0; - yyvsp[0].memArg.argflags = 0; - - mtt = sipMalloc(sizeof (mappedTypeTmplDef)); - - mtt->sig = yyvsp[-2].signature; - mtt->mt = allocMappedType(&yyvsp[0].memArg); - mtt->next = currentSpec->mappedtypetemplates; - - currentSpec->mappedtypetemplates = mtt; - - currentMappedType = mtt->mt; - } - } - break; - - case 54: -#line 558 "parser.y" - { - if (notSkipping()) - { - if (currentMappedType->convfromcode == NULL) - yyerror("%MappedType must have a %ConvertFromTypeCode directive"); - - if (currentMappedType->convtocode == NULL) - yyerror("%MappedType must have a %ConvertToTypeCode directive"); - - currentMappedType = NULL; - } - } - break; - - case 57: -#line 576 "parser.y" - { - if (notSkipping()) - appendCodeBlock(¤tMappedType -> hdrcode,yyvsp[0].codeb); - } - break; - - case 58: -#line 580 "parser.y" - { - if (notSkipping()) - { - if (currentMappedType -> convfromcode != NULL) - yyerror("%MappedType has more than one %ConvertFromTypeCode directive"); - - currentMappedType -> convfromcode = yyvsp[0].codeb; - } - } - break; - - case 59: -#line 589 "parser.y" - { - if (notSkipping()) - { - if (currentMappedType -> convtocode != NULL) - yyerror("%MappedType has more than one %ConvertToTypeCode directive"); - - currentMappedType -> convtocode = yyvsp[0].codeb; - } - } - break; - - case 60: -#line 600 "parser.y" - { - if (currentSpec -> genc) - yyerror("namespace definition not allowed in a C module"); - - if (notSkipping()) - { - classDef *ns; - - ns = newClass(currentSpec,namespace_iface,text2scopedName(yyvsp[0].text)); - - pushScope(ns); - - sectionFlags = 0; - } - } - break; - - case 61: -#line 614 "parser.y" - { - if (inMainModule()) - { - classDef *ns = currentScope(); - - if (!isUsedName(ns->iff->name)) - { - varDef *vd; - - for (vd = currentSpec->vars; vd != NULL; vd = vd->next) - if (vd->ecd == ns) - { - setIsUsedName(ns->iff->name); - break; - } - } - } - - if (notSkipping()) - popScope(); - } - break; - - case 64: -#line 641 "parser.y" - { - qualDef *qd; - - for (qd = currentModule -> qualifiers; qd != NULL; qd = qd -> next) - if (qd -> qtype == platform_qualifier) - yyerror("%Platforms has already been defined for this module"); - } - break; - - case 65: -#line 648 "parser.y" - { - qualDef *qd; - int nrneeded; - - /* - * Check that exactly one platform in the set was - * requested. - */ - - nrneeded = 0; - - for (qd = currentModule -> qualifiers; qd != NULL; qd = qd -> next) - if (qd -> qtype == platform_qualifier && isNeeded(qd)) - ++nrneeded; - - if (nrneeded > 1) - yyerror("No more than one of these %Platforms must be specified with the -t flag"); - } - break; - - case 68: -#line 672 "parser.y" - { - newQualifier(currentModule,-1,-1,yyvsp[0].text,platform_qualifier); - } - break; - - case 69: -#line 677 "parser.y" - { - newQualifier(currentModule,-1,-1,yyvsp[0].text,feature_qualifier); - } - break; - - case 70: -#line 682 "parser.y" - { - currentTimelineOrder = 0; - } - break; - - case 71: -#line 685 "parser.y" - { - qualDef *qd; - int nrneeded; - - /* - * Check that exactly one time slot in the set was - * requested. - */ - - nrneeded = 0; - - for (qd = currentModule -> qualifiers; qd != NULL; qd = qd -> next) - if (qd -> qtype == time_qualifier && isNeeded(qd)) - ++nrneeded; - - if (nrneeded > 1) - yyerror("At most one of this %Timeline must be specified with the -t flag"); - - currentModule -> nrtimelines++; - } - break; - - case 74: -#line 711 "parser.y" - { - newQualifier(currentModule,currentModule -> nrtimelines,currentTimelineOrder++,yyvsp[0].text,time_qualifier); - } - break; - - case 75: -#line 716 "parser.y" - { - if (skipStackPtr >= MAX_NESTED_IF) - yyerror("Internal error: increase the value of MAX_NESTED_IF"); - - /* Nested %Ifs are implicit logical ands. */ - - if (skipStackPtr > 0) - yyvsp[-1].boolean = (yyvsp[-1].boolean && skipStack[skipStackPtr - 1]); - - skipStack[skipStackPtr++] = yyvsp[-1].boolean; - } - break; - - case 76: -#line 729 "parser.y" - { - yyval.boolean = platOrFeature(yyvsp[0].text,FALSE); - } - break; - - case 77: -#line 732 "parser.y" - { - yyval.boolean = platOrFeature(yyvsp[0].text,TRUE); - } - break; - - case 78: -#line 735 "parser.y" - { - yyval.boolean = (platOrFeature(yyvsp[0].text,FALSE) || yyvsp[-2].boolean); - } - break; - - case 79: -#line 738 "parser.y" - { - yyval.boolean = (platOrFeature(yyvsp[0].text,TRUE) || yyvsp[-3].boolean); - } - break; - - case 81: -#line 744 "parser.y" - { - yyval.boolean = timePeriod(yyvsp[-2].text,yyvsp[0].text); - } - break; - - case 82: -#line 749 "parser.y" - { - if (skipStackPtr-- <= 0) - yyerror("Too many %End directives"); - } - break; - - case 83: -#line 755 "parser.y" - { - optFlag *of; - - if (yyvsp[0].optflags.nrFlags == 0) - yyerror("%License details not specified"); - - if ((of = findOptFlag(&yyvsp[0].optflags,"Type",string_flag)) == NULL) - yyerror("%License type not specified"); - - currentModule -> license = sipMalloc(sizeof (licenseDef)); - - currentModule -> license -> type = of -> fvalue.sval; - - currentModule -> license -> licensee = - ((of = findOptFlag(&yyvsp[0].optflags,"Licensee",string_flag)) != NULL) - ? of -> fvalue.sval : NULL; - - currentModule -> license -> timestamp = - ((of = findOptFlag(&yyvsp[0].optflags,"Timestamp",string_flag)) != NULL) - ? of -> fvalue.sval : NULL; - - currentModule -> license -> sig = - ((of = findOptFlag(&yyvsp[0].optflags,"Signature",string_flag)) != NULL) - ? of -> fvalue.sval : NULL; - } - break; - - case 84: -#line 782 "parser.y" - { - /* Check the module hasn't already been defined. */ - - moduleDef *mod; - - for (mod = currentSpec -> modules; mod != NULL; mod = mod -> next) - if (mod->fullname != NULL && strcmp(mod->fullname, yyvsp[-1].text) == 0) - yyerror("Module is already defined"); - - currentModule->fullname = yyvsp[-1].text; - - if ((currentModule->name = strrchr(yyvsp[-1].text, '.')) != NULL) - currentModule->name++; - else - currentModule->name = yyvsp[-1].text; - - currentModule -> version = yyvsp[0].number; - - if (currentSpec -> genc < 0) - currentSpec -> genc = yyvsp[-2].boolean; - else if (currentSpec -> genc != yyvsp[-2].boolean) - yyerror("Cannot mix C and C++ modules"); - } - break; - - case 85: -#line 807 "parser.y" - { - yyval.boolean = FALSE; - } - break; - - case 86: -#line 810 "parser.y" - { - yyval.boolean = TRUE; - } - break; - - case 88: -#line 816 "parser.y" - { - /* - * The grammar design is a bit broken and this is the - * easiest way to allow periods in module names. - */ - - char *cp; - - for (cp = yyvsp[0].text; *cp != '\0'; ++cp) - if (*cp != '.' && *cp != '_' && !isalnum(*cp)) - yyerror("Invalid character in module name"); - - yyval.text = yyvsp[0].text; - } - break; - - case 89: -#line 832 "parser.y" - { - yyval.number = -1; - } - break; - - case 91: -#line 838 "parser.y" - { - parseFile(NULL,yyvsp[0].text,NULL,FALSE); - } - break; - - case 92: -#line 843 "parser.y" - { - parseFile(NULL,yyvsp[0].text,NULL,TRUE); - } - break; - - case 93: -#line 848 "parser.y" - { - newImport(yyvsp[0].text); - } - break; - - case 94: -#line 853 "parser.y" - { - yyval.codeb = NULL; - } - break; - - case 95: -#line 856 "parser.y" - { - yyval.codeb = yyvsp[0].codeb; - } - break; - - case 96: -#line 861 "parser.y" - { - yyval.codeb = NULL; - } - break; - - case 97: -#line 864 "parser.y" - { - yyval.codeb = yyvsp[0].codeb; - } - break; - - case 98: -#line 869 "parser.y" - { - yyval.codeb = NULL; - } - break; - - case 99: -#line 872 "parser.y" - { - yyval.codeb = yyvsp[0].codeb; - } - break; - - case 100: -#line 877 "parser.y" - { - if (inMainModule()) - appendCodeBlock(¤tSpec -> copying,yyvsp[0].codeb); - } - break; - - case 101: -#line 883 "parser.y" - { - yyval.codeb = yyvsp[0].codeb; - } - break; - - case 102: -#line 888 "parser.y" - { - yyval.codeb = yyvsp[0].codeb; - } - break; - - case 103: -#line 893 "parser.y" - { - yyval.codeb = yyvsp[0].codeb; - } - break; - - case 104: -#line 898 "parser.y" - { - yyval.codeb = NULL; - } - break; - - case 106: -#line 904 "parser.y" - { - yyval.codeb = yyvsp[0].codeb; - } - break; - - case 107: -#line 909 "parser.y" - { - yyval.codeb = yyvsp[0].codeb; - } - break; - - case 108: -#line 914 "parser.y" - { - yyval.codeb = yyvsp[0].codeb; - } - break; - - case 109: -#line 919 "parser.y" - { - yyval.codeb = yyvsp[0].codeb; - } - break; - - case 110: -#line 924 "parser.y" - { - yyval.codeb = yyvsp[0].codeb; - } - break; - - case 111: -#line 929 "parser.y" - { - yyval.codeb = yyvsp[0].codeb; - } - break; - - case 112: -#line 934 "parser.y" - { - yyval.codeb = yyvsp[0].codeb; - } - break; - - case 113: -#line 939 "parser.y" - { - yyval.codeb = yyvsp[0].codeb; - } - break; - - case 114: -#line 944 "parser.y" - { - if (notSkipping() && inMainModule()) - appendCodeBlock(¤tSpec -> preinitcode,yyvsp[0].codeb); - } - break; - - case 115: -#line 950 "parser.y" - { - if (notSkipping() && inMainModule()) - appendCodeBlock(¤tSpec -> postinitcode,yyvsp[0].codeb); - } - break; - - case 116: -#line 956 "parser.y" - { - if (notSkipping() && inMainModule()) - appendCodeBlock(¤tSpec->unitcode, yyvsp[0].codeb); - } - break; - - case 117: -#line 962 "parser.y" - { - /* - * This is a no-op and is retained for compatibility - * until the last use of it (by SIP v3) can be removed - * from PyQt. - */ - } - break; - - case 118: -#line 971 "parser.y" - { - if (inMainModule()) - appendCodeBlock(¤tSpec -> docs,yyvsp[0].codeb); - } - break; - - case 119: -#line 977 "parser.y" - { - appendCodeBlock(¤tSpec -> docs,yyvsp[0].codeb); - } - break; - - case 120: -#line 982 "parser.y" - { - if (inMainModule()) - yywarning("%Makefile is ignored, please use the -b flag instead"); - } - break; - - case 123: -#line 992 "parser.y" - { - yyval.codeb = yyvsp[-1].codeb; - - append(&yyval.codeb->frag, yyvsp[0].codeb->frag); - - free(yyvsp[0].codeb->frag); - free(yyvsp[0].codeb->filename); - free(yyvsp[0].codeb); - } - break; - - case 124: -#line 1003 "parser.y" - { - if (notSkipping()) - { - if (sectionFlags != 0 && (sectionFlags & ~(SECT_IS_PUBLIC | SECT_IS_PROT)) != 0) - yyerror("Class enums must be in the public or protected sections"); - - currentEnum = newEnum(currentSpec,currentModule,yyvsp[-1].text,&yyvsp[0].optflags,sectionFlags); - } - } - break; - - case 126: -#line 1014 "parser.y" - { - yyval.text = NULL; - } - break; - - case 127: -#line 1017 "parser.y" - { - yyval.text = yyvsp[0].text; - } - break; - - case 128: -#line 1022 "parser.y" - { - yyval.text = NULL; - } - break; - - case 129: -#line 1025 "parser.y" - { - yyval.text = yyvsp[0].text; - } - break; - - case 136: -#line 1040 "parser.y" - { - if (notSkipping()) - { - /* - * Note that we don't use the assigned value. - * This is a hangover from when enums where - * generated in Python. We can remove it when - * we have got around to updating all the .sip - * files. - */ - enumMemberDef *emd, **tail; - - emd = sipMalloc(sizeof (enumMemberDef)); - - emd -> pyname = cacheName(currentSpec, getPythonName(&yyvsp[-1].optflags, yyvsp[-3].text)); - emd -> cname = yyvsp[-3].text; - emd -> ed = currentEnum; - emd -> next = NULL; - - checkAttributes(currentSpec,emd -> ed -> ecd,emd -> pyname -> text,FALSE); - - /* Append to preserve the order. */ - for (tail = ¤tEnum->members; *tail != NULL; tail = &(*tail)->next) - ; - - *tail = emd; - - if (inMainModule()) - setIsUsedName(emd -> pyname); - } - } - break; - - case 141: -#line 1081 "parser.y" - { - yyval.valp = NULL; - } - break; - - case 142: -#line 1084 "parser.y" - { - yyval.valp = yyvsp[0].valp; - } - break; - - case 144: -#line 1090 "parser.y" - { - valueDef *vd; - - if (yyvsp[-2].valp -> vtype == string_value || yyvsp[0].valp -> vtype == string_value) - yyerror("Invalid binary operator for string"); - - /* Find the last value in the existing expression. */ - - for (vd = yyvsp[-2].valp; vd -> next != NULL; vd = vd -> next) - ; - - vd -> vbinop = yyvsp[-1].qchar; - vd -> next = yyvsp[0].valp; - - yyval.valp = yyvsp[-2].valp; - } - break; - - case 145: -#line 1108 "parser.y" - { - yyval.qchar = '-'; - } - break; - - case 146: -#line 1111 "parser.y" - { - yyval.qchar = '+'; - } - break; - - case 147: -#line 1114 "parser.y" - { - yyval.qchar = '*'; - } - break; - - case 148: -#line 1117 "parser.y" - { - yyval.qchar = '/'; - } - break; - - case 149: -#line 1120 "parser.y" - { - yyval.qchar = '&'; - } - break; - - case 150: -#line 1123 "parser.y" - { - yyval.qchar = '|'; - } - break; - - case 151: -#line 1128 "parser.y" - { - yyval.qchar = '\0'; - } - break; - - case 152: -#line 1131 "parser.y" - { - yyval.qchar = '!'; - } - break; - - case 153: -#line 1134 "parser.y" - { - yyval.qchar = '~'; - } - break; - - case 154: -#line 1137 "parser.y" - { - yyval.qchar = '-'; - } - break; - - case 155: -#line 1140 "parser.y" - { - yyval.qchar = '+'; - } - break; - - case 156: -#line 1145 "parser.y" - { - if (yyvsp[-1].qchar != '\0' && yyvsp[0].value.vtype == string_value) - yyerror("Invalid unary operator for string"); - - /* - * Convert the value to a simple expression on the - * heap. - */ - - yyval.valp = sipMalloc(sizeof (valueDef)); - - *yyval.valp = yyvsp[0].value; - yyval.valp -> vunop = yyvsp[-1].qchar; - yyval.valp -> vbinop = '\0'; - yyval.valp -> next = NULL; - } - break; - - case 158: -#line 1164 "parser.y" - { - if (currentSpec -> genc) - yyerror("Scoped names are not allowed in a C module"); - - appendScopedName(&yyvsp[-2].scpvalp,yyvsp[0].scpvalp); - } - break; - - case 159: -#line 1172 "parser.y" - { - yyval.scpvalp = text2scopePart(yyvsp[0].text); - } - break; - - case 160: -#line 1177 "parser.y" - { - /* - * We let the C++ compiler decide if the value is a - * valid one - no point in building a full C++ parser - * here. - */ - - yyval.value.vtype = scoped_value; - yyval.value.u.vscp = yyvsp[0].scpvalp; - } - break; - - case 161: -#line 1187 "parser.y" - { - fcallDef *fcd; - - fcd = sipMalloc(sizeof (fcallDef)); - *fcd = yyvsp[-1].fcall; - fcd -> type = yyvsp[-3].memArg; - - yyval.value.vtype = fcall_value; - yyval.value.u.fcd = fcd; - } - break; - - case 162: -#line 1197 "parser.y" - { - yyval.value.vtype = real_value; - yyval.value.u.vreal = yyvsp[0].real; - } - break; - - case 163: -#line 1201 "parser.y" - { - yyval.value.vtype = numeric_value; - yyval.value.u.vnum = yyvsp[0].number; - } - break; - - case 164: -#line 1205 "parser.y" - { - yyval.value.vtype = numeric_value; - yyval.value.u.vnum = 1; - } - break; - - case 165: -#line 1209 "parser.y" - { - yyval.value.vtype = numeric_value; - yyval.value.u.vnum = 0; - } - break; - - case 166: -#line 1213 "parser.y" - { - yyval.value.vtype = numeric_value; - yyval.value.u.vnum = 0; - } - break; - - case 167: -#line 1217 "parser.y" - { - yyval.value.vtype = string_value; - yyval.value.u.vstr = yyvsp[0].text; - } - break; - - case 168: -#line 1221 "parser.y" - { - yyval.value.vtype = qchar_value; - yyval.value.u.vqchar = yyvsp[0].qchar; - } - break; - - case 169: -#line 1227 "parser.y" - { - /* No values. */ - - yyval.fcall.nrArgs = 0; - } - break; - - case 170: -#line 1232 "parser.y" - { - /* The single or first expression. */ - - yyval.fcall.args[0] = yyvsp[0].valp; - yyval.fcall.nrArgs = 1; - } - break; - - case 171: -#line 1238 "parser.y" - { - /* Check that it wasn't ...(,expression...). */ - - if (yyval.fcall.nrArgs == 0) - yyerror("First argument to function call is missing"); - - /* Check there is room. */ - - if (yyvsp[-2].fcall.nrArgs == MAX_NR_ARGS) - yyerror("Too many arguments to function call"); - - yyval.fcall = yyvsp[-2].fcall; - - yyval.fcall.args[yyval.fcall.nrArgs] = yyvsp[0].valp; - yyval.fcall.nrArgs++; - } - break; - - case 172: -#line 1256 "parser.y" - { - if (notSkipping()) - newTypedef(currentSpec,currentModule,yyvsp[-1].text,&yyvsp[-2].memArg); - } - break; - - case 173: -#line 1260 "parser.y" - { - if (notSkipping()) - { - argDef ftype; - signatureDef *sig; - - /* Create the full signature on the heap. */ - sig = sipMalloc(sizeof (signatureDef)); - *sig = yyvsp[-2].signature; - sig -> result = yyvsp[-8].memArg; - - /* Create the full type. */ - ftype.atype = function_type; - ftype.argflags = 0; - ftype.nrderefs = yyvsp[-6].number; - ftype.defval = NULL; - ftype.u.sa = sig; - - newTypedef(currentSpec,currentModule,yyvsp[-5].text,&ftype); - } - } - break; - - case 174: -#line 1283 "parser.y" - { - if (notSkipping()) - { - classDef *cd; - - cd = newClass(currentSpec,class_iface,text2scopedName(yyvsp[0].text)); - - pushScope(cd); - - sectionFlags = SECT_IS_PUBLIC; - } - } - break; - - case 175: -#line 1294 "parser.y" - { - if (notSkipping()) - { - finishClass(currentSpec, currentModule, currentScope(), &yyvsp[-4].optflags); - popScope(); - } - } - break; - - case 176: -#line 1303 "parser.y" - { - if (currentSpec->genc) - yyerror("Class templates not allowed in a C module"); - - if (notSkipping()) - { - classTmplDef *tcd; - - /* - * Make sure there is room for the extra class - * name argument. - */ - if (yyvsp[-1].signature.nrArgs == MAX_NR_ARGS) - yyerror("Internal error - increase the value of MAX_NR_ARGS"); - - tcd = sipMalloc(sizeof (classTmplDef)); - tcd->sig = yyvsp[-1].signature; - tcd->cd = yyvsp[0].klass; - tcd->next = currentSpec->classtemplates; - - currentSpec->classtemplates = tcd; - } - } - break; - - case 177: -#line 1328 "parser.y" - { - yyval.signature = yyvsp[-1].signature; - } - break; - - case 178: -#line 1333 "parser.y" - { - if (currentSpec -> genc) - yyerror("Class definition not allowed in a C module"); - - if (notSkipping()) - { - classDef *cd; - - cd = newClass(currentSpec, class_iface, scopeScopedName(yyvsp[0].scpvalp)); - - pushScope(cd); - - sectionFlags = SECT_IS_PRIVATE; - } - } - break; - - case 179: -#line 1347 "parser.y" - { - if (notSkipping()) - { - classDef *cd = currentScope(); - - /* - * See if the class was defined or just - * declared. - */ - if (yyvsp[-1].boolean) - { - if (yyvsp[-5].scpvalp->next != NULL) - yyerror("A scoped name cannot be given in a class definition"); - - } - else if (cd->supers != NULL) - yyerror("Class has super-classes but no definition"); - else - setIsOpaque(cd); - - finishClass(currentSpec, currentModule, cd, &yyvsp[-2].optflags); - popScope(); - - /* - * Check that external classes have only been - * declared at the global scope. - */ - if (isExternal(cd) && currentScope() != NULL) - yyerror("External classes can only be declared in the global scope"); - - yyval.klass = cd; - } - } - break; - - case 184: -#line 1390 "parser.y" - { - if (notSkipping()) - { - classDef *cd, *super; - - cd = currentScope(); - - super = findClass(currentSpec,class_iface,yyvsp[0].scpvalp); - - appendToClassList(&cd -> supers,super); - addToUsedList(&cd->iff->used, super->iff); - } - } - break; - - case 185: -#line 1405 "parser.y" - { - yyval.boolean = FALSE; - } - break; - - case 186: -#line 1408 "parser.y" - { - yyval.boolean = TRUE; - } - break; - - case 197: -#line 1425 "parser.y" - { - if (notSkipping()) - appendCodeBlock(¤tScope() -> cppcode,yyvsp[0].codeb); - } - break; - - case 198: -#line 1429 "parser.y" - { - if (notSkipping()) - appendCodeBlock(¤tScope() -> hdrcode,yyvsp[0].codeb); - } - break; - - case 199: -#line 1433 "parser.y" - { - if (currentScope()->travcode != NULL) - yyerror("%GCTraverseCode already given for class"); - - if (notSkipping()) - currentScope()->travcode = yyvsp[0].codeb; - } - break; - - case 200: -#line 1440 "parser.y" - { - if (currentScope()->clearcode != NULL) - yyerror("%GCClearCode already given for class"); - - if (notSkipping()) - currentScope()->clearcode = yyvsp[0].codeb; - } - break; - - case 201: -#line 1447 "parser.y" - { - if (currentScope()->readbufcode != NULL) - yyerror("%BIGetReadBufferCode already given for class"); - - if (notSkipping()) - currentScope()->readbufcode = yyvsp[0].codeb; - } - break; - - case 202: -#line 1454 "parser.y" - { - if (currentScope()->writebufcode != NULL) - yyerror("%BIGetWriteBufferCode already given for class"); - - if (notSkipping()) - currentScope()->writebufcode = yyvsp[0].codeb; - } - break; - - case 203: -#line 1461 "parser.y" - { - if (currentScope()->segcountcode != NULL) - yyerror("%BIGetSegCountCode already given for class"); - - if (notSkipping()) - currentScope()->segcountcode = yyvsp[0].codeb; - } - break; - - case 204: -#line 1468 "parser.y" - { - if (currentScope()->charbufcode != NULL) - yyerror("%BIGetCharBufferCode already given for class"); - - if (notSkipping()) - currentScope()->charbufcode = yyvsp[0].codeb; - } - break; - - case 208: -#line 1478 "parser.y" - { - if (notSkipping()) - { - classDef *cd = currentScope(); - - if (cd -> convtosubcode != NULL) - yyerror("Class has more than one %ConvertToSubClassCode directive"); - - cd -> convtosubcode = yyvsp[0].codeb; - } - } - break; - - case 209: -#line 1489 "parser.y" - { - if (notSkipping()) - { - classDef *cd = currentScope(); - - if (cd -> convtocode != NULL) - yyerror("Class has more than one %ConvertToTypeCode directive"); - - cd -> convtocode = yyvsp[0].codeb; - } - } - break; - - case 210: -#line 1500 "parser.y" - { - if (currentSpec -> genc) - yyerror("public section not allowed in a C module"); - - if (notSkipping()) - sectionFlags = SECT_IS_PUBLIC | yyvsp[-1].number; - } - break; - - case 211: -#line 1507 "parser.y" - { - if (currentSpec -> genc) - yyerror("protected section not allowed in a C module"); - - if (notSkipping()) - sectionFlags = SECT_IS_PROT | yyvsp[-1].number; - } - break; - - case 212: -#line 1514 "parser.y" - { - if (currentSpec -> genc) - yyerror("private section not allowed in a C module"); - - if (notSkipping()) - sectionFlags = SECT_IS_PRIVATE | yyvsp[-1].number; - } - break; - - case 213: -#line 1521 "parser.y" - { - if (currentSpec -> genc) - yyerror("signals section not allowed in a C module"); - - if (notSkipping()) - sectionFlags = SECT_IS_SIGNAL; - } - break; - - case 214: -#line 1530 "parser.y" - { - yyval.number = 0; - } - break; - - case 215: -#line 1533 "parser.y" - { - yyval.number = SECT_IS_SLOT; - } - break; - - case 216: -#line 1538 "parser.y" - { - /* Note that we allow non-virtual dtors in C modules. */ - - if (notSkipping()) - { - classDef *cd = currentScope(); - - if (strcmp(classBaseName(cd),yyvsp[-8].text) != 0) - yyerror("Destructor doesn't have the same name as its class"); - - if (isDtor(cd)) - yyerror("Destructor has already been defined"); - - if (currentSpec -> genc && yyvsp[-1].codeb == NULL) - yyerror("Destructor in C modules must include %MethodCode"); - - cd -> dealloccode = yyvsp[-1].codeb; - cd -> dtorcode = yyvsp[0].codeb; - cd -> dtorexceptions = yyvsp[-5].throwlist; - cd -> classflags |= sectionFlags; - - if (yyvsp[-4].number) - { - if (!yyvsp[-10].number) - yyerror("Abstract destructor must be virtual"); - - setIsAbstractClass(cd); - } - - /* - * The class has a shadow if we have a virtual dtor or some - * dtor code. - */ - if (yyvsp[-10].number || yyvsp[0].codeb != NULL) - { - if (currentSpec -> genc) - yyerror("Virtual destructor or %VirtualCatcherCode not allowed in a C module"); - - setHasShadow(cd); - } - - if (getReleaseGIL(&yyvsp[-3].optflags)) - setIsReleaseGILDtor(cd); - else if (getHoldGIL(&yyvsp[-3].optflags)) - setIsHoldGILDtor(cd); - } - } - break; - - case 217: -#line 1587 "parser.y" - {currentCtorIsExplicit = TRUE;} - break; - - case 220: -#line 1591 "parser.y" - { - /* Note that we allow ctors in C modules. */ - - if (notSkipping()) - { - if (currentSpec -> genc) - { - if (yyvsp[0].codeb == NULL && yyvsp[-6].signature.nrArgs != 0) - yyerror("Constructors with arguments in C modules must include %MethodCode"); - - if (currentCtorIsExplicit) - yyerror("Explicit constructors not allowed in a C module"); - } - - if ((sectionFlags & (SECT_IS_PUBLIC | SECT_IS_PROT | SECT_IS_PRIVATE)) == 0) - yyerror("Constructor must be in the public, private or protected sections"); - - newCtor(yyvsp[-8].text,sectionFlags,&yyvsp[-6].signature,&yyvsp[-3].optflags,yyvsp[0].codeb,yyvsp[-4].throwlist,yyvsp[-2].optsignature,currentCtorIsExplicit); - } - - free(yyvsp[-8].text); - - currentCtorIsExplicit = FALSE; - } - break; - - case 221: -#line 1617 "parser.y" - { - yyval.optsignature = NULL; - } - break; - - case 222: -#line 1620 "parser.y" - { - yyval.optsignature = sipMalloc(sizeof (signatureDef)); - - *yyval.optsignature = yyvsp[-2].signature; - } - break; - - case 223: -#line 1627 "parser.y" - { - yyval.optsignature = NULL; - } - break; - - case 224: -#line 1630 "parser.y" - { - yyval.optsignature = sipMalloc(sizeof (signatureDef)); - - *yyval.optsignature = yyvsp[-2].signature; - yyval.optsignature -> result = yyvsp[-4].memArg; - } - break; - - case 225: -#line 1638 "parser.y" - { - yyval.number = FALSE; - } - break; - - case 226: -#line 1641 "parser.y" - { - yyval.number = TRUE; - } - break; - - case 227: -#line 1646 "parser.y" - { - if (notSkipping()) - { - if (sectionFlags != 0 && (sectionFlags & (SECT_IS_PUBLIC | SECT_IS_PROT | SECT_IS_PRIVATE | SECT_IS_SLOT | SECT_IS_SIGNAL)) == 0) - yyerror("Class function must be in the public, private, protected, slot or signal sections"); - - yyvsp[-9].signature.result = yyvsp[-12].memArg; - - newFunction(currentSpec,currentModule, - sectionFlags,currentIsStatic, - currentOverIsVirt, - yyvsp[-11].text,&yyvsp[-9].signature,yyvsp[-7].number,yyvsp[-5].number,&yyvsp[-4].optflags,yyvsp[-1].codeb,yyvsp[0].codeb,yyvsp[-6].throwlist,yyvsp[-3].optsignature); - } - - currentIsStatic = FALSE; - currentOverIsVirt = FALSE; - } - break; - - case 228: -#line 1663 "parser.y" - { - if (notSkipping()) - { - classDef *cd = currentScope(); - - /* Handle the unary '+' and '-' operators. */ - if ((cd != NULL && yyvsp[-9].signature.nrArgs == 0) || (cd == NULL && yyvsp[-9].signature.nrArgs == 1)) - { - if (strcmp(yyvsp[-11].text, "__add__") == 0) - yyvsp[-11].text = "__pos__"; - else if (strcmp(yyvsp[-11].text, "__sub__") == 0) - yyvsp[-11].text = "__neg__"; - } - - yyvsp[-9].signature.result = yyvsp[-13].memArg; - - newFunction(currentSpec,currentModule, - sectionFlags,currentIsStatic, - currentOverIsVirt, - yyvsp[-11].text,&yyvsp[-9].signature,yyvsp[-7].number,yyvsp[-5].number,&yyvsp[-4].optflags,yyvsp[-1].codeb,yyvsp[0].codeb,yyvsp[-6].throwlist,yyvsp[-3].optsignature); - } - - currentIsStatic = FALSE; - currentOverIsVirt = FALSE; - } - break; - - case 229: -#line 1688 "parser.y" - { - classDef *scope = currentScope(); - - if (scope == NULL || yyvsp[-9].signature.nrArgs != 0) - yyerror("Operator casts must be specified in a class and have no arguments"); - - - if (notSkipping()) - { - char *sname; - - switch (yyvsp[-11].memArg.atype) - { - case defined_type: - sname = NULL; - break; - - case bool_type: - case cbool_type: - case short_type: - case ushort_type: - case int_type: - case cint_type: - case uint_type: - sname = "__int__"; - break; - - case long_type: - case ulong_type: - case longlong_type: - case ulonglong_type: - sname = "__long__"; - break; - - case float_type: - case cfloat_type: - case double_type: - case cdouble_type: - sname = "__float__"; - break; - - default: - yyerror("Unsupported operator cast"); - } - - if (sname != NULL) - { - yyvsp[-9].signature.result = yyvsp[-11].memArg; - - newFunction(currentSpec, currentModule, - sectionFlags, - currentIsStatic, - currentOverIsVirt, sname, - &yyvsp[-9].signature, yyvsp[-7].number, yyvsp[-5].number, &yyvsp[-4].optflags, yyvsp[-1].codeb, yyvsp[0].codeb, - yyvsp[-6].throwlist, yyvsp[-3].optsignature); - } - else - { - argList *al; - - /* Check it doesn't already exist. */ - for (al = scope->casts; al != NULL; al = al->next) - if (sameScopedName(yyvsp[-11].memArg.u.snd, al->arg.u.snd)) - yyerror("This operator cast has already been specified in this class"); - - al = sipMalloc(sizeof (argList)); - al->arg = yyvsp[-11].memArg; - al->next = scope->casts; - - scope->casts = al; - } - } - - currentIsStatic = FALSE; - currentOverIsVirt = FALSE; - } - break; - - case 230: -#line 1766 "parser.y" - {yyval.text = "__add__";} - break; - - case 231: -#line 1767 "parser.y" - {yyval.text = "__sub__";} - break; - - case 232: -#line 1768 "parser.y" - {yyval.text = "__mul__";} - break; - - case 233: -#line 1769 "parser.y" - {yyval.text = "__div__";} - break; - - case 234: -#line 1770 "parser.y" - {yyval.text = "__mod__";} - break; - - case 235: -#line 1771 "parser.y" - {yyval.text = "__and__";} - break; - - case 236: -#line 1772 "parser.y" - {yyval.text = "__or__";} - break; - - case 237: -#line 1773 "parser.y" - {yyval.text = "__xor__";} - break; - - case 238: -#line 1774 "parser.y" - {yyval.text = "__lshift__";} - break; - - case 239: -#line 1775 "parser.y" - {yyval.text = "__rshift__";} - break; - - case 240: -#line 1776 "parser.y" - {yyval.text = "__iadd__";} - break; - - case 241: -#line 1777 "parser.y" - {yyval.text = "__isub__";} - break; - - case 242: -#line 1778 "parser.y" - {yyval.text = "__imul__";} - break; - - case 243: -#line 1779 "parser.y" - {yyval.text = "__idiv__";} - break; - - case 244: -#line 1780 "parser.y" - {yyval.text = "__imod__";} - break; - - case 245: -#line 1781 "parser.y" - {yyval.text = "__iand__";} - break; - - case 246: -#line 1782 "parser.y" - {yyval.text = "__ior__";} - break; - - case 247: -#line 1783 "parser.y" - {yyval.text = "__ixor__";} - break; - - case 248: -#line 1784 "parser.y" - {yyval.text = "__ilshift__";} - break; - - case 249: -#line 1785 "parser.y" - {yyval.text = "__irshift__";} - break; - - case 250: -#line 1786 "parser.y" - {yyval.text = "__invert__";} - break; - - case 251: -#line 1787 "parser.y" - {yyval.text = "__call__";} - break; - - case 252: -#line 1788 "parser.y" - {yyval.text = "__getitem__";} - break; - - case 253: -#line 1789 "parser.y" - {yyval.text = "__lt__";} - break; - - case 254: -#line 1790 "parser.y" - {yyval.text = "__le__";} - break; - - case 255: -#line 1791 "parser.y" - {yyval.text = "__eq__";} - break; - - case 256: -#line 1792 "parser.y" - {yyval.text = "__ne__";} - break; - - case 257: -#line 1793 "parser.y" - {yyval.text = "__gt__";} - break; - - case 258: -#line 1794 "parser.y" - {yyval.text = "__ge__";} - break; - - case 259: -#line 1797 "parser.y" - { - yyval.number = FALSE; - } - break; - - case 260: -#line 1800 "parser.y" - { - yyval.number = TRUE; - } - break; - - case 261: -#line 1805 "parser.y" - { - yyval.number = 0; - } - break; - - case 262: -#line 1808 "parser.y" - { - if (yyvsp[0].number != 0) - yyerror("Abstract virtual function '= 0' expected"); - - yyval.number = TRUE; - } - break; - - case 263: -#line 1816 "parser.y" - { - yyval.optflags.nrFlags = 0; - } - break; - - case 264: -#line 1819 "parser.y" - { - yyval.optflags = yyvsp[-1].optflags; - } - break; - - case 265: -#line 1825 "parser.y" - { - yyval.optflags.flags[0] = yyvsp[0].flag; - yyval.optflags.nrFlags = 1; - } - break; - - case 266: -#line 1829 "parser.y" - { - /* Check there is room. */ - - if (yyvsp[-2].optflags.nrFlags == MAX_NR_FLAGS) - yyerror("Too many optional flags"); - - yyval.optflags = yyvsp[-2].optflags; - - yyval.optflags.flags[yyval.optflags.nrFlags++] = yyvsp[0].flag; - } - break; - - case 267: -#line 1841 "parser.y" - { - yyval.flag.ftype = bool_flag; - yyval.flag.fname = yyvsp[0].text; - } - break; - - case 268: -#line 1845 "parser.y" - { - yyval.flag = yyvsp[0].flag; - yyval.flag.fname = yyvsp[-2].text; - } - break; - - case 269: -#line 1851 "parser.y" - { - yyval.flag.ftype = name_flag; - yyval.flag.fvalue.sval = yyvsp[0].text; - } - break; - - case 270: -#line 1855 "parser.y" - { - yyval.flag.ftype = string_flag; - yyval.flag.fvalue.sval = yyvsp[0].text; - } - break; - - case 271: -#line 1859 "parser.y" - { - yyval.flag.ftype = integer_flag; - yyval.flag.fvalue.ival = yyvsp[0].number; - } - break; - - case 272: -#line 1865 "parser.y" - { - yyval.codeb = NULL; - } - break; - - case 273: -#line 1868 "parser.y" - { - yyval.codeb = yyvsp[0].codeb; - } - break; - - case 274: -#line 1873 "parser.y" - { - yyval.codeb = NULL; - } - break; - - case 275: -#line 1876 "parser.y" - { - yyval.codeb = yyvsp[0].codeb; - } - break; - - case 276: -#line 1881 "parser.y" - { - int a, nrrxcon, nrrxdis, nrslotcon, nrslotdis, nrarray, nrarraysize; - - nrrxcon = nrrxdis = nrslotcon = nrslotdis = nrarray = nrarraysize = 0; - - for (a = 0; a < yyvsp[0].signature.nrArgs; ++a) - { - argDef *ad = &yyvsp[0].signature.args[a]; - - switch (ad -> atype) - { - case rxcon_type: - ++nrrxcon; - break; - - case rxdis_type: - ++nrrxdis; - break; - - case slotcon_type: - ++nrslotcon; - break; - - case slotdis_type: - ++nrslotdis; - break; - } - - if (isArray(ad)) - ++nrarray; - - if (isArraySize(ad)) - ++nrarraysize; - } - - if (nrrxcon != nrslotcon || nrrxcon > 1) - yyerror("SIP_RXOBJ_CON and SIP_SLOT_CON must both be given and at most once"); - - if (nrrxdis != nrslotdis || nrrxdis > 1) - yyerror("SIP_RXOBJ_DIS and SIP_SLOT_DIS must both be given and at most once"); - - if (nrarray != nrarraysize || nrarray > 1) - yyerror("/Array/ and /ArraySize/ must both be given and at most once"); - - yyval.signature = yyvsp[0].signature; - } - break; - - case 277: -#line 1929 "parser.y" - { - /* No arguments. */ - - yyval.signature.nrArgs = 0; - } - break; - - case 278: -#line 1934 "parser.y" - { - /* The single or first argument. */ - - yyval.signature.args[0] = yyvsp[0].memArg; - yyval.signature.nrArgs = 1; - } - break; - - case 279: -#line 1940 "parser.y" - { - /* Check that it wasn't ...(,arg...). */ - if (yyvsp[-2].signature.nrArgs == 0) - yyerror("First argument of the list is missing"); - - /* Check there is nothing after an ellipsis. */ - if (yyvsp[-2].signature.args[yyvsp[-2].signature.nrArgs - 1].atype == ellipsis_type) - yyerror("An ellipsis must be at the end of the argument list"); - - /* - * If this argument has no default value, then the - * previous one mustn't either. - */ - if (yyvsp[0].memArg.defval == NULL && yyvsp[-2].signature.args[yyvsp[-2].signature.nrArgs - 1].defval != NULL) - yyerror("Compulsory argument given after optional argument"); - - /* Check there is room. */ - if (yyvsp[-2].signature.nrArgs == MAX_NR_ARGS) - yyerror("Internal error - increase the value of MAX_NR_ARGS"); - - yyval.signature = yyvsp[-2].signature; - - yyval.signature.args[yyval.signature.nrArgs] = yyvsp[0].memArg; - yyval.signature.nrArgs++; - } - break; - - case 280: -#line 1967 "parser.y" - { - yyval.memArg.atype = signal_type; - yyval.memArg.argflags = ARG_IS_CONST; - yyval.memArg.nrderefs = 0; - yyval.memArg.name = yyvsp[-1].text; - yyval.memArg.defval = yyvsp[0].valp; - - currentSpec -> sigslots = TRUE; - } - break; - - case 281: -#line 1976 "parser.y" - { - yyval.memArg.atype = slot_type; - yyval.memArg.argflags = ARG_IS_CONST; - yyval.memArg.nrderefs = 0; - yyval.memArg.name = yyvsp[-1].text; - yyval.memArg.defval = yyvsp[0].valp; - - currentSpec -> sigslots = TRUE; - } - break; - - case 282: -#line 1985 "parser.y" - { - yyval.memArg.atype = anyslot_type; - yyval.memArg.argflags = ARG_IS_CONST; - yyval.memArg.nrderefs = 0; - yyval.memArg.name = yyvsp[-1].text; - yyval.memArg.defval = yyvsp[0].valp; - - currentSpec -> sigslots = TRUE; - } - break; - - case 283: -#line 1994 "parser.y" - { - yyval.memArg.atype = rxcon_type; - yyval.memArg.argflags = 0; - yyval.memArg.nrderefs = 0; - yyval.memArg.name = yyvsp[0].text; - - currentSpec -> sigslots = TRUE; - } - break; - - case 284: -#line 2002 "parser.y" - { - yyval.memArg.atype = rxdis_type; - yyval.memArg.argflags = 0; - yyval.memArg.nrderefs = 0; - yyval.memArg.name = yyvsp[0].text; - - currentSpec -> sigslots = TRUE; - } - break; - - case 285: -#line 2010 "parser.y" - { - yyval.memArg.atype = slotcon_type; - yyval.memArg.argflags = ARG_IS_CONST; - yyval.memArg.nrderefs = 0; - yyval.memArg.name = yyvsp[0].text; - - yyvsp[-2].signature.result.atype = void_type; - yyvsp[-2].signature.result.argflags = 0; - yyvsp[-2].signature.result.nrderefs = 0; - - yyval.memArg.u.sa = sipMalloc(sizeof (signatureDef)); - *yyval.memArg.u.sa = yyvsp[-2].signature; - - currentSpec -> sigslots = TRUE; - } - break; - - case 286: -#line 2025 "parser.y" - { - yyval.memArg.atype = slotdis_type; - yyval.memArg.argflags = ARG_IS_CONST; - yyval.memArg.nrderefs = 0; - yyval.memArg.name = yyvsp[0].text; - - yyvsp[-2].signature.result.atype = void_type; - yyvsp[-2].signature.result.argflags = 0; - yyvsp[-2].signature.result.nrderefs = 0; - - yyval.memArg.u.sa = sipMalloc(sizeof (signatureDef)); - *yyval.memArg.u.sa = yyvsp[-2].signature; - - currentSpec -> sigslots = TRUE; - } - break; - - case 287: -#line 2040 "parser.y" - { - yyval.memArg.atype = qobject_type; - yyval.memArg.argflags = 0; - yyval.memArg.nrderefs = 0; - yyval.memArg.name = yyvsp[0].text; - } - break; - - case 288: -#line 2046 "parser.y" - { - yyval.memArg = yyvsp[-1].memArg; - yyval.memArg.defval = yyvsp[0].valp; - } - break; - - case 289: -#line 2052 "parser.y" - {currentIsStatic = TRUE;} - break; - - case 294: -#line 2060 "parser.y" - {currentOverIsVirt = TRUE;} - break; - - case 297: -#line 2064 "parser.y" - { - if (notSkipping()) - { - /* Check the section. */ - - if (sectionFlags != 0) - { - if ((sectionFlags & SECT_IS_PUBLIC) == 0) - yyerror("Class variables must be in the public section"); - - if (!currentIsStatic && yyvsp[-2].codeb != NULL) - yyerror("%AccessCode cannot be specified for non-static class variables"); - } - - if (currentIsStatic && currentSpec -> genc) - yyerror("Cannot have static members in a C structure"); - - if (yyvsp[-1].codeb != NULL || yyvsp[0].codeb != NULL) - { - if (yyvsp[-2].codeb != NULL) - yyerror("Cannot mix %AccessCode and %GetCode or %SetCode"); - - if (currentScope() == NULL) - yyerror("Cannot specify %GetCode or %SetCode for global variables"); - } - - newVar(currentSpec,currentModule,yyvsp[-5].text,currentIsStatic,&yyvsp[-6].memArg,&yyvsp[-4].optflags,yyvsp[-2].codeb,yyvsp[-1].codeb,yyvsp[0].codeb); - } - - currentIsStatic = FALSE; - } - break; - - case 298: -#line 2097 "parser.y" - { - yyval.memArg = yyvsp[-2].memArg; - yyval.memArg.nrderefs = yyvsp[-1].number; - yyval.memArg.argflags = ARG_IS_CONST | yyvsp[0].number; - yyval.memArg.name = NULL; - } - break; - - case 299: -#line 2103 "parser.y" - { - yyval.memArg = yyvsp[-2].memArg; - yyval.memArg.nrderefs = yyvsp[-1].number; - yyval.memArg.argflags = yyvsp[0].number; - yyval.memArg.name = NULL; - } - break; - - case 300: -#line 2111 "parser.y" - { - yyval.memArg = yyvsp[-2].memArg; - yyval.memArg.name = yyvsp[-1].text; - - if (findOptFlag(&yyvsp[0].optflags,"AllowNone",bool_flag) != NULL) - yyval.memArg.argflags |= ARG_ALLOW_NONE; - - if (findOptFlag(&yyvsp[0].optflags,"GetWrapper",bool_flag) != NULL) - yyval.memArg.argflags |= ARG_GET_WRAPPER; - - if (findOptFlag(&yyvsp[0].optflags,"Array",bool_flag) != NULL) - yyval.memArg.argflags |= ARG_ARRAY; - - if (findOptFlag(&yyvsp[0].optflags,"ArraySize",bool_flag) != NULL) - yyval.memArg.argflags |= ARG_ARRAY_SIZE; - - if (findOptFlag(&yyvsp[0].optflags,"Transfer",bool_flag) != NULL) - yyval.memArg.argflags |= ARG_XFERRED; - - if (findOptFlag(&yyvsp[0].optflags,"TransferThis",bool_flag) != NULL) - yyval.memArg.argflags |= ARG_THIS_XFERRED; - - if (findOptFlag(&yyvsp[0].optflags,"TransferBack",bool_flag) != NULL) - yyval.memArg.argflags |= ARG_XFERRED_BACK; - - if (findOptFlag(&yyvsp[0].optflags,"In",bool_flag) != NULL) - yyval.memArg.argflags |= ARG_IN; - - if (findOptFlag(&yyvsp[0].optflags,"Out",bool_flag) != NULL) - yyval.memArg.argflags |= ARG_OUT; - - if (findOptFlag(&yyvsp[0].optflags,"Constrained",bool_flag) != NULL) - { - yyval.memArg.argflags |= ARG_CONSTRAINED; - - switch (yyval.memArg.atype) - { - case bool_type: - yyval.memArg.atype = cbool_type; - break; - - case int_type: - yyval.memArg.atype = cint_type; - break; - - case float_type: - yyval.memArg.atype = cfloat_type; - break; - - case double_type: - yyval.memArg.atype = cdouble_type; - break; - } - } - } - break; - - case 301: -#line 2168 "parser.y" - { - yyval.number = 0; - } - break; - - case 302: -#line 2171 "parser.y" - { - if (currentSpec -> genc) - yyerror("References not allowed in a C module"); - - yyval.number = ARG_IS_REF; - } - break; - - case 303: -#line 2179 "parser.y" - { - yyval.number = 0; - } - break; - - case 304: -#line 2182 "parser.y" - { - yyval.number = yyvsp[-1].number + 1; - } - break; - - case 305: -#line 2187 "parser.y" - { - yyval.memArg.atype = defined_type; - yyval.memArg.u.snd = yyvsp[0].scpvalp; - } - break; - - case 306: -#line 2191 "parser.y" - { - templateDef *td; - - td = sipMalloc(sizeof(templateDef)); - td -> fqname = yyvsp[-3].scpvalp; - td -> types = yyvsp[-1].signature; - - yyval.memArg.atype = template_type; - yyval.memArg.u.td = td; - } - break; - - case 307: -#line 2201 "parser.y" - { - /* In a C module all structures must be defined. */ - if (currentSpec -> genc) - { - yyval.memArg.atype = defined_type; - yyval.memArg.u.snd = yyvsp[0].scpvalp; - } - else - { - yyval.memArg.atype = struct_type; - yyval.memArg.u.sname = yyvsp[0].scpvalp; - } - } - break; - - case 308: -#line 2214 "parser.y" - { - yyval.memArg.atype = ushort_type; - } - break; - - case 309: -#line 2217 "parser.y" - { - yyval.memArg.atype = short_type; - } - break; - - case 310: -#line 2220 "parser.y" - { - yyval.memArg.atype = uint_type; - } - break; - - case 311: -#line 2223 "parser.y" - { - yyval.memArg.atype = uint_type; - } - break; - - case 312: -#line 2226 "parser.y" - { - yyval.memArg.atype = int_type; - } - break; - - case 313: -#line 2229 "parser.y" - { - yyval.memArg.atype = long_type; - } - break; - - case 314: -#line 2232 "parser.y" - { - yyval.memArg.atype = ulong_type; - } - break; - - case 315: -#line 2235 "parser.y" - { - yyval.memArg.atype = longlong_type; - } - break; - - case 316: -#line 2238 "parser.y" - { - yyval.memArg.atype = ulonglong_type; - } - break; - - case 317: -#line 2241 "parser.y" - { - yyval.memArg.atype = float_type; - } - break; - - case 318: -#line 2244 "parser.y" - { - yyval.memArg.atype = double_type; - } - break; - - case 319: -#line 2247 "parser.y" - { - yyval.memArg.atype = bool_type; - } - break; - - case 320: -#line 2250 "parser.y" - { - yyval.memArg.atype = sstring_type; - } - break; - - case 321: -#line 2253 "parser.y" - { - yyval.memArg.atype = ustring_type; - } - break; - - case 322: -#line 2256 "parser.y" - { - yyval.memArg.atype = string_type; - } - break; - - case 323: -#line 2259 "parser.y" - { - yyval.memArg.atype = wstring_type; - } - break; - - case 324: -#line 2262 "parser.y" - { - yyval.memArg.atype = void_type; - } - break; - - case 325: -#line 2265 "parser.y" - { - yyval.memArg.atype = pyobject_type; - } - break; - - case 326: -#line 2268 "parser.y" - { - yyval.memArg.atype = pytuple_type; - } - break; - - case 327: -#line 2271 "parser.y" - { - yyval.memArg.atype = pylist_type; - } - break; - - case 328: -#line 2274 "parser.y" - { - yyval.memArg.atype = pydict_type; - } - break; - - case 329: -#line 2277 "parser.y" - { - yyval.memArg.atype = pycallable_type; - } - break; - - case 330: -#line 2280 "parser.y" - { - yyval.memArg.atype = pyslice_type; - } - break; - - case 331: -#line 2283 "parser.y" - { - yyval.memArg.atype = pytype_type; - } - break; - - case 332: -#line 2286 "parser.y" - { - yyval.memArg.atype = ellipsis_type; - } - break; - - case 333: -#line 2291 "parser.y" - { - /* The single or first type. */ - - yyval.signature.args[0] = yyvsp[0].memArg; - yyval.signature.nrArgs = 1; - } - break; - - case 334: -#line 2297 "parser.y" - { - /* Check there is nothing after an ellipsis. */ - if (yyvsp[-2].signature.args[yyvsp[-2].signature.nrArgs - 1].atype == ellipsis_type) - yyerror("An ellipsis must be at the end of the argument list"); - - /* Check there is room. */ - if (yyvsp[-2].signature.nrArgs == MAX_NR_ARGS) - yyerror("Internal error - increase the value of MAX_NR_ARGS"); - - yyval.signature = yyvsp[-2].signature; - - yyval.signature.args[yyval.signature.nrArgs] = yyvsp[0].memArg; - yyval.signature.nrArgs++; - } - break; - - case 335: -#line 2313 "parser.y" - { - yyval.throwlist = NULL; - } - break; - - case 336: -#line 2316 "parser.y" - { - if (currentSpec->genc) - yyerror("Exceptions not allowed in a C module"); - - if (notSkipping() && inMainModule()) - { - int e; - ifaceFileList **ifl; - - /* - * Make sure the exceptions' header files are - * included. We unconditionally mark them to - * be included in the current scope's header - * file to save us the effort of checking if - * they are being used with a protected method, - * a virtual or a signal. - */ - ifl = (currentScope() != NULL) ? ¤tScope()->iff->used : ¤tSpec->used; - - for (e = 0; e < yyvsp[-1].throwlist->nrArgs; ++e) - addToUsedList(ifl, yyvsp[-1].throwlist->args[e]->iff); - } - - yyval.throwlist = yyvsp[-1].throwlist; - } - break; - - case 337: -#line 2343 "parser.y" - { - /* Empty list so use a blank. */ - - yyval.throwlist = sipMalloc(sizeof (throwArgs)); - yyval.throwlist -> nrArgs = 0; - } - break; - - case 338: -#line 2349 "parser.y" - { - /* The only or first exception. */ - - yyval.throwlist = sipMalloc(sizeof (throwArgs)); - yyval.throwlist -> nrArgs = 1; - yyval.throwlist -> args[0] = findException(currentSpec, yyvsp[0].scpvalp, FALSE); - } - break; - - case 339: -#line 2356 "parser.y" - { - /* Check that it wasn't ...(,arg...). */ - - if (yyvsp[-2].throwlist -> nrArgs == 0) - yyerror("First exception of throw specifier is missing"); - - /* Check there is room. */ - - if (yyvsp[-2].throwlist -> nrArgs == MAX_NR_ARGS) - yyerror("Internal error - increase the value of MAX_NR_ARGS"); - - yyval.throwlist = yyvsp[-2].throwlist; - yyval.throwlist -> args[yyval.throwlist -> nrArgs++] = findException(currentSpec, yyvsp[0].scpvalp, FALSE); - } - break; - - - } - -/* Line 1010 of yacc.c. */ -#line 4727 "parser.c" - - yyvsp -= yylen; - yyssp -= yylen; - - - YY_STACK_PRINT (yyss, yyssp); - - *++yyvsp = yyval; - - - /* Now `shift' the result of the reduction. Determine what state - that goes to, based on the state we popped back to and the rule - number reduced by. */ - - yyn = yyr1[yyn]; - - yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; - if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) - yystate = yytable[yystate]; - else - yystate = yydefgoto[yyn - YYNTOKENS]; - - goto yynewstate; - - -/*------------------------------------. -| yyerrlab -- here on detecting error | -`------------------------------------*/ -yyerrlab: - /* If not already recovering from an error, report this error. */ - if (!yyerrstatus) - { - ++yynerrs; -#if YYERROR_VERBOSE - yyn = yypact[yystate]; - - if (YYPACT_NINF < yyn && yyn < YYLAST) - { - YYSIZE_T yysize = 0; - int yytype = YYTRANSLATE (yychar); - const char* yyprefix; - char *yymsg; - int yyx; - - /* Start YYX at -YYN if negative to avoid negative indexes in - YYCHECK. */ - int yyxbegin = yyn < 0 ? -yyn : 0; - - /* Stay within bounds of both yycheck and yytname. */ - int yychecklim = YYLAST - yyn; - int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; - int yycount = 0; - - yyprefix = ", expecting "; - for (yyx = yyxbegin; yyx < yyxend; ++yyx) - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) - { - yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]); - yycount += 1; - if (yycount == 5) - { - yysize = 0; - break; - } - } - yysize += (sizeof ("syntax error, unexpected ") - + yystrlen (yytname[yytype])); - yymsg = (char *) YYSTACK_ALLOC (yysize); - if (yymsg != 0) - { - char *yyp = yystpcpy (yymsg, "syntax error, unexpected "); - yyp = yystpcpy (yyp, yytname[yytype]); - - if (yycount < 5) - { - yyprefix = ", expecting "; - for (yyx = yyxbegin; yyx < yyxend; ++yyx) - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) - { - yyp = yystpcpy (yyp, yyprefix); - yyp = yystpcpy (yyp, yytname[yyx]); - yyprefix = " or "; - } - } - yyerror (yymsg); - YYSTACK_FREE (yymsg); - } - else - yyerror ("syntax error; also virtual memory exhausted"); - } - else -#endif /* YYERROR_VERBOSE */ - yyerror ("syntax error"); - } - - - - if (yyerrstatus == 3) - { - /* If just tried and failed to reuse lookahead token after an - error, discard it. */ - - if (yychar <= YYEOF) - { - /* If at end of input, pop the error token, - then the rest of the stack, then return failure. */ - if (yychar == YYEOF) - for (;;) - { - YYPOPSTACK; - if (yyssp == yyss) - YYABORT; - YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); - yydestruct (yystos[*yyssp], yyvsp); - } - } - else - { - YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc); - yydestruct (yytoken, &yylval); - yychar = YYEMPTY; - - } - } - - /* Else will try to reuse lookahead token after shifting the error - token. */ - goto yyerrlab1; - - -/*---------------------------------------------------. -| yyerrorlab -- error raised explicitly by YYERROR. | -`---------------------------------------------------*/ -yyerrorlab: - -#ifdef __GNUC__ - /* Pacify GCC when the user code never invokes YYERROR and the label - yyerrorlab therefore never appears in user code. */ - if (0) - goto yyerrorlab; -#endif - - yyvsp -= yylen; - yyssp -= yylen; - yystate = *yyssp; - goto yyerrlab1; - - -/*-------------------------------------------------------------. -| yyerrlab1 -- common code for both syntax error and YYERROR. | -`-------------------------------------------------------------*/ -yyerrlab1: - yyerrstatus = 3; /* Each real token shifted decrements this. */ - - for (;;) - { - yyn = yypact[yystate]; - if (yyn != YYPACT_NINF) - { - yyn += YYTERROR; - if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) - { - yyn = yytable[yyn]; - if (0 < yyn) - break; - } - } - - /* Pop the current state because it cannot handle the error token. */ - if (yyssp == yyss) - YYABORT; - - YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); - yydestruct (yystos[yystate], yyvsp); - YYPOPSTACK; - yystate = *yyssp; - YY_STACK_PRINT (yyss, yyssp); - } - - if (yyn == YYFINAL) - YYACCEPT; - - YYDPRINTF ((stderr, "Shifting error token, ")); - - *++yyvsp = yylval; - - - yystate = yyn; - goto yynewstate; - - -/*-------------------------------------. -| yyacceptlab -- YYACCEPT comes here. | -`-------------------------------------*/ -yyacceptlab: - yyresult = 0; - goto yyreturn; - -/*-----------------------------------. -| yyabortlab -- YYABORT comes here. | -`-----------------------------------*/ -yyabortlab: - yyresult = 1; - goto yyreturn; - -#ifndef yyoverflow -/*----------------------------------------------. -| yyoverflowlab -- parser overflow comes here. | -`----------------------------------------------*/ -yyoverflowlab: - yyerror ("parser stack overflow"); - yyresult = 2; - /* Fall through. */ -#endif - -yyreturn: -#ifndef yyoverflow - if (yyss != yyssa) - YYSTACK_FREE (yyss); -#endif - return yyresult; -} - - -#line 2372 "parser.y" - - - -/* - * Parse the specification. - */ -void parse(sipSpec *spec,FILE *fp,char *filename,stringList *tsl, - stringList *xfl) -{ - classTmplDef *tcd; - - /* Initialise the spec. */ - - spec -> modules = NULL; - spec -> namecache = NULL; - spec -> ifacefiles = NULL; - spec -> classes = NULL; - spec -> classtemplates = NULL; - spec -> proxies = NULL; - spec -> exceptions = NULL; - spec -> mappedtypes = NULL; - spec -> mappedtypetemplates = NULL; - spec -> qobjclass = -1; - spec -> enums = NULL; - spec -> vars = NULL; - spec -> othfuncs = NULL; - spec -> overs = NULL; - spec -> typedefs = NULL; - spec -> copying = NULL; - spec -> exphdrcode = NULL; - spec -> hdrcode = NULL; - spec -> cppcode = NULL; - spec -> docs = NULL; - spec -> preinitcode = NULL; - spec -> postinitcode = NULL; - spec -> unitcode = NULL; - spec -> used = NULL; - spec -> sigslots = FALSE; - spec -> genc = -1; - spec -> options = NULL; - - currentSpec = spec; - neededQualifiers = tsl; - excludedQualifiers = xfl; - currentModule = NULL; - currentMappedType = NULL; - currentOverIsVirt = FALSE; - currentCtorIsExplicit = FALSE; - currentIsStatic = FALSE; - previousFile = NULL; - skipStackPtr = 0; - currentScopeIdx = 0; - sectionFlags = 0; - - newModule(fp,filename); - spec -> module = currentModule; - - yyparse(); - - handleEOF(); - handleEOM(); - - /* - * Go through each template class and remove it from the list of - * classes. - */ - for (tcd = spec->classtemplates; tcd != NULL; tcd = tcd->next) - { - classDef **cdp; - - for (cdp = &spec->classes; *cdp != NULL; cdp = &(*cdp)->next) - if (*cdp == tcd->cd) - { - ifaceFileDef **ifdp; - - /* Remove the interface file as well. */ - for (ifdp = &spec->ifacefiles; *ifdp != NULL; ifdp = &(*ifdp)->next) - if (*ifdp == tcd->cd->iff) - { - *ifdp = (*ifdp)->next; - break; - } - - *cdp = (*cdp)->next; - break; - } - } -} - - -/* - * Tell the parser that a complete file has now been read. - */ -void parserEOF(char *name,parserContext *pc) -{ - previousFile = sipStrdup(name); - newContext = *pc; -} - - -/* - * Append a class definition to a class list if it doesn't already appear. - * Append is needed specifically for the list of super-classes because the - * order is important to Python. - */ -void appendToClassList(classList **clp,classDef *cd) -{ - classList *new; - - /* Find the end of the list. */ - - while (*clp != NULL) - { - if ((*clp) -> cd == cd) - return; - - clp = &(*clp) -> next; - } - - new = sipMalloc(sizeof (classList)); - - new -> cd = cd; - new -> next = NULL; - - *clp = new; -} - - -/* - * Create a new module for the current specification and make it current. - */ -static void newModule(FILE *fp,char *filename) -{ - moduleDef *newmod; - - parseFile(fp,filename,currentModule,FALSE); - - newmod = sipMalloc(sizeof (moduleDef)); - newmod -> fullname = NULL; - newmod -> name = NULL; - newmod -> version = -1; - newmod -> modflags = 0; - newmod -> modulenr = -1; - newmod -> file = filename; - newmod -> qualifiers = NULL; - newmod -> root.cd = NULL; - newmod -> root.child = NULL; - newmod -> nrtimelines = 0; - newmod -> nrclasses = 0; - newmod -> nrexceptions = 0; - newmod -> nrmappedtypes = 0; - newmod -> nrenums = 0; - newmod -> nrtypedefs = 0; - newmod -> nrvirthandlers = 0; - newmod -> virthandlers = NULL; - newmod -> license = NULL; - newmod -> allimports = NULL; - newmod -> imports = NULL; - newmod -> next = currentSpec -> modules; - - currentModule = currentSpec->modules = newmod; -} - - -/* - * Switch to parsing a new file. - */ -static void parseFile(FILE *fp,char *name,moduleDef *prevmod,int optional) -{ - parserContext pc; - - pc.ifdepth = skipStackPtr; - pc.prevmod = prevmod; - - setInputFile(fp,name,&pc,optional); -} - - -/* - * Find an interface file, or create a new one. - */ -ifaceFileDef *findIfaceFile(sipSpec *pt, moduleDef *mod, scopedNameDef *fqname, - ifaceFileType iftype, argDef *ad) -{ - ifaceFileDef *iff; - - /* See if the name is already used. */ - - for (iff = pt -> ifacefiles; iff != NULL; iff = iff -> next) - { - if (!sameScopedName(iff -> fqcname,fqname)) - continue; - - /* - * They must be the same type except that we allow a class if - * if we want an exception. This is because we allow classes - * to be used before they are defined. - */ - if (iff -> type != iftype) - if (iftype != exception_iface || iff -> type != class_iface) - yyerror("A class, exception, namespace or mapped type has already been defined with the same name"); - - /* Ignore an external class declared in another module. */ - if (iftype == class_iface && iff->module != mod) - { - classDef *cd; - - for (cd = pt->classes; cd != NULL; cd = cd->next) - if (cd->iff == iff) - break; - - if (cd != NULL && iff->module != NULL && isExternal(cd)) - continue; - } - - /* - * If this is a mapped type with the same name defined in a - * different module, then check that this type isn't the same - * as any of the mapped types defined in that module. - */ - if (iftype == mappedtype_iface && iff -> module != mod) - { - mappedTypeDef *mtd; - - for (mtd = pt -> mappedtypes; mtd != NULL; mtd = mtd -> next) - { - if (mtd -> iff != iff) - continue; - - if (ad -> atype != template_type || - mtd -> type.atype != template_type || - sameBaseType(ad,&mtd -> type)) - yyerror("Mapped type has already been defined in another module"); - } - - /* - * If we got here then we have a mapped type based on - * an existing template, but with unique parameters. - * We don't want to use interface files from other - * modules, so skip this one. - */ - - continue; - } - - /* Ignore a namespace defined in another module. */ - if (iftype == namespace_iface && iff->module != mod) - continue; - - return iff; - } - - iff = sipMalloc(sizeof (ifaceFileDef)); - - iff -> name = cacheName(pt,scopedNameTail(fqname)); - iff -> type = iftype; - iff -> fqcname = fqname; - iff -> module = NULL; - iff -> used = NULL; - iff -> next = pt -> ifacefiles; - - pt -> ifacefiles = iff; - - return iff; -} - - -/* - * Find a class definition in a parse tree. - */ -static classDef *findClass(sipSpec *pt,ifaceFileType iftype, - scopedNameDef *fqname) -{ - return findClassWithInterface(pt, findIfaceFile(pt, currentModule, fqname, iftype, NULL)); -} - - -/* - * Find a class definition given an existing interface file. - */ -static classDef *findClassWithInterface(sipSpec *pt, ifaceFileDef *iff) -{ - classDef *cd; - - for (cd = pt -> classes; cd != NULL; cd = cd -> next) - if (cd -> iff == iff) - return cd; - - /* Create a new one. */ - cd = sipMalloc(sizeof (classDef)); - - cd -> iff = iff; - cd -> pyname = classBaseName(cd); - cd -> classnr = -1; - cd -> classflags = 0; - cd -> userflags = 0; - cd -> ecd = NULL; - cd -> dtorexceptions = NULL; - cd -> real = NULL; - cd -> node = NULL; - cd -> supers = NULL; - cd -> mro = NULL; - cd -> td = NULL; - cd -> ctors = NULL; - cd -> defctor = NULL; - cd -> dealloccode = NULL; - cd -> dtorcode = NULL; - cd -> members = NULL; - cd -> overs = NULL; - cd -> casts = NULL; - cd -> vmembers = NULL; - cd -> visible = NULL; - cd -> cppcode = NULL; - cd -> hdrcode = NULL; - cd -> convtosubcode = NULL; - cd -> subbase = NULL; - cd -> convtocode = NULL; - cd -> travcode = NULL; - cd -> clearcode = NULL; - cd -> readbufcode = NULL; - cd -> writebufcode = NULL; - cd -> segcountcode = NULL; - cd -> charbufcode = NULL; - cd -> next = pt -> classes; - - pt -> classes = cd; - - return cd; -} - - -/* - * Add an interface file to an interface file list if it isn't already there. - */ -ifaceFileList *addToUsedList(ifaceFileList **ifflp, ifaceFileDef *iff) -{ - ifaceFileList *iffl; - - while ((iffl = *ifflp) != NULL) - { - /* Don't bother if it is already there. */ - if (iffl -> iff == iff) - return iffl; - - ifflp = &iffl -> next; - } - - iffl = sipMalloc(sizeof (ifaceFileList)); - - iffl->iff = iff; - iffl->header = FALSE; - iffl->next = NULL; - - *ifflp = iffl; - - return iffl; -} - - -/* - * Find an undefined (or create a new) exception definition in a parse tree. - */ -static exceptionDef *findException(sipSpec *pt, scopedNameDef *fqname, int new) -{ - exceptionDef *xd, **tail; - ifaceFileDef *iff; - classDef *cd; - - iff = findIfaceFile(pt, currentModule, fqname, exception_iface, NULL); - - /* See if it is an existing one. */ - for (xd = pt->exceptions; xd != NULL; xd = xd->next) - if (xd->iff == iff) - return xd; - - /* - * If it is an exception interface file then we have never seen this - * name before. We require that exceptions are defined before being - * used, but don't make the same requirement of classes (for reasons of - * backwards compatibility). Therefore the name must be reinterpreted - * as a (as yet undefined) class. - */ - if (new) - if (iff->type == exception_iface) - cd = NULL; - else - yyerror("There is already a class with the same name or the exception has been used before being defined"); - else - { - if (iff->type == exception_iface) - iff->type = class_iface; - - cd = findClassWithInterface(pt, iff); - } - - /* Create a new one. */ - xd = sipMalloc(sizeof (exceptionDef)); - - xd->exceptionnr = -1; - xd->iff = iff; - xd->pyname = NULL; - xd->cd = cd; - xd->bibase = NULL; - xd->base = NULL; - xd->hdrcode = NULL; - xd->raisecode = NULL; - xd->next = NULL; - - /* Append it to the list. */ - for (tail = &pt->exceptions; *tail != NULL; tail = &(*tail)->next) - ; - - *tail = xd; - - return xd; -} - - -/* - * Find an undefined (or create a new) class definition in a parse tree. - */ -static classDef *newClass(sipSpec *pt,ifaceFileType iftype, - scopedNameDef *fqname) -{ - int flags; - classDef *cd, *scope; - codeBlock *hdrcode; - - if (sectionFlags & SECT_IS_PRIVATE) - yyerror("Classes, structs and namespaces must be in the public or or protected sections"); - - flags = 0; - - if ((scope = currentScope()) != NULL) - { - if (sectionFlags & SECT_IS_PROT) - flags = CLASS_IS_PROTECTED; - - hdrcode = scope -> hdrcode; - } - else - hdrcode = NULL; - - if (pt -> genc) - { - /* C structs are always global types. */ - while (fqname -> next != NULL) - fqname = fqname -> next; - - scope = NULL; - } - - cd = findClass(pt,iftype,fqname); - - /* Check it hasn't already been defined. */ - if (iftype != namespace_iface && cd->iff->module != NULL) - yyerror("The struct/class has already been defined"); - - /* Complete the initialisation. */ - cd->classflags |= flags; - cd->ecd = scope; - cd->iff->module = currentModule; - - appendCodeBlock(&cd->hdrcode, hdrcode); - - /* See if it is a namespace extender. */ - if (iftype == namespace_iface) - { - classDef *ns; - - for (ns = pt->classes; ns != NULL; ns = ns->next) - { - if (ns == cd) - continue; - - if (ns->iff->type != namespace_iface) - continue; - - if (!sameScopedName(ns->iff->fqcname, fqname)) - continue; - - cd->real = ns; - break; - } - } - - return cd; -} - - -/* - * Tidy up after finishing a class definition. - */ -static void finishClass(sipSpec *pt, moduleDef *mod, classDef *cd, optFlags *of) -{ - char *pyname; - optFlag *flg; - - /* Get the Python name and see if it is different to the C++ name. */ - pyname = getPythonName(of, classBaseName(cd)); - - cd -> pyname = NULL; - checkAttributes(pt, cd->ecd, pyname, FALSE); - cd->pyname = pyname; - - if (cd->pyname != classBaseName(cd)) - setIsRenamedClass(cd); - - if ((flg = findOptFlag(of, "TypeFlags", integer_flag)) != NULL) - cd->userflags = flg->fvalue.ival; - - if (isOpaque(cd)) - { - if (findOptFlag(of, "External", bool_flag) != NULL) - setIsExternal(cd); - } - else - { - int seq_might, seq_not; - memberDef *md; - - if (findOptFlag(of, "NoDefaultCtors", bool_flag) != NULL) - setNoDefaultCtors(cd); - - if (cd -> ctors == NULL) - { - if (!noDefaultCtors(cd)) - { - /* Provide a default ctor. */ - - cd->ctors = sipMalloc(sizeof (ctorDef)); - - cd->ctors->ctorflags = SECT_IS_PUBLIC; - cd->ctors->pysig.nrArgs = 0; - cd->ctors->cppsig = &cd -> ctors -> pysig; - cd->ctors->exceptions = NULL; - cd->ctors->methodcode = NULL; - cd->ctors->prehook = NULL; - cd->ctors->posthook = NULL; - cd->ctors->next = NULL; - - cd->defctor = cd->ctors; - - setCanCreate(cd); - } - } - else if (cd -> defctor == NULL) - { - ctorDef *ct, *last = NULL; - - for (ct = cd -> ctors; ct != NULL; ct = ct -> next) - { - if (!isPublicCtor(ct)) - continue; - - if (ct -> pysig.nrArgs == 0 || ct -> pysig.args[0].defval != NULL) - { - cd -> defctor = ct; - break; - } - - if (last == NULL) - last = ct; - } - - /* The last resort is the first public ctor. */ - if (cd->defctor == NULL) - cd->defctor = last; - } - - if (findOptFlag(of,"Abstract",bool_flag) != NULL) - { - setIsAbstractClass(cd); - setIsIncomplete(cd); - resetCanCreate(cd); - } - - /* We assume a public dtor if nothing specific was provided. */ - if (!isDtor(cd)) - setIsPublicDtor(cd); - - if (findOptFlag(of, "DelayDtor", bool_flag) != NULL) - { - setIsDelayedDtor(cd); - setHasDelayedDtors(mod); - } - - /* - * There are subtle differences between the add and concat methods and - * the multiply and repeat methods. The number versions can have their - * operands swapped and may return NotImplemented. If the user has - * used the /Numeric/ annotation or there are other numeric operators - * then we use add/multiply. Otherwise, if there are indexing - * operators then we use concat/repeat. - */ - seq_might = seq_not = FALSE; - - for (md = cd -> members; md != NULL; md = md -> next) - switch (md -> slot) - { - case getitem_slot: - case setitem_slot: - case delitem_slot: - /* This might be a sequence. */ - seq_might = TRUE; - break; - - case sub_slot: - case isub_slot: - case div_slot: - case idiv_slot: - case mod_slot: - case imod_slot: - case pos_slot: - case neg_slot: - /* This is definately not a sequence. */ - seq_not = TRUE; - break; - } - - if (!seq_not && seq_might) - for (md = cd -> members; md != NULL; md = md -> next) - { - /* Ignore if the user has been explicit. */ - if (isNumeric(md)) - continue; - - switch (md -> slot) - { - case add_slot: - md -> slot = concat_slot; - break; - - case iadd_slot: - md -> slot = iconcat_slot; - break; - - case mul_slot: - md -> slot = repeat_slot; - break; - - case imul_slot: - md -> slot = irepeat_slot; - break; - } - } - } - - if (inMainModule()) - { - setIsUsedName(cd->iff->name); - setIsClassName(cd->iff->name); - } -} - - -/* - * Create a new mapped type. - */ -static mappedTypeDef *newMappedType(sipSpec *pt,argDef *ad) -{ - mappedTypeDef *mtd; - scopedNameDef *snd; - ifaceFileDef *iff; - - /* Check that the type is one we want to map. */ - switch (ad -> atype) - { - case defined_type: - snd = ad -> u.snd; - break; - - case template_type: - snd = ad -> u.td -> fqname; - break; - - case struct_type: - snd = ad -> u.sname; - break; - - default: - yyerror("Invalid type for %MappedType"); - } - - iff = findIfaceFile(pt, currentModule, snd, mappedtype_iface, ad); - - if (inMainModule()) - setIsUsedName(iff -> name); - - /* Check it hasn't already been defined. */ - for (mtd = pt -> mappedtypes; mtd != NULL; mtd = mtd -> next) - if (mtd -> iff == iff) - { - /* - * We allow types based on the same template but with - * different arguments. - */ - - if (ad -> atype != template_type || - sameBaseType(ad,&mtd -> type)) - yyerror("Mapped type has already been defined in this module"); - } - - /* The module may not have been set yet. */ - iff -> module = currentModule; - - /* Create a new mapped type. */ - mtd = allocMappedType(ad); - - mtd -> iff = iff; - mtd -> next = pt -> mappedtypes; - - pt -> mappedtypes = mtd; - - return mtd; -} - - -/* - * Allocate, intialise and return a mapped type structure. - */ -mappedTypeDef *allocMappedType(argDef *type) -{ - mappedTypeDef *mtd; - - mtd = sipMalloc(sizeof (mappedTypeDef)); - - mtd->type = *type; - mtd->type.argflags = 0; - mtd->type.nrderefs = 0; - - mtd->mappednr = -1; - mtd->iff = NULL; - mtd->hdrcode = NULL; - mtd->convfromcode = NULL; - mtd->convtocode = NULL; - mtd->next = NULL; - - return mtd; -} - - -/* - * Create a new enum. - */ -static enumDef *newEnum(sipSpec *pt,moduleDef *mod,char *name,optFlags *of, - int flags) -{ - enumDef *ed; - classDef *escope = currentScope(); - - ed = sipMalloc(sizeof (enumDef)); - - if (name != NULL) - { - ed -> fqcname = text2scopedName(name); - ed -> pyname = cacheName(pt, getPythonName(of, name)); - - checkAttributes(pt, escope, ed->pyname->text, FALSE); - } - else - { - ed -> fqcname = NULL; - ed -> pyname = NULL; - } - - ed -> enumflags = flags; - ed -> enumnr = -1; - ed -> ecd = escope; - ed -> pcd = (flags & SECT_IS_PROT) ? escope : NULL; - ed -> module = mod; - ed -> members = NULL; - ed -> slots = NULL; - ed -> overs = NULL; - ed -> next = pt -> enums; - - if (name != NULL && strcmp(ed->pyname->text, name) != 0) - setIsRenamedEnum(ed); - - pt -> enums = ed; - - if (escope != NULL) - setHasEnums(escope); - - return ed; -} - - -/* - * Get the type values and (optionally) the type names for substitution in - * handwritten code. - */ -void appendTypeStrings(scopedNameDef *ename, signatureDef *patt, signatureDef *src, signatureDef *known, scopedNameDef **names, scopedNameDef **values) -{ - int a; - - for (a = 0; a < patt->nrArgs; ++a) - { - argDef *pad = &patt->args[a]; - - if (pad->atype == defined_type) - { - char *nam = NULL; - - /* - * If the type names are already known then check that - * this is one of them. - */ - if (known == NULL) - nam = scopedNameTail(pad->u.snd); - else if (pad->u.snd->next == NULL) - { - int k; - - for (k = 0; k < known->nrArgs; ++k) - if (strcmp(pad->u.snd->name, known->args[k].u.snd->name) == 0) - { - nam = pad->u.snd->name; - break; - } - } - - if (nam == NULL) - continue; - - /* Add the name. */ - appendScopedName(names, text2scopePart(nam)); - - /* Add the corresponding value. */ - appendScopedName(values, text2scopePart(getType(ename, &src->args[a]))); - } - else if (pad->atype == template_type) - { - argDef *sad = &src->args[a]; - - /* These checks shouldn't be necessary, but... */ - if (sad->atype == template_type && pad->u.td->types.nrArgs == sad->u.td->types.nrArgs) - appendTypeStrings(ename, &pad->u.td->types, &sad->u.td->types, known, names, values); - } - } -} - - -/* - * Convert a type to a string. We impose some limitations because I'm too lazy - * to handle everything that might be needed one day. - */ -static char *getType(scopedNameDef *ename, argDef *ad) -{ - if (ad->atype == defined_type) - return scopedNameToString(ad->u.snd); - - fatalScopedName(ename); - fatal(": unsupported type argument to template class instantiation\n"); - - return NULL; -} - - -/* - * Convert a scoped name to a string on the heap. - */ -static char *scopedNameToString(scopedNameDef *name) -{ - static const char scope_string[] = "::"; - size_t len; - scopedNameDef *snd; - char *s, *dp; - - /* Work out the length of buffer needed. */ - len = 0; - - for (snd = name; snd != NULL; snd = snd->next) - { - len += strlen(snd->name); - - if (snd->next != NULL) - len += strlen(scope_string); - } - - /* Allocate and populate the buffer. */ - dp = s = sipMalloc(len + 1); - - for (snd = name; snd != NULL; snd = snd->next) - { - strcpy(dp, snd->name); - dp += strlen(snd->name); - - if (snd->next != NULL) - { - strcpy(dp, scope_string); - dp += strlen(scope_string); - } - } - - return s; -} - - -/* - * Instantiate a class template. - */ -static void instantiateClassTemplate(sipSpec *pt, moduleDef *mod, classDef *scope, scopedNameDef *fqname, classTmplDef *tcd, templateDef *td) -{ - scopedNameDef *type_names, *type_values; - classDef *cd; - ctorDef *oct, **cttail; - memberDef *omd, **mdtail; - overDef *ood, **odtail; - argDef *ad; - ifaceFileList *iffl, **used; - - type_names = type_values = NULL; - appendTypeStrings(classFQCName(tcd->cd), &tcd->sig, &td->types, NULL, &type_names, &type_values); - - /* - * Add a mapping from the template name to the instantiated name. If - * we have got this far we know there is room for it. - */ - ad = &tcd->sig.args[tcd->sig.nrArgs++]; - ad->atype = defined_type; - ad->name = NULL; - ad->argflags = 0; - ad->nrderefs = 0; - ad->defval = NULL; - ad->u.snd = classFQCName(tcd->cd); - - appendScopedName(&type_names, text2scopePart(scopedNameTail(classFQCName(tcd->cd)))); - appendScopedName(&type_values, text2scopePart(scopedNameToString(fqname))); - - /* Create the new class. */ - cd = sipMalloc(sizeof (classDef)); - - /* Start with a shallow copy. */ - *cd = *tcd->cd; - - cd->pyname = scopedNameTail(fqname); - cd->td = td; - - /* Handle the interface file. */ - cd->iff = findIfaceFile(pt, mod, fqname, class_iface, NULL); - cd->iff->module = mod; - - /* Make a copy of the used list and add the enclosing scope. */ - used = &cd->iff->used; - - for (iffl = tcd->cd->iff->used; iffl != NULL; iffl = iffl->next) - addToUsedList(used, iffl->iff); - - if (scope != NULL) - addToUsedList(&cd->iff->used, scope->iff); - - if (inMainModule()) - { - setIsUsedName(cd->iff->name); - setIsClassName(cd->iff->name); - } - - cd->ecd = currentScope(); - - /* Handle the ctors. */ - cd->ctors = NULL; - cttail = &cd->ctors; - - for (oct = tcd->cd->ctors; oct != NULL; oct = oct->next) - { - ctorDef *nct = sipMalloc(sizeof (ctorDef)); - - /* Start with a shallow copy. */ - *nct = *oct; - - templateSignature(&nct->pysig, FALSE, tcd, td, cd); - - if (oct->cppsig == NULL) - nct->cppsig = NULL; - else if (oct->cppsig == &oct->pysig) - nct->cppsig = &nct->pysig; - else - { - nct->cppsig = sipMalloc(sizeof (signatureDef)); - - *nct->cppsig = *oct->cppsig; - - templateSignature(nct->cppsig, FALSE, tcd, td, cd); - } - - nct->methodcode = templateCode(pt, used, nct->methodcode, type_names, type_values); - - nct->next = NULL; - *cttail = nct; - cttail = &nct->next; - - /* Handle the default ctor. */ - if (tcd->cd->defctor == oct) - cd->defctor = nct; - } - - cd->dealloccode = templateCode(pt, used, cd->dealloccode, type_names, type_values); - cd->dtorcode = templateCode(pt, used, cd->dtorcode, type_names, type_values); - - /* Handle the members, ie. the common parts of overloads. */ - cd->members = NULL; - mdtail = &cd->members; - - for (omd = tcd->cd->members; omd != NULL; omd = omd->next) - { - memberDef *nmd = sipMalloc(sizeof (memberDef)); - - /* Start with a shallow copy. */ - *nmd = *omd; - - nmd->module = mod; - - nmd->next = NULL; - *mdtail = nmd; - mdtail = &nmd->next; - } - - /* Handle the overloads. */ - cd->overs = NULL; - odtail = &cd->overs; - - for (ood = tcd->cd->overs; ood != NULL; ood = ood->next) - { - overDef *nod = sipMalloc(sizeof (overDef)); - memberDef *nmd; - - /* Start with a shallow copy. */ - *nod = *ood; - - for (nmd = cd->members, omd = tcd->cd->members; omd != NULL; omd = omd->next, nmd = nmd->next) - if (omd == ood->common) - { - nod->common = nmd; - break; - } - - templateSignature(&nod->pysig, TRUE, tcd, td, cd); - - if (ood->cppsig == &ood->pysig) - nod->cppsig = &nod->pysig; - else - { - nod->cppsig = sipMalloc(sizeof (signatureDef)); - - *nod->cppsig = *ood->cppsig; - - templateSignature(nod->cppsig, TRUE, tcd, td, cd); - } - - nod->methodcode = templateCode(pt, used, nod->methodcode, type_names, type_values); - - /* Handle any virtual handler. */ - if (ood->virthandler != NULL) - { - nod->virthandler = sipMalloc(sizeof (virtHandlerDef)); - - /* Start with a shallow copy. */ - *nod->virthandler = *ood->virthandler; - - if (ood->virthandler->cppsig == &ood->pysig) - nod->virthandler->cppsig = &nod->pysig; - else - { - nod->virthandler->cppsig = sipMalloc(sizeof (signatureDef)); - - *nod->virthandler->cppsig = *ood->virthandler->cppsig; - - templateSignature(nod->virthandler->cppsig, TRUE, tcd, td, cd); - } - - nod->virthandler->module = mod; - nod->virthandler->virtcode = templateCode(pt, used, nod->virthandler->virtcode, type_names, type_values); - nod->virthandler->next = mod->virthandlers; - - mod->virthandlers = nod->virthandler; - } - - nod->next = NULL; - *odtail = nod; - odtail = &nod->next; - } - - cd->cppcode = templateCode(pt, used, cd->cppcode, type_names, type_values); - cd->hdrcode = templateCode(pt, used, cd->hdrcode, type_names, type_values); - cd->convtosubcode = templateCode(pt, used, cd->convtosubcode, type_names, type_values); - cd->convtocode = templateCode(pt, used, cd->convtocode, type_names, type_values); - cd->travcode = templateCode(pt, used, cd->travcode, type_names, type_values); - cd->clearcode = templateCode(pt, used, cd->clearcode, type_names, type_values); - cd->readbufcode = templateCode(pt, used, cd->readbufcode, type_names, type_values); - cd->writebufcode = templateCode(pt, used, cd->writebufcode, type_names, type_values); - cd->segcountcode = templateCode(pt, used, cd->segcountcode, type_names, type_values); - cd->charbufcode = templateCode(pt, used, cd->charbufcode, type_names, type_values); - cd->next = pt->classes; - - pt->classes = cd; - - tcd->sig.nrArgs--; - - freeScopedName(type_names); - freeScopedName(type_values); -} - - -/* - * Replace any template arguments in a signature. - */ -static void templateSignature(signatureDef *sd, int result, classTmplDef *tcd, templateDef *td, classDef *ncd) -{ - int a; - - if (result) - templateType(&sd->result, tcd, td, ncd); - - for (a = 0; a < sd->nrArgs; ++a) - templateType(&sd->args[a], tcd, td, ncd); -} - - -/* - * Replace any template arguments in a type. - */ -static void templateType(argDef *ad, classTmplDef *tcd, templateDef *td, classDef *ncd) -{ - int a; - char *name; - - /* Ignore if it isn't an unscoped name. */ - if (ad->atype != defined_type || ad->u.snd->next != NULL) - return; - - name = ad->u.snd->name; - - for (a = 0; a < tcd->sig.nrArgs - 1; ++a) - if (strcmp(name, scopedNameTail(tcd->sig.args[a].u.snd)) == 0) - { - ad->atype = td->types.args[a].atype; - - /* We take the constrained flag from the real type. */ - resetIsConstrained(ad); - - if (isConstrained(&td->types.args[a])) - setIsConstrained(ad); - - ad->u = td->types.args[a].u; - - return; - } - - /* Handle the class name itself. */ - if (strcmp(name, scopedNameTail(classFQCName(tcd->cd))) == 0) - { - ad->atype = class_type; - ad->u.cd = ncd; - } -} - - -/* - * Replace any template arguments in a literal code block. - */ -codeBlock *templateCode(sipSpec *pt, ifaceFileList **used, codeBlock *ocb, scopedNameDef *names, scopedNameDef *values) -{ - codeBlock *ncb = NULL, **tail = &ncb; - - while (ocb != NULL) - { - char *at = ocb->frag; - - do - { - char *first = NULL; - codeBlock *cb; - scopedNameDef *nam, *val, *nam_first, *val_first; - - /* - * Go through the rest of this fragment looking for - * each of the types and the name of the class itself. - */ - nam = names; - val = values; - - while (nam != NULL && val != NULL) - { - char *cp; - - if ((cp = strstr(at, nam->name)) != NULL) - if (first == NULL || first > cp) - { - nam_first = nam; - val_first = val; - first = cp; - } - - nam = nam->next; - val = val->next; - } - - /* Create the new fragment. */ - cb = sipMalloc(sizeof (codeBlock)); - - if (at == ocb->frag) - { - cb->filename = ocb->filename; - cb->linenr = ocb->linenr; - } - else - cb->filename = NULL; - - cb->next = NULL; - *tail = cb; - tail = &cb->next; - - /* See if anything was found. */ - if (first == NULL) - { - /* We can just point to this. */ - cb->frag = at; - - /* All done with this one. */ - at = NULL; - } - else - { - static char *gen_names[] = { - "sipForceConvertToTransfer_", - "sipForceConvertTo_", - "sipConvertFromTransfer_", - "sipConvertFrom_", - "sipClass_", - "sipEnum_", - "sipException_", - NULL - }; - - char *dp, *sp, **gn; - int genname = FALSE; - - /* - * If the context in which the text is used is - * in the name of a SIP generated object then - * translate any "::" scoping to "_". - */ - for (gn = gen_names; *gn != NULL; ++gn) - if (search_back(first, at, *gn)) - { - addUsedFromCode(pt, used, val_first->name); - genname = TRUE; - break; - } - - /* Fragment the fragment. */ - cb->frag = sipMalloc(first - at + strlen(val_first->name) + 1); - - strncpy(cb->frag, at, first - at); - - dp = &cb->frag[first - at]; - sp = val_first->name; - - if (genname) - { - char gch; - - while ((gch = *sp++) != '\0') - if (gch == ':' && *sp == ':') - { - *dp++ = '_'; - ++sp; - } - else - *dp++ = gch; - - *dp = '\0'; - } - else - strcpy(dp, sp); - - /* Move past the replaced text. */ - at = first + strlen(nam_first->name); - } - } - while (at != NULL && *at != '\0'); - - ocb = ocb->next; - } - - return ncb; -} - - -/* - * Return TRUE if the text at the end of a string matches the target string. - */ -static int search_back(const char *end, const char *start, const char *target) -{ - size_t tlen = strlen(target); - - if (start + tlen >= end) - return FALSE; - - return (strncmp(end - tlen, target, tlen) == 0); -} - - -/* - * Add any needed interface files based on handwritten code. - */ -static void addUsedFromCode(sipSpec *pt, ifaceFileList **used, const char *sname) -{ - ifaceFileDef *iff; - enumDef *ed; - - for (iff = pt->ifacefiles; iff != NULL; iff = iff->next) - { - if (iff->type != class_iface && iff->type != exception_iface) - continue; - - if (sameName(iff->fqcname, sname)) - { - addToUsedList(used, iff); - - return; - } - } - - for (ed = pt->enums; ed != NULL; ed = ed->next) - { - if (ed->ecd == NULL) - continue; - - if (sameName(ed->fqcname, sname)) - { - addToUsedList(used, ed->ecd->iff); - - return; - } - } -} - - -/* - * Compare a scoped name with its string equivalent. - */ -static int sameName(scopedNameDef *snd, const char *sname) -{ - while (snd != NULL && *sname != '\0') - { - const char *sp = snd->name; - - while (*sp != '\0' && *sname != ':' && *sname != '\0') - if (*sp++ != *sname++) - return FALSE; - - if (*sp != '\0' || (*sname != ':' && *sname != '\0')) - return FALSE; - - snd = snd->next; - - if (*sname == ':') - sname += 2; - } - - return (snd == NULL && *sname == '\0'); -} - - -/* - * Create a new typedef. - */ -static void newTypedef(sipSpec *pt,moduleDef *mod,char *name,argDef *type) -{ - typedefDef *td; - scopedNameDef *fqname = text2scopedName(name); - classDef *scope = currentScope(); - - /* See if we are instantiating a template class. */ - if (type->atype == template_type) - { - classTmplDef *tcd; - templateDef *td = type->u.td; - - for (tcd = pt->classtemplates; tcd != NULL; tcd = tcd->next) - if (sameScopedName(tcd->cd->iff->fqcname, td->fqname)) - { - if (!sameTemplateSignature(&tcd->sig, &td->types, FALSE)) - continue; - - instantiateClassTemplate(pt, mod, scope, fqname, tcd, td); - - /* All done. */ - return; - } - } - - /* Check it doesn't already exist. */ - for (td = pt -> typedefs; td != NULL; td = td -> next) - if (sameScopedName(td -> fqname,fqname)) - { - fatalScopedName(fqname); - fatal(" already defined\n"); - } - - td = sipMalloc(sizeof (typedefDef)); - - td -> fqname = fqname; - td -> ecd = scope; - td -> module = mod; - td -> type = *type; - td -> next = pt -> typedefs; - - mod -> nrtypedefs++; - - pt -> typedefs = td; -} - - -/* - * Return TRUE if the template signatures are the same. A deep comparison is - * used for mapped type templates where we want to recurse into any nested - * templates. - */ -int sameTemplateSignature(signatureDef *sd1, signatureDef *sd2, int deep) -{ - int a; - - if (sd1->nrArgs != sd2->nrArgs) - return FALSE; - - for (a = 0; a < sd1->nrArgs; ++a) - { - argDef *ad1 = &sd1->args[a]; - argDef *ad2 = &sd2->args[a]; - - /* - * If we are doing a shallow comparision (ie. for class - * templates) then a type name on the left hand side matches - * anything on the right hand side. - */ - if (ad1->atype == defined_type && !deep) - continue; - - /* - * For type names only compare the references and pointers, and - * do the same for any nested templates. - */ - if (ad1->atype == defined_type && ad2->atype == defined_type) - { - if (isReference(ad1) != isReference(ad2) || ad1->nrderefs != ad2->nrderefs) - return FALSE; - } - else if (ad1->atype == template_type && ad2->atype == template_type) - { - if (!sameTemplateSignature(&ad1->u.td->types, &ad2->u.td->types, deep)) - return FALSE; - } - else if (!sameBaseType(ad1, ad2)) - return FALSE; - } - - return TRUE; -} - - -/* - * Create a new variable. - */ -static void newVar(sipSpec *pt,moduleDef *mod,char *name,int isstatic, - argDef *type,optFlags *of,codeBlock *acode,codeBlock *gcode, - codeBlock *scode) -{ - varDef *var; - classDef *escope = currentScope(); - nameDef *nd = cacheName(pt,getPythonName(of,name)); - - if (inMainModule()) - setIsUsedName(nd); - - checkAttributes(pt,escope,nd -> text,FALSE); - - var = sipMalloc(sizeof (varDef)); - - var -> pyname = nd; - var -> fqcname = text2scopedName(name); - var -> ecd = escope; - var -> module = mod; - var -> varflags = 0; - var -> type = *type; - var -> accessfunc = acode; - var -> getcode = gcode; - var -> setcode = scode; - var -> next = pt -> vars; - - if (isstatic || (escope != NULL && escope->iff->type == namespace_iface)) - setIsStaticVar(var); - - pt -> vars = var; -} - - -/* - * Create a new ctor. - */ -static void newCtor(char *name,int sectFlags,signatureDef *args, - optFlags *optflgs,codeBlock *methodcode, - throwArgs *exceptions,signatureDef *cppsig,int explicit) -{ - ctorDef *ct, **ctp; - classDef *cd = currentScope(); - - /* Check the name of the constructor. */ - if (strcmp(classBaseName(cd),name) != 0) - yyerror("Constructor doesn't have the same name as its class"); - - /* Add to the list of constructors. */ - ct = sipMalloc(sizeof (ctorDef)); - - ct -> ctorflags = sectFlags; - ct -> pysig = *args; - ct -> cppsig = (cppsig != NULL ? cppsig : &ct -> pysig); - ct -> exceptions = exceptions; - ct -> methodcode = methodcode; - ct -> next = NULL; - - if (!isPrivateCtor(ct)) - setCanCreate(cd); - - if (isProtectedCtor(ct)) - setHasShadow(cd); - - if (explicit) - setIsExplicitCtor(ct); - - getHooks(optflgs,&ct -> prehook,&ct -> posthook); - - if (getReleaseGIL(optflgs)) - setIsReleaseGILCtor(ct); - else if (getHoldGIL(optflgs)) - setIsHoldGILCtor(ct); - - if (findOptFlag(optflgs,"NoDerived",bool_flag) != NULL) - { - if (cppsig != NULL) - yyerror("The /NoDerived/ annotation cannot be used with a C++ signature"); - - if (methodcode == NULL) - yyerror("The /NoDerived/ annotation must be used with %MethodCode"); - - ct->cppsig = NULL; - } - - if (findOptFlag(optflgs,"Default",bool_flag) != NULL) - { - if (cd -> defctor != NULL) - yyerror("A constructor with the /Default/ annotation has already been defined"); - - cd -> defctor = ct; - } - - /* Append to the list. */ - for (ctp = &cd->ctors; *ctp != NULL; ctp = &(*ctp)->next) - ; - - *ctp = ct; -} - - -/* - * Create a new function. - */ -static void newFunction(sipSpec *pt,moduleDef *mod,int sflags,int isstatic, - int isvirt,char *name,signatureDef *sig,int isconst, - int isabstract,optFlags *optflgs,codeBlock *methodcode, - codeBlock *vcode,throwArgs *exceptions, - signatureDef *cppsig) -{ - classDef *cd = currentScope(); - nameDef *pname; - int factory, xferback; - overDef *od, **odp, **headp; - optFlag *of; - virtHandlerDef *vhd; - - /* Extra checks for a C module. */ - if (pt -> genc) - { - if (cd != NULL) - yyerror("Function declaration not allowed in a struct in a C module"); - - if (isstatic) - yyerror("Static functions not allowed in a C module"); - - if (exceptions != NULL) - yyerror("Exceptions not allowed in a C module"); - } - - headp = (cd != NULL ? &cd -> overs : &pt -> overs); - - /* See if it is a factory method. */ - if (findOptFlag(optflgs,"Factory",bool_flag) != NULL) - factory = TRUE; - else - { - int a; - - factory = FALSE; - - /* Check /TransferThis/ wasn't specified. */ - if (cd == NULL || isstatic) - for (a = 0; a < sig -> nrArgs; ++a) - if (isThisTransferred(&sig -> args[a])) - yyerror("/TransferThis/ may only be specified in constructors and class methods"); - } - - /* See if the result is to be returned to Python ownership. */ - xferback = (findOptFlag(optflgs,"TransferBack",bool_flag) != NULL); - - if (factory && xferback) - yyerror("/TransferBack/ and /Factory/ cannot both be specified"); - - /* Use the C++ name if a Python name wasn't given. */ - pname = cacheName(pt, getPythonName(optflgs, name)); - - /* Create a new overload definition. */ - - od = sipMalloc(sizeof (overDef)); - - /* Set the overload flags. */ - - od -> overflags = sflags; - - if (factory) - setIsFactory(od); - - if (xferback) - setIsResultTransferredBack(od); - - if (isProtected(od)) - setHasShadow(cd); - - if ((isSlot(od) || isSignal(od)) && !isPrivate(od)) - { - if (isSignal(od)) - setHasShadow(cd); - - pt -> sigslots = TRUE; - } - - if (isSignal(od) && (methodcode != NULL || vcode != NULL)) - yyerror("Cannot provide code for signals"); - - if (isstatic) - { - if (isSignal(od)) - yyerror("Static functions cannot be signals"); - - if (isvirt) - yyerror("Static functions cannot be virtual"); - - setIsStatic(od); - } - - if (isconst) - setIsConst(od); - - if (isabstract) - { - if (sflags == 0) - yyerror("Non-class function specified as abstract"); - - setIsAbstract(od); - } - - if ((of = findOptFlag(optflgs,"AutoGen",opt_name_flag)) != NULL) - { - setIsAutoGen(od); - - if (of -> fvalue.sval != NULL) - { - qualDef *qd; - - if ((qd = findQualifier(of -> fvalue.sval)) == NULL || qd -> qtype != feature_qualifier) - yyerror("No such feature"); - - if (excludedFeature(excludedQualifiers,qd)) - resetIsAutoGen(od); - } - } - - if (isvirt) - { - if (isSignal(od) && !optNoEmitters(pt)) - yyerror("Virtual signals aren't supported"); - - setIsVirtual(od); - setHasShadow(cd); - - vhd = sipMalloc(sizeof (virtHandlerDef)); - - vhd -> virthandlernr = -1; - vhd -> vhflags = 0; - vhd -> pysig = &od -> pysig; - vhd -> cppsig = (cppsig != NULL ? cppsig : &od -> pysig); - vhd -> module = currentModule; - vhd -> virtcode = vcode; - vhd -> next = currentModule -> virthandlers; - - if (factory || xferback) - setIsTransferVH(vhd); - - currentModule -> virthandlers = vhd; - } - else - { - if (vcode != NULL) - yyerror("%VirtualCatcherCode provided for non-virtual function"); - - vhd = NULL; - } - - od -> cppname = name; - od -> pysig = *sig; - od -> cppsig = (cppsig != NULL ? cppsig : &od -> pysig); - od -> exceptions = exceptions; - od -> methodcode = methodcode; - od -> virthandler = vhd; - od -> common = findFunction(pt,mod,cd,pname,(methodcode != NULL),sig -> nrArgs); - - if (findOptFlag(optflgs,"Numeric",bool_flag) != NULL) - setIsNumeric(od -> common); - - /* Methods that run in new threads must be virtual. */ - if (findOptFlag(optflgs,"NewThread",bool_flag) != NULL) - { - argDef *res; - - if (!isvirt) - yyerror("/NewThread/ may only be specified for virtual functions"); - - /* - * This is an arbitary limitation to make the code generator - * slightly easier - laziness on my part. - */ - res = &od -> cppsig -> result; - - if (res -> atype != void_type || res -> nrderefs != 0) - yyerror("/NewThread/ may only be specified for void functions"); - - setIsNewThread(od); - } - - getHooks(optflgs,&od -> prehook,&od -> posthook); - - if (getReleaseGIL(optflgs)) - setIsReleaseGIL(od); - else if (getHoldGIL(optflgs)) - setIsHoldGIL(od); - - od -> next = NULL; - - /* Append to the list. */ - for (odp = headp; *odp != NULL; odp = &(*odp)->next) - ; - - *odp = od; -} - - -/* - * Return the Python name based on the C/C++ name and any /PyName/ annotation. - */ -static char *getPythonName(optFlags *optflgs, char *cname) -{ - char *pname; - optFlag *of; - - if ((of = findOptFlag(optflgs, "PyName", name_flag)) != NULL) - pname = of -> fvalue.sval; - else - pname = cname; - - return pname; -} - - -/* - * Cache a name in a module. - */ -static nameDef *cacheName(sipSpec *pt,char *name) -{ - nameDef *nd; - - /* See if it already exists. */ - for (nd = pt -> namecache; nd != NULL; nd = nd -> next) - if (strcmp(nd -> text,name) == 0) - return nd; - - /* Create a new one. */ - nd = sipMalloc(sizeof (nameDef)); - - nd -> nameflags = 0; - nd -> module = currentSpec -> module; - nd -> text = name; - nd -> next = pt -> namecache; - - pt -> namecache = nd; - - return nd; -} - - -/* - * Find (or create) an overloaded function name. - */ -static memberDef *findFunction(sipSpec *pt,moduleDef *mod,classDef *cd, - nameDef *pname,int hwcode,int nrargs) -{ - static struct slot_map { - char *name; /* The slot name. */ - slotType type; /* The corresponding type. */ - int needs_hwcode; /* If handwritten code is required. */ - int nrargs; /* Nr. of arguments. */ - } slot_table[] = { - {"__str__", str_slot, TRUE, 0}, - {"__unicode__", unicode_slot, TRUE, 0}, - {"__int__", int_slot, FALSE, 0}, - {"__long__", long_slot, FALSE, 0}, - {"__float__", float_slot, FALSE, 0}, - {"__len__", len_slot, TRUE, 0}, - {"__contains__", contains_slot, TRUE, 1}, - {"__add__", add_slot, FALSE, 1}, - {"__sub__", sub_slot, FALSE, 1}, - {"__mul__", mul_slot, FALSE, 1}, - {"__div__", div_slot, FALSE, 1}, - {"__mod__", mod_slot, FALSE, 1}, - {"__and__", and_slot, FALSE, 1}, - {"__or__", or_slot, FALSE, 1}, - {"__xor__", xor_slot, FALSE, 1}, - {"__lshift__", lshift_slot, FALSE, 1}, - {"__rshift__", rshift_slot, FALSE, 1}, - {"__iadd__", iadd_slot, FALSE, 1}, - {"__isub__", isub_slot, FALSE, 1}, - {"__imul__", imul_slot, FALSE, 1}, - {"__idiv__", idiv_slot, FALSE, 1}, - {"__imod__", imod_slot, FALSE, 1}, - {"__iand__", iand_slot, FALSE, 1}, - {"__ior__", ior_slot, FALSE, 1}, - {"__ixor__", ixor_slot, FALSE, 1}, - {"__ilshift__", ilshift_slot, FALSE, 1}, - {"__irshift__", irshift_slot, FALSE, 1}, - {"__invert__", invert_slot, FALSE, 0}, - {"__call__", call_slot, FALSE, -1}, - {"__getitem__", getitem_slot, FALSE, -1}, - {"__setitem__", setitem_slot, TRUE, -1}, - {"__delitem__", delitem_slot, TRUE, -1}, - {"__lt__", lt_slot, FALSE, 1}, - {"__le__", le_slot, FALSE, 1}, - {"__eq__", eq_slot, FALSE, 1}, - {"__ne__", ne_slot, FALSE, 1}, - {"__gt__", gt_slot, FALSE, 1}, - {"__ge__", ge_slot, FALSE, 1}, - {"__cmp__", cmp_slot, FALSE, 1}, - {"__nonzero__", nonzero_slot, TRUE, 0}, - {"__neg__", neg_slot, FALSE, 0}, - {"__pos__", pos_slot, FALSE, 0}, - {"__abs__", abs_slot, TRUE, 0}, - {"__repr__", repr_slot, TRUE, 0}, - {"__hash__", hash_slot, TRUE, 0}, - {NULL} - }; - - memberDef *md, **flist; - struct slot_map *sm; - slotType st; - - /* Get the slot type. */ - st = no_slot; - - for (sm = slot_table; sm -> name != NULL; ++sm) - if (strcmp(sm -> name,pname -> text) == 0) - { - if (sm -> needs_hwcode && !hwcode) - yyerror("This Python slot requires %MethodCode"); - - if (sm -> nrargs < 0) - { - int min_nr; - - /* These require a minimum number. */ - switch (sm -> type) - { - case getitem_slot: - case delitem_slot: - min_nr = 1; - break; - - case setitem_slot: - min_nr = 2; - break; - - default: - min_nr = 0; - } - - if (nrargs < min_nr) - yyerror("Insufficient number of arguments to Python slot"); - } - else if (cd == NULL) - { - /* Global operators need one extra argument. */ - if (sm -> nrargs + 1 != nrargs) - yyerror("Incorrect number of arguments to global operator"); - } - else if (sm -> nrargs != nrargs) - yyerror("Incorrect number of arguments to Python slot"); - - st = sm -> type; - - break; - } - - if (inMainModule()) - setIsUsedName(pname); - - /* Check there is no name clash. */ - checkAttributes(pt,cd,pname -> text,TRUE); - - /* See if it already exists. */ - flist = (cd != NULL ? &cd -> members : &pt -> othfuncs); - - for (md = *flist; md != NULL; md = md -> next) - if (md -> pyname == pname && md -> module == mod) - return md; - - /* Create a new one. */ - md = sipMalloc(sizeof (memberDef)); - - md -> pyname = pname; - md -> memberflags = 0; - md -> slot = st; - md -> module = mod; - md -> next = *flist; - - *flist = md; - - /* Global operators are a subset. */ - if (cd == NULL && st != no_slot && st != neg_slot && st != pos_slot && !isNumberSlot(md) && !isRichCompareSlot(md)) - yyerror("Global operators must be either numeric or comparison operators"); - - return md; -} - - -/* - * Search a set of flags for a particular one and check its type. - */ -static optFlag *findOptFlag(optFlags *flgs,char *name,flagType ft) -{ - int f; - - for (f = 0; f < flgs -> nrFlags; ++f) - { - optFlag *of = &flgs -> flags[f]; - - if (strcmp(of -> fname,name) == 0) - { - /* - * An optional name can look like a boolean or a name. - */ - - if (ft == opt_name_flag) - { - if (of -> ftype == bool_flag) - { - of -> ftype = opt_name_flag; - of -> fvalue.sval = NULL; - } - else if (of -> ftype == name_flag) - of -> ftype = opt_name_flag; - } - - if (ft != of -> ftype) - yyerror("Optional flag has a value of the wrong type"); - - return of; - } - } - - return NULL; -} - - -/* - * A name is going to be used as a Python attribute name within a Python scope - * (ie. a Python dictionary), so check against what we already know is going in - * the same scope in case there is a clash. - */ -static void checkAttributes(sipSpec *pt,classDef *pyscope,char *attr,int isfunc) -{ - enumDef *ed; - varDef *vd; - classDef *cd; - - /* Check the enums. */ - - for (ed = pt -> enums; ed != NULL; ed = ed -> next) - { - enumMemberDef *emd; - - if (ed -> ecd != pyscope || ed -> pyname == NULL) - continue; - - if (strcmp(ed->pyname->text, attr) == 0) - yyerror("There is already an enum in scope with the same Python name"); - - for (emd = ed -> members; emd != NULL; emd = emd -> next) - if (strcmp(emd -> pyname -> text, attr) == 0) - yyerror("There is already an enum member in scope with the same Python name"); - } - - /* Check the variables. */ - - for (vd = pt -> vars; vd != NULL; vd = vd -> next) - { - if (vd -> ecd != pyscope) - continue; - - if (strcmp(vd -> pyname -> text, attr) == 0) - yyerror("There is already a variable in scope with the same Python name"); - } - - /* - * Only check the members if this attribute isn't a member because we - * can handle members with the same name in the same scope. - */ - if (!isfunc) - { - memberDef *md, *membs; - - membs = (pyscope != NULL ? pyscope -> members : pt -> othfuncs); - - for (md = membs; md != NULL; md = md -> next) - { - overDef *od, *overs; - - if (strcmp(md -> pyname -> text, attr) != 0) - continue; - - /* Check for a conflict with all overloads. */ - - overs = (pyscope != NULL ? pyscope -> overs : pt -> overs); - - for (od = overs; od != NULL; od = od -> next) - { - if (od -> common != md) - continue; - - yyerror("There is already a function in scope with the same Python name"); - } - } - } - - /* Check the classes. */ - - for (cd = pt -> classes; cd != NULL; cd = cd -> next) - { - if (cd -> ecd != pyscope || cd -> pyname == NULL) - continue; - - if (strcmp(cd->pyname, attr) == 0 && !isExternal(cd)) - yyerror("There is already a class or namespace in scope with the same Python name"); - } - - /* Check the exceptions. */ - - if (pyscope == NULL) - { - exceptionDef *xd; - - for (xd = pt->exceptions; xd != NULL; xd = xd->next) - if (xd->pyname != NULL && strcmp(xd->pyname, attr) == 0) - yyerror("There is already an exception with the same Python name"); - } -} - - -/* - * Append a code block to a list of them. Append is needed to give the - * specifier easy control over the order of the documentation. - */ -static void appendCodeBlock(codeBlock **headp,codeBlock *new) -{ - while (*headp != NULL) - headp = &(*headp) -> next; - - *headp = new; -} - - -/* - * Handle the end of a fully parsed a file. - */ -static void handleEOF() -{ - /* - * Check that the number of nested if's is the same as when we started - * the file. - */ - - if (skipStackPtr > newContext.ifdepth) - fatal("Too many %%If statements in %s\n",previousFile); - - if (skipStackPtr < newContext.ifdepth) - fatal("Too many %%End statements in %s\n",previousFile); -} - - -/* - * Handle the end of a fully parsed a module. - */ -static void handleEOM() -{ - /* Check it has been named. */ - - if (currentModule -> name == NULL) - fatal("No %%Module has been specified for module defined in %s\n",previousFile); - - /* The previous module is now current. */ - - currentModule = newContext.prevmod; -} - - -/* - * Find an existing qualifier. - */ -static qualDef *findQualifier(char *name) -{ - moduleDef *mod; - - for (mod = currentSpec -> modules; mod != NULL; mod = mod -> next) - { - qualDef *qd; - - for (qd = mod -> qualifiers; qd != NULL; qd = qd -> next) - if (strcmp(qd -> name,name) == 0) - return qd; - } - - return NULL; -} - - -/* - * Return a copy of a scoped name. - */ -scopedNameDef *copyScopedName(scopedNameDef *snd) -{ - scopedNameDef *head; - - head = NULL; - - while (snd != NULL) - { - appendScopedName(&head,text2scopePart(snd -> name)); - snd = snd -> next; - } - - return head; -} - - -/* - * Append a name to a list of scopes. - */ -void appendScopedName(scopedNameDef **headp,scopedNameDef *newsnd) -{ - while (*headp != NULL) - headp = &(*headp) -> next; - - *headp = newsnd; -} - - -/* - * Free a scoped name - but not the text itself. - */ -void freeScopedName(scopedNameDef *snd) -{ - while (snd != NULL) - { - scopedNameDef *next = snd -> next; - - free(snd); - - snd = next; - } -} - - -/* - * Convert a text string to a scope part structure. - */ -scopedNameDef *text2scopePart(char *text) -{ - scopedNameDef *snd; - - snd = sipMalloc(sizeof (scopedNameDef)); - - snd -> name = text; - snd -> next = NULL; - - return snd; -} - - -/* - * Convert a text string to a fully scoped name. - */ -static scopedNameDef *text2scopedName(char *text) -{ - return scopeScopedName(text2scopePart(text)); -} - - -/* - * Prepend any current scope to a scoped name. - */ -static scopedNameDef *scopeScopedName(scopedNameDef *name) -{ - classDef *cd = currentScope(); - scopedNameDef *snd; - - snd = (cd != NULL ? copyScopedName(cd->iff->fqcname) : NULL); - - appendScopedName(&snd, name); - - return snd; -} - - -/* - * Return a pointer to the tail part of a scoped name. - */ -char *scopedNameTail(scopedNameDef *snd) -{ - if (snd == NULL) - return NULL; - - while (snd -> next != NULL) - snd = snd -> next; - - return snd -> name; -} - - -/* - * Push the given scope onto the scope stack. - */ -static void pushScope(classDef *scope) -{ - if (currentScopeIdx >= MAX_NESTED_SCOPE) - fatal("Internal error: increase the value of MAX_NESTED_SCOPE\n"); - - scopeStack[currentScopeIdx] = scope; - sectFlagsStack[currentScopeIdx] = sectionFlags; - - ++currentScopeIdx; -} - - -/* - * Pop the scope stack. - */ -static void popScope(void) -{ - if (currentScopeIdx > 0) - sectionFlags = sectFlagsStack[--currentScopeIdx]; -} - - -/* - * Return non-zero if the current input should be parsed rather than be - * skipped. - */ -static int notSkipping() -{ - return (skipStackPtr == 0 ? TRUE : skipStack[skipStackPtr - 1]); -} - - -/* - * Return the value of an expression involving a time period. - */ -static int timePeriod(char *lname,char *uname) -{ - int this, line; - qualDef *qd, *lower, *upper; - moduleDef *mod; - - if (lname == NULL) - lower = NULL; - else if ((lower = findQualifier(lname)) == NULL || lower -> qtype != time_qualifier) - yyerror("Lower bound is not a time version"); - - if (uname == NULL) - upper = NULL; - else if ((upper = findQualifier(uname)) == NULL || upper -> qtype != time_qualifier) - yyerror("Upper bound is not a time version"); - - /* Sanity checks on the bounds. */ - - if (lower == NULL && upper == NULL) - yyerror("Lower and upper bounds cannot both be omitted"); - - if (lower != NULL && upper != NULL) - { - if (lower -> module != upper -> module || lower -> line != upper -> line) - yyerror("Lower and upper bounds are from different timelines"); - - if (lower == upper) - yyerror("Lower and upper bounds must be different"); - - if (lower -> order > upper -> order) - yyerror("Later version specified as lower bound"); - } - - /* Go through each slot in the relevant timeline. */ - - if (lower != NULL) - { - mod = lower -> module; - line = lower -> line; - } - else - { - mod = upper -> module; - line = upper -> line; - } - - this = FALSE; - - for (qd = mod -> qualifiers; qd != NULL; qd = qd -> next) - { - if (qd -> qtype != time_qualifier || qd -> line != line) - continue; - - if (lower != NULL && qd -> order < lower -> order) - continue; - - if (upper != NULL && qd -> order >= upper -> order) - continue; - - /* - * This is within the required range so if it is also needed - * then the expression is true. - */ - - if (isNeeded(qd)) - { - this = TRUE; - break; - } - } - - return this; -} - - -/* - * Return the value of an expression involving a single platform or feature. - */ -static int platOrFeature(char *name,int optnot) -{ - int this; - qualDef *qd; - - if ((qd = findQualifier(name)) == NULL || qd -> qtype == time_qualifier) - yyerror("No such platform or feature"); - - /* Assume this sub-expression is false. */ - - this = FALSE; - - if (qd -> qtype == feature_qualifier) - { - if (!excludedFeature(excludedQualifiers,qd)) - this = TRUE; - } - else if (isNeeded(qd)) - this = TRUE; - - if (optnot) - this = !this; - - return this; -} - - -/* - * Return TRUE if the given qualifier is excluded. - */ -int excludedFeature(stringList *xsl,qualDef *qd) -{ - while (xsl != NULL) - { - if (strcmp(qd -> name,xsl -> s) == 0) - return TRUE; - - xsl = xsl -> next; - } - - return FALSE; -} - - -/* - * Return TRUE if the given qualifier is needed. - */ -static int isNeeded(qualDef *qd) -{ - stringList *sl; - - for (sl = neededQualifiers; sl != NULL; sl = sl -> next) - if (strcmp(qd -> name,sl -> s) == 0) - return TRUE; - - return FALSE; -} - - -/* - * Return the current scope. currentScope() is only valid if notSkipping() - * returns non-zero. - */ -static classDef *currentScope(void) -{ - return (currentScopeIdx > 0 ? scopeStack[currentScopeIdx - 1] : NULL); -} - - -/* - * Create a new qualifier. - */ -static void newQualifier(moduleDef *mod,int line,int order,char *name,qualType qt) -{ - qualDef *qd; - - /* Check it doesn't already exist. */ - - if (findQualifier(name) != NULL) - yyerror("Version is already defined"); - - qd = sipMalloc(sizeof (qualDef)); - qd -> name = name; - qd -> qtype = qt; - qd -> module = mod; - qd -> line = line; - qd -> order = order; - qd -> next = mod -> qualifiers; - mod -> qualifiers = qd; -} - - -/* - * Create a new imported module. - */ -static void newImport(char *name) -{ - moduleDef *from, *mod; - moduleListDef *mld; - - /* Create a new module if it has already been imported. */ - for (mod = currentSpec -> modules; mod != NULL; mod = mod -> next) - if (strcmp(mod -> file,name) == 0) - break; - - from = currentModule; - - if (mod == NULL) - { - newModule(NULL,name); - mod = currentModule; - } - - /* Add the new import unless it has already been imported. */ - for (mld = from->imports; mld != NULL; mld = mld->next) - if (mld->module == mod) - return; - - mld = sipMalloc(sizeof (moduleListDef)); - mld -> module = mod; - mld -> next = from->imports; - - from->imports = mld; -} - - -/* - * Set up pointers to hook names. - */ -static void getHooks(optFlags *optflgs,char **pre,char **post) -{ - optFlag *of; - - if ((of = findOptFlag(optflgs,"PreHook",name_flag)) != NULL) - *pre = of -> fvalue.sval; - else - *pre = NULL; - - if ((of = findOptFlag(optflgs,"PostHook",name_flag)) != NULL) - *post = of -> fvalue.sval; - else - *post = NULL; -} - - -/* - * Get the /ReleaseGIL/ option flag. - */ -static int getReleaseGIL(optFlags *optflgs) -{ - return (findOptFlag(optflgs, "ReleaseGIL", bool_flag) != NULL); -} - - -/* - * Get the /HoldGIL/ option flag. - */ -static int getHoldGIL(optFlags *optflgs) -{ - return (findOptFlag(optflgs, "HoldGIL", bool_flag) != NULL); -} - - -/* - * Return TRUE if the QtNoEmitters option was specified. - */ -int optNoEmitters(sipSpec *pt) -{ - return optFind(pt, "QtNoEmitters"); -} - - -/* - * Return TRUE if the QtRegisterTypes option was specified. - */ -int optRegisterTypes(sipSpec *pt) -{ - return optFind(pt, "QtRegisterTypes"); -} - - -/* - * Return TRUE if the Qt4Q_OBJECT option was specified. - */ -int optQ_OBJECT4(sipSpec *pt) -{ - return optFind(pt, "Qt4Q_OBJECT"); -} - - -/* - * Return TRUE if a particular option was specified with %SIPOptions. - */ -static int optFind(sipSpec *pt, const char *opt) -{ - stringList *sl; - - for (sl = pt->options; sl != NULL; sl = sl->next) - if (strcmp(sl->s, opt) == 0) - return TRUE; - - return FALSE; -} - diff --git a/python/sip/sipgen/parser.h b/python/sip/sipgen/parser.h deleted file mode 100644 index 7a75072d..00000000 --- a/python/sip/sipgen/parser.h +++ /dev/null @@ -1,268 +0,0 @@ -/* A Bison parser, made by GNU Bison 1.875d. */ - -/* Skeleton parser for Yacc-like parsing with Bison, - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. - - 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, 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. */ - -/* As a special exception, when this file is copied by Bison into a - Bison output file, you may use that output file without restriction. - This special exception was added by the Free Software Foundation - in version 1.24 of Bison. */ - -/* Tokens. */ -#ifndef YYTOKENTYPE -# define YYTOKENTYPE - /* Put the tokens into the symbol table, so that GDB and other debuggers - know about them. */ - enum yytokentype { - TK_OPTIONS = 258, - TK_NOEMITTERS = 259, - TK_DOC = 260, - TK_EXPORTEDDOC = 261, - TK_MAKEFILE = 262, - TK_ACCESSCODE = 263, - TK_GETCODE = 264, - TK_SETCODE = 265, - TK_PREINITCODE = 266, - TK_POSTINITCODE = 267, - TK_UNITCODE = 268, - TK_MODCODE = 269, - TK_TYPECODE = 270, - TK_PREPYCODE = 271, - TK_COPYING = 272, - TK_MAPPEDTYPE = 273, - TK_CODELINE = 274, - TK_IF = 275, - TK_END = 276, - TK_NAME = 277, - TK_PATHNAME = 278, - TK_STRING = 279, - TK_VIRTUALCATCHERCODE = 280, - TK_TRAVERSECODE = 281, - TK_CLEARCODE = 282, - TK_READBUFFERCODE = 283, - TK_WRITEBUFFERCODE = 284, - TK_SEGCOUNTCODE = 285, - TK_CHARBUFFERCODE = 286, - TK_METHODCODE = 287, - TK_FROMTYPE = 288, - TK_TOTYPE = 289, - TK_TOSUBCLASS = 290, - TK_INCLUDE = 291, - TK_OPTINCLUDE = 292, - TK_IMPORT = 293, - TK_EXPHEADERCODE = 294, - TK_MODHEADERCODE = 295, - TK_TYPEHEADERCODE = 296, - TK_MODULE = 297, - TK_CMODULE = 298, - TK_CLASS = 299, - TK_STRUCT = 300, - TK_PUBLIC = 301, - TK_PROTECTED = 302, - TK_PRIVATE = 303, - TK_SIGNALS = 304, - TK_SLOTS = 305, - TK_BOOL = 306, - TK_SHORT = 307, - TK_INT = 308, - TK_LONG = 309, - TK_FLOAT = 310, - TK_DOUBLE = 311, - TK_CHAR = 312, - TK_WCHAR_T = 313, - TK_VOID = 314, - TK_PYOBJECT = 315, - TK_PYTUPLE = 316, - TK_PYLIST = 317, - TK_PYDICT = 318, - TK_PYCALLABLE = 319, - TK_PYSLICE = 320, - TK_PYTYPE = 321, - TK_VIRTUAL = 322, - TK_ENUM = 323, - TK_SIGNED = 324, - TK_UNSIGNED = 325, - TK_SCOPE = 326, - TK_LOGICAL_OR = 327, - TK_CONST = 328, - TK_STATIC = 329, - TK_SIPQT_SIGNAL = 330, - TK_SIPQT_SLOT = 331, - TK_SIPANYQT_SLOT = 332, - TK_SIPRXCON = 333, - TK_SIPRXDIS = 334, - TK_SIPSLOTCON = 335, - TK_SIPSLOTDIS = 336, - TK_NUMBER = 337, - TK_REAL = 338, - TK_TYPEDEF = 339, - TK_NAMESPACE = 340, - TK_TIMELINE = 341, - TK_PLATFORMS = 342, - TK_FEATURE = 343, - TK_LICENSE = 344, - TK_QCHAR = 345, - TK_TRUE = 346, - TK_FALSE = 347, - TK_NULL = 348, - TK_OPERATOR = 349, - TK_THROW = 350, - TK_QOBJECT = 351, - TK_EXCEPTION = 352, - TK_RAISECODE = 353, - TK_EXPLICIT = 354, - TK_TEMPLATE = 355, - TK_ELLIPSIS = 356 - }; -#endif -#define TK_OPTIONS 258 -#define TK_NOEMITTERS 259 -#define TK_DOC 260 -#define TK_EXPORTEDDOC 261 -#define TK_MAKEFILE 262 -#define TK_ACCESSCODE 263 -#define TK_GETCODE 264 -#define TK_SETCODE 265 -#define TK_PREINITCODE 266 -#define TK_POSTINITCODE 267 -#define TK_UNITCODE 268 -#define TK_MODCODE 269 -#define TK_TYPECODE 270 -#define TK_PREPYCODE 271 -#define TK_COPYING 272 -#define TK_MAPPEDTYPE 273 -#define TK_CODELINE 274 -#define TK_IF 275 -#define TK_END 276 -#define TK_NAME 277 -#define TK_PATHNAME 278 -#define TK_STRING 279 -#define TK_VIRTUALCATCHERCODE 280 -#define TK_TRAVERSECODE 281 -#define TK_CLEARCODE 282 -#define TK_READBUFFERCODE 283 -#define TK_WRITEBUFFERCODE 284 -#define TK_SEGCOUNTCODE 285 -#define TK_CHARBUFFERCODE 286 -#define TK_METHODCODE 287 -#define TK_FROMTYPE 288 -#define TK_TOTYPE 289 -#define TK_TOSUBCLASS 290 -#define TK_INCLUDE 291 -#define TK_OPTINCLUDE 292 -#define TK_IMPORT 293 -#define TK_EXPHEADERCODE 294 -#define TK_MODHEADERCODE 295 -#define TK_TYPEHEADERCODE 296 -#define TK_MODULE 297 -#define TK_CMODULE 298 -#define TK_CLASS 299 -#define TK_STRUCT 300 -#define TK_PUBLIC 301 -#define TK_PROTECTED 302 -#define TK_PRIVATE 303 -#define TK_SIGNALS 304 -#define TK_SLOTS 305 -#define TK_BOOL 306 -#define TK_SHORT 307 -#define TK_INT 308 -#define TK_LONG 309 -#define TK_FLOAT 310 -#define TK_DOUBLE 311 -#define TK_CHAR 312 -#define TK_WCHAR_T 313 -#define TK_VOID 314 -#define TK_PYOBJECT 315 -#define TK_PYTUPLE 316 -#define TK_PYLIST 317 -#define TK_PYDICT 318 -#define TK_PYCALLABLE 319 -#define TK_PYSLICE 320 -#define TK_PYTYPE 321 -#define TK_VIRTUAL 322 -#define TK_ENUM 323 -#define TK_SIGNED 324 -#define TK_UNSIGNED 325 -#define TK_SCOPE 326 -#define TK_LOGICAL_OR 327 -#define TK_CONST 328 -#define TK_STATIC 329 -#define TK_SIPQT_SIGNAL 330 -#define TK_SIPQT_SLOT 331 -#define TK_SIPANYQT_SLOT 332 -#define TK_SIPRXCON 333 -#define TK_SIPRXDIS 334 -#define TK_SIPSLOTCON 335 -#define TK_SIPSLOTDIS 336 -#define TK_NUMBER 337 -#define TK_REAL 338 -#define TK_TYPEDEF 339 -#define TK_NAMESPACE 340 -#define TK_TIMELINE 341 -#define TK_PLATFORMS 342 -#define TK_FEATURE 343 -#define TK_LICENSE 344 -#define TK_QCHAR 345 -#define TK_TRUE 346 -#define TK_FALSE 347 -#define TK_NULL 348 -#define TK_OPERATOR 349 -#define TK_THROW 350 -#define TK_QOBJECT 351 -#define TK_EXCEPTION 352 -#define TK_RAISECODE 353 -#define TK_EXPLICIT 354 -#define TK_TEMPLATE 355 -#define TK_ELLIPSIS 356 - - - - -#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) -#line 103 "parser.y" -typedef union YYSTYPE { - char qchar; - char *text; - long number; - double real; - argDef memArg; - signatureDef signature; - signatureDef *optsignature; - throwArgs *throwlist; - codeBlock *codeb; - valueDef value; - valueDef *valp; - optFlags optflags; - optFlag flag; - scopedNameDef *scpvalp; - fcallDef fcall; - int boolean; - exceptionDef exceptionbase; - classDef *klass; -} YYSTYPE; -/* Line 1285 of yacc.c. */ -#line 260 "parser.h" -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ -# define YYSTYPE_IS_DECLARED 1 -# define YYSTYPE_IS_TRIVIAL 1 -#endif - -extern YYSTYPE yylval; - - - diff --git a/python/sip/sipgen/parser.y b/python/sip/sipgen/parser.y deleted file mode 100644 index bba7d0c1..00000000 --- a/python/sip/sipgen/parser.y +++ /dev/null @@ -1,4945 +0,0 @@ -/* - * The SIP parser. - * - * Copyright (c) 2007 - * Riverbank Computing Limited - * - * This file is part of SIP. - * - * This copy of SIP is licensed for use under the terms of the SIP License - * Agreement. See the file LICENSE for more details. - * - * SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ - -%{ -#include -#include -#include - -#include "sip.h" - - -#define MAX_NESTED_IF 10 -#define MAX_NESTED_SCOPE 10 - -#define inMainModule() (currentSpec -> module == currentModule) - - -static sipSpec *currentSpec; /* The current spec being parsed. */ -static stringList *neededQualifiers; /* The list of required qualifiers. */ -static stringList *excludedQualifiers; /* The list of excluded qualifiers. */ -static moduleDef *currentModule; /* The current module being parsed. */ -static mappedTypeDef *currentMappedType; /* The current mapped type. */ -static enumDef *currentEnum; /* The current enum being parsed. */ -static int sectionFlags; /* The current section flags. */ -static int currentOverIsVirt; /* Set if the overload is virtual. */ -static int currentCtorIsExplicit; /* Set if the ctor is explicit. */ -static int currentIsStatic; /* Set if the current is static. */ -static char *previousFile; /* The file just parsed. */ -static parserContext newContext; /* The new pending context. */ -static int skipStackPtr; /* The skip stack pointer. */ -static int skipStack[MAX_NESTED_IF]; /* Stack of skip flags. */ -static classDef *scopeStack[MAX_NESTED_SCOPE]; /* The scope stack. */ -static int sectFlagsStack[MAX_NESTED_SCOPE]; /* The section flags stack. */ -static int currentScopeIdx; /* The scope stack index. */ -static int currentTimelineOrder; /* The current timeline order. */ - - -static char *getPythonName(optFlags *optflgs, char *cname); -static nameDef *cacheName(sipSpec *,char *); -static classDef *findClass(sipSpec *,ifaceFileType,scopedNameDef *); -static classDef *findClassWithInterface(sipSpec *pt, ifaceFileDef *iff); -static classDef *newClass(sipSpec *,ifaceFileType,scopedNameDef *); -static void finishClass(sipSpec *,moduleDef *,classDef *,optFlags *); -static exceptionDef *findException(sipSpec *pt, scopedNameDef *fqname, int new); -static mappedTypeDef *newMappedType(sipSpec *,argDef *); -static enumDef *newEnum(sipSpec *,moduleDef *,char *,optFlags *,int); -static void instantiateClassTemplate(sipSpec *pt, moduleDef *mod, classDef *scope, scopedNameDef *fqname, classTmplDef *tcd, templateDef *td); -static void newTypedef(sipSpec *,moduleDef *,char *,argDef *); -static void newVar(sipSpec *,moduleDef *,char *,int,argDef *,optFlags *, - codeBlock *,codeBlock *,codeBlock *); -static void newCtor(char *,int,signatureDef *,optFlags *,codeBlock *, - throwArgs *,signatureDef *,int); -static void newFunction(sipSpec *,moduleDef *,int,int,int,char *, - signatureDef *,int,int,optFlags *,codeBlock *, - codeBlock *,throwArgs *,signatureDef *); -static optFlag *findOptFlag(optFlags *,char *,flagType); -static memberDef *findFunction(sipSpec *,moduleDef *,classDef *,nameDef *,int, - int); -static void checkAttributes(sipSpec *,classDef *,char *,int); -static void newModule(FILE *,char *); -static void appendCodeBlock(codeBlock **,codeBlock *); -static void parseFile(FILE *,char *,moduleDef *,int); -static void handleEOF(void); -static void handleEOM(void); -static qualDef *findQualifier(char *); -static scopedNameDef *text2scopedName(char *); -static scopedNameDef *scopeScopedName(scopedNameDef *name); -static void pushScope(classDef *); -static void popScope(void); -static classDef *currentScope(void); -static void newQualifier(moduleDef *,int,int,char *,qualType); -static void newImport(char *); -static void usedInMainModule(sipSpec *,ifaceFileDef *); -static int timePeriod(char *,char *); -static int platOrFeature(char *,int); -static int isNeeded(qualDef *); -static int notSkipping(void); -static void getHooks(optFlags *,char **,char **); -static int getReleaseGIL(optFlags *); -static int getHoldGIL(optFlags *); -static void templateSignature(signatureDef *sd, int result, classTmplDef *tcd, templateDef *td, classDef *ncd); -static void templateType(argDef *ad, classTmplDef *tcd, templateDef *td, classDef *ncd); -static int search_back(const char *end, const char *start, const char *target); -static char *getType(scopedNameDef *ename, argDef *ad); -static char *scopedNameToString(scopedNameDef *name); -static void addUsedFromCode(sipSpec *pt, ifaceFileList **used, const char *sname); -static int sameName(scopedNameDef *snd, const char *sname); -static int optFind(sipSpec *pt, const char *opt); -%} - -%union { - char qchar; - char *text; - long number; - double real; - argDef memArg; - signatureDef signature; - signatureDef *optsignature; - throwArgs *throwlist; - codeBlock *codeb; - valueDef value; - valueDef *valp; - optFlags optflags; - optFlag flag; - scopedNameDef *scpvalp; - fcallDef fcall; - int boolean; - exceptionDef exceptionbase; - classDef *klass; -} - -%token TK_OPTIONS -%token TK_NOEMITTERS -%token TK_DOC -%token TK_EXPORTEDDOC -%token TK_MAKEFILE -%token TK_ACCESSCODE -%token TK_GETCODE -%token TK_SETCODE -%token TK_PREINITCODE -%token TK_POSTINITCODE -%token TK_UNITCODE -%token TK_MODCODE -%token TK_TYPECODE -%token TK_PREPYCODE -%token TK_COPYING -%token TK_MAPPEDTYPE -%token TK_CODELINE -%token TK_IF -%token TK_END -%token TK_NAME -%token TK_PATHNAME -%token TK_STRING -%token TK_VIRTUALCATCHERCODE -%token TK_TRAVERSECODE -%token TK_CLEARCODE -%token TK_READBUFFERCODE -%token TK_WRITEBUFFERCODE -%token TK_SEGCOUNTCODE -%token TK_CHARBUFFERCODE -%token TK_METHODCODE -%token TK_FROMTYPE -%token TK_TOTYPE -%token TK_TOSUBCLASS -%token TK_INCLUDE -%token TK_OPTINCLUDE -%token TK_IMPORT -%token TK_EXPHEADERCODE -%token TK_MODHEADERCODE -%token TK_TYPEHEADERCODE -%token TK_MODULE -%token TK_CMODULE -%token TK_CLASS -%token TK_STRUCT -%token TK_PUBLIC -%token TK_PROTECTED -%token TK_PRIVATE -%token TK_SIGNALS -%token TK_SLOTS -%token TK_BOOL -%token TK_SHORT -%token TK_INT -%token TK_LONG -%token TK_FLOAT -%token TK_DOUBLE -%token TK_CHAR -%token TK_WCHAR_T -%token TK_VOID -%token TK_PYOBJECT -%token TK_PYTUPLE -%token TK_PYLIST -%token TK_PYDICT -%token TK_PYCALLABLE -%token TK_PYSLICE -%token TK_PYTYPE -%token TK_VIRTUAL -%token TK_ENUM -%token TK_SIGNED -%token TK_UNSIGNED -%token TK_SCOPE -%token TK_LOGICAL_OR -%token TK_CONST -%token TK_STATIC -%token TK_SIPSIGNAL -%token TK_SIPSLOT -%token TK_SIPANYSLOT -%token TK_SIPRXCON -%token TK_SIPRXDIS -%token TK_SIPSLOTCON -%token TK_SIPSLOTDIS -%token TK_NUMBER -%token TK_REAL -%token TK_TYPEDEF -%token TK_NAMESPACE -%token TK_TIMELINE -%token TK_PLATFORMS -%token TK_FEATURE -%token TK_LICENSE -%token TK_QCHAR -%token TK_TRUE -%token TK_FALSE -%token TK_NULL -%token TK_OPERATOR -%token TK_THROW -%token TK_QOBJECT -%token TK_EXCEPTION -%token TK_RAISECODE -%token TK_EXPLICIT -%token TK_TEMPLATE -%token TK_ELLIPSIS - -%type argvalue -%type argtype -%type cpptype -%type basetype -%type template -%type arglist -%type rawarglist -%type cpptypelist -%type optsig -%type optctorsig -%type optexceptions -%type exceptionlist -%type optslot -%type optref -%type optconst -%type optvirtual -%type optabstract -%type deref -%type optnumber -%type simplevalue -%type value -%type expr -%type optassign -%type optaccesscode -%type optgetcode -%type optsetcode -%type exphdrcode -%type modhdrcode -%type typehdrcode -%type opttypehdrcode -%type travcode -%type clearcode -%type readbufcode -%type writebufcode -%type segcountcode -%type charbufcode -%type modcode -%type typecode -%type codeblock -%type codelines -%type virtualcatchercode -%type methodcode -%type raisecode -%type operatorname -%type optfilename -%type optname -%type modname -%type optflags -%type flaglist -%type flag -%type flagvalue -%type optunop -%type binop -%type scopepart -%type scopedname -%type exprlist -%type qualifiers -%type oredqualifiers -%type modlang -%type optclassbody -%type baseexception -%type class - -%% - -specification: statement - | specification statement - ; - -statement: { - /* - * We don't do these in parserEOF() because the parser - * is reading ahead and that would be too early. - */ - - if (previousFile != NULL) - { - handleEOF(); - - if (newContext.prevmod != NULL) - handleEOM(); - - free(previousFile); - previousFile = NULL; - } - } modstatement - ; - -modstatement: module - | options - | noemitters - | copying - | include - | optinclude - | import - | timeline - | platforms - | feature - | license - | exphdrcode { - if (notSkipping()) - appendCodeBlock(¤tSpec->exphdrcode, $1); - } - | modhdrcode { - if (notSkipping() && inMainModule()) - appendCodeBlock(¤tSpec -> hdrcode,$1); - } - | modcode { - if (notSkipping() && inMainModule()) - appendCodeBlock(¤tSpec -> cppcode,$1); - } - | preinitcode - | postinitcode - | unitcode - | prepycode - | doc - | exporteddoc - | makefile - | mappedtype - | mappedtypetmpl - | nsstatement - ; - -nsstatement: ifstart - | ifend - | namespace - | struct - | class - | classtmpl - | exception - | typedef - | enum - | function - | variable - | typehdrcode { - if (notSkipping()) - { - classDef *scope = currentScope(); - - if (scope == NULL) - yyerror("%TypeHeaderCode can only be used in a namespace, class or mapped type"); - - appendCodeBlock(&scope->hdrcode, $1); - } - } - ; - -options: TK_OPTIONS '(' optionlist ')' - ; - -optionlist: TK_NAME { - appendString(¤tSpec->options, $1); - } - | optionlist ',' TK_NAME { - appendString(¤tSpec->options, $3); - } - ; - -noemitters: TK_NOEMITTERS { - if (notSkipping()) - { - yywarning("%SIPNoEmitters is deprecated, please use %SIPOptions instead"); - appendString(¤tSpec->options, "QtNoEmitters"); - } - } - ; - -exception: TK_EXCEPTION scopedname baseexception optflags '{' opttypehdrcode raisecode '}' ';' { - if (notSkipping()) - { - exceptionDef *xd; - char *pyname; - - if (currentSpec->genc) - yyerror("%Exception not allowed in a C module"); - - pyname = getPythonName(&$4, scopedNameTail($2)); - - checkAttributes(currentSpec, NULL, pyname, FALSE); - - xd = findException(currentSpec, $2, TRUE); - - if (xd->cd != NULL) - yyerror("%Exception name has already been seen as a class name - it must be defined before being used"); - - if (xd->iff->module != NULL) - yyerror("The %Exception has already been defined"); - - /* Complete the definition. */ - - xd->iff->module = currentModule; - xd->pyname = pyname; - xd->bibase = $3.bibase; - xd->base = $3.base; - xd->hdrcode = $6; - xd->raisecode = $7; - - if (xd->bibase != NULL || xd->base != NULL) - xd->exceptionnr = currentModule->nrexceptions++; - - if (inMainModule() && xd->base != NULL && xd->base->iff->module != currentModule) - addToUsedList(¤tSpec->used, xd->base->iff); - } - } - ; - -baseexception: { - $$.bibase = NULL; - $$.base = NULL; - } - | '(' scopedname ')' { - exceptionDef *xd; - - $$.bibase = NULL; - $$.base = NULL; - - /* See if it is a defined exception. */ - for (xd = currentSpec->exceptions; xd != NULL; xd = xd->next) - if (sameScopedName(xd->iff->fqcname, $2)) - { - $$.base = xd; - break; - } - - if (xd == NULL && $2->next == NULL && strncmp($2->name, "SIP_", 4) == 0) - { - /* See if it is a builtin exception. */ - - static char *builtins[] = { - "Exception", - "StopIteration", - "StandardError", - "ArithmeticError", - "LookupError", - "AssertionError", - "AttributeError", - "EOFError", - "FloatingPointError", - "EnvironmentError", - "IOError", - "OSError", - "ImportError", - "IndexError", - "KeyError", - "KeyboardInterrupt", - "MemoryError", - "NameError", - "OverflowError", - "RuntimeError", - "NotImplementedError", - "SyntaxError", - "IndentationError", - "TabError", - "ReferenceError", - "SystemError", - "SystemExit", - "TypeError", - "UnboundLocalError", - "UnicodeError", - "UnicodeEncodeError", - "UnicodeDecodeError", - "UnicodeTranslateError", - "ValueError", - "ZeroDivisionError", - "WindowsError", - "VMSError", - NULL - }; - - char **cp; - - for (cp = builtins; *cp != NULL; ++cp) - if (strcmp($2->name + 4, *cp) == 0) - { - $$.bibase = *cp; - break; - } - } - - if ($$.bibase == NULL && $$.base == NULL) - yyerror("Unknown exception base type"); - } - ; - -raisecode: TK_RAISECODE codeblock { - $$ = $2; - } - ; - -mappedtype: TK_MAPPEDTYPE basetype { - if (notSkipping()) - currentMappedType = newMappedType(currentSpec,&$2); - } mtdefinition - ; - -mappedtypetmpl: template TK_MAPPEDTYPE basetype { - int a; - - if (currentSpec->genc) - yyerror("%MappedType templates not allowed in a C module"); - - /* Check the template arguments are all just simple names. */ - for (a = 0; a < $1.nrArgs; ++a) - if ($1.args[a].atype != defined_type || $1.args[a].u.snd->next != NULL) - yyerror("%MappedType template arguments must be simple names"); - - if ($3.atype != template_type) - yyerror("%MappedType template must map a template type"); - - if (notSkipping()) - { - mappedTypeTmplDef *mtt; - - /* Check a template hasn't already been provided. */ - for (mtt = currentSpec->mappedtypetemplates; mtt != NULL; mtt = mtt->next) - if (sameScopedName(mtt->mt->type.u.td->fqname, $3.u.td->fqname) && sameTemplateSignature(&mtt->mt->type.u.td->types, &$3.u.td->types, TRUE)) - yyerror("%MappedType template for this type has already been defined"); - - $3.nrderefs = 0; - $3.argflags = 0; - - mtt = sipMalloc(sizeof (mappedTypeTmplDef)); - - mtt->sig = $1; - mtt->mt = allocMappedType(&$3); - mtt->next = currentSpec->mappedtypetemplates; - - currentSpec->mappedtypetemplates = mtt; - - currentMappedType = mtt->mt; - } - } mtdefinition - ; - -mtdefinition: '{' mtbody '}' ';' { - if (notSkipping()) - { - if (currentMappedType->convfromcode == NULL) - yyerror("%MappedType must have a %ConvertFromTypeCode directive"); - - if (currentMappedType->convtocode == NULL) - yyerror("%MappedType must have a %ConvertToTypeCode directive"); - - currentMappedType = NULL; - } - } - ; - -mtbody: mtline - | mtbody mtline - ; - -mtline: typehdrcode { - if (notSkipping()) - appendCodeBlock(¤tMappedType -> hdrcode,$1); - } - | TK_FROMTYPE codeblock { - if (notSkipping()) - { - if (currentMappedType -> convfromcode != NULL) - yyerror("%MappedType has more than one %ConvertFromTypeCode directive"); - - currentMappedType -> convfromcode = $2; - } - } - | TK_TOTYPE codeblock { - if (notSkipping()) - { - if (currentMappedType -> convtocode != NULL) - yyerror("%MappedType has more than one %ConvertToTypeCode directive"); - - currentMappedType -> convtocode = $2; - } - } - ; - -namespace: TK_NAMESPACE TK_NAME { - if (currentSpec -> genc) - yyerror("namespace definition not allowed in a C module"); - - if (notSkipping()) - { - classDef *ns; - - ns = newClass(currentSpec,namespace_iface,text2scopedName($2)); - - pushScope(ns); - - sectionFlags = 0; - } - } '{' nsbody '}' ';' { - if (inMainModule()) - { - classDef *ns = currentScope(); - - if (!isUsedName(ns->iff->name)) - { - varDef *vd; - - for (vd = currentSpec->vars; vd != NULL; vd = vd->next) - if (vd->ecd == ns) - { - setIsUsedName(ns->iff->name); - break; - } - } - } - - if (notSkipping()) - popScope(); - } - ; - -nsbody: nsstatement - | nsbody nsstatement - ; - -platforms: TK_PLATFORMS { - qualDef *qd; - - for (qd = currentModule -> qualifiers; qd != NULL; qd = qd -> next) - if (qd -> qtype == platform_qualifier) - yyerror("%Platforms has already been defined for this module"); - } - '{' platformlist '}' { - qualDef *qd; - int nrneeded; - - /* - * Check that exactly one platform in the set was - * requested. - */ - - nrneeded = 0; - - for (qd = currentModule -> qualifiers; qd != NULL; qd = qd -> next) - if (qd -> qtype == platform_qualifier && isNeeded(qd)) - ++nrneeded; - - if (nrneeded > 1) - yyerror("No more than one of these %Platforms must be specified with the -t flag"); - } - ; - -platformlist: platform - | platformlist platform - ; - -platform: TK_NAME { - newQualifier(currentModule,-1,-1,$1,platform_qualifier); - } - ; - -feature: TK_FEATURE TK_NAME { - newQualifier(currentModule,-1,-1,$2,feature_qualifier); - } - ; - -timeline: TK_TIMELINE { - currentTimelineOrder = 0; - } - '{' qualifierlist '}' { - qualDef *qd; - int nrneeded; - - /* - * Check that exactly one time slot in the set was - * requested. - */ - - nrneeded = 0; - - for (qd = currentModule -> qualifiers; qd != NULL; qd = qd -> next) - if (qd -> qtype == time_qualifier && isNeeded(qd)) - ++nrneeded; - - if (nrneeded > 1) - yyerror("At most one of this %Timeline must be specified with the -t flag"); - - currentModule -> nrtimelines++; - } - ; - -qualifierlist: qualifiername - | qualifierlist qualifiername - ; - -qualifiername: TK_NAME { - newQualifier(currentModule,currentModule -> nrtimelines,currentTimelineOrder++,$1,time_qualifier); - } - ; - -ifstart: TK_IF '(' qualifiers ')' { - if (skipStackPtr >= MAX_NESTED_IF) - yyerror("Internal error: increase the value of MAX_NESTED_IF"); - - /* Nested %Ifs are implicit logical ands. */ - - if (skipStackPtr > 0) - $3 = ($3 && skipStack[skipStackPtr - 1]); - - skipStack[skipStackPtr++] = $3; - } - ; - -oredqualifiers: TK_NAME { - $$ = platOrFeature($1,FALSE); - } - | '!' TK_NAME { - $$ = platOrFeature($2,TRUE); - } - | oredqualifiers TK_LOGICAL_OR TK_NAME { - $$ = (platOrFeature($3,FALSE) || $1); - } - | oredqualifiers TK_LOGICAL_OR '!' TK_NAME { - $$ = (platOrFeature($4,TRUE) || $1); - } - ; - -qualifiers: oredqualifiers - | optname '-' optname { - $$ = timePeriod($1,$3); - } - ; - -ifend: TK_END { - if (skipStackPtr-- <= 0) - yyerror("Too many %End directives"); - } - ; - -license: TK_LICENSE optflags { - optFlag *of; - - if ($2.nrFlags == 0) - yyerror("%License details not specified"); - - if ((of = findOptFlag(&$2,"Type",string_flag)) == NULL) - yyerror("%License type not specified"); - - currentModule -> license = sipMalloc(sizeof (licenseDef)); - - currentModule -> license -> type = of -> fvalue.sval; - - currentModule -> license -> licensee = - ((of = findOptFlag(&$2,"Licensee",string_flag)) != NULL) - ? of -> fvalue.sval : NULL; - - currentModule -> license -> timestamp = - ((of = findOptFlag(&$2,"Timestamp",string_flag)) != NULL) - ? of -> fvalue.sval : NULL; - - currentModule -> license -> sig = - ((of = findOptFlag(&$2,"Signature",string_flag)) != NULL) - ? of -> fvalue.sval : NULL; - } - ; - -module: modlang modname optnumber { - /* Check the module hasn't already been defined. */ - - moduleDef *mod; - - for (mod = currentSpec -> modules; mod != NULL; mod = mod -> next) - if (mod->fullname != NULL && strcmp(mod->fullname, $2) == 0) - yyerror("Module is already defined"); - - currentModule->fullname = $2; - - if ((currentModule->name = strrchr($2, '.')) != NULL) - currentModule->name++; - else - currentModule->name = $2; - - currentModule -> version = $3; - - if (currentSpec -> genc < 0) - currentSpec -> genc = $1; - else if (currentSpec -> genc != $1) - yyerror("Cannot mix C and C++ modules"); - } - ; - -modlang: TK_MODULE { - $$ = FALSE; - } - | TK_CMODULE { - $$ = TRUE; - } - ; - -modname: TK_NAME - | TK_PATHNAME { - /* - * The grammar design is a bit broken and this is the - * easiest way to allow periods in module names. - */ - - char *cp; - - for (cp = $1; *cp != '\0'; ++cp) - if (*cp != '.' && *cp != '_' && !isalnum(*cp)) - yyerror("Invalid character in module name"); - - $$ = $1; - } - ; - -optnumber: { - $$ = -1; - } - | TK_NUMBER - ; - -include: TK_INCLUDE TK_PATHNAME { - parseFile(NULL,$2,NULL,FALSE); - } - ; - -optinclude: TK_OPTINCLUDE TK_PATHNAME { - parseFile(NULL,$2,NULL,TRUE); - } - ; - -import: TK_IMPORT TK_PATHNAME { - newImport($2); - } - ; - -optaccesscode: { - $$ = NULL; - } - | TK_ACCESSCODE codeblock { - $$ = $2; - } - ; - -optgetcode: { - $$ = NULL; - } - | TK_GETCODE codeblock { - $$ = $2; - } - ; - -optsetcode: { - $$ = NULL; - } - | TK_SETCODE codeblock { - $$ = $2; - } - ; - -copying: TK_COPYING codeblock { - if (inMainModule()) - appendCodeBlock(¤tSpec -> copying,$2); - } - ; - -exphdrcode: TK_EXPHEADERCODE codeblock { - $$ = $2; - } - ; - -modhdrcode: TK_MODHEADERCODE codeblock { - $$ = $2; - } - ; - -typehdrcode: TK_TYPEHEADERCODE codeblock { - $$ = $2; - } - ; - -opttypehdrcode: { - $$ = NULL; - } - | typehdrcode - ; - -travcode: TK_TRAVERSECODE codeblock { - $$ = $2; - } - ; - -clearcode: TK_CLEARCODE codeblock { - $$ = $2; - } - ; - -readbufcode: TK_READBUFFERCODE codeblock { - $$ = $2; - } - ; - -writebufcode: TK_WRITEBUFFERCODE codeblock { - $$ = $2; - } - ; - -segcountcode: TK_SEGCOUNTCODE codeblock { - $$ = $2; - } - ; - -charbufcode: TK_CHARBUFFERCODE codeblock { - $$ = $2; - } - ; - -modcode: TK_MODCODE codeblock { - $$ = $2; - } - ; - -typecode: TK_TYPECODE codeblock { - $$ = $2; - } - ; - -preinitcode: TK_PREINITCODE codeblock { - if (notSkipping() && inMainModule()) - appendCodeBlock(¤tSpec -> preinitcode,$2); - } - ; - -postinitcode: TK_POSTINITCODE codeblock { - if (notSkipping() && inMainModule()) - appendCodeBlock(¤tSpec -> postinitcode,$2); - } - ; - -unitcode: TK_UNITCODE codeblock { - if (notSkipping() && inMainModule()) - appendCodeBlock(¤tSpec->unitcode, $2); - } - ; - -prepycode: TK_PREPYCODE codeblock { - /* - * This is a no-op and is retained for compatibility - * until the last use of it (by SIP v3) can be removed - * from PyQt. - */ - } - ; - -doc: TK_DOC codeblock { - if (inMainModule()) - appendCodeBlock(¤tSpec -> docs,$2); - } - ; - -exporteddoc: TK_EXPORTEDDOC codeblock { - appendCodeBlock(¤tSpec -> docs,$2); - } - ; - -makefile: TK_MAKEFILE TK_PATHNAME optfilename codeblock { - if (inMainModule()) - yywarning("%Makefile is ignored, please use the -b flag instead"); - } - ; - -codeblock: codelines TK_END - ; - -codelines: TK_CODELINE - | codelines TK_CODELINE { - $$ = $1; - - append(&$$->frag, $2->frag); - - free($2->frag); - free($2->filename); - free($2); - } - ; - -enum: TK_ENUM optname optflags { - if (notSkipping()) - { - if (sectionFlags != 0 && (sectionFlags & ~(SECT_IS_PUBLIC | SECT_IS_PROT)) != 0) - yyerror("Class enums must be in the public or protected sections"); - - currentEnum = newEnum(currentSpec,currentModule,$2,&$3,sectionFlags); - } - } '{' optenumbody '}' ';' - ; - -optfilename: { - $$ = NULL; - } - | TK_PATHNAME { - $$ = $1; - } - ; - -optname: { - $$ = NULL; - } - | TK_NAME { - $$ = $1; - } - ; - -optenumbody: - | enumbody - ; - -enumbody: enumline - | enumbody enumline - ; - -enumline: ifstart - | ifend - | TK_NAME optenumassign optflags optcomma { - if (notSkipping()) - { - /* - * Note that we don't use the assigned value. - * This is a hangover from when enums where - * generated in Python. We can remove it when - * we have got around to updating all the .sip - * files. - */ - enumMemberDef *emd, **tail; - - emd = sipMalloc(sizeof (enumMemberDef)); - - emd -> pyname = cacheName(currentSpec, getPythonName(&$3, $1)); - emd -> cname = $1; - emd -> ed = currentEnum; - emd -> next = NULL; - - checkAttributes(currentSpec,emd -> ed -> ecd,emd -> pyname -> text,FALSE); - - /* Append to preserve the order. */ - for (tail = ¤tEnum->members; *tail != NULL; tail = &(*tail)->next) - ; - - *tail = emd; - - if (inMainModule()) - setIsUsedName(emd -> pyname); - } - } - ; - -optcomma: - | ',' - ; - -optenumassign: - | '=' value - ; - -optassign: { - $$ = NULL; - } - | '=' expr { - $$ = $2; - } - ; - -expr: value - | expr binop value { - valueDef *vd; - - if ($1 -> vtype == string_value || $3 -> vtype == string_value) - yyerror("Invalid binary operator for string"); - - /* Find the last value in the existing expression. */ - - for (vd = $1; vd -> next != NULL; vd = vd -> next) - ; - - vd -> vbinop = $2; - vd -> next = $3; - - $$ = $1; - } - ; - -binop: '-' { - $$ = '-'; - } - | '+' { - $$ = '+'; - } - | '*' { - $$ = '*'; - } - | '/' { - $$ = '/'; - } - | '&' { - $$ = '&'; - } - | '|' { - $$ = '|'; - } - ; - -optunop: { - $$ = '\0'; - } - | '!' { - $$ = '!'; - } - | '~' { - $$ = '~'; - } - | '-' { - $$ = '-'; - } - | '+' { - $$ = '+'; - } - ; - -value: optunop simplevalue { - if ($1 != '\0' && $2.vtype == string_value) - yyerror("Invalid unary operator for string"); - - /* - * Convert the value to a simple expression on the - * heap. - */ - - $$ = sipMalloc(sizeof (valueDef)); - - *$$ = $2; - $$ -> vunop = $1; - $$ -> vbinop = '\0'; - $$ -> next = NULL; - } - ; - -scopedname: scopepart - | scopedname TK_SCOPE scopepart { - if (currentSpec -> genc) - yyerror("Scoped names are not allowed in a C module"); - - appendScopedName(&$1,$3); - } - ; - -scopepart: TK_NAME { - $$ = text2scopePart($1); - } - ; - -simplevalue: scopedname { - /* - * We let the C++ compiler decide if the value is a - * valid one - no point in building a full C++ parser - * here. - */ - - $$.vtype = scoped_value; - $$.u.vscp = $1; - } - | basetype '(' exprlist ')' { - fcallDef *fcd; - - fcd = sipMalloc(sizeof (fcallDef)); - *fcd = $3; - fcd -> type = $1; - - $$.vtype = fcall_value; - $$.u.fcd = fcd; - } - | TK_REAL { - $$.vtype = real_value; - $$.u.vreal = $1; - } - | TK_NUMBER { - $$.vtype = numeric_value; - $$.u.vnum = $1; - } - | TK_TRUE { - $$.vtype = numeric_value; - $$.u.vnum = 1; - } - | TK_FALSE { - $$.vtype = numeric_value; - $$.u.vnum = 0; - } - | TK_NULL { - $$.vtype = numeric_value; - $$.u.vnum = 0; - } - | TK_STRING { - $$.vtype = string_value; - $$.u.vstr = $1; - } - | TK_QCHAR { - $$.vtype = qchar_value; - $$.u.vqchar = $1; - } - ; - -exprlist: { - /* No values. */ - - $$.nrArgs = 0; - } - | expr { - /* The single or first expression. */ - - $$.args[0] = $1; - $$.nrArgs = 1; - } - | exprlist ',' expr { - /* Check that it wasn't ...(,expression...). */ - - if ($$.nrArgs == 0) - yyerror("First argument to function call is missing"); - - /* Check there is room. */ - - if ($1.nrArgs == MAX_NR_ARGS) - yyerror("Too many arguments to function call"); - - $$ = $1; - - $$.args[$$.nrArgs] = $3; - $$.nrArgs++; - } - ; - -typedef: TK_TYPEDEF cpptype TK_NAME ';' { - if (notSkipping()) - newTypedef(currentSpec,currentModule,$3,&$2); - } - | TK_TYPEDEF cpptype '(' deref TK_NAME ')' '(' cpptypelist ')' ';' { - if (notSkipping()) - { - argDef ftype; - signatureDef *sig; - - /* Create the full signature on the heap. */ - sig = sipMalloc(sizeof (signatureDef)); - *sig = $8; - sig -> result = $2; - - /* Create the full type. */ - ftype.atype = function_type; - ftype.argflags = 0; - ftype.nrderefs = $4; - ftype.defval = NULL; - ftype.u.sa = sig; - - newTypedef(currentSpec,currentModule,$5,&ftype); - } - } - ; - -struct: TK_STRUCT TK_NAME { - if (notSkipping()) - { - classDef *cd; - - cd = newClass(currentSpec,class_iface,text2scopedName($2)); - - pushScope(cd); - - sectionFlags = SECT_IS_PUBLIC; - } - } optflags '{' classbody '}' ';' { - if (notSkipping()) - { - finishClass(currentSpec, currentModule, currentScope(), &$4); - popScope(); - } - } - ; - -classtmpl: template class { - if (currentSpec->genc) - yyerror("Class templates not allowed in a C module"); - - if (notSkipping()) - { - classTmplDef *tcd; - - /* - * Make sure there is room for the extra class - * name argument. - */ - if ($1.nrArgs == MAX_NR_ARGS) - yyerror("Internal error - increase the value of MAX_NR_ARGS"); - - tcd = sipMalloc(sizeof (classTmplDef)); - tcd->sig = $1; - tcd->cd = $2; - tcd->next = currentSpec->classtemplates; - - currentSpec->classtemplates = tcd; - } - } - ; - -template: TK_TEMPLATE '<' cpptypelist '>' { - $$ = $3; - } - ; - -class: TK_CLASS scopedname { - if (currentSpec -> genc) - yyerror("Class definition not allowed in a C module"); - - if (notSkipping()) - { - classDef *cd; - - cd = newClass(currentSpec, class_iface, scopeScopedName($2)); - - pushScope(cd); - - sectionFlags = SECT_IS_PRIVATE; - } - } superclasses optflags optclassbody ';' { - if (notSkipping()) - { - classDef *cd = currentScope(); - - /* - * See if the class was defined or just - * declared. - */ - if ($6) - { - if ($2->next != NULL) - yyerror("A scoped name cannot be given in a class definition"); - - } - else if (cd->supers != NULL) - yyerror("Class has super-classes but no definition"); - else - setIsOpaque(cd); - - finishClass(currentSpec, currentModule, cd, &$5); - popScope(); - - /* - * Check that external classes have only been - * declared at the global scope. - */ - if (isExternal(cd) && currentScope() != NULL) - yyerror("External classes can only be declared in the global scope"); - - $$ = cd; - } - } - ; - -superclasses: - | ':' superlist - ; - -superlist: superclass - | superlist ',' superclass - ; - -superclass: scopedname { - if (notSkipping()) - { - classDef *cd, *super; - - cd = currentScope(); - - super = findClass(currentSpec,class_iface,$1); - - appendToClassList(&cd -> supers,super); - addToUsedList(&cd->iff->used, super->iff); - } - } - ; - -optclassbody: { - $$ = FALSE; - } - | '{' classbody '}' { - $$ = TRUE; - } - ; - -classbody: classline - | classbody classline - ; - -classline: ifstart - | ifend - | namespace - | struct - | class - | exception - | typedef - | enum - | typecode { - if (notSkipping()) - appendCodeBlock(¤tScope() -> cppcode,$1); - } - | typehdrcode { - if (notSkipping()) - appendCodeBlock(¤tScope() -> hdrcode,$1); - } - | travcode { - if (currentScope()->travcode != NULL) - yyerror("%GCTraverseCode already given for class"); - - if (notSkipping()) - currentScope()->travcode = $1; - } - | clearcode { - if (currentScope()->clearcode != NULL) - yyerror("%GCClearCode already given for class"); - - if (notSkipping()) - currentScope()->clearcode = $1; - } - | readbufcode { - if (currentScope()->readbufcode != NULL) - yyerror("%BIGetReadBufferCode already given for class"); - - if (notSkipping()) - currentScope()->readbufcode = $1; - } - | writebufcode { - if (currentScope()->writebufcode != NULL) - yyerror("%BIGetWriteBufferCode already given for class"); - - if (notSkipping()) - currentScope()->writebufcode = $1; - } - | segcountcode { - if (currentScope()->segcountcode != NULL) - yyerror("%BIGetSegCountCode already given for class"); - - if (notSkipping()) - currentScope()->segcountcode = $1; - } - | charbufcode { - if (currentScope()->charbufcode != NULL) - yyerror("%BIGetCharBufferCode already given for class"); - - if (notSkipping()) - currentScope()->charbufcode = $1; - } - | ctor - | dtor - | varmember - | TK_TOSUBCLASS codeblock { - if (notSkipping()) - { - classDef *cd = currentScope(); - - if (cd -> convtosubcode != NULL) - yyerror("Class has more than one %ConvertToSubClassCode directive"); - - cd -> convtosubcode = $2; - } - } - | TK_TOTYPE codeblock { - if (notSkipping()) - { - classDef *cd = currentScope(); - - if (cd -> convtocode != NULL) - yyerror("Class has more than one %ConvertToTypeCode directive"); - - cd -> convtocode = $2; - } - } - | TK_PUBLIC optslot ':' { - if (currentSpec -> genc) - yyerror("public section not allowed in a C module"); - - if (notSkipping()) - sectionFlags = SECT_IS_PUBLIC | $2; - } - | TK_PROTECTED optslot ':' { - if (currentSpec -> genc) - yyerror("protected section not allowed in a C module"); - - if (notSkipping()) - sectionFlags = SECT_IS_PROT | $2; - } - | TK_PRIVATE optslot ':' { - if (currentSpec -> genc) - yyerror("private section not allowed in a C module"); - - if (notSkipping()) - sectionFlags = SECT_IS_PRIVATE | $2; - } - | TK_SIGNALS ':' { - if (currentSpec -> genc) - yyerror("signals section not allowed in a C module"); - - if (notSkipping()) - sectionFlags = SECT_IS_SIGNAL; - } - ; - -optslot: { - $$ = 0; - } - | TK_SLOTS { - $$ = SECT_IS_SLOT; - } - ; - -dtor: optvirtual '~' TK_NAME '(' ')' optexceptions optabstract optflags ';' methodcode virtualcatchercode { - /* Note that we allow non-virtual dtors in C modules. */ - - if (notSkipping()) - { - classDef *cd = currentScope(); - - if (strcmp(classBaseName(cd),$3) != 0) - yyerror("Destructor doesn't have the same name as its class"); - - if (isDtor(cd)) - yyerror("Destructor has already been defined"); - - if (currentSpec -> genc && $10 == NULL) - yyerror("Destructor in C modules must include %MethodCode"); - - cd -> dealloccode = $10; - cd -> dtorcode = $11; - cd -> dtorexceptions = $6; - cd -> classflags |= sectionFlags; - - if ($7) - { - if (!$1) - yyerror("Abstract destructor must be virtual"); - - setIsAbstractClass(cd); - } - - /* - * The class has a shadow if we have a virtual dtor or some - * dtor code. - */ - if ($1 || $11 != NULL) - { - if (currentSpec -> genc) - yyerror("Virtual destructor or %VirtualCatcherCode not allowed in a C module"); - - setHasShadow(cd); - } - - if (getReleaseGIL(&$8)) - setIsReleaseGILDtor(cd); - else if (getHoldGIL(&$8)) - setIsHoldGILDtor(cd); - } - } - ; - -ctor: TK_EXPLICIT {currentCtorIsExplicit = TRUE;} simplector - | simplector - ; - -simplector: TK_NAME '(' arglist ')' optexceptions optflags optctorsig ';' methodcode { - /* Note that we allow ctors in C modules. */ - - if (notSkipping()) - { - if (currentSpec -> genc) - { - if ($9 == NULL && $3.nrArgs != 0) - yyerror("Constructors with arguments in C modules must include %MethodCode"); - - if (currentCtorIsExplicit) - yyerror("Explicit constructors not allowed in a C module"); - } - - if ((sectionFlags & (SECT_IS_PUBLIC | SECT_IS_PROT | SECT_IS_PRIVATE)) == 0) - yyerror("Constructor must be in the public, private or protected sections"); - - newCtor($1,sectionFlags,&$3,&$6,$9,$5,$7,currentCtorIsExplicit); - } - - free($1); - - currentCtorIsExplicit = FALSE; - } - ; - -optctorsig: { - $$ = NULL; - } - | '[' '(' arglist ')' ']' { - $$ = sipMalloc(sizeof (signatureDef)); - - *$$ = $3; - } - ; - -optsig: { - $$ = NULL; - } - | '[' cpptype '(' arglist ')' ']' { - $$ = sipMalloc(sizeof (signatureDef)); - - *$$ = $4; - $$ -> result = $2; - } - ; - -optvirtual: { - $$ = FALSE; - } - | TK_VIRTUAL { - $$ = TRUE; - } - ; - -function: cpptype TK_NAME '(' arglist ')' optconst optexceptions optabstract optflags optsig ';' methodcode virtualcatchercode { - if (notSkipping()) - { - if (sectionFlags != 0 && (sectionFlags & (SECT_IS_PUBLIC | SECT_IS_PROT | SECT_IS_PRIVATE | SECT_IS_SLOT | SECT_IS_SIGNAL)) == 0) - yyerror("Class function must be in the public, private, protected, slot or signal sections"); - - $4.result = $1; - - newFunction(currentSpec,currentModule, - sectionFlags,currentIsStatic, - currentOverIsVirt, - $2,&$4,$6,$8,&$9,$12,$13,$7,$10); - } - - currentIsStatic = FALSE; - currentOverIsVirt = FALSE; - } - | cpptype TK_OPERATOR operatorname '(' arglist ')' optconst optexceptions optabstract optflags optsig ';' methodcode virtualcatchercode { - if (notSkipping()) - { - classDef *cd = currentScope(); - - /* Handle the unary '+' and '-' operators. */ - if ((cd != NULL && $5.nrArgs == 0) || (cd == NULL && $5.nrArgs == 1)) - { - if (strcmp($3, "__add__") == 0) - $3 = "__pos__"; - else if (strcmp($3, "__sub__") == 0) - $3 = "__neg__"; - } - - $5.result = $1; - - newFunction(currentSpec,currentModule, - sectionFlags,currentIsStatic, - currentOverIsVirt, - $3,&$5,$7,$9,&$10,$13,$14,$8,$11); - } - - currentIsStatic = FALSE; - currentOverIsVirt = FALSE; - } - | TK_OPERATOR cpptype '(' arglist ')' optconst optexceptions optabstract optflags optsig ';' methodcode virtualcatchercode { - classDef *scope = currentScope(); - - if (scope == NULL || $4.nrArgs != 0) - yyerror("Operator casts must be specified in a class and have no arguments"); - - - if (notSkipping()) - { - char *sname; - - switch ($2.atype) - { - case defined_type: - sname = NULL; - break; - - case bool_type: - case cbool_type: - case short_type: - case ushort_type: - case int_type: - case cint_type: - case uint_type: - sname = "__int__"; - break; - - case long_type: - case ulong_type: - case longlong_type: - case ulonglong_type: - sname = "__long__"; - break; - - case float_type: - case cfloat_type: - case double_type: - case cdouble_type: - sname = "__float__"; - break; - - default: - yyerror("Unsupported operator cast"); - } - - if (sname != NULL) - { - $4.result = $2; - - newFunction(currentSpec, currentModule, - sectionFlags, - currentIsStatic, - currentOverIsVirt, sname, - &$4, $6, $8, &$9, $12, $13, - $7, $10); - } - else - { - argList *al; - - /* Check it doesn't already exist. */ - for (al = scope->casts; al != NULL; al = al->next) - if (sameScopedName($2.u.snd, al->arg.u.snd)) - yyerror("This operator cast has already been specified in this class"); - - al = sipMalloc(sizeof (argList)); - al->arg = $2; - al->next = scope->casts; - - scope->casts = al; - } - } - - currentIsStatic = FALSE; - currentOverIsVirt = FALSE; - } - ; - -operatorname: '+' {$$ = "__add__";} - | '-' {$$ = "__sub__";} - | '*' {$$ = "__mul__";} - | '/' {$$ = "__div__";} - | '%' {$$ = "__mod__";} - | '&' {$$ = "__and__";} - | '|' {$$ = "__or__";} - | '^' {$$ = "__xor__";} - | '<' '<' {$$ = "__lshift__";} - | '>' '>' {$$ = "__rshift__";} - | '+' '=' {$$ = "__iadd__";} - | '-' '=' {$$ = "__isub__";} - | '*' '=' {$$ = "__imul__";} - | '/' '=' {$$ = "__idiv__";} - | '%' '=' {$$ = "__imod__";} - | '&' '=' {$$ = "__iand__";} - | '|' '=' {$$ = "__ior__";} - | '^' '=' {$$ = "__ixor__";} - | '<' '<' '=' {$$ = "__ilshift__";} - | '>' '>' '=' {$$ = "__irshift__";} - | '~' {$$ = "__invert__";} - | '(' ')' {$$ = "__call__";} - | '[' ']' {$$ = "__getitem__";} - | '<' {$$ = "__lt__";} - | '<' '=' {$$ = "__le__";} - | '=' '=' {$$ = "__eq__";} - | '!' '=' {$$ = "__ne__";} - | '>' {$$ = "__gt__";} - | '>' '=' {$$ = "__ge__";} - ; - -optconst: { - $$ = FALSE; - } - | TK_CONST { - $$ = TRUE; - } - ; - -optabstract: { - $$ = 0; - } - | '=' TK_NUMBER { - if ($2 != 0) - yyerror("Abstract virtual function '= 0' expected"); - - $$ = TRUE; - } - ; - -optflags: { - $$.nrFlags = 0; - } - | '/' flaglist '/' { - $$ = $2; - } - ; - - -flaglist: flag { - $$.flags[0] = $1; - $$.nrFlags = 1; - } - | flaglist ',' flag { - /* Check there is room. */ - - if ($1.nrFlags == MAX_NR_FLAGS) - yyerror("Too many optional flags"); - - $$ = $1; - - $$.flags[$$.nrFlags++] = $3; - } - ; - -flag: TK_NAME { - $$.ftype = bool_flag; - $$.fname = $1; - } - | TK_NAME '=' flagvalue { - $$ = $3; - $$.fname = $1; - } - ; - -flagvalue: TK_NAME { - $$.ftype = name_flag; - $$.fvalue.sval = $1; - } - | TK_STRING { - $$.ftype = string_flag; - $$.fvalue.sval = $1; - } - | TK_NUMBER { - $$.ftype = integer_flag; - $$.fvalue.ival = $1; - } - ; - -methodcode: { - $$ = NULL; - } - | TK_METHODCODE codeblock { - $$ = $2; - } - ; - -virtualcatchercode: { - $$ = NULL; - } - | TK_VIRTUALCATCHERCODE codeblock { - $$ = $2; - } - ; - -arglist: rawarglist { - int a, nrrxcon, nrrxdis, nrslotcon, nrslotdis, nrarray, nrarraysize; - - nrrxcon = nrrxdis = nrslotcon = nrslotdis = nrarray = nrarraysize = 0; - - for (a = 0; a < $1.nrArgs; ++a) - { - argDef *ad = &$1.args[a]; - - switch (ad -> atype) - { - case rxcon_type: - ++nrrxcon; - break; - - case rxdis_type: - ++nrrxdis; - break; - - case slotcon_type: - ++nrslotcon; - break; - - case slotdis_type: - ++nrslotdis; - break; - } - - if (isArray(ad)) - ++nrarray; - - if (isArraySize(ad)) - ++nrarraysize; - } - - if (nrrxcon != nrslotcon || nrrxcon > 1) - yyerror("SIP_RXOBJ_CON and SIP_SLOT_CON must both be given and at most once"); - - if (nrrxdis != nrslotdis || nrrxdis > 1) - yyerror("SIP_RXOBJ_DIS and SIP_SLOT_DIS must both be given and at most once"); - - if (nrarray != nrarraysize || nrarray > 1) - yyerror("/Array/ and /ArraySize/ must both be given and at most once"); - - $$ = $1; - } - ; - -rawarglist: { - /* No arguments. */ - - $$.nrArgs = 0; - } - | argvalue { - /* The single or first argument. */ - - $$.args[0] = $1; - $$.nrArgs = 1; - } - | rawarglist ',' argvalue { - /* Check that it wasn't ...(,arg...). */ - if ($1.nrArgs == 0) - yyerror("First argument of the list is missing"); - - /* Check there is nothing after an ellipsis. */ - if ($1.args[$1.nrArgs - 1].atype == ellipsis_type) - yyerror("An ellipsis must be at the end of the argument list"); - - /* - * If this argument has no default value, then the - * previous one mustn't either. - */ - if ($3.defval == NULL && $1.args[$1.nrArgs - 1].defval != NULL) - yyerror("Compulsory argument given after optional argument"); - - /* Check there is room. */ - if ($1.nrArgs == MAX_NR_ARGS) - yyerror("Internal error - increase the value of MAX_NR_ARGS"); - - $$ = $1; - - $$.args[$$.nrArgs] = $3; - $$.nrArgs++; - } - ; - -argvalue: TK_SIPSIGNAL optname optassign { - $$.atype = signal_type; - $$.argflags = ARG_IS_CONST; - $$.nrderefs = 0; - $$.name = $2; - $$.defval = $3; - - currentSpec -> sigslots = TRUE; - } - | TK_SIPSLOT optname optassign { - $$.atype = slot_type; - $$.argflags = ARG_IS_CONST; - $$.nrderefs = 0; - $$.name = $2; - $$.defval = $3; - - currentSpec -> sigslots = TRUE; - } - | TK_SIPANYSLOT optname optassign { - $$.atype = anyslot_type; - $$.argflags = ARG_IS_CONST; - $$.nrderefs = 0; - $$.name = $2; - $$.defval = $3; - - currentSpec -> sigslots = TRUE; - } - | TK_SIPRXCON optname { - $$.atype = rxcon_type; - $$.argflags = 0; - $$.nrderefs = 0; - $$.name = $2; - - currentSpec -> sigslots = TRUE; - } - | TK_SIPRXDIS optname { - $$.atype = rxdis_type; - $$.argflags = 0; - $$.nrderefs = 0; - $$.name = $2; - - currentSpec -> sigslots = TRUE; - } - | TK_SIPSLOTCON '(' arglist ')' optname { - $$.atype = slotcon_type; - $$.argflags = ARG_IS_CONST; - $$.nrderefs = 0; - $$.name = $5; - - $3.result.atype = void_type; - $3.result.argflags = 0; - $3.result.nrderefs = 0; - - $$.u.sa = sipMalloc(sizeof (signatureDef)); - *$$.u.sa = $3; - - currentSpec -> sigslots = TRUE; - } - | TK_SIPSLOTDIS '(' arglist ')' optname { - $$.atype = slotdis_type; - $$.argflags = ARG_IS_CONST; - $$.nrderefs = 0; - $$.name = $5; - - $3.result.atype = void_type; - $3.result.argflags = 0; - $3.result.nrderefs = 0; - - $$.u.sa = sipMalloc(sizeof (signatureDef)); - *$$.u.sa = $3; - - currentSpec -> sigslots = TRUE; - } - | TK_QOBJECT optname { - $$.atype = qobject_type; - $$.argflags = 0; - $$.nrderefs = 0; - $$.name = $2; - } - | argtype optassign { - $$ = $1; - $$.defval = $2; - } - ; - -varmember: TK_STATIC {currentIsStatic = TRUE;} varmem - | varmem - ; - -varmem: member - | variable - ; - -member: TK_VIRTUAL {currentOverIsVirt = TRUE;} function - | function - ; - -variable: cpptype TK_NAME optflags ';' optaccesscode optgetcode optsetcode { - if (notSkipping()) - { - /* Check the section. */ - - if (sectionFlags != 0) - { - if ((sectionFlags & SECT_IS_PUBLIC) == 0) - yyerror("Class variables must be in the public section"); - - if (!currentIsStatic && $5 != NULL) - yyerror("%AccessCode cannot be specified for non-static class variables"); - } - - if (currentIsStatic && currentSpec -> genc) - yyerror("Cannot have static members in a C structure"); - - if ($6 != NULL || $7 != NULL) - { - if ($5 != NULL) - yyerror("Cannot mix %AccessCode and %GetCode or %SetCode"); - - if (currentScope() == NULL) - yyerror("Cannot specify %GetCode or %SetCode for global variables"); - } - - newVar(currentSpec,currentModule,$2,currentIsStatic,&$1,&$3,$5,$6,$7); - } - - currentIsStatic = FALSE; - } - ; - -cpptype: TK_CONST basetype deref optref { - $$ = $2; - $$.nrderefs = $3; - $$.argflags = ARG_IS_CONST | $4; - $$.name = NULL; - } - | basetype deref optref { - $$ = $1; - $$.nrderefs = $2; - $$.argflags = $3; - $$.name = NULL; - } - ; - -argtype: cpptype optname optflags { - $$ = $1; - $$.name = $2; - - if (findOptFlag(&$3,"AllowNone",bool_flag) != NULL) - $$.argflags |= ARG_ALLOW_NONE; - - if (findOptFlag(&$3,"GetWrapper",bool_flag) != NULL) - $$.argflags |= ARG_GET_WRAPPER; - - if (findOptFlag(&$3,"Array",bool_flag) != NULL) - $$.argflags |= ARG_ARRAY; - - if (findOptFlag(&$3,"ArraySize",bool_flag) != NULL) - $$.argflags |= ARG_ARRAY_SIZE; - - if (findOptFlag(&$3,"Transfer",bool_flag) != NULL) - $$.argflags |= ARG_XFERRED; - - if (findOptFlag(&$3,"TransferThis",bool_flag) != NULL) - $$.argflags |= ARG_THIS_XFERRED; - - if (findOptFlag(&$3,"TransferBack",bool_flag) != NULL) - $$.argflags |= ARG_XFERRED_BACK; - - if (findOptFlag(&$3,"In",bool_flag) != NULL) - $$.argflags |= ARG_IN; - - if (findOptFlag(&$3,"Out",bool_flag) != NULL) - $$.argflags |= ARG_OUT; - - if (findOptFlag(&$3,"Constrained",bool_flag) != NULL) - { - $$.argflags |= ARG_CONSTRAINED; - - switch ($$.atype) - { - case bool_type: - $$.atype = cbool_type; - break; - - case int_type: - $$.atype = cint_type; - break; - - case float_type: - $$.atype = cfloat_type; - break; - - case double_type: - $$.atype = cdouble_type; - break; - } - } - } - ; - -optref: { - $$ = 0; - } - | '&' { - if (currentSpec -> genc) - yyerror("References not allowed in a C module"); - - $$ = ARG_IS_REF; - } - ; - -deref: { - $$ = 0; - } - | deref '*' { - $$ = $1 + 1; - } - ; - -basetype: scopedname { - $$.atype = defined_type; - $$.u.snd = $1; - } - | scopedname '<' cpptypelist '>' { - templateDef *td; - - td = sipMalloc(sizeof(templateDef)); - td -> fqname = $1; - td -> types = $3; - - $$.atype = template_type; - $$.u.td = td; - } - | TK_STRUCT scopedname { - /* In a C module all structures must be defined. */ - if (currentSpec -> genc) - { - $$.atype = defined_type; - $$.u.snd = $2; - } - else - { - $$.atype = struct_type; - $$.u.sname = $2; - } - } - | TK_UNSIGNED TK_SHORT { - $$.atype = ushort_type; - } - | TK_SHORT { - $$.atype = short_type; - } - | TK_UNSIGNED { - $$.atype = uint_type; - } - | TK_UNSIGNED TK_INT { - $$.atype = uint_type; - } - | TK_INT { - $$.atype = int_type; - } - | TK_LONG { - $$.atype = long_type; - } - | TK_UNSIGNED TK_LONG { - $$.atype = ulong_type; - } - | TK_LONG TK_LONG { - $$.atype = longlong_type; - } - | TK_UNSIGNED TK_LONG TK_LONG { - $$.atype = ulonglong_type; - } - | TK_FLOAT { - $$.atype = float_type; - } - | TK_DOUBLE { - $$.atype = double_type; - } - | TK_BOOL { - $$.atype = bool_type; - } - | TK_SIGNED TK_CHAR { - $$.atype = sstring_type; - } - | TK_UNSIGNED TK_CHAR { - $$.atype = ustring_type; - } - | TK_CHAR { - $$.atype = string_type; - } - | TK_WCHAR_T { - $$.atype = wstring_type; - } - | TK_VOID { - $$.atype = void_type; - } - | TK_PYOBJECT { - $$.atype = pyobject_type; - } - | TK_PYTUPLE { - $$.atype = pytuple_type; - } - | TK_PYLIST { - $$.atype = pylist_type; - } - | TK_PYDICT { - $$.atype = pydict_type; - } - | TK_PYCALLABLE { - $$.atype = pycallable_type; - } - | TK_PYSLICE { - $$.atype = pyslice_type; - } - | TK_PYTYPE { - $$.atype = pytype_type; - } - | TK_ELLIPSIS { - $$.atype = ellipsis_type; - } - ; - -cpptypelist: cpptype { - /* The single or first type. */ - - $$.args[0] = $1; - $$.nrArgs = 1; - } - | cpptypelist ',' cpptype { - /* Check there is nothing after an ellipsis. */ - if ($1.args[$1.nrArgs - 1].atype == ellipsis_type) - yyerror("An ellipsis must be at the end of the argument list"); - - /* Check there is room. */ - if ($1.nrArgs == MAX_NR_ARGS) - yyerror("Internal error - increase the value of MAX_NR_ARGS"); - - $$ = $1; - - $$.args[$$.nrArgs] = $3; - $$.nrArgs++; - } - ; - -optexceptions: { - $$ = NULL; - } - | TK_THROW '(' exceptionlist ')' { - if (currentSpec->genc) - yyerror("Exceptions not allowed in a C module"); - - if (notSkipping() && inMainModule()) - { - int e; - ifaceFileList **ifl; - - /* - * Make sure the exceptions' header files are - * included. We unconditionally mark them to - * be included in the current scope's header - * file to save us the effort of checking if - * they are being used with a protected method, - * a virtual or a signal. - */ - ifl = (currentScope() != NULL) ? ¤tScope()->iff->used : ¤tSpec->used; - - for (e = 0; e < $3->nrArgs; ++e) - addToUsedList(ifl, $3->args[e]->iff); - } - - $$ = $3; - } - ; - -exceptionlist: { - /* Empty list so use a blank. */ - - $$ = sipMalloc(sizeof (throwArgs)); - $$ -> nrArgs = 0; - } - | scopedname { - /* The only or first exception. */ - - $$ = sipMalloc(sizeof (throwArgs)); - $$ -> nrArgs = 1; - $$ -> args[0] = findException(currentSpec, $1, FALSE); - } - | exceptionlist ',' scopedname { - /* Check that it wasn't ...(,arg...). */ - - if ($1 -> nrArgs == 0) - yyerror("First exception of throw specifier is missing"); - - /* Check there is room. */ - - if ($1 -> nrArgs == MAX_NR_ARGS) - yyerror("Internal error - increase the value of MAX_NR_ARGS"); - - $$ = $1; - $$ -> args[$$ -> nrArgs++] = findException(currentSpec, $3, FALSE); - } - ; - -%% - - -/* - * Parse the specification. - */ -void parse(sipSpec *spec,FILE *fp,char *filename,stringList *tsl, - stringList *xfl) -{ - classTmplDef *tcd; - - /* Initialise the spec. */ - - spec -> modules = NULL; - spec -> namecache = NULL; - spec -> ifacefiles = NULL; - spec -> classes = NULL; - spec -> classtemplates = NULL; - spec -> proxies = NULL; - spec -> exceptions = NULL; - spec -> mappedtypes = NULL; - spec -> mappedtypetemplates = NULL; - spec -> qobjclass = -1; - spec -> enums = NULL; - spec -> vars = NULL; - spec -> othfuncs = NULL; - spec -> overs = NULL; - spec -> typedefs = NULL; - spec -> copying = NULL; - spec -> exphdrcode = NULL; - spec -> hdrcode = NULL; - spec -> cppcode = NULL; - spec -> docs = NULL; - spec -> preinitcode = NULL; - spec -> postinitcode = NULL; - spec -> unitcode = NULL; - spec -> used = NULL; - spec -> sigslots = FALSE; - spec -> genc = -1; - spec -> options = NULL; - - currentSpec = spec; - neededQualifiers = tsl; - excludedQualifiers = xfl; - currentModule = NULL; - currentMappedType = NULL; - currentOverIsVirt = FALSE; - currentCtorIsExplicit = FALSE; - currentIsStatic = FALSE; - previousFile = NULL; - skipStackPtr = 0; - currentScopeIdx = 0; - sectionFlags = 0; - - newModule(fp,filename); - spec -> module = currentModule; - - yyparse(); - - handleEOF(); - handleEOM(); - - /* - * Go through each template class and remove it from the list of - * classes. - */ - for (tcd = spec->classtemplates; tcd != NULL; tcd = tcd->next) - { - classDef **cdp; - - for (cdp = &spec->classes; *cdp != NULL; cdp = &(*cdp)->next) - if (*cdp == tcd->cd) - { - ifaceFileDef **ifdp; - - /* Remove the interface file as well. */ - for (ifdp = &spec->ifacefiles; *ifdp != NULL; ifdp = &(*ifdp)->next) - if (*ifdp == tcd->cd->iff) - { - *ifdp = (*ifdp)->next; - break; - } - - *cdp = (*cdp)->next; - break; - } - } -} - - -/* - * Tell the parser that a complete file has now been read. - */ -void parserEOF(char *name,parserContext *pc) -{ - previousFile = sipStrdup(name); - newContext = *pc; -} - - -/* - * Append a class definition to a class list if it doesn't already appear. - * Append is needed specifically for the list of super-classes because the - * order is important to Python. - */ -void appendToClassList(classList **clp,classDef *cd) -{ - classList *new; - - /* Find the end of the list. */ - - while (*clp != NULL) - { - if ((*clp) -> cd == cd) - return; - - clp = &(*clp) -> next; - } - - new = sipMalloc(sizeof (classList)); - - new -> cd = cd; - new -> next = NULL; - - *clp = new; -} - - -/* - * Create a new module for the current specification and make it current. - */ -static void newModule(FILE *fp,char *filename) -{ - moduleDef *newmod; - - parseFile(fp,filename,currentModule,FALSE); - - newmod = sipMalloc(sizeof (moduleDef)); - newmod -> fullname = NULL; - newmod -> name = NULL; - newmod -> version = -1; - newmod -> modflags = 0; - newmod -> modulenr = -1; - newmod -> file = filename; - newmod -> qualifiers = NULL; - newmod -> root.cd = NULL; - newmod -> root.child = NULL; - newmod -> nrtimelines = 0; - newmod -> nrclasses = 0; - newmod -> nrexceptions = 0; - newmod -> nrmappedtypes = 0; - newmod -> nrenums = 0; - newmod -> nrtypedefs = 0; - newmod -> nrvirthandlers = 0; - newmod -> virthandlers = NULL; - newmod -> license = NULL; - newmod -> allimports = NULL; - newmod -> imports = NULL; - newmod -> next = currentSpec -> modules; - - currentModule = currentSpec->modules = newmod; -} - - -/* - * Switch to parsing a new file. - */ -static void parseFile(FILE *fp,char *name,moduleDef *prevmod,int optional) -{ - parserContext pc; - - pc.ifdepth = skipStackPtr; - pc.prevmod = prevmod; - - setInputFile(fp,name,&pc,optional); -} - - -/* - * Find an interface file, or create a new one. - */ -ifaceFileDef *findIfaceFile(sipSpec *pt, moduleDef *mod, scopedNameDef *fqname, - ifaceFileType iftype, argDef *ad) -{ - ifaceFileDef *iff; - - /* See if the name is already used. */ - - for (iff = pt -> ifacefiles; iff != NULL; iff = iff -> next) - { - if (!sameScopedName(iff -> fqcname,fqname)) - continue; - - /* - * They must be the same type except that we allow a class if - * if we want an exception. This is because we allow classes - * to be used before they are defined. - */ - if (iff -> type != iftype) - if (iftype != exception_iface || iff -> type != class_iface) - yyerror("A class, exception, namespace or mapped type has already been defined with the same name"); - - /* Ignore an external class declared in another module. */ - if (iftype == class_iface && iff->module != mod) - { - classDef *cd; - - for (cd = pt->classes; cd != NULL; cd = cd->next) - if (cd->iff == iff) - break; - - if (cd != NULL && iff->module != NULL && isExternal(cd)) - continue; - } - - /* - * If this is a mapped type with the same name defined in a - * different module, then check that this type isn't the same - * as any of the mapped types defined in that module. - */ - if (iftype == mappedtype_iface && iff -> module != mod) - { - mappedTypeDef *mtd; - - for (mtd = pt -> mappedtypes; mtd != NULL; mtd = mtd -> next) - { - if (mtd -> iff != iff) - continue; - - if (ad -> atype != template_type || - mtd -> type.atype != template_type || - sameBaseType(ad,&mtd -> type)) - yyerror("Mapped type has already been defined in another module"); - } - - /* - * If we got here then we have a mapped type based on - * an existing template, but with unique parameters. - * We don't want to use interface files from other - * modules, so skip this one. - */ - - continue; - } - - /* Ignore a namespace defined in another module. */ - if (iftype == namespace_iface && iff->module != mod) - continue; - - return iff; - } - - iff = sipMalloc(sizeof (ifaceFileDef)); - - iff -> name = cacheName(pt,scopedNameTail(fqname)); - iff -> type = iftype; - iff -> fqcname = fqname; - iff -> module = NULL; - iff -> used = NULL; - iff -> next = pt -> ifacefiles; - - pt -> ifacefiles = iff; - - return iff; -} - - -/* - * Find a class definition in a parse tree. - */ -static classDef *findClass(sipSpec *pt,ifaceFileType iftype, - scopedNameDef *fqname) -{ - return findClassWithInterface(pt, findIfaceFile(pt, currentModule, fqname, iftype, NULL)); -} - - -/* - * Find a class definition given an existing interface file. - */ -static classDef *findClassWithInterface(sipSpec *pt, ifaceFileDef *iff) -{ - classDef *cd; - - for (cd = pt -> classes; cd != NULL; cd = cd -> next) - if (cd -> iff == iff) - return cd; - - /* Create a new one. */ - cd = sipMalloc(sizeof (classDef)); - - cd -> iff = iff; - cd -> pyname = classBaseName(cd); - cd -> classnr = -1; - cd -> classflags = 0; - cd -> userflags = 0; - cd -> ecd = NULL; - cd -> dtorexceptions = NULL; - cd -> real = NULL; - cd -> node = NULL; - cd -> supers = NULL; - cd -> mro = NULL; - cd -> td = NULL; - cd -> ctors = NULL; - cd -> defctor = NULL; - cd -> dealloccode = NULL; - cd -> dtorcode = NULL; - cd -> members = NULL; - cd -> overs = NULL; - cd -> casts = NULL; - cd -> vmembers = NULL; - cd -> visible = NULL; - cd -> cppcode = NULL; - cd -> hdrcode = NULL; - cd -> convtosubcode = NULL; - cd -> subbase = NULL; - cd -> convtocode = NULL; - cd -> travcode = NULL; - cd -> clearcode = NULL; - cd -> readbufcode = NULL; - cd -> writebufcode = NULL; - cd -> segcountcode = NULL; - cd -> charbufcode = NULL; - cd -> next = pt -> classes; - - pt -> classes = cd; - - return cd; -} - - -/* - * Add an interface file to an interface file list if it isn't already there. - */ -ifaceFileList *addToUsedList(ifaceFileList **ifflp, ifaceFileDef *iff) -{ - ifaceFileList *iffl; - - while ((iffl = *ifflp) != NULL) - { - /* Don't bother if it is already there. */ - if (iffl -> iff == iff) - return iffl; - - ifflp = &iffl -> next; - } - - iffl = sipMalloc(sizeof (ifaceFileList)); - - iffl->iff = iff; - iffl->header = FALSE; - iffl->next = NULL; - - *ifflp = iffl; - - return iffl; -} - - -/* - * Find an undefined (or create a new) exception definition in a parse tree. - */ -static exceptionDef *findException(sipSpec *pt, scopedNameDef *fqname, int new) -{ - exceptionDef *xd, **tail; - ifaceFileDef *iff; - classDef *cd; - - iff = findIfaceFile(pt, currentModule, fqname, exception_iface, NULL); - - /* See if it is an existing one. */ - for (xd = pt->exceptions; xd != NULL; xd = xd->next) - if (xd->iff == iff) - return xd; - - /* - * If it is an exception interface file then we have never seen this - * name before. We require that exceptions are defined before being - * used, but don't make the same requirement of classes (for reasons of - * backwards compatibility). Therefore the name must be reinterpreted - * as a (as yet undefined) class. - */ - if (new) - if (iff->type == exception_iface) - cd = NULL; - else - yyerror("There is already a class with the same name or the exception has been used before being defined"); - else - { - if (iff->type == exception_iface) - iff->type = class_iface; - - cd = findClassWithInterface(pt, iff); - } - - /* Create a new one. */ - xd = sipMalloc(sizeof (exceptionDef)); - - xd->exceptionnr = -1; - xd->iff = iff; - xd->pyname = NULL; - xd->cd = cd; - xd->bibase = NULL; - xd->base = NULL; - xd->hdrcode = NULL; - xd->raisecode = NULL; - xd->next = NULL; - - /* Append it to the list. */ - for (tail = &pt->exceptions; *tail != NULL; tail = &(*tail)->next) - ; - - *tail = xd; - - return xd; -} - - -/* - * Find an undefined (or create a new) class definition in a parse tree. - */ -static classDef *newClass(sipSpec *pt,ifaceFileType iftype, - scopedNameDef *fqname) -{ - int flags; - classDef *cd, *scope; - codeBlock *hdrcode; - - if (sectionFlags & SECT_IS_PRIVATE) - yyerror("Classes, structs and namespaces must be in the public or or protected sections"); - - flags = 0; - - if ((scope = currentScope()) != NULL) - { - if (sectionFlags & SECT_IS_PROT) - flags = CLASS_IS_PROTECTED; - - hdrcode = scope -> hdrcode; - } - else - hdrcode = NULL; - - if (pt -> genc) - { - /* C structs are always global types. */ - while (fqname -> next != NULL) - fqname = fqname -> next; - - scope = NULL; - } - - cd = findClass(pt,iftype,fqname); - - /* Check it hasn't already been defined. */ - if (iftype != namespace_iface && cd->iff->module != NULL) - yyerror("The struct/class has already been defined"); - - /* Complete the initialisation. */ - cd->classflags |= flags; - cd->ecd = scope; - cd->iff->module = currentModule; - - appendCodeBlock(&cd->hdrcode, hdrcode); - - /* See if it is a namespace extender. */ - if (iftype == namespace_iface) - { - classDef *ns; - - for (ns = pt->classes; ns != NULL; ns = ns->next) - { - if (ns == cd) - continue; - - if (ns->iff->type != namespace_iface) - continue; - - if (!sameScopedName(ns->iff->fqcname, fqname)) - continue; - - cd->real = ns; - break; - } - } - - return cd; -} - - -/* - * Tidy up after finishing a class definition. - */ -static void finishClass(sipSpec *pt, moduleDef *mod, classDef *cd, optFlags *of) -{ - char *pyname; - optFlag *flg; - - /* Get the Python name and see if it is different to the C++ name. */ - pyname = getPythonName(of, classBaseName(cd)); - - cd -> pyname = NULL; - checkAttributes(pt, cd->ecd, pyname, FALSE); - cd->pyname = pyname; - - if (cd->pyname != classBaseName(cd)) - setIsRenamedClass(cd); - - if ((flg = findOptFlag(of, "TypeFlags", integer_flag)) != NULL) - cd->userflags = flg->fvalue.ival; - - if (isOpaque(cd)) - { - if (findOptFlag(of, "External", bool_flag) != NULL) - setIsExternal(cd); - } - else - { - int seq_might, seq_not; - memberDef *md; - - if (findOptFlag(of, "NoDefaultCtors", bool_flag) != NULL) - setNoDefaultCtors(cd); - - if (cd -> ctors == NULL) - { - if (!noDefaultCtors(cd)) - { - /* Provide a default ctor. */ - - cd->ctors = sipMalloc(sizeof (ctorDef)); - - cd->ctors->ctorflags = SECT_IS_PUBLIC; - cd->ctors->pysig.nrArgs = 0; - cd->ctors->cppsig = &cd -> ctors -> pysig; - cd->ctors->exceptions = NULL; - cd->ctors->methodcode = NULL; - cd->ctors->prehook = NULL; - cd->ctors->posthook = NULL; - cd->ctors->next = NULL; - - cd->defctor = cd->ctors; - - setCanCreate(cd); - } - } - else if (cd -> defctor == NULL) - { - ctorDef *ct, *last = NULL; - - for (ct = cd -> ctors; ct != NULL; ct = ct -> next) - { - if (!isPublicCtor(ct)) - continue; - - if (ct -> pysig.nrArgs == 0 || ct -> pysig.args[0].defval != NULL) - { - cd -> defctor = ct; - break; - } - - if (last == NULL) - last = ct; - } - - /* The last resort is the first public ctor. */ - if (cd->defctor == NULL) - cd->defctor = last; - } - - if (findOptFlag(of,"Abstract",bool_flag) != NULL) - { - setIsAbstractClass(cd); - setIsIncomplete(cd); - resetCanCreate(cd); - } - - /* We assume a public dtor if nothing specific was provided. */ - if (!isDtor(cd)) - setIsPublicDtor(cd); - - if (findOptFlag(of, "DelayDtor", bool_flag) != NULL) - { - setIsDelayedDtor(cd); - setHasDelayedDtors(mod); - } - - /* - * There are subtle differences between the add and concat methods and - * the multiply and repeat methods. The number versions can have their - * operands swapped and may return NotImplemented. If the user has - * used the /Numeric/ annotation or there are other numeric operators - * then we use add/multiply. Otherwise, if there are indexing - * operators then we use concat/repeat. - */ - seq_might = seq_not = FALSE; - - for (md = cd -> members; md != NULL; md = md -> next) - switch (md -> slot) - { - case getitem_slot: - case setitem_slot: - case delitem_slot: - /* This might be a sequence. */ - seq_might = TRUE; - break; - - case sub_slot: - case isub_slot: - case div_slot: - case idiv_slot: - case mod_slot: - case imod_slot: - case pos_slot: - case neg_slot: - /* This is definately not a sequence. */ - seq_not = TRUE; - break; - } - - if (!seq_not && seq_might) - for (md = cd -> members; md != NULL; md = md -> next) - { - /* Ignore if the user has been explicit. */ - if (isNumeric(md)) - continue; - - switch (md -> slot) - { - case add_slot: - md -> slot = concat_slot; - break; - - case iadd_slot: - md -> slot = iconcat_slot; - break; - - case mul_slot: - md -> slot = repeat_slot; - break; - - case imul_slot: - md -> slot = irepeat_slot; - break; - } - } - } - - if (inMainModule()) - { - setIsUsedName(cd->iff->name); - setIsClassName(cd->iff->name); - } -} - - -/* - * Create a new mapped type. - */ -static mappedTypeDef *newMappedType(sipSpec *pt,argDef *ad) -{ - mappedTypeDef *mtd; - scopedNameDef *snd; - ifaceFileDef *iff; - - /* Check that the type is one we want to map. */ - switch (ad -> atype) - { - case defined_type: - snd = ad -> u.snd; - break; - - case template_type: - snd = ad -> u.td -> fqname; - break; - - case struct_type: - snd = ad -> u.sname; - break; - - default: - yyerror("Invalid type for %MappedType"); - } - - iff = findIfaceFile(pt, currentModule, snd, mappedtype_iface, ad); - - if (inMainModule()) - setIsUsedName(iff -> name); - - /* Check it hasn't already been defined. */ - for (mtd = pt -> mappedtypes; mtd != NULL; mtd = mtd -> next) - if (mtd -> iff == iff) - { - /* - * We allow types based on the same template but with - * different arguments. - */ - - if (ad -> atype != template_type || - sameBaseType(ad,&mtd -> type)) - yyerror("Mapped type has already been defined in this module"); - } - - /* The module may not have been set yet. */ - iff -> module = currentModule; - - /* Create a new mapped type. */ - mtd = allocMappedType(ad); - - mtd -> iff = iff; - mtd -> next = pt -> mappedtypes; - - pt -> mappedtypes = mtd; - - return mtd; -} - - -/* - * Allocate, intialise and return a mapped type structure. - */ -mappedTypeDef *allocMappedType(argDef *type) -{ - mappedTypeDef *mtd; - - mtd = sipMalloc(sizeof (mappedTypeDef)); - - mtd->type = *type; - mtd->type.argflags = 0; - mtd->type.nrderefs = 0; - - mtd->mappednr = -1; - mtd->iff = NULL; - mtd->hdrcode = NULL; - mtd->convfromcode = NULL; - mtd->convtocode = NULL; - mtd->next = NULL; - - return mtd; -} - - -/* - * Create a new enum. - */ -static enumDef *newEnum(sipSpec *pt,moduleDef *mod,char *name,optFlags *of, - int flags) -{ - enumDef *ed; - classDef *escope = currentScope(); - - ed = sipMalloc(sizeof (enumDef)); - - if (name != NULL) - { - ed -> fqcname = text2scopedName(name); - ed -> pyname = cacheName(pt, getPythonName(of, name)); - - checkAttributes(pt, escope, ed->pyname->text, FALSE); - } - else - { - ed -> fqcname = NULL; - ed -> pyname = NULL; - } - - ed -> enumflags = flags; - ed -> enumnr = -1; - ed -> ecd = escope; - ed -> pcd = (flags & SECT_IS_PROT) ? escope : NULL; - ed -> module = mod; - ed -> members = NULL; - ed -> slots = NULL; - ed -> overs = NULL; - ed -> next = pt -> enums; - - if (name != NULL && strcmp(ed->pyname->text, name) != 0) - setIsRenamedEnum(ed); - - pt -> enums = ed; - - if (escope != NULL) - setHasEnums(escope); - - return ed; -} - - -/* - * Get the type values and (optionally) the type names for substitution in - * handwritten code. - */ -void appendTypeStrings(scopedNameDef *ename, signatureDef *patt, signatureDef *src, signatureDef *known, scopedNameDef **names, scopedNameDef **values) -{ - int a; - - for (a = 0; a < patt->nrArgs; ++a) - { - argDef *pad = &patt->args[a]; - - if (pad->atype == defined_type) - { - char *nam = NULL; - - /* - * If the type names are already known then check that - * this is one of them. - */ - if (known == NULL) - nam = scopedNameTail(pad->u.snd); - else if (pad->u.snd->next == NULL) - { - int k; - - for (k = 0; k < known->nrArgs; ++k) - if (strcmp(pad->u.snd->name, known->args[k].u.snd->name) == 0) - { - nam = pad->u.snd->name; - break; - } - } - - if (nam == NULL) - continue; - - /* Add the name. */ - appendScopedName(names, text2scopePart(nam)); - - /* Add the corresponding value. */ - appendScopedName(values, text2scopePart(getType(ename, &src->args[a]))); - } - else if (pad->atype == template_type) - { - argDef *sad = &src->args[a]; - - /* These checks shouldn't be necessary, but... */ - if (sad->atype == template_type && pad->u.td->types.nrArgs == sad->u.td->types.nrArgs) - appendTypeStrings(ename, &pad->u.td->types, &sad->u.td->types, known, names, values); - } - } -} - - -/* - * Convert a type to a string. We impose some limitations because I'm too lazy - * to handle everything that might be needed one day. - */ -static char *getType(scopedNameDef *ename, argDef *ad) -{ - if (ad->atype == defined_type) - return scopedNameToString(ad->u.snd); - - fatalScopedName(ename); - fatal(": unsupported type argument to template class instantiation\n"); - - return NULL; -} - - -/* - * Convert a scoped name to a string on the heap. - */ -static char *scopedNameToString(scopedNameDef *name) -{ - static const char scope_string[] = "::"; - size_t len; - scopedNameDef *snd; - char *s, *dp; - - /* Work out the length of buffer needed. */ - len = 0; - - for (snd = name; snd != NULL; snd = snd->next) - { - len += strlen(snd->name); - - if (snd->next != NULL) - len += strlen(scope_string); - } - - /* Allocate and populate the buffer. */ - dp = s = sipMalloc(len + 1); - - for (snd = name; snd != NULL; snd = snd->next) - { - strcpy(dp, snd->name); - dp += strlen(snd->name); - - if (snd->next != NULL) - { - strcpy(dp, scope_string); - dp += strlen(scope_string); - } - } - - return s; -} - - -/* - * Instantiate a class template. - */ -static void instantiateClassTemplate(sipSpec *pt, moduleDef *mod, classDef *scope, scopedNameDef *fqname, classTmplDef *tcd, templateDef *td) -{ - scopedNameDef *type_names, *type_values; - classDef *cd; - ctorDef *oct, **cttail; - memberDef *omd, **mdtail; - overDef *ood, **odtail; - argDef *ad; - ifaceFileList *iffl, **used; - - type_names = type_values = NULL; - appendTypeStrings(classFQCName(tcd->cd), &tcd->sig, &td->types, NULL, &type_names, &type_values); - - /* - * Add a mapping from the template name to the instantiated name. If - * we have got this far we know there is room for it. - */ - ad = &tcd->sig.args[tcd->sig.nrArgs++]; - ad->atype = defined_type; - ad->name = NULL; - ad->argflags = 0; - ad->nrderefs = 0; - ad->defval = NULL; - ad->u.snd = classFQCName(tcd->cd); - - appendScopedName(&type_names, text2scopePart(scopedNameTail(classFQCName(tcd->cd)))); - appendScopedName(&type_values, text2scopePart(scopedNameToString(fqname))); - - /* Create the new class. */ - cd = sipMalloc(sizeof (classDef)); - - /* Start with a shallow copy. */ - *cd = *tcd->cd; - - cd->pyname = scopedNameTail(fqname); - cd->td = td; - - /* Handle the interface file. */ - cd->iff = findIfaceFile(pt, mod, fqname, class_iface, NULL); - cd->iff->module = mod; - - /* Make a copy of the used list and add the enclosing scope. */ - used = &cd->iff->used; - - for (iffl = tcd->cd->iff->used; iffl != NULL; iffl = iffl->next) - addToUsedList(used, iffl->iff); - - if (scope != NULL) - addToUsedList(&cd->iff->used, scope->iff); - - if (inMainModule()) - { - setIsUsedName(cd->iff->name); - setIsClassName(cd->iff->name); - } - - cd->ecd = currentScope(); - - /* Handle the ctors. */ - cd->ctors = NULL; - cttail = &cd->ctors; - - for (oct = tcd->cd->ctors; oct != NULL; oct = oct->next) - { - ctorDef *nct = sipMalloc(sizeof (ctorDef)); - - /* Start with a shallow copy. */ - *nct = *oct; - - templateSignature(&nct->pysig, FALSE, tcd, td, cd); - - if (oct->cppsig == NULL) - nct->cppsig = NULL; - else if (oct->cppsig == &oct->pysig) - nct->cppsig = &nct->pysig; - else - { - nct->cppsig = sipMalloc(sizeof (signatureDef)); - - *nct->cppsig = *oct->cppsig; - - templateSignature(nct->cppsig, FALSE, tcd, td, cd); - } - - nct->methodcode = templateCode(pt, used, nct->methodcode, type_names, type_values); - - nct->next = NULL; - *cttail = nct; - cttail = &nct->next; - - /* Handle the default ctor. */ - if (tcd->cd->defctor == oct) - cd->defctor = nct; - } - - cd->dealloccode = templateCode(pt, used, cd->dealloccode, type_names, type_values); - cd->dtorcode = templateCode(pt, used, cd->dtorcode, type_names, type_values); - - /* Handle the members, ie. the common parts of overloads. */ - cd->members = NULL; - mdtail = &cd->members; - - for (omd = tcd->cd->members; omd != NULL; omd = omd->next) - { - memberDef *nmd = sipMalloc(sizeof (memberDef)); - - /* Start with a shallow copy. */ - *nmd = *omd; - - nmd->module = mod; - - nmd->next = NULL; - *mdtail = nmd; - mdtail = &nmd->next; - } - - /* Handle the overloads. */ - cd->overs = NULL; - odtail = &cd->overs; - - for (ood = tcd->cd->overs; ood != NULL; ood = ood->next) - { - overDef *nod = sipMalloc(sizeof (overDef)); - memberDef *nmd; - - /* Start with a shallow copy. */ - *nod = *ood; - - for (nmd = cd->members, omd = tcd->cd->members; omd != NULL; omd = omd->next, nmd = nmd->next) - if (omd == ood->common) - { - nod->common = nmd; - break; - } - - templateSignature(&nod->pysig, TRUE, tcd, td, cd); - - if (ood->cppsig == &ood->pysig) - nod->cppsig = &nod->pysig; - else - { - nod->cppsig = sipMalloc(sizeof (signatureDef)); - - *nod->cppsig = *ood->cppsig; - - templateSignature(nod->cppsig, TRUE, tcd, td, cd); - } - - nod->methodcode = templateCode(pt, used, nod->methodcode, type_names, type_values); - - /* Handle any virtual handler. */ - if (ood->virthandler != NULL) - { - nod->virthandler = sipMalloc(sizeof (virtHandlerDef)); - - /* Start with a shallow copy. */ - *nod->virthandler = *ood->virthandler; - - if (ood->virthandler->cppsig == &ood->pysig) - nod->virthandler->cppsig = &nod->pysig; - else - { - nod->virthandler->cppsig = sipMalloc(sizeof (signatureDef)); - - *nod->virthandler->cppsig = *ood->virthandler->cppsig; - - templateSignature(nod->virthandler->cppsig, TRUE, tcd, td, cd); - } - - nod->virthandler->module = mod; - nod->virthandler->virtcode = templateCode(pt, used, nod->virthandler->virtcode, type_names, type_values); - nod->virthandler->next = mod->virthandlers; - - mod->virthandlers = nod->virthandler; - } - - nod->next = NULL; - *odtail = nod; - odtail = &nod->next; - } - - cd->cppcode = templateCode(pt, used, cd->cppcode, type_names, type_values); - cd->hdrcode = templateCode(pt, used, cd->hdrcode, type_names, type_values); - cd->convtosubcode = templateCode(pt, used, cd->convtosubcode, type_names, type_values); - cd->convtocode = templateCode(pt, used, cd->convtocode, type_names, type_values); - cd->travcode = templateCode(pt, used, cd->travcode, type_names, type_values); - cd->clearcode = templateCode(pt, used, cd->clearcode, type_names, type_values); - cd->readbufcode = templateCode(pt, used, cd->readbufcode, type_names, type_values); - cd->writebufcode = templateCode(pt, used, cd->writebufcode, type_names, type_values); - cd->segcountcode = templateCode(pt, used, cd->segcountcode, type_names, type_values); - cd->charbufcode = templateCode(pt, used, cd->charbufcode, type_names, type_values); - cd->next = pt->classes; - - pt->classes = cd; - - tcd->sig.nrArgs--; - - freeScopedName(type_names); - freeScopedName(type_values); -} - - -/* - * Replace any template arguments in a signature. - */ -static void templateSignature(signatureDef *sd, int result, classTmplDef *tcd, templateDef *td, classDef *ncd) -{ - int a; - - if (result) - templateType(&sd->result, tcd, td, ncd); - - for (a = 0; a < sd->nrArgs; ++a) - templateType(&sd->args[a], tcd, td, ncd); -} - - -/* - * Replace any template arguments in a type. - */ -static void templateType(argDef *ad, classTmplDef *tcd, templateDef *td, classDef *ncd) -{ - int a; - char *name; - - /* Ignore if it isn't an unscoped name. */ - if (ad->atype != defined_type || ad->u.snd->next != NULL) - return; - - name = ad->u.snd->name; - - for (a = 0; a < tcd->sig.nrArgs - 1; ++a) - if (strcmp(name, scopedNameTail(tcd->sig.args[a].u.snd)) == 0) - { - ad->atype = td->types.args[a].atype; - - /* We take the constrained flag from the real type. */ - resetIsConstrained(ad); - - if (isConstrained(&td->types.args[a])) - setIsConstrained(ad); - - ad->u = td->types.args[a].u; - - return; - } - - /* Handle the class name itself. */ - if (strcmp(name, scopedNameTail(classFQCName(tcd->cd))) == 0) - { - ad->atype = class_type; - ad->u.cd = ncd; - } -} - - -/* - * Replace any template arguments in a literal code block. - */ -codeBlock *templateCode(sipSpec *pt, ifaceFileList **used, codeBlock *ocb, scopedNameDef *names, scopedNameDef *values) -{ - codeBlock *ncb = NULL, **tail = &ncb; - - while (ocb != NULL) - { - char *at = ocb->frag; - - do - { - char *first = NULL; - codeBlock *cb; - scopedNameDef *nam, *val, *nam_first, *val_first; - - /* - * Go through the rest of this fragment looking for - * each of the types and the name of the class itself. - */ - nam = names; - val = values; - - while (nam != NULL && val != NULL) - { - char *cp; - - if ((cp = strstr(at, nam->name)) != NULL) - if (first == NULL || first > cp) - { - nam_first = nam; - val_first = val; - first = cp; - } - - nam = nam->next; - val = val->next; - } - - /* Create the new fragment. */ - cb = sipMalloc(sizeof (codeBlock)); - - if (at == ocb->frag) - { - cb->filename = ocb->filename; - cb->linenr = ocb->linenr; - } - else - cb->filename = NULL; - - cb->next = NULL; - *tail = cb; - tail = &cb->next; - - /* See if anything was found. */ - if (first == NULL) - { - /* We can just point to this. */ - cb->frag = at; - - /* All done with this one. */ - at = NULL; - } - else - { - static char *gen_names[] = { - "sipForceConvertToTransfer_", - "sipForceConvertTo_", - "sipConvertFromTransfer_", - "sipConvertFrom_", - "sipClass_", - "sipEnum_", - "sipException_", - NULL - }; - - char *dp, *sp, **gn; - int genname = FALSE; - - /* - * If the context in which the text is used is - * in the name of a SIP generated object then - * translate any "::" scoping to "_". - */ - for (gn = gen_names; *gn != NULL; ++gn) - if (search_back(first, at, *gn)) - { - addUsedFromCode(pt, used, val_first->name); - genname = TRUE; - break; - } - - /* Fragment the fragment. */ - cb->frag = sipMalloc(first - at + strlen(val_first->name) + 1); - - strncpy(cb->frag, at, first - at); - - dp = &cb->frag[first - at]; - sp = val_first->name; - - if (genname) - { - char gch; - - while ((gch = *sp++) != '\0') - if (gch == ':' && *sp == ':') - { - *dp++ = '_'; - ++sp; - } - else - *dp++ = gch; - - *dp = '\0'; - } - else - strcpy(dp, sp); - - /* Move past the replaced text. */ - at = first + strlen(nam_first->name); - } - } - while (at != NULL && *at != '\0'); - - ocb = ocb->next; - } - - return ncb; -} - - -/* - * Return TRUE if the text at the end of a string matches the target string. - */ -static int search_back(const char *end, const char *start, const char *target) -{ - size_t tlen = strlen(target); - - if (start + tlen >= end) - return FALSE; - - return (strncmp(end - tlen, target, tlen) == 0); -} - - -/* - * Add any needed interface files based on handwritten code. - */ -static void addUsedFromCode(sipSpec *pt, ifaceFileList **used, const char *sname) -{ - ifaceFileDef *iff; - enumDef *ed; - - for (iff = pt->ifacefiles; iff != NULL; iff = iff->next) - { - if (iff->type != class_iface && iff->type != exception_iface) - continue; - - if (sameName(iff->fqcname, sname)) - { - addToUsedList(used, iff); - - return; - } - } - - for (ed = pt->enums; ed != NULL; ed = ed->next) - { - if (ed->ecd == NULL) - continue; - - if (sameName(ed->fqcname, sname)) - { - addToUsedList(used, ed->ecd->iff); - - return; - } - } -} - - -/* - * Compare a scoped name with its string equivalent. - */ -static int sameName(scopedNameDef *snd, const char *sname) -{ - while (snd != NULL && *sname != '\0') - { - const char *sp = snd->name; - - while (*sp != '\0' && *sname != ':' && *sname != '\0') - if (*sp++ != *sname++) - return FALSE; - - if (*sp != '\0' || (*sname != ':' && *sname != '\0')) - return FALSE; - - snd = snd->next; - - if (*sname == ':') - sname += 2; - } - - return (snd == NULL && *sname == '\0'); -} - - -/* - * Create a new typedef. - */ -static void newTypedef(sipSpec *pt,moduleDef *mod,char *name,argDef *type) -{ - typedefDef *td; - scopedNameDef *fqname = text2scopedName(name); - classDef *scope = currentScope(); - - /* See if we are instantiating a template class. */ - if (type->atype == template_type) - { - classTmplDef *tcd; - templateDef *td = type->u.td; - - for (tcd = pt->classtemplates; tcd != NULL; tcd = tcd->next) - if (sameScopedName(tcd->cd->iff->fqcname, td->fqname)) - { - if (!sameTemplateSignature(&tcd->sig, &td->types, FALSE)) - continue; - - instantiateClassTemplate(pt, mod, scope, fqname, tcd, td); - - /* All done. */ - return; - } - } - - /* Check it doesn't already exist. */ - for (td = pt -> typedefs; td != NULL; td = td -> next) - if (sameScopedName(td -> fqname,fqname)) - { - fatalScopedName(fqname); - fatal(" already defined\n"); - } - - td = sipMalloc(sizeof (typedefDef)); - - td -> fqname = fqname; - td -> ecd = scope; - td -> module = mod; - td -> type = *type; - td -> next = pt -> typedefs; - - mod -> nrtypedefs++; - - pt -> typedefs = td; -} - - -/* - * Return TRUE if the template signatures are the same. A deep comparison is - * used for mapped type templates where we want to recurse into any nested - * templates. - */ -int sameTemplateSignature(signatureDef *sd1, signatureDef *sd2, int deep) -{ - int a; - - if (sd1->nrArgs != sd2->nrArgs) - return FALSE; - - for (a = 0; a < sd1->nrArgs; ++a) - { - argDef *ad1 = &sd1->args[a]; - argDef *ad2 = &sd2->args[a]; - - /* - * If we are doing a shallow comparision (ie. for class - * templates) then a type name on the left hand side matches - * anything on the right hand side. - */ - if (ad1->atype == defined_type && !deep) - continue; - - /* - * For type names only compare the references and pointers, and - * do the same for any nested templates. - */ - if (ad1->atype == defined_type && ad2->atype == defined_type) - { - if (isReference(ad1) != isReference(ad2) || ad1->nrderefs != ad2->nrderefs) - return FALSE; - } - else if (ad1->atype == template_type && ad2->atype == template_type) - { - if (!sameTemplateSignature(&ad1->u.td->types, &ad2->u.td->types, deep)) - return FALSE; - } - else if (!sameBaseType(ad1, ad2)) - return FALSE; - } - - return TRUE; -} - - -/* - * Create a new variable. - */ -static void newVar(sipSpec *pt,moduleDef *mod,char *name,int isstatic, - argDef *type,optFlags *of,codeBlock *acode,codeBlock *gcode, - codeBlock *scode) -{ - varDef *var; - classDef *escope = currentScope(); - nameDef *nd = cacheName(pt,getPythonName(of,name)); - - if (inMainModule()) - setIsUsedName(nd); - - checkAttributes(pt,escope,nd -> text,FALSE); - - var = sipMalloc(sizeof (varDef)); - - var -> pyname = nd; - var -> fqcname = text2scopedName(name); - var -> ecd = escope; - var -> module = mod; - var -> varflags = 0; - var -> type = *type; - var -> accessfunc = acode; - var -> getcode = gcode; - var -> setcode = scode; - var -> next = pt -> vars; - - if (isstatic || (escope != NULL && escope->iff->type == namespace_iface)) - setIsStaticVar(var); - - pt -> vars = var; -} - - -/* - * Create a new ctor. - */ -static void newCtor(char *name,int sectFlags,signatureDef *args, - optFlags *optflgs,codeBlock *methodcode, - throwArgs *exceptions,signatureDef *cppsig,int explicit) -{ - ctorDef *ct, **ctp; - classDef *cd = currentScope(); - - /* Check the name of the constructor. */ - if (strcmp(classBaseName(cd),name) != 0) - yyerror("Constructor doesn't have the same name as its class"); - - /* Add to the list of constructors. */ - ct = sipMalloc(sizeof (ctorDef)); - - ct -> ctorflags = sectFlags; - ct -> pysig = *args; - ct -> cppsig = (cppsig != NULL ? cppsig : &ct -> pysig); - ct -> exceptions = exceptions; - ct -> methodcode = methodcode; - ct -> next = NULL; - - if (!isPrivateCtor(ct)) - setCanCreate(cd); - - if (isProtectedCtor(ct)) - setHasShadow(cd); - - if (explicit) - setIsExplicitCtor(ct); - - getHooks(optflgs,&ct -> prehook,&ct -> posthook); - - if (getReleaseGIL(optflgs)) - setIsReleaseGILCtor(ct); - else if (getHoldGIL(optflgs)) - setIsHoldGILCtor(ct); - - if (findOptFlag(optflgs,"NoDerived",bool_flag) != NULL) - { - if (cppsig != NULL) - yyerror("The /NoDerived/ annotation cannot be used with a C++ signature"); - - if (methodcode == NULL) - yyerror("The /NoDerived/ annotation must be used with %MethodCode"); - - ct->cppsig = NULL; - } - - if (findOptFlag(optflgs,"Default",bool_flag) != NULL) - { - if (cd -> defctor != NULL) - yyerror("A constructor with the /Default/ annotation has already been defined"); - - cd -> defctor = ct; - } - - /* Append to the list. */ - for (ctp = &cd->ctors; *ctp != NULL; ctp = &(*ctp)->next) - ; - - *ctp = ct; -} - - -/* - * Create a new function. - */ -static void newFunction(sipSpec *pt,moduleDef *mod,int sflags,int isstatic, - int isvirt,char *name,signatureDef *sig,int isconst, - int isabstract,optFlags *optflgs,codeBlock *methodcode, - codeBlock *vcode,throwArgs *exceptions, - signatureDef *cppsig) -{ - classDef *cd = currentScope(); - nameDef *pname; - int factory, xferback; - overDef *od, **odp, **headp; - optFlag *of; - virtHandlerDef *vhd; - - /* Extra checks for a C module. */ - if (pt -> genc) - { - if (cd != NULL) - yyerror("Function declaration not allowed in a struct in a C module"); - - if (isstatic) - yyerror("Static functions not allowed in a C module"); - - if (exceptions != NULL) - yyerror("Exceptions not allowed in a C module"); - } - - headp = (cd != NULL ? &cd -> overs : &pt -> overs); - - /* See if it is a factory method. */ - if (findOptFlag(optflgs,"Factory",bool_flag) != NULL) - factory = TRUE; - else - { - int a; - - factory = FALSE; - - /* Check /TransferThis/ wasn't specified. */ - if (cd == NULL || isstatic) - for (a = 0; a < sig -> nrArgs; ++a) - if (isThisTransferred(&sig -> args[a])) - yyerror("/TransferThis/ may only be specified in constructors and class methods"); - } - - /* See if the result is to be returned to Python ownership. */ - xferback = (findOptFlag(optflgs,"TransferBack",bool_flag) != NULL); - - if (factory && xferback) - yyerror("/TransferBack/ and /Factory/ cannot both be specified"); - - /* Use the C++ name if a Python name wasn't given. */ - pname = cacheName(pt, getPythonName(optflgs, name)); - - /* Create a new overload definition. */ - - od = sipMalloc(sizeof (overDef)); - - /* Set the overload flags. */ - - od -> overflags = sflags; - - if (factory) - setIsFactory(od); - - if (xferback) - setIsResultTransferredBack(od); - - if (isProtected(od)) - setHasShadow(cd); - - if ((isSlot(od) || isSignal(od)) && !isPrivate(od)) - { - if (isSignal(od)) - setHasShadow(cd); - - pt -> sigslots = TRUE; - } - - if (isSignal(od) && (methodcode != NULL || vcode != NULL)) - yyerror("Cannot provide code for signals"); - - if (isstatic) - { - if (isSignal(od)) - yyerror("Static functions cannot be signals"); - - if (isvirt) - yyerror("Static functions cannot be virtual"); - - setIsStatic(od); - } - - if (isconst) - setIsConst(od); - - if (isabstract) - { - if (sflags == 0) - yyerror("Non-class function specified as abstract"); - - setIsAbstract(od); - } - - if ((of = findOptFlag(optflgs,"AutoGen",opt_name_flag)) != NULL) - { - setIsAutoGen(od); - - if (of -> fvalue.sval != NULL) - { - qualDef *qd; - - if ((qd = findQualifier(of -> fvalue.sval)) == NULL || qd -> qtype != feature_qualifier) - yyerror("No such feature"); - - if (excludedFeature(excludedQualifiers,qd)) - resetIsAutoGen(od); - } - } - - if (isvirt) - { - if (isSignal(od) && !optNoEmitters(pt)) - yyerror("Virtual signals aren't supported"); - - setIsVirtual(od); - setHasShadow(cd); - - vhd = sipMalloc(sizeof (virtHandlerDef)); - - vhd -> virthandlernr = -1; - vhd -> vhflags = 0; - vhd -> pysig = &od -> pysig; - vhd -> cppsig = (cppsig != NULL ? cppsig : &od -> pysig); - vhd -> module = currentModule; - vhd -> virtcode = vcode; - vhd -> next = currentModule -> virthandlers; - - if (factory || xferback) - setIsTransferVH(vhd); - - currentModule -> virthandlers = vhd; - } - else - { - if (vcode != NULL) - yyerror("%VirtualCatcherCode provided for non-virtual function"); - - vhd = NULL; - } - - od -> cppname = name; - od -> pysig = *sig; - od -> cppsig = (cppsig != NULL ? cppsig : &od -> pysig); - od -> exceptions = exceptions; - od -> methodcode = methodcode; - od -> virthandler = vhd; - od -> common = findFunction(pt,mod,cd,pname,(methodcode != NULL),sig -> nrArgs); - - if (findOptFlag(optflgs,"Numeric",bool_flag) != NULL) - setIsNumeric(od -> common); - - /* Methods that run in new threads must be virtual. */ - if (findOptFlag(optflgs,"NewThread",bool_flag) != NULL) - { - argDef *res; - - if (!isvirt) - yyerror("/NewThread/ may only be specified for virtual functions"); - - /* - * This is an arbitary limitation to make the code generator - * slightly easier - laziness on my part. - */ - res = &od -> cppsig -> result; - - if (res -> atype != void_type || res -> nrderefs != 0) - yyerror("/NewThread/ may only be specified for void functions"); - - setIsNewThread(od); - } - - getHooks(optflgs,&od -> prehook,&od -> posthook); - - if (getReleaseGIL(optflgs)) - setIsReleaseGIL(od); - else if (getHoldGIL(optflgs)) - setIsHoldGIL(od); - - od -> next = NULL; - - /* Append to the list. */ - for (odp = headp; *odp != NULL; odp = &(*odp)->next) - ; - - *odp = od; -} - - -/* - * Return the Python name based on the C/C++ name and any /PyName/ annotation. - */ -static char *getPythonName(optFlags *optflgs, char *cname) -{ - char *pname; - optFlag *of; - - if ((of = findOptFlag(optflgs, "PyName", name_flag)) != NULL) - pname = of -> fvalue.sval; - else - pname = cname; - - return pname; -} - - -/* - * Cache a name in a module. - */ -static nameDef *cacheName(sipSpec *pt,char *name) -{ - nameDef *nd; - - /* See if it already exists. */ - for (nd = pt -> namecache; nd != NULL; nd = nd -> next) - if (strcmp(nd -> text,name) == 0) - return nd; - - /* Create a new one. */ - nd = sipMalloc(sizeof (nameDef)); - - nd -> nameflags = 0; - nd -> module = currentSpec -> module; - nd -> text = name; - nd -> next = pt -> namecache; - - pt -> namecache = nd; - - return nd; -} - - -/* - * Find (or create) an overloaded function name. - */ -static memberDef *findFunction(sipSpec *pt,moduleDef *mod,classDef *cd, - nameDef *pname,int hwcode,int nrargs) -{ - static struct slot_map { - char *name; /* The slot name. */ - slotType type; /* The corresponding type. */ - int needs_hwcode; /* If handwritten code is required. */ - int nrargs; /* Nr. of arguments. */ - } slot_table[] = { - {"__str__", str_slot, TRUE, 0}, - {"__unicode__", unicode_slot, TRUE, 0}, - {"__int__", int_slot, FALSE, 0}, - {"__long__", long_slot, FALSE, 0}, - {"__float__", float_slot, FALSE, 0}, - {"__len__", len_slot, TRUE, 0}, - {"__contains__", contains_slot, TRUE, 1}, - {"__add__", add_slot, FALSE, 1}, - {"__sub__", sub_slot, FALSE, 1}, - {"__mul__", mul_slot, FALSE, 1}, - {"__div__", div_slot, FALSE, 1}, - {"__mod__", mod_slot, FALSE, 1}, - {"__and__", and_slot, FALSE, 1}, - {"__or__", or_slot, FALSE, 1}, - {"__xor__", xor_slot, FALSE, 1}, - {"__lshift__", lshift_slot, FALSE, 1}, - {"__rshift__", rshift_slot, FALSE, 1}, - {"__iadd__", iadd_slot, FALSE, 1}, - {"__isub__", isub_slot, FALSE, 1}, - {"__imul__", imul_slot, FALSE, 1}, - {"__idiv__", idiv_slot, FALSE, 1}, - {"__imod__", imod_slot, FALSE, 1}, - {"__iand__", iand_slot, FALSE, 1}, - {"__ior__", ior_slot, FALSE, 1}, - {"__ixor__", ixor_slot, FALSE, 1}, - {"__ilshift__", ilshift_slot, FALSE, 1}, - {"__irshift__", irshift_slot, FALSE, 1}, - {"__invert__", invert_slot, FALSE, 0}, - {"__call__", call_slot, FALSE, -1}, - {"__getitem__", getitem_slot, FALSE, -1}, - {"__setitem__", setitem_slot, TRUE, -1}, - {"__delitem__", delitem_slot, TRUE, -1}, - {"__lt__", lt_slot, FALSE, 1}, - {"__le__", le_slot, FALSE, 1}, - {"__eq__", eq_slot, FALSE, 1}, - {"__ne__", ne_slot, FALSE, 1}, - {"__gt__", gt_slot, FALSE, 1}, - {"__ge__", ge_slot, FALSE, 1}, - {"__cmp__", cmp_slot, FALSE, 1}, - {"__nonzero__", nonzero_slot, TRUE, 0}, - {"__neg__", neg_slot, FALSE, 0}, - {"__pos__", pos_slot, FALSE, 0}, - {"__abs__", abs_slot, TRUE, 0}, - {"__repr__", repr_slot, TRUE, 0}, - {"__hash__", hash_slot, TRUE, 0}, - {NULL} - }; - - memberDef *md, **flist; - struct slot_map *sm; - slotType st; - - /* Get the slot type. */ - st = no_slot; - - for (sm = slot_table; sm -> name != NULL; ++sm) - if (strcmp(sm -> name,pname -> text) == 0) - { - if (sm -> needs_hwcode && !hwcode) - yyerror("This Python slot requires %MethodCode"); - - if (sm -> nrargs < 0) - { - int min_nr; - - /* These require a minimum number. */ - switch (sm -> type) - { - case getitem_slot: - case delitem_slot: - min_nr = 1; - break; - - case setitem_slot: - min_nr = 2; - break; - - default: - min_nr = 0; - } - - if (nrargs < min_nr) - yyerror("Insufficient number of arguments to Python slot"); - } - else if (cd == NULL) - { - /* Global operators need one extra argument. */ - if (sm -> nrargs + 1 != nrargs) - yyerror("Incorrect number of arguments to global operator"); - } - else if (sm -> nrargs != nrargs) - yyerror("Incorrect number of arguments to Python slot"); - - st = sm -> type; - - break; - } - - if (inMainModule()) - setIsUsedName(pname); - - /* Check there is no name clash. */ - checkAttributes(pt,cd,pname -> text,TRUE); - - /* See if it already exists. */ - flist = (cd != NULL ? &cd -> members : &pt -> othfuncs); - - for (md = *flist; md != NULL; md = md -> next) - if (md -> pyname == pname && md -> module == mod) - return md; - - /* Create a new one. */ - md = sipMalloc(sizeof (memberDef)); - - md -> pyname = pname; - md -> memberflags = 0; - md -> slot = st; - md -> module = mod; - md -> next = *flist; - - *flist = md; - - /* Global operators are a subset. */ - if (cd == NULL && st != no_slot && st != neg_slot && st != pos_slot && !isNumberSlot(md) && !isRichCompareSlot(md)) - yyerror("Global operators must be either numeric or comparison operators"); - - return md; -} - - -/* - * Search a set of flags for a particular one and check its type. - */ -static optFlag *findOptFlag(optFlags *flgs,char *name,flagType ft) -{ - int f; - - for (f = 0; f < flgs -> nrFlags; ++f) - { - optFlag *of = &flgs -> flags[f]; - - if (strcmp(of -> fname,name) == 0) - { - /* - * An optional name can look like a boolean or a name. - */ - - if (ft == opt_name_flag) - { - if (of -> ftype == bool_flag) - { - of -> ftype = opt_name_flag; - of -> fvalue.sval = NULL; - } - else if (of -> ftype == name_flag) - of -> ftype = opt_name_flag; - } - - if (ft != of -> ftype) - yyerror("Optional flag has a value of the wrong type"); - - return of; - } - } - - return NULL; -} - - -/* - * A name is going to be used as a Python attribute name within a Python scope - * (ie. a Python dictionary), so check against what we already know is going in - * the same scope in case there is a clash. - */ -static void checkAttributes(sipSpec *pt,classDef *pyscope,char *attr,int isfunc) -{ - enumDef *ed; - varDef *vd; - classDef *cd; - - /* Check the enums. */ - - for (ed = pt -> enums; ed != NULL; ed = ed -> next) - { - enumMemberDef *emd; - - if (ed -> ecd != pyscope || ed -> pyname == NULL) - continue; - - if (strcmp(ed->pyname->text, attr) == 0) - yyerror("There is already an enum in scope with the same Python name"); - - for (emd = ed -> members; emd != NULL; emd = emd -> next) - if (strcmp(emd -> pyname -> text, attr) == 0) - yyerror("There is already an enum member in scope with the same Python name"); - } - - /* Check the variables. */ - - for (vd = pt -> vars; vd != NULL; vd = vd -> next) - { - if (vd -> ecd != pyscope) - continue; - - if (strcmp(vd -> pyname -> text, attr) == 0) - yyerror("There is already a variable in scope with the same Python name"); - } - - /* - * Only check the members if this attribute isn't a member because we - * can handle members with the same name in the same scope. - */ - if (!isfunc) - { - memberDef *md, *membs; - - membs = (pyscope != NULL ? pyscope -> members : pt -> othfuncs); - - for (md = membs; md != NULL; md = md -> next) - { - overDef *od, *overs; - - if (strcmp(md -> pyname -> text, attr) != 0) - continue; - - /* Check for a conflict with all overloads. */ - - overs = (pyscope != NULL ? pyscope -> overs : pt -> overs); - - for (od = overs; od != NULL; od = od -> next) - { - if (od -> common != md) - continue; - - yyerror("There is already a function in scope with the same Python name"); - } - } - } - - /* Check the classes. */ - - for (cd = pt -> classes; cd != NULL; cd = cd -> next) - { - if (cd -> ecd != pyscope || cd -> pyname == NULL) - continue; - - if (strcmp(cd->pyname, attr) == 0 && !isExternal(cd)) - yyerror("There is already a class or namespace in scope with the same Python name"); - } - - /* Check the exceptions. */ - - if (pyscope == NULL) - { - exceptionDef *xd; - - for (xd = pt->exceptions; xd != NULL; xd = xd->next) - if (xd->pyname != NULL && strcmp(xd->pyname, attr) == 0) - yyerror("There is already an exception with the same Python name"); - } -} - - -/* - * Append a code block to a list of them. Append is needed to give the - * specifier easy control over the order of the documentation. - */ -static void appendCodeBlock(codeBlock **headp,codeBlock *new) -{ - while (*headp != NULL) - headp = &(*headp) -> next; - - *headp = new; -} - - -/* - * Handle the end of a fully parsed a file. - */ -static void handleEOF() -{ - /* - * Check that the number of nested if's is the same as when we started - * the file. - */ - - if (skipStackPtr > newContext.ifdepth) - fatal("Too many %%If statements in %s\n",previousFile); - - if (skipStackPtr < newContext.ifdepth) - fatal("Too many %%End statements in %s\n",previousFile); -} - - -/* - * Handle the end of a fully parsed a module. - */ -static void handleEOM() -{ - /* Check it has been named. */ - - if (currentModule -> name == NULL) - fatal("No %%Module has been specified for module defined in %s\n",previousFile); - - /* The previous module is now current. */ - - currentModule = newContext.prevmod; -} - - -/* - * Find an existing qualifier. - */ -static qualDef *findQualifier(char *name) -{ - moduleDef *mod; - - for (mod = currentSpec -> modules; mod != NULL; mod = mod -> next) - { - qualDef *qd; - - for (qd = mod -> qualifiers; qd != NULL; qd = qd -> next) - if (strcmp(qd -> name,name) == 0) - return qd; - } - - return NULL; -} - - -/* - * Return a copy of a scoped name. - */ -scopedNameDef *copyScopedName(scopedNameDef *snd) -{ - scopedNameDef *head; - - head = NULL; - - while (snd != NULL) - { - appendScopedName(&head,text2scopePart(snd -> name)); - snd = snd -> next; - } - - return head; -} - - -/* - * Append a name to a list of scopes. - */ -void appendScopedName(scopedNameDef **headp,scopedNameDef *newsnd) -{ - while (*headp != NULL) - headp = &(*headp) -> next; - - *headp = newsnd; -} - - -/* - * Free a scoped name - but not the text itself. - */ -void freeScopedName(scopedNameDef *snd) -{ - while (snd != NULL) - { - scopedNameDef *next = snd -> next; - - free(snd); - - snd = next; - } -} - - -/* - * Convert a text string to a scope part structure. - */ -scopedNameDef *text2scopePart(char *text) -{ - scopedNameDef *snd; - - snd = sipMalloc(sizeof (scopedNameDef)); - - snd -> name = text; - snd -> next = NULL; - - return snd; -} - - -/* - * Convert a text string to a fully scoped name. - */ -static scopedNameDef *text2scopedName(char *text) -{ - return scopeScopedName(text2scopePart(text)); -} - - -/* - * Prepend any current scope to a scoped name. - */ -static scopedNameDef *scopeScopedName(scopedNameDef *name) -{ - classDef *cd = currentScope(); - scopedNameDef *snd; - - snd = (cd != NULL ? copyScopedName(cd->iff->fqcname) : NULL); - - appendScopedName(&snd, name); - - return snd; -} - - -/* - * Return a pointer to the tail part of a scoped name. - */ -char *scopedNameTail(scopedNameDef *snd) -{ - if (snd == NULL) - return NULL; - - while (snd -> next != NULL) - snd = snd -> next; - - return snd -> name; -} - - -/* - * Push the given scope onto the scope stack. - */ -static void pushScope(classDef *scope) -{ - if (currentScopeIdx >= MAX_NESTED_SCOPE) - fatal("Internal error: increase the value of MAX_NESTED_SCOPE\n"); - - scopeStack[currentScopeIdx] = scope; - sectFlagsStack[currentScopeIdx] = sectionFlags; - - ++currentScopeIdx; -} - - -/* - * Pop the scope stack. - */ -static void popScope(void) -{ - if (currentScopeIdx > 0) - sectionFlags = sectFlagsStack[--currentScopeIdx]; -} - - -/* - * Return non-zero if the current input should be parsed rather than be - * skipped. - */ -static int notSkipping() -{ - return (skipStackPtr == 0 ? TRUE : skipStack[skipStackPtr - 1]); -} - - -/* - * Return the value of an expression involving a time period. - */ -static int timePeriod(char *lname,char *uname) -{ - int this, line; - qualDef *qd, *lower, *upper; - moduleDef *mod; - - if (lname == NULL) - lower = NULL; - else if ((lower = findQualifier(lname)) == NULL || lower -> qtype != time_qualifier) - yyerror("Lower bound is not a time version"); - - if (uname == NULL) - upper = NULL; - else if ((upper = findQualifier(uname)) == NULL || upper -> qtype != time_qualifier) - yyerror("Upper bound is not a time version"); - - /* Sanity checks on the bounds. */ - - if (lower == NULL && upper == NULL) - yyerror("Lower and upper bounds cannot both be omitted"); - - if (lower != NULL && upper != NULL) - { - if (lower -> module != upper -> module || lower -> line != upper -> line) - yyerror("Lower and upper bounds are from different timelines"); - - if (lower == upper) - yyerror("Lower and upper bounds must be different"); - - if (lower -> order > upper -> order) - yyerror("Later version specified as lower bound"); - } - - /* Go through each slot in the relevant timeline. */ - - if (lower != NULL) - { - mod = lower -> module; - line = lower -> line; - } - else - { - mod = upper -> module; - line = upper -> line; - } - - this = FALSE; - - for (qd = mod -> qualifiers; qd != NULL; qd = qd -> next) - { - if (qd -> qtype != time_qualifier || qd -> line != line) - continue; - - if (lower != NULL && qd -> order < lower -> order) - continue; - - if (upper != NULL && qd -> order >= upper -> order) - continue; - - /* - * This is within the required range so if it is also needed - * then the expression is true. - */ - - if (isNeeded(qd)) - { - this = TRUE; - break; - } - } - - return this; -} - - -/* - * Return the value of an expression involving a single platform or feature. - */ -static int platOrFeature(char *name,int optnot) -{ - int this; - qualDef *qd; - - if ((qd = findQualifier(name)) == NULL || qd -> qtype == time_qualifier) - yyerror("No such platform or feature"); - - /* Assume this sub-expression is false. */ - - this = FALSE; - - if (qd -> qtype == feature_qualifier) - { - if (!excludedFeature(excludedQualifiers,qd)) - this = TRUE; - } - else if (isNeeded(qd)) - this = TRUE; - - if (optnot) - this = !this; - - return this; -} - - -/* - * Return TRUE if the given qualifier is excluded. - */ -int excludedFeature(stringList *xsl,qualDef *qd) -{ - while (xsl != NULL) - { - if (strcmp(qd -> name,xsl -> s) == 0) - return TRUE; - - xsl = xsl -> next; - } - - return FALSE; -} - - -/* - * Return TRUE if the given qualifier is needed. - */ -static int isNeeded(qualDef *qd) -{ - stringList *sl; - - for (sl = neededQualifiers; sl != NULL; sl = sl -> next) - if (strcmp(qd -> name,sl -> s) == 0) - return TRUE; - - return FALSE; -} - - -/* - * Return the current scope. currentScope() is only valid if notSkipping() - * returns non-zero. - */ -static classDef *currentScope(void) -{ - return (currentScopeIdx > 0 ? scopeStack[currentScopeIdx - 1] : NULL); -} - - -/* - * Create a new qualifier. - */ -static void newQualifier(moduleDef *mod,int line,int order,char *name,qualType qt) -{ - qualDef *qd; - - /* Check it doesn't already exist. */ - - if (findQualifier(name) != NULL) - yyerror("Version is already defined"); - - qd = sipMalloc(sizeof (qualDef)); - qd -> name = name; - qd -> qtype = qt; - qd -> module = mod; - qd -> line = line; - qd -> order = order; - qd -> next = mod -> qualifiers; - mod -> qualifiers = qd; -} - - -/* - * Create a new imported module. - */ -static void newImport(char *name) -{ - moduleDef *from, *mod; - moduleListDef *mld; - - /* Create a new module if it has already been imported. */ - for (mod = currentSpec -> modules; mod != NULL; mod = mod -> next) - if (strcmp(mod -> file,name) == 0) - break; - - from = currentModule; - - if (mod == NULL) - { - newModule(NULL,name); - mod = currentModule; - } - - /* Add the new import unless it has already been imported. */ - for (mld = from->imports; mld != NULL; mld = mld->next) - if (mld->module == mod) - return; - - mld = sipMalloc(sizeof (moduleListDef)); - mld -> module = mod; - mld -> next = from->imports; - - from->imports = mld; -} - - -/* - * Set up pointers to hook names. - */ -static void getHooks(optFlags *optflgs,char **pre,char **post) -{ - optFlag *of; - - if ((of = findOptFlag(optflgs,"PreHook",name_flag)) != NULL) - *pre = of -> fvalue.sval; - else - *pre = NULL; - - if ((of = findOptFlag(optflgs,"PostHook",name_flag)) != NULL) - *post = of -> fvalue.sval; - else - *post = NULL; -} - - -/* - * Get the /ReleaseGIL/ option flag. - */ -static int getReleaseGIL(optFlags *optflgs) -{ - return (findOptFlag(optflgs, "ReleaseGIL", bool_flag) != NULL); -} - - -/* - * Get the /HoldGIL/ option flag. - */ -static int getHoldGIL(optFlags *optflgs) -{ - return (findOptFlag(optflgs, "HoldGIL", bool_flag) != NULL); -} - - -/* - * Return TRUE if the QtNoEmitters option was specified. - */ -int optNoEmitters(sipSpec *pt) -{ - return optFind(pt, "QtNoEmitters"); -} - - -/* - * Return TRUE if the QtRegisterTypes option was specified. - */ -int optRegisterTypes(sipSpec *pt) -{ - return optFind(pt, "QtRegisterTypes"); -} - - -/* - * Return TRUE if the Qt4Q_OBJECT option was specified. - */ -int optQ_OBJECT4(sipSpec *pt) -{ - return optFind(pt, "Qt4Q_OBJECT"); -} - - -/* - * Return TRUE if a particular option was specified with %SIPOptions. - */ -static int optFind(sipSpec *pt, const char *opt) -{ - stringList *sl; - - for (sl = pt->options; sl != NULL; sl = sl->next) - if (strcmp(sl->s, opt) == 0) - return TRUE; - - return FALSE; -} diff --git a/python/sip/sipgen/sip.h b/python/sip/sipgen/sip.h deleted file mode 100644 index a259a6dc..00000000 --- a/python/sip/sipgen/sip.h +++ /dev/null @@ -1,1027 +0,0 @@ -/* - * The main header file for SIP. - * - * Copyright (c) 2007 - * Riverbank Computing Limited - * - * This file is part of SIP. - * - * This copy of SIP is licensed for use under the terms of the SIP License - * Agreement. See the file LICENSE for more details. - * - * SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ - - -#ifndef SIP_H -#define SIP_H - -#include -#include - - -#ifdef TRUE -#undef TRUE -#endif - -#ifdef FALSE -#undef FALSE -#endif - -#define TRUE 1 -#define FALSE 0 - - -#define DEFAULT_OFILE_EXT ".o" /* Default object file extension. */ - -#define MAX_NR_ARGS 20 /* Max. nr. args. to a function or template. */ - - -/* For convenience. */ - -#define classBaseName(cd) ((cd)->iff->name->text) -#define classFQCName(cd) ((cd)->iff->fqcname) - - -/* Handle module flags. */ - -#define MOD_HAS_DELAYED_DTORS 0x0001 /* It has a class with a delayed dtor. */ - -#define hasDelayedDtors(m) ((m)->modflags & MOD_HAS_DELAYED_DTORS) -#define setHasDelayedDtors(m) ((m)->modflags |= MOD_HAS_DELAYED_DTORS) - - -/* Handle section flags. */ - -#define SECT_IS_PUBLIC 0x01 /* It is public. */ -#define SECT_IS_PROT 0x02 /* It is protected. */ -#define SECT_IS_PRIVATE 0x04 /* It is private. */ -#define SECT_IS_SLOT 0x08 /* It is a slot. */ -#define SECT_IS_SIGNAL 0x10 /* It is a signal. */ -#define SECT_MASK 0x1f /* The mask of all flags. */ - - -/* Handle class flags. These are combined with the section flags. */ - -#define CLASS_HAS_ENUMS 0x00000100 /* It has enums. */ -#define CLASS_HAS_SIGSLOTS 0x00000200 /* It has signals or slots. */ -#define CLASS_IS_ABSTRACT 0x00000400 /* It is an abstract class. */ -#define CLASS_HAS_SHADOW 0x00000800 /* It is has a shadow class. */ -#define CLASS_IS_OPAQUE 0x00001000 /* It is opaque. */ -#define CLASS_HAS_VAR_HANDLERS 0x00002000 /* It has variable handlers. */ -#define CLASS_DTOR_RELEASE_GIL 0x00004000 /* The dtor releases the GIL. */ -#define CLASS_IS_PROTECTED 0x00008000 /* It is protected. */ -#define CLASS_IS_PROTECTED_SAV 0x00010000 /* It is protected (saved). */ -#define CLASS_IS_RENAMED 0x00020000 /* It has a different Python name. */ -#define CLASS_IS_INCOMPLETE 0x00040000 /* The specification is incomplete. */ -#define CLASS_CAN_CREATE 0x00080000 /* It has usable ctors. */ -#define CLASS_IS_EXTERNAL 0x00100000 /* It is external. */ -#define CLASS_IS_DELAYED_DTOR 0x00200000 /* The dtor is delayed. */ -#define CLASS_NO_DEFAULT_CTORS 0x00400000 /* Don't create default ctors. */ -#define CLASS_QOBJECT_SUB 0x00800000 /* It is derived from TQObject. */ -#define CLASS_DTOR_HOLD_GIL 0x01000000 /* The dtor holds the GIL. */ - -#define hasEnums(cd) ((cd)->classflags & CLASS_HAS_ENUMS) -#define setHasEnums(cd) ((cd)->classflags |= CLASS_HAS_ENUMS) -#define hasSigSlots(cd) ((cd)->classflags & CLASS_HAS_SIGSLOTS) -#define setHasSigSlots(cd) ((cd)->classflags |= CLASS_HAS_SIGSLOTS) -#define isAbstractClass(cd) ((cd)->classflags & CLASS_IS_ABSTRACT) -#define setIsAbstractClass(cd) ((cd)->classflags |= CLASS_IS_ABSTRACT) -#define hasShadow(cd) ((cd)->classflags & CLASS_HAS_SHADOW) -#define setHasShadow(cd) ((cd)->classflags |= CLASS_HAS_SHADOW) -#define resetHasShadow(cd) ((cd)->classflags &= ~CLASS_HAS_SHADOW) -#define isOpaque(cd) ((cd)->classflags & CLASS_IS_OPAQUE) -#define setIsOpaque(cd) ((cd)->classflags |= CLASS_IS_OPAQUE) -#define hasVarHandlers(cd) ((cd)->classflags & CLASS_HAS_VAR_HANDLERS) -#define setHasVarHandlers(cd) ((cd)->classflags |= CLASS_HAS_VAR_HANDLERS) -#define isProtectedClass(cd) ((cd)->classflags & CLASS_IS_PROTECTED) -#define setIsProtectedClass(cd) ((cd)->classflags |= CLASS_IS_PROTECTED) -#define resetIsProtectedClass(cd) ((cd)->classflags &= ~CLASS_IS_PROTECTED) -#define wasProtectedClass(cd) ((cd)->classflags & CLASS_IS_PROTECTED_SAV) -#define setWasProtectedClass(cd) ((cd)->classflags |= CLASS_IS_PROTECTED_SAV) -#define resetWasProtectedClass(cd) ((cd)->classflags &= ~CLASS_IS_PROTECTED_SAV) -#define isReleaseGILDtor(c) ((cd)->classflags & CLASS_DTOR_RELEASE_GIL) -#define setIsReleaseGILDtor(c) ((cd)->classflags |= CLASS_DTOR_RELEASE_GIL) -#define isRenamedClass(cd) ((cd)->classflags & CLASS_IS_RENAMED) -#define setIsRenamedClass(cd) ((cd)->classflags |= CLASS_IS_RENAMED) -#define isIncomplete(cd) ((cd)->classflags & CLASS_IS_INCOMPLETE) -#define setIsIncomplete(cd) ((cd)->classflags |= CLASS_IS_INCOMPLETE) -#define canCreate(cd) ((cd)->classflags & CLASS_CAN_CREATE) -#define setCanCreate(cd) ((cd)->classflags |= CLASS_CAN_CREATE) -#define resetCanCreate(cd) ((cd)->classflags &= ~CLASS_CAN_CREATE) -#define isExternal(cd) ((cd)->classflags & CLASS_IS_EXTERNAL) -#define setIsExternal(cd) ((cd)->classflags |= CLASS_IS_EXTERNAL) -#define isDelayedDtor(cd) ((cd)->classflags & CLASS_IS_DELAYED_DTOR) -#define setIsDelayedDtor(cd) ((cd)->classflags |= CLASS_IS_DELAYED_DTOR) -#define noDefaultCtors(cd) ((cd)->classflags & CLASS_NO_DEFAULT_CTORS) -#define setNoDefaultCtors(cd) ((cd)->classflags |= CLASS_NO_DEFAULT_CTORS) -#define isQObjectSubClass(cd) ((cd)->classflags & CLASS_QOBJECT_SUB) -#define setIsQObjectSubClass(cd) ((cd)->classflags |= CLASS_QOBJECT_SUB) -#define isHoldGILDtor(c) ((cd)->classflags & CLASS_DTOR_HOLD_GIL) -#define setIsHoldGILDtor(c) ((cd)->classflags |= CLASS_DTOR_HOLD_GIL) - -#define isPublicDtor(cd) ((cd)->classflags & SECT_IS_PUBLIC) -#define setIsPublicDtor(cd) ((cd)->classflags |= SECT_IS_PUBLIC) -#define isProtectedDtor(cd) ((cd)->classflags & SECT_IS_PROT) -#define isPrivateDtor(cd) ((cd)->classflags & SECT_IS_PRIVATE) - -#define isDtor(cd) ((cd)->classflags & (SECT_IS_PUBLIC | SECT_IS_PROT | SECT_IS_PRIVATE)) - - -/* Handle ctor flags. These are combined with the section flags. */ - -#define CTOR_RELEASE_GIL 0x00000100 /* The ctor releases the GIL. */ -#define CTOR_EXPLICIT 0x00000200 /* The ctor is explicit. */ -#define CTOR_CAST 0x00000400 /* The ctor is a cast. */ -#define CTOR_HOLD_GIL 0x00000800 /* The ctor holds the GIL. */ - -#define isPublicCtor(c) ((c)->ctorflags & SECT_IS_PUBLIC) -#define setIsPublicCtor(c) ((c)->ctorflags |= SECT_IS_PUBLIC) -#define isProtectedCtor(c) ((c)->ctorflags & SECT_IS_PROT) -#define setIsProtectedCtor(c) ((c)->ctorflags |= SECT_IS_PROT) -#define isPrivateCtor(c) ((c)->ctorflags & SECT_IS_PRIVATE) -#define setIsPrivateCtor(c) ((c)->ctorflags |= SECT_IS_PRIVATE) - -#define isReleaseGILCtor(c) ((c)->ctorflags & CTOR_RELEASE_GIL) -#define setIsReleaseGILCtor(c) ((c)->ctorflags |= CTOR_RELEASE_GIL) -#define isExplicitCtor(c) ((c)->ctorflags & CTOR_EXPLICIT) -#define setIsExplicitCtor(c) ((c)->ctorflags |= CTOR_EXPLICIT) -#define isCastCtor(c) ((c)->ctorflags & CTOR_CAST) -#define isHoldGILCtor(c) ((c)->ctorflags & CTOR_HOLD_GIL) -#define setIsHoldGILCtor(c) ((c)->ctorflags |= CTOR_HOLD_GIL) - - -/* Handle member flags. */ - -#define MEMBR_NUMERIC 0x0001 /* It is a numeric slot. */ - -#define isNumeric(m) ((m)->memberflags & MEMBR_NUMERIC) -#define setIsNumeric(m) ((m)->memberflags |= MEMBR_NUMERIC) - - -/* Handle enum flags. These are combined with the section flags. */ - -#define ENUM_WAS_PROT 0x00000100 /* It was defined as protected. */ -#define ENUM_IS_RENAMED 0x00000200 /* It has been renamed. */ - -#define isProtectedEnum(e) ((e)->enumflags & SECT_IS_PROT) -#define setIsProtectedEnum(e) ((e)->enumflags |= SECT_IS_PROT) -#define resetIsProtectedEnum(e) ((e)->enumflags &= ~SECT_IS_PROT) - -#define wasProtectedEnum(e) ((e)->enumflags & ENUM_WAS_PROT) -#define setWasProtectedEnum(e) ((e)->enumflags |= ENUM_WAS_PROT) -#define resetWasProtectedEnum(e) ((e)->enumflags &= ~ENUM_WAS_PROT) -#define isRenamedEnum(e) ((e)->enumflags & ENUM_IS_RENAMED) -#define setIsRenamedEnum(e) ((e)->enumflags |= ENUM_IS_RENAMED) - - -/* Handle hierarchy flags. */ - -#define HIER_IS_DUPLICATE 0x0001 /* It is a super class duplicate. */ -#define HIER_HAS_DUPLICATE 0x0002 /* It has a super class duplicate. */ - -#define isDuplicateSuper(m) ((m)->mroflags & HIER_IS_DUPLICATE) -#define setIsDuplicateSuper(m) ((m)->mroflags |= HIER_IS_DUPLICATE) -#define hasDuplicateSuper(m) ((m)->mroflags & HIER_HAS_DUPLICATE) -#define setHasDuplicateSuper(m) ((m)->mroflags |= HIER_HAS_DUPLICATE) - - -/* Handle overload flags. These are combined with the section flags. */ - -#define OVER_IS_VIRTUAL 0x00000100 /* It is virtual. */ -#define OVER_IS_ABSTRACT 0x00000200 /* It is abstract. */ -#define OVER_IS_CONST 0x00000400 /* It is a const function. */ -#define OVER_IS_STATIC 0x00000800 /* It is a static function. */ -#define OVER_IS_AUTOGEN 0x00001000 /* It is auto-generated. */ -#define OVER_IS_NEW_THREAD 0x00002000 /* It is in a new thread. */ -#define OVER_IS_FACTORY 0x00004000 /* It is a factory method. */ -#define OVER_XFERRED_BACK 0x00008000 /* Ownership is transferred back. */ -#define OVER_RELEASE_GIL 0x00010000 /* The function releases the GIL. */ -#define OVER_IS_VIRTUAL_REIMP 0x00020000 /* It is a re-implementation of a virtual. */ -#define OVER_DONT_DEREF_SELF 0x00040000 /* For comparison operators, don't dereference self. */ -#define OVER_HOLD_GIL 0x00080000 /* The function holds the GIL. */ - -#define isPublic(o) ((o)->overflags & SECT_IS_PUBLIC) -#define setIsPublic(o) ((o)->overflags |= SECT_IS_PUBLIC) -#define isProtected(o) ((o)->overflags & SECT_IS_PROT) -#define setIsProtected(o) ((o)->overflags |= SECT_IS_PROT) -#define isPrivate(o) ((o)->overflags & SECT_IS_PRIVATE) -#define setIsPrivate(o) ((o)->overflags |= SECT_IS_PRIVATE) -#define isSlot(o) ((o)->overflags & SECT_IS_SLOT) -#define setIsSlot(o) ((o)->overflags |= SECT_IS_SLOT) -#define isSignal(o) ((o)->overflags & SECT_IS_SIGNAL) -#define setIsSignal(o) ((o)->overflags |= SECT_IS_SIGNAL) - -#define isVirtual(o) ((o)->overflags & OVER_IS_VIRTUAL) -#define setIsVirtual(o) ((o)->overflags |= OVER_IS_VIRTUAL) -#define isAbstract(o) ((o)->overflags & OVER_IS_ABSTRACT) -#define setIsAbstract(o) ((o)->overflags |= OVER_IS_ABSTRACT) -#define isConst(o) ((o)->overflags & OVER_IS_CONST) -#define setIsConst(o) ((o)->overflags |= OVER_IS_CONST) -#define isStatic(o) ((o)->overflags & OVER_IS_STATIC) -#define setIsStatic(o) ((o)->overflags |= OVER_IS_STATIC) -#define isAutoGen(o) ((o)->overflags & OVER_IS_AUTOGEN) -#define setIsAutoGen(o) ((o)->overflags |= OVER_IS_AUTOGEN) -#define resetIsAutoGen(o) ((o)->overflags &= ~OVER_IS_AUTOGEN) -#define isNewThread(o) ((o)->overflags & OVER_IS_NEW_THREAD) -#define setIsNewThread(o) ((o)->overflags |= OVER_IS_NEW_THREAD) -#define isFactory(o) ((o)->overflags & OVER_IS_FACTORY) -#define setIsFactory(o) ((o)->overflags |= OVER_IS_FACTORY) -#define isResultTransferredBack(o) ((o)->overflags & OVER_XFERRED_BACK) -#define setIsResultTransferredBack(o) ((o)->overflags |= OVER_XFERRED_BACK) -#define isReleaseGIL(o) ((o)->overflags & OVER_RELEASE_GIL) -#define setIsReleaseGIL(o) ((o)->overflags |= OVER_RELEASE_GIL) -#define isVirtualReimp(o) ((o)->overflags & OVER_IS_VIRTUAL_REIMP) -#define setIsVirtualReimp(o) ((o)->overflags |= OVER_IS_VIRTUAL_REIMP) -#define dontDerefSelf(o) ((o)->overflags & OVER_DONT_DEREF_SELF) -#define setDontDerefSelf(o) ((o)->overflags |= OVER_DONT_DEREF_SELF) -#define isHoldGIL(o) ((o)->overflags & OVER_HOLD_GIL) -#define setIsHoldGIL(o) ((o)->overflags |= OVER_HOLD_GIL) - - -/* Handle variable flags. */ - -#define VAR_IS_STATIC 0x01 /* It is a static variable. */ -#define VAR_NEEDS_HANDLER 0x02 /* It the variable needs a handler. */ - -#define isStaticVar(v) ((v)->varflags & VAR_IS_STATIC) -#define setIsStaticVar(v) ((v)->varflags |= VAR_IS_STATIC) -#define needsHandler(v) ((v)->varflags & VAR_NEEDS_HANDLER) -#define setNeedsHandler(v) ((v)->varflags |= VAR_NEEDS_HANDLER) - - -/* Handle argument flags. */ - -#define ARG_IS_REF 0x0001 /* It is a reference. */ -#define ARG_IS_CONST 0x0002 /* It is a const. */ -#define ARG_XFERRED 0x0004 /* Ownership is transferred. */ -#define ARG_THIS_XFERRED 0x0008 /* Ownership of this is transferred. */ -#define ARG_XFERRED_BACK 0x0010 /* Ownership is transferred back. */ -#define ARG_ARRAY 0x0020 /* Used as an array. */ -#define ARG_ARRAY_SIZE 0x0040 /* Used as an array size. */ -#define ARG_ALLOW_NONE 0x0080 /* Allow None as a value. */ -#define ARG_GET_WRAPPER 0x0100 /* Get the wrapper object. */ -#define ARG_IN 0x0200 /* It passes an argument. */ -#define ARG_OUT 0x0400 /* It returns a result. */ -#define ARG_CONSTRAINED 0x0800 /* Suppress type conversion. */ - -#define isReference(a) ((a)->argflags & ARG_IS_REF) -#define setIsReference(a) ((a)-> argflags |= ARG_IS_REF) -#define resetIsReference(a) ((a)->argflags &= ~ARG_IS_REF) -#define isConstArg(a) ((a)->argflags & ARG_IS_CONST) -#define setIsConstArg(a) ((a)->argflags |= ARG_IS_CONST) -#define resetIsConstArg(a) ((a)->argflags &= ~ARG_IS_CONST) -#define isTransferred(a) ((a)->argflags & ARG_XFERRED) -#define setIsTransferred(a) ((a)->argflags |= ARG_XFERRED) -#define isThisTransferred(a) ((a)->argflags & ARG_THIS_XFERRED) -#define setIsThisTransferred(a) ((a)->argflags |= ARG_THIS_XFERRED) -#define isTransferredBack(a) ((a)->argflags & ARG_XFERRED_BACK) -#define setIsTransferredBack(a) ((a)->argflags |= ARG_XFERRED_BACK) -#define isArray(a) ((a)->argflags & ARG_ARRAY) -#define setArray(a) ((a)->argflags |= ARG_ARRAY) -#define isArraySize(a) ((a)->argflags & ARG_ARRAY_SIZE) -#define setArraySize(a) ((a)->argflags |= ARG_ARRAY_SIZE) -#define isAllowNone(a) ((a)->argflags & ARG_ALLOW_NONE) -#define setAllowNone(a) ((a)->argflags |= ARG_ALLOW_NONE) -#define isGetWrapper(a) ((a)->argflags & ARG_GET_WRAPPER) -#define setGetWrapper(a) ((a)->argflags |= ARG_GET_WRAPPER) -#define isInArg(a) ((a)->argflags & ARG_IN) -#define setIsInArg(a) ((a)->argflags |= ARG_IN) -#define isOutArg(a) ((a)->argflags & ARG_OUT) -#define setIsOutArg(a) ((a)->argflags |= ARG_OUT) -#define isConstrained(a) ((a)->argflags & ARG_CONSTRAINED) -#define setIsConstrained(a) ((a)->argflags |= ARG_CONSTRAINED) -#define resetIsConstrained(a) ((a)->argflags &= ~ARG_CONSTRAINED) - - -/* Handle name flags. */ - -#define NAME_IS_USED 0x01 /* It is used in the main module. */ -#define NAME_IS_CLASS 0x02 /* It is the name of a class. */ - -#define isUsedName(n) ((n)->nameflags & NAME_IS_USED) -#define setIsUsedName(n) ((n)->nameflags |= NAME_IS_USED) -#define resetIsUsedName(n) ((n)->nameflags &= ~NAME_IS_USED) -#define isClassName(n) ((n)->nameflags & NAME_IS_CLASS) -#define setIsClassName(n) ((n)->nameflags |= NAME_IS_CLASS) -#define resetIsClassName(n) ((n)->nameflags &= ~NAME_IS_CLASS) - - -/* Handle virtual handler flags. */ - -#define VH_IS_DUPLICATE 0x01 /* It is a duplicate. */ -#define VH_TRANSFERS 0x02 /* It transfers ownership of the result. */ - -#define isDuplicateVH(vh) ((vh)->vhflags & VH_IS_DUPLICATE) -#define setIsDuplicateVH(vh) ((vh)->vhflags |= VH_IS_DUPLICATE) -#define resetIsDuplicateVH(vh) ((vh)->vhflags &= ~VH_IS_DUPLICATE) -#define isTransferVH(vh) ((vh)->vhflags & VH_TRANSFERS) -#define setIsTransferVH(vh) ((vh)->vhflags |= VH_TRANSFERS) - - -/* Slot types. */ - -typedef enum { - str_slot, - unicode_slot, - int_slot, - long_slot, - float_slot, - len_slot, - contains_slot, - add_slot, - concat_slot, - sub_slot, - mul_slot, - repeat_slot, - div_slot, - mod_slot, - and_slot, - or_slot, - xor_slot, - lshift_slot, - rshift_slot, - iadd_slot, - iconcat_slot, - isub_slot, - imul_slot, - irepeat_slot, - idiv_slot, - imod_slot, - iand_slot, - ior_slot, - ixor_slot, - ilshift_slot, - irshift_slot, - invert_slot, - call_slot, - getitem_slot, - setitem_slot, - delitem_slot, - lt_slot, - le_slot, - eq_slot, - ne_slot, - gt_slot, - ge_slot, - cmp_slot, - nonzero_slot, - neg_slot, - pos_slot, - abs_slot, - repr_slot, - hash_slot, - no_slot -} slotType; - - -/* - * Argument types. Always add new ones at the end because the numeric values - * can appear in generated code. - */ -typedef enum { - no_type, - defined_type, - class_type, - struct_type, - void_type, - enum_type, - template_type, - signal_type, - slot_type, - rxcon_type, - rxdis_type, - slotcon_type, - slotdis_type, - ustring_type, - string_type, - short_type, - ushort_type, - cint_type, - int_type, - uint_type, - long_type, - ulong_type, - float_type, - cfloat_type, - double_type, - cdouble_type, - bool_type, - mapped_type, - pyobject_type, - pytuple_type, - pylist_type, - pydict_type, - pycallable_type, - pyslice_type, - qobject_type, - function_type, - pytype_type, - ellipsis_type, - longlong_type, - ulonglong_type, - anyslot_type, - cbool_type, - sstring_type, - wstring_type -} argType; - - -/* Value types. */ - -typedef enum { - qchar_value, - string_value, - numeric_value, - real_value, - scoped_value, - fcall_value -} valueType; - - -/* Version types. */ - -typedef enum { - time_qualifier, - platform_qualifier, - feature_qualifier -} qualType; - - -/* Interface file types. */ - -typedef enum { - exception_iface, - mappedtype_iface, - namespace_iface, - class_iface -} ifaceFileType; - - -/* A software license. */ - -typedef struct { - char *type; /* The license type. */ - char *licensee; /* The licensee. */ - char *timestamp; /* The timestamp. */ - char *sig; /* The signature. */ -} licenseDef; - - -/* A version qualifier. */ - -typedef struct _qualDef { - char *name; /* The qualifier name. */ - qualType qtype; /* The qualifier type. */ - struct _moduleDef *module; /* The defining module. */ - int line; /* Timeline if it is a time. */ - int order; /* Order if it is a time. */ - struct _qualDef *next; /* Next in the list. */ -} qualDef; - - -/* A scoped name. */ - -typedef struct _scopedNameDef { - char *name; /* The name. */ - struct _scopedNameDef *next; /* Next in the scope list. */ -} scopedNameDef; - - -/* A name. */ - -typedef struct _nameDef { - int nameflags; /* The name flags. */ - struct _moduleDef *module; /* The main module. */ - char *text; /* The text of the name. */ - struct _nameDef *next; /* Next in the list. */ -} nameDef; - - -/* - * A node in the tree of classes used to determine the order in which the - * classes need to be created. - */ - -typedef struct _nodeDef { - int ordered; /* Set if in order. */ - struct _classDef *cd; /* The class. */ - struct _nodeDef *parent; /* The parent. */ - struct _nodeDef *child; /* The first child. */ - struct _nodeDef *next; /* The next sibling. */ -} nodeDef; - - -/* A module definition. */ - -typedef struct _moduleDef { - char *fullname; /* The full module name. */ - char *name; /* The module base name. */ - int version; /* The module version. */ - int modflags; /* The module flags. */ - int modulenr; /* The module number. */ - char *file; /* The filename. */ - qualDef *qualifiers; /* The list of qualifiers. */ - nodeDef root; /* Root of class tree. */ - int nrtimelines; /* The nr. of timelines. */ - int nrclasses; /* The nr. of classes. */ - int nrexceptions; /* The nr. of exceptions. */ - int nrmappedtypes; /* The nr. of mapped types. */ - int nrenums; /* The nr. of named enums. */ - int nrtypedefs; /* The nr. of typedefs. */ - int nrvirthandlers; /* The nr. of virtual handlers. */ - struct _virtHandlerDef *virthandlers; /* The virtual handlers. */ - licenseDef *license; /* The software license. */ - struct _moduleListDef *allimports; /* The list of all imports. */ - struct _moduleListDef *imports; /* The list of direct imports. */ - struct _moduleDef *next; /* Next in the list. */ -} moduleDef; - - -/* An entry in a linked module list. */ - -typedef struct _moduleListDef { - moduleDef *module; /* The module itself. */ - struct _moduleListDef *next; /* The next in the list. */ -} moduleListDef; - - -/* A literal code block. */ - -typedef struct _codeBlock { - char *frag; /* The code itself. */ - char *filename; /* The original file. */ - int linenr; /* The line in the file. */ - struct _codeBlock *next; /* Next in the list. */ -} codeBlock; - - -/* The arguments to a throw specifier. */ - -typedef struct _throwArgs { - int nrArgs; /* The number of arguments. */ - struct _exceptionDef *args[MAX_NR_ARGS]; /* The arguments. */ -} throwArgs; - - -/* An exception. */ - -typedef struct _exceptionDef { - int exceptionnr; /* The exception number. */ - struct _ifaceFileDef *iff; /* The interface file. */ - char *pyname; /* The exception Python name. */ - struct _classDef *cd; /* The exception class. */ - char *bibase; /* The builtin base exception. */ - struct _exceptionDef *base; /* The defined base exception. */ - codeBlock *hdrcode; /* Optional header code. */ - codeBlock *raisecode; /* Raise exception code. */ - struct _exceptionDef *next; /* The next in the list. */ -} exceptionDef; - - -/* A value. */ - -typedef struct _valueDef { - valueType vtype; /* The type. */ - char vunop; /* Any unary operator. */ - char vbinop; /* Any binary operator. */ - union { - char vqchar; /* Quoted character value. */ - long vnum; /* Numeric value. */ - double vreal; /* Real value. */ - char *vstr; /* String value. */ - scopedNameDef *vscp; /* Scoped value. */ - struct _fcallDef *fcd; /* Function call. */ - } u; - struct _valueDef *next; /* Next in the expression. */ -} valueDef; - - -/* A member function argument (or result). */ - -typedef struct { - argType atype; /* The type. */ - char *name; /* The name. */ - int argflags; /* The argument flags. */ - int nrderefs; /* Nr. of dereferences. */ - valueDef *defval; /* The default value. */ - union { - struct _signatureDef *sa; /* If it is a function. */ - struct _templateDef *td; /* If it is a template. */ - struct _scopedNameDef *snd; /* If it is a defined type. */ - struct _classDef *cd; /* If it is a class. */ - struct _enumDef *ed; /* If it is an enum. */ - struct _scopedNameDef *sname; /* If it is a struct. */ - struct _mappedTypeDef *mtd; /* If it is a mapped type. */ - } u; -} argDef; - - - -/* An entry in a linked argument list. */ -typedef struct _argList { - argDef arg; /* The argument itself. */ - struct _argList *next; /* Next in the list. */ -} argList; - - -/* A function call. */ - -typedef struct _fcallDef { - argDef type; /* The type. */ - int nrArgs; /* The number of arguments. */ - struct _valueDef *args[MAX_NR_ARGS]; /* The arguments. */ -} fcallDef; - - -/* An interface file definition. */ - -typedef struct _ifaceFileDef { - nameDef *name; /* The name. */ - ifaceFileType type; /* Interface file type. */ - scopedNameDef *fqcname; /* The fully qualified C++ name. */ - moduleDef *module; /* The owning module. */ - struct _ifaceFileList *used; /* Interface files used. */ - struct _ifaceFileDef *next; /* Next in the list. */ -} ifaceFileDef; - - -/* An entry in a linked interface file list. */ - -typedef struct _ifaceFileList { - ifaceFileDef *iff; /* The interface file itself. */ - int header; /* If needed in the .h file. */ - struct _ifaceFileList *next; /* Next in the list. */ -} ifaceFileList; - - -/* A mapped type. */ - -typedef struct _mappedTypeDef { - argDef type; /* The type being mapped. */ - int mappednr; /* The mapped type number. */ - ifaceFileDef *iff; /* The interface file. */ - codeBlock *hdrcode; /* Header code. */ - codeBlock *convfromcode; /* Convert from C++ code. */ - codeBlock *convtocode; /* Convert to C++ code. */ - struct _mappedTypeDef *next; /* Next in the list. */ -} mappedTypeDef; - - -/* A function signature. */ - -typedef struct _signatureDef { - argDef result; /* The result. */ - int nrArgs; /* The number of arguments. */ - argDef args[MAX_NR_ARGS]; /* The arguments. */ -} signatureDef; - - -/* A list of function signatures. */ - -typedef struct _signatureList { - struct _signatureDef *sd; /* The signature. */ - struct _signatureList *next; /* Next in the list. */ -} signatureList; - - -/* A template type. */ - -typedef struct _templateDef { - scopedNameDef *fqname; /* The name. */ - signatureDef types; /* The types. */ -} templateDef; - - -/* A list of virtual handlers. */ - -typedef struct _virtHandlerDef { - int virthandlernr; /* The nr. of the virtual handler. */ - int vhflags; /* The virtual handler flags. */ - signatureDef *pysig; /* The Python signature. */ - signatureDef *cppsig; /* The C++ signature. */ - struct _moduleDef *module; /* The defining module. */ - codeBlock *virtcode; /* Virtual handler code. */ - struct _virtHandlerDef *next; /* Next in the list. */ -} virtHandlerDef; - - -/* A typedef definition. */ - -typedef struct _typedefDef { - scopedNameDef *fqname; /* The fully qualified name. */ - struct _classDef *ecd; /* The enclosing class. */ - moduleDef *module; /* The owning module. */ - argDef type; /* The actual type. */ - struct _typedefDef *next; /* Next in the list. */ -} typedefDef; - - -/* A variable definition. */ - -typedef struct _varDef { - nameDef *pyname; /* The variable Python name. */ - scopedNameDef *fqcname; /* The fully qualified C/C++ name. */ - struct _classDef *ecd; /* The enclosing class. */ - moduleDef *module; /* The owning module. */ - int varflags; /* The variable flags. */ - argDef type; /* The actual type. */ - codeBlock *accessfunc; /* The access function. */ - codeBlock *getcode; /* The get code. */ - codeBlock *setcode; /* The set code. */ - struct _varDef *next; /* Next in the list. */ -} varDef; - - -/* An overloaded member function definition. */ - -typedef struct _overDef { - char *cppname; /* The C++ name. */ - int overflags; /* The overload flags. */ - struct _memberDef *common; /* Common parts. */ - signatureDef pysig; /* The Python signature. */ - signatureDef *cppsig; /* The C++ signature. */ - throwArgs *exceptions; /* The exceptions. */ - codeBlock *methodcode; /* Method code. */ - virtHandlerDef *virthandler; /* The virtual handler. */ - char *prehook; /* The pre-hook name. */ - char *posthook; /* The post-hook name. */ - struct _overDef *next; /* Next in the list. */ -} overDef; - - -/* An overloaded constructor definition. */ - -typedef struct _ctorDef { - int ctorflags; /* The ctor flags. */ - signatureDef pysig; /* The Python signature. */ - signatureDef *cppsig; /* The C++ signature, NULL if /NoDerived/. */ - throwArgs *exceptions; /* The exceptions. */ - codeBlock *methodcode; /* Method code. */ - char *prehook; /* The pre-hook name. */ - char *posthook; /* The post-hook name. */ - struct _ctorDef *next; /* Next in the list. */ -} ctorDef; - - -/* An enumerated type member definition. */ - -typedef struct _enumMemberDef { - nameDef *pyname; /* The Python name. */ - char *cname; /* The C/C++ name. */ - struct _enumDef *ed; /* The enclosing enum. */ - struct _enumMemberDef *next; /* Next in the list. */ -} enumMemberDef; - - -/* An enumerated type definition. */ - -typedef struct _enumDef { - int enumflags; /* The enum flags. */ - scopedNameDef *fqcname; /* The name (may be NULL). */ - nameDef *pyname; /* The Python name (may be NULL). */ - int enumnr; /* The enum number. */ - struct _classDef *ecd; /* The enclosing class. */ - struct _classDef *pcd; /* The publishing class. */ - moduleDef *module; /* The owning module. */ - enumMemberDef *members; /* The list of members. */ - struct _memberDef *slots; /* The list of slots. */ - struct _overDef *overs; /* The list of slot overloads. */ - struct _enumDef *next; /* Next in the list. */ -} enumDef; - - -/* An member function definition. */ - -typedef struct _memberDef { - nameDef *pyname; /* The Python name. */ - int memberflags; /* The member flags. */ - slotType slot; /* The slot type. */ - moduleDef *module; /* The owning module. */ - struct _memberDef *next; /* Next in the list. */ -} memberDef; - - -/* A list of visible member functions. */ - -typedef struct _visibleList { - memberDef *m; /* The member definition. */ - struct _classDef *cd; /* The class. */ - struct _visibleList *next; /* Next in the list. */ -} visibleList; - - -/* An entry in a linked class list. */ - -typedef struct _classList { - struct _classDef *cd; /* The class itself. */ - struct _classList *next; /* Next in the list. */ -} classList; - - -/* A virtual overload definition. */ - -typedef struct _virtOverDef { - overDef o; /* The overload. */ - struct _classDef *scope; /* The overload scope. */ - struct _virtOverDef *next; /* Next in the list. */ -} virtOverDef; - - -/* A class that appears in a class's hierarchy. */ - -typedef struct _mroDef { - struct _classDef *cd; /* The class. */ - int mroflags; /* The hierarchy flags. */ - struct _mroDef *next; /* The next in the list. */ -} mroDef; - - -/* A class definition. */ - -typedef struct _classDef { - int classflags; /* The class flags. */ - int userflags; /* The user type flags. */ - int classnr; /* The class number. */ - char *pyname; /* The Python name. */ - ifaceFileDef *iff; /* The interface file. */ - struct _classDef *ecd; /* The enclosing scope. */ - struct _classDef *real; /* The real class if this is a proxy or extender. */ - nodeDef *node; /* Position in class tree. */ - classList *supers; /* The parent classes. */ - mroDef *mro; /* The super-class hierarchy. */ - templateDef *td; /* The instantiated template. */ - ctorDef *ctors; /* The constructors. */ - ctorDef *defctor; /* The default ctor. */ - codeBlock *dealloccode; /* Handwritten dealloc code. */ - codeBlock *dtorcode; /* Handwritten dtor code. */ - throwArgs *dtorexceptions; /* The dtor exceptions. */ - memberDef *members; /* The member functions. */ - overDef *overs; /* The overloads. */ - argList *casts; /* The operator casts. */ - virtOverDef *vmembers; /* The virtual members. */ - visibleList *visible; /* The visible members. */ - codeBlock *cppcode; /* Class C++ code. */ - codeBlock *hdrcode; /* Class header code. */ - codeBlock *convtosubcode; /* Convert to sub C++ code. */ - struct _classDef *subbase; /* Sub-class base class. */ - codeBlock *convtocode; /* Convert to C++ code. */ - codeBlock *travcode; /* Traverse code. */ - codeBlock *clearcode; /* Clear code. */ - codeBlock *readbufcode; /* Read buffer code. */ - codeBlock *writebufcode; /* Write buffer code. */ - codeBlock *segcountcode; /* Segment count code. */ - codeBlock *charbufcode; /* Character buffer code. */ - struct _classDef *next; /* Next in the list. */ -} classDef; - - -/* A class template definition. */ - -typedef struct _classTmplDef { - signatureDef sig; /* The template arguments. */ - classDef *cd; /* The class itself. */ - struct _classTmplDef *next; /* The next in the list. */ -} classTmplDef; - - -/* A mapped type template definition. */ - -typedef struct _mappedTypeTmplDef { - signatureDef sig; /* The template arguments. */ - mappedTypeDef *mt; /* The mapped type itself. */ - struct _mappedTypeTmplDef *next; /* The next in the list. */ -} mappedTypeTmplDef; - - -/* The parse tree corresponding to the specification file. */ - -typedef struct { - moduleDef *module; /* This module. */ - moduleDef *modules; /* The list of modules. */ - nameDef *namecache; /* The name cache. */ - ifaceFileDef *ifacefiles; /* The list of interface files. */ - classDef *classes; /* The list of classes. */ - classTmplDef *classtemplates; /* The list of class templates. */ - classDef *proxies; /* The list of proxy classes. */ - exceptionDef *exceptions; /* The list of exceptions. */ - mappedTypeDef *mappedtypes; /* The mapped types. */ - mappedTypeTmplDef *mappedtypetemplates; /* The list of mapped type templates. */ - int qobjclass; /* TQObject class, -1 if none. */ - enumDef *enums; /* List of enums. */ - varDef *vars; /* List of variables. */ - memberDef *othfuncs; /* List of other functions. */ - overDef *overs; /* Global overloads. */ - typedefDef *typedefs; /* List of typedefs. */ - codeBlock *copying; /* Software license. */ - codeBlock *exphdrcode; /* Exported header code. */ - codeBlock *hdrcode; /* Header code. */ - codeBlock *cppcode; /* Global C++ code. */ - codeBlock *docs; /* Documentation. */ - codeBlock *preinitcode; /* Pre-initialisation code. */ - codeBlock *postinitcode; /* Post-initialisation code. */ - codeBlock *unitcode; /* Compilation unit code. */ - ifaceFileList *used; /* Interface files used. */ - int sigslots; /* Set if signals or slots are used. */ - int genc; /* Set if we are generating C code. */ - struct _stringList *options; /* The list of options. */ -} sipSpec; - - -/* A list of strings. */ - -typedef struct _stringList { - const char *s; /* The string. */ - struct _stringList *next; /* The next in the list. */ -} stringList; - - -/* File specific context information for the parser. */ - -typedef struct _parserContext { - int ifdepth; /* The depth of nested if's. */ - moduleDef *prevmod; /* The previous module. */ -} parserContext; - - -extern char *sipVersion; /* The version of SIP. */ -extern stringList *includeDirList; /* The include directory list for SIP files. */ - - -void parse(sipSpec *,FILE *,char *,stringList *,stringList *); -void parserEOF(char *,parserContext *); -void transform(sipSpec *); -void generateCode(sipSpec *,char *,char *,char *,char *,int,int,int,int,stringList *); -void generateAPI(sipSpec *pt, const char *apiFile); -void generateXML(sipSpec *pt, const char *xmlFile); -void generateExpression(valueDef *vd, FILE *fp); -void warning(char *,...); -void fatal(char *,...); -void fatalScopedName(scopedNameDef *); -void setInputFile(FILE *,char *,parserContext *,int); -void *sipMalloc(size_t); -char *sipStrdup(char *); -char *concat(const char *, ...); -void append(char **,char *); -ifaceFileList *addToUsedList(ifaceFileList **, ifaceFileDef *); -int excludedFeature(stringList *,qualDef *); -int sameSignature(signatureDef *,signatureDef *,int); -int sameTemplateSignature(signatureDef *sd1, signatureDef *sd2, int deep); -int sameScopedName(scopedNameDef *,scopedNameDef *); -int sameBaseType(argDef *,argDef *); -char *scopedNameTail(scopedNameDef *); -scopedNameDef *text2scopePart(char *); -scopedNameDef *copyScopedName(scopedNameDef *); -void appendScopedName(scopedNameDef **,scopedNameDef *); -void freeScopedName(scopedNameDef *); -void appendToClassList(classList **,classDef *); -void prcode(FILE *fp, const char *fmt, ...); -void prOverloadName(FILE *fp, overDef *od); -void prScopedPythonName(FILE *fp, classDef *scope, const char *pyname); -void prOverloadDecl(FILE *fp, overDef *od, int defval); -int isIntReturnSlot(memberDef *md); -int isLongReturnSlot(memberDef *md); -int isVoidReturnSlot(memberDef *md); -int isNumberSlot(memberDef *md); -int isRichCompareSlot(memberDef *md); -mappedTypeDef *allocMappedType(argDef *type); -void appendString(stringList **headp, const char *s); -void appendTypeStrings(scopedNameDef *ename, signatureDef *patt, signatureDef *src, signatureDef *known, scopedNameDef **names, scopedNameDef **values); -codeBlock *templateCode(sipSpec *pt, ifaceFileList **used, codeBlock *ocb, scopedNameDef *names, scopedNameDef *values); -ifaceFileDef *findIfaceFile(sipSpec *pt, moduleDef *mod, scopedNameDef *fqname, ifaceFileType iftype, argDef *ad); -int optNoEmitters(sipSpec *pt); -int optRegisterTypes(sipSpec *pt); -int optQ_OBJECT4(sipSpec *pt); -void yywarning(char *); - - -/* These are only here because bison publically references them. */ - -/* Represent a set of option flags. */ - -#define MAX_NR_FLAGS 5 - -typedef enum { - bool_flag, - string_flag, - name_flag, - opt_name_flag, - integer_flag -} flagType; - -typedef struct { - char *fname; /* The flag name. */ - flagType ftype; /* The flag type. */ - union { /* The flag value. */ - char *sval; /* A string value. */ - long ival; /* An integer value. */ - } fvalue; -} optFlag; - -typedef struct { - int nrFlags; /* The number of flags. */ - optFlag flags[MAX_NR_FLAGS]; /* Each flag. */ -} optFlags; - -#endif diff --git a/python/sip/sipgen/sipgen.sbf b/python/sip/sipgen/sipgen.sbf deleted file mode 100644 index 911b216b..00000000 --- a/python/sip/sipgen/sipgen.sbf +++ /dev/null @@ -1,16 +0,0 @@ -# This is the build file for the code generator. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of SIP. -# -# This copy of SIP is licensed for use under the terms of the SIP License -# Agreement. See the file LICENSE for more details. -# -# SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -target = sip -sources = main.c transform.c gencode.c export.c heap.c parser.c lexer.c -headers = sip.h parser.h diff --git a/python/sip/sipgen/transform.c b/python/sip/sipgen/transform.c deleted file mode 100644 index d19fb719..00000000 --- a/python/sip/sipgen/transform.c +++ /dev/null @@ -1,2856 +0,0 @@ -/* - * The parse tree transformation module for SIP. - * - * Copyright (c) 2007 - * Riverbank Computing Limited - * - * This file is part of SIP. - * - * This copy of SIP is licensed for use under the terms of the SIP License - * Agreement. See the file LICENSE for more details. - * - * SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ - - -#include -#include -#include - -#include "sip.h" - - -static int samePythonSignature(signatureDef *sd1, signatureDef *sd2); -static int nextSignificantArg(signatureDef *sd, int a); -static int sameArgType(argDef *a1, argDef *a2, int strict); -static int supportedType(classDef *,overDef *,argDef *,int); -static int sameOverload(overDef *od1,overDef *od2); -static int sameVirtualHandler(virtHandlerDef *vhd1,virtHandlerDef *vhd2); -static int isSubClass(classDef *cc,classDef *pc); -static void setAllImports(sipSpec *pt, moduleDef *mod); -static void addUniqueModule(moduleDef *mod, moduleDef *imp); -static void ensureInput(classDef *,overDef *,argDef *); -static void defaultInput(argDef *); -static void defaultOutput(classDef *,overDef *,argDef *); -static void assignClassNrs(sipSpec *,moduleDef *,nodeDef *); -static void assignEnumNrs(sipSpec *pt); -static void positionClass(classDef *); -static void addNodeToParent(nodeDef *,classDef *); -static void addAutoOverload(sipSpec *,classDef *,overDef *); -static void ifaceFileIsUsed(sipSpec *, ifaceFileDef *, argDef *); -static void ifaceFilesAreUsed(sipSpec *, ifaceFileDef *, overDef *); -static void ifaceFilesAreUsedByMethod(sipSpec *, classDef *, memberDef *); -static void ifaceFilesAreUsedFromOther(sipSpec *pt, signatureDef *sd); -static void scopeDefaultValue(sipSpec *,classDef *,argDef *); -static void setHierarchy(sipSpec *,classDef *,classDef *,classList **); -static void transformCtors(sipSpec *,classDef *); -static void transformCasts(sipSpec *,classDef *); -static void addDefaultCopyCtor(classDef *); -static void transformOverloads(sipSpec *,classDef *,overDef *); -static void transformVariableList(sipSpec *); -static void transformMappedTypes(sipSpec *); -static void getVisibleMembers(sipSpec *,classDef *); -static void getVirtuals(sipSpec *pt,classDef *cd); -static void getClassVirtuals(classDef *,classDef *); -static void transformTypedefs(sipSpec *pt); -static void resolveMappedTypeTypes(sipSpec *,mappedTypeDef *); -static void resolveCtorTypes(sipSpec *,classDef *,ctorDef *); -static void resolveFuncTypes(sipSpec *,moduleDef *,classDef *,overDef *); -static void resolvePySigTypes(sipSpec *,moduleDef *,classDef *,overDef *,signatureDef *,int); -static void resolveVariableType(sipSpec *,varDef *); -static void fatalNoDefinedType(scopedNameDef *); -static void getBaseType(sipSpec *,moduleDef *,classDef *,argDef *); -static void searchScope(sipSpec *,classDef *,scopedNameDef *,argDef *); -static void searchMappedTypes(sipSpec *,scopedNameDef *,argDef *); -static void searchTypedefs(sipSpec *,scopedNameDef *,argDef *); -static void searchEnums(sipSpec *,scopedNameDef *,argDef *); -static void searchClasses(sipSpec *,moduleDef *mod,scopedNameDef *,argDef *); -static void appendToMRO(mroDef *,mroDef ***,classDef *); -static void moveClassCasts(sipSpec *pt, classDef *cd); -static void moveGlobalSlot(sipSpec *pt, memberDef *gmd); -static void filterVirtualHandlers(moduleDef *mod); -static ifaceFileDef *getIfaceFile(argDef *ad); -static mappedTypeDef *instantiateMappedTypeTemplate(sipSpec *pt, moduleDef *mod, mappedTypeTmplDef *mtt, argDef *type); -static classDef *getProxy(sipSpec *pt, classDef *cd); - - -/* - * Transform the parse tree. - */ - -void transform(sipSpec *pt) -{ - moduleDef *mod; - moduleListDef *mld; - classDef *cd, *rev, **tail; - classList *newl; - overDef *od; - mappedTypeDef *mtd; - virtHandlerDef *vhd; - int nr; - - if (pt -> module -> name == NULL) - fatal("No %%Module has been specified for the module\n"); - - /* - * The class list has the main module's classes at the front and the - * ones from the module at the most nested %Import at the end. This - * affects some of the following algorithms, eg. when assigning class - * numbers. We have to have consistency whenever a module is used. To - * achieve this we reverse the order of the classes. - */ - rev = NULL; - cd = pt -> classes; - - while (cd != NULL) - { - classDef *next = cd -> next; - - cd -> next = rev; - rev = cd; - - /* - * Mark any TQObject class. This flag will ripple through all derived - * classes when we set the hierarchy. - */ - if (strcmp(classBaseName(cd), "TQObject") == 0) - setIsQObjectSubClass(cd); - - cd = next; - } - - pt -> classes = rev; - - /* Build the list of all imports for each module. */ - for (mod = pt->modules; mod != NULL; mod = mod->next) - setAllImports(pt, mod); - - /* Check each class has been defined. */ - for (cd = pt -> classes; cd != NULL; cd = cd -> next) - if (cd -> iff -> module == NULL) - { - fatalScopedName(classFQCName(cd)); - fatal(" has not been defined\n"); - } - - /* - * Set the super-class hierarchy for each class and re-order the list - * of classes so that no class appears before a super class or an - * enclosing scope class. - */ - newl = NULL; - - for (cd = pt -> classes; cd != NULL; cd = cd -> next) - setHierarchy(pt,cd,cd,&newl); - - /* Replace the old list with the new one. */ - tail = &pt -> classes; - - while (newl != NULL) - { - classList *cl = newl; - - *tail = cl -> cd; - tail = &cl -> cd -> next; - - newl = cl -> next; - free(cl); - } - - *tail = NULL; - - /* Transform typedefs, variables and global functions. */ - transformTypedefs(pt); - transformVariableList(pt); - transformOverloads(pt,NULL,pt -> overs); - - /* Transform class ctors, functions and casts. */ - for (cd = pt -> classes; cd != NULL; cd = cd -> next) - { - transformCtors(pt,cd); - - if (!pt -> genc) - { - transformOverloads(pt,cd,cd -> overs); - transformCasts(pt, cd); - } - } - - /* Transform mapped types based on templates. */ - transformMappedTypes(pt); - - /* Handle default ctors now that the argument types are resolved. */ - if (!pt -> genc) - for (cd = pt -> classes; cd != NULL; cd = cd -> next) - if (!noDefaultCtors(cd) && !isOpaque(cd) && cd->iff->type != namespace_iface) - addDefaultCopyCtor(cd); - - /* - * Go through each class and add it to it's defining module's tree of - * classes. The tree reflects the namespace hierarchy. - */ - for (cd = pt -> classes; cd != NULL; cd = cd -> next) - addNodeToParent(&cd -> iff -> module -> root,cd); - - for (cd = pt -> classes; cd != NULL; cd = cd -> next) - positionClass(cd); - - /* Assign module specific class numbers for all modules. */ - for (mod = pt->modules; mod != NULL; mod = mod->next) - assignClassNrs(pt, mod, &mod->root); - - /* Assign module specific enum numbers for all enums. */ - assignEnumNrs(pt); - - /* Add any automatically generated methods. */ - for (cd = pt -> classes; cd != NULL; cd = cd -> next) - for (od = cd -> overs; od != NULL; od = od -> next) - if (isAutoGen(od)) - addAutoOverload(pt,cd,od); - - /* Allocate mapped types numbers. */ - for (mtd = pt -> mappedtypes; mtd != NULL; mtd = mtd -> next) - mtd -> mappednr = mtd -> iff -> module -> nrmappedtypes++; - - /* - * Move casts and slots around to their correct classes (if in the same - * module) or create proxies for them (if cross-module). - */ - if (!pt -> genc) - { - memberDef *md; - - for (cd = pt -> classes; cd != NULL; cd = cd -> next) - if (cd->iff->module == pt->module) - moveClassCasts(pt, cd); - - for (md = pt->othfuncs; md != NULL; md = md->next) - if (md->slot != no_slot && md->module == pt->module) - moveGlobalSlot(pt, md); - } - - /* Generate the different class views. */ - for (cd = pt -> classes; cd != NULL; cd = cd -> next) - { - ifaceFileDef *iff = cd -> iff; - - if (iff -> type == class_iface) - { - /* Get the list of visible member functions. */ - getVisibleMembers(pt,cd); - - /* Get the virtual members. */ - if (hasShadow(cd)) - getVirtuals(pt,cd); - } - else if (iff -> type == namespace_iface && iff -> module == pt -> module) - { - memberDef *md; - - for (md = cd -> members; md != NULL; md = md -> next) - ifaceFilesAreUsedByMethod(pt, cd, md); - } - } - - /* - * In case there are any global functions that need external interface - * files. - */ - for (od = pt -> overs; od != NULL; od = od -> next) - if (od->common->module == pt->module) - ifaceFilesAreUsedFromOther(pt, &od->pysig); - - /* - * Remove redundant virtual handlers. It's important that earlier, - * ie. those at the deepest level of %Import, are done first. - */ - nr = 0; - - for (mld = pt->module->allimports; mld != NULL; mld = mld->next) - { - mld->module->modulenr = nr++; - filterVirtualHandlers(mld->module); - } - - pt->module->modulenr = nr; - filterVirtualHandlers(pt->module); - - /* - * Make sure we have the interface files for all types from other modules - * that are used in virtual handlers implemented in this module. - */ - for (vhd = pt->module->virthandlers; vhd != NULL; vhd = vhd->next) - if (!isDuplicateVH(vhd)) - ifaceFilesAreUsedFromOther(pt, vhd->cppsig); - - /* Update proxies with some information from the real classes. */ - for (cd = pt->proxies; cd != NULL; cd = cd->next) - cd->classnr = cd->real->classnr; -} - - -/* - * Set the list of all imports for a module. The list is ordered so that a - * module appears before any module that imports it. - */ -static void setAllImports(sipSpec *pt, moduleDef *mod) -{ - moduleListDef *mld; - - /* - * Handle the trivial case where there are no imports, or the list has - * already been done. - */ - if (mod->imports == NULL || mod->allimports != NULL) - return; - - /* Make sure all the direct imports are done first. */ - for (mld = mod->imports; mld != NULL; mld = mld->next) - setAllImports(pt, mld->module); - - /* - * Now build the list from our direct imports lists but ignoring - * duplicates. - */ - for (mld = mod->imports; mld != NULL; mld = mld->next) - { - moduleListDef *amld; - - for (amld = mld->module->allimports; amld != NULL; amld = amld->next) - addUniqueModule(mod, amld->module); - - addUniqueModule(mod, mld->module); - } -} - - -/* - * Append a module to the list of all imported modules if it isn't already - * there. - */ -static void addUniqueModule(moduleDef *mod, moduleDef *imp) -{ - moduleListDef **tail; - - for (tail = &mod->allimports; *tail != NULL; tail = &(*tail)->next) - if ((*tail)->module == imp) - return; - - *tail = sipMalloc(sizeof (moduleListDef)); - - (*tail)->module = imp; - (*tail)->next = NULL; -} - - -/* - * Move any class casts to its correct class, or publish as a ctor extender. - */ -static void moveClassCasts(sipSpec *pt, classDef *cd) -{ - argList *al; - - for (al = cd->casts; al != NULL; al = al->next) - { - classDef *dcd = al->arg.u.cd; - ctorDef *ct, **ctp; - argDef *ad; - - /* - * If the destination class is in a different module then use - * a proxy. - */ - if (dcd->iff->module != pt->module) - dcd = getProxy(pt, dcd); - - /* Create the new ctor. */ - ct = sipMalloc(sizeof (ctorDef)); - - ct->ctorflags = SECT_IS_PUBLIC | CTOR_CAST; - ct->cppsig = &ct->pysig; - ct->exceptions = NULL; - ct->methodcode = NULL; - ct->prehook = NULL; - ct->posthook = NULL; - ct->next = NULL; - - /* Add the source class as the only argument. */ - ad = &ct->pysig.args[0]; - - ad->atype = class_type; - ad->name = NULL; - ad->argflags = ARG_IN | (al->arg.argflags & (ARG_IS_REF | ARG_IS_CONST)); - ad->nrderefs = al->arg.nrderefs; - ad->defval = NULL; - ad->u.cd = cd; - - ifaceFileIsUsed(pt, dcd->iff, ad); - - ct->pysig.nrArgs = 1; - - /* Append it to the list. */ - for (ctp = &dcd->ctors; *ctp != NULL; ctp = &(*ctp)->next) - if (sameSignature(&(*ctp)->pysig, &ct->pysig, FALSE)) - { - fatal("operator "); - fatalScopedName(classFQCName(dcd)); - fatal("::"); - fatalScopedName(classFQCName(dcd)); - fatal("("); - fatalScopedName(classFQCName(cd)); - fatal(") already defined\n"); - } - - *ctp = ct; - } -} - - -/* - * If possible, move a global slot to its correct class. - */ -static void moveGlobalSlot(sipSpec *pt, memberDef *gmd) -{ - overDef **odp = &pt->overs, *od; - - while ((od = *odp) != NULL) - { - int second; - argDef *arg0, *arg1; - memberDef *md, **mdhead; - overDef **odhead; - moduleDef *mod; - nameDef *nd; - - if (od->common != gmd) - { - odp = &od->next; - continue; - } - - /* - * We know that the slot has the right number of arguments, but the - * first or second one needs to be a class or enum defined in the same - * module. Otherwise we leave it as it is and publish it as a slot - * extender. - */ - arg0 = &od->pysig.args[0]; - arg1 = &od->pysig.args[1]; - - second = FALSE; - nd = NULL; - - if (arg0->atype == class_type) - { - mdhead = &arg0->u.cd->members; - odhead = &arg0->u.cd->overs; - mod = arg0->u.cd->iff->module; - } - else if (arg0->atype == enum_type) - { - mdhead = &arg0->u.ed->slots; - odhead = &arg0->u.ed->overs; - mod = arg0->u.ed->module; - nd = arg0->u.ed->pyname; - } - else if (arg1->atype == class_type) - { - mdhead = &arg1->u.cd->members; - odhead = &arg1->u.cd->overs; - mod = arg1->u.cd->iff->module; - second = TRUE; - } - else if (arg1->atype == enum_type) - { - mdhead = &arg1->u.ed->slots; - odhead = &arg1->u.ed->overs; - mod = arg1->u.ed->module; - nd = arg1->u.ed->pyname; - second = TRUE; - } - else - { - fatal("One of the arguments of "); - prOverloadName(stderr, od); - fatal(" must be a class or enum\n"); - } - - /* - * For rich comparisons the first argument must be a class or - * an enum. For cross-module slots then it may only be a - * class. (This latter limitation is artificial, but is - * unlikely to be a problem in practice.) - */ - if (isRichCompareSlot(gmd)) - { - if (second) - { - fatal("The first argument of "); - prOverloadName(stderr, od); - fatal(" must be a class or enum\n"); - } - - if (mod != gmd->module && arg0->atype == enum_type) - { - fatal("The first argument of "); - prOverloadName(stderr, od); - fatal(" must be a class\n"); - } - } - - if (mod != gmd->module) - { - if (isRichCompareSlot(gmd)) - { - classDef *pcd = getProxy(pt, arg0->u.cd); - memberDef *pmd; - overDef *pod; - - /* Create a new proxy member if needed. */ - for (pmd = pcd->members; pmd != NULL; pmd = pmd->next) - if (pmd->slot == gmd->slot) - break; - - if (pmd == NULL) - { - pmd = sipMalloc(sizeof (memberDef)); - - pmd->pyname = gmd->pyname; - pmd->memberflags = 0; - pmd->slot = gmd->slot; - pmd->module = mod; - pmd->next = pcd->members; - - pcd->members = pmd; - } - - /* Add the proxy overload. */ - pod = sipMalloc(sizeof (overDef)); - - *pod = *od; - pod->common = pmd; - pod->next = pcd->overs; - - pcd->overs = pod; - - /* Remove the first argument. */ - pod->pysig.args[0] = pod->pysig.args[1]; - pod->pysig.nrArgs = 1; - - /* Remove from the list. */ - *odp = od->next; - } - else - odp = &od->next; - - continue; - } - - /* Remove from the list. */ - *odp = od->next; - - /* - * The only time we need the name of an enum is when it has - * slots. - */ - if (nd != NULL) - setIsUsedName(nd); - - /* See if there is already a member or create a new one. */ - for (md = *mdhead; md != NULL; md = md->next) - if (md->slot == gmd->slot) - break; - - if (md == NULL) - { - md = sipMalloc(sizeof (memberDef)); - - *md = *gmd; - - md->module = mod; - md->next = *mdhead; - - *mdhead = md; - } - - /* Move the overload. */ - setIsPublic(od); - od->common = md; - od->next = *odhead; - - *odhead = od; - - /* Remove the first argument of comparison operators. */ - if (isRichCompareSlot(md)) - { - /* Remember if the argument was a pointer. */ - if (arg0->nrderefs > 0) - setDontDerefSelf(od); - - *arg0 = *arg1; - od->pysig.nrArgs = 1; - } - } -} - - -/* - * Create a proxy for a class if it doesn't already exist. Proxies are used as - * containers for cross-module extenders. - */ -static classDef *getProxy(sipSpec *pt, classDef *cd) -{ - classDef *pcd; - - for (pcd = pt->proxies; pcd != NULL; pcd = pcd->next) - if (pcd->iff == cd->iff) - return pcd; - - pcd = sipMalloc(sizeof (classDef)); - - pcd->classflags = 0; - pcd->userflags = 0; - pcd->classnr = -1; - pcd->pyname = cd->pyname; - pcd->iff = cd->iff; - pcd->ecd = cd->ecd; - pcd->real = cd; - pcd->node = NULL; - pcd->supers = cd->supers; - pcd->mro = cd->mro; - pcd->td = NULL; - pcd->ctors = NULL; - pcd->defctor = NULL; - pcd->dealloccode = NULL; - pcd->dtorcode = NULL; - pcd->dtorexceptions = NULL; - pcd->members = NULL; - pcd->overs = NULL; - pcd->casts = NULL; - pcd->vmembers = NULL; - pcd->visible = NULL; - pcd->cppcode = NULL; - pcd->hdrcode = NULL; - pcd->convtosubcode = NULL; - pcd->subbase = NULL; - pcd->convtocode = NULL; - pcd->travcode = NULL; - pcd->clearcode = NULL; - pcd->readbufcode = NULL; - pcd->writebufcode = NULL; - pcd->segcountcode = NULL; - pcd->charbufcode = NULL; - pcd->next = pt->proxies; - - pt->proxies = pcd; - - return pcd; -} - - -/* - * Go through the virtual handlers filtering those that can duplicate earlier - * ones. Make sure each virtual is numbered within its module, and according - * to their position in the list (ignoring duplicates). - */ -static void filterVirtualHandlers(moduleDef *mod) -{ - virtHandlerDef *vhd; - - for (vhd = mod->virthandlers; vhd != NULL; vhd = vhd->next) - { - virtHandlerDef *best, *best_thismod, *hd; - - best = best_thismod = NULL; - - /* - * If this has handwritten code then we will want to use it. - * Otherwise, look for a handler in earlier modules. - */ - if (vhd->virtcode == NULL) - { - moduleListDef *mld; - - for (mld = mod->allimports; mld != NULL && mld->module != mod; mld = mld->next) - { - for (hd = mld->module->virthandlers; hd != NULL; hd = hd->next) - if (sameVirtualHandler(vhd, hd)) - { - best = hd; - break; - } - - /* - * No need to check later modules as this will either be the - * right one, or a duplicate of the right one. - */ - if (best != NULL) - break; - } - } - - /* - * Find the best candidate in this module in case we want to give it - * our handwritten code. - */ - for (hd = mod->virthandlers; hd != vhd; hd = hd->next) - if (sameVirtualHandler(vhd, hd)) - { - best_thismod = hd; - break; - } - - /* - * We don't use this one if it doesn't have virtual code and there is - * an alternative, or if it does have virtual code and there is already - * an alternative in the same module which doesn't have virtual code. - */ - if ((vhd->virtcode == NULL && (best != NULL || best_thismod != NULL)) || - (vhd->virtcode != NULL && best_thismod != NULL && best_thismod->virtcode == NULL)) - { - virtHandlerDef *saved; - - /* - * If the alternative is in the same module and we have virtual - * code then give it to the alternative. Note that there is a bug - * here. If there are three handlers, the first without code and - * the second and third with code then which code is transfered to - * the first is down to luck. We should really only transfer code - * to methods that are known to be re-implementations - just having - * the same signature isn't enough. - */ - if (best_thismod != NULL) - { - if (best_thismod->virtcode == NULL && vhd->virtcode != NULL) - { - best_thismod->virtcode = vhd->virtcode; - resetIsDuplicateVH(best_thismod); - } - - best = best_thismod; - } - - /* Use the better one in place of this one. */ - saved = vhd->next; - *vhd = *best; - setIsDuplicateVH(vhd); - vhd->next = saved; - } - else - vhd->virthandlernr = mod->nrvirthandlers++; - } -} - - -/* - * Add an overload that is automatically generated (typically by Qt's moc). - */ -static void addAutoOverload(sipSpec *pt,classDef *autocd,overDef *autood) -{ - classDef *cd; - - /* Find every class that has this one in its hierarchy. */ - - for (cd = pt -> classes; cd != NULL; cd = cd -> next) - { - mroDef *mro; - - if (cd == autocd) - continue; - - for (mro = cd -> mro; mro != NULL; mro = mro -> next) - if (mro -> cd == autocd) - { - memberDef *md; - overDef *od; - - /* Another overload may already exist. */ - - for (md = cd -> members; md != NULL; md = md -> next) - if (md -> pyname == autood -> common -> pyname) - break; - - if (md == NULL) - { - md = sipMalloc(sizeof (memberDef)); - - md -> pyname = autood -> common -> pyname; - md -> memberflags = autood -> common -> memberflags; - md -> slot = autood -> common -> slot; - md -> module = cd -> iff -> module; - md -> next = cd -> members; - cd -> members = md; - } - - od = sipMalloc(sizeof (overDef)); - - *od = *autood; - od -> common = md; - od -> next = cd -> overs; - cd -> overs = od; - - resetIsAutoGen(od); - - if (cd -> iff -> module == pt -> module) - setIsUsedName(md -> pyname); - - break; - } - } -} - - -/* - * Set the complete hierarchy for a class. - */ -static void setHierarchy(sipSpec *pt,classDef *base,classDef *cd, - classList **head) -{ - mroDef **tailp = &cd -> mro; - - /* See if it has already been done. */ - if (cd -> mro != NULL) - return; - - if (cd -> ecd != NULL) - setHierarchy(pt,base,cd -> ecd,head); - - if (cd -> iff -> type == class_iface) - { - classList *cl; - - /* The first thing is itself. */ - appendToMRO(cd -> mro,&tailp,cd); - - if (cd -> convtosubcode != NULL) - cd -> subbase = cd; - - /* Now do it's superclasses. */ - for (cl = cd -> supers; cl != NULL; cl = cl -> next) - { - mroDef *mro; - - /* - * Make sure the super-class's hierarchy has been done. - */ - setHierarchy(pt,base,cl -> cd,head); - - /* Append the super-classes hierarchy. */ - for (mro = cl -> cd -> mro; mro != NULL; mro = mro -> next) - { - appendToMRO(cd -> mro,&tailp,mro -> cd); - - /* - * If the super-class is a TQObject sub-class then this one is - * as well. - */ - if (isQObjectSubClass(mro->cd)) - setIsQObjectSubClass(cd); - - /* - * If the super-class has a shadow then this one should have - * one as well. - */ - if (hasShadow(mro->cd)) - setHasShadow(cd); - - /* - * Ensure that the sub-class base class is the furthest up the - * hierarchy. - */ - if (mro->cd->subbase != NULL) - cd->subbase = mro->cd->subbase; - } - } - } - - /* - * We can't have a shadow if the specification is incomplete, there is - * a private dtor, there are no none-private ctors or there are private - * abstract methods. - */ - if (isIncomplete(cd) || isPrivateDtor(cd) || !canCreate(cd)) - resetHasShadow(cd); - else - { - overDef *od; - - /* - * Note that we should be able to provide better support for - * abstract private methods than we do at the moment. - */ - for (od = cd->overs; od != NULL; od = od->next) - if (isAbstract(od) && isPrivate(od)) - { - resetHasShadow(cd); - - /* - * It also means we cannot create an instance - * from Python. - */ - resetCanCreate(cd); - - break; - } - } - - /* Add it to the new list. */ - appendToClassList(head,cd); -} - - -/* - * Append a class definition to an mro list - */ -static void appendToMRO(mroDef *head,mroDef ***tailp,classDef *cd) -{ - mroDef *mro, *new; - - new = sipMalloc(sizeof (mroDef)); - - new -> cd = cd; - new -> mroflags = 0; - new -> next = NULL; - - /* See if it is a duplicate. */ - - for (mro = head; mro != NULL; mro = mro -> next) - if (mro -> cd == cd) - { - setIsDuplicateSuper(new); - - if (!isDuplicateSuper(mro)) - setHasDuplicateSuper(mro); - - break; - } - - /* Append to the list and update the tail pointer. */ - **tailp = new; - *tailp = &new -> next; -} - - -/* - * Get the base types for all typedefs. - */ -static void transformTypedefs(sipSpec *pt) -{ - typedefDef *td; - - for (td = pt -> typedefs; td != NULL; td = td -> next) - getBaseType(pt, td->module, td -> ecd, &td -> type); -} - - -/* - * Transform the data types for mapped types based on a template. - */ -static void transformMappedTypes(sipSpec *pt) -{ - mappedTypeDef *mt; - - for (mt = pt -> mappedtypes; mt != NULL; mt = mt -> next) - { - /* Nothing to do if this isn't template based. */ - - if (mt -> type.atype == template_type) - resolveMappedTypeTypes(pt,mt); - } -} - - -/* - * Transform the data types for a list of ctors. - */ -static void transformCtors(sipSpec *pt, classDef *cd) -{ - ctorDef *ct; - - for (ct = cd->ctors; ct != NULL; ct = ct->next) - { - ctorDef *prev; - - resolveCtorTypes(pt, cd, ct); - - /* - * Now check that the Python signature doesn't conflict with an - * earlier one. - */ - for (prev = cd->ctors; prev != ct; prev = prev->next) - if (samePythonSignature(&prev->pysig, &ct->pysig)) - { - fatalScopedName(classFQCName(cd)); - fatal(" has ctors with the same Python signature\n"); - } - } -} - - -/* - * Transform the data type for a list of casts. - */ -static void transformCasts(sipSpec *pt, classDef *cd) -{ - argList *al; - - for (al = cd->casts; al != NULL; al = al->next) - { - getBaseType(pt, cd->iff->module, cd, &al->arg); - - if (al->arg.atype != class_type) - { - fatalScopedName(classFQCName(cd)); - fatal(" operator cast must be to a class\n"); - } - } -} - - -/* - * Add a default copy ctor is required. - */ -static void addDefaultCopyCtor(classDef *cd) -{ - ctorDef *copyct; - mroDef *mro; - - /* See if there is a private copy ctor in the hierarchy. */ - - copyct = NULL; - - for (mro = cd -> mro; mro != NULL; mro = mro -> next) - { - ctorDef *ct; - - if (isDuplicateSuper(mro)) - continue; - - for (ct = mro -> cd -> ctors; ct != NULL; ct = ct -> next) - { - argDef *ad = &ct -> pysig.args[0]; - - /* See if is a copy ctor. */ - if (ct -> pysig.nrArgs != 1 || ad -> nrderefs != 0 || - !isReference(ad) || ad -> atype != class_type || - ad -> u.cd != mro -> cd) - continue; - - /* Stop now if the copy ctor is private. */ - if (isPrivateCtor(ct)) - return; - - /* - * Remember if it's in the class we are dealing with. - */ - if (mro == cd -> mro) - copyct = ct; - - break; - } - } - - if (copyct == NULL) - { - ctorDef **tailp; - - /* Create a default public copy ctor. */ - - copyct = sipMalloc(sizeof (ctorDef)); - - copyct -> ctorflags = SECT_IS_PUBLIC; - copyct -> pysig.nrArgs = 1; - copyct -> pysig.args[0].name = "other"; - copyct -> pysig.args[0].atype = class_type; - copyct -> pysig.args[0].u.cd = cd; - copyct -> pysig.args[0].argflags = (ARG_IS_REF | ARG_IS_CONST | ARG_IN); - copyct -> pysig.args[0].nrderefs = 0; - copyct -> pysig.args[0].defval = NULL; - - copyct -> cppsig = ©ct -> pysig; - copyct -> exceptions = NULL; - copyct -> methodcode = NULL; - copyct -> prehook = NULL; - copyct -> posthook = NULL; - copyct -> next = NULL; - - /* Append it to the list. */ - for (tailp = &cd -> ctors; *tailp != NULL; tailp = &(*tailp) -> next) - ; - - *tailp = copyct; - } -} - - -/* - * Transform the data types for a list of overloads. - */ -static void transformOverloads(sipSpec *pt, classDef *scope, overDef *overs) -{ - overDef *od; - - for (od = overs; od != NULL; od = od -> next) - { - overDef *prev; - - resolveFuncTypes(pt, od->common->module, scope, od); - - /* - * Now check that the Python signature doesn't conflict with an - * earlier one. - */ - for (prev = overs; prev != od; prev = prev->next) - { - if (prev->common != od->common) - continue; - - if (samePythonSignature(&prev->pysig, &od->pysig)) - { - if (scope != NULL) - { - fatalScopedName(classFQCName(scope)); - fatal("::"); - } - - fatal("%s() has overloaded functions with the same Python signature\n", od->common->pyname->text); - } - } - } -} - - -/* - * Transform the data types for the variables. - */ -static void transformVariableList(sipSpec *pt) -{ - varDef *vd; - - for (vd = pt -> vars; vd != NULL; vd = vd -> next) - resolveVariableType(pt,vd); -} - - -/* - * Set the list of visible member functions for a class. - */ -static void getVisibleMembers(sipSpec *pt,classDef *cd) -{ - mroDef *mro; - - cd -> visible = NULL; - - for (mro = cd -> mro; mro != NULL; mro = mro -> next) - { - memberDef *md; - classDef *mrocd; - - if (isDuplicateSuper(mro)) - continue; - - mrocd = mro -> cd; - - /* - * If the base class is in the main module, see if it needs to - * publish any protected enums. - */ - if (cd -> iff -> module == pt -> module) - { - enumDef *ed; - - for (ed = pt -> enums; ed != NULL; ed = ed -> next) - { - /* Skip unless we are the publisher. */ - if (ed -> pcd != mrocd) - continue; - - /* - * If we are not in the main module then the - * base class must take over as the publisher. - */ - if (mrocd -> iff -> module != pt -> module) - ed -> pcd = cd; - } - } - - for (md = mrocd -> members; md != NULL; md = md -> next) - { - visibleList *vl; - - /* - * See if it is already in the list. This has the desired side - * effect of eliminating any functions that have an implementation - * closer to this class in the hierarchy. This is the only reason - * to define private functions. - */ - for (vl = cd->visible; vl != NULL; vl = vl->next) - if (vl->m->pyname == md->pyname) - break; - - /* See if it is a new member function. */ - - if (vl == NULL) - { - overDef *od; - - vl = sipMalloc(sizeof (visibleList)); - - vl -> m = md; - vl -> cd = mrocd; - vl -> next = cd -> visible; - - addToUsedList(&cd->iff->used, mrocd->iff); - - cd -> visible = vl; - - for (od = mrocd -> overs; od != NULL; od = od -> next) - if (od -> common == md) - { - if (isAbstract(od)) - setIsAbstractClass(cd); - - ifaceFilesAreUsed(pt, cd->iff, od); - - /* See if we need the name. */ - if (cd->iff->module != pt->module) - continue; - - if (isProtected(od) || (isSignal(od) && !optNoEmitters(pt))) - setIsUsedName(md->pyname); - } - } - } - } -} - - -/* - * Get all the virtuals for a particular class. - */ -static void getVirtuals(sipSpec *pt,classDef *cd) -{ - mroDef *mro; - virtOverDef *vod; - - for (mro = cd -> mro; mro != NULL; mro = mro -> next) - { - if (isDuplicateSuper(mro)) - continue; - - getClassVirtuals(cd,mro -> cd); - } - - /* - * Identify any re-implementations of virtuals. We have to do this for - * all classes, not just those in the main module. - */ - for (vod = cd -> vmembers; vod != NULL; vod = vod -> next) - { - overDef *od; - - for (od = cd->overs; od != NULL; od = od->next) - { - if (isVirtual(od)) - continue; - - if (strcmp(vod->o.cppname, od->cppname) == 0 && sameOverload(&vod->o, od)) - { - setIsVirtualReimp(od); - break; - } - } - - /* - * If this class is defined in the main module make sure we get - * the API files for all the visible virtuals. - */ - if (cd->iff->module == pt->module) - { - /* Make sure we get the name. */ - setIsUsedName(vod -> o.common -> pyname); - - ifaceFilesAreUsed(pt, cd->iff, &vod -> o); - } - } -} - - -/* - * Get the list of visible virtual functions for a class. - */ -static void getClassVirtuals(classDef *base,classDef *cd) -{ - overDef *od; - - for (od = cd -> overs; od != NULL; od = od -> next) - { - virtOverDef **tailp, *vod; - - if (!isVirtual(od) || isPrivate(od)) - continue; - - /* - * See if a virtual of this name and signature is already in - * the list. - */ - for (tailp = &base -> vmembers; (vod = *tailp) != NULL; tailp = &vod -> next) - if (strcmp(vod -> o.cppname,od -> cppname) == 0 && sameOverload(&vod -> o,od)) - break; - - if (vod == NULL) - { - /* - * See if there is a non-virtual reimplementation - * nearer in the class hierarchy. - */ - - mroDef *mro; - classDef *scope = NULL; - overDef *eod; - - for (mro = base -> mro; mro -> cd != cd; mro = mro -> next) - { - if (isDuplicateSuper(mro)) - continue; - - /* - * Ignore classes that are on a different - * branch of the class hierarchy. - */ - if (!isSubClass(mro -> cd,cd)) - continue; - - for (eod = mro -> cd -> overs; eod != NULL; eod = eod -> next) - if (strcmp(eod -> cppname,od -> cppname) == 0 && sameSignature(eod -> cppsig,od -> cppsig,TRUE) && isConst(eod) == isConst(od) && !isAbstract(eod)) - { - scope = mro -> cd; - break; - } - - if (scope != NULL) - break; - } - - vod = sipMalloc(sizeof (virtOverDef)); - - vod -> o = *od; - vod -> scope = (scope != NULL ? scope : cd); - vod -> next = NULL; - - *tailp = vod; - - /* - * If there was a nearer reimplementation then we use - * its protection and abstract flags. - */ - if (scope != NULL) - { - vod -> o.overflags &= ~(SECT_MASK | OVER_IS_ABSTRACT); - vod -> o.overflags |= (SECT_MASK | OVER_IS_ABSTRACT) & eod -> overflags; - } - } - } -} - - -/* - * Return TRUE is a class is derived from another. - */ -static int isSubClass(classDef *cc,classDef *pc) -{ - mroDef *mro; - - /* - * In other words, does the parent class appear in the child class's - * MRO list. - */ - for (mro = cc -> mro; mro != NULL; mro = mro -> next) - if (mro -> cd == pc) - return TRUE; - - return FALSE; -} - - -/* - * Resolve the types of a mapped type based on a template. - */ -static void resolveMappedTypeTypes(sipSpec *pt,mappedTypeDef *mt) -{ - int a; - templateDef *td = mt -> type.u.td; - - for (a = 0; a < td -> types.nrArgs; ++a) - { - getBaseType(pt, mt->iff->module, NULL, &td->types.args[a]); - - ifaceFileIsUsed(pt, mt->iff, &td->types.args[a]); - } -} - - -/* - * Resolve the types of a ctor. - */ -static void resolveCtorTypes(sipSpec *pt,classDef *scope,ctorDef *ct) -{ - int a; - - /* Handle any C++ signature. */ - if (ct->cppsig != NULL && ct->cppsig != &ct->pysig) - for (a = 0; a < ct -> cppsig -> nrArgs; ++a) - getBaseType(pt, scope->iff->module, scope, &ct->cppsig->args[a]); - - /* Handle the Python signature. */ - for (a = 0; a < ct -> pysig.nrArgs; ++a) - { - argDef *ad = &ct -> pysig.args[a]; - - getBaseType(pt, scope->iff->module, scope, ad); - - if (!supportedType(scope,NULL,ad,FALSE) && (ct -> cppsig == &ct -> pysig || ct -> methodcode == NULL)) - { - fatalScopedName(classFQCName(scope)); - fatal(" unsupported ctor argument type - provide %%MethodCode and a C++ signature\n"); - } - - ifaceFileIsUsed(pt, scope->iff, ad); - scopeDefaultValue(pt,scope,ad); - } -} - - -/* - * Resolve the types of a function. - */ -static void resolveFuncTypes(sipSpec *pt, moduleDef *mod, classDef *scope, overDef *od) -{ - argDef *res; - - /* Handle any C++ signature. */ - if (od -> cppsig != &od -> pysig) - { - int a; - - getBaseType(pt,mod, scope, &od->cppsig->result); - - for (a = 0; a < od -> cppsig -> nrArgs; ++a) - getBaseType(pt, mod, scope, &od->cppsig->args[a]); - } - - /* Handle the Python signature. */ - resolvePySigTypes(pt, mod, scope, od, &od->pysig,isSignal(od)); - - /* These slots must return int. */ - res = &od -> pysig.result; - - if (isIntReturnSlot(od->common)) - if (res -> atype != int_type || res -> nrderefs != 0 || - isReference(res) || isConstArg(res)) - fatal("%s slots must return int\n",od -> common -> pyname -> text); - - /* These slots must return void. */ - if (isVoidReturnSlot(od -> common)) - if (res -> atype != void_type || res -> nrderefs != 0 || - isReference(res) || isConstArg(res)) - fatal("%s slots must return void\n",od -> common -> pyname -> text); - - /* These slots must return long. */ - if (isLongReturnSlot(od->common)) - if (res->atype != long_type || res->nrderefs != 0 || - isReference(res) || isConstArg(res)) - fatal("%s slots must return long\n", od->common->pyname->text); -} - - -/* - * Resolve the types of a Python signature. - */ -static void resolvePySigTypes(sipSpec *pt, moduleDef *mod, classDef *scope, - overDef *od, signatureDef *pysig, int issignal) -{ - int a; - argDef *res = &pysig -> result; - - if (res -> atype != void_type || res -> nrderefs != 0) - { - if (issignal) - { - if (scope != NULL) - { - fatalScopedName(classFQCName(scope)); - fatal("::"); - } - - fatal("%s() signals must return void\n",od -> cppname); - } - - getBaseType(pt, mod, scope, res); - - /* Results must be simple. */ - if (!supportedType(scope,od,res,FALSE) && (od -> cppsig == &od -> pysig || od -> methodcode == NULL)) - { - if (scope != NULL) - { - fatalScopedName(classFQCName(scope)); - fatal("::"); - } - - fatal("%s() unsupported function return type - provide %%MethodCode and a %s signature\n",od -> cppname,(pt -> genc ? "C" : "C++")); - } - } - - for (a = 0; a < pysig -> nrArgs; ++a) - { - argDef *ad = &pysig -> args[a]; - - getBaseType(pt, mod, scope, ad); - - if (ad -> atype == slotcon_type) - resolvePySigTypes(pt, mod, scope, od, ad->u.sa, TRUE); - - /* - * Note signal arguments are restricted in their types because we don't - * (yet) support handwritten code for them. - */ - if (issignal) - { - if (!supportedType(scope,od,ad,FALSE)) - { - if (scope != NULL) - { - fatalScopedName(classFQCName(scope)); - fatal("::"); - } - - fatal("%s() unsupported signal argument type\n"); - } - } - else if (!supportedType(scope,od,ad,TRUE) && (od -> cppsig == &od -> pysig || od -> methodcode == NULL || (isVirtual(od) && od -> virthandler -> virtcode == NULL))) - { - if (scope != NULL) - { - fatalScopedName(classFQCName(scope)); - fatal("::"); - } - - if (isVirtual(od)) - fatal("%s() unsupported function argument type - provide %%Method code, a valid %%VirtualCatcherCode and a valid C++ signature\n",od -> cppname); - - fatal("%s() unsupported function argument type - provide %%Method code and a valid %s signature\n",od -> cppname,(pt -> genc ? "C" : "C++")); - } - - if (scope != NULL) - scopeDefaultValue(pt,scope,ad); - } -} - - -/* - * Resolve the type of a variable. - */ -static void resolveVariableType(sipSpec *pt,varDef *vd) -{ - int bad = TRUE; - argDef *vtype = &vd -> type; - - getBaseType(pt, vd->module, vd->ecd, vtype); - - switch (vtype -> atype) - { - case mapped_type: - case class_type: - /* Class, Class & and Class * are supported. */ - - if (vtype -> nrderefs <= 1) - bad = FALSE; - break; - - case sstring_type: - case ustring_type: - case string_type: - case wstring_type: - /* - * (signed/unsigned) char, (signed/unsigned) char *, wchar_t, wchar_t * - * are supported. - */ - - if (!isReference(vtype) && vtype -> nrderefs <= 1) - bad = FALSE; - break; - - case cfloat_type: - case float_type: - case cdouble_type: - case double_type: - case enum_type: - case bool_type: - case cbool_type: - case ushort_type: - case short_type: - case uint_type: - case cint_type: - case int_type: - case ulong_type: - case long_type: - case ulonglong_type: - case longlong_type: - case pyobject_type: - case pytuple_type: - case pylist_type: - case pydict_type: - case pycallable_type: - case pyslice_type: - case pytype_type: - /* These are supported without pointers or references. */ - - if (!isReference(vtype) && vtype -> nrderefs == 0) - bad = FALSE; - break; - - case struct_type: - case void_type: - /* A simple pointer is supported. */ - - if (!isReference(vtype) && vtype -> nrderefs == 1) - bad = FALSE; - break; - } - - if (bad) - { - fatalScopedName(vd -> fqcname); - fatal(" has an unsupported type\n"); - } - - if (vtype -> atype != class_type && vd -> accessfunc != NULL) - { - fatalScopedName(vd -> fqcname); - fatal(" has %%AccessCode but isn't a class instance\n"); - } - - if (vd -> ecd != NULL) - ifaceFileIsUsed(pt, vd->ecd->iff, vtype); - else - ifaceFileIsUsed(pt, NULL, vtype); - - /* - * Instance variables or static class variables (unless they are - * constants) need a handler. - */ - if (vd -> ecd != NULL && vd -> accessfunc == NULL && - (!isStaticVar(vd) || vtype -> nrderefs != 0 || !isConstArg(vtype))) - { - setNeedsHandler(vd); - setHasVarHandlers(vd -> ecd); - } -} - - -/* - * See if a type is supported by the generated code. - */ -static int supportedType(classDef *cd,overDef *od,argDef *ad,int outputs) -{ - switch (ad -> atype) - { - case anyslot_type: - /* - * This must be an input, and must also have handwritten code. - */ - - ensureInput(cd,od,ad); - return FALSE; - - case signal_type: - case slot_type: - case rxcon_type: - case rxdis_type: - case slotcon_type: - case slotdis_type: - case qobject_type: - case ellipsis_type: - /* These can only appear in argument lists without * or &. */ - - ensureInput(cd,od,ad); - return TRUE; - - case sstring_type: - case ustring_type: - case string_type: - case wstring_type: - if (isReference(ad)) - { - if (outputs && ad -> nrderefs <= 1) - { - defaultOutput(cd,od,ad); - return TRUE; - } - } - else if (ad -> nrderefs == 0) - { - ensureInput(cd,od,ad); - return TRUE; - } - else if (ad -> nrderefs == 1) - { - if (outputs) - defaultInput(ad); - else - ensureInput(cd,od,ad); - - return TRUE; - } - else if (ad -> nrderefs == 2 && outputs) - { - defaultOutput(cd,od,ad); - return TRUE; - } - - break; - - case cfloat_type: - case float_type: - case cdouble_type: - case double_type: - case enum_type: - case bool_type: - case cbool_type: - case ushort_type: - case short_type: - case uint_type: - case cint_type: - case int_type: - case ulong_type: - case long_type: - case ulonglong_type: - case longlong_type: - case pyobject_type: - case pytuple_type: - case pylist_type: - case pydict_type: - case pycallable_type: - case pyslice_type: - case pytype_type: - if (isReference(ad)) - { - if (ad -> nrderefs == 0 && outputs) - { - defaultOutput(cd,od,ad); - return TRUE; - } - } - else if (ad -> nrderefs == 0) - { - ensureInput(cd,od,ad); - return TRUE; - } - else if (ad -> nrderefs == 1 && outputs) - { - defaultOutput(cd,od,ad); - return TRUE; - } - - break; - - case mapped_type: - case class_type: - if (isReference(ad)) - { - if (ad -> nrderefs == 0) - { - defaultInput(ad); - return TRUE; - } - else if (ad -> nrderefs == 1 && outputs) - { - defaultOutput(cd,od,ad); - return TRUE; - } - } - else if (ad -> nrderefs == 0) - { - ensureInput(cd,od,ad); - return TRUE; - } - else if (ad -> nrderefs == 1) - { - if (outputs) - defaultInput(ad); - else - ensureInput(cd,od,ad); - - return TRUE; - } - else if (ad -> nrderefs == 2 && outputs) - { - defaultOutput(cd,od,ad); - return TRUE; - } - - break; - - case struct_type: - case void_type: - if (isReference(ad)) - { - if (ad -> nrderefs == 1 && outputs) - { - defaultOutput(cd,od,ad); - return TRUE; - } - } - else if (ad -> nrderefs == 1) - { - ensureInput(cd,od,ad); - return TRUE; - } - else if (ad -> nrderefs == 2 && outputs) - { - defaultOutput(cd,od,ad); - return TRUE; - } - - break; - } - - /* Unsupported if we got this far. */ - return FALSE; -} - - -/* - * Ensure the direction of an argument is an input. - */ -static void ensureInput(classDef *cd,overDef *od,argDef *ad) -{ - if (isOutArg(ad)) - { - if (cd != NULL) - { - fatalScopedName(classFQCName(cd)); - fatal("::"); - } - - if (od != NULL) - fatal("%s",od -> cppname); - - fatal("() invalid argument type for /Out/\n"); - } - - setIsInArg(ad); -} - - -/* - * Default the direction of an argument to an input. - */ -static void defaultInput(argDef *ad) -{ - if (!isInArg(ad) && !isOutArg(ad)) - setIsInArg(ad); -} - - -/* - * Default the direction of an argument to an output unless the argument is - * const. - */ -static void defaultOutput(classDef *cd,overDef *od,argDef *ad) -{ - if (isOutArg(ad)) - { - if (isConstArg(ad)) - { - if (cd != NULL) - { - fatalScopedName(classFQCName(cd)); - fatal("::"); - } - - if (od != NULL) - fatal("%s",od -> cppname); - - fatal("() const argument cannot have /Out/ specified\n"); - } - } - else if (!isInArg(ad)) - if (isConstArg(ad)) - setIsInArg(ad); - else - setIsOutArg(ad); -} - - -/* - * Put a scoped name to stderr. - */ -void fatalScopedName(scopedNameDef *snd) -{ - while (snd != NULL) - { - fatal("%s",snd -> name); - - snd = snd -> next; - - if (snd != NULL) - fatal("::"); - } -} - - -/* - * Compare two overloads and return TRUE if they are the same. - */ -static int sameOverload(overDef *od1,overDef *od2) -{ - /* They must both be const, or both not. */ - if (isConst(od1) != isConst(od2)) - return FALSE; - - return sameSignature(&od1 -> pysig,&od2 -> pysig,TRUE); -} - - -/* - * Compare two virtual handlers and return TRUE if they are the same. - */ -static int sameVirtualHandler(virtHandlerDef *vhd1,virtHandlerDef *vhd2) -{ - if (isTransferVH(vhd1) != isTransferVH(vhd2)) - return FALSE; - - if (!sameArgType(&vhd1->pysig->result, &vhd2->pysig->result, TRUE)) - return FALSE; - - if (!sameSignature(vhd1->pysig, vhd2->pysig, TRUE)) - return FALSE; - - if (vhd1->pysig == vhd1->cppsig && vhd2->pysig == vhd2->cppsig) - return TRUE; - - if (!sameArgType(&vhd1->cppsig->result, &vhd2->cppsig->result, TRUE)) - return FALSE; - - return sameSignature(vhd1->cppsig, vhd2->cppsig, TRUE); -} - - -/* - * Compare two signatures and return TRUE if they are the same. - */ -int sameSignature(signatureDef *sd1,signatureDef *sd2,int strict) -{ - int a; - - if (strict) - { - /* The number of arguments must be the same. */ - if (sd1 -> nrArgs != sd2 -> nrArgs) - return FALSE; - } - else - { - int na1, na2; - - /* We only count the compulsory arguments. */ - na1 = 0; - - for (a = 0; a < sd1 -> nrArgs; ++a) - { - if (sd1 -> args[a].defval != NULL) - break; - - ++na1; - } - - na2 = 0; - - for (a = 0; a < sd2 -> nrArgs; ++a) - { - if (sd2 -> args[a].defval != NULL) - break; - - ++na2; - } - - if (na1 != na2) - return FALSE; - } - - /* The arguments must be the same. */ - for (a = 0; a < sd1 -> nrArgs; ++a) - { - if (!strict && sd1 -> args[a].defval != NULL) - break; - - if (!sameArgType(&sd1 -> args[a],&sd2 -> args[a],strict)) - return FALSE; - } - - /* Must be the same if we've got this far. */ - return TRUE; -} - - -#define pyAsString(t) ((t) == ustring_type || (t) == sstring_type || \ - (t) == string_type) -#define pyAsFloat(t) ((t) == cfloat_type || (t) == float_type || \ - (t) == cdouble_type || (t) == double_type) -#define pyAsInt(t) ((t) == cint_type || (t) == bool_type || \ - (t) == short_type || (t) == ushort_type || \ - (t) == int_type || (t) == uint_type) -#define pyAsLong(t) ((t) == long_type || (t) == longlong_type) -#define pyAsULong(t) ((t) == ulong_type || (t) == ulonglong_type) -#define pyAsAuto(t) ((t) == bool_type || \ - (t) == short_type || (t) == ushort_type || \ - (t) == int_type || (t) == uint_type || \ - (t) == float_type || (t) == double_type) - -/* - * Compare two argument types and return TRUE if they are the same. "strict" - * means as C++ would see it, rather than Python. - */ -static int sameArgType(argDef *a1, argDef *a2, int strict) -{ - /* The references must be the same. */ - if (isReference(a1) != isReference(a2) || a1->nrderefs != a2->nrderefs) - return FALSE; - - if (strict) - { - /* The const should be the same. */ - if (isConstArg(a1) != isConstArg(a2)) - return FALSE; - - return sameBaseType(a1,a2); - } - - /* Python will see all these as strings. */ - if (pyAsString(a1->atype) && pyAsString(a2->atype)) - return TRUE; - - /* Python will see all these as floats. */ - if (pyAsFloat(a1->atype) && pyAsFloat(a2->atype)) - return TRUE; - - /* Python will see all these as ints. */ - if (pyAsInt(a1->atype) && pyAsInt(a2->atype)) - return TRUE; - - /* Python will see all these as longs. */ - if (pyAsLong(a1->atype) && pyAsLong(a2->atype)) - return TRUE; - - /* Python will see all these as unsigned longs. */ - if (pyAsULong(a1->atype) && pyAsULong(a2->atype)) - return TRUE; - - /* Python will automatically convert between these. */ - if (pyAsAuto(a1->atype) && pyAsAuto(a2->atype)) - return TRUE; - - /* All the special cases have been handled. */ - return sameBaseType(a1, a2); -} - - -/* - * Compare two basic types and return TRUE if they are the same. - */ - -int sameBaseType(argDef *a1,argDef *a2) -{ - /* The types must be the same. */ - - if (a1 -> atype != a2 ->atype) - return FALSE; - - switch (a1 -> atype) - { - case class_type: - if (a1 -> u.cd != a2 -> u.cd) - return FALSE; - - break; - - case enum_type: - if (a1 -> u.ed != a2 -> u.ed) - return FALSE; - - break; - - case slotcon_type: - case slotdis_type: - if (!sameSignature(a1 -> u.sa,a2 -> u.sa,TRUE)) - return FALSE; - - break; - - case template_type: - { - int a; - templateDef *td1, *td2; - - td1 = a1 -> u.td; - td2 = a2 -> u.td; - - if (!sameScopedName(td1 -> fqname,td2 -> fqname) != 0 || - td1 -> types.nrArgs != td2 -> types.nrArgs) - return FALSE; - - for (a = 0; a < td1 -> types.nrArgs; ++a) - if (!sameBaseType(&td1 -> types.args[a],&td2 -> types.args[a])) - return FALSE; - - break; - } - - case struct_type: - if (!sameScopedName(a1 -> u.sname,a2 -> u.sname) != 0) - return FALSE; - - break; - - case defined_type: - if (!sameScopedName(a1 -> u.snd,a2 -> u.snd)) - return FALSE; - - break; - - case mapped_type: - if (a1 -> u.mtd != a2 -> u.mtd) - return FALSE; - - break; - } - - /* Must be the same if we've got this far. */ - - return TRUE; -} - - -/* - * See if two Python signatures are the same as far as Python is concerned. - */ -static int samePythonSignature(signatureDef *sd1, signatureDef *sd2) -{ - int a1, a2; - - a1 = a2 = -1; - - for (;;) - { - a1 = nextSignificantArg(sd1, a1); - a2 = nextSignificantArg(sd2, a2); - - if (a1 < 0 || a2 < 0) - break; - - if (!sameArgType(&sd1->args[a1], &sd2->args[a2], FALSE)) - return FALSE; - } - - return (a1 < 0 && a2 < 0); - -} - - -/* - * Return the next significant argument from a Python signature (ie. one that - * is not optional or an output only argument. Return -1 if there isn't one. - */ -static int nextSignificantArg(signatureDef *sd, int a) -{ - while (++a < sd->nrArgs) - { - if (sd->args[a].defval != NULL) - break; - - if (isInArg(&sd->args[a])) - return a; - } - - return -1; -} - - -/* - * Return TRUE if two scoped names are the same. - */ - -int sameScopedName(scopedNameDef *snd1,scopedNameDef *snd2) -{ - while (snd1 != NULL && snd2 != NULL && strcmp(snd1 -> name,snd2 -> name) == 0) - { - snd1 = snd1 -> next; - snd2 = snd2 -> next; - } - - return (snd1 == NULL && snd2 == NULL); -} - - -/* - * Add an explicit scope to the default value of an argument if possible. - */ - -static void scopeDefaultValue(sipSpec *pt,classDef *cd,argDef *ad) -{ - valueDef *vd, **tailp, *newvd; - - /* - * We do a quick check to see if we need to do anything. This means - * we can limit the times we need to copy the default value. It needs - * to be copied because it will be shared by class versions that have - * been created on the fly and it may need to be scoped differently for - * each of those versions. - */ - - for (vd = ad -> defval; vd != NULL; vd = vd -> next) - if (vd -> vtype == scoped_value && vd -> u.vscp -> next == NULL) - break; - - if (vd == NULL) - return; - - /* - * It's not certain that we will do anything, but we assume we will and - * start copying. - */ - - newvd = NULL; - tailp = &newvd; - - for (vd = ad -> defval; vd != NULL; vd = vd -> next) - { - mroDef *mro; - scopedNameDef *origname; - valueDef *new; - - /* Make the copy. */ - - new = sipMalloc(sizeof (valueDef)); - - *new = *vd; - *tailp = new; - tailp = &new -> next; - - /* - * Skip this part of the expression if it isn't a named value - * or it already has a scope. - */ - - if (vd -> vtype != scoped_value || vd -> u.vscp -> next != NULL) - continue; - - /* - * Search the class hierarchy for an enum value with the same - * name. If we don't find one, leave it as it is (the compiler - * will find out if this is a problem). - */ - - origname = vd -> u.vscp; - - for (mro = cd -> mro; mro != NULL; mro = mro -> next) - { - enumDef *ed; - - if (isDuplicateSuper(mro)) - continue; - - for (ed = pt -> enums; ed != NULL; ed = ed -> next) - { - enumMemberDef *emd; - - if (ed -> ecd != mro -> cd) - continue; - - for (emd = ed -> members; emd != NULL; emd = emd -> next) - if (strcmp(emd -> cname,origname -> name) == 0) - { - scopedNameDef *snd; - - /* - * Take the scope from the - * class that the enum was - * defined in. - */ - - snd = copyScopedName(mro -> cd -> iff -> fqcname); - appendScopedName(&snd,origname); - - new -> u.vscp = snd; - - /* Nothing more to do. */ - - break; - } - - if (emd != NULL) - break; - } - - if (ed != NULL) - break; - } - } - - ad -> defval = newvd; -} - - -/* - * Make sure a type is a base type. - */ -static void getBaseType(sipSpec *pt, moduleDef *mod, classDef *defscope, argDef *type) -{ - /* Loop until we've got to a base type. */ - while (type -> atype == defined_type) - { - scopedNameDef *snd = type -> u.snd; - - type -> atype = no_type; - - if (defscope != NULL) - searchScope(pt,defscope,snd,type); - - if (type -> atype == no_type) - searchMappedTypes(pt,snd,type); - - if (type -> atype == no_type) - searchTypedefs(pt,snd,type); - - if (type -> atype == no_type) - searchEnums(pt,snd,type); - - if (type -> atype == no_type) - searchClasses(pt, mod, snd, type); - - if (type -> atype == no_type) - fatalNoDefinedType(snd); - } - - /* Get the base type of any slot arguments. */ - if (type -> atype == slotcon_type || type -> atype == slotdis_type) - { - int sa; - - for (sa = 0; sa < type -> u.sa -> nrArgs; ++sa) - getBaseType(pt, mod, defscope, &type->u.sa->args[sa]); - } - - /* See if the type refers to an instantiated template. */ - if (type->atype == template_type) - { - classDef *cd; - - for (cd = pt->classes; cd != NULL; cd = cd->next) - if (cd->td != NULL && - sameScopedName(cd->td->fqname, type->u.td->fqname) && - sameSignature(&cd->td->types, &type->u.td->types, TRUE)) - { - type->atype = class_type; - type->u.cd = cd; - - break; - } - } - - /* Replace the base type if it has been mapped. */ - if (type -> atype == struct_type || type -> atype == template_type) - { - searchMappedTypes(pt,NULL,type); - - /* - * If we still have a template then see if we need to - * automatically instantiate it. - */ - if (type->atype == template_type) - { - mappedTypeTmplDef *mtt; - - for (mtt = pt->mappedtypetemplates; mtt != NULL; mtt = mtt->next) - if (sameScopedName(type->u.td->fqname, mtt->mt->type.u.td->fqname) && sameTemplateSignature(&type->u.td->types, &mtt->mt->type.u.td->types, TRUE)) - { - type->u.mtd = instantiateMappedTypeTemplate(pt, mod, mtt, type); - type->atype = mapped_type; - - break; - } - } - } -} - - -/* - * Instantiate a mapped type template and return it. - */ -static mappedTypeDef *instantiateMappedTypeTemplate(sipSpec *pt, moduleDef *mod, mappedTypeTmplDef *mtt, argDef *type) -{ - scopedNameDef *type_names, *type_values; - mappedTypeDef *mtd; - - type_names = type_values = NULL; - appendTypeStrings(type->u.td->fqname, &mtt->mt->type.u.td->types, &type->u.td->types, &mtt->sig, &type_names, &type_values); - - mtd = allocMappedType(type); - - mtd->iff = findIfaceFile(pt, mod, type->u.td->fqname, mappedtype_iface, type); - mtd->iff->module = mod; - - mtd->hdrcode = templateCode(pt, &mtd->iff->used, mtt->mt->hdrcode, type_names, type_values); - mtd->convfromcode = templateCode(pt, &mtd->iff->used, mtt->mt->convfromcode, type_names, type_values); - mtd->convtocode = templateCode(pt, &mtd->iff->used, mtt->mt->convtocode, type_names, type_values); - - mtd->next = pt->mappedtypes; - pt->mappedtypes = mtd; - - if (type_names != NULL) - freeScopedName(type_names); - - if (type_values != NULL) - freeScopedName(type_values); - - return mtd; -} - - -/* - * Search for a name in a scope and return the corresponding type. - */ - -static void searchScope(sipSpec *pt,classDef *scope,scopedNameDef *snd, - argDef *ad) -{ - scopedNameDef *tmpsnd = NULL; - mroDef *mro; - - for (mro = scope -> mro; mro != NULL; mro = mro -> next) - { - if (isDuplicateSuper(mro)) - continue; - - /* Append the name to the scope and see if it exists. */ - - tmpsnd = copyScopedName(classFQCName(mro -> cd)); - appendScopedName(&tmpsnd,copyScopedName(snd)); - - searchMappedTypes(pt,tmpsnd,ad); - - if (ad -> atype != no_type) - break; - - searchTypedefs(pt,tmpsnd,ad); - - if (ad -> atype != no_type) - break; - - searchEnums(pt,tmpsnd,ad); - - if (ad -> atype != no_type) - break; - - searchClasses(pt, mro->cd->iff->module, tmpsnd, ad); - - if (ad -> atype != no_type) - break; - - freeScopedName(tmpsnd); - tmpsnd = NULL; - } - - if (tmpsnd != NULL) - freeScopedName(tmpsnd); -} - - -/* - * Search the mapped types for a name and return the type. - */ - -static void searchMappedTypes(sipSpec *pt,scopedNameDef *snd,argDef *ad) -{ - mappedTypeDef *mtd; - scopedNameDef *oname; - - /* Patch back to defined types so we can use sameBaseType(). */ - if (snd != NULL) - { - oname = ad -> u.snd; - ad -> u.snd = snd; - ad -> atype = defined_type; - } - - for (mtd = pt -> mappedtypes; mtd != NULL; mtd = mtd -> next) - if (sameBaseType(ad,&mtd -> type)) - { - /* Copy the type. */ - ad -> atype = mapped_type; - ad -> u.mtd = mtd; - - return; - } - - /* Restore because we didn't find anything. */ - if (snd != NULL) - { - ad -> u.snd = oname; - ad -> atype = no_type; - } -} - - -/* - * Search the typedefs for a name and return the type. - */ - -static void searchTypedefs(sipSpec *pt,scopedNameDef *snd,argDef *ad) -{ - typedefDef *td; - - for (td = pt -> typedefs; td != NULL; td = td -> next) - if (sameScopedName(td -> fqname,snd)) - { - /* Copy the type. */ - - ad -> atype = td -> type.atype; - ad -> argflags |= td -> type.argflags; - ad -> nrderefs += td -> type.nrderefs; - ad -> u = td -> type.u; - - break; - } -} - - -/* - * Search the enums for a name and return the type. - */ - -static void searchEnums(sipSpec *pt,scopedNameDef *snd,argDef *ad) -{ - enumDef *ed; - - for (ed = pt -> enums; ed != NULL; ed = ed -> next) - { - if (ed -> fqcname == NULL) - continue; - - if (sameScopedName(ed -> fqcname,snd)) - { - ad -> atype = enum_type; - ad -> u.ed = ed; - - break; - } - } -} - - -/* - * Search the classes for one with a particular name and return it as a type. - */ -static void searchClasses(sipSpec *pt, moduleDef *mod, scopedNameDef *cname, argDef *ad) -{ - classDef *cd; - - for (cd = pt -> classes; cd != NULL; cd = cd -> next) - { - /* - * Ignore an external class unless it was declared in the same - * context (ie. module) as the name is being used. - */ - if (isExternal(cd) && cd->iff->module != mod) - continue; - - if (sameScopedName(classFQCName(cd), cname)) - { - ad -> atype = class_type; - ad -> u.cd = cd; - - break; - } - } -} - - -/* - * Print an error message describing an undefined type to stderr and terminate. - */ - -static void fatalNoDefinedType(scopedNameDef *snd) -{ - fatalScopedName(snd); - fatal(" is undefined\n"); -} - - -/* - * Make sure all external interface files for all other functions of a module - * are used. - */ -static void ifaceFilesAreUsedFromOther(sipSpec *pt, signatureDef *sd) -{ - int a; - ifaceFileDef *iff; - - if ((iff = getIfaceFile(&sd->result)) != NULL && iff->module != pt->module) - addToUsedList(&pt->used, iff); - - for (a = 0; a < sd->nrArgs; ++a) - if ((iff = getIfaceFile(&sd->args[a])) != NULL && iff->module != pt->module) - addToUsedList(&pt->used, iff); -} - - -/* - * Make sure all interface files for all overloads of a method are used. - */ -static void ifaceFilesAreUsedByMethod(sipSpec *pt, classDef *cd, memberDef *md) -{ - overDef *od; - - for (od = cd -> overs; od != NULL; od = od -> next) - if (od -> common == md) - ifaceFilesAreUsed(pt, cd->iff, od); -} - - -/* - * Make sure all interface files for a signature are used. - */ -static void ifaceFilesAreUsed(sipSpec *pt, ifaceFileDef *iff, overDef *od) -{ - int a; - - ifaceFileIsUsed(pt, iff, &od->pysig.result); - - for (a = 0; a < od->pysig.nrArgs; ++a) - ifaceFileIsUsed(pt, iff, &od->pysig.args[a]); - - if (od->cppsig != &od->pysig) - { - ifaceFileIsUsed(pt, iff, &od->cppsig->result); - - for (a = 0; a < od->cppsig->nrArgs; ++a) - ifaceFileIsUsed(pt, iff, &od->cppsig->args[a]); - } -} - - -/* - * If a type has an interface file then add it to the appropriate list of used - * interface files so that the header file is #included in the generated code. - */ -static void ifaceFileIsUsed(sipSpec *pt, ifaceFileDef *iff, argDef *ad) -{ - ifaceFileDef *usediff; - - if ((usediff = getIfaceFile(ad)) != NULL && usediff != iff) - { - ifaceFileList *iffl, **used; - - used = (iff != NULL ? &iff->used : &pt->used); - - iffl = addToUsedList(used, usediff); - - /* - * If the type is a protected enum then its scoping shadow - * class is needed in the generated header file. - */ - if (ad->atype == enum_type && isProtectedEnum(ad->u.ed)) - iffl->header = TRUE; - } -} - - -/* - * Return the interface file for a type, or NULL if it doesn't have one. - */ -static ifaceFileDef *getIfaceFile(argDef *ad) -{ - ifaceFileDef *iff; - - switch (ad -> atype) - { - case class_type: - iff = ad -> u.cd -> iff; - break; - - case mapped_type: - iff = ad -> u.mtd -> iff; - break; - - case enum_type: - if (ad -> u.ed -> fqcname != NULL && ad -> u.ed -> ecd != NULL) - { - iff = ad -> u.ed -> ecd -> iff; - break; - } - - /* Drop through. */ - - default: - iff = NULL; - } - - return iff; -} - - -/* - * Position a class so that it is after all its super-classes. - */ -static void positionClass(classDef *cd) -{ - classList *cl; - - /* See if it has already been done. */ - if (cd -> node -> ordered) - return; - - for (cl = cd -> supers; cl != NULL; cl = cl -> next) - { - nodeDef **ndp, *nd1, *nd2, *rp; - - /* Ignore super-classes from different modules. */ - if (cl -> cd -> iff -> module != cd -> iff -> module) - continue; - - /* Make sure the super-class is positioned. */ - positionClass(cl -> cd); - - /* - * Find ancestors of the two that are siblings (ie. they have a - * common parent). - */ - rp = &cd -> iff -> module -> root; - - for (nd1 = cd -> node; nd1 != rp; nd1 = nd1 -> parent) - { - for (nd2 = cl -> cd -> node; nd2 != rp; nd2 = nd2 -> parent) - if (nd1 -> parent == nd2 -> parent) - break; - - if (nd2 != rp) - break; - } - - /* - * The first node must appear after the second in the common - * parent's list of children. - */ - for (ndp = &nd1 -> parent -> child; *ndp != NULL; ndp = &(*ndp) -> next) - { - nodeDef *nd = *ndp; - - if (nd == nd2) - break; - - if (nd == nd1) - { - /* Remove this one from the list. */ - *ndp = nd -> next; - - /* Find the super-class ancestor. */ - while (*ndp != nd2) - ndp = &(*ndp) -> next; - - /* - * Put this one back after the super-class - * ancestor. - */ - nd -> next = (*ndp) -> next; - (*ndp) -> next = nd; - - break; - } - } - } - - cd -> node -> ordered = TRUE; -} - - -/* - * Make sure a class is in the namespace tree. - */ -static void addNodeToParent(nodeDef *root,classDef *cd) -{ - nodeDef *nd, *parent; - - /* Skip classes already in the tree. */ - if (cd -> node != NULL) - return; - - /* Add this child to the parent. */ - nd = sipMalloc(sizeof (nodeDef)); - - nd -> ordered = FALSE; - nd -> cd = cd; - nd -> child = NULL; - - /* Get the address of the parent node. */ - if (cd -> ecd == NULL) - parent = root; - else - { - /* Make sure the parent is in the tree. */ - addNodeToParent(root,cd -> ecd); - - parent = cd -> ecd -> node; - } - - nd -> parent = parent; - - /* Insert this at the head of the parent's children. */ - nd -> next = parent -> child; - parent -> child = nd; - - /* Remember where we are in the tree. */ - cd -> node = nd; -} - - -/* - * Assign the module specific class number for a class and all it's children. - */ -static void assignClassNrs(sipSpec *pt,moduleDef *mod,nodeDef *nd) -{ - classDef *cd; - nodeDef *cnd; - - /* Assign the class if it's not the root. */ - if ((cd = nd -> cd) != NULL) - { - cd -> classnr = mod -> nrclasses++; - - /* - * If we find a class defined in the main module called TQObject, assume - * it's Qt. - */ - if (mod == pt -> module && strcmp(classBaseName(cd),"TQObject") == 0) - pt -> qobjclass = cd -> classnr; - } - - /* Assign all it's children. */ - for (cnd = nd -> child; cnd != NULL; cnd = cnd -> next) - assignClassNrs(pt,mod,cnd); -} - - -/* - * Assign the module specific enum number for all named enums. - */ -static void assignEnumNrs(sipSpec *pt) -{ - enumDef *ed; - - for (ed = pt -> enums; ed != NULL; ed = ed -> next) - if (ed -> fqcname != NULL) - ed -> enumnr = ed -> module -> nrenums++; -} diff --git a/python/sip/siplib/bool.cpp b/python/sip/siplib/bool.cpp deleted file mode 100644 index c21a0c79..00000000 --- a/python/sip/siplib/bool.cpp +++ /dev/null @@ -1,19 +0,0 @@ -// This contains all the C++ code that is needed by the sip module. -// -// Copyright (c) 2007 -// Riverbank Computing Limited -// -// This file is part of SIP. -// -// This copy of SIP is licensed for use under the terms of the SIP License -// Agreement. See the file LICENSE for more details. -// -// SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - - -// Set a C++ bool for the main C implementation of the module. -extern "C" void sipSetBool(void *ptr, int val) -{ - *reinterpret_cast(ptr) = val; -} diff --git a/python/sip/siplib/objmap.c b/python/sip/siplib/objmap.c deleted file mode 100644 index efc7bc2a..00000000 --- a/python/sip/siplib/objmap.c +++ /dev/null @@ -1,264 +0,0 @@ -/* - * This module implements a hash table class for mapping C/C++ addresses to the - * corresponding wrapped Python object. - * - * Copyright (c) 2007 - * Riverbank Computing Limited - * - * This file is part of SIP. - * - * This copy of SIP is licensed for use under the terms of the SIP License - * Agreement. See the file LICENSE for more details. - * - * SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ - - -#include - -#include "sip.h" -#include "sipint.h" - - -#define hash_1(k,s) (((unsigned long)(k)) % (s)) -#define hash_2(k,s) ((s) - 2 - (hash_1((k),(s)) % ((s) - 2))) - - -/* Prime numbers to use as hash table sizes. */ -static unsigned long hash_primes[] = { - 521, 1031, 2053, 4099, - 8209, 16411, 32771, 65537, 131101, 262147, - 524309, 1048583, 2097169, 4194319, 8388617, 16777259, - 33554467, 67108879, 134217757, 268435459, 536870923, 1073741827, - 2147483659U,0 -}; - - -static sipHashEntry *newHashTable(unsigned long); -static sipHashEntry *findHashEntry(sipObjectMap *,void *); -static void reorganiseMap(sipObjectMap *om); - - -/* - * Initialise an object map. - */ -void sipOMInit(sipObjectMap *om) -{ - om -> primeIdx = 0; - om -> unused = om -> size = hash_primes[om -> primeIdx]; - om -> stale = 0; - om -> hash_array = newHashTable(om -> size); -} - - -/* - * Finalise an object map. - */ -void sipOMFinalise(sipObjectMap *om) -{ - sip_api_free(om -> hash_array); -} - - -/* - * Allocate and initialise a new hash table. - */ -static sipHashEntry *newHashTable(unsigned long size) -{ - size_t nbytes; - sipHashEntry *hashtab; - - nbytes = sizeof (sipHashEntry) * size; - - if ((hashtab = (sipHashEntry *)sip_api_malloc(nbytes)) != NULL) - memset(hashtab,0,nbytes); - - return hashtab; -} - - -/* - * Return a pointer to the hash entry that is used, or should be used, for the - * given C/C++ address. - */ -static sipHashEntry *findHashEntry(sipObjectMap *om,void *key) -{ - unsigned long hash, inc; - void *hek; - - hash = hash_1(key,om -> size); - inc = hash_2(key,om -> size); - - while ((hek = om -> hash_array[hash].key) != NULL && hek != key) - hash = (hash + inc) % om -> size; - - return &om -> hash_array[hash]; -} - - -/* - * Return the wrapped Python object of a specific type for a C/C++ address or - * NULL if it wasn't found. - */ -sipWrapper *sipOMFindObject(sipObjectMap *om,void *key, sipWrapperType *type) -{ - sipHashEntry *he = findHashEntry(om, key); - sipWrapper *w; - - /* Go through each wrapped object at this address. */ - for (w = he->first; w != NULL; w = w->next) - { - /* - * If this wrapped object is of the given type, or a sub-type - * of it, or vice versa, then we assume it is the same C++ - * object. - */ - if (PyObject_TypeCheck(w, (PyTypeObject *)type) || - PyType_IsSubtype((PyTypeObject *)type, w->ob_type)) - return w; - } - - return NULL; -} - - -/* - * Add a C/C++ address and the corresponding wrapped Python object to the map. - */ -void sipOMAddObject(sipObjectMap *om,sipWrapper *val) -{ - sipHashEntry *he = findHashEntry(om,val -> u.cppPtr); - - /* - * If the bucket is in use then we appear to have several objects at - * the same address. - */ - if (he -> first != NULL) - { - /* - * This can happen for three reasons. A variable of one class - * can be declared at the start of another class. Therefore - * there are two objects, of different classes, with the same - * address. The second reason is that the old C/C++ object has - * been deleted by C/C++ but we didn't get to find out for some - * reason, and a new C/C++ instance has been created at the - * same address. The third reason is if we are in the process - * of deleting a Python object but the C++ object gets wrapped - * again because the C++ dtor called a method that has been - * re-implemented in Python. The absence of the SIP_SHARE_MAP - * flag tells us that a new C++ instance has just been created - * and so we know the second reason is the correct one so we - * mark the old pointers as invalid and reuse the entry. - * Otherwise we just add this one to the existing list of - * objects at this address. - */ - if (!(val -> flags & SIP_SHARE_MAP)) - { - sipWrapper *w; - - for (w = he -> first; w != NULL; w = w -> next) - w -> u.cppPtr = NULL; - - he -> first = NULL; - } - - val -> next = he -> first; - he -> first = val; - - return; - } - - /* See if the bucket was unused or stale. */ - if (he -> key == NULL) - { - he -> key = val -> u.cppPtr; - om -> unused--; - } - else - om -> stale--; - - /* Add the rest of the new value. */ - he -> first = val; - val -> next = NULL; - - reorganiseMap(om); -} - - -/* - * Reorganise a map if it is running short of space. - */ -static void reorganiseMap(sipObjectMap *om) -{ - unsigned long old_size, i; - sipHashEntry *ohe, *old_tab; - - /* Don't bother if it still has more than 12% available. */ - if (om -> unused > om -> size >> 3) - return; - - /* - * If reorganising (ie. making the stale buckets unused) using the same - * sized table would make 25% available then do that. Otherwise use a - * bigger table (if possible). - */ - if (om -> unused + om -> stale < om -> size >> 2 && hash_primes[om -> primeIdx + 1] != 0) - om -> primeIdx++; - - old_size = om -> size; - old_tab = om -> hash_array; - - om -> unused = om -> size = hash_primes[om -> primeIdx]; - om -> stale = 0; - om -> hash_array = newHashTable(om -> size); - - /* Transfer the entries from the old table to the new one. */ - ohe = old_tab; - - for (i = 0; i < old_size; ++i) - { - if (ohe -> key != NULL && ohe -> first != NULL) - { - *findHashEntry(om,ohe -> key) = *ohe; - om -> unused--; - } - - ++ohe; - } - - sip_api_free(old_tab); -} - - -/* - * Remove a C/C++ object from the table. Return 0 if it was removed - * successfully. - */ -int sipOMRemoveObject(sipObjectMap *om,sipWrapper *val) -{ - sipHashEntry *he = findHashEntry(om,val -> u.cppPtr); - sipWrapper **wp; - - for (wp = &he -> first; *wp != NULL; wp = &(*wp) -> next) - if (*wp == val) - { - *wp = val -> next; - - /* - * If the bucket is now empty then count it as stale. - * Note that we do not NULL the key and count it as - * unused because that might throw out the search for - * another entry that wanted to go here, found it - * already occupied, and was put somewhere else. In - * other words, searches must be repeatable until we - * reorganise the table. - */ - if (he -> first == NULL) - om -> stale++; - - return 0; - } - - return -1; -} diff --git a/python/sip/siplib/qtlib.c b/python/sip/siplib/qtlib.c deleted file mode 100644 index f3ba4301..00000000 --- a/python/sip/siplib/qtlib.c +++ /dev/null @@ -1,1254 +0,0 @@ -/* - * The SIP library code that implements the interface to the optional module - * supplied Qt support. - * - * Copyright (c) 2007 - * Riverbank Computing Limited - * - * This file is part of SIP. - * - * This copy of SIP is licensed for use under the terms of the SIP License - * Agreement. See the file LICENSE for more details. - * - * SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ - - -#include -#include - -#include "sip.h" -#include "sipint.h" - - -/* This is how Qt "types" signals and slots. */ -#define isQtSlot(s) (*(s) == '1') -#define isQtSignal(s) (*(s) == '2') - - -static PyObject *py_sender = NULL; /* The last Python signal sender. */ - - -static int isSameSlot(sipSlot *,PyObject *,const char *); -static int emitQtSig(sipWrapper *,const char *,PyObject *); -static int emitToSlotList(sipSlotList *rxlist, PyObject *sigargs); -static int addSlotToPySigList(sipWrapper *,const char *,PyObject *,const char *); -static void removeSlotFromPySigList(sipWrapper *,const char *,PyObject *,const char *); -static PyObject *getWeakRef(PyObject *obj); -static sipPySig *findPySignal(sipWrapper *,const char *); -static char *sipStrdup(const char *); -static int saveSlot(sipSlot *sp, PyObject *rxObj, const char *slot); -static void *createUniversalSlot(sipWrapper *txSelf, const char *sig, PyObject *rxObj, const char *slot, const char **member); -static void *findSignal(void *txrx, const char **sig); -static void *newSignal(void *txrx, const char **sig); -static void freeSlot(sipSlot *slot); - - -/* - * Return the most recent signal sender. - */ -PyObject *sip_api_get_sender() -{ - PyObject *sender; - const void *qt_sender; - - /* - * If there is a Qt sender then it is more recent than the last Python - * sender, so use it instead. - */ - if ((qt_sender = sipQtSupport->qt_get_sender()) != NULL) - sender = sip_api_convert_from_instance((void *)qt_sender, sipQObjectClass, NULL); - else - { - if ((sender = py_sender) == NULL) - sender = Py_None; - - Py_INCREF(sender); - } - - return sender; -} - - -/* - * Release the resources held by a connection. - */ -void sip_api_free_connection(sipSlotConnection *conn) -{ - freeSlot(&conn->sc_slot); -} - - -/* - * Compare two connections and return TRUE if they are the same. - */ -int sip_api_same_connection(sipSlotConnection *conn, void *tx, const char *sig, - PyObject *rxObj, const char *slot) -{ - return (conn->sc_transmitter == tx && - sipQtSupport->qt_same_name(conn->sc_signature->sg_signature, sig) && - isSameSlot(&conn->sc_slot, rxObj, slot)); -} - - -/* - * Parse the signal arguments for a connection. - */ -sipSignature *sip_api_parse_signature(const char *sig) -{ - static sipSignature *psig_list = NULL; - sipSignature *psig; - const char *sp, *ep; - - /* - * First see if it has already been parsed. Note that both sides of a - * connection will probably be parsed twice because the function names will - * be different even though the signatures will probably be the same. We - * could be more clever, the most saving is when repeatedly emitting a - * signal for which this is sufficient. - */ - for (psig = psig_list; psig != NULL; psig = psig->sg_next) - if (sipQtSupport->qt_same_name(psig->sg_signature, sig)) - return psig; - - /* Create a new one including space for the copy of the signature. */ - if ((psig = (sipSignature *)sip_api_malloc(sizeof (sipSignature) + strlen(sig) + 1)) == NULL) - return NULL; - - psig->sg_signature = (char *)&psig[1]; - psig->sg_nrargs = 0; - psig->sg_args = 0; - - /* Find the start and end of the arguments. */ - sp = strchr(sig, '('); - ep = strrchr(sig, ')'); - - /* If the signal isn't well formed we assume Qt will pick it up. */ - if (sp && ep && sp < ep) - { - /* - * Copy the signature arguments while counting them and - * removing non-significant spaces. Each argument is left as a - * '\0' terminated string. - */ - char *dp = psig->sg_signature; - int depth = 0, nrcommas = 0, argstart = TRUE; - - for (;;) - { - char ch = *++sp; - - if (strchr(",*&)<>", ch)) - { - /* Backup over any previous trailing space. */ - if (dp > psig->sg_signature && dp[-1] == ' ') - --dp; - - if (sp == ep) - { - *dp = '\0'; - break; - } - - if (ch == ',' && depth == 0) - { - *dp++ = '\0'; - ++nrcommas; - argstart = TRUE; - } - else - { - *dp++ = ch; - - /* - * Make sure commas in template - * arguments are ignored. - */ - if (ch == '<') - ++depth; - else if (ch == '>') - --depth; - } - } - else if (ch == ' ') - { - /* Ignore leading and multiple spaces. */ - if (!argstart && dp[-1] != ' ') - *dp++ = ch; - } - else - { - *dp++ = ch; - argstart = FALSE; - } - } - - /* Handle the arguments now they are in a normal form. */ - if (*psig->sg_signature) - { - char *arg = psig->sg_signature; - int a; - - /* Allocate the space. */ - psig->sg_nrargs = nrcommas + 1; - - if ((psig->sg_args = (sipSigArg *)sip_api_malloc(sizeof (sipSigArg) * psig->sg_nrargs)) == NULL) - { - sip_api_free(psig); - return NULL; - } - - for (a = 0; a < psig->sg_nrargs; ++a) - { - size_t btlen = 0; - int unsup, isref = FALSE, indir = 0; - sipSigArgType sat = unknown_sat; - - /* Find the start of the significant part of the type. */ - dp = arg; - - if (strncmp(dp, "const ", 6) == 0) - dp += 6; - - /* - * Find the length of the base type, the number of indirections - * and if it is a reference. - */ - for (ep = dp; *ep; ++ep) - if (*ep == '&') - isref = TRUE; - else if (*ep == '*') - ++indir; - else - ++btlen; - - /* - * Assume that anything other than a base type is unsupported. - */ - unsup = (isref || indir); - - /* Parse the base type. */ - switch (btlen) - { - case 3: - if (strncmp(dp, "int", 3) == 0) - sat = int_sat; - break; - - case 4: - if (strncmp(dp, "bool", 4) == 0) - sat = bool_sat; - else if (strncmp(dp, "long", 4) == 0) - sat = long_sat; - else if (strncmp(dp, "char", 4) == 0) - { - sat = (indir ? string_sat : char_sat); - unsup = (isref || indir > 1); - } - else if (strncmp(dp, "void", 4) == 0) - { - sat = void_sat; - unsup = (isref || indir != 1); - } - break; - - case 5: - if (strncmp(dp, "float", 5) == 0) - sat = float_sat; - else if (strncmp(dp, "short", 5) == 0) - sat = short_sat; - break; - - case 6: - if (strncmp(dp, "double", 6) == 0) - sat = double_sat; - break; - - case 7: - if (strncmp(dp, "__int64", 7) == 0) - sat = longlong_sat; - else if (strncmp(dp, "wchar_t", 7) == 0) - { - sat = (indir ? wstring_sat : wchar_sat); - unsup = (isref || indir > 1); - } - break; - - case 8: - if (strncmp(dp, "unsigned", 8) == 0) - sat = uint_sat; - else if (strncmp(dp, "TQVariant", 8) == 0) - { - if (indir == 0) - { - sat = qvariant_sat; - unsup = FALSE; - } - else if (indir == 1) - { - sat = qvariantp_sat; - unsup = FALSE; - } - } - break; - - case 9: - if (strncmp(dp, "long long", 9) == 0) - sat = longlong_sat; - break; - - case 11: - if (strncmp(dp, "signed char", 11) == 0) - { - sat = (indir ? sstring_sat : schar_sat); - unsup = (isref || indir > 1); - } - break; - - case 12: - if (strncmp(dp, "unsigned int", 12) == 0) - sat = uint_sat; - break; - - case 13: - if (strncmp(dp, "unsigned long", 13) == 0) - sat = ulong_sat; - else if (strncmp(dp, "unsigned char", 13) == 0) - { - sat = (indir ? ustring_sat : uchar_sat); - unsup = (isref || indir > 1); - } - else if (strncmp(dp, "PyQt_PyObject", 13) == 0 && indir == 0) - { - sat = pyobject_sat; - unsup = FALSE; - } - break; - - case 14: - if (strncmp(dp, "unsigned short", 14) == 0) - sat = ushort_sat; - break; - - case 16: - if (strncmp(dp, "unsigned __int64", 16) == 0) - sat = ulonglong_sat; - break; - - case 18: - if (strncmp(dp, "unsigned long long", 18) == 0) - sat = ulonglong_sat; - break; - } - - if (sat == unknown_sat) - sipFindSigArgType(dp, btlen, &psig->sg_args[a], indir); - else - { - if (unsup) - sat = unknown_sat; - - psig->sg_args[a].atype = sat; - } - - /* Move to the start of the next argument. */ - arg += strlen(arg) + 1; - } - } - } - - /* Make a deep copy of the signal. */ - strcpy(psig->sg_signature, sig); - - /* Add it to the list so it can be re-used. */ - psig->sg_next = psig_list; - psig_list = psig; - - return psig; -} - - -/* - * Find an existing signal. - */ -static void *findSignal(void *txrx, const char **sig) -{ - sipSignature *psig; - - /* - * Handle the trivial case where the Qt implementation doesn't support - * universal signals. - */ - if (sipQtSupport->qt_is_qt_signal == NULL) - return txrx; - - /* See if this a shortcircuited Python signal. */ - if (strchr(*sig, '(') == NULL) - return sipQtSupport->qt_find_universal_signal_shortcut(txrx, *sig, sig); - - /* See if the existing object can be used itself. */ - if (sipQtSupport->qt_is_qt_signal(txrx, *sig)) - return txrx; - - if ((psig = sip_api_parse_signature(*sig)) == NULL) - return NULL; - - /* Find an ordinary universal signal. */ - return sipQtSupport->qt_find_universal_signal(txrx, psig); -} - - -/* - * Return a usable signal, creating a new universal signal if needed. - */ -static void *newSignal(void *txrx, const char **sig) -{ - sipSignature *psig; - - /* - * Handle the trivial case where the Qt implementation doesn't support - * universal signals. - */ - if (sipQtSupport->qt_is_qt_signal == NULL) - return txrx; - - /* See if this a shortcircuited Python signal. */ - if (strchr(*sig, '(') == NULL) - return sipQtSupport->qt_create_universal_signal_shortcut(txrx, *sig, sig); - - /* See if the existing object can be used itself. */ - if (sipQtSupport->qt_is_qt_signal(txrx, *sig)) - return txrx; - - if ((psig = sip_api_parse_signature(*sig)) == NULL) - return NULL; - - /* Create an ordinary universal signal. */ - return sipQtSupport->qt_create_universal_signal(txrx, psig); -} - - -/* - * Create a universal slot. Returns a pointer to it or 0 if there was an - * error. - */ -static void *createUniversalSlot(sipWrapper *txSelf, const char *sig, - PyObject *rxObj, const char *slot, - const char **member) -{ - sipSlotConnection conn; - void *us; - - /* Initialise the connection. */ - conn.sc_transmitter = (txSelf ? sipGetAddress(txSelf) : 0); - - /* Save the real slot. */ - if (saveSlot(&conn.sc_slot, rxObj, slot) < 0) - return 0; - - /* Parse the signature and create the universal slot. */ - if ((conn.sc_signature = sip_api_parse_signature(sig)) == NULL || (us = sipQtSupport->qt_create_universal_slot(txSelf, &conn, member)) == NULL) - { - sip_api_free_connection(&conn); - return 0; - } - - return us; -} - - -/* - * Emit a Python or Qt signal. - */ -int sip_api_emit_signal(PyObject *self,const char *sig,PyObject *sigargs) -{ - sipPySig *ps; - void *tx; - sipWrapper *w = (sipWrapper *)self; - - /* - * Don't do anything if signals are blocked. Qt signals would be blocked - * anyway, but this blocks Python signals as well. - */ - if ((tx = sip_api_get_cpp_ptr(w, sipQObjectClass)) == NULL || sipQtSupport->qt_signals_blocked(tx)) - return 0; - - if (isQtSignal(sig)) - { - sipSignature *psig; - - /* Handle Qt implementations that emit using generated code. */ - if (!sipQtSupport->qt_emit_signal) - return emitQtSig(w, sig, sigargs); - - /* See if the signal is a shortcut. */ - if (strchr(sig, '(') == NULL) - return sipQtSupport->qt_emit_signal_shortcut(tx, sig, sigargs); - - if ((psig = sip_api_parse_signature(sig)) == NULL) - return -1; - - if (psig->sg_nrargs != PyTuple_GET_SIZE(sigargs)) - PyErr_Format(PyExc_TypeError, "Signal has %d arguments, but %d given", psig->sg_nrargs, PyTuple_GET_SIZE(sigargs)); - - return sipQtSupport->qt_emit_signal(tx, psig, sigargs); - } - - if ((ps = findPySignal(w,sig)) != NULL) - { - int rc; - - /* Forget the last Qt sender and remember this one. */ - sipQtSupport->qt_forget_sender(); - py_sender = self; - - rc = emitToSlotList(ps -> rxlist,sigargs); - - /* Forget this as a sender. */ - py_sender = NULL; - - return rc; - } - - return 0; -} - - -/* - * Search the Python signal list for a signal. - */ -static sipPySig *findPySignal(sipWrapper *w,const char *sig) -{ - sipPySig *ps; - - for (ps = w -> pySigList; ps != NULL; ps = ps -> next) - if (sipQtSupport->qt_same_name(ps -> name,sig)) - return ps; - - return NULL; -} - - -/* - * Search a signal table for a signal. If found, call the emitter function - * with the signal arguments. Return 0 if the signal was emitted or <0 if - * there was an error. - */ -static int emitQtSig(sipWrapper *w,const char *sig,PyObject *sigargs) -{ - sipQtSignal *tab; - - /* Search the table. */ - for (tab = ((sipWrapperType *)(w -> ob_type)) -> type -> td_emit; tab -> st_name != NULL; ++tab) - { - const char *sp, *tp; - int found; - - /* Compare only the base name. */ - sp = &sig[1]; - tp = tab -> st_name; - - found = TRUE; - - while (*sp != '\0' && *sp != '(' && *tp != '\0') - if (*sp++ != *tp++) - { - found = FALSE; - break; - } - - if (found) - return (*tab -> st_emitfunc)(w,sigargs); - } - - /* It wasn't found if we got this far. */ - PyErr_Format(PyExc_NameError,"Invalid signal %s",&sig[1]); - - return -1; -} - - -/* - * Send a signal to a single slot (Qt or Python). - */ -int sip_api_emit_to_slot(sipSlot *slot, PyObject *sigargs) -{ - PyObject *sa, *oxtype, *oxvalue, *oxtb, *sfunc, *newmeth, *sref; - - /* Keep some compilers quiet. */ - oxtype = oxvalue = oxtb = NULL; - - /* Fan out Qt signals. */ - if (slot -> name != NULL && slot -> name[0] != '\0') - return sip_api_emit_signal(slot -> pyobj,slot -> name,sigargs); - - /* Get the object to call, resolving any weak references. */ - if (slot -> weakSlot == NULL) - sref = NULL; - else if ((sref = PyWeakref_GetObject(slot -> weakSlot)) == NULL) - return -1; - else - Py_INCREF(sref); - - if (sref == Py_None) - { - /* - * If the real object has gone then we pretend everything is Ok. This - * mimics the Qt behaviour of not caring if a receiving object has been - * deleted. - */ - Py_DECREF(sref); - return 0; - } - - if (slot -> pyobj == NULL) - { - PyObject *self = (sref != NULL ? sref : slot->meth.mself); - - /* See if any underlying C++ instance has gone. */ - if (self != NULL && sip_api_wrapper_check(self) && ((sipWrapper *)self)->u.cppPtr == NULL) - { - Py_XDECREF(sref); - return 0; - } - - if ((sfunc = PyMethod_New(slot->meth.mfunc, self, slot->meth.mclass)) == NULL) - { - Py_XDECREF(sref); - return -1; - } - - /* Make sure we garbage collect the new method. */ - newmeth = sfunc; - } - else if (slot -> name != NULL) - { - char *mname = slot -> name + 1; - PyObject *self = (sref != NULL ? sref : slot->pyobj); - - /* See if any underlying C++ instance has gone. */ - if (self != NULL && sip_api_wrapper_check(self) && ((sipWrapper *)self)->u.cppPtr == NULL) - { - Py_XDECREF(sref); - return 0; - } - - if ((sfunc = PyObject_GetAttrString(self, mname)) == NULL || !PyCFunction_Check(sfunc)) - { - /* - * Note that in earlier versions of SIP this error would be - * detected when the slot was connected. - */ - PyErr_Format(PyExc_NameError,"Invalid slot %s",mname); - - Py_XDECREF(sref); - return -1; - } - - /* Make sure we garbage collect the new method. */ - newmeth = sfunc; - } - else if (slot->pyobj == Py_None) - { - /* - * This was a lambda function that has been freed by the cyclic garbage - * collector so ignore it. - */ - Py_XDECREF(sref); - return 0; - } - else - { - sfunc = slot -> pyobj; - newmeth = NULL; - } - - /* - * We make repeated attempts to call a slot. If we work out that it failed - * because of an immediate type error we try again with one less argument. - * We keep going until we run out of arguments to drop. This emulates the - * Qt ability of the slot to accept fewer arguments than a signal provides. - */ - sa = sigargs; - Py_INCREF(sa); - - for (;;) - { - PyObject *nsa, *xtype, *xvalue, *xtb, *resobj; - - if ((resobj = PyEval_CallObject(sfunc,sa)) != NULL) - { - Py_DECREF(resobj); - - Py_XDECREF(newmeth); - Py_XDECREF(sref); - - /* Remove any previous exception. */ - - if (sa != sigargs) - { - Py_XDECREF(oxtype); - Py_XDECREF(oxvalue); - Py_XDECREF(oxtb); - PyErr_Clear(); - } - - Py_DECREF(sa); - - return 0; - } - - /* Get the exception. */ - PyErr_Fetch(&xtype,&xvalue,&xtb); - - /* - * See if it is unacceptable. An acceptable failure is a type error - * with no traceback - so long as we can still reduce the number of - * arguments and try again. - */ - if (!PyErr_GivenExceptionMatches(xtype,PyExc_TypeError) || - xtb != NULL || - PyTuple_GET_SIZE(sa) == 0) - { - /* - * If there is a traceback then we must have called the slot and - * the exception was later on - so report the exception as is. - */ - if (xtb != NULL) - { - if (sa != sigargs) - { - Py_XDECREF(oxtype); - Py_XDECREF(oxvalue); - Py_XDECREF(oxtb); - } - - PyErr_Restore(xtype,xvalue,xtb); - } - else if (sa == sigargs) - PyErr_Restore(xtype,xvalue,xtb); - else - { - /* - * Discard the latest exception and restore the original one. - */ - Py_XDECREF(xtype); - Py_XDECREF(xvalue); - Py_XDECREF(xtb); - - PyErr_Restore(oxtype,oxvalue,oxtb); - } - - break; - } - - /* If this is the first attempt, save the exception. */ - if (sa == sigargs) - { - oxtype = xtype; - oxvalue = xvalue; - oxtb = xtb; - } - else - { - Py_XDECREF(xtype); - Py_XDECREF(xvalue); - Py_XDECREF(xtb); - } - - /* Create the new argument tuple. */ - if ((nsa = PyTuple_GetSlice(sa,0,PyTuple_GET_SIZE(sa) - 1)) == NULL) - { - /* Tidy up. */ - Py_XDECREF(oxtype); - Py_XDECREF(oxvalue); - Py_XDECREF(oxtb); - - break; - } - - Py_DECREF(sa); - sa = nsa; - } - - Py_XDECREF(newmeth); - Py_XDECREF(sref); - - Py_DECREF(sa); - - return -1; -} - - -/* - * Send a signal to the slots (Qt or Python) in a Python list. - */ -static int emitToSlotList(sipSlotList *rxlist,PyObject *sigargs) -{ - int rc; - - /* Apply the arguments to each slot method. */ - rc = 0; - - while (rxlist != NULL && rc >= 0) - { - sipSlotList *next; - - /* - * We get the next in the list before calling the slot in case the list - * gets changed by the slot - usually because the slot disconnects - * itself. - */ - next = rxlist -> next; - rc = sip_api_emit_to_slot(&rxlist -> rx, sigargs); - rxlist = next; - } - - return rc; -} - - -/* - * Add a slot to a transmitter's Python signal list. The signal is a Python - * signal, the slot may be either a Qt signal, a Qt slot, a Python signal or a - * Python slot. - */ -static int addSlotToPySigList(sipWrapper *txSelf,const char *sig, - PyObject *rxObj,const char *slot) -{ - sipPySig *ps; - sipSlotList *psrx; - - /* Create a new one if necessary. */ - if ((ps = findPySignal(txSelf,sig)) == NULL) - { - if ((ps = (sipPySig *)sip_api_malloc(sizeof (sipPySig))) == NULL) - return -1; - - if ((ps -> name = sipStrdup(sig)) == NULL) - { - sip_api_free(ps); - return -1; - } - - ps -> rxlist = NULL; - ps -> next = txSelf -> pySigList; - - txSelf -> pySigList = ps; - } - - /* Create the new receiver. */ - if ((psrx = (sipSlotList *)sip_api_malloc(sizeof (sipSlotList))) == NULL) - return -1; - - if (saveSlot(&psrx->rx, rxObj, slot) < 0) - { - sip_api_free(psrx); - return -1; - } - - psrx -> next = ps -> rxlist; - ps -> rxlist = psrx; - - return 0; -} - - -/* - * Compare two slots to see if they are the same. - */ -static int isSameSlot(sipSlot *slot1,PyObject *rxobj2,const char *slot2) -{ - /* See if they are signals or Qt slots, ie. they have a name. */ - if (slot1 -> name != NULL) - return (slot2 != NULL && - sipQtSupport->qt_same_name(slot1 -> name,slot2) && - slot1 -> pyobj == rxobj2); - - /* Both must be Python slots. */ - if (slot2 != NULL) - return 0; - - /* See if they are Python methods. */ - if (slot1 -> pyobj == NULL) - return (PyMethod_Check(rxobj2) && - slot1 -> meth.mfunc == PyMethod_GET_FUNCTION(rxobj2) && - slot1 -> meth.mself == PyMethod_GET_SELF(rxobj2) && - slot1 -> meth.mclass == PyMethod_GET_CLASS(rxobj2)); - - if (PyMethod_Check(rxobj2)) - return 0; - - /* The objects must be the same. */ - return (slot1 -> pyobj == rxobj2); -} - - -/* - * Convert a valid Python signal or slot to an existing universal slot. - */ -void *sipGetRx(sipWrapper *txSelf,const char *sigargs,PyObject *rxObj, - const char *slot,const char **memberp) -{ - if (slot != NULL) - if (isQtSlot(slot) || isQtSignal(slot)) - { - void *rx; - - *memberp = slot; - - if ((rx = sip_api_get_cpp_ptr((sipWrapper *)rxObj, sipQObjectClass)) == NULL) - return NULL; - - if (isQtSignal(slot)) - rx = findSignal(rx, memberp); - - return rx; - } - - /* - * The slot was either a Python callable or PyQt3 Python signal so there - * should be a universal slot. - */ - return sipQtSupport->qt_find_slot(sipGetAddress(txSelf), sigargs, rxObj, slot, memberp); -} - - -/* - * Convert a Python receiver (either a Python signal or slot or a Qt signal or - * slot) to a Qt receiver. It is only ever called when the signal is a Qt - * signal. Return NULL is there was an error. - */ -void *sip_api_convert_rx(sipWrapper *txSelf,const char *sig,PyObject *rxObj, - const char *slot,const char **memberp) -{ - if (slot == NULL) - return createUniversalSlot(txSelf, sig, rxObj, NULL, memberp); - - if (isQtSlot(slot) || isQtSignal(slot)) - { - void *rx; - - *memberp = slot; - - if ((rx = sip_api_get_cpp_ptr((sipWrapper *)rxObj, sipQObjectClass)) == NULL) - return NULL; - - if (isQtSignal(slot)) - rx = newSignal(rx, memberp); - - return rx; - } - - /* The slot is a Python signal so we need a universal slot to catch it. */ - return createUniversalSlot(txSelf, sig, rxObj, slot, memberp); -} - - -/* - * Connect a Qt signal or a Python signal to a Qt slot, a Qt signal, a Python - * slot or a Python signal. This is all possible combinations. - */ -PyObject *sip_api_connect_rx(PyObject *txObj,const char *sig,PyObject *rxObj, - const char *slot, int type) -{ - sipWrapper *txSelf = (sipWrapper *)txObj; - - /* Handle Qt signals. */ - if (isQtSignal(sig)) - { - void *tx, *rx; - const char *member, *real_sig; - int res; - - if ((tx = sip_api_get_cpp_ptr(txSelf, sipQObjectClass)) == NULL) - return NULL; - - real_sig = sig; - - if ((tx = newSignal(tx, &real_sig)) == NULL) - return NULL; - - if ((rx = sip_api_convert_rx(txSelf, sig, rxObj, slot, &member)) == NULL) - return NULL; - - res = sipQtSupport->qt_connect(tx, real_sig, rx, member, type); - - return PyBool_FromLong(res); - } - - /* Handle Python signals. */ - if (addSlotToPySigList(txSelf, sig, rxObj, slot) < 0) - return NULL; - - Py_INCREF(Py_True); - return Py_True; -} - - -/* - * Disconnect a signal to a signal or a Qt slot. - */ -PyObject *sip_api_disconnect_rx(PyObject *txObj,const char *sig, - PyObject *rxObj,const char *slot) -{ - sipWrapper *txSelf = (sipWrapper *)txObj; - - /* Handle Qt signals. */ - if (isQtSignal(sig)) - { - void *tx, *rx; - const char *member; - int res; - - if ((tx = sip_api_get_cpp_ptr(txSelf, sipQObjectClass)) == NULL) - return NULL; - - if ((rx = sipGetRx(txSelf, sig, rxObj, slot, &member)) == NULL) - { - Py_INCREF(Py_False); - return Py_False; - } - - /* Handle Python signals. */ - tx = findSignal(tx, &sig); - - res = sipQtSupport->qt_disconnect(tx, sig, rx, member); - - /* - * Delete it if it is a universal slot as this will be it's only - * connection. If the slot is actually a universal signal then it - * should leave it in place. - */ - sipQtSupport->qt_destroy_universal_slot(rx); - - return PyBool_FromLong(res); - } - - /* Handle Python signals. */ - removeSlotFromPySigList(txSelf,sig,rxObj,slot); - - Py_INCREF(Py_True); - return Py_True; -} - - -/* - * Remove a slot from a transmitter's Python signal list. - */ -static void removeSlotFromPySigList(sipWrapper *txSelf,const char *sig, - PyObject *rxObj,const char *slot) -{ - sipPySig *ps; - - if ((ps = findPySignal(txSelf,sig)) != NULL) - { - sipSlotList **psrxp; - - for (psrxp = &ps -> rxlist; *psrxp != NULL; psrxp = &(*psrxp) -> next) - { - sipSlotList *psrx = *psrxp; - - if (isSameSlot(&psrx -> rx,rxObj,slot)) - { - *psrxp = psrx -> next; - sipFreeSlotList(psrx); - break; - } - } - } -} - - -/* - * Free a sipSlot structure. - */ -static void freeSlot(sipSlot *slot) -{ - if (slot->name != NULL) - sip_api_free(slot->name); - else - { - PyObject *lam = slot->pyobj; - - if (lam != NULL && (lam == Py_None || sipLambdaSlot(lam))) - Py_DECREF(lam); - } - - /* Remove any weak reference. */ - Py_XDECREF(slot->weakSlot); -} - - -/* - * Free a sipSlotList structure on the heap. - */ -void sipFreeSlotList(sipSlotList *rx) -{ - freeSlot(&rx->rx); - sip_api_free(rx); -} - - -/* - * Implement strdup() using sip_api_malloc(). - */ -static char *sipStrdup(const char *s) -{ - char *d; - - if ((d = (char *)sip_api_malloc(strlen(s) + 1)) != NULL) - strcpy(d,s); - - return d; -} - - -/* - * Initialise a slot, returning 0 if there was no error. If the signal was a - * Qt signal, then the slot may be a Python signal or a Python slot. If the - * signal was a Python signal, then the slot may be anything. - */ -static int saveSlot(sipSlot *sp, PyObject *rxObj, const char *slot) -{ - sp -> weakSlot = NULL; - - if (slot == NULL) - { - sp -> name = NULL; - - if (PyMethod_Check(rxObj)) - { - /* - * Python creates methods on the fly. We could increment the - * reference count to keep it alive, but that would keep "self" - * alive as well and would probably be a circular reference. - * Instead we remember the component parts and hope they are still - * valid when we re-create the method when we need it. - */ - sipSaveMethod(&sp -> meth,rxObj); - - /* Notice if the class instance disappears. */ - sp -> weakSlot = getWeakRef(sp -> meth.mself); - - /* This acts a flag to say that the slot is a method. */ - sp -> pyobj = NULL; - } - else - { - PyObject *self; - - /* - * We know that it is another type of callable, ie. a - * function/builtin. - */ - - if (PyCFunction_Check(rxObj) && - (self = PyCFunction_GET_SELF(rxObj)) != NULL && - sip_api_wrapper_check(self)) - { - /* - * It is a wrapped C++ class method. We can't keep a copy - * because they are generated on the fly and we can't take a - * reference as that may keep the instance (ie. self) alive. - * We therefore treat it as if the user had specified the slot - * at "obj, TQT_SLOT('meth()')" rather than "obj.meth" (see below). - */ - - const char *meth; - - /* Get the method name. */ - meth = ((PyCFunctionObject *)rxObj) -> m_ml -> ml_name; - - if ((sp -> name = (char *)sip_api_malloc(strlen(meth) + 2)) == NULL) - return -1; - - /* - * Copy the name and set the marker that it needs converting to - * a built-in method. - */ - sp -> name[0] = '\0'; - strcpy(&sp -> name[1],meth); - - sp -> pyobj = self; - sp -> weakSlot = getWeakRef(self); - } - else - { - /* - * A bit of a hack to allow lamba functions to be used as - * slots. - */ - if (sipLambdaSlot(rxObj)) - Py_INCREF(rxObj); - - /* - * It's unlikely that we will succeed in getting a weak - * reference to the slot, but there is no harm in trying (and - * future versions of Python may support references to more - * object types). - */ - sp -> pyobj = rxObj; - sp -> weakSlot = getWeakRef(rxObj); - } - } - } - else if ((sp -> name = sipStrdup(slot)) == NULL) - return -1; - else if (isQtSlot(slot)) - { - /* - * The user has decided to connect a Python signal to a Qt slot and - * specified the slot as "obj, TQT_SLOT('meth()')" rather than "obj.meth". - */ - - char *tail; - - /* Remove any arguments. */ - if ((tail = strchr(sp -> name,'(')) != NULL) - *tail = '\0'; - - /* - * A bit of a hack to indicate that this needs converting to a built-in - * method. - */ - sp -> name[0] = '\0'; - - /* Notice if the class instance disappears. */ - sp -> weakSlot = getWeakRef(rxObj); - - sp -> pyobj = rxObj; - } - else - /* It's a Qt signal. */ - sp -> pyobj = rxObj; - - return 0; -} - - -/* - * Return a weak reference to the given object. - */ -static PyObject *getWeakRef(PyObject *obj) -{ - PyObject *wr; - - if ((wr = PyWeakref_NewRef(obj,NULL)) == NULL) - PyErr_Clear(); - - return wr; -} - - -/* - * See if an object is a lambda function. - */ -int sipLambdaSlot(PyObject *slotObj) -{ - if (!PyFunction_Check(slotObj)) - return FALSE; - - return (strcmp(PyString_AsString(((PyFunctionObject *)slotObj)->func_name), "") == 0); -} diff --git a/python/sip/siplib/sip.h b/python/sip/siplib/sip.h deleted file mode 100644 index 92bcda4e..00000000 --- a/python/sip/siplib/sip.h +++ /dev/null @@ -1,1302 +0,0 @@ -/* - * The SIP module interface. - * - * Copyright (c) 2007 - * Riverbank Computing Limited - * - * This file is part of SIP. - * - * This copy of SIP is licensed for use under the terms of the SIP License - * Agreement. See the file LICENSE for more details. - * - * SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ - - -#ifndef _SIP_H -#define _SIP_H - - -/* - * This gets round a problem with Qt's moc and Python v2.3. Strictly speaking - * it's a Qt problem but later versions of Python include a fix for it so we - * might as well too. - */ -#undef slots - - -#include - -/* - * There is a mis-feature somewhere with the Borland compiler. This works - * around it. - */ -#if defined(__BORLANDC__) -#include -#endif - - -#ifdef __cplusplus -extern "C" { -#endif - - -/* Sanity check on the Python version. */ -#if PY_VERSION_HEX < 0x02030000 -#error "This version of SIP requires Python v2.3 or later" -#endif - - -/* - * Define the SIP version number. - */ -#define SIP_VERSION 0x040600 -#define SIP_VERSION_STR "4.6" - - -/* - * Define the current API version number. SIP must handle modules with the - * same major number and with the same or earlier minor number. Whenever data - * structure elements are added they must be appended and the minor number - * incremented. Whenever data structure elements are removed or the order - * changed then the major number must be incremented and the minor number set - * to 0. - * - * History: - * - * 3.4 Added qt_find_connection() to the Qt support API. - * Added sip_api_string_as_char(), sip_api_unicode_as_wchar(), - * sip_api_unicode_as_wstring(), sip_api_find_class(), - * sip_api_find_named_enum() and sip_api_parse_signature(). - * Added the 'A', 'w' and 'x' format characters to sip_api_parse_args(), - * sip_api_parse_result(), sip_api_build_result() and - * sip_api_call_method(). - * - * 3.3 Added sip_api_register_int_types(). - * - * 3.2 Added sip_api_export_symbol() and sip_api_import_symbol(). - * - * 3.1 Added sip_api_add_mapped_type_instance(). - * - * 3.0 Moved the Qt support out of the sip module and into PyQt. This is - * such a dramatic change that there is no point in attempting to maintain - * backwards compatibility. - * - * 2.0 Added the td_flags field to the sipTypeDef structure. - * Added the first_child, sibling_next, sibling_prev and parent fields to - * the sipWrapper structure. - * Added the td_traverse and td_clear fields to the sipTypeDef structure. - * Added the em_api_minor field to the sipExportedModuleDef structure. - * Added sip_api_bad_operator_arg(). - * Added sip_api_wrapper_check(). - * - * 1.1 Added support for __pos__ and __abs__. - * - * 1.0 Removed all deprecated parts of the API. - * Removed the td_proxy field from the sipTypeDef structure. - * Removed the create proxy function from the 'q' and 'y' format - * characters to sip_api_parse_args(). - * Removed sip_api_emit_to_slot(). - * Reworked the enum related structures. - * - * 0.2 Added the 'H' format character to sip_api_parse_args(). - * - * 0.1 Added sip_api_add_class_instance(). - * Added the 't' format character to sip_api_parse_args(). - * Deprecated the 'J' and 'K' format characters to sip_api_parse_result(). - * - * 0.0 Original version. - */ -#define SIP_API_MAJOR_NR 3 -#define SIP_API_MINOR_NR 4 - - -/* Some compatibility stuff to help with handwritten code for SIP v3. */ -#if !defined(ANY) -#define ANY void -#endif - - -/* Some Python compatibility stuff. */ -#if PY_VERSION_HEX >= 0x02050000 -#define SIP_SSIZE_T Py_ssize_t -#else -#define SIP_SSIZE_T int -#endif - - -/* - * The mask that can be passed to sipTrace(). - */ -#define SIP_TRACE_CATCHERS 0x0001 -#define SIP_TRACE_CTORS 0x0002 -#define SIP_TRACE_DTORS 0x0004 -#define SIP_TRACE_INITS 0x0008 -#define SIP_TRACE_DEALLOCS 0x0010 -#define SIP_TRACE_METHODS 0x0020 - - -/* - * Hide some thread dependent stuff. - */ -#ifdef WITH_THREAD -typedef PyGILState_STATE sip_gilstate_t; -#define SIP_RELEASE_GIL(gs) PyGILState_Release(gs); -#define SIP_BLOCK_THREADS {PyGILState_STATE sipGIL = PyGILState_Ensure(); -#define SIP_UNBLOCK_THREADS PyGILState_Release(sipGIL);} -#else -typedef int sip_gilstate_t; -#define SIP_RELEASE_GIL(gs) -#define SIP_BLOCK_THREADS -#define SIP_UNBLOCK_THREADS -#endif - - -/* - * The metatype of a wrapper type. - */ -typedef struct _sipWrapperType { - /* - * The super-metatype. This must be first in the structure so that it can - * be cast to a PyTypeObject *. - */ - PyHeapTypeObject super; - - /* The additional type information. */ - struct _sipTypeDef *type; - - /* The list of init extenders. */ - struct _sipInitExtenderDef *iextend; - - /* The optional PyQt defined Q_OBJECT information. */ - void *qt_qobject; -} sipWrapperType; - - -/* - * The type of a C/C++ wrapper object. - */ -typedef struct _sipWrapper { - PyObject_HEAD - - /* For the user to use. */ - PyObject *user; - - union { - /* C/C++ object pointer. */ - void *cppPtr; - - /* Access function. */ - void *(*afPtr)(); - } u; - - /* Object flags. */ - int flags; - - /* The instance dictionary. */ - PyObject *dict; - - /* Python signal list (complex). */ - struct _sipPySig *pySigList; - - /* Next object at this address. */ - struct _sipWrapper *next; - - /* First child object. */ - struct _sipWrapper *first_child; - - /* Next sibling. */ - struct _sipWrapper *sibling_next; - - /* Previous sibling. */ - struct _sipWrapper *sibling_prev; - - /* Owning object. */ - struct _sipWrapper *parent; -} sipWrapper; - - -/* - * Some convenient function pointers. - */ -typedef void *(*sipInitFunc)(sipWrapper *, PyObject *, sipWrapper **, int *); -typedef int (*sipTraverseFunc)(void *, visitproc, void *); -typedef int (*sipClearFunc)(void *); -typedef SIP_SSIZE_T (*sipBufferFunc)(PyObject *, void *, SIP_SSIZE_T, void **); -typedef SIP_SSIZE_T (*sipSegCountFunc)(PyObject *, void *, SIP_SSIZE_T *); -typedef void (*sipDeallocFunc)(sipWrapper *); -typedef void *(*sipCastFunc)(void *, sipWrapperType *); -typedef sipWrapperType *(*sipSubClassConvertFunc)(void **); -typedef void *(*sipForceConvertToFunc)(PyObject *, int *); -typedef int (*sipConvertToFunc)(PyObject *, void **, int *, PyObject *); -typedef PyObject *(*sipConvertFromFunc)(void *, PyObject *); -typedef int (*sipVirtHandlerFunc)(void *, PyObject *, ...); -typedef int (*sipEmitFunc)(sipWrapper *, PyObject *); -typedef void (*sipReleaseFunc)(void *, int); - - -/* - * The information describing an encoded class ID. - */ -typedef struct _sipEncodedClassDef { - /* The class number. */ - unsigned sc_class:16; - - /* The module number (255 for this one). */ - unsigned sc_module:8; - - /* A context specific flag. */ - unsigned sc_flag:1; -} sipEncodedClassDef; - - -/* - * The information describing an enum member. - */ -typedef struct _sipEnumMemberDef { - /* The member name. */ - const char *em_name; - - /* The member value. */ - int em_val; - - /* The member enum, -ve if anonymous. */ - int em_enum; -} sipEnumMemberDef; - - -/* - * The information describing a named enum. - */ -typedef struct _sipEnumDef { - /* The Python name of the enum. */ - const char *e_name; - - /* The C/C++ name of the enum, NULL if the same as the Python name. */ - const char *e_cname; - - /* The scoping type. */ - int e_scope; - - /* The Python slots. */ - struct _sipPySlotDef *e_pyslots; -} sipEnumDef; - - -/* - * The information describing static instances. - */ -typedef struct _sipInstancesDef { - /* The classes. */ - struct _sipClassInstanceDef *id_class; - - /* The void *. */ - struct _sipVoidPtrInstanceDef *id_voidp; - - /* The chars. */ - struct _sipCharInstanceDef *id_char; - - /* The strings. */ - struct _sipStringInstanceDef *id_string; - - /* The ints. */ - struct _sipIntInstanceDef *id_int; - - /* The longs. */ - struct _sipLongInstanceDef *id_long; - - /* The unsigned longs. */ - struct _sipUnsignedLongInstanceDef *id_ulong; - - /* The long longs. */ - struct _sipLongLongInstanceDef *id_llong; - - /* The unsigned long longs. */ - struct _sipUnsignedLongLongInstanceDef *id_ullong; - - /* The doubles. */ - struct _sipDoubleInstanceDef *id_double; - - /* The enums. */ - struct _sipEnumInstanceDef *id_enum; -} sipInstancesDef; - - -/* - * The information describing a type initialiser extender. - */ -typedef struct _sipInitExtenderDef { - /* The extender function. */ - sipInitFunc ie_extender; - - /* The class being extended. */ - sipEncodedClassDef ie_class; - - /* The next extender for this class. */ - struct _sipInitExtenderDef *ie_next; -} sipInitExtenderDef; - - -/* - * The information describing a sub-class convertor. - */ -typedef struct _sipSubClassConvertorDef { - /* The convertor. */ - sipSubClassConvertFunc scc_convertor; - - /* The encoded base type. */ - sipEncodedClassDef scc_base; - - /* The base type. */ - sipWrapperType *scc_basetype; -} sipSubClassConvertorDef; - - -/* - * The different Python slot types. - */ -typedef enum { - str_slot, /* __str__ */ - int_slot, /* __int__ */ - long_slot, /* __long__ */ - float_slot, /* __float__ */ - len_slot, /* __len__ */ - contains_slot, /* __contains__ */ - add_slot, /* __add__ for number */ - concat_slot, /* __add__ for sequence types */ - sub_slot, /* __sub__ */ - mul_slot, /* __mul__ for number types */ - repeat_slot, /* __mul__ for sequence types */ - div_slot, /* __div__ */ - mod_slot, /* __mod__ */ - and_slot, /* __and__ */ - or_slot, /* __or__ */ - xor_slot, /* __xor__ */ - lshift_slot, /* __lshift__ */ - rshift_slot, /* __rshift__ */ - iadd_slot, /* __iadd__ for number types */ - iconcat_slot, /* __iadd__ for sequence types */ - isub_slot, /* __isub__ */ - imul_slot, /* __imul__ for number types */ - irepeat_slot, /* __imul__ for sequence types */ - idiv_slot, /* __idiv__ */ - imod_slot, /* __imod__ */ - iand_slot, /* __iand__ */ - ior_slot, /* __ior__ */ - ixor_slot, /* __ixor__ */ - ilshift_slot, /* __ilshift__ */ - irshift_slot, /* __irshift__ */ - invert_slot, /* __invert__ */ - call_slot, /* __call__ */ - getitem_slot, /* __getitem__ */ - setitem_slot, /* __setitem__ */ - delitem_slot, /* __delitem__ */ - lt_slot, /* __lt__ */ - le_slot, /* __le__ */ - eq_slot, /* __eq__ */ - ne_slot, /* __ne__ */ - gt_slot, /* __gt__ */ - ge_slot, /* __ge__ */ - cmp_slot, /* __cmp__ */ - nonzero_slot, /* __nonzero__ */ - neg_slot, /* __neg__ */ - repr_slot, /* __repr__ */ - hash_slot, /* __hash__ */ - pos_slot, /* __pos__ */ - abs_slot /* __abs__ */ -} sipPySlotType; - - -/* - * The information describing a Python slot function. - */ -typedef struct _sipPySlotDef { - /* The function. */ - void *psd_func; - - /* The type. */ - sipPySlotType psd_type; -} sipPySlotDef; - - -/* - * The information describing a Python slot extender. - */ -typedef struct _sipPySlotExtenderDef { - /* The function. */ - void *pse_func; - - /* The type. */ - sipPySlotType pse_type; - - /* The encoded class. */ - sipEncodedClassDef pse_class; -} sipPySlotExtenderDef; - - -/* - * This enumerates the different dynamic signal argument types. - */ -typedef enum { - unknown_sat, - char_sat, - uchar_sat, - string_sat, - ustring_sat, - short_sat, - ushort_sat, - int_sat, - uint_sat, - long_sat, - ulong_sat, - longlong_sat, - ulonglong_sat, - float_sat, - double_sat, - enum_sat, - bool_sat, - void_sat, - class_sat, - classp_sat, - mtype_sat, - mtypep_sat, - qvariant_sat, - qvariantp_sat, - pyobject_sat, - schar_sat, - sstring_sat, - wchar_sat, - wstring_sat -} sipSigArgType; - - -/* - * The information describing a typedef. - */ -typedef struct _sipTypedefDef { - /* The typedef name. */ - const char *tdd_name; - - /* The typedef type. */ - sipSigArgType tdd_type; - - /* The type name for enum_sat, class_sat and mtype_sat. */ - const char *tdd_type_name; - - /* The defining module, NULL if the current one. */ - const char *tdd_mod_name; -} sipTypedefDef; - - -/* - * The information describing a type. - */ -typedef struct _sipTypeDef { - /* The module. */ - struct _sipExportedModuleDef *td_module; - - /* Type flags, see the sipType*() macros. */ - int td_flags; - - /* The Python name of the type. */ - const char *td_name; - - /* The C/C++ name of the type, NULL if the same as the Python name. */ - const char *td_cname; - - /* The scoping type. */ - sipEncodedClassDef td_scope; - - /* The super-types. */ - sipEncodedClassDef *td_supers; - - /* The table of Python slots. */ - sipPySlotDef *td_pyslots; - - /* The number of lazy methods. */ - int td_nrmethods; - - /* The table of lazy methods. */ - PyMethodDef *td_methods; - - /* The number of lazy enum members. */ - int td_nrenummembers; - - /* The table of lazy enum members. */ - sipEnumMemberDef *td_enummembers; - - /* The variable table. */ - PyMethodDef *td_variables; - - /* The initialisation function. */ - sipInitFunc td_init; - - /* The traverse function. */ - sipTraverseFunc td_traverse; - - /* The clear function. */ - sipClearFunc td_clear; - - /* The read buffer function. */ - sipBufferFunc td_readbuffer; - - /* The write buffer function. */ - sipBufferFunc td_writebuffer; - - /* The segment count function. */ - sipSegCountFunc td_segcount; - - /* The char buffer function. */ - sipBufferFunc td_charbuffer; - - /* The deallocation function. */ - sipDeallocFunc td_dealloc; - - /* The cast function, 0 if a C struct. */ - sipCastFunc td_cast; - - /* The release function. */ - sipReleaseFunc td_release; - - /* The force convert to function, 0 if a C++ namespace. */ - sipForceConvertToFunc td_fcto; - - /* The convert to function. */ - sipConvertToFunc td_cto; - - /* Emit table for Qt signals. */ - struct _sipQtSignal *td_emit; - - /* The static instances. */ - sipInstancesDef td_instances; - - /* The next namespace extender. */ - struct _sipTypeDef *td_nsextender; -} sipTypeDef; - - -/* - * The information describing an external type. - */ -typedef struct _sipExternalTypeDef { - /* The index into the type table. */ - int et_nr; - - /* The name of the type. */ - const char *et_name; -} sipExternalTypeDef; - - -/* - * The information describing a mapped class. - */ -typedef struct _sipMappedType { - /* The corresponding C++ definition. */ - const char *mt_name; - - /* The release function. */ - sipReleaseFunc mt_release; - - /* The force convert to function. */ - sipForceConvertToFunc mt_fcto; - - /* The convert to function. */ - sipConvertToFunc mt_cto; - - /* The convert from function. */ - sipConvertFromFunc mt_cfrom; -} sipMappedType; - - -/* - * Defines an entry in the module specific list of delayed dtor calls. - */ -typedef struct _sipDelayedDtor { - /* The C/C++ instance. */ - void *dd_ptr; - - /* The class name. */ - const char *dd_name; - - /* Non-zero if dd_ptr is a derived class instance. */ - int dd_isderived; - - /* Next in the list. */ - struct _sipDelayedDtor *dd_next; -} sipDelayedDtor; - - -/* - * The information describing an imported module. - */ -typedef struct _sipImportedModuleDef { - /* The module name. */ - const char *im_name; - - /* The required version. */ - int im_version; - - /* The imported module. */ - struct _sipExportedModuleDef *im_module; -} sipImportedModuleDef; - - -/* - * The main client module structure. - */ -typedef struct _sipExportedModuleDef { - /* The next in the list. */ - struct _sipExportedModuleDef *em_next; - - /* The SIP API minor version number. */ - unsigned em_api_minor; - - /* The module name. */ - const char *em_name; - - /* The module name as an object. */ - PyObject *em_nameobj; - - /* The module version. */ - int em_version; - - /* The imported modules. */ - sipImportedModuleDef *em_imports; - - /* The optional Qt support API. */ - struct _sipQtAPI *em_qt_api; - - /* The number of types. */ - int em_nrtypes; - - /* The table of type types. */ - struct _sipWrapperType **em_types; - - /* The table of external types. */ - sipExternalTypeDef *em_external; - - /* The table of mapped types. */ - sipMappedType **em_mappedtypes; - - /* The number of enums. */ - int em_nrenums; - - /* The table of enum types. */ - PyTypeObject **em_enums; - - /* The table of enum type data. */ - sipEnumDef *em_enumdefs; - - /* The number of members in global enums. */ - int em_nrenummembers; - - /* The table of members in global enums. */ - sipEnumMemberDef *em_enummembers; - - /* The table of typedefs. */ - sipTypedefDef *em_typedefs; - - /* The table of virtual handlers. */ - sipVirtHandlerFunc *em_virthandlers; - - /* The sub-class convertors. */ - sipSubClassConvertorDef *em_convertors; - - /* The static instances. */ - sipInstancesDef em_instances; - - /* The license. */ - struct _sipLicenseDef *em_license; - - /* The table of exception types. */ - PyObject **em_exceptions; - - /* The table of Python slot extenders. */ - sipPySlotExtenderDef *em_slotextend; - - /* The table of initialiser extenders. */ - sipInitExtenderDef *em_initextend; - - /* The delayed dtor handler. */ - void (*em_delayeddtors)(const sipDelayedDtor *); - - /* The list of delayed dtors. */ - sipDelayedDtor *em_ddlist; -} sipExportedModuleDef; - - -/* - * The information describing a license to be added to a dictionary. - */ -typedef struct _sipLicenseDef { - /* The type of license. */ - const char *lc_type; - - /* The licensee. */ - const char *lc_licensee; - - /* The timestamp. */ - const char *lc_timestamp; - - /* The signature. */ - const char *lc_signature; -} sipLicenseDef; - - -/* - * The information describing a void pointer instance to be added to a - * dictionary. - */ -typedef struct _sipVoidPtrInstanceDef { - /* The void pointer name. */ - const char *vi_name; - - /* The void pointer value. */ - void *vi_val; -} sipVoidPtrInstanceDef; - - -/* - * The information describing a char instance to be added to a dictionary. - */ -typedef struct _sipCharInstanceDef { - /* The char name. */ - const char *ci_name; - - /* The char value. */ - char ci_val; -} sipCharInstanceDef; - - -/* - * The information describing a string instance to be added to a dictionary. - */ -typedef struct _sipStringInstanceDef { - /* The string name. */ - const char *si_name; - - /* The string value. */ - const char *si_val; -} sipStringInstanceDef; - - -/* - * The information describing an int instance to be added to a dictionary. - */ -typedef struct _sipIntInstanceDef { - /* The int name. */ - const char *ii_name; - - /* The int value. */ - int ii_val; -} sipIntInstanceDef; - - -/* - * The information describing a long instance to be added to a dictionary. - */ -typedef struct _sipLongInstanceDef { - /* The long name. */ - const char *li_name; - - /* The long value. */ - long li_val; -} sipLongInstanceDef; - - -/* - * The information describing an unsigned long instance to be added to a - * dictionary. - */ -typedef struct _sipUnsignedLongInstanceDef { - /* The unsigned long name. */ - const char *uli_name; - - /* The unsigned long value. */ - unsigned long uli_val; -} sipUnsignedLongInstanceDef; - - -/* - * The information describing a long long instance to be added to a dictionary. - */ -typedef struct _sipLongLongInstanceDef { - /* The long long name. */ - const char *lli_name; - - /* The long long value. */ -#if defined(HAVE_LONG_LONG) - PY_LONG_LONG lli_val; -#else - long lli_val; -#endif -} sipLongLongInstanceDef; - - -/* - * The information describing an unsigned long long instance to be added to a - * dictionary. - */ -typedef struct _sipUnsignedLongLongInstanceDef { - /* The unsigned long long name. */ - const char *ulli_name; - - /* The unsigned long long value. */ -#if defined(HAVE_LONG_LONG) - unsigned PY_LONG_LONG ulli_val; -#else - unsigned long ulli_val; -#endif -} sipUnsignedLongLongInstanceDef; - - -/* - * The information describing a double instance to be added to a dictionary. - */ -typedef struct _sipDoubleInstanceDef { - /* The double name. */ - const char *di_name; - - /* The double value. */ - double di_val; -} sipDoubleInstanceDef; - - -/* - * The information describing a class instance to be added to a dictionary. - */ -typedef struct _sipClassInstanceDef { - /* The class instance name. */ - const char *ci_name; - - /* The actual instance. */ - void *ci_ptr; - - /* A pointer to the Python type. */ - struct _sipWrapperType **ci_type; - - /* The wrapping flags. */ - int ci_flags; -} sipClassInstanceDef; - - -/* - * The information describing an enum instance to be added to a dictionary. - */ -typedef struct _sipEnumInstanceDef { - /* The enum instance name. */ - const char *ei_name; - - /* The enum value. */ - int ei_val; - - /* A pointer to the Python type. */ - PyTypeObject **ei_type; -} sipEnumInstanceDef; - - -/* - * Define a mapping between a wrapped type identified by a string and the - * corresponding Python type. - */ -typedef struct _sipStringTypeClassMap { - /* The type as a string. */ - const char *typeString; - - /* A pointer to the Python type. */ - struct _sipWrapperType **pyType; -} sipStringTypeClassMap; - - -/* - * Define a mapping between a wrapped type identified by an integer and the - * corresponding Python type. - */ -typedef struct _sipIntTypeClassMap { - /* The type as an integer. */ - int typeInt; - - /* A pointer to the Python type. */ - struct _sipWrapperType **pyType; -} sipIntTypeClassMap; - - -/* - * A Python method's component parts. This allows us to re-create the method - * without changing the reference counts of the components. - */ -typedef struct _sipPyMethod { - /* The function. */ - PyObject *mfunc; - - /* Self if it is a bound method. */ - PyObject *mself; - - /* The class. */ - PyObject *mclass; -} sipPyMethod; - - -/* - * Cache a reference to a Python member function. - */ -typedef struct _sipMethodCache { - /* Method cache flags. */ - int mcflags; - - /* The method. */ - sipPyMethod pyMethod; -} sipMethodCache; - - -/* - * A slot (in the Qt, rather than Python, sense). - */ -typedef struct _sipSlot { - /* Name if a Qt or Python signal. */ - char *name; - - /* Signal or Qt slot object. */ - PyObject *pyobj; - - /* Python slot method, pyobj is NULL. */ - sipPyMethod meth; - - /* A weak reference to the slot. */ - PyObject *weakSlot; -} sipSlot; - - -/* - * An entry in a linked list of slots. - */ -typedef struct _sipSlotList { - /* The receiver. */ - sipSlot rx; - - /* Next in the list. */ - struct _sipSlotList *next; -} sipSlotList; - - -/* - * A Python signal. - */ -typedef struct _sipPySig { - /* The name of the signal. */ - char *name; - - /* The list of receivers. */ - sipSlotList *rxlist; - - /* Next in the list. */ - struct _sipPySig *next; -} sipPySig; - - -/* - * This defines a single dynamic signal argument type. - */ -typedef struct _sipSigArg { - /* The type. */ - sipSigArgType atype; - - union { - /* The Python type for classes. */ - sipWrapperType *wt; - - /* The data for mapped types. */ - sipMappedType *mt; - - /* The Python type for named enums. */ - PyTypeObject *et; - } u; -} sipSigArg; - - -/* - * A parsed signal signature. - */ -typedef struct _sipSignature { - /* The number of arguments. */ - int sg_nrargs; - - /* The parsed arguments (heap). */ - sipSigArg *sg_args; - - /* The unparsed signature (heap). */ - char *sg_signature; - - /* The next in the list. */ - struct _sipSignature *sg_next; -} sipSignature; - - -/* - * A connection to a universal slot. - */ -typedef struct _sipSlotConnection { - /* The transmitter TQObject. */ - void *sc_transmitter; - - /* The parsed signature. */ - const sipSignature *sc_signature; - - /* The slot. */ - sipSlot sc_slot; -} sipSlotConnection; - - -/* - * Maps the name of a Qt signal to a wrapper function to emit it. - */ -typedef struct _sipQtSignal { - /* The signal name. */ - char *st_name; - - /* The emitter function. */ - sipEmitFunc st_emitfunc; -} sipQtSignal; - - -/* - * The API exported by the SIP module, ie. pointers to all the data and - * functions that can be used by generated code. - */ -typedef struct _sipAPIDef { - /* - * This must be the first entry and it's signature must not change so that - * version number mismatches can be detected and reported. - */ - int (*api_export_module)(sipExportedModuleDef *client, unsigned api_major, - unsigned api_minor, PyObject *mod_dict); - - /* - * The following are part of the public API. - */ - void (*api_bad_catcher_result)(PyObject *method); - void (*api_bad_length_for_slice)(SIP_SSIZE_T seqlen, SIP_SSIZE_T slicelen); - PyObject *(*api_build_result)(int *isErr, const char *fmt, ...); - PyObject *(*api_call_method)(int *isErr, PyObject *method, const char *fmt, - ...); - PyObject *(*api_class_name)(PyObject *self); - PyObject *(*api_connect_rx)(PyObject *txObj, const char *sig, - PyObject *rxObj, const char *slot, int type); - SIP_SSIZE_T (*api_convert_from_sequence_index)(SIP_SSIZE_T idx, - SIP_SSIZE_T len); - int (*api_can_convert_to_instance)(PyObject *pyObj, sipWrapperType *type, - int flags); - int (*api_can_convert_to_mapped_type)(PyObject *pyObj, - const sipMappedType *mt, int flags); - void *(*api_convert_to_instance)(PyObject *pyObj, sipWrapperType *type, - PyObject *transferObj, int flags, int *statep, int *iserrp); - void *(*api_convert_to_mapped_type)(PyObject *pyObj, - const sipMappedType *mt, PyObject *transferObj, int flags, - int *statep, int *iserrp); - void *(*api_force_convert_to_instance)(PyObject *pyObj, - sipWrapperType *type, PyObject *transferObj, int flags, - int *statep, int *iserrp); - void *(*api_force_convert_to_mapped_type)(PyObject *pyObj, - const sipMappedType *mt, PyObject *transferObj, int flags, - int *statep, int *iserrp); - void (*api_release_instance)(void *cpp, sipWrapperType *type, int state); - void (*api_release_mapped_type)(void *cpp, const sipMappedType *mt, - int state); - PyObject *(*api_convert_from_instance)(void *cpp, sipWrapperType *type, - PyObject *transferObj); - PyObject *(*api_convert_from_new_instance)(void *cpp, sipWrapperType *type, - PyObject *transferObj); - PyObject *(*api_convert_from_mapped_type)(void *cpp, - const sipMappedType *mt, PyObject *transferObj); - void *(*api_convert_to_cpp)(PyObject *sipSelf, sipWrapperType *type, - int *iserrp); - int (*api_get_state)(PyObject *transferObj); - const sipMappedType *(*api_find_mapped_type)(const char *type); - PyObject *(*api_disconnect_rx)(PyObject *txObj, const char *sig, - PyObject *rxObj, const char *slot); - int (*api_emit_signal)(PyObject *self, const char *sig, PyObject *sigargs); - void (*api_free)(void *mem); - PyObject *(*api_get_sender)(); - PyObject *(*api_get_wrapper)(void *cppPtr, sipWrapperType *type); - void *(*api_malloc)(size_t nbytes); - sipWrapperType *(*api_map_int_to_class)(int typeInt, - const sipIntTypeClassMap *map, int maplen); - sipWrapperType *(*api_map_string_to_class)(const char *typeString, - const sipStringTypeClassMap *map, int maplen); - int (*api_parse_result)(int *isErr, PyObject *method, PyObject *res, - const char *fmt, ...); - void (*api_trace)(unsigned mask, const char *fmt, ...); - void (*api_transfer)(PyObject *self, int toCpp); - void (*api_transfer_back)(PyObject *self); - void (*api_transfer_to)(PyObject *self, PyObject *owner); - int (*api_wrapper_check)(PyObject *o); - unsigned long (*api_long_as_unsigned_long)(PyObject *o); - PyObject *(*api_convert_from_named_enum)(int eval, PyTypeObject *et); - - /* - * The following may be used by Qt support code but no other handwritten - * code. - */ - PyObject *(*api_convert_from_void_ptr)(void *val); - void (*api_free_connection)(sipSlotConnection *conn); - int (*api_emit_to_slot)(sipSlot *slot, PyObject *sigargs); - int (*api_same_connection)(sipSlotConnection *conn, void *tx, - const char *sig, PyObject *rxObj, const char *slot); - void *(*api_convert_rx)(sipWrapper *txSelf, const char *sigargs, - PyObject *rxObj, const char *slot, const char **memberp); - - /* - * The following are not part of the public API. - */ - int (*api_parse_args)(int *argsParsedp, PyObject *sipArgs, - const char *fmt, ...); - int (*api_parse_pair)(int *argsParsedp, PyObject *arg0, PyObject *arg1, - const char *fmt, ...); - void (*api_common_ctor)(sipMethodCache *cache, int nrmeths); - void (*api_common_dtor)(sipWrapper *sipSelf); - void *(*api_convert_to_void_ptr)(PyObject *obj); - void (*api_no_function)(int argsParsed, const char *func); - void (*api_no_method)(int argsParsed, const char *classname, - const char *method); - void (*api_abstract_method)(const char *classname, const char *method); - void (*api_bad_class)(const char *classname); - void (*api_bad_set_type)(const char *classname, const char *var); - void *(*api_get_cpp_ptr)(sipWrapper *w, sipWrapperType *type); - void *(*api_get_complex_cpp_ptr)(sipWrapper *w); - PyObject *(*api_is_py_method)(sip_gilstate_t *gil, sipMethodCache *pymc, - sipWrapper *sipSelf, char *cname, char *mname); - void (*api_call_hook)(const char *hookname); - void (*api_start_thread)(void); - void (*api_end_thread)(void); - void (*api_raise_unknown_exception)(void); - void (*api_raise_class_exception)(sipWrapperType *type, void *ptr); - void (*api_raise_sub_class_exception)(sipWrapperType *type, void *ptr); - int (*api_add_class_instance)(PyObject *dict, const char *name, - void *cppPtr, sipWrapperType *wt); - int (*api_add_enum_instance)(PyObject *dict, const char *name, int value, - PyTypeObject *type); - void (*api_bad_operator_arg)(PyObject *self, PyObject *arg, - sipPySlotType st); - PyObject *(*api_pyslot_extend)(sipExportedModuleDef *mod, sipPySlotType st, - sipWrapperType *type, PyObject *arg0, PyObject *arg1); - void (*api_add_delayed_dtor)(sipWrapper *w); - int (*api_add_mapped_type_instance)(PyObject *dict, const char *name, - void *cppPtr, const sipMappedType *mt); - - /* - * The following are part of the public API. - */ - int (*api_export_symbol)(const char *name, void *sym); - void *(*api_import_symbol)(const char *name); - - /* - * The following may be used by Qt support code but no other handwritten - * code. - */ - int (*api_register_int_types)(PyObject *args); - sipSignature *(*api_parse_signature)(const char *sig); - - /* - * The following are part of the public API. - */ - sipWrapperType *(*api_find_class)(const char *type); - PyTypeObject *(*api_find_named_enum)(const char *type); - - /* - * The following are not part of the public API. - */ - char (*api_string_as_char)(PyObject *obj); -#if defined(HAVE_WCHAR_H) - wchar_t (*api_unicode_as_wchar)(PyObject *obj); - wchar_t *(*api_unicode_as_wstring)(PyObject *obj); -#else - int (*api_unicode_as_wchar)(PyObject *obj); - int *(*api_unicode_as_wstring)(PyObject *obj); -#endif -} sipAPIDef; - - -/* - * The API implementing the optional Qt support. - */ -typedef struct _sipQtAPI { - struct _sipWrapperType **qt_qobject; - int (*qt_is_qt_signal)(void *, const char *); - void *(*qt_create_universal_signal_shortcut)(void *, const char *, - const char **); - void *(*qt_create_universal_signal)(void *, const struct _sipSignature *); - void *(*qt_find_universal_signal_shortcut)(void *, const char *, - const char **); - void *(*qt_find_universal_signal)(void *, const struct _sipSignature *); - int (*qt_emit_signal_shortcut)(void *, const char *, PyObject *); - int (*qt_emit_signal)(void *, const struct _sipSignature *, PyObject *); - void *(*qt_create_universal_slot)(struct _sipWrapper *, - struct _sipSlotConnection *, const char **); - void (*qt_destroy_universal_slot)(void *); - void *(*qt_find_slot)(void *, const char *, PyObject *, const char *, - const char **); - int (*qt_connect)(void *, const char *, void *, const char *, int); - int (*qt_disconnect)(void *, const char *, void *, const char *); - int (*qt_signals_blocked)(void *); - const void *(*qt_get_sender)(); - void (*qt_forget_sender)(); - int (*qt_same_name)(const char *, const char *); - sipSlotConnection *(*qt_find_connection)(void *, void **); -} sipQtAPI; - - -/* - * These are flags that can be passed to sipCanConvertToInstance(), - * sipConvertToInstance() and sipForceConvertToInstance(). - */ -#define SIP_NOT_NONE 0x01 /* Disallow None. */ -#define SIP_NO_CONVERTORS 0x02 /* Disable any type convertors. */ - - -/* - * These are the state flags returned by %ConvertToTypeCode. Note that these - * share the same "namespace" as the flags below. - */ -#define SIP_TEMPORARY 0x0001 /* A temporary instance. */ -#define SIP_DERIVED_CLASS 0x0002 /* The instance is derived. */ - - -/* - * Useful macros, not part of the public API. - */ -#define SIP_PY_OWNED 0x0004 /* Owned by Python. */ -#define SIP_INDIRECT 0x0008 /* If there is a level of indirection. */ -#define SIP_ACCFUNC 0x0010 /* If there is an access function. */ -#define SIP_NOT_IN_MAP 0x0020 /* If Python object not in the map. */ -#define SIP_SHARE_MAP 0x0040 /* If the map slot might be occupied. */ -#define SIP_CPP_HAS_REF 0x0080 /* If C/C++ has a reference. */ - -#define sipIsPyOwned(w) ((w)->flags & SIP_PY_OWNED) -#define sipSetPyOwned(w) ((w)->flags |= SIP_PY_OWNED) -#define sipResetPyOwned(w) ((w)->flags &= ~SIP_PY_OWNED) -#define sipIsDerived(w) ((w)->flags & SIP_DERIVED_CLASS) -#define sipIsIndirect(w) ((w)->flags & SIP_INDIRECT) -#define sipIsAccessFunc(w) ((w)->flags & SIP_ACCFUNC) -#define sipNotInMap(w) ((w)->flags & SIP_NOT_IN_MAP) -#define sipCppHasRef(w) ((w)->flags & SIP_CPP_HAS_REF) -#define sipSetCppHasRef(w) ((w)->flags |= SIP_CPP_HAS_REF) -#define sipResetCppHasRef(w) ((w)->flags &= ~SIP_CPP_HAS_REF) - - -#define SIP_TYPE_ABSTRACT 0x0001 /* If the type is abstract. */ -#define SIP_TYPE_SCC 0x0002 /* If the type is subject to sub-class convertors. */ -#define SIP_TYPE_FLAGS_SHIFT 8 /* The user type flags shift. */ -#define SIP_TYPE_FLAGS_MASK 0x0f00 /* The user type flags mask. */ - -#define sipTypeIsAbstract(wt) ((wt)->type->td_flags & SIP_TYPE_ABSTRACT) -#define sipTypeHasSCC(wt) ((wt)->type->td_flags & SIP_TYPE_SCC) -#define sipTypeFlags(wt) (((wt)->type->td_flags & SIP_TYPE_FLAGS_MASK) >> SIP_TYPE_FLAGS_SHIFT) - - -#ifdef __cplusplus -} -#endif - - -#endif diff --git a/python/sip/siplib/sipint.h b/python/sip/siplib/sipint.h deleted file mode 100644 index 0a8f2459..00000000 --- a/python/sip/siplib/sipint.h +++ /dev/null @@ -1,121 +0,0 @@ -/* - * This file defines the SIP library internal interfaces. - * - * Copyright (c) 2007 - * Riverbank Computing Limited - * - * This file is part of SIP. - * - * This copy of SIP is licensed for use under the terms of the SIP License - * Agreement. See the file LICENSE for more details. - * - * SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ - - -#ifndef _SIPINT_H -#define _SIPINT_H - - -#ifdef __cplusplus -extern "C" { -#endif - -#undef TRUE -#define TRUE 1 - -#undef FALSE -#define FALSE 0 - - -/* - * This defines a single entry in an object map's hash table. - */ -typedef struct -{ - void *key; /* The C/C++ address. */ - sipWrapper *first; /* The first object at this address. */ -} sipHashEntry; - - -/* - * This defines the interface to a hash table class for mapping C/C++ addresses - * to the corresponding wrapped Python object. - */ -typedef struct -{ - int primeIdx; /* Index into table sizes. */ - unsigned long size; /* Size of hash table. */ - unsigned long unused; /* Nr. unused in hash table. */ - unsigned long stale; /* Nr. stale in hash table. */ - sipHashEntry *hash_array; /* Current hash table. */ -} sipObjectMap; - - -extern PyInterpreterState *sipInterpreter; /* The interpreter. */ - - -extern sipQtAPI *sipQtSupport; /* The Qt support API. */ -extern sipWrapperType *sipQObjectClass; /* The Python TQObject class. */ - -void *sip_api_convert_rx(sipWrapper *txSelf, const char *sigargs, - PyObject *rxObj, const char *slot, - const char **memberp); -void *sipGetRx(sipWrapper *txSelf,const char *sigargs,PyObject *rxObj, - const char *slot,const char **memberp); -int sip_api_emit_signal(PyObject *self,const char *sig,PyObject *sigargs); -PyObject *sip_api_get_sender(); -PyObject *sip_api_connect_rx(PyObject *txObj,const char *sig, - PyObject *rxObj,const char *slot, int type); -PyObject *sip_api_disconnect_rx(PyObject *txObj,const char *sig, - PyObject *rxObj,const char *slot); -sipSignature *sip_api_parse_signature(const char *sig); - - -/* - * These are part of the SIP API but are also used within the SIP module. - */ -void *sip_api_malloc(size_t nbytes); -void sip_api_free(void *mem); -void *sip_api_get_cpp_ptr(sipWrapper *w,sipWrapperType *type); -PyObject *sip_api_convert_from_instance(void *cppPtr, sipWrapperType *type, - PyObject *transferObj); -void sip_api_start_thread(void); -void sip_api_end_thread(void); -PyObject *sip_api_convert_from_void_ptr(void *val); -PyObject *sip_api_convert_from_named_enum(int eval, PyTypeObject *et); -int sip_api_wrapper_check(PyObject *o); -void sip_api_free_connection(sipSlotConnection *conn); -int sip_api_emit_to_slot(sipSlot *slot, PyObject *sigargs); -int sip_api_same_connection(sipSlotConnection *conn, void *tx, const char *sig, - PyObject *rxObj, const char *slot); - - -/* - * These are not part of the SIP API but are used within the SIP module. - */ -void sipFreeSlotList(sipSlotList *rx); -void sipSaveMethod(sipPyMethod *pm,PyObject *meth); -void *sipGetPending(sipWrapper **op, int *fp); -PyObject *sipWrapSimpleInstance(void *cppPtr, sipWrapperType *type, - sipWrapper *owner, int initflags); -int sipLambdaSlot(PyObject *slotObj); - -void sipOMInit(sipObjectMap *om); -void sipOMFinalise(sipObjectMap *om); -sipWrapper *sipOMFindObject(sipObjectMap *om,void *key,sipWrapperType *type); -void sipOMAddObject(sipObjectMap *om,sipWrapper *val); -int sipOMRemoveObject(sipObjectMap *om,sipWrapper *val); - -void sipSetBool(void *ptr,int val); - -void *sipGetAddress(sipWrapper *w); -void sipFindSigArgType(const char *name, size_t len, sipSigArg *at, int indir); - - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/python/sip/siplib/siplib.c b/python/sip/siplib/siplib.c deleted file mode 100644 index a715e830..00000000 --- a/python/sip/siplib/siplib.c +++ /dev/null @@ -1,7902 +0,0 @@ -/* - * SIP library code. - * - * Copyright (c) 2007 - * Riverbank Computing Limited - * - * This file is part of SIP. - * - * This copy of SIP is licensed for use under the terms of the SIP License - * Agreement. See the file LICENSE for more details. - * - * SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ - - -#include -#include -#include -#include -#include - -#include "sip.h" -#include "sipint.h" - - -/* - * These are the functions that make up the public and private SIP API. - */ -static void sip_api_bad_catcher_result(PyObject *method); -static void sip_api_bad_length_for_slice(SIP_SSIZE_T seqlen, - SIP_SSIZE_T slicelen); -static PyObject *sip_api_build_result(int *isErr, const char *fmt, ...); -static PyObject *sip_api_call_method(int *isErr, PyObject *method, - const char *fmt, ...); -static PyObject *sip_api_class_name(PyObject *self); -static SIP_SSIZE_T sip_api_convert_from_sequence_index(SIP_SSIZE_T idx, - SIP_SSIZE_T len); -static int sip_api_can_convert_to_instance(PyObject *pyObj, - sipWrapperType *type, int flags); -static int sip_api_can_convert_to_mapped_type(PyObject *pyObj, - const sipMappedType *mt, int flags); -static void *sip_api_convert_to_instance(PyObject *pyObj, sipWrapperType *type, - PyObject *transferObj, int flags, int *statep, int *iserrp); -static void *sip_api_convert_to_mapped_type(PyObject *pyObj, - const sipMappedType *mt, PyObject *transferObj, int flags, int *statep, - int *iserrp); -static void *sip_api_force_convert_to_instance(PyObject *pyObj, - sipWrapperType *type, PyObject *transferObj, int flags, int *statep, - int *iserrp); -static void *sip_api_force_convert_to_mapped_type(PyObject *pyObj, - const sipMappedType *mt, PyObject *transferObj, int flags, int *statep, - int *iserrp); -static void sip_api_release_instance(void *cpp, sipWrapperType *type, - int state); -static void sip_api_release_mapped_type(void *cpp, const sipMappedType *mt, - int state); -static PyObject *sip_api_convert_from_new_instance(void *cpp, - sipWrapperType *type, PyObject *transferObj); -static PyObject *sip_api_convert_from_mapped_type(void *cpp, - const sipMappedType *mt, PyObject *transferObj); -static void *sip_api_convert_to_cpp(PyObject *sipSelf, sipWrapperType *type, - int *iserrp); -static int sip_api_get_state(PyObject *transferObj); -static const sipMappedType *sip_api_find_mapped_type(const char *type); -static PyObject *sip_api_get_wrapper(void *cppPtr, sipWrapperType *type); -static sipWrapperType *sip_api_map_int_to_class(int typeInt, - const sipIntTypeClassMap *map, int maplen); -static sipWrapperType *sip_api_map_string_to_class(const char *typeString, - const sipStringTypeClassMap *map, int maplen); -static int sip_api_parse_result(int *isErr, PyObject *method, PyObject *res, - const char *fmt, ...); -static void sip_api_trace(unsigned mask,const char *fmt,...); -static void sip_api_transfer(PyObject *self, int toCpp); -static void sip_api_transfer_back(PyObject *self); -static void sip_api_transfer_to(PyObject *self, PyObject *owner); -static int sip_api_export_module(sipExportedModuleDef *client, - unsigned api_major, unsigned api_minor, PyObject *mod_dict); -static int sip_api_parse_args(int *argsParsedp, PyObject *sipArgs, - const char *fmt, ...); -static int sip_api_parse_pair(int *argsParsedp, PyObject *sipArg0, - PyObject *sipArg1, const char *fmt, ...); -static void sip_api_common_ctor(sipMethodCache *cache, int nrmeths); -static void sip_api_common_dtor(sipWrapper *sipSelf); -static void *sip_api_convert_to_void_ptr(PyObject *obj); -static void sip_api_no_function(int argsParsed, const char *func); -static void sip_api_no_method(int argsParsed, const char *classname, - const char *method); -static void sip_api_abstract_method(const char *classname, const char *method); -static void sip_api_bad_class(const char *classname); -static void sip_api_bad_set_type(const char *classname, const char *var); -static void *sip_api_get_complex_cpp_ptr(sipWrapper *w); -static PyObject *sip_api_is_py_method(sip_gilstate_t *gil, - sipMethodCache *pymc, sipWrapper *sipSelf, char *cname, char *mname); -static void sip_api_call_hook(const char *hookname); -static void sip_api_raise_unknown_exception(void); -static void sip_api_raise_class_exception(sipWrapperType *type, void *ptr); -static void sip_api_raise_sub_class_exception(sipWrapperType *type, void *ptr); -static int sip_api_add_class_instance(PyObject *dict, const char *name, - void *cppPtr, sipWrapperType *wt); -static int sip_api_add_mapped_type_instance(PyObject *dict, const char *name, - void *cppPtr, const sipMappedType *mt); -static int sip_api_add_enum_instance(PyObject *dict, const char *name, - int value, PyTypeObject *type); -static void sip_api_bad_operator_arg(PyObject *self, PyObject *arg, - sipPySlotType st); -static PyObject *sip_api_pyslot_extend(sipExportedModuleDef *mod, - sipPySlotType st, sipWrapperType *type, PyObject *arg0, - PyObject *arg1); -static void sip_api_add_delayed_dtor(sipWrapper *w); -static unsigned long sip_api_long_as_unsigned_long(PyObject *o); -static int sip_api_export_symbol(const char *name, void *sym); -static void *sip_api_import_symbol(const char *name); -static int sip_api_register_int_types(PyObject *args); -static sipWrapperType *sip_api_find_class(const char *type); -static PyTypeObject *sip_api_find_named_enum(const char *type); -static char sip_api_string_as_char(PyObject *obj); -#if defined(HAVE_WCHAR_H) -static wchar_t sip_api_unicode_as_wchar(PyObject *obj); -static wchar_t *sip_api_unicode_as_wstring(PyObject *obj); -#else -static int sip_api_unicode_as_wchar(PyObject *obj); -static int *sip_api_unicode_as_wstring(PyObject *obj); -#endif - - -/* - * The data structure that represents the SIP API. - */ -static const sipAPIDef sip_api = { - /* This must be first. */ - sip_api_export_module, - /* - * The following are part of the public API. - */ - sip_api_bad_catcher_result, - sip_api_bad_length_for_slice, - sip_api_build_result, - sip_api_call_method, - sip_api_class_name, - sip_api_connect_rx, - sip_api_convert_from_sequence_index, - sip_api_can_convert_to_instance, - sip_api_can_convert_to_mapped_type, - sip_api_convert_to_instance, - sip_api_convert_to_mapped_type, - sip_api_force_convert_to_instance, - sip_api_force_convert_to_mapped_type, - sip_api_release_instance, - sip_api_release_mapped_type, - sip_api_convert_from_instance, - sip_api_convert_from_new_instance, - sip_api_convert_from_mapped_type, - sip_api_convert_to_cpp, - sip_api_get_state, - sip_api_find_mapped_type, - sip_api_disconnect_rx, - sip_api_emit_signal, - sip_api_free, - sip_api_get_sender, - sip_api_get_wrapper, - sip_api_malloc, - sip_api_map_int_to_class, - sip_api_map_string_to_class, - sip_api_parse_result, - sip_api_trace, - sip_api_transfer, - sip_api_transfer_back, - sip_api_transfer_to, - sip_api_wrapper_check, - sip_api_long_as_unsigned_long, - /* - * The following may be used by Qt support code but by no other handwritten - * code. - */ - sip_api_convert_from_named_enum, - sip_api_convert_from_void_ptr, - sip_api_free_connection, - sip_api_emit_to_slot, - sip_api_same_connection, - sip_api_convert_rx, - /* - * The following are not part of the public API. - */ - sip_api_parse_args, - sip_api_parse_pair, - sip_api_common_ctor, - sip_api_common_dtor, - sip_api_convert_to_void_ptr, - sip_api_no_function, - sip_api_no_method, - sip_api_abstract_method, - sip_api_bad_class, - sip_api_bad_set_type, - sip_api_get_cpp_ptr, - sip_api_get_complex_cpp_ptr, - sip_api_is_py_method, - sip_api_call_hook, - sip_api_start_thread, - sip_api_end_thread, - sip_api_raise_unknown_exception, - sip_api_raise_class_exception, - sip_api_raise_sub_class_exception, - sip_api_add_class_instance, - sip_api_add_enum_instance, - sip_api_bad_operator_arg, - sip_api_pyslot_extend, - sip_api_add_delayed_dtor, - sip_api_add_mapped_type_instance, - /* - * The following are part of the public API. - */ - sip_api_export_symbol, - sip_api_import_symbol, - /* - * The following may be used by Qt support code but by no other handwritten - * code. - */ - sip_api_register_int_types, - sip_api_parse_signature, - /* - * The following are part of the public API. - */ - sip_api_find_class, - sip_api_find_named_enum, - /* - * The following are not part of the public API. - */ - sip_api_string_as_char, - sip_api_unicode_as_wchar, - sip_api_unicode_as_wstring, -}; - - -#define PARSE_OK 0x00000000 /* Parse is Ok so far. */ -#define PARSE_MANY 0x10000000 /* Too many arguments. */ -#define PARSE_FEW 0x20000000 /* Too few arguments. */ -#define PARSE_TYPE 0x30000000 /* Argument with a bad type. */ -#define PARSE_UNBOUND 0x40000000 /* Unbound method. */ -#define PARSE_FORMAT 0x50000000 /* Bad format character. */ -#define PARSE_RAISED 0x60000000 /* Exception already raised. */ -#define PARSE_STICKY 0x80000000 /* The error sticks. */ -#define PARSE_MASK 0xf0000000 - -/* - * Note that some of the following flags safely share values because they - * cannot be used at the same time. - */ -#define FORMAT_DEREF 0x01 /* The pointer will be dereferenced. */ -#define FORMAT_FACTORY 0x02 /* Implement /Factory/ in a VH. */ -#define FORMAT_TRANSFER 0x02 /* Implement /Transfer/. */ -#define FORMAT_NO_STATE 0x04 /* Don't return the C/C++ state. */ -#define FORMAT_TRANSFER_BACK 0x04 /* Implement /TransferBack/. */ -#define FORMAT_GET_WRAPPER 0x08 /* Implement /GetWrapper/. */ -#define FORMAT_NO_CONVERTORS 0x10 /* Suppress any convertors. */ -#define FORMAT_TRANSFER_THIS 0x20 /* Support for /TransferThis/. */ - -#define SIP_MC_FOUND 0x01 /* If we have looked for the method. */ -#define SIP_MC_ISMETH 0x02 /* If we looked and there was one. */ - -#define sipFoundMethod(m) ((m)->mcflags & SIP_MC_FOUND) -#define sipSetFoundMethod(m) ((m)->mcflags |= SIP_MC_FOUND) -#define sipIsMethod(m) ((m)->mcflags & SIP_MC_ISMETH) -#define sipSetIsMethod(m) ((m)->mcflags |= SIP_MC_ISMETH) - - -/* - * An entry in a linked list of name/symbol pairs. - */ -typedef struct _sipSymbol { - const char *name; /* The name. */ - void *symbol; /* The symbol. */ - struct _sipSymbol *next; /* The next in the list. */ -} sipSymbol; - - -/* - * An entry in a linked list of Python objects. - */ -typedef struct _sipPyObject { - PyObject *object; /* The Python object. */ - struct _sipPyObject *next; /* The next in the list. */ -} sipPyObject; - - -static PyTypeObject sipWrapperType_Type; -static sipWrapperType sipWrapper_Type; -static PyTypeObject sipVoidPtr_Type; - -PyInterpreterState *sipInterpreter = NULL; -sipQtAPI *sipQtSupport = NULL; -sipWrapperType *sipQObjectClass; -sipPyObject *sipRegisteredIntTypes = NULL; -sipSymbol *sipSymbolList = NULL; - - -/* - * Various strings as Python objects created as and when needed. - */ -static PyObject *licenseName = NULL; -static PyObject *licenseeName = NULL; -static PyObject *typeName = NULL; -static PyObject *timestampName = NULL; -static PyObject *signatureName = NULL; - -static sipObjectMap cppPyMap; /* The C/C++ to Python map. */ -static sipExportedModuleDef *clientList = NULL; /* List of registered clients. */ -static unsigned traceMask = 0; /* The current trace mask. */ - -static sipTypeDef *currentType = NULL; /* The type being created. */ - - -static void addSlots(sipWrapperType *wt, sipTypeDef *td); -static void initSlots(PyTypeObject *to, PyNumberMethods *nb, - PySequenceMethods *sq, PyMappingMethods *mp, sipPySlotDef *slots, - int force); -static void *findSlot(PyObject *self, sipPySlotType st); -static void *findSlotInType(sipTypeDef *td, sipPySlotType st); -static int objobjargprocSlot(PyObject *self, PyObject *arg1, PyObject *arg2, - sipPySlotType st); -static int ssizeobjargprocSlot(PyObject *self, SIP_SSIZE_T arg1, - PyObject *arg2, sipPySlotType st); -static PyObject *buildObject(PyObject *tup, const char *fmt, va_list va); -static int parsePass1(sipWrapper **selfp, int *selfargp, int *argsParsedp, - PyObject *sipArgs, const char *fmt, va_list va); -static int parsePass2(sipWrapper *self, int selfarg, int nrargs, - PyObject *sipArgs, const char *fmt, va_list va); -static int getSelfFromArgs(sipWrapperType *type, PyObject *args, int argnr, - sipWrapper **selfp); -static PyObject *createEnumMember(sipTypeDef *td, sipEnumMemberDef *enm); -static PyObject *handleGetLazyAttr(PyObject *nameobj, sipWrapperType *wt, - sipWrapper *w); -static int handleSetLazyAttr(PyObject *nameobj, PyObject *valobj, - sipWrapperType *wt, sipWrapper *w); -static int getNonStaticVariables(sipWrapperType *wt, sipWrapper *w, - PyObject **ndict); -static void findLazyAttr(sipWrapperType *wt, char *name, PyMethodDef **pmdp, - sipEnumMemberDef **enmp, PyMethodDef **vmdp, sipTypeDef **in); -static int compareMethodName(const void *key, const void *el); -static int compareEnumMemberName(const void *key, const void *el); -static int checkPointer(void *ptr); -static void *cast_cpp_ptr(void *ptr, sipWrapperType *src_type, - sipWrapperType *dst_type); -static void badArgs(int argsParsed, const char *classname, const char *method); -static void finalise(void); -static sipWrapperType *createType(sipExportedModuleDef *client, - sipTypeDef *type, PyObject *mod_dict); -static PyTypeObject *createEnum(sipExportedModuleDef *client, sipEnumDef *ed, - PyObject *mod_dict); -static const char *getBaseName(const char *name); -static PyObject *getBaseNameObject(const char *name); -static PyObject *createTypeDict(PyObject *mname); -static sipExportedModuleDef *getClassModule(sipEncodedClassDef *enc, - sipExportedModuleDef *em); -static sipWrapperType *getClassType(sipEncodedClassDef *enc, - sipExportedModuleDef *em); -static sipWrapperType *convertSubClass(sipWrapperType *type, void **cppPtr); -static void *getPtrTypeDef(sipWrapper *self, sipTypeDef **td); -static int addInstances(PyObject *dict, sipInstancesDef *id); -static int addVoidPtrInstances(PyObject *dict, sipVoidPtrInstanceDef *vi); -static int addCharInstances(PyObject *dict, sipCharInstanceDef *ci); -static int addStringInstances(PyObject *dict, sipStringInstanceDef *si); -static int addIntInstances(PyObject *dict, sipIntInstanceDef *ii); -static int addLongInstances(PyObject *dict, sipLongInstanceDef *li); -static int addUnsignedLongInstances(PyObject *dict, - sipUnsignedLongInstanceDef *uli); -static int addLongLongInstances(PyObject *dict, sipLongLongInstanceDef *lli); -static int addUnsignedLongLongInstances(PyObject *dict, - sipUnsignedLongLongInstanceDef *ulli); -static int addDoubleInstances(PyObject *dict, sipDoubleInstanceDef *di); -static int addEnumInstances(PyObject *dict, sipEnumInstanceDef *ei); -static int addSingleEnumInstance(PyObject *dict, const char *name, int value, - PyTypeObject *type); -static int addClassInstances(PyObject *dict, sipClassInstanceDef *ci); -static int addSingleClassInstance(PyObject *dict, const char *name, - void *cppPtr, sipWrapperType *wt, int initflags); -static int addLicense(PyObject *dict, sipLicenseDef *lc); -static PyObject *cast(PyObject *self, PyObject *args); -static PyObject *callDtor(PyObject *self, PyObject *args); -static PyObject *isDeleted(PyObject *self, PyObject *args); -static PyObject *setDeleted(PyObject *self, PyObject *args); -static PyObject *setTraceMask(PyObject *self, PyObject *args); -static PyObject *wrapInstance(PyObject *self, PyObject *args); -static PyObject *unwrapInstance(PyObject *self, PyObject *args); -static PyObject *transfer(PyObject *self, PyObject *args); -static PyObject *transferBack(PyObject *self, PyObject *args); -static PyObject *transferTo(PyObject *self, PyObject *args); -static int sipWrapperType_Check(PyObject *op); -static void addToParent(sipWrapper *self, sipWrapper *owner); -static void removeFromParent(sipWrapper *self); -static sipWrapperType *findClass(sipExportedModuleDef *emd, const char *name, - size_t len); -static int findClassArg(sipExportedModuleDef *emd, const char *name, - size_t len, sipSigArg *at, int indir); -static int findMtypeArg(sipMappedType **mttab, const char *name, size_t len, - sipSigArg *at, int indir); -static PyTypeObject *findEnum(sipExportedModuleDef *emd, const char *name, - size_t len); -static int findEnumArg(sipExportedModuleDef *emd, const char *name, size_t len, - sipSigArg *at, int indir); -static int sameScopedName(const char *pyname, const char *name, size_t len); -static int nameEq(const char *with, const char *name, size_t len); -static int isExactWrappedType(sipWrapperType *wt); -static void release(void *addr, sipTypeDef *td, int state); -static void callPyDtor(sipWrapper *self); -static int qt_and_sip_api_3_4(void); -static int visitSlot(sipSlot *slot, visitproc visit, void *arg); -static void clearAnyLambda(sipSlot *slot); -static int parseCharArray(PyObject *obj, char **ap, int *aszp); -static int parseChar(PyObject *obj, char *ap); -static int parseCharString(PyObject *obj, char **ap); -#if defined(HAVE_WCHAR_H) -static int parseWCharArray(PyObject *obj, wchar_t **ap, int *aszp); -static int parseWChar(PyObject *obj, wchar_t *ap); -static int parseWCharString(PyObject *obj, wchar_t **ap); -#else -static void raiseNoWChar(); -#endif - - -/* - * The Python module initialisation function. - */ -#if defined(SIP_STATIC_MODULE) -void initsip(void) -#else -PyMODINIT_FUNC initsip(void) -#endif -{ - static PyMethodDef methods[] = { - {"cast", cast, METH_VARARGS, NULL}, - {"delete", callDtor, METH_VARARGS, NULL}, - {"isdeleted", isDeleted, METH_VARARGS, NULL}, - {"setdeleted", setDeleted, METH_VARARGS, NULL}, - {"settracemask", setTraceMask, METH_VARARGS, NULL}, - {"transfer", transfer, METH_VARARGS, NULL}, - {"transferback", transferBack, METH_VARARGS, NULL}, - {"transferto", transferTo, METH_VARARGS, NULL}, - {"wrapinstance", wrapInstance, METH_VARARGS, NULL}, - {"unwrapinstance", unwrapInstance, METH_VARARGS, NULL}, - {NULL, NULL, 0, NULL} - }; - - int rc; - PyObject *mod, *mod_dict, *obj; - -#ifdef WITH_THREAD - PyEval_InitThreads(); -#endif - - /* Initialise the types. */ - sipWrapperType_Type.tp_base = &PyType_Type; - - if (PyType_Ready(&sipWrapperType_Type) < 0) - Py_FatalError("sip: Failed to initialise sip.wrappertype type"); - - if (PyType_Ready((PyTypeObject *)&sipWrapper_Type) < 0) - Py_FatalError("sip: Failed to initialise sip.wrapper type"); - - if (PyType_Ready(&sipVoidPtr_Type) < 0) - Py_FatalError("sip: Failed to initialise sip.voidptr type"); - - mod = Py_InitModule("sip", methods); - mod_dict = PyModule_GetDict(mod); - - /* Publish the SIP API. */ - if ((obj = PyCObject_FromVoidPtr((void *)&sip_api, NULL)) == NULL) - Py_FatalError("sip: Failed to create _C_API object"); - - rc = PyDict_SetItemString(mod_dict, "_C_API", obj); - Py_DECREF(obj); - - if (rc < 0) - Py_FatalError("sip: Failed to add _C_API object to module dictionary"); - - /* Add the SIP version number, but don't worry about errors. */ - if ((obj = PyInt_FromLong(SIP_VERSION)) != NULL) - { - PyDict_SetItemString(mod_dict, "SIP_VERSION", obj); - Py_DECREF(obj); - } - - if ((obj = PyString_FromString(SIP_VERSION_STR)) != NULL) - { - PyDict_SetItemString(mod_dict, "SIP_VERSION_STR", obj); - Py_DECREF(obj); - } - - /* Add the type objects, but don't worry about errors. */ - PyDict_SetItemString(mod_dict, "wrappertype", (PyObject *)&sipWrapperType_Type); - PyDict_SetItemString(mod_dict, "wrapper", (PyObject *)&sipWrapper_Type); - PyDict_SetItemString(mod_dict, "voidptr", (PyObject *)&sipVoidPtr_Type); - - /* Initialise the module if it hasn't already been done. */ - if (sipInterpreter == NULL) - { - Py_AtExit(finalise); - - /* Initialise the object map. */ - sipOMInit(&cppPyMap); - - sipQtSupport = NULL; - - /* - * Get the current interpreter. This will be shared between all - * threads. - */ - sipInterpreter = PyThreadState_Get()->interp; - } -} - - -/* - * Display a printf() style message to stderr according to the current trace - * mask. - */ -static void sip_api_trace(unsigned mask, const char *fmt, ...) -{ - va_list ap; - - va_start(ap,fmt); - - if (mask & traceMask) - vfprintf(stderr, fmt, ap); - - va_end(ap); -} - - -/* - * Set the trace mask. - */ -static PyObject *setTraceMask(PyObject *self, PyObject *args) -{ - unsigned new_mask; - - if (PyArg_ParseTuple(args, "I:settracemask", &new_mask)) - { - traceMask = new_mask; - - Py_INCREF(Py_None); - return Py_None; - } - - return NULL; -} - - -/* - * Transfer the ownership of an instance to C/C++. - */ -static PyObject *transferTo(PyObject *self, PyObject *args) -{ - PyObject *w, *owner; - - if (PyArg_ParseTuple(args, "O!O:transferto", &sipWrapper_Type, &w, &owner)) - { - if (owner == Py_None) - owner = NULL; - else if (!sip_api_wrapper_check(owner)) - { - PyErr_Format(PyExc_TypeError, "transferto() argument 2 must be sip.wrapper, not %s", owner->ob_type->tp_name); - return NULL; - } - - sip_api_transfer_to(w, owner); - - Py_INCREF(Py_None); - return Py_None; - } - - return NULL; -} - - -/* - * Transfer the ownership of an instance to Python. - */ -static PyObject *transferBack(PyObject *self, PyObject *args) -{ - PyObject *w; - - if (PyArg_ParseTuple(args, "O!:transferback", &sipWrapper_Type, &w)) - { - sip_api_transfer_back(w); - - Py_INCREF(Py_None); - return Py_None; - } - - return NULL; -} - - -/* - * Transfer the ownership of an instance. This is deprecated. - */ -static PyObject *transfer(PyObject *self, PyObject *args) -{ - PyObject *w; - int toCpp; - - if (PyArg_ParseTuple(args, "O!i:transfer", &sipWrapper_Type, &w, &toCpp)) - { - if (toCpp) - sip_api_transfer_to(w, NULL); - else - sip_api_transfer_back(w); - - Py_INCREF(Py_None); - return Py_None; - } - - return NULL; -} - - -/* - * Cast an instance to one of it's sub or super-classes by returning a new - * Python object with the superclass type wrapping the same C++ instance. - */ -static PyObject *cast(PyObject *self, PyObject *args) -{ - sipWrapper *w; - sipWrapperType *wt, *type; - void *addr; - PyTypeObject *ft, *tt; - - if (!PyArg_ParseTuple(args, "O!O!:cast", &sipWrapper_Type, &w, &sipWrapperType_Type, &wt)) - return NULL; - - ft = ((PyObject *)w)->ob_type; - tt = (PyTypeObject *)wt; - - if (ft == tt || PyType_IsSubtype(tt, ft)) - type = NULL; - else if (PyType_IsSubtype(ft, tt)) - type = wt; - else - { - PyErr_SetString(PyExc_TypeError, "argument 1 of sip.cast() must be an instance of a sub or super-type of argument 2"); - return NULL; - } - - if ((addr = sip_api_get_cpp_ptr(w, type)) == NULL) - return NULL; - - /* - * We don't put this new object into the map so that the original object is - * always found. It would also totally confuse the map logic. - */ - return sipWrapSimpleInstance(addr, wt, NULL, (w->flags | SIP_NOT_IN_MAP) & ~SIP_PY_OWNED); -} - - -/* - * Call an instance's dtor. - */ -static PyObject *callDtor(PyObject *self, PyObject *args) -{ - sipWrapper *w; - void *addr; - sipTypeDef *td; - - if (!PyArg_ParseTuple(args, "O!:delete", &sipWrapper_Type, &w)) - return NULL; - - addr = getPtrTypeDef(w, &td); - - if (checkPointer(addr) < 0) - return NULL; - - /* - * Transfer ownership to C++ so we don't try to release it again when the - * Python object is garbage collected. - */ - removeFromParent(w); - sipResetPyOwned(w); - - release(addr, td, w->flags); - - Py_INCREF(Py_None); - return Py_None; -} - - -/* - * Check if an instance still exists without raising an exception. - */ -static PyObject *isDeleted(PyObject *self, PyObject *args) -{ - sipWrapper *w; - PyObject *res; - - if (!PyArg_ParseTuple(args, "O!:isdeleted", &sipWrapper_Type, &w)) - return NULL; - - res = (sipGetAddress(w) == NULL ? Py_True : Py_False); - - Py_INCREF(res); - return res; -} - - -/* - * Mark an instance as having been deleted. - */ -static PyObject *setDeleted(PyObject *self, PyObject *args) -{ - sipWrapper *w; - - if (!PyArg_ParseTuple(args, "O!:setdeleted", &sipWrapper_Type, &w)) - return NULL; - - /* - * Transfer ownership to C++ so we don't try to release it when the Python - * object is garbage collected. - */ - removeFromParent(w); - sipResetPyOwned(w); - - w->u.cppPtr = NULL; - - Py_INCREF(Py_None); - return Py_None; -} - - -/* - * Unwrap an instance. - */ -static PyObject *unwrapInstance(PyObject *self, PyObject *args) -{ - sipWrapper *w; - - if (PyArg_ParseTuple(args, "O!:unwrapinstance", &sipWrapper_Type, &w)) - { - void *addr; - - /* - * We just get the pointer but don't try and cast it (which isn't - * needed and wouldn't work with the way casts are currently - * implemented if we are unwrapping something derived from a wrapped - * class). - */ - if ((addr = sip_api_get_cpp_ptr(w, NULL)) == NULL) - return NULL; - - return PyLong_FromVoidPtr(addr); - } - - return NULL; -} - - -/* - * Wrap an instance. - */ -static PyObject *wrapInstance(PyObject *self, PyObject *args) -{ - unsigned long addr; - sipWrapperType *wt; - - if (PyArg_ParseTuple(args, "kO!:wrapinstance", &addr, &sipWrapperType_Type, &wt)) - return sip_api_convert_from_instance((void *)addr, wt, NULL); - - return NULL; -} - - -/* - * Register a client module. A negative value is returned and an exception - * raised if there was an error. Not normally needed by handwritten code. - */ -static int sip_api_export_module(sipExportedModuleDef *client, - unsigned api_major, unsigned api_minor, PyObject *mod_dict) -{ - sipExportedModuleDef *em; - sipImportedModuleDef *im; - sipSubClassConvertorDef *scc; - sipWrapperType **mw; - sipEnumMemberDef *emd; - sipInitExtenderDef *ie; - int i; - - /* Check that we can support it. */ - - if (api_major != SIP_API_MAJOR_NR || api_minor > SIP_API_MINOR_NR) - { -#if SIP_API_MINOR_NR > 0 - PyErr_Format(PyExc_RuntimeError, "the sip module supports API v%d.0 to v%d.%d but the %s module requires API v%d.%d", SIP_API_MAJOR_NR, SIP_API_MAJOR_NR, SIP_API_MINOR_NR, client->em_name, api_major,api_minor); -#else - PyErr_Format(PyExc_RuntimeError, "the sip module supports API v%d.0 but the %s module requires API v%d.%d", SIP_API_MAJOR_NR, client->em_name, api_major,api_minor); -#endif - - return -1; - } - - /* Convert the module name to an object. */ - if ((client->em_nameobj = PyString_FromString(client->em_name)) == NULL) - return -1; - - for (em = clientList; em != NULL; em = em->em_next) - { - /* SIP clients must have unique names. */ - if (strcmp(em->em_name, client->em_name) == 0) - { - PyErr_Format(PyExc_RuntimeError, "the sip module has already registered a module called %s", client->em_name); - - return -1; - } - - /* Only one module can claim to wrap TQObject. */ - if (em->em_qt_api != NULL && client->em_qt_api != NULL) - { - PyErr_Format(PyExc_RuntimeError, "the %s and %s modules both wrap the TQObject class", client->em_name, em->em_name); - - return -1; - } - } - - /* Import any required modules. */ - if ((im = client->em_imports) != NULL) - { - while (im->im_name != NULL) - { - PyObject *mod; - - if ((mod = PyImport_ImportModule(im->im_name)) == NULL) - return -1; - - for (em = clientList; em != NULL; em = em->em_next) - if (strcmp(em->em_name, im->im_name) == 0) - break; - - if (em == NULL) - { - PyErr_Format(PyExc_RuntimeError, "the %s module failed to register with the sip module", im->im_name); - - return -1; - } - - /* Check the versions are compatible. */ - if (im->im_version >= 0 || em->em_version >= 0) - if (im->im_version != em->em_version) - { - PyErr_Format(PyExc_RuntimeError, "the %s module is version %d but the %s module requires version %d", em->em_name, em->em_version, client->em_name, im->im_version); - - return -1; - } - - /* Save the imported module. */ - im->im_module = em; - - ++im; - } - } - - /* Create the module's classes. */ - if ((mw = client->em_types) != NULL) - for (i = 0; i < client->em_nrtypes; ++i, ++mw) - { - sipTypeDef *td = (sipTypeDef *)*mw; - - /* Skip external classes. */ - if (td == NULL) - continue; - - /* See if this is a namespace extender. */ - if (td->td_name == NULL) - { - sipTypeDef **last; - sipWrapperType *wt = getClassType(&td->td_scope, client); - - /* Append this type to the real one. */ - last = &wt->type->td_nsextender; - - while (*last != NULL) - last = &(*last)->td_nsextender; - - *last = td; - - /* - * Set this so that the extender's original - * module can be found. - */ - td->td_module = client; - - /* - * Save the real namespace type so that it is - * the correct scope for any enums or classes - * defined in this module. - */ - *mw = wt; - } - else if ((*mw = createType(client, td, mod_dict)) == NULL) - return -1; - } - - /* Set any Qt support API. */ - if (client->em_qt_api != NULL) - { - sipQtSupport = client->em_qt_api; - sipQObjectClass = *sipQtSupport->qt_qobject; - } - - /* Append any initialiser extenders to the relevant classes. */ - if ((ie = client->em_initextend) != NULL) - while (ie->ie_extender != NULL) - { - sipWrapperType *wt = getClassType(&ie->ie_class, client); - - ie->ie_next = wt->iextend; - wt->iextend = ie; - - ++ie; - } - - /* Set the base class object for any sub-class convertors. */ - if ((scc = client->em_convertors) != NULL) - while (scc->scc_convertor != NULL) - { - scc->scc_basetype = getClassType(&scc->scc_base, client); - - ++scc; - } - - /* Create the module's enums. */ - if (client->em_nrenums != 0) - { - if ((client->em_enums = sip_api_malloc(client->em_nrenums * sizeof (PyTypeObject *))) == NULL) - return -1; - - for (i = 0; i < client->em_nrenums; ++i) - if ((client->em_enums[i] = createEnum(client, &client->em_enumdefs[i], mod_dict)) == NULL) - return -1; - } - - for (emd = client->em_enummembers, i = 0; i < client->em_nrenummembers; ++i, ++emd) - { - PyObject *mo; - - if ((mo = sip_api_convert_from_named_enum(emd->em_val, client->em_enums[emd->em_enum])) == NULL) - return -1; - - if (PyDict_SetItemString(mod_dict, emd->em_name, mo) < 0) - return -1; - - Py_DECREF(mo); - } - - - /* - * Add any class static instances. We need to do this once all types are - * fully formed because of potential interdependencies. - */ - if ((mw = client->em_types) != NULL) - for (i = 0; i < client->em_nrtypes; ++i) - { - sipWrapperType *wt; - - if ((wt = *mw++) != NULL && addInstances(((PyTypeObject *)wt)->tp_dict, &wt->type->td_instances) < 0) - return -1; - } - - /* Add any global static instances. */ - if (addInstances(mod_dict, &client->em_instances) < 0) - return -1; - - /* Add any license. */ - if (client->em_license != NULL && addLicense(mod_dict, client->em_license) < 0) - return -1; - - /* See if the new module satisfies any outstanding external types. */ - for (em = clientList; em != NULL; em = em->em_next) - { - sipExternalTypeDef *etd; - - if (em->em_external == NULL) - continue; - - for (etd = em->em_external; etd->et_nr >= 0; ++etd) - { - if (etd->et_name == NULL) - continue; - - mw = client->em_types; - - for (i = 0; i < client->em_nrtypes; ++i) - { - sipWrapperType *wt; - const char *tname; - - if ((wt = *mw++) == NULL) - continue; - - tname = strchr(wt->type->td_name, '.') + 1; - - if (strcmp(etd->et_name, tname) == 0) - { - em->em_types[etd->et_nr] = wt; - etd->et_name = NULL; - - break; - } - } - } - } - - /* Add to the list of client modules. */ - client->em_next = clientList; - clientList = client; - - return 0; -} - - -/* - * Called by the interpreter to do any final clearing up, just in case the - * interpreter will re-start. - */ -static void finalise(void) -{ - sipExportedModuleDef *em; - - /* Mark the Python API as unavailable. */ - sipInterpreter = NULL; - - /* Handle any delayed dtors. */ - for (em = clientList; em != NULL; em = em->em_next) - if (em->em_ddlist != NULL) - { - em->em_delayeddtors(em->em_ddlist); - - /* Free the list. */ - do - { - sipDelayedDtor *dd = em->em_ddlist; - - em->em_ddlist = dd->dd_next; - sip_api_free(dd); - } - while (em->em_ddlist != NULL); - } - - licenseName = NULL; - licenseeName = NULL; - typeName = NULL; - timestampName = NULL; - signatureName = NULL; - - /* Release all memory we've allocated directly. */ - sipOMFinalise(&cppPyMap); - - /* Re-initialise those globals that (might) need it. */ - clientList = NULL; -} - - -/* - * Add a wrapped C/C++ pointer to the list of delayed dtors. - */ -static void sip_api_add_delayed_dtor(sipWrapper *w) -{ - void *ptr; - sipTypeDef *td; - sipExportedModuleDef *em; - - if ((ptr = getPtrTypeDef(w, &td)) == NULL) - return; - - /* Find the defining module. */ - for (em = clientList; em != NULL; em = em->em_next) - { - int i; - - for (i = 0; i < em->em_nrtypes; ++i) - if (em->em_types[i] != NULL && em->em_types[i]->type == td) - { - sipDelayedDtor *dd; - - if ((dd = sip_api_malloc(sizeof (sipDelayedDtor))) == NULL) - return; - - /* Add to the list. */ - dd->dd_ptr = ptr; - dd->dd_name = getBaseName(td->td_name); - dd->dd_isderived = sipIsDerived(w); - dd->dd_next = em->em_ddlist; - - em->em_ddlist = dd; - - return; - } - } -} - - -/* - * A wrapper around the Python memory allocater that will raise an exception if - * if the allocation fails. - */ -void *sip_api_malloc(size_t nbytes) -{ - void *mem; - - if ((mem = PyMem_Malloc(nbytes)) == NULL) - PyErr_NoMemory(); - - return mem; -} - - -/* - * A wrapper around the Python memory de-allocater. - */ -void sip_api_free(void *mem) -{ - PyMem_Free(mem); -} - - -/* - * Extend a Python slot by looking in other modules to see if there is an - * extender function that can handle the arguments. - */ -static PyObject *sip_api_pyslot_extend(sipExportedModuleDef *mod, - sipPySlotType st, sipWrapperType *type, - PyObject *arg0, PyObject *arg1) -{ - sipExportedModuleDef *em; - - /* Go through each module. */ - for (em = clientList; em != NULL; em = em->em_next) - { - sipPySlotExtenderDef *ex; - - /* Skip the module that couldn't handle the arguments. */ - if (em == mod) - continue; - - /* Skip if the module doesn't have any extenders. */ - if (em->em_slotextend == NULL) - continue; - - /* Go through each extender. */ - for (ex = em->em_slotextend; ex->pse_func != NULL; ++ex) - { - PyObject *res; - - /* Skip if not the right slot type. */ - if (ex->pse_type != st) - continue; - - /* Check against the type if one was given. */ - if (type != NULL && type != getClassType(&ex->pse_class, NULL)) - continue; - - PyErr_Clear(); - - res = ((binaryfunc)ex->pse_func)(arg0, arg1); - - if (res != Py_NotImplemented) - return res; - } - } - - /* The arguments couldn't handled anywhere. */ - PyErr_Clear(); - - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; -} - - -/* - * Call the Python re-implementation of a C++ virtual. - */ -static PyObject *sip_api_call_method(int *isErr, PyObject *method, - const char *fmt, ...) -{ - PyObject *args, *res; - va_list va; - - va_start(va,fmt); - - if ((args = PyTuple_New(strlen(fmt))) != NULL && buildObject(args,fmt,va) != NULL) - res = PyEval_CallObject(method,args); - else - { - res = NULL; - - if (isErr != NULL) - *isErr = TRUE; - } - - Py_XDECREF(args); - - va_end(va); - - return res; -} - - -/* - * Build a result object based on a format string. - */ -static PyObject *sip_api_build_result(int *isErr, const char *fmt, ...) -{ - PyObject *res = NULL; - int badfmt, tupsz; - va_list va; - - va_start(va,fmt); - - /* Basic validation of the format string. */ - - badfmt = FALSE; - - if (*fmt == '(') - { - char *ep; - - if ((ep = strchr(fmt,')')) == NULL || ep[1] != '\0') - badfmt = TRUE; - else - tupsz = ep - fmt - 1; - } - else if (strlen(fmt) == 1) - tupsz = -1; - else - badfmt = TRUE; - - if (badfmt) - PyErr_Format(PyExc_SystemError,"sipBuildResult(): invalid format string \"%s\"",fmt); - else if (tupsz < 0 || (res = PyTuple_New(tupsz)) != NULL) - res = buildObject(res,fmt,va); - - va_end(va); - - if (res == NULL && isErr != NULL) - *isErr = TRUE; - - return res; -} - - -/* - * Get the values off the stack and put them into an object. - */ -static PyObject *buildObject(PyObject *obj, const char *fmt, va_list va) -{ - char ch, termch; - int i; - - /* - * The format string has already been checked that it is properly - * formed if it is enclosed in parenthesis. - */ - if (*fmt == '(') - { - termch = ')'; - ++fmt; - } - else - termch = '\0'; - - i = 0; - - while ((ch = *fmt++) != termch) - { - PyObject *el; - - switch (ch) - { - case 'a': - { - char *s; - int l; - - s = va_arg(va, char *); - l = va_arg(va, int); - - if (s != NULL) - el = PyString_FromStringAndSize(s, (SIP_SSIZE_T)l); - else - { - Py_INCREF(Py_None); - el = Py_None; - } - } - - break; - - case 'A': -#if defined(HAVE_WCHAR_H) - { - wchar_t *s; - int l; - - s = va_arg(va, wchar_t *); - l = va_arg(va, int); - - if (s != NULL) - el = PyUnicode_FromWideChar(s, (SIP_SSIZE_T)l); - else - { - Py_INCREF(Py_None); - el = Py_None; - } - } -#else - raiseNoWChar(); - el = NULL; -#endif - - break; - - case 'b': - el = PyBool_FromLong(va_arg(va,int)); - break; - - case 'c': - { - char c = va_arg(va, int); - - el = PyString_FromStringAndSize(&c,1); - } - - break; - - case 'w': -#if defined(HAVE_WCHAR_H) - { - wchar_t c = va_arg(va, int); - - el = PyUnicode_FromWideChar(&c, 1); - } -#else - raiseNoWChar(); - el = NULL; -#endif - - break; - - case 'e': - el = PyInt_FromLong(va_arg(va,int)); - break; - - case 'E': - { - int ev = va_arg(va, int); - PyTypeObject *et = va_arg(va, PyTypeObject *); - - el = sip_api_convert_from_named_enum(ev, et); - } - - break; - - case 'd': - case 'f': - el = PyFloat_FromDouble(va_arg(va,double)); - break; - - case 'h': - case 'i': - el = PyInt_FromLong(va_arg(va,int)); - break; - - case 'l': - el = PyLong_FromLong(va_arg(va,long)); - break; - - case 'm': - el = PyLong_FromUnsignedLong(va_arg(va, unsigned long)); - break; - - case 'n': -#if defined(HAVE_LONG_LONG) - el = PyLong_FromLongLong(va_arg(va, PY_LONG_LONG)); -#else - el = PyLong_FromLong(va_arg(va, long)); -#endif - break; - - case 'o': -#if defined(HAVE_LONG_LONG) - el = PyLong_FromUnsignedLongLong(va_arg(va, unsigned PY_LONG_LONG)); -#else - el = PyLong_FromUnsignedLong(va_arg(va, unsigned long)); -#endif - break; - - case 's': - { - char *s = va_arg(va, char *); - - if (s != NULL) - el = PyString_FromString(s); - else - { - Py_INCREF(Py_None); - el = Py_None; - } - } - - break; - - case 'x': -#if defined(HAVE_WCHAR_H) - { - wchar_t *s = va_arg(va, wchar_t *); - - if (s != NULL) - el = PyUnicode_FromWideChar(s, (SIP_SSIZE_T)wcslen(s)); - else - { - Py_INCREF(Py_None); - el = Py_None; - } - } -#else - raiseNoWChar(); - el = NULL; -#endif - - break; - - case 't': - case 'u': - el = PyLong_FromUnsignedLong(va_arg(va, unsigned)); - break; - - case 'B': - { - void *p = va_arg(va,void *); - sipWrapperType *wt = va_arg(va, sipWrapperType *); - PyObject *xfer = va_arg(va, PyObject *); - - el = sip_api_convert_from_new_instance(p, wt, xfer); - } - - break; - - case 'C': - { - void *p = va_arg(va,void *); - sipWrapperType *wt = va_arg(va, sipWrapperType *); - PyObject *xfer = va_arg(va, PyObject *); - - el = sip_api_convert_from_instance(p, wt, xfer); - } - - break; - - case 'D': - { - void *p = va_arg(va, void *); - const sipMappedType *mt = va_arg(va, const sipMappedType *); - PyObject *xfer = va_arg(va, PyObject *); - - el = sip_api_convert_from_mapped_type(p, mt, xfer); - } - - break; - - case 'M': - case 'O': - { - void *sipCpp = va_arg(va,void *); - sipWrapperType *wt = va_arg(va,sipWrapperType *); - - el = sip_api_convert_from_instance(sipCpp,wt,NULL); - } - - break; - - case 'N': - case 'P': - { - void *sipCpp = va_arg(va,void *); - sipWrapperType *wt = va_arg(va,sipWrapperType *); - - el = sip_api_convert_from_new_instance(sipCpp,wt,NULL); - } - - break; - - case 'R': - el = va_arg(va,PyObject *); - break; - - case 'S': - el = va_arg(va,PyObject *); - Py_INCREF(el); - break; - - case 'T': - { - void *sipCpp = va_arg(va,void *); - sipConvertFromFunc func = va_arg(va,sipConvertFromFunc); - - el = func(sipCpp, NULL); - } - - break; - - case 'V': - el = sip_api_convert_from_void_ptr(va_arg(va,void *)); - break; - - default: - PyErr_Format(PyExc_SystemError,"buildObject(): invalid format character '%c'",ch); - el = NULL; - } - - if (el == NULL) - { - Py_XDECREF(obj); - return NULL; - } - - if (obj == NULL) - return el; - - PyTuple_SET_ITEM(obj,i,el); - ++i; - } - - return obj; -} - - -/* - * Parse a result object based on a format string. - */ -static int sip_api_parse_result(int *isErr, PyObject *method, PyObject *res, - const char *fmt, ...) -{ - int tupsz, rc = 0; - va_list va; - - va_start(va,fmt); - - /* Basic validation of the format string. */ - - if (*fmt == '(') - { - char *ep; - - if ((ep = strchr(fmt,')')) == NULL || ep[1] != '\0') - { - PyErr_Format(PyExc_SystemError, "sipParseResult(): invalid format string \"%s\"", fmt); - rc = -1; - } - else - { - tupsz = ep - ++fmt; - - if (tupsz >= 0 && (!PyTuple_Check(res) || PyTuple_GET_SIZE(res) != tupsz)) - { - sip_api_bad_catcher_result(method); - rc = -1; - } - } - } - else - tupsz = -1; - - if (rc == 0) - { - char ch; - int i = 0; - - while ((ch = *fmt++) != '\0' && ch != ')' && rc == 0) - { - PyObject *arg; - int invalid = FALSE; - - if (tupsz > 0) - { - arg = PyTuple_GET_ITEM(res,i); - ++i; - } - else - arg = res; - - switch (ch) - { - case 'a': - { - char **p = va_arg(va, char **); - int *szp = va_arg(va, int *); - - if (parseCharArray(arg, p, szp) < 0) - invalid = TRUE; - } - - break; - - case 'A': -#if defined(HAVE_WCHAR_H) - { - wchar_t **p = va_arg(va, wchar_t **); - int *szp = va_arg(va, int *); - - if (parseWCharArray(arg, p, szp) < 0) - invalid = TRUE; - } -#else - raiseNoWChar(); - invalid = TRUE; -#endif - - break; - - case 'b': - { - int v = PyInt_AsLong(arg); - - if (PyErr_Occurred()) - invalid = TRUE; - else - sipSetBool(va_arg(va,void *),v); - } - - break; - - case 'c': - { - char *p = va_arg(va, char *); - - if (parseChar(arg, p) < 0) - invalid = TRUE; - } - - break; - - case 'w': -#if defined(HAVE_WCHAR_H) - { - wchar_t *p = va_arg(va, wchar_t *); - - if (parseWChar(arg, p) < 0) - invalid = TRUE; - } -#else - raiseNoWChar(); - invalid = TRUE; -#endif - - break; - - case 'd': - { - double v = PyFloat_AsDouble(arg); - - if (PyErr_Occurred()) - invalid = TRUE; - else - *va_arg(va,double *) = v; - } - - break; - - case 'e': - { - int v = PyInt_AsLong(arg); - - if (PyErr_Occurred()) - invalid = TRUE; - else - *va_arg(va,int *) = v; - } - - break; - - case 'E': - { - PyTypeObject *et = va_arg(va, PyTypeObject *); - int *p = va_arg(va, int *); - - if (PyObject_TypeCheck(arg, et)) - *p = PyInt_AsLong(arg); - else - invalid = TRUE; - } - - break; - - case 'f': - { - float v = PyFloat_AsDouble(arg); - - if (PyErr_Occurred()) - invalid = TRUE; - else - *va_arg(va,float *) = v; - } - - break; - - case 'h': - { - short v = PyInt_AsLong(arg); - - if (PyErr_Occurred()) - invalid = TRUE; - else - *va_arg(va,short *) = v; - } - - break; - - case 't': - { - unsigned short v = sip_api_long_as_unsigned_long(arg); - - if (PyErr_Occurred()) - invalid = TRUE; - else - *va_arg(va,unsigned short *) = v; - } - - break; - - case 'i': - { - int v = PyInt_AsLong(arg); - - if (PyErr_Occurred()) - invalid = TRUE; - else - *va_arg(va,int *) = v; - } - - break; - - case 'u': - { - unsigned v = sip_api_long_as_unsigned_long(arg); - - if (PyErr_Occurred()) - invalid = TRUE; - else - *va_arg(va,unsigned *) = v; - } - - break; - - case 'l': - { - long v = PyLong_AsLong(arg); - - if (PyErr_Occurred()) - invalid = TRUE; - else - *va_arg(va,long *) = v; - } - - break; - - case 'm': - { - unsigned long v = sip_api_long_as_unsigned_long(arg); - - if (PyErr_Occurred()) - invalid = TRUE; - else - *va_arg(va, unsigned long *) = v; - } - - break; - - case 'n': - { -#if defined(HAVE_LONG_LONG) - PY_LONG_LONG v = PyLong_AsLongLong(arg); -#else - long v = PyLong_AsLong(arg); -#endif - - if (PyErr_Occurred()) - invalid = TRUE; - else -#if defined(HAVE_LONG_LONG) - *va_arg(va, PY_LONG_LONG *) = v; -#else - *va_arg(va, long *) = v; -#endif - } - - break; - - case 'o': - { -#if defined(HAVE_LONG_LONG) - unsigned PY_LONG_LONG v = PyLong_AsUnsignedLongLong(arg); -#else - unsigned long v = PyLong_AsUnsignedLong(arg); -#endif - - if (PyErr_Occurred()) - invalid = TRUE; - else -#if defined(HAVE_LONG_LONG) - *va_arg(va, unsigned PY_LONG_LONG *) = v; -#else - *va_arg(va, unsigned long *) = v; -#endif - } - - break; - - case 's': - { - char **p = va_arg(va, char **); - - if (parseCharString(arg, p) < 0) - invalid = TRUE; - } - - break; - - case 'x': -#if defined(HAVE_WCHAR_H) - { - wchar_t **p = va_arg(va, wchar_t **); - - if (parseWCharString(arg, p) < 0) - invalid = TRUE; - } -#else - raiseNoWChar(); - invalid = TRUE; -#endif - - break; - - case 'C': - { - if (*fmt == '\0') - invalid = TRUE; - else - { - int flags = *fmt++ - '0'; - int iserr = FALSE; - sipWrapperType *type; - void **cpp; - int *state; - - type = va_arg(va, sipWrapperType *); - - if (flags & FORMAT_NO_STATE) - state = NULL; - else - state = va_arg(va, int *); - - cpp = va_arg(va, void **); - - *cpp = sip_api_force_convert_to_instance(arg, type, (flags & FORMAT_FACTORY ? arg : NULL), (flags & FORMAT_DEREF ? SIP_NOT_NONE : 0), state, &iserr); - - if (iserr) - invalid = TRUE; - } - } - - break; - - case 'D': - { - if (*fmt == '\0') - invalid = TRUE; - else - { - int flags = *fmt++ - '0'; - int iserr = FALSE; - const sipMappedType *mt; - void **cpp; - int *state; - - mt = va_arg(va, const sipMappedType *); - - if (flags & FORMAT_NO_STATE) - state = NULL; - else - state = va_arg(va, int *); - - cpp = va_arg(va, void **); - - *cpp = sip_api_force_convert_to_mapped_type(arg, mt, (flags & FORMAT_FACTORY ? arg : NULL), (flags & FORMAT_DEREF ? SIP_NOT_NONE : 0), state, &iserr); - - if (iserr) - invalid = TRUE; - } - } - - break; - - case 'L': - { - sipForceConvertToFunc func = va_arg(va,sipForceConvertToFunc); - void **sipCpp = va_arg(va,void **); - int iserr = FALSE; - - *sipCpp = func(arg,&iserr); - - if (iserr) - invalid = TRUE; - } - - break; - - case 'M': - { - sipForceConvertToFunc func = va_arg(va,sipForceConvertToFunc); - void **sipCpp = va_arg(va,void **); - int iserr = FALSE; - - *sipCpp = func(arg,&iserr); - - if (iserr || *sipCpp == NULL) - invalid = TRUE; - } - - break; - - case 'N': - { - PyTypeObject *type = va_arg(va,PyTypeObject *); - PyObject **p = va_arg(va,PyObject **); - - if (arg == Py_None || PyObject_TypeCheck(arg,type)) - { - Py_INCREF(arg); - *p = arg; - } - else - invalid = TRUE; - } - - break; - - case 'O': - Py_INCREF(arg); - *va_arg(va,PyObject **) = arg; - break; - - case 'T': - { - PyTypeObject *type = va_arg(va,PyTypeObject *); - PyObject **p = va_arg(va,PyObject **); - - if (PyObject_TypeCheck(arg,type)) - { - Py_INCREF(arg); - *p = arg; - } - else - invalid = TRUE; - } - - break; - - case 'V': - { - void *v = sip_api_convert_to_void_ptr(arg); - - if (PyErr_Occurred()) - invalid = TRUE; - else - *va_arg(va,void **) = v; - } - - break; - - case 'Z': - if (arg != Py_None) - invalid = TRUE; - - break; - - default: - PyErr_Format(PyExc_SystemError,"sipParseResult(): invalid format character '%c'",ch); - rc = -1; - } - - if (invalid) - { - sip_api_bad_catcher_result(method); - rc = -1; - break; - } - } - } - - va_end(va); - - if (isErr != NULL && rc < 0) - *isErr = TRUE; - - return rc; -} - - -/* - * A thin wrapper around PyLong_AsUnsignedLong() that works around a bug in - * Python versions prior to v2.4 where an integer (or a named enum) causes an - * error. - */ -static unsigned long sip_api_long_as_unsigned_long(PyObject *o) -{ -#if PY_VERSION_HEX < 0x02040000 - if (o != NULL && !PyLong_Check(o) && PyInt_Check(o)) - { - long v = PyInt_AsLong(o); - - if (v < 0) - { - PyErr_SetString(PyExc_OverflowError, - "can't convert negative value to unsigned long"); - - return (unsigned long)-1; - } - - return v; - } -#endif - - return PyLong_AsUnsignedLong(o); -} - - -/* - * Parse the arguments to a C/C++ function without any side effects. - */ -static int sip_api_parse_args(int *argsParsedp, PyObject *sipArgs, - const char *fmt, ...) -{ - int valid, nrargs, selfarg; - sipWrapper *self; - PyObject *single_arg; - va_list va; - - /* Previous sticky errors stop subsequent parses. */ - if (*argsParsedp & PARSE_STICKY) - return 0; - - /* See if we are parsing a tuple or a single argument. */ - if (PyTuple_Check(sipArgs)) - { - Py_INCREF(sipArgs); - nrargs = PyTuple_GET_SIZE(sipArgs); - } - else if ((single_arg = PyTuple_New(1)) != NULL) - { - Py_INCREF(sipArgs); - PyTuple_SET_ITEM(single_arg,0,sipArgs); - - sipArgs = single_arg; - nrargs = 1; - } - else - return 0; - - /* - * The first pass checks all the types and does conversions that are - * cheap and have no side effects. - */ - va_start(va,fmt); - valid = parsePass1(&self,&selfarg,&nrargs,sipArgs,fmt,va); - va_end(va); - - if (valid != PARSE_OK) - { - int pvalid, pnrargs; - - /* - * Use this error if there was no previous error, or if we - * have parsed more arguments this time, or if the previous - * error was that there were too many arguments. - */ - pvalid = (*argsParsedp & PARSE_MASK); - pnrargs = (*argsParsedp & ~PARSE_MASK); - - if (pvalid == PARSE_OK || pnrargs < nrargs || - (pnrargs == nrargs && pvalid == PARSE_MANY)) - *argsParsedp = valid | nrargs; - - Py_DECREF(sipArgs); - - return 0; - } - - /* - * The second pass does any remaining conversions now that we know we - * have the right signature. - */ - va_start(va,fmt); - valid = parsePass2(self,selfarg,nrargs,sipArgs,fmt,va); - va_end(va); - - if (valid != PARSE_OK) - { - *argsParsedp = valid | PARSE_STICKY; - - Py_DECREF(sipArgs); - - return 0; - } - - *argsParsedp = nrargs; - - Py_DECREF(sipArgs); - - return 1; -} - - -/* - * Parse a pair of arguments to a C/C++ function without any side effects. - */ -static int sip_api_parse_pair(int *argsParsedp, PyObject *sipArg0, - PyObject *sipArg1, const char *fmt, ...) -{ - int valid, nrargs, selfarg; - sipWrapper *self; - PyObject *args; - va_list va; - - /* Previous sticky errors stop subsequent parses. */ - if (*argsParsedp & PARSE_STICKY) - return 0; - - if ((args = PyTuple_New(2)) == NULL) - return 0; - - Py_INCREF(sipArg0); - PyTuple_SET_ITEM(args, 0, sipArg0); - - Py_INCREF(sipArg1); - PyTuple_SET_ITEM(args, 1, sipArg1); - - nrargs = 2; - - /* - * The first pass checks all the types and does conversions that are - * cheap and have no side effects. - */ - va_start(va,fmt); - valid = parsePass1(&self,&selfarg,&nrargs,args,fmt,va); - va_end(va); - - if (valid != PARSE_OK) - { - int pvalid, pnrargs; - - /* - * Use this error if there was no previous error, or if we - * have parsed more arguments this time, or if the previous - * error was that there were too many arguments. - */ - pvalid = (*argsParsedp & PARSE_MASK); - pnrargs = (*argsParsedp & ~PARSE_MASK); - - if (pvalid == PARSE_OK || pnrargs < nrargs || - (pnrargs == nrargs && pvalid == PARSE_MANY)) - *argsParsedp = valid | nrargs; - - Py_DECREF(args); - - return 0; - } - - /* - * The second pass does any remaining conversions now that we know we - * have the right signature. - */ - va_start(va,fmt); - valid = parsePass2(self,selfarg,nrargs,args,fmt,va); - va_end(va); - - if (valid != PARSE_OK) - { - *argsParsedp = valid | PARSE_STICKY; - - Py_DECREF(args); - - return 0; - } - - *argsParsedp = nrargs; - - Py_DECREF(args); - - return 1; -} - - -/* - * First pass of the argument parse, converting those that can be done so - * without any side effects. Return PARSE_OK if the arguments matched. - */ -static int parsePass1(sipWrapper **selfp, int *selfargp, int *argsParsedp, - PyObject *sipArgs, const char *fmt, va_list va) -{ - int valid, compulsory, nrargs, argnr, nrparsed; - - valid = PARSE_OK; - nrargs = *argsParsedp; - nrparsed = 0; - compulsory = TRUE; - argnr = 0; - - /* - * Handle those format characters that deal with the "self" argument. - * They will always be the first one. - */ - *selfp = NULL; - *selfargp = FALSE; - - switch (*fmt++) - { - case 'B': - case 'p': - { - PyObject *self; - sipWrapperType *type; - - self = *va_arg(va,PyObject **); - type = va_arg(va,sipWrapperType *); - va_arg(va,void **); - - if (self == NULL) - { - if ((valid = getSelfFromArgs(type,sipArgs,argnr,selfp)) != PARSE_OK) - break; - - *selfargp = TRUE; - ++nrparsed; - ++argnr; - } - else - *selfp = (sipWrapper *)self; - - break; - } - - case 'C': - *selfp = (sipWrapper *)va_arg(va,PyObject *); - break; - - default: - --fmt; - } - - /* Now handle the remaining arguments. */ - while (valid == PARSE_OK) - { - char ch; - PyObject *arg; - - PyErr_Clear(); - - /* See if the following arguments are optional. */ - if ((ch = *fmt++) == '|') - { - compulsory = FALSE; - ch = *fmt++; - } - - /* See if we don't expect anything else. */ - - if (ch == '\0') - { - /* Invalid if there are still arguments. */ - if (argnr < nrargs) - valid = PARSE_MANY; - - break; - } - - /* See if we have run out of arguments. */ - - if (argnr == nrargs) - { - /* - * It is an error if we are still expecting compulsory - * arguments unless the current argume is an ellipsis. - */ - if (ch != 'W' && ch != '\0' && compulsory) - valid = PARSE_FEW; - - break; - } - - /* Get the next argument. */ - arg = PyTuple_GET_ITEM(sipArgs,argnr); - ++argnr; - - switch (ch) - { - case 'W': - /* Ellipsis. */ - break; - - case 's': - { - /* String or None. */ - - char **p = va_arg(va, char **); - - if (parseCharString(arg, p) < 0) - valid = PARSE_TYPE; - - break; - } - - case 'x': -#if defined(HAVE_WCHAR_H) - { - /* Wide string or None. */ - - wchar_t **p = va_arg(va, wchar_t **); - - if (parseWCharString(arg, p) < 0) - valid = PARSE_TYPE; - - break; - } -#else - raiseNoWChar(); - valid = PARSE_RAISED; - break; -#endif - - case 'U': - { - /* - * Slot name or callable, return the name or - * callable. - */ - - char **sname = va_arg(va, char **); - PyObject **scall = va_arg(va, PyObject **); - - *sname = NULL; - *scall = NULL; - - if (PyString_Check(arg)) - { - char *s = PyString_AS_STRING(arg); - - if (*s == '1' || *s == '2' || *s == '9') - *sname = s; - else - valid = PARSE_TYPE; - } - else if (PyCallable_Check(arg)) - *scall = arg; - else if (arg != Py_None) - valid = PARSE_TYPE; - - break; - } - - case 'S': - { - /* Slot name, return the name. */ - - if (PyString_Check(arg)) - { - char *s = PyString_AS_STRING(arg); - - if (*s == '1' || *s == '2' || *s == '9') - *va_arg(va,char **) = s; - else - valid = PARSE_TYPE; - } - else - valid = PARSE_TYPE; - - break; - } - - case 'G': - { - /* Signal name, return the name. */ - - if (PyString_Check(arg)) - { - char *s = PyString_AS_STRING(arg); - - if (*s == '2' || *s == '9') - *va_arg(va,char **) = s; - else - valid = PARSE_TYPE; - } - else - valid = PARSE_TYPE; - - break; - } - - case 'J': - { - /* Class instance. */ - - if (*fmt == '\0') - valid = PARSE_FORMAT; - else - { - int flags = *fmt++ - '0'; - sipWrapperType *type; - int iflgs = 0; - - type = va_arg(va,sipWrapperType *); - va_arg(va,void **); - - if (flags & FORMAT_DEREF) - iflgs |= SIP_NOT_NONE; - - if (flags & (FORMAT_GET_WRAPPER|FORMAT_TRANSFER_THIS)) - va_arg(va,PyObject **); - - if (flags & FORMAT_NO_CONVERTORS) - iflgs |= SIP_NO_CONVERTORS; - else - va_arg(va, int *); - - if (!sip_api_can_convert_to_instance(arg, type, iflgs)) - valid = PARSE_TYPE; - } - - break; - } - - case 'M': - { - /* Mapped type instance. */ - - if (*fmt == '\0') - valid = PARSE_FORMAT; - else - { - int flags = *fmt++ - '0'; - sipMappedType *mt; - int iflgs = 0; - - mt = va_arg(va, sipMappedType *); - va_arg(va, void **); - va_arg(va, int *); - - if (flags & FORMAT_DEREF) - iflgs |= SIP_NOT_NONE; - - if (!sip_api_can_convert_to_mapped_type(arg, mt, iflgs)) - valid = PARSE_TYPE; - } - - break; - } - - - case 'N': - { - /* Python object of given type or None. */ - - PyTypeObject *type = va_arg(va,PyTypeObject *); - PyObject **p = va_arg(va,PyObject **); - - if (arg == Py_None || PyObject_TypeCheck(arg,type)) - *p = arg; - else - valid = PARSE_TYPE; - - break; - } - - case 'P': - { - /* - * Python object of any type with a - * sub-format. - */ - - *va_arg(va,PyObject **) = arg; - - /* Skip the sub-format. */ - if (*fmt++ == '\0') - valid = PARSE_FORMAT; - - break; - } - - case 'T': - { - /* Python object of given type. */ - - PyTypeObject *type = va_arg(va,PyTypeObject *); - PyObject **p = va_arg(va,PyObject **); - - if (PyObject_TypeCheck(arg,type)) - *p = arg; - else - valid = PARSE_TYPE; - - break; - } - - case 'R': - { - /* Sub-class of TQObject. */ - - if (sipQtSupport == NULL || !PyObject_TypeCheck(arg, (PyTypeObject *)sipQObjectClass)) - valid = PARSE_TYPE; - else - *va_arg(va,PyObject **) = arg; - - break; - } - - case 'F': - { - /* Python callable object. */ - - if (PyCallable_Check(arg)) - *va_arg(va,PyObject **) = arg; - else - valid = PARSE_TYPE; - - break; - } - - case 'H': - { - /* Python callable object or None. */ - - if (arg == Py_None || PyCallable_Check(arg)) - *va_arg(va,PyObject **) = arg; - else - valid = PARSE_TYPE; - - break; - } - - case 'q': - { - /* Qt receiver to connect. */ - - va_arg(va,char *); - va_arg(va,void **); - va_arg(va,const char **); - - if (sipQtSupport == NULL || !PyObject_TypeCheck(arg, (PyTypeObject *)sipQObjectClass)) - valid = PARSE_TYPE; - - break; - } - - case 'Q': - { - /* Qt receiver to disconnect. */ - - va_arg(va,char *); - va_arg(va,void **); - va_arg(va,const char **); - - if (sipQtSupport == NULL || !PyObject_TypeCheck(arg, (PyTypeObject *)sipQObjectClass)) - valid = PARSE_TYPE; - - break; - } - - case 'y': - { - /* Python slot to connect. */ - - va_arg(va,char *); - va_arg(va,void **); - va_arg(va,const char **); - - if (sipQtSupport == NULL || !PyCallable_Check(arg)) - valid = PARSE_TYPE; - - break; - } - - case 'Y': - { - /* Python slot to disconnect. */ - - va_arg(va,char *); - va_arg(va,void **); - va_arg(va,const char **); - - if (sipQtSupport == NULL || !PyCallable_Check(arg)) - valid = PARSE_TYPE; - - break; - } - - case 'a': - { - /* Char array or None. */ - - char **p = va_arg(va, char **); - int *szp = va_arg(va, int *); - - if (parseCharArray(arg, p, szp) < 0) - valid = PARSE_TYPE; - - break; - } - - case 'A': -#if defined(HAVE_WCHAR_H) - { - /* Wide char array or None. */ - - wchar_t **p = va_arg(va, wchar_t **); - int *szp = va_arg(va, int *); - - if (parseWCharArray(arg, p, szp) < 0) - valid = PARSE_TYPE; - - break; - } -#else - raiseNoWChar(); - valid = PARSE_RAISED; - break -#endif - - case 'c': - { - /* Character. */ - - char *p = va_arg(va, char *); - - if (parseChar(arg, p) < 0) - valid = PARSE_TYPE; - - break; - } - - case 'w': -#if defined(HAVE_WCHAR_H) - { - /* Wide character. */ - - wchar_t *p = va_arg(va, wchar_t *); - - if (parseWChar(arg, p) < 0) - valid = PARSE_TYPE; - - break; - } -#else - raiseNoWChar(); - valid = PARSE_RAISED; - break -#endif - - case 'b': - { - /* Bool. */ - - int v = PyInt_AsLong(arg); - - if (PyErr_Occurred()) - valid = PARSE_TYPE; - else - sipSetBool(va_arg(va,void *),v); - - break; - } - - case 'e': - { - /* Anonymous enum. */ - - int v = PyInt_AsLong(arg); - - if (PyErr_Occurred()) - valid = PARSE_TYPE; - else - *va_arg(va,int *) = v; - - break; - } - - case 'E': - { - /* Named enum. */ - - PyTypeObject *et = va_arg(va, PyTypeObject *); - - va_arg(va, int *); - - if (!PyObject_TypeCheck(arg, et)) - valid = PARSE_TYPE; - } - - break; - - case 'i': - { - /* Integer. */ - - int v = PyInt_AsLong(arg); - - if (PyErr_Occurred()) - valid = PARSE_TYPE; - else - *va_arg(va,int *) = v; - - break; - } - - case 'u': - { - /* Unsigned integer. */ - - unsigned v = sip_api_long_as_unsigned_long(arg); - - if (PyErr_Occurred()) - valid = PARSE_TYPE; - else - *va_arg(va, unsigned *) = v; - - break; - } - - case 'h': - { - /* Short integer. */ - - short v = PyInt_AsLong(arg); - - if (PyErr_Occurred()) - valid = PARSE_TYPE; - else - *va_arg(va,short *) = v; - - break; - } - - case 't': - { - /* Unsigned short integer. */ - - unsigned short v = sip_api_long_as_unsigned_long(arg); - - if (PyErr_Occurred()) - valid = PARSE_TYPE; - else - *va_arg(va, unsigned short *) = v; - - break; - } - - case 'l': - { - /* Long integer. */ - - long v = PyLong_AsLong(arg); - - if (PyErr_Occurred()) - valid = PARSE_TYPE; - else - *va_arg(va,long *) = v; - - break; - } - - case 'm': - { - /* Unsigned long integer. */ - - unsigned long v = sip_api_long_as_unsigned_long(arg); - - if (PyErr_Occurred()) - valid = PARSE_TYPE; - else - *va_arg(va, unsigned long *) = v; - - break; - } - - case 'n': - { - /* Long long integer. */ - -#if defined(HAVE_LONG_LONG) - PY_LONG_LONG v = PyLong_AsLongLong(arg); -#else - long v = PyLong_AsLong(arg); -#endif - - if (PyErr_Occurred()) - valid = PARSE_TYPE; - else -#if defined(HAVE_LONG_LONG) - *va_arg(va, PY_LONG_LONG *) = v; -#else - *va_arg(va, long *) = v; -#endif - - break; - } - - case 'o': - { - /* Unsigned long long integer. */ - -#if defined(HAVE_LONG_LONG) - unsigned PY_LONG_LONG v = PyLong_AsUnsignedLongLong(arg); -#else - unsigned long v = PyLong_AsUnsignedLong(arg); -#endif - - if (PyErr_Occurred()) - valid = PARSE_TYPE; - else -#if defined(HAVE_LONG_LONG) - *va_arg(va, unsigned PY_LONG_LONG *) = v; -#else - *va_arg(va, unsigned long *) = v; -#endif - - break; - } - - case 'f': - { - /* Float. */ - - double v = PyFloat_AsDouble(arg); - - if (PyErr_Occurred()) - valid = PARSE_TYPE; - else - *va_arg(va,float *) = (float)v; - - break; - } - - case 'X': - { - /* Constrained (ie. exact) types. */ - - switch (*fmt++) - { - case 'b': - { - /* Boolean. */ - - if (PyBool_Check(arg)) - sipSetBool(va_arg(va,void *),(arg == Py_True)); - else - valid = PARSE_TYPE; - - break; - } - - case 'd': - { - /* Double float. */ - - if (PyFloat_Check(arg)) - *va_arg(va,double *) = PyFloat_AS_DOUBLE(arg); - else - valid = PARSE_TYPE; - - break; - } - - case 'f': - { - /* Float. */ - - if (PyFloat_Check(arg)) - *va_arg(va,float *) = (float)PyFloat_AS_DOUBLE(arg); - else - valid = PARSE_TYPE; - - break; - } - - case 'i': - { - /* Integer. */ - - if (PyInt_Check(arg)) - *va_arg(va,int *) = PyInt_AS_LONG(arg); - else - valid = PARSE_TYPE; - - break; - } - - default: - valid = PARSE_FORMAT; - } - - break; - } - - case 'd': - { - /* Double float. */ - - double v = PyFloat_AsDouble(arg); - - if (PyErr_Occurred()) - valid = PARSE_TYPE; - else - *va_arg(va,double *) = v; - - break; - } - - case 'v': - { - /* Void pointer. */ - - void *v = sip_api_convert_to_void_ptr(arg); - - if (PyErr_Occurred()) - valid = PARSE_TYPE; - else - *va_arg(va,void **) = v; - - break; - } - - default: - valid = PARSE_FORMAT; - } - - if (valid == PARSE_OK) - { - if (ch == 'W') - { - /* - * An ellipsis matches everything and ends the - * parse. - */ - nrparsed = nrargs; - break; - } - - ++nrparsed; - } - } - - *argsParsedp = nrparsed; - - return valid; -} - - -/* - * Second pass of the argument parse, converting the remaining ones that might - * have side effects. Return PARSE_OK if there was no error. - */ -static int parsePass2(sipWrapper *self, int selfarg, int nrargs, - PyObject *sipArgs, const char *fmt, va_list va) -{ - int a, valid; - - valid = PARSE_OK; - - /* Handle the converions of "self" first. */ - switch (*fmt++) - { - case 'B': - { - /* - * The address of a C++ instance when calling one of - * its public methods. - */ - - sipWrapperType *type; - void **p; - - *va_arg(va,PyObject **) = (PyObject *)self; - type = va_arg(va,sipWrapperType *); - p = va_arg(va,void **); - - if ((*p = sip_api_get_cpp_ptr(self,type)) == NULL) - valid = PARSE_RAISED; - - break; - } - - case 'p': - { - /* - * The address of a C++ instance when calling one of - * its protected methods. - */ - - void **p; - - *va_arg(va,PyObject **) = (PyObject *)self; - va_arg(va,sipWrapperType *); - p = va_arg(va,void **); - - if ((*p = sip_api_get_complex_cpp_ptr(self)) == NULL) - valid = PARSE_RAISED; - - break; - } - - case 'C': - va_arg(va,PyObject *); - break; - - default: - --fmt; - } - - for (a = (selfarg ? 1 : 0); a < nrargs && *fmt != 'W' && valid == PARSE_OK; ++a) - { - char ch; - PyObject *arg = PyTuple_GET_ITEM(sipArgs,a); - - /* Skip the optional character. */ - if ((ch = *fmt++) == '|') - ch = *fmt++; - - /* - * Do the outstanding conversions. For most types it has - * already been done, so we are just skipping the parameters. - */ - switch (ch) - { - case 'q': - { - /* Qt receiver to connect. */ - - char *sig = va_arg(va,char *); - void **rx = va_arg(va,void **); - const char **slot = va_arg(va,const char **); - - if ((*rx = sip_api_convert_rx(self,sig,arg,*slot,slot)) == NULL) - valid = PARSE_RAISED; - - break; - } - - case 'Q': - { - /* Qt receiver to disconnect. */ - - char *sig = va_arg(va,char *); - void **rx = va_arg(va,void **); - const char **slot = va_arg(va,const char **); - - *rx = sipGetRx(self,sig,arg,*slot,slot); - break; - } - - case 'y': - { - /* Python slot to connect. */ - - char *sig = va_arg(va,char *); - void **rx = va_arg(va,void **); - const char **slot = va_arg(va,const char **); - - if ((*rx = sip_api_convert_rx(self,sig,arg,NULL,slot)) == NULL) - valid = PARSE_RAISED; - - break; - } - - case 'Y': - { - /* Python slot to disconnect. */ - - char *sig = va_arg(va,char *); - void **rx = va_arg(va,void **); - const char **slot = va_arg(va,const char **); - - *rx = sipGetRx(self,sig,arg,NULL,slot); - break; - } - - case 'J': - { - /* Class instance. */ - - int flags = *fmt++ - '0'; - sipWrapperType *type; - void **p; - int iflgs = 0; - int iserr = FALSE; - int *state; - PyObject *xfer, **wrapper; - - type = va_arg(va,sipWrapperType *); - p = va_arg(va,void **); - - if (flags & FORMAT_TRANSFER) - xfer = (self ? (PyObject *)self : arg); - else if (flags & FORMAT_TRANSFER_BACK) - xfer = Py_None; - else - xfer = NULL; - - if (flags & FORMAT_DEREF) - iflgs |= SIP_NOT_NONE; - - if (flags & (FORMAT_GET_WRAPPER|FORMAT_TRANSFER_THIS)) - wrapper = va_arg(va, PyObject **); - - if (flags & FORMAT_NO_CONVERTORS) - { - iflgs |= SIP_NO_CONVERTORS; - state = NULL; - } - else - state = va_arg(va, int *); - - *p = sip_api_convert_to_instance(arg, type, xfer, iflgs, state, &iserr); - - if (iserr) - valid = PARSE_RAISED; - - if (flags & FORMAT_GET_WRAPPER) - *wrapper = (*p != NULL ? arg : NULL); - else if (flags & FORMAT_TRANSFER_THIS && *p != NULL) - *wrapper = arg; - - break; - } - - case 'M': - { - /* Mapped type instance. */ - - int flags = *fmt++ - '0'; - sipMappedType *mt; - void **p; - int iflgs = 0; - int iserr = FALSE; - int *state; - PyObject *xfer; - - mt = va_arg(va, sipMappedType *); - p = va_arg(va, void **); - state = va_arg(va, int *); - - if (flags & FORMAT_TRANSFER) - xfer = (self ? (PyObject *)self : arg); - else if (flags & FORMAT_TRANSFER_BACK) - xfer = Py_None; - else - xfer = NULL; - - if (flags & FORMAT_DEREF) - iflgs |= SIP_NOT_NONE; - - *p = sip_api_convert_to_mapped_type(arg, mt, xfer, iflgs, state, &iserr); - - if (iserr) - valid = PARSE_RAISED; - - break; - } - - case 'P': - { - /* - * Python object of any type with a - * sub-format. - */ - - PyObject **p = va_arg(va,PyObject **); - int flags = *fmt++ - '0'; - - if (flags & FORMAT_TRANSFER) - { - Py_XINCREF(*p); - } - else if (flags & FORMAT_TRANSFER_BACK) - { - Py_XDECREF(*p); - } - - break; - } - - case 'X': - { - /* Constrained (ie. exact) type. */ - - ++fmt; - va_arg(va,void *); - - break; - } - - - case 'E': - { - /* Named enum. */ - - int *p; - - va_arg(va, PyTypeObject *); - p = va_arg(va, int *); - - *p = PyInt_AsLong(arg); - - break; - } - - /* - * Every other argument is a pointer and only differ in how - * many there are. - */ - case 'N': - case 'T': - case 'a': - case 'A': - va_arg(va,void *); - - /* Drop through. */ - - default: - va_arg(va,void *); - } - } - - /* Handle any ellipsis argument. */ - if (*fmt == 'W' && valid == PARSE_OK) - { - PyObject *al; - - /* Create a tuple for any remaining arguments. */ - if ((al = PyTuple_New(nrargs - a)) != NULL) - { - int da = 0; - - while (a < nrargs) - { - PyObject *arg = PyTuple_GET_ITEM(sipArgs,a); - - /* Add the remaining argument to the tuple. */ - Py_INCREF(arg); - PyTuple_SET_ITEM(al, da, arg); - - ++a; - ++da; - } - - /* Return the tuple. */ - *va_arg(va, PyObject **) = al; - } - else - valid = PARSE_RAISED; - } - - return valid; -} - - -/* - * Carry out actions common to all ctors. - */ -static void sip_api_common_ctor(sipMethodCache *cache,int nrmeths) -{ - /* This is thread safe. */ - while (nrmeths-- > 0) - cache++->mcflags = 0; -} - - -/* - * Carry out actions common to all dtors. - */ -static void sip_api_common_dtor(sipWrapper *sipSelf) -{ - if (sipSelf != NULL && sipInterpreter != NULL) - { - SIP_BLOCK_THREADS - - callPyDtor(sipSelf); - - if (!sipNotInMap(sipSelf)) - sipOMRemoveObject(&cppPyMap,sipSelf); - - /* This no longer points to anything useful. */ - sipSelf->u.cppPtr = NULL; - - /* - * If C/C++ has a reference (and therefore no parent) then remove it. - * Otherwise remove the object from any parent. - */ - if (sipCppHasRef(sipSelf)) - { - sipResetCppHasRef(sipSelf); - Py_DECREF(sipSelf); - } - else - removeFromParent(sipSelf); - - SIP_UNBLOCK_THREADS - } -} - - -/* - * Call self.__dtor__() if it is implemented. - */ -static void callPyDtor(sipWrapper *self) -{ - sip_gilstate_t sipGILState; - sipMethodCache pymc; - PyObject *meth; - - /* No need to cache the method, it will only be called once. */ - pymc.mcflags = 0; - meth = sip_api_is_py_method(&sipGILState, &pymc, self, NULL, "__dtor__"); - - if (meth != NULL) - { - PyObject *res = sip_api_call_method(0, meth, "", NULL); - - Py_DECREF(meth); - - /* Discard any result. */ - Py_XDECREF(res); - - SIP_RELEASE_GIL(sipGILState); - } -} - - -/* - * Add a wrapper to it's parent owner if it has one. The wrapper must not - * currently have a parent and, therefore, no siblings. - */ -static void addToParent(sipWrapper *self, sipWrapper *owner) -{ - if (owner != NULL) - { - if (owner->first_child != NULL) - { - self->sibling_next = owner->first_child; - owner->first_child->sibling_prev = self; - } - - owner->first_child = self; - self->parent = owner; - - /* - * The owner holds a real reference so that the cyclic garbage - * collector works properly. - */ - Py_INCREF(self); - } -} - - -/* - * Remove a wrapper from it's parent if it has one. - */ -static void removeFromParent(sipWrapper *self) -{ - if (self->parent != NULL) - { - if (self->parent->first_child == self) - self->parent->first_child = self->sibling_next; - - if (self->sibling_next != NULL) - self->sibling_next->sibling_prev = self->sibling_prev; - - if (self->sibling_prev != NULL) - self->sibling_prev->sibling_next = self->sibling_next; - - self->parent = NULL; - self->sibling_next = NULL; - self->sibling_prev = NULL; - - /* - * We must do this last, after all the pointers are correct, - * because this is used by the clear slot. - */ - Py_DECREF(self); - } -} - - -/* - * Convert a sequence index. Return the index or a negative value if there was - * an error. - */ -static SIP_SSIZE_T sip_api_convert_from_sequence_index(SIP_SSIZE_T idx, - SIP_SSIZE_T len) -{ - /* Negative indices start from the other end. */ - if (idx < 0) - idx = len + idx; - - if (idx < 0 || idx >= len) - { - PyErr_Format(PyExc_IndexError, "sequence index out of range"); - return -1; - } - - return idx; -} - - -/* - * Create and return a single type object. - */ -static sipWrapperType *createType(sipExportedModuleDef *client, - sipTypeDef *type, PyObject *mod_dict) -{ - PyObject *name, *bases, *typedict, *args, *dict; - sipEncodedClassDef *sup; - sipWrapperType *wt; - - /* Create an object corresponding to the type name. */ - if ((name = getBaseNameObject(type->td_name)) == NULL) - goto reterr; - - /* Create the tuple of super types. */ - if ((sup = type->td_supers) == NULL) - { - static PyObject *nobases = NULL; - - if (nobases == NULL && (nobases = Py_BuildValue("(O)",&sipWrapper_Type)) == NULL) - goto relname; - - Py_INCREF(nobases); - bases = nobases; - } - else - { - int i, nrsupers = 0; - - do - ++nrsupers; - while (!sup++->sc_flag); - - if ((bases = PyTuple_New(nrsupers)) == NULL) - goto relname; - - for (sup = type->td_supers, i = 0; i < nrsupers; ++i, ++sup) - { - PyObject *st = (PyObject *)getClassType(sup, client); - - Py_INCREF(st); - PyTuple_SET_ITEM(bases,i,st); - } - } - - /* Create the type dictionary. */ - if ((typedict = createTypeDict(client->em_nameobj)) == NULL) - goto relbases; - - /* Initialise the rest of the type and pass it via the back door. */ - type->td_module = client; - currentType = type; - - /* Create the type by calling the metatype. */ - if ((args = Py_BuildValue("OOO",name,bases,typedict)) == NULL) - goto reldict; - - if ((wt = (sipWrapperType *)PyObject_Call((PyObject *)&sipWrapperType_Type,args,NULL)) == NULL) - goto relargs; - - /* Get the dictionary into which the type will be placed. */ - if (type->td_scope.sc_flag) - dict = mod_dict; - else - dict = ((PyTypeObject *)getClassType(&type->td_scope, client))->tp_dict; - - /* Add the type to the "parent" dictionary. */ - if (PyDict_SetItem(dict,name,(PyObject *)wt) < 0) - goto reltype; - - /* We can now release our references. */ - Py_DECREF(args); - Py_DECREF(typedict); - Py_DECREF(bases); - Py_DECREF(name); - - return wt; - - /* Unwind after an error. */ - -reltype: - Py_DECREF((PyObject *)wt); - -relargs: - Py_DECREF(args); - -reldict: - Py_DECREF(typedict); - -relbases: - Py_DECREF(bases); - -relname: - Py_DECREF(name); - -reterr: - return NULL; -} - - -/* - * Create and return an enum type object. - */ -static PyTypeObject *createEnum(sipExportedModuleDef *client, sipEnumDef *ed, - PyObject *mod_dict) -{ - static PyObject *bases = NULL; - PyObject *name, *typedict, *args, *dict; - PyTypeObject *et; - - /* Get the module and dictionary into which the type will be placed. */ - if (ed->e_scope < 0) - dict = mod_dict; - else - dict = ((PyTypeObject *)client->em_types[ed->e_scope])->tp_dict; - - /* Create the base type tuple if it hasn't already been done. */ - if (bases == NULL && (bases = Py_BuildValue("(O)",&PyInt_Type)) == NULL) - goto reterr; - - /* Create an object corresponding to the type name. */ - if ((name = getBaseNameObject(ed->e_name)) == NULL) - goto reterr; - - /* Create the type dictionary. */ - if ((typedict = createTypeDict(client->em_nameobj)) == NULL) - goto relname; - - /* Create the type by calling the metatype. */ - if ((args = Py_BuildValue("OOO",name,bases,typedict)) == NULL) - goto reldict; - - if ((et = (PyTypeObject *)PyObject_Call((PyObject *)&PyType_Type,args,NULL)) == NULL) - goto relargs; - - /* Initialise any slots. */ - if (ed->e_pyslots != NULL) - initSlots(et, et->tp_as_number, et->tp_as_sequence, et->tp_as_mapping, ed->e_pyslots, TRUE); - - /* Add the type to the "parent" dictionary. */ - if (PyDict_SetItem(dict,name,(PyObject *)et) < 0) - goto reltype; - - /* We can now release our references. */ - Py_DECREF(args); - Py_DECREF(typedict); - Py_DECREF(name); - - return et; - - /* Unwind after an error. */ - -reltype: - Py_DECREF((PyObject *)et); - -relargs: - Py_DECREF(args); - -reldict: - Py_DECREF(typedict); - -relname: - Py_DECREF(name); - -reterr: - return NULL; -} - - -/* - * Return a pointer to the basename of a Python "pathname". - */ -static const char *getBaseName(const char *name) -{ - const char *bn; - - if ((bn = strrchr(name, '.')) != NULL) - ++bn; - else - bn = name; - - return bn; -} - - -/* - * Create a Python object corresponding to the basename of a Python "pathname". - */ -static PyObject *getBaseNameObject(const char *name) -{ - return PyString_FromString(getBaseName(name)); -} - - -/* - * Create a type dictionary for dynamic type being created in the module with - * the specified name. - */ -static PyObject *createTypeDict(PyObject *mname) -{ - static PyObject *proto = NULL; - static PyObject *mstr = NULL; - PyObject *dict; - - /* Create a prototype dictionary. */ - if (proto == NULL) - { - if ((proto = PyDict_New()) == NULL) - return NULL; - - /* - * These tell pickle that SIP generated classes can't be - * pickled. - */ - if (PyDict_SetItemString(proto, "__reduce_ex__", Py_None) < 0 || - PyDict_SetItemString(proto, "__reduce__", Py_None) < 0) - { - Py_DECREF(proto); - proto = NULL; - - return NULL; - } - } - - /* Create an object for "__module__". */ - if (mstr == NULL && (mstr = PyString_FromString("__module__")) == NULL) - return NULL; - - if ((dict = PyDict_Copy(proto)) == NULL) - return NULL; - - /* We need to set the module name as an attribute for dynamic types. */ - if (PyDict_SetItem(dict, mstr, mname) < 0) - { - Py_DECREF(dict); - return NULL; - } - - return dict; -} - - -/* - * Add a set of static instances to a dictionary. - */ -static int addInstances(PyObject *dict,sipInstancesDef *id) -{ - if (id->id_class != NULL && addClassInstances(dict,id->id_class) < 0) - return -1; - - if (id->id_voidp != NULL && addVoidPtrInstances(dict,id->id_voidp) < 0) - return -1; - - if (id->id_char != NULL && addCharInstances(dict,id->id_char) < 0) - return -1; - - if (id->id_string != NULL && addStringInstances(dict,id->id_string) < 0) - return -1; - - if (id->id_int != NULL && addIntInstances(dict, id->id_int) < 0) - return -1; - - if (id->id_long != NULL && addLongInstances(dict,id->id_long) < 0) - return -1; - - if (id->id_ulong != NULL && addUnsignedLongInstances(dict, id->id_ulong) < 0) - return -1; - - if (id->id_llong != NULL && addLongLongInstances(dict, id->id_llong) < 0) - return -1; - - if (id->id_ullong != NULL && addUnsignedLongLongInstances(dict, id->id_ullong) < 0) - return -1; - - if (id->id_double != NULL && addDoubleInstances(dict,id->id_double) < 0) - return -1; - - if (id->id_enum != NULL && addEnumInstances(dict,id->id_enum) < 0) - return -1; - - return 0; -} - - -/* - * Get "self" from the argument tuple for a method called as - * Class.Method(self, ...) rather than self.Method(...). - */ -static int getSelfFromArgs(sipWrapperType *type, PyObject *args, int argnr, - sipWrapper **selfp) -{ - PyObject *self; - - /* Get self from the argument tuple. */ - - if (argnr >= PyTuple_GET_SIZE(args)) - return PARSE_UNBOUND; - - self = PyTuple_GET_ITEM(args, argnr); - - if (!PyObject_TypeCheck(self, (PyTypeObject *)type)) - return PARSE_UNBOUND; - - *selfp = (sipWrapper *)self; - - return PARSE_OK; -} - - -/* - * Handle the result of a call to the class/instance setattro methods. - */ -static int handleSetLazyAttr(PyObject *nameobj,PyObject *valobj, - sipWrapperType *wt,sipWrapper *w) -{ - char *name; - PyMethodDef *pmd, *vmd; - sipEnumMemberDef *enm; - - /* See if it was a lazy attribute. */ - if ((name = PyString_AsString(nameobj)) == NULL) - return -1; - - pmd = NULL; - enm = NULL; - vmd = NULL; - - findLazyAttr(wt,name,&pmd,&enm,&vmd,NULL); - - if (vmd != NULL) - { - if (valobj == NULL) - { - PyErr_Format(PyExc_ValueError,"%s.%s cannot be deleted",wt->type->td_name,name); - - return -1; - } - - if ((vmd->ml_flags & METH_STATIC) != 0 || w != NULL) - { - PyObject *res; - - if ((res = (*vmd->ml_meth)((PyObject *)w,valobj)) == NULL) - return -1; - - /* Ignore the result (which should be Py_None). */ - Py_DECREF(res); - - return 0; - } - - PyErr_SetObject(PyExc_AttributeError,nameobj); - - return -1; - } - - /* It isn't a variable. */ - return 1; -} - - -/* - * Handle the result of a call to the class/instance getattro methods. - */ -static PyObject *handleGetLazyAttr(PyObject *nameobj,sipWrapperType *wt, - sipWrapper *w) -{ - char *name; - PyMethodDef *pmd, *vmd; - sipEnumMemberDef *enm; - sipTypeDef *in; - - /* If it was an error, propagate it. */ - if (!PyErr_ExceptionMatches(PyExc_AttributeError)) - return NULL; - - PyErr_Clear(); - - /* See if it was a lazy attribute. */ - if ((name = PyString_AsString(nameobj)) == NULL) - return NULL; - - pmd = NULL; - enm = NULL; - vmd = NULL; - - findLazyAttr(wt,name,&pmd,&enm,&vmd,&in); - - if (pmd != NULL) - return PyCFunction_New(pmd,(PyObject *)w); - - if (enm != NULL) - { - PyObject *attr; - - /* - * Convert the value to an object. Note that we cannot cache - * it in the type dictionary because a sub-type might have a - * lazy attribute of the same name. In this case (because we - * call the standard getattro code first) this one would be - * wrongly found in preference to the one in the sub-class. - * The example in PyQt is TQScrollView::ResizePolicy and - * TQListView::WidthMode both having a member called Manual. - * One way around this might be to cache them in a separate - * dictionary and search that before doing the binary search - * through the lazy enum table. - */ - if ((attr = createEnumMember(in, enm)) == NULL) - return NULL; - - return attr; - } - - if (vmd != NULL) - if ((vmd->ml_flags & METH_STATIC) != 0 || w != NULL) - return (*vmd->ml_meth)((PyObject *)w,NULL); - - PyErr_SetObject(PyExc_AttributeError,nameobj); - - return NULL; -} - - -/* - * Create a Python object for an enum member. - */ -static PyObject *createEnumMember(sipTypeDef *td, sipEnumMemberDef *enm) -{ - if (enm->em_enum < 0) - return PyInt_FromLong(enm->em_val); - - return sip_api_convert_from_named_enum(enm->em_val, td->td_module->em_enums[enm->em_enum]); -} - - -/* - * Create a Python object for a member of a named enum. - */ -PyObject *sip_api_convert_from_named_enum(int eval, PyTypeObject *et) -{ - PyObject *args, *mo; - - if ((args = Py_BuildValue("(i)", eval)) == NULL) - return NULL; - - mo = PyObject_Call((PyObject *)et, args, NULL); - - Py_DECREF(args); - - return mo; -} - - -/* - * Find definition for a lazy class attribute. - */ -static void findLazyAttr(sipWrapperType *wt,char *name,PyMethodDef **pmdp, - sipEnumMemberDef **enmp,PyMethodDef **vmdp, - sipTypeDef **in) -{ - sipTypeDef *td, *nsx; - sipEncodedClassDef *sup; - - /* The base type doesn't have any type information. */ - if ((td = wt->type) == NULL) - return; - - /* Search the possible linked list of namespace extenders. */ - nsx = td; - - do - { - /* Try the methods. */ - if (nsx->td_nrmethods > 0 && - (*pmdp = (PyMethodDef *)bsearch(name, nsx->td_methods, nsx->td_nrmethods, sizeof (PyMethodDef), compareMethodName)) != NULL) - return; - - /* Try the enum members. */ - if (nsx->td_nrenummembers > 0 && - (*enmp = (sipEnumMemberDef *)bsearch(name, nsx->td_enummembers, nsx->td_nrenummembers, sizeof (sipEnumMemberDef), compareEnumMemberName)) != NULL) - { - if (in != NULL) - *in = nsx; - - return; - } - - /* Try the variables. Note, these aren't sorted. */ - if (nsx->td_variables != NULL) - { - PyMethodDef *md; - - for (md = nsx->td_variables; md->ml_name != NULL; ++md) - if (strcmp(name, md->ml_name) == 0) - { - *vmdp = md; - return; - } - } - - nsx = nsx->td_nsextender; - } - while (nsx != NULL); - - /* Check the base classes. */ - if ((sup = td->td_supers) != NULL) - do - { - findLazyAttr(getClassType(sup, td->td_module), name, pmdp, enmp, vmdp, in); - - if (*pmdp != NULL || *enmp != NULL || *vmdp != NULL) - break; - } - while (!sup++->sc_flag); -} - - -/* - * The bsearch() helper function for searching a sorted method table. - */ -static int compareMethodName(const void *key,const void *el) -{ - return strcmp((const char *)key,((const PyMethodDef *)el)->ml_name); -} - - -/* - * The bsearch() helper function for searching a sorted enum member table. - */ -static int compareEnumMemberName(const void *key,const void *el) -{ - return strcmp((const char *)key,((const sipEnumMemberDef *)el)->em_name); -} - - -/* - * Report a function with invalid argument types. - */ -static void sip_api_no_function(int argsParsed, const char *func) -{ - badArgs(argsParsed,NULL,func); -} - - -/* - * Report a method/function/signal with invalid argument types. - */ -static void sip_api_no_method(int argsParsed, const char *classname, const char *method) -{ - badArgs(argsParsed,classname,method); -} - - -/* - * Report an abstract method called with an unbound self. - */ -static void sip_api_abstract_method(const char *classname, const char *method) -{ - PyErr_Format(PyExc_TypeError,"%s.%s() is abstract and cannot be called as an unbound method", classname, method); -} - - -/* - * Handle error reporting for bad arguments to various things. - */ -static void badArgs(int argsParsed, const char *classname, const char *method) -{ - char *sep; - int nrparsed = argsParsed & ~PARSE_MASK; - - if (classname != NULL) - sep = "."; - else - { - classname = ""; - sep = ""; - } - - switch (argsParsed & PARSE_MASK) - { - case PARSE_FEW: - PyErr_Format(PyExc_TypeError,"insufficient number of arguments to %s%s%s()",classname,sep,method); - break; - - case PARSE_MANY: - PyErr_Format(PyExc_TypeError,"too many arguments to %s%s%s(), %d at most expected",classname,sep,method,nrparsed); - break; - - case PARSE_TYPE: - PyErr_Format(PyExc_TypeError,"argument %d of %s%s%s() has an invalid type",nrparsed + 1,classname,sep,method); - break; - - case PARSE_FORMAT: - PyErr_Format(PyExc_TypeError,"invalid format to sipParseArgs() from %s%s%s()",classname,sep,method); - break; - - case PARSE_UNBOUND: - PyErr_Format(PyExc_TypeError,"first argument of unbound method %s%s%s() must be a %s instance",classname,sep,method,classname); - break; - - case PARSE_RAISED: - /* It has already been taken care of. */ - - break; - - case PARSE_OK: - /* This is raised by a private re-implementation. */ - PyErr_Format(PyExc_AttributeError,"%s%s%s is a private method",classname,sep,method); - break; - } -} - - -/* - * Report a bad operator argument. Only a small subset of operators need to - * be handled (those that don't return Py_NotImplemented). - */ -static void sip_api_bad_operator_arg(PyObject *self, PyObject *arg, - sipPySlotType st) -{ - const char *sn = NULL; - - /* Try and get the text to match a Python exception. */ - - switch (st) - { - case concat_slot: - case iconcat_slot: - PyErr_Format(PyExc_TypeError, "cannot concatenate '%s' and '%s' objects", self->ob_type->tp_name, arg->ob_type->tp_name); - break; - - case repeat_slot: - sn = "*"; - break; - - case irepeat_slot: - sn = "*="; - break; - - default: - sn = "unknown"; - } - - if (sn != NULL) - PyErr_Format(PyExc_TypeError, "unsupported operand type(s) for %s: '%s' and '%s'", sn, self->ob_type->tp_name, arg->ob_type->tp_name); -} - - -/* - * Report a sequence length that does not match the length of a slice. - */ -static void sip_api_bad_length_for_slice(SIP_SSIZE_T seqlen, - SIP_SSIZE_T slicelen) -{ - PyErr_Format(PyExc_ValueError, -#if PY_VERSION_HEX >= 0x02050000 - "attempt to assign sequence of size %zd to slice of size %zd", -#else - "attempt to assign sequence of size %d to slice of size %d", -#endif - seqlen, slicelen); -} - - -/* - * Report a Python object that cannot be converted to a particular class. - */ -static void sip_api_bad_class(const char *classname) -{ - PyErr_Format(PyExc_TypeError,"cannot convert Python object to an instance of %s",classname); -} - - -/* - * Report a Python class variable with an unexpected type. - */ -static void sip_api_bad_set_type(const char *classname,const char *var) -{ - PyErr_Format(PyExc_TypeError,"invalid type for variable %s.%s",classname,var); -} - - -/* - * Report a Python member function with an unexpected return type. - */ -static void sip_api_bad_catcher_result(PyObject *method) -{ - const char *cname; - char *mname; - - /* - * This is part of the public API so we make no assumptions about the - * method object. - */ - if (!PyMethod_Check(method) || - PyMethod_GET_FUNCTION(method) == NULL || - !PyFunction_Check(PyMethod_GET_FUNCTION(method)) || - PyMethod_GET_SELF(method) == NULL) - { - PyErr_Format(PyExc_TypeError,"invalid argument to sipBadCatcherResult()"); - return; - } - - mname = PyString_AsString(((PyFunctionObject *)PyMethod_GET_FUNCTION(method))->func_name); - - if (mname == NULL) - return; - - cname = PyMethod_GET_SELF(method)->ob_type->tp_name; - - PyErr_Format(PyExc_TypeError,"invalid result type from %s.%s()",cname,mname); -} - - -/* - * Return the name of the class corresponding to a wrapper object. This comes - * with a reference. - */ -static PyObject *sip_api_class_name(PyObject *self) -{ - return PyString_FromString(self->ob_type->tp_name); -} - - -/* - * Return non-zero if the object is a C++ instance wrapper. - */ -int sip_api_wrapper_check(PyObject *o) -{ - return PyObject_TypeCheck(o,(PyTypeObject *)&sipWrapper_Type); -} - - -/* - * Return non-zero if the object is a C++ instance wrapper type. - */ -static int sipWrapperType_Check(PyObject *op) -{ - return PyObject_TypeCheck(op,(PyTypeObject *)&sipWrapperType_Type); -} - - -/* - * Transfer ownership of a class instance to Python from C/C++. - */ -static void sip_api_transfer_back(PyObject *self) -{ - if (self != NULL && sip_api_wrapper_check(self)) - { - sipWrapper *w = (sipWrapper *)self; - - if (sipCppHasRef(w)) - { - sipResetCppHasRef(w); - Py_DECREF(w); - } - else - removeFromParent(w); - - sipSetPyOwned(w); - } -} - - -/* - * Transfer ownership of a class instance to C/C++ from Python. - */ -static void sip_api_transfer_to(PyObject *self, PyObject *owner) -{ - /* - * There is a legitimate case where we try to transfer a PyObject that - * may not be a SIP generated class. The virtual handler code calls - * this function to keep the C/C++ instance alive when it gets rid of - * the Python object returned by the Python method. A class may have - * handwritten code that converts a regular Python type - so we can't - * assume that we can simply cast to sipWrapper. - */ - if (self != NULL && sip_api_wrapper_check(self) && (owner == NULL || sip_api_wrapper_check(owner))) - { - sipWrapper *w = (sipWrapper *)self; - - /* - * Keep the object alive while we do the transfer. If C++ has a - * reference then there is no need to increment it, just reset the flag - * and the following decrement will bring everything back to the way it - * should be. - */ - if (sipCppHasRef(w)) - sipResetCppHasRef(w); - else - { - Py_INCREF(self); - removeFromParent(w); - } - - addToParent(w, (sipWrapper *)owner); - - Py_DECREF(self); - - sipResetPyOwned(w); - } -} - - -/* - * Transfer ownership of a class instance from Python to C/C++, or vice versa. - * This is deprecated. - */ -static void sip_api_transfer(PyObject *self, int toCpp) -{ - if (toCpp) - sip_api_transfer_to(self, self); - else - sip_api_transfer_back(self); -} - - -/* - * Add a license to a dictionary. - */ -static int addLicense(PyObject *dict,sipLicenseDef *lc) -{ - int rc; - PyObject *ldict, *proxy, *o; - - /* Convert the strings we use to objects if not already done. */ - - if (licenseName == NULL && (licenseName = PyString_FromString("__license__")) == NULL) - return -1; - - if (licenseeName == NULL && (licenseeName = PyString_FromString("Licensee")) == NULL) - return -1; - - if (typeName == NULL && (typeName = PyString_FromString("Type")) == NULL) - return -1; - - if (timestampName == NULL && (timestampName = PyString_FromString("Timestamp")) == NULL) - return -1; - - if (signatureName == NULL && (signatureName = PyString_FromString("Signature")) == NULL) - return -1; - - /* We use a dictionary to hold the license information. */ - if ((ldict = PyDict_New()) == NULL) - return -1; - - /* The license type is compulsory, the rest are optional. */ - if (lc->lc_type == NULL || (o = PyString_FromString(lc->lc_type)) == NULL) - goto deldict; - - rc = PyDict_SetItem(ldict,typeName,o); - Py_DECREF(o); - - if (rc < 0) - goto deldict; - - if (lc->lc_licensee != NULL) - { - if ((o = PyString_FromString(lc->lc_licensee)) == NULL) - goto deldict; - - rc = PyDict_SetItem(ldict,licenseeName,o); - Py_DECREF(o); - - if (rc < 0) - goto deldict; - } - - if (lc->lc_timestamp != NULL) - { - if ((o = PyString_FromString(lc->lc_timestamp)) == NULL) - goto deldict; - - rc = PyDict_SetItem(ldict,timestampName,o); - Py_DECREF(o); - - if (rc < 0) - goto deldict; - } - - if (lc->lc_signature != NULL) - { - if ((o = PyString_FromString(lc->lc_signature)) == NULL) - goto deldict; - - rc = PyDict_SetItem(ldict,signatureName,o); - Py_DECREF(o); - - if (rc < 0) - goto deldict; - } - - /* Create a read-only proxy. */ - if ((proxy = PyDictProxy_New(ldict)) == NULL) - goto deldict; - - Py_DECREF(ldict); - - rc = PyDict_SetItem(dict,licenseName,proxy); - Py_DECREF(proxy); - - return rc; - -deldict: - Py_DECREF(ldict); - - return -1; -} - - -/* - * Add the void pointer instances to a dictionary. - */ -static int addVoidPtrInstances(PyObject *dict,sipVoidPtrInstanceDef *vi) -{ - while (vi->vi_name != NULL) - { - int rc; - PyObject *w; - - if ((w = sip_api_convert_from_void_ptr(vi->vi_val)) == NULL) - return -1; - - rc = PyDict_SetItemString(dict,vi->vi_name,w); - Py_DECREF(w); - - if (rc < 0) - return -1; - - ++vi; - } - - return 0; -} - - -/* - * Add the char instances to a dictionary. - */ -static int addCharInstances(PyObject *dict,sipCharInstanceDef *ci) -{ - while (ci->ci_name != NULL) - { - int rc; - PyObject *w; - - if ((w = PyString_FromStringAndSize(&ci->ci_val,1)) == NULL) - return -1; - - rc = PyDict_SetItemString(dict,ci->ci_name,w); - Py_DECREF(w); - - if (rc < 0) - return -1; - - ++ci; - } - - return 0; -} - - -/* - * Add the string instances to a dictionary. - */ -static int addStringInstances(PyObject *dict,sipStringInstanceDef *si) -{ - while (si->si_name != NULL) - { - int rc; - PyObject *w; - - if ((w = PyString_FromString(si->si_val)) == NULL) - return -1; - - rc = PyDict_SetItemString(dict,si->si_name,w); - Py_DECREF(w); - - if (rc < 0) - return -1; - - ++si; - } - - return 0; -} - - -/* - * Add the int instances to a dictionary. - */ -static int addIntInstances(PyObject *dict, sipIntInstanceDef *ii) -{ - while (ii->ii_name != NULL) - { - int rc; - PyObject *w; - - if ((w = PyInt_FromLong(ii->ii_val)) == NULL) - return -1; - - rc = PyDict_SetItemString(dict, ii->ii_name, w); - Py_DECREF(w); - - if (rc < 0) - return -1; - - ++ii; - } - - return 0; -} - - -/* - * Add the long instances to a dictionary. - */ -static int addLongInstances(PyObject *dict,sipLongInstanceDef *li) -{ - while (li->li_name != NULL) - { - int rc; - PyObject *w; - - if ((w = PyLong_FromLong(li->li_val)) == NULL) - return -1; - - rc = PyDict_SetItemString(dict,li->li_name,w); - Py_DECREF(w); - - if (rc < 0) - return -1; - - ++li; - } - - return 0; -} - - -/* - * Add the unsigned long instances to a dictionary. - */ -static int addUnsignedLongInstances(PyObject *dict, sipUnsignedLongInstanceDef *uli) -{ - while (uli->uli_name != NULL) - { - int rc; - PyObject *w; - - if ((w = PyLong_FromUnsignedLong(uli->uli_val)) == NULL) - return -1; - - rc = PyDict_SetItemString(dict, uli->uli_name, w); - Py_DECREF(w); - - if (rc < 0) - return -1; - - ++uli; - } - - return 0; -} - - -/* - * Add the long long instances to a dictionary. - */ -static int addLongLongInstances(PyObject *dict, sipLongLongInstanceDef *lli) -{ - while (lli->lli_name != NULL) - { - int rc; - PyObject *w; - -#if defined(HAVE_LONG_LONG) - if ((w = PyLong_FromLongLong(lli->lli_val)) == NULL) -#else - if ((w = PyLong_FromLong(lli->lli_val)) == NULL) -#endif - return -1; - - rc = PyDict_SetItemString(dict, lli->lli_name, w); - Py_DECREF(w); - - if (rc < 0) - return -1; - - ++lli; - } - - return 0; -} - - -/* - * Add the unsigned long long instances to a dictionary. - */ -static int addUnsignedLongLongInstances(PyObject *dict, sipUnsignedLongLongInstanceDef *ulli) -{ - while (ulli->ulli_name != NULL) - { - int rc; - PyObject *w; - -#if defined(HAVE_LONG_LONG) - if ((w = PyLong_FromUnsignedLongLong(ulli->ulli_val)) == NULL) -#else - if ((w = PyLong_FromUnsignedLong(ulli->ulli_val)) == NULL) -#endif - return -1; - - rc = PyDict_SetItemString(dict, ulli->ulli_name, w); - Py_DECREF(w); - - if (rc < 0) - return -1; - - ++ulli; - } - - return 0; -} - - -/* - * Add the double instances to a dictionary. - */ -static int addDoubleInstances(PyObject *dict,sipDoubleInstanceDef *di) -{ - while (di->di_name != NULL) - { - int rc; - PyObject *w; - - if ((w = PyFloat_FromDouble(di->di_val)) == NULL) - return -1; - - rc = PyDict_SetItemString(dict,di->di_name,w); - Py_DECREF(w); - - if (rc < 0) - return -1; - - ++di; - } - - return 0; -} - - -/* - * Wrap a set of enum instances and add them to a dictionary. - */ -static int addEnumInstances(PyObject *dict, sipEnumInstanceDef *ei) -{ - while (ei->ei_name != NULL) - { - if (addSingleEnumInstance(dict, ei->ei_name, ei->ei_val, *ei->ei_type) < 0) - return -1; - - ++ei; - } - - return 0; -} - - -/* - * Wrap a single enum instance and add it to a dictionary. - */ -static int addSingleEnumInstance(PyObject *dict, const char *name, int value, - PyTypeObject *type) -{ - int rc; - PyObject *w; - - if ((w = sip_api_convert_from_named_enum(value, type)) == NULL) - return -1; - - rc = PyDict_SetItemString(dict, name, w); - Py_DECREF(w); - - return rc; -} - - -/* - * Wrap an enum instance and add it to a dictionary. - */ -static int sip_api_add_enum_instance(PyObject *dict, const char *name, - int value, PyTypeObject *type) -{ - /* If this is a wrapped type then get the type dictionary. */ - if (sipWrapperType_Check(dict)) - dict = ((PyTypeObject *)dict)->tp_dict; - - return addSingleEnumInstance(dict, name, value, type); -} - - -/* - * Wrap a set of class instances and add them to a dictionary. - */ -static int addClassInstances(PyObject *dict, sipClassInstanceDef *ci) -{ - while (ci->ci_name != NULL) - { - if (addSingleClassInstance(dict, ci->ci_name, ci->ci_ptr, *ci->ci_type, ci->ci_flags) < 0) - return -1; - - ++ci; - } - - return 0; -} - - -/* - * Wrap a single class instance and add it to a dictionary. - */ -static int addSingleClassInstance(PyObject *dict, const char *name, - void *cppPtr, sipWrapperType *wt, int initflags) -{ - int rc; - PyObject *w; - - if ((w = sipWrapSimpleInstance(cppPtr,wt,NULL,initflags)) == NULL) - return -1; - - rc = PyDict_SetItemString(dict,name,w); - Py_DECREF(w); - - return rc; -} - - -/* - * Wrap a class instance and add it to a dictionary. - */ -static int sip_api_add_class_instance(PyObject *dict, const char *name, - void *cppPtr, sipWrapperType *wt) -{ - /* If this is a wrapped type then get the type dictionary. */ - if (sipWrapperType_Check(dict)) - dict = ((PyTypeObject *)dict)->tp_dict; - - return addSingleClassInstance(dict, name, cppPtr, wt, 0); -} - - -/* - * Wrap a mapped type instance and add it to a dictionary. - */ -static int sip_api_add_mapped_type_instance(PyObject *dict, const char *name, - void *cppPtr, const sipMappedType *mt) -{ - int rc; - PyObject *w; - - /* If this is a wrapped type then get the type dictionary. */ - if (sipWrapperType_Check(dict)) - dict = ((PyTypeObject *)dict)->tp_dict; - - if ((w = mt->mt_cfrom(cppPtr, NULL)) == NULL) - return -1; - - rc = PyDict_SetItemString(dict, name, w); - Py_DECREF(w); - - return rc; -} - - -/* - * Get the C/C++ pointer for a complex object. - */ -static void *sip_api_get_complex_cpp_ptr(sipWrapper *w) -{ - if (!sipIsDerived(w)) - { - PyErr_SetString(PyExc_RuntimeError,"no access to protected functions or signals for objects not created from Python"); - - return NULL; - } - - if (checkPointer(w->u.cppPtr) < 0) - return NULL; - - return w->u.cppPtr; -} - - -/* - * Return the Python member function corresponding to a C/C++ virtual function, - * if any. If one was found then the Python lock is acquired. - */ -static PyObject *sip_api_is_py_method(sip_gilstate_t *gil,sipMethodCache *pymc, - sipWrapper *sipSelf,char *cname, - char *mname) -{ - /* We might still have C++ going after the interpreter has gone. */ - if (sipInterpreter == NULL) - return NULL; - - /* - * It's possible that the Python object has been deleted but the - * underlying (complex) C/C++ instance is still working and trying to - * handle virtual functions. Or an instance has started handling - * virtual functions before its ctor has returned. In either case say - * there is no Python method. - */ - if (sipSelf == NULL) - return NULL; - -#ifdef WITH_THREAD - *gil = PyGILState_Ensure(); -#endif - - /* See if we have already looked for the Python method. */ - if (!sipFoundMethod(pymc)) - { - PyObject *methobj; - - /* - * Using PyMethod_Check() rather than PyCallable_Check() has - * the added benefits of ensuring the (common) case of there - * being no Python method is handled as a direct call to C/C++ - * (rather than converted to Python and then back to C/C++) and - * makes sure that abstract virtuals are trapped. - */ - if ((methobj = PyObject_GetAttrString((PyObject *)sipSelf,mname)) != NULL) - { - if (PyMethod_Check(methobj)) - { - sipSetIsMethod(pymc); - sipSaveMethod(&pymc->pyMethod,methobj); - } - - Py_DECREF(methobj); - } - - PyErr_Clear(); - - sipSetFoundMethod(pymc); - } - else if (sipIsMethod(pymc)) - PyErr_Clear(); - - if (sipIsMethod(pymc)) - return PyMethod_New(pymc->pyMethod.mfunc,pymc->pyMethod.mself,pymc->pyMethod.mclass); - - if (cname != NULL) - PyErr_Format(PyExc_NotImplementedError,"%s.%s() is abstract and must be overridden",cname,mname); - -#ifdef WITH_THREAD - PyGILState_Release(*gil); -#endif - - return NULL; -} - - -/* - * Convert a C/C++ pointer to the object that wraps it. - */ -static PyObject *sip_api_get_wrapper(void *cppPtr,sipWrapperType *type) -{ - return (PyObject *)sipOMFindObject(&cppPyMap,cppPtr,type); -} - - -/* - * Return the C/C++ pointer from a wrapper without any checks. - */ -void *sipGetAddress(sipWrapper *w) -{ - if (sipIsAccessFunc(w)) - return (*w->u.afPtr)(); - - if (sipIsIndirect(w)) - return *((void **)w->u.cppPtr); - - return w->u.cppPtr; -} - - -/* - * Get the C/C++ pointer from a wrapper and optionally cast it to the required - * type. - */ -void *sip_api_get_cpp_ptr(sipWrapper *w,sipWrapperType *type) -{ - void *ptr = sipGetAddress(w); - - if (checkPointer(ptr) < 0) - return NULL; - - if (type != NULL) - ptr = cast_cpp_ptr(ptr, (sipWrapperType *)w->ob_type, type); - - return ptr; -} - - -/* - * Cast a C/C++ pointer from a source type to a destination type. - */ -static void *cast_cpp_ptr(void *ptr, sipWrapperType *src_type, - sipWrapperType *dst_type) -{ - sipCastFunc cast = src_type->type->td_cast; - - /* C structures don't have cast functions. */ - if (cast != NULL) - ptr = (*cast)(ptr, dst_type); - - return ptr; -} - - -/* - * Check that a pointer is non-NULL. - */ -static int checkPointer(void *ptr) -{ - if (ptr == NULL) - { - PyErr_SetString(PyExc_RuntimeError,"underlying C/C++ object has been deleted"); - return -1; - } - - return 0; -} - - -/* - * Check to see if a Python object can be converted to a wrapped type. - */ -static int sip_api_can_convert_to_instance(PyObject *pyObj, - sipWrapperType *type, int flags) -{ - int ok; - sipConvertToFunc cto = type->type->td_cto; - - /* None is handled outside the type checkers. */ - if (pyObj == Py_None) - ok = ((flags & SIP_NOT_NONE) == 0); - else if (cto == NULL || (flags & SIP_NO_CONVERTORS) != 0) - ok = PyObject_TypeCheck(pyObj, (PyTypeObject *)type); - else - ok = cto(pyObj, NULL, NULL, NULL); - - return ok; -} - - -/* - * Check to see if a Python object can be converted to a mapped type. - */ -static int sip_api_can_convert_to_mapped_type(PyObject *pyObj, - const sipMappedType *mt, - int flags) -{ - int ok; - - /* None is handled outside the type checkers. */ - if (pyObj == Py_None) - ok = ((flags & SIP_NOT_NONE) == 0); - else - ok = mt->mt_cto(pyObj, NULL, NULL, NULL); - - return ok; -} - - -/* - * Convert a Python object to a C/C++ pointer, assuming a previous call to - * sip_api_can_convert_to_instance() has been successful. Allow ownership to - * be transferred and any type convertors to be disabled. - */ -static void *sip_api_convert_to_instance(PyObject *pyObj, sipWrapperType *type, - PyObject *transferObj, int flags, - int *statep, int *iserrp) -{ - void *cpp = NULL; - int state = 0; - sipConvertToFunc cto = type->type->td_cto; - - /* Don't convert if there has already been an error. */ - if (!*iserrp) - { - /* Do the conversion. */ - if (pyObj == Py_None) - cpp = NULL; - else if (cto == NULL || (flags & SIP_NO_CONVERTORS) != 0) - { - if ((cpp = sip_api_get_cpp_ptr((sipWrapper *)pyObj, type)) == NULL) - *iserrp = TRUE; - else if (transferObj != NULL) - if (transferObj == Py_None) - sip_api_transfer_back(pyObj); - else - sip_api_transfer_to(pyObj, transferObj); - } - else - state = cto(pyObj, &cpp, iserrp, transferObj); - } - - if (statep != NULL) - *statep = state; - - return cpp; -} - - -/* - * Convert a Python object to a C/C++ pointer, assuming a previous call to - * sip_api_can_convert_to_mapped_type() has been successful. Allow ownership - * to be transferred. - */ -static void *sip_api_convert_to_mapped_type(PyObject *pyObj, - const sipMappedType *mt, - PyObject *transferObj, int flags, - int *statep, int *iserrp) -{ - void *cpp = NULL; - int state = 0; - - /* Don't convert if there has already been an error. */ - if (!*iserrp) - if (pyObj == Py_None) - cpp = NULL; - else - state = mt->mt_cto(pyObj, &cpp, iserrp, transferObj); - - if (statep != NULL) - *statep = state; - - return cpp; -} - - -/* - * Convert a Python object to a C/C++ pointer and raise an exception if it - * can't be done. - */ -static void *sip_api_force_convert_to_instance(PyObject *pyObj, - sipWrapperType *type, - PyObject *transferObj, - int flags, int *statep, - int *iserrp) -{ - /* Don't even try if there has already been an error. */ - if (*iserrp) - return NULL; - - /* See if the object's type can be converted. */ - if (!sip_api_can_convert_to_instance(pyObj, type, flags)) - { - PyErr_Format(PyExc_TypeError, "%s cannot be converted to %s in this context", pyObj->ob_type->tp_name, type->type->td_name); - - if (statep != NULL) - *statep = 0; - - *iserrp = TRUE; - return NULL; - } - - /* Do the conversion. */ - return sip_api_convert_to_instance(pyObj, type, transferObj, flags, statep, iserrp); -} - - -/* - * Convert a Python object to a C/C++ pointer and raise an exception if it - * can't be done. - */ -static void *sip_api_force_convert_to_mapped_type(PyObject *pyObj, - const sipMappedType *mt, - PyObject *transferObj, - int flags, int *statep, - int *iserrp) -{ - /* Don't even try if there has already been an error. */ - if (*iserrp) - return NULL; - - /* See if the object's type can be converted. */ - if (!sip_api_can_convert_to_mapped_type(pyObj, mt, flags)) - { - PyErr_Format(PyExc_TypeError, "%s cannot be converted to %s in this context", pyObj->ob_type->tp_name, mt->mt_name); - - if (statep != NULL) - *statep = 0; - - *iserrp = TRUE; - return NULL; - } - - /* Do the conversion. */ - return sip_api_convert_to_mapped_type(pyObj, mt, transferObj, flags, statep, iserrp); -} - - -/* - * Release a possibly temporary instance created by a type convertor. - */ -static void sip_api_release_instance(void *cpp, sipWrapperType *type, int state) -{ - /* See if there is something to release. */ - if (state & SIP_TEMPORARY) - release(cpp, type->type, state); -} - - -/* - * Release an instance. - */ -static void release(void *addr, sipTypeDef *td, int state) -{ - sipReleaseFunc rel = td->td_release; - - /* - * If there is no release function then it must be a C structure and we can - * just free it. - */ - if (rel == NULL) - sip_api_free(addr); - else - rel(addr, state); -} - - -/* - * Release a possibly temporary mapped type created by a type convertor. - */ -static void sip_api_release_mapped_type(void *cpp, const sipMappedType *mt, - int state) -{ - /* See if there is something to release. */ - if (state & SIP_TEMPORARY) - { - sipReleaseFunc rel = mt->mt_release; - - /* - * If there is no release function then it must be a C - * structure and we can just free it. - */ - if (rel == NULL) - sip_api_free(cpp); - else - rel(cpp, state); - } -} - - -/* - * Convert a C/C++ instance to a Python instance. - */ -PyObject *sip_api_convert_from_instance(void *cpp, sipWrapperType *type, - PyObject *transferObj) -{ - PyObject *py; - - /* Handle None. */ - if (cpp == NULL) - { - Py_INCREF(Py_None); - return Py_None; - } - - /* Apply any sub-class convertor. */ - if (sipTypeHasSCC(type)) - type = convertSubClass(type, &cpp); - - /* See if we have already wrapped it. */ - if ((py = sip_api_get_wrapper(cpp, type)) != NULL) - Py_INCREF(py); - else if ((py = sipWrapSimpleInstance(cpp, type, NULL, SIP_SHARE_MAP)) == NULL) - return NULL; - - /* Handle any ownership transfer. */ - if (transferObj != NULL) - if (transferObj == Py_None) - sip_api_transfer_back(py); - else - sip_api_transfer_to(py, transferObj); - - return py; -} - - -/* - * Convert a new C/C++ instance to a Python instance. - */ -static PyObject *sip_api_convert_from_new_instance(void *cpp, - sipWrapperType *type, - PyObject *transferObj) -{ - sipWrapper *owner; - - /* Handle None. */ - if (cpp == NULL) - { - Py_INCREF(Py_None); - return Py_None; - } - - /* Apply any sub-class convertor. */ - if (sipTypeHasSCC(type)) - type = convertSubClass(type, &cpp); - - /* Handle any ownership transfer. */ - if (transferObj != NULL && transferObj != Py_None) - owner = (sipWrapper *)transferObj; - else - owner = NULL; - - return sipWrapSimpleInstance(cpp, type, owner, (owner == NULL ? SIP_PY_OWNED : 0)); -} - - -/* - * Convert a C/C++ instance implemented as a mapped type to a Python object. - */ -static PyObject *sip_api_convert_from_mapped_type(void *cpp, - const sipMappedType *mt, - PyObject *transferObj) -{ - /* Handle None. */ - if (cpp == NULL) - { - Py_INCREF(Py_None); - return Py_None; - } - - return mt->mt_cfrom(cpp, transferObj); -} - - -/* - * Convert a Python instance of a class to a C/C++ object pointer, checking - * that the instance's class is derived from a given base type. - */ -static void *sip_api_convert_to_cpp(PyObject *sipSelf,sipWrapperType *type, - int *iserrp) -{ - return sip_api_convert_to_instance(sipSelf, type, NULL, SIP_NO_CONVERTORS, NULL, iserrp); -} - - -/* - * Implement the normal transfer policy for the result of %ConvertToTypeCode, - * ie. it is temporary unless it is being transferred from Python. - */ -int sip_api_get_state(PyObject *transferObj) -{ - return (transferObj == NULL || transferObj == Py_None) ? SIP_TEMPORARY : 0; -} - - -/* - * Return the mapped type structure for a particular mapped type. - */ -static const sipMappedType *sip_api_find_mapped_type(const char *type) -{ - sipExportedModuleDef *em; - - for (em = clientList; em != NULL; em = em->em_next) - { - sipMappedType **mtypes, *mt; - - if ((mtypes = em->em_mappedtypes) == NULL) - continue; - - while ((mt = *mtypes++) != NULL) - { - const char *s1 = mt->mt_name, *s2 = type; - - /* - * Compare while ignoring spaces so that we don't impose a rigorous - * naming standard. - */ - do - { - while (*s1 == ' ') - ++s1; - - while (*s2 == ' ') - ++s2; - - if (*s1 == '\0' && *s2 == '\0') - return mt; - } - while (*s1++ == *s2++); - } - } - - return NULL; -} - - -/* - * Return the type structure for a particular class. - */ -static sipWrapperType *sip_api_find_class(const char *type) -{ - sipExportedModuleDef *em; - size_t type_len = strlen(type); - - for (em = clientList; em != NULL; em = em->em_next) - { - sipWrapperType *wt = findClass(em, type, type_len); - - if (wt != NULL) - return wt; - } - - return NULL; -} - - -/* - * Return the type structure for a particular named enum. - */ -static PyTypeObject *sip_api_find_named_enum(const char *type) -{ - sipExportedModuleDef *em; - size_t type_len = strlen(type); - - for (em = clientList; em != NULL; em = em->em_next) - { - PyTypeObject *py = findEnum(em, type, type_len); - - if (py != NULL) - return py; - } - - return NULL; -} - - -/* - * Save the components of a Python method. - */ -void sipSaveMethod(sipPyMethod *pm,PyObject *meth) -{ - pm->mfunc = PyMethod_GET_FUNCTION(meth); - pm->mself = PyMethod_GET_SELF(meth); - pm->mclass = PyMethod_GET_CLASS(meth); -} - - -/* - * Call a hook. - */ -static void sip_api_call_hook(const char *hookname) -{ - PyObject *dictofmods, *mod, *dict, *hook, *res; - - /* Get the dictionary of modules. */ - if ((dictofmods = PyImport_GetModuleDict()) == NULL) - return; - - /* Get the __builtin__ module. */ - if ((mod = PyDict_GetItemString(dictofmods,"__builtin__")) == NULL) - return; - - /* Get it's dictionary. */ - if ((dict = PyModule_GetDict(mod)) == NULL) - return; - - /* Get the function hook. */ - if ((hook = PyDict_GetItemString(dict,hookname)) == NULL) - return; - - /* Call the hook and discard any result. */ - res = PyObject_CallObject(hook,NULL); - - Py_XDECREF(res); -} - - -/* - * Call any sub-class convertors for a given type returning a pointer to the - * sub-type object, and possibly modifying the C++ address (in the case of - * multiple inheritence). - */ -static sipWrapperType *convertSubClass(sipWrapperType *type, void **cppPtr) -{ - sipExportedModuleDef *em; - - if (*cppPtr == NULL) - return NULL; - - /* - * Note that this code depends on the fact that a module appears in the - * list of modules before any module it imports, ie. sub-class convertors - * will be invoked for more specific types first. - */ - for (em = clientList; em != NULL; em = em->em_next) - { - sipSubClassConvertorDef *scc; - - if ((scc = em->em_convertors) == NULL) - continue; - - while (scc->scc_convertor != NULL) - { - /* - * The base type is the "root" class that may have a number of - * convertors each handling a "branch" of the derived tree of - * classes. The "root" normally implements the base function that - * provides the RTTI used by the convertors and is re-implemented - * by derived classes. We therefore see if the target type is a - * sub-class of the root, ie. see if the convertor might be able to - * convert the target type to something more specific. - */ - if (PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)scc->scc_basetype)) - { - void *ptr; - sipWrapperType *subtype; - - ptr = cast_cpp_ptr(*cppPtr, type, scc->scc_basetype); - subtype = (*scc->scc_convertor)(&ptr); - - /* - * We are only interested in types that are not super-classes - * of the target. This happens either because it is in an - * earlier convertor than the one that handles the type or it - * is in a later convertor that handles a different branch of - * the hierarchy. Either way, the ordering of the modules - * ensures that there will be no more than one and that it will - * be the right one. - */ - if (subtype != NULL && !PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)subtype)) - { - *cppPtr = ptr; - return subtype; - } - } - - ++scc; - } - } - - /* - * We haven't found the exact type, so return the most specific type that - * it must be. This can happen legitimately if the wrapped library is - * returning an internal class that is down-cast to a more generic class. - * Also we want this function to be safe when a class doesn't have any - * convertors. - */ - return type; -} - - -/* - * The bsearch() helper function for searching a sorted string map table. - */ -static int compareStringMapEntry(const void *key,const void *el) -{ - return strcmp((const char *)key,((const sipStringTypeClassMap *)el)->typeString); -} - - -/* - * A convenience function for %ConvertToSubClassCode for types represented as a - * string. Returns the Python class object or NULL if the type wasn't - * recognised. - */ -static sipWrapperType *sip_api_map_string_to_class(const char *typeString, - const sipStringTypeClassMap *map, - int maplen) -{ - sipStringTypeClassMap *me; - - me = (sipStringTypeClassMap *)bsearch((const void *)typeString, - (const void *)map,maplen, - sizeof (sipStringTypeClassMap), - compareStringMapEntry); - - return ((me != NULL) ? *me->pyType : NULL); -} - - -/* - * The bsearch() helper function for searching a sorted integer map table. - */ -static int compareIntMapEntry(const void *keyp,const void *el) -{ - int key = *(int *)keyp; - - if (key > ((const sipIntTypeClassMap *)el)->typeInt) - return 1; - - if (key < ((const sipIntTypeClassMap *)el)->typeInt) - return -1; - - return 0; -} - - -/* - * A convenience function for %ConvertToSubClassCode for types represented as - * an integer. Returns the Python class object or NULL if the type wasn't - * recognised. - */ -static sipWrapperType *sip_api_map_int_to_class(int typeInt, - const sipIntTypeClassMap *map, - int maplen) -{ - sipIntTypeClassMap *me; - - me = (sipIntTypeClassMap *)bsearch((const void *)&typeInt, - (const void *)map,maplen, - sizeof (sipIntTypeClassMap), - compareIntMapEntry); - - return ((me != NULL) ? *me->pyType : NULL); -} - - -/* - * Raise an unknown exception. Make no assumptions about the GIL. - */ -static void sip_api_raise_unknown_exception(void) -{ - static PyObject *mobj = NULL; - - SIP_BLOCK_THREADS - - if (mobj == NULL) - mobj = PyString_FromString("unknown"); - - PyErr_SetObject(PyExc_Exception, mobj); - - SIP_UNBLOCK_THREADS -} - - -/* - * Raise an exception implemented as a class. Make no assumptions about the - * GIL. - */ -static void sip_api_raise_class_exception(sipWrapperType *type,void *ptr) -{ - PyObject *self; - - SIP_BLOCK_THREADS - - self = sipWrapSimpleInstance(ptr,type,NULL,SIP_PY_OWNED); - - PyErr_SetObject((PyObject *)type,self); - - Py_XDECREF(self); - - SIP_UNBLOCK_THREADS -} - - -/* - * Raise an exception implemented as a class or sub-class. Make no assumptions - * about the GIL. - */ -static void sip_api_raise_sub_class_exception(sipWrapperType *type,void *ptr) -{ - PyObject *self; - - SIP_BLOCK_THREADS - - self = sipWrapSimpleInstance(ptr,type,NULL,SIP_PY_OWNED); - - PyErr_SetObject((PyObject *)type,self); - - Py_XDECREF(self); - - SIP_UNBLOCK_THREADS -} - - -/* - * Return the module of an encoded class. - */ -static sipExportedModuleDef *getClassModule(sipEncodedClassDef *enc, - sipExportedModuleDef *em) -{ - if (enc->sc_module != 255) - em = em->em_imports[enc->sc_module].im_module; - - return em; -} - - -/* - * Return the type of an encoded class. - */ -static sipWrapperType *getClassType(sipEncodedClassDef *enc, - sipExportedModuleDef *em) -{ - return getClassModule(enc, em)->em_types[enc->sc_class]; -} - - -/* - * Find a particular slot function for a wrapper. - */ -static void *findSlot(PyObject *self,sipPySlotType st) -{ - sipTypeDef *td = ((sipWrapperType *)(self->ob_type))->type; - sipEncodedClassDef *sup; - void *slot; - - /* Check the immediate type. */ - if ((slot = findSlotInType(td, st)) != NULL) - return slot; - - /* Check the super-types, if there are any. */ - if ((sup = td->td_supers) != NULL) - do - if ((slot = findSlotInType(getClassType(sup, td->td_module)->type, st)) != NULL) - return slot; - while (!sup++->sc_flag); - - /* This should never happen. */ - return NULL; -} - - -/* - * Find a particular slot function in a type. - */ -static void *findSlotInType(sipTypeDef *td, sipPySlotType st) -{ - sipPySlotDef *psd; - - if ((psd = td->td_pyslots) != NULL) - while (psd->psd_func != NULL) - { - if (psd->psd_type == st) - return psd->psd_func; - - ++psd; - } - - return NULL; -} - - -/* - * Return the C/C++ address and the basic type information for a wrapper. - */ -static void *getPtrTypeDef(sipWrapper *self, sipTypeDef **td) -{ - *td = ((sipWrapperType *)self->ob_type)->type; - - return (sipNotInMap(self) ? NULL : self->u.cppPtr); -} - - -/* - * Handle an objobjargproc slot. - */ -static int objobjargprocSlot(PyObject *self,PyObject *arg1,PyObject *arg2, - sipPySlotType st) -{ - int (*f)(PyObject *,PyObject *); - PyObject *args; - int res; - - /* - * Slot handlers require a single PyObject *. The second argument is - * optional. - */ - if (arg2 == NULL) - args = arg1; - else if (PyTuple_Check(arg1)) - { - int i; - - /* - * It's already a tuple so we need to copy it and append the - * value. - */ - if ((args = PyTuple_New(PyTuple_GET_SIZE(arg1) + 1)) == NULL) - return -1; - - for (i = 0; i < PyTuple_GET_SIZE(arg1); ++i) - { - PyObject *o = PyTuple_GET_ITEM(arg1,i); - - PyTuple_SET_ITEM(args,i,o); - Py_INCREF(o); - } - - PyTuple_SET_ITEM(args,i,arg2); - Py_INCREF(arg2); - } - else if ((args = Py_BuildValue("(OO)",arg1,arg2)) == NULL) - return -1; - - f = (int (*)(PyObject *,PyObject *))findSlot(self,st); - - res = f(self,args); - - if (arg2 != NULL) - { - Py_DECREF(args); - } - - return res; -} - - -/* - * Handle an ssizeobjargproc slot. - */ -static int ssizeobjargprocSlot(PyObject *self, SIP_SSIZE_T arg1, - PyObject *arg2, sipPySlotType st) -{ - int (*f)(PyObject *,PyObject *); - PyObject *args; - int res; - - /* - * Slot handlers require a single PyObject *. The second argument is - * optional. - */ - if (arg2 == NULL) -#if PY_VERSION_HEX >= 0x02050000 - args = PyInt_FromSsize_t(arg1); -#else - args = PyInt_FromLong(arg1); -#endif - else -#if PY_VERSION_HEX >= 0x02050000 - args = Py_BuildValue("(nO)", arg1, arg2); -#else - args = Py_BuildValue("(iO)", arg1, arg2); -#endif - - if (args == NULL) - return -1; - - f = (int (*)(PyObject *,PyObject *))findSlot(self,st); - - res = f(self,args); - - Py_DECREF(args); - - return res; -} - - -/***************************************************************************** - * The functions, data types and structures to support a Python type to hold a - * void * that can be converted to an integer. - *****************************************************************************/ - -/* The object data structure. */ -typedef struct { - PyObject_HEAD - void *voidptr; -} sipVoidPtr; - - -/* - * Implement __new__ for the type. - */ -static PyObject *sipVoidPtr_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) -{ - PyObject *obj; - void *ptr; - int nargs, bad; - - /* We don't support keyword arguments. */ - if (kwds != NULL) - { - PyErr_SetString(PyExc_TypeError, "keyword arguments are not supported"); - return NULL; - } - - /* Get the single argument. */ - if ((nargs = PyTuple_Size(args)) < 0) - return NULL; - - bad = FALSE; - - if (nargs == 1) - { - PyObject *arg = PyTuple_GET_ITEM(args, 0); - - if (arg == Py_None) - ptr = NULL; - else if (PyCObject_Check(arg)) - ptr = PyCObject_AsVoidPtr(arg); - else if (arg->ob_type == &sipVoidPtr_Type) - { - /* - * The type is immutable so just return the argument. - */ - Py_INCREF(arg); - return arg; - } - else - { - ptr = (void *)PyInt_AsLong(arg); - - if (PyErr_Occurred()) - bad = TRUE; - } - } - else - bad = TRUE; - - if (bad) - { - PyErr_SetString(PyExc_TypeError, "a single integer, CObject, None or another voidptr is required"); - return NULL; - } - - /* Create the instance. */ - if ((obj = subtype->tp_alloc(subtype, 0)) == NULL) - return NULL; - - /* Save the pointer. */ - ((sipVoidPtr *)obj)->voidptr = ptr; - - return obj; -} - - -/* - * Implement int() for the type. - */ -static PyObject *sipVoidPtr_int(sipVoidPtr *v) -{ - return PyInt_FromLong((long)v->voidptr); -} - - -/* - * Implement hex() for the type. - */ -static PyObject *sipVoidPtr_hex(sipVoidPtr *v) -{ - char buf[2 + 16 + 1]; - - PyOS_snprintf(buf, sizeof (buf), "0x%.*lx", (int)(sizeof (void *) * 2), (unsigned long)v->voidptr); - - return PyString_FromString(buf); -} - - -/* - * Implement ascobject() for the type. - */ -static PyObject *sipVoidPtr_ascobject(sipVoidPtr *v, PyObject *arg) -{ - return PyCObject_FromVoidPtr(v->voidptr, NULL); -} - - -/* - * Implement asstring() for the type. - */ -static PyObject *sipVoidPtr_asstring(sipVoidPtr *v,PyObject *arg) -{ - long nbytes = PyInt_AsLong(arg); - - if (PyErr_Occurred()) - return NULL; - - return PyString_FromStringAndSize(v->voidptr,nbytes); -} - - -/* The methods data structure. */ -static PyMethodDef sipVoidPtr_Methods[] = { - {"ascobject", (PyCFunction)sipVoidPtr_ascobject, METH_NOARGS, NULL}, - {"asstring", (PyCFunction)sipVoidPtr_asstring, METH_O, NULL}, - {NULL} -}; - - -/* The number methods data structure. */ -PyNumberMethods sipVoidPtr_NumberMethods = { - 0, /* nb_add */ - 0, /* nb_subtract */ - 0, /* nb_multiply */ - 0, /* nb_divide */ - 0, /* nb_remainder */ - 0, /* nb_divmod */ - 0, /* nb_power */ - 0, /* nb_negative */ - 0, /* nb_positive */ - 0, /* nb_absolute */ - 0, /* nb_nonzero */ - 0, /* nb_invert */ - 0, /* nb_lshift */ - 0, /* nb_rshift */ - 0, /* nb_and */ - 0, /* nb_xor */ - 0, /* nb_or */ - 0, /* nb_coerce */ - (unaryfunc)sipVoidPtr_int, /* nb_int */ - 0, /* nb_long */ - 0, /* nb_float */ - 0, /* nb_oct */ - (unaryfunc)sipVoidPtr_hex, /* nb_hex */ -}; - - -/* The type data structure. */ -static PyTypeObject sipVoidPtr_Type = { - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ - "sip.voidptr", /* tp_name */ - sizeof (sipVoidPtr), /* tp_basicsize */ - 0, /* tp_itemsize */ - 0, /* tp_dealloc */ - 0, /* tp_print */ - 0, /* tp_getattr */ - 0, /* tp_setattr */ - 0, /* tp_compare */ - 0, /* tp_repr */ - &sipVoidPtr_NumberMethods, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - 0, /* tp_hash */ - 0, /* tp_call */ - 0, /* tp_str */ - 0, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */ - 0, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ - 0, /* tp_iter */ - 0, /* tp_iternext */ - sipVoidPtr_Methods, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - 0, /* tp_init */ - 0, /* tp_alloc */ - sipVoidPtr_new, /* tp_new */ -}; - - -/* - * A convenience function to convert a C/C++ void pointer from a Python object. - */ -static void *sip_api_convert_to_void_ptr(PyObject *obj) -{ - if (obj == NULL) - { - PyErr_SetString(PyExc_TypeError,"sip.voidptr is NULL"); - return NULL; - } - - if (obj == Py_None) - return NULL; - - /* Save a conversion if it's not a sub-type. */ - if (obj->ob_type == &sipVoidPtr_Type) - return ((sipVoidPtr *)obj)->voidptr; - - return (void *)PyInt_AsLong(obj); -} - - -/* - * A convenience function to convert a C/C++ void pointer to a Python object. - */ -PyObject *sip_api_convert_from_void_ptr(void *val) -{ - sipVoidPtr *self; - - if (val == NULL) - { - Py_INCREF(Py_None); - return Py_None; - } - - if ((self = PyObject_NEW(sipVoidPtr,&sipVoidPtr_Type)) == NULL) - return NULL; - - self->voidptr = val; - - return (PyObject *)self; -} - - -/* - * Return TRUE if a type is a wrapped type, rather than a sub-type implemented - * in Python or the super-type. - */ -static int isExactWrappedType(sipWrapperType *wt) -{ - char *name; - - /* - * We check by comparing the actual type name with the name used to create - * the original wrapped type. - */ -#if PY_VERSION_HEX >= 0x02050000 - if ((name = PyString_AsString(wt->super.ht_name)) == NULL) -#else - if ((name = PyString_AsString(wt->super.name)) == NULL) -#endif - return FALSE; - - return (strcmp(name, getBaseName(wt->type->td_name)) == 0); -} - - -/***************************************************************************** - * The Python metatype for a C++ wrapper type. - *****************************************************************************/ - -/* - * The type alloc slot. - */ -static PyObject *sipWrapperType_alloc(PyTypeObject *self, SIP_SSIZE_T nitems) -{ - PyObject *o; - - /* Call the standard super-metatype alloc. */ - if ((o = PyType_Type.tp_alloc(self, nitems)) == NULL) - return NULL; - - /* - * Consume any extra type specific information and use it to initialise - * the slots. This only happens for directly wrapped classes (and not - * programmer written sub-classes). This must be done in the alloc - * function because it is the only place we can break out of the - * default new() function before PyType_Ready() is called. - */ - if (currentType != NULL) - { - ((sipWrapperType *)o)->type = currentType; - addSlots((sipWrapperType *)o, currentType); - currentType = NULL; - } - - return o; -} - - -/* - * The type init slot. - */ -static int sipWrapperType_init(sipWrapperType *self, PyObject *args, - PyObject *kwds) -{ - /* Call the standard super-metatype init. */ - if (PyType_Type.tp_init((PyObject *)self, args, kwds) < 0) - return -1; - - /* - * If we don't yet have any extra type specific information (because we are - * a programmer defined sub-class) then get it from the (first) super-type. - */ - if (self->type == NULL) - { - PyTypeObject *sc = ((PyTypeObject *)self)->tp_base; - - /* - * Make sure that the type is derived from sip.wrapper. It might not - * if the type specifies sip.wrappertype as the __metaclass__. - */ - if (sc == NULL || !sipWrapperType_Check((PyObject *)sc)) - { - PyErr_Format(PyExc_TypeError, - "type %s must be derived from sip.wrapper", - ((PyTypeObject *)self)->tp_name); - - return -1; - } - - self->type = ((sipWrapperType *)sc)->type; - } - - return 0; -} - - -/* - * The type getattro slot. - */ -static PyObject *sipWrapperType_getattro(PyObject *obj,PyObject *name) -{ - char *nm; - PyObject *attr; - sipWrapperType *wt = (sipWrapperType *)obj; - - /* - * If we are getting the type dictionary for a base wrapped type then we - * don't want the super-metatype to handle it. - */ - if ((nm = PyString_AsString(name)) == NULL) - return NULL; - - if (strcmp(nm, "__dict__") == 0) - { - int i; - sipTypeDef *td; - sipEnumMemberDef *enm; - PyObject *dict; - PyMethodDef *pmd; - - dict = ((PyTypeObject *)wt)->tp_dict; - - /* The base type doesn't have any type information. */ - if ((td = wt->type) == NULL || !isExactWrappedType(wt)) - { - Py_INCREF(dict); - return dict; - } - - /* - * We can't cache the methods or variables so we need to make a - * temporary copy of the type dictionary and return that (so - * that it will get garbage collected immediately afterwards). - */ - if ((dict = PyDict_Copy(dict)) == NULL) - return NULL; - - /* Search the possible linked list of namespace extenders. */ - do - { - /* - * Add the type's lazy enums. It doesn't matter if - * they are already there. - */ - enm = td->td_enummembers; - - for (i = 0; i < td->td_nrenummembers; ++i) - { - int rc; - PyObject *val; - - if ((val = createEnumMember(td, enm)) == NULL) - return NULL; - - rc = PyDict_SetItemString(dict, enm->em_name, val); - - Py_DECREF(val); - - if (rc < 0) - return NULL; - - ++enm; - } - - /* Do the methods. */ - pmd = td->td_methods; - - for (i = 0; i < td->td_nrmethods; ++i) - { - int rc; - PyObject *meth; - - if ((meth = PyCFunction_New(pmd, NULL)) == NULL) - { - Py_DECREF(dict); - return NULL; - } - - rc = PyDict_SetItemString(dict, pmd->ml_name, meth); - - Py_DECREF(meth); - - if (rc < 0) - { - Py_DECREF(dict); - return NULL; - } - - ++pmd; - } - - /* Do the static variables. */ - if ((pmd = td->td_variables) != NULL) - while (pmd->ml_name != NULL) - { - if ((pmd->ml_flags & METH_STATIC) != 0) - { - int rc; - PyObject *val; - - if ((val = (*pmd->ml_meth)(NULL, NULL)) == NULL) - { - Py_DECREF(dict); - return NULL; - } - - rc = PyDict_SetItemString(dict, pmd->ml_name, val); - - Py_DECREF(val); - - if (rc < 0) - { - Py_DECREF(dict); - return NULL; - } - } - - ++pmd; - } - - td = td->td_nsextender; - } - while (td != NULL); - - return dict; - } - - /* Now try the super-metatype's method. */ - if ((attr = PyType_Type.tp_getattro(obj,name)) != NULL) - return attr; - - return handleGetLazyAttr(name,wt,NULL); -} - - -/* - * The type setattro slot. - */ -static int sipWrapperType_setattro(PyObject *obj,PyObject *name,PyObject *value) -{ - int rc; - - rc = handleSetLazyAttr(name,value,(sipWrapperType *)obj,NULL); - - if (rc <= 0) - return rc; - - /* Try the super-type's method last. */ - return PyType_Type.tp_setattro(obj,name,value); -} - - -/* - * The type data structure. We inherit everything from the standard Python - * metatype except the init and getattro methods and the size of the type - * object created is increased to accomodate the extra information we associate - * with a wrapped type. - */ -static PyTypeObject sipWrapperType_Type = { - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ - "sip.wrappertype", /* tp_name */ - sizeof (sipWrapperType), /* tp_basicsize */ - 0, /* tp_itemsize */ - 0, /* tp_dealloc */ - 0, /* tp_print */ - 0, /* tp_getattr */ - 0, /* tp_setattr */ - 0, /* tp_compare */ - 0, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - 0, /* tp_hash */ - 0, /* tp_call */ - 0, /* tp_str */ - sipWrapperType_getattro, /* tp_getattro */ - sipWrapperType_setattro, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */ - 0, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ - 0, /* tp_iter */ - 0, /* tp_iternext */ - 0, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - (initproc)sipWrapperType_init, /* tp_init */ - sipWrapperType_alloc, /* tp_alloc */ - 0, /* tp_new */ - 0, /* tp_free */ -}; - - -/***************************************************************************** - * The Python type that is the super-type for all C++ wrapper types. - *****************************************************************************/ - -/* - * The instance new slot. - */ -static PyObject *sipWrapper_new(sipWrapperType *wt,PyObject *args,PyObject *kwds) -{ - /* See if it is a namespace. */ - if (wt->type->td_fcto == NULL) - { - PyErr_Format(PyExc_TypeError, "%s represents a C++ namespace that cannot be instantiated", wt->type->td_name); - - return NULL; - } - - /* - * See if the object is being created explicitly rather than being wrapped. - */ - if (sipGetPending(NULL, NULL) == NULL) - { - /* - * See if it cannot be instantiated or sub-classed from Python, eg. - * it's an opaque class. Some restrictions might be overcome with - * better SIP support. - */ - if (wt->type->td_init == NULL) - { - PyErr_Format(PyExc_TypeError,"%s cannot be instantiated or sub-classed", wt->type->td_name); - - return NULL; - } - - /* See if it is an abstract type. */ - if (sipTypeIsAbstract(wt) && strcmp(strchr(wt->type->td_name, '.') + 1, ((PyTypeObject *)wt)->tp_name) == 0) - { - PyErr_Format(PyExc_TypeError, "%s represents a C++ abstract class and cannot be instantiated", wt->type->td_name); - - return NULL; - } - } - - /* Call the standard super-type new. */ - return PyBaseObject_Type.tp_new((PyTypeObject *)wt, args, kwds); -} - - -/* - * The instance init slot. - */ -static int sipWrapper_init(sipWrapper *self,PyObject *args,PyObject *kwds) -{ - void *sipNew; - int sipFlags; - sipWrapper *owner; - - if (self->ob_type == (PyTypeObject *)&sipWrapper_Type) - { - PyErr_SetString(PyExc_TypeError,"the sip.wrapper type cannot be instantiated"); - return -1; - } - - if (kwds != NULL) - { - PyErr_SetString(PyExc_TypeError,"keyword arguments are not supported"); - return -1; - } - - /* Check there is no existing C++ instance waiting to be wrapped. */ - if ((sipNew = sipGetPending(&owner, &sipFlags)) == NULL) - { - int argsparsed = 0; - sipWrapperType *wt = (sipWrapperType *)self->ob_type; - - /* Call the C++ ctor. */ - owner = NULL; - - if ((sipNew = wt->type->td_init(self, args, &owner, &argsparsed)) != NULL) - sipFlags = SIP_DERIVED_CLASS; - else - { - int pstate = argsparsed & PARSE_MASK; - sipInitExtenderDef *ie = wt->iextend; - - /* - * While we just have signature errors, try any initialiser - * extenders. - */ - while (ie != NULL && (pstate == PARSE_MANY || pstate == PARSE_FEW || pstate == PARSE_TYPE)) - { - argsparsed = 0; - - if ((sipNew = ie->ie_extender(self, args, &owner, &argsparsed)) != NULL) - break; - - pstate = argsparsed & PARSE_MASK; - ie = ie->ie_next; - } - - if (sipNew == NULL) - { - /* - * If the arguments were parsed without error then assume an - * exception has already been raised for why the instance - * wasn't created. - */ - if (pstate == PARSE_OK) - argsparsed = PARSE_RAISED; - - badArgs(argsparsed, NULL, getBaseName(wt->type->td_name)); - return -1; - } - - sipFlags = 0; - } - - if (owner == NULL) - sipFlags |= SIP_PY_OWNED; - } - - addToParent(self, owner); - - self->u.cppPtr = sipNew; - self->flags = sipFlags; - - if (!sipNotInMap(self)) - sipOMAddObject(&cppPyMap,self); - - return 0; -} - - -/* - * The instance traverse slot. - */ -static int sipWrapper_traverse(sipWrapper *self, visitproc visit, void *arg) -{ - int vret; - void *ptr; - sipTypeDef *td; - sipWrapper *w; - sipPySig *ps; - - /* Call the nearest handwritten traverse code in the class hierachy. */ - if ((ptr = getPtrTypeDef(self, &td)) != NULL) - { - sipTypeDef *ctd = td; - - if (td->td_traverse == NULL) - { - sipEncodedClassDef *sup; - - if ((sup = td->td_supers) != NULL) - do - ctd = getClassType(sup, td->td_module)->type; - while (ctd->td_traverse == NULL && !sup++->sc_flag); - } - - if (ctd->td_traverse != NULL) - if ((vret = ctd->td_traverse(ptr, visit, arg)) != 0) - return vret; - } - - if (qt_and_sip_api_3_4()) - { - void *tx = sipGetAddress(self); - - if (tx != NULL) - { - sipSlotConnection *conn; - void *context = NULL; - - while ((conn = sipQtSupport->qt_find_connection(tx, &context)) != NULL) - { - if ((vret = visitSlot(&conn->sc_slot, visit, arg)) != 0) - return vret; - - if (context == NULL) - break; - } - } - } - - for (ps = self->pySigList; ps != NULL; ps = ps->next) - { - sipSlotList *psrx; - - for (psrx = ps->rxlist; psrx != NULL; psrx = psrx->next) - if ((vret = visitSlot(&psrx->rx, visit, arg)) != 0) - return vret; - } - - if (self->user != NULL) - if ((vret = visit(self->user, arg)) != 0) - return vret; - - if (self->dict != NULL) - if ((vret = visit(self->dict, arg)) != 0) - return vret; - - for (w = self->first_child; w != NULL; w = w->sibling_next) - { - /* - * We don't traverse if the wrapper is a child of itself. We - * do this so that wrapped objects returned by virtual methods - * with the /Factory/ don't have those objects collected. This - * then means that plugins implemented in Python have a chance - * of working. - */ - if (w != self) - if ((vret = visit((PyObject *)w, arg)) != 0) - return vret; - } - - return 0; -} - - -/* - * The instance clear slot. - */ -static int sipWrapper_clear(sipWrapper *self) -{ - int vret = 0; - void *ptr; - sipTypeDef *td; - PyObject *tmp; - sipPySig *ps; - - /* Call the nearest handwritten clear code in the class hierachy. */ - if ((ptr = getPtrTypeDef(self, &td)) != NULL) - { - sipTypeDef *ctd = td; - - if (td->td_clear == NULL) - { - sipEncodedClassDef *sup; - - if ((sup = td->td_supers) != NULL) - do - ctd = getClassType(sup, td->td_module)->type; - while (ctd->td_clear == NULL && !sup++->sc_flag); - } - - if (ctd->td_clear != NULL) - vret = ctd->td_clear(ptr); - } - - /* Remove any lambda slots connected via a proxy. */ - if (qt_and_sip_api_3_4()) - { - void *tx = sipGetAddress(self); - - if (tx != NULL) - { - sipSlotConnection *conn; - void *context = NULL; - - while ((conn = sipQtSupport->qt_find_connection(tx, &context)) != NULL) - { - clearAnyLambda(&conn->sc_slot); - - if (context == NULL) - break; - } - } - } - - /* Remove any lambda slots connected to PyQt v3 Python signals. */ - for (ps = self->pySigList; ps != NULL; ps = ps->next) - { - sipSlotList *psrx; - - for (psrx = ps->rxlist; psrx != NULL; psrx = psrx->next) - clearAnyLambda(&psrx->rx); - } - - /* Remove any user object. */ - tmp = self->user; - self->user = NULL; - Py_XDECREF(tmp); - - /* Remove the instance dictionary. */ - tmp = self->dict; - self->dict = NULL; - Py_XDECREF(tmp); - - /* Detach children (which will be owned by C/C++. */ - while (self->first_child != NULL) - { - /* - * Although this object is being garbage collected it doesn't follow - * that it's children should be. So we make sure that the child stays - * alive and remember we have done so. - */ - Py_INCREF(self->first_child); - sipSetCppHasRef(self->first_child); - - removeFromParent(self->first_child); - } - - return vret; -} - - -/* - * The instance read buffer slot. - */ -static SIP_SSIZE_T sipWrapper_getreadbuffer(sipWrapper *self, - SIP_SSIZE_T segment, void **ptrptr) -{ - void *ptr; - sipTypeDef *td; - - if ((ptr = getPtrTypeDef(self, &td)) == NULL) - return -1; - - return td->td_readbuffer((PyObject *)self, ptr, segment, ptrptr); -} - - -/* - * The instance write buffer slot. - */ -static SIP_SSIZE_T sipWrapper_getwritebuffer(sipWrapper *self, - SIP_SSIZE_T segment, void **ptrptr) -{ - void *ptr; - sipTypeDef *td; - - if ((ptr = getPtrTypeDef(self, &td)) == NULL) - return -1; - - return td->td_writebuffer((PyObject *)self, ptr, segment, ptrptr); -} - - -/* - * The instance segment count slot. - */ -static SIP_SSIZE_T sipWrapper_getsegcount(sipWrapper *self, SIP_SSIZE_T *lenp) -{ - void *ptr; - sipTypeDef *td; - - if ((ptr = getPtrTypeDef(self, &td)) == NULL) - return 0; - - return td->td_segcount((PyObject *)self, ptr, lenp); -} - - -/* - * The instance char buffer slot. - */ -static SIP_SSIZE_T sipWrapper_getcharbuffer(sipWrapper *self, - SIP_SSIZE_T segment, void **ptrptr) -{ - void *ptr; - sipTypeDef *td; - - if ((ptr = getPtrTypeDef(self, &td)) == NULL) - return -1; - - return td->td_charbuffer((PyObject *)self, ptr, segment, ptrptr); -} - - -/* - * The instance dealloc slot. - */ -static void sipWrapper_dealloc(sipWrapper *self) -{ - sipTypeDef *td; - - if (getPtrTypeDef(self, &td) != NULL) - { - /* - * Remove the object from the map before calling the class specific - * dealloc code. This code calls the C++ dtor and may result in - * further calls that pass the instance as an argument. If this is - * still in the map then it's reference count would be increased (to - * one) and bad things happen when it drops back to zero again. (An - * example is PyQt events generated during the dtor call being passed - * to an event filter implemented in Python.) By removing it from the - * map first we ensure that a new Python object is created. - */ - sipOMRemoveObject(&cppPyMap, self); - - /* Call the C++ dtor if there is one. */ - if (td->td_dealloc != NULL) - td->td_dealloc(self); - } - - /* - * Now that the C++ object no longer exists we can tidy up the Python - * object. We used to do this first but that meant lambda slots were - * removed too soon (if they were connected to TQObject.destroyed()). - */ - sipWrapper_clear(self); - - while (self->pySigList != NULL) - { - sipPySig *ps; - sipSlotList *psrx; - - /* Take this one out of the list. */ - ps = self->pySigList; - self->pySigList = ps->next; - - while ((psrx = ps->rxlist) != NULL) - { - ps->rxlist = psrx->next; - sipFreeSlotList(psrx); - } - - sip_api_free(ps->name); - sip_api_free(ps); - } - - /* Call the standard super-type dealloc. */ - PyBaseObject_Type.tp_dealloc((PyObject *)self); -} - - -/* - * The instance call slot. Note that keyword arguments aren't supported. - */ -static PyObject *sipWrapper_call(PyObject *self,PyObject *args,PyObject *kw) -{ - PyObject *(*f)(PyObject *,PyObject *); - - f = (PyObject *(*)(PyObject *,PyObject *))findSlot(self,call_slot); - - return f(self,args); -} - - -/* - * The sequence instance item slot. - */ -static PyObject *sipWrapper_sq_item(PyObject *self, SIP_SSIZE_T n) -{ - PyObject *(*f)(PyObject *,PyObject *); - PyObject *arg, *res; - -#if PY_VERSION_HEX >= 0x02050000 - if ((arg = PyInt_FromSsize_t(n)) == NULL) -#else - if ((arg = PyInt_FromLong(n)) == NULL) -#endif - return NULL; - - f = (PyObject *(*)(PyObject *,PyObject *))findSlot(self,getitem_slot); - - res = f(self,arg); - - Py_DECREF(arg); - - return res; -} - - -/* - * The mapping instance assign subscript slot. - */ -static int sipWrapper_mp_ass_subscript(PyObject *self,PyObject *key, - PyObject *value) -{ - return objobjargprocSlot(self,key,value,(value != NULL ? setitem_slot : delitem_slot)); -} - - -/* - * The sequence instance assign item slot. - */ -static int sipWrapper_sq_ass_item(PyObject *self, SIP_SSIZE_T i, PyObject *o) -{ - return ssizeobjargprocSlot(self, i, o, (o != NULL ? setitem_slot : delitem_slot)); -} - - -/* - * The instance rich compare slot. - */ -static PyObject *sipWrapper_richcompare(PyObject *self,PyObject *arg,int op) -{ - PyObject *(*f)(PyObject *,PyObject *); - sipPySlotType st; - - /* Convert the operation to a slot type. */ - switch (op) - { - case Py_LT: - st = lt_slot; - break; - - case Py_LE: - st = le_slot; - break; - - case Py_EQ: - st = eq_slot; - break; - - case Py_NE: - st = ne_slot; - break; - - case Py_GT: - st = gt_slot; - break; - - case Py_GE: - st = ge_slot; - break; - } - - /* It might not exist if not all the above have been implemented. */ - if ((f = (PyObject *(*)(PyObject *,PyObject *))findSlot(self,st)) == NULL) - { - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; - } - - return f(self,arg); -} - - -/* - * The instance getattro slot. - */ -static PyObject *sipWrapper_getattro(PyObject *obj,PyObject *name) -{ - char *nm; - PyObject *attr; - sipWrapperType *wt = (sipWrapperType *)obj->ob_type; - sipWrapper *w = (sipWrapper *)obj; - - /* - * If we are getting the instance dictionary of a base wrapper type - * then we don't want the metatype to handle it. - */ - if ((nm = PyString_AsString(name)) == NULL) - return NULL; - - if (strcmp(nm, "__dict__") == 0) - { - PyObject *tmpdict = NULL; - - if (isExactWrappedType(wt) && getNonStaticVariables(wt, w, &tmpdict) < 0) - { - Py_XDECREF(tmpdict); - return NULL; - } - - /* - * If a copy of the instance dictionary wasn't created then - * just return the original. Note that Python doesn't want a - * proxy. - */ - if (tmpdict == NULL) - if ((tmpdict = w->dict) == NULL) - tmpdict = PyDict_New(); - else - Py_INCREF(tmpdict); - - return tmpdict; - } - - /* Try the super-type's method first. */ - if ((attr = PyBaseObject_Type.tp_getattro(obj,name)) != NULL) - return attr; - - return handleGetLazyAttr(name,wt,w); -} - - -/* - * Add the values of all non-static variables to a dictionary (first making a - * copy of the dictionary if needed). - */ -static int getNonStaticVariables(sipWrapperType *wt,sipWrapper *w, - PyObject **ndict) -{ - PyMethodDef *pmd; - - if ((pmd = wt->type->td_variables) != NULL) - while (pmd->ml_name != NULL) - { - if ((pmd->ml_flags & METH_STATIC) == 0) - { - int rc; - PyObject *val, *dict; - - /* - * Create a copy of the original dictionary if - * it hasn't already been done. - */ - if ((dict = *ndict) == NULL) - { - if ((dict = PyDict_Copy(w->dict)) == NULL) - return -1; - - *ndict = dict; - } - - if ((val = (*pmd->ml_meth)((PyObject *)w,NULL)) == NULL) - return -1; - - rc = PyDict_SetItemString(dict,pmd->ml_name,val); - - Py_DECREF(val); - - if (rc < 0) - return -1; - } - - ++pmd; - } - - return 0; -} - - -/* - * The instance setattro slot. - */ -static int sipWrapper_setattro(PyObject *obj,PyObject *name,PyObject *value) -{ - int rc; - - rc = handleSetLazyAttr(name,value,(sipWrapperType *)obj->ob_type,(sipWrapper *)obj); - - if (rc <= 0) - return rc; - - /* Try the super-type's method last. */ - return PyBaseObject_Type.tp_setattro(obj,name,value); -} - - -/* - * The type data structure. Note that we pretend to be a mapping object and a - * sequence object at the same time. Python will choose one over another, - * depending on the context, but we implement as much as we can and don't make - * assumptions about which Python will choose. - */ -static sipWrapperType sipWrapper_Type = { - { - { - PyObject_HEAD_INIT(&sipWrapperType_Type) - 0, /* ob_size */ - "sip.wrapper", /* tp_name */ - sizeof (sipWrapper), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor)sipWrapper_dealloc, /* tp_dealloc */ - 0, /* tp_print */ - 0, /* tp_getattr */ - 0, /* tp_setattr */ - 0, /* tp_compare */ - 0, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - 0, /* tp_hash */ - 0, /* tp_call */ - 0, /* tp_str */ - sipWrapper_getattro, /* tp_getattro */ - sipWrapper_setattro, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC, /* tp_flags */ - 0, /* tp_doc */ - (traverseproc)sipWrapper_traverse, /* tp_traverse */ - (inquiry)sipWrapper_clear, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ - 0, /* tp_iter */ - 0, /* tp_iternext */ - 0, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - offsetof(sipWrapper,dict), /* tp_dictoffset */ - (initproc)sipWrapper_init, /* tp_init */ - 0, /* tp_alloc */ - (newfunc)sipWrapper_new, /* tp_new */ - 0, /* tp_free */ - }, - }, - 0, - 0 -}; - - -/* - * Add the slots for a type and all its super-types. - */ -static void addSlots(sipWrapperType *wt, sipTypeDef *td) -{ - sipEncodedClassDef *sup; - - /* Add the buffer interface. */ - if (td->td_readbuffer != NULL) -#if PY_VERSION_HEX >= 0x02050000 - wt->super.as_buffer.bf_getreadbuffer = (readbufferproc)sipWrapper_getreadbuffer; -#else - wt->super.as_buffer.bf_getreadbuffer = (getreadbufferproc)sipWrapper_getreadbuffer; -#endif - - if (td->td_writebuffer != NULL) -#if PY_VERSION_HEX >= 0x02050000 - wt->super.as_buffer.bf_getwritebuffer = (writebufferproc)sipWrapper_getwritebuffer; -#else - wt->super.as_buffer.bf_getwritebuffer = (getwritebufferproc)sipWrapper_getwritebuffer; -#endif - - if (td->td_segcount != NULL) -#if PY_VERSION_HEX >= 0x02050000 - wt->super.as_buffer.bf_getsegcount = (segcountproc)sipWrapper_getsegcount; -#else - wt->super.as_buffer.bf_getsegcount = (getsegcountproc)sipWrapper_getsegcount; -#endif - - if (td->td_charbuffer != NULL) -#if PY_VERSION_HEX >= 0x02050000 - wt->super.as_buffer.bf_getcharbuffer = (charbufferproc)sipWrapper_getcharbuffer; -#else - wt->super.as_buffer.bf_getcharbuffer = (getcharbufferproc)sipWrapper_getcharbuffer; -#endif - - /* Add the slots for this type. */ - if (td->td_pyslots != NULL) - initSlots((PyTypeObject *)wt, &wt->super.as_number, &wt->super.as_sequence, &wt->super.as_mapping, td->td_pyslots, FALSE); - - /* Recurse through any super-types. */ - if ((sup = td->td_supers) != NULL) - do - addSlots(wt, getClassType(sup, td->td_module)->type); - while (!sup++->sc_flag); -} - - -/* - * Add the slot handler for each slot present in the type, optionally replacing - * any that have already been defined. - */ -static void initSlots(PyTypeObject *to, PyNumberMethods *nb, PySequenceMethods *sq, PyMappingMethods *mp, sipPySlotDef *slots, int force) -{ - void *f; - - while ((f = slots->psd_func) != NULL) - switch (slots++->psd_type) - { - case str_slot: - if (force || to->tp_str == NULL) - to->tp_str = (reprfunc)f; - break; - - case int_slot: - if (nb != NULL) - if (force || nb->nb_int == NULL) - nb->nb_int = (unaryfunc)f; - break; - - case long_slot: - if (nb != NULL) - if (force || nb->nb_long == NULL) - nb->nb_long = (unaryfunc)f; - break; - - case float_slot: - if (nb != NULL) - if (force || nb->nb_float == NULL) - nb->nb_float = (unaryfunc)f; - break; - - case len_slot: - if (mp != NULL) - if (force || mp->mp_length == NULL) -#if PY_VERSION_HEX >= 0x02050000 - mp->mp_length = (lenfunc)f; -#else - mp->mp_length = (inquiry)f; -#endif - if (sq != NULL) - if (force || sq->sq_length == NULL) -#if PY_VERSION_HEX >= 0x02050000 - sq->sq_length = (lenfunc)f; -#else - sq->sq_length = (inquiry)f; -#endif - break; - - case contains_slot: - if (sq != NULL) - if (force || sq->sq_contains == NULL) - sq->sq_contains = (objobjproc)f; - break; - - case add_slot: - if (nb != NULL) - if (force || nb->nb_add == NULL) - nb->nb_add = (binaryfunc)f; - break; - - case concat_slot: - if (sq != NULL) - if (force || sq->sq_concat == NULL) - sq->sq_concat = (binaryfunc)f; - break; - - case sub_slot: - if (nb != NULL) - if (force || nb->nb_subtract == NULL) - nb->nb_subtract = (binaryfunc)f; - break; - - case mul_slot: - if (nb != NULL) - if (force || nb->nb_multiply == NULL) - nb->nb_multiply = (binaryfunc)f; - break; - - case repeat_slot: - if (sq != NULL) - if (force || sq->sq_repeat == NULL) -#if PY_VERSION_HEX >= 0x02050000 - sq->sq_repeat = (ssizeargfunc)f; -#else - sq->sq_repeat = (intargfunc)f; -#endif - break; - - case div_slot: - if (nb != NULL) - { - if (force || nb->nb_divide == NULL) - nb->nb_divide = (binaryfunc)f; - - if (force || nb->nb_true_divide == NULL) - nb->nb_true_divide = (binaryfunc)f; - } - break; - - case mod_slot: - if (nb != NULL) - if (force || nb->nb_remainder == NULL) - nb->nb_remainder = (binaryfunc)f; - break; - - case and_slot: - if (nb != NULL) - if (force || nb->nb_and == NULL) - nb->nb_and = (binaryfunc)f; - break; - - case or_slot: - if (nb != NULL) - if (force || nb->nb_or == NULL) - nb->nb_or = (binaryfunc)f; - break; - - case xor_slot: - if (nb != NULL) - if (force || nb->nb_xor == NULL) - nb->nb_xor = (binaryfunc)f; - break; - - case lshift_slot: - if (nb != NULL) - if (force || nb->nb_lshift == NULL) - nb->nb_lshift = (binaryfunc)f; - break; - - case rshift_slot: - if (nb != NULL) - if (force || nb->nb_rshift == NULL) - nb->nb_rshift = (binaryfunc)f; - break; - - case iadd_slot: - if (nb != NULL) - if (force || nb->nb_inplace_add == NULL) - nb->nb_inplace_add = (binaryfunc)f; - break; - - case iconcat_slot: - if (sq != NULL) - if (force || sq->sq_inplace_concat == NULL) - sq->sq_inplace_concat = (binaryfunc)f; - break; - - case isub_slot: - if (nb != NULL) - if (force || nb->nb_inplace_subtract == NULL) - nb->nb_inplace_subtract = (binaryfunc)f; - break; - - case imul_slot: - if (nb != NULL) - if (force || nb->nb_inplace_multiply == NULL) - nb->nb_inplace_multiply = (binaryfunc)f; - break; - - case irepeat_slot: - if (sq != NULL) - if (force || sq->sq_inplace_repeat == NULL) -#if PY_VERSION_HEX >= 0x02050000 - sq->sq_inplace_repeat = (ssizeargfunc)f; -#else - sq->sq_inplace_repeat = (intargfunc)f; -#endif - break; - - case idiv_slot: - if (nb != NULL) - { - if (force || nb->nb_inplace_divide == NULL) - nb->nb_inplace_divide = (binaryfunc)f; - - if (force || nb->nb_inplace_true_divide == NULL) - nb->nb_inplace_true_divide = (binaryfunc)f; - } - break; - - case imod_slot: - if (nb != NULL) - if (force || nb->nb_inplace_remainder == NULL) - nb->nb_inplace_remainder = (binaryfunc)f; - break; - - case iand_slot: - if (nb != NULL) - if (force || nb->nb_inplace_and == NULL) - nb->nb_inplace_and = (binaryfunc)f; - break; - - case ior_slot: - if (nb != NULL) - if (force || nb->nb_inplace_or == NULL) - nb->nb_inplace_or = (binaryfunc)f; - break; - - case ixor_slot: - if (nb != NULL) - if (force || nb->nb_inplace_xor == NULL) - nb->nb_inplace_xor = (binaryfunc)f; - break; - - case ilshift_slot: - if (nb != NULL) - if (force || nb->nb_inplace_lshift == NULL) - nb->nb_inplace_lshift = (binaryfunc)f; - break; - - case irshift_slot: - if (nb != NULL) - if (force || nb->nb_inplace_rshift == NULL) - nb->nb_inplace_rshift = (binaryfunc)f; - break; - - case invert_slot: - if (nb != NULL) - if (force || nb->nb_invert == NULL) - nb->nb_invert = (unaryfunc)f; - break; - - case call_slot: - if (force || to->tp_call == NULL) - to->tp_call = sipWrapper_call; - break; - - case getitem_slot: - if (mp != NULL) - if (force || mp->mp_subscript == NULL) - mp->mp_subscript = (binaryfunc)f; - if (sq != NULL) - if (force || sq->sq_item == NULL) - sq->sq_item = sipWrapper_sq_item; - break; - - case setitem_slot: - case delitem_slot: - if (mp != NULL) - if (force || mp->mp_ass_subscript == NULL) - mp->mp_ass_subscript = sipWrapper_mp_ass_subscript; - if (sq != NULL) - if (force || sq->sq_ass_item == NULL) - sq->sq_ass_item = sipWrapper_sq_ass_item; - break; - - case lt_slot: - case le_slot: - case eq_slot: - case ne_slot: - case gt_slot: - case ge_slot: - if (force || to->tp_richcompare == NULL) - to->tp_richcompare = sipWrapper_richcompare; - break; - - case cmp_slot: - if (force || to->tp_compare == NULL) - to->tp_compare = (cmpfunc)f; - break; - - case nonzero_slot: - if (nb != NULL) - if (force || nb->nb_nonzero == NULL) - nb->nb_nonzero = (inquiry)f; - break; - - case neg_slot: - if (nb != NULL) - if (force || nb->nb_negative == NULL) - nb->nb_negative = (unaryfunc)f; - break; - - case repr_slot: - if (force || to->tp_repr == NULL) - to->tp_repr = (reprfunc)f; - break; - - case hash_slot: - if (force || to->tp_hash == NULL) - to->tp_hash = (hashfunc)f; - break; - - case pos_slot: - if (nb != NULL) - if (force || nb->nb_positive == NULL) - nb->nb_positive = (unaryfunc)f; - break; - - case abs_slot: - if (nb != NULL) - if (force || nb->nb_absolute == NULL) - nb->nb_absolute = (unaryfunc)f; - break; - } -} - - -/* - * Search for a named class and return the wrapper type. - */ -static sipWrapperType *findClass(sipExportedModuleDef *emd, const char *name, - size_t len) -{ - int i; - sipWrapperType **wtp = emd->em_types; - - for (i = 0; i < emd->em_nrtypes; ++i) - { - sipWrapperType *wt; - - if ((wt = *wtp++) == NULL) - continue; - - if (wt->type->td_cname != NULL) - { - if (!nameEq(wt->type->td_cname, name, len)) - continue; - } - else if (!sameScopedName(wt->type->td_name, name, len)) - continue; - - return wt; - } - - return NULL; -} - - -/* - * Search for a named class and return TRUE and the necessary information to - * create an instance of it if it was found. - */ -static int findClassArg(sipExportedModuleDef *emd, const char *name, - size_t len, sipSigArg *at, int indir) -{ - sipWrapperType *wt = findClass(emd, name, len); - - if (wt == NULL) - return FALSE; - - if (indir == 0) - at->atype = class_sat; - else if (indir == 1) - at->atype = classp_sat; - else - at->atype = unknown_sat; - - at->u.wt = wt; - - return TRUE; -} - - -/* - * Search for a mapped type and return TRUE and the necessary information to - * create an instance of it if it was found. - */ -static int findMtypeArg(sipMappedType **mttab, const char *name, size_t len, - sipSigArg *at, int indir) -{ - sipMappedType *mt; - - while ((mt = *mttab++) != NULL) - if (nameEq(mt->mt_name, name, len)) - { - if (indir == 0) - at->atype = mtype_sat; - else if (indir == 1) - at->atype = mtypep_sat; - else - at->atype = unknown_sat; - - at->u.mt = mt; - - return TRUE; - } - - return FALSE; -} - - -/* - * Search for a named enum in a particular module and return the corresponding - * type object. - */ -static PyTypeObject *findEnum(sipExportedModuleDef *emd, const char *name, - size_t len) -{ - int i; - sipEnumDef *ed; - - for (ed = emd->em_enumdefs, i = 0; i < emd->em_nrenums; ++i, ++ed) - { - if (ed->e_cname != NULL) - { - if (!nameEq(ed->e_cname, name, len)) - continue; - } - else if (!sameScopedName(ed->e_name, name, len)) - continue; - - return emd->em_enums[i]; - } - - return NULL; -} - - -/* - * Search for a named enum and return TRUE and the necessary information to - * create an instance of it if it was found. - */ -static int findEnumArg(sipExportedModuleDef *emd, const char *name, size_t len, - sipSigArg *at, int indir) -{ - PyTypeObject *py = findEnum(emd, name, len); - - if (py == NULL) - return FALSE; - - if (indir == 0) - at->atype = enum_sat; - else - at->atype = unknown_sat; - - at->u.et = py; - - return TRUE; -} - - -/* - * Search for a named type and the necessary information to create an instance - * of it. - */ -void sipFindSigArgType(const char *name, size_t len, sipSigArg *at, int indir) -{ - sipExportedModuleDef *em; - sipPyObject *po; - - at->atype = unknown_sat; - - for (em = clientList; em != NULL; em = em->em_next) - { - sipTypedefDef *tdd; - - /* Search for a typedef. */ - if ((tdd = em->em_typedefs) != NULL) - while (tdd->tdd_name != NULL) - { - if (nameEq(tdd->tdd_name, name, len)) - { - sipExportedModuleDef *tem; - const char *tn; - size_t tnlen; - - at->atype = tdd->tdd_type; - - /* Done with the simple cases. */ - if ((tn = tdd->tdd_type_name) == NULL) - return; - - /* - * Find the module that this class, mapped type or enum is - * defined in. - */ - if (tdd->tdd_mod_name == NULL) - tem = em; - else - for (tem = clientList; tem != NULL; tem = tem->em_next) - if (strcmp(tem->em_name, tdd->tdd_mod_name) == 0) - break; - - tnlen = strlen(tn); - - switch (tdd->tdd_type) - { - case class_sat: - findClassArg(tem, tn, tnlen, at, indir); - break; - - case mtype_sat: - findMtypeArg(tem->em_mappedtypes, tn, tnlen, at, indir); - break; - - case enum_sat: - findEnumArg(tem, tn, tnlen, at, indir); - break; - } - - /* We should have found it by now. */ - return; - } - - ++tdd; - } - - /* Search for a class. */ - if (em->em_types != NULL && findClassArg(em, name, len, at, indir)) - return; - - /* Search for a mapped type. */ - if (em->em_mappedtypes != NULL && findMtypeArg(em->em_mappedtypes, name, len, at, indir)) - return; - - /* Search for an enum. */ - if (em->em_enums != NULL && findEnumArg(em, name, len, at, indir)) - return; - } - - /* Search for a dynamically registered int type. */ - for (po = sipRegisteredIntTypes; po != NULL; po = po->next) - { - int i; - - for (i = 0; i < PyTuple_GET_SIZE(po->object); ++i) - { - char *int_nm = PyString_AsString(PyTuple_GET_ITEM(po->object, i)); - - if (int_nm == NULL) - continue; - - if (nameEq(int_nm, name, len)) - { - at->atype = int_sat; - return; - } - } - } -} - - -/* - * Compare a '\0' terminated string with the first len characters of a second - * and return a non-zero value if they are equal. - */ -static int nameEq(const char *with, const char *name, size_t len) -{ - return (strlen(with) == len && strncmp(with, name, len) == 0); -} - - -/* - * Return TRUE if a Python scoped name and a fixed length C++ scoped name - * match. - */ -static int sameScopedName(const char *pyname, const char *name, size_t len) -{ - char ch; - - /* Skip the module name from the Python name. */ - pyname = strchr(pyname, '.') + 1; - - while ((ch = *pyname++) != '\0' && len) - if (ch == '.') - { - if (len < 2 || name[0] != ':' || name[1] != ':') - return FALSE; - - name += 2; - len -= 2; - } - else if (ch == name[0]) - { - ++name; - --len; - } - else - return FALSE; - - return (ch == '\0' && len == 0); -} - - -/* - * Register a Python tuple of type names that will be interpreted as ints if - * they are seen as signal arguments. - */ -static int sip_api_register_int_types(PyObject *args) -{ - sipPyObject *po; - int bad_args = FALSE; - - /* Raise an exception if the arguments are bad. */ - if (PyTuple_Check(args)) - { - int i; - - for (i = 0; i < PyTuple_GET_SIZE(args); ++i) - if (!PyString_Check(PyTuple_GET_ITEM(args, i))) - { - bad_args = TRUE; - break; - } - } - else - bad_args = TRUE; - - if (bad_args) - { - PyErr_SetString(PyExc_TypeError, "all arguments must be strings"); - return -1; - } - - if ((po = sip_api_malloc(sizeof (sipPyObject))) == NULL) - return -1; - - Py_INCREF(args); - - po->object = args; - po->next = sipRegisteredIntTypes; - - sipRegisteredIntTypes = po; - - return 0; -} - - -/* - * Register a symbol with a name. A negative value is returned if the name was - * already registered. - */ -static int sip_api_export_symbol(const char *name, void *sym) -{ - sipSymbol *ss; - - if (sip_api_import_symbol(name) != NULL) - return -1; - - if ((ss = sip_api_malloc(sizeof (sipSymbol))) == NULL) - return -1; - - ss->name = name; - ss->symbol = sym; - ss->next = sipSymbolList; - - sipSymbolList = ss; - - return 0; -} - - -/* - * Return the symbol registered with the given name. NULL is returned if the - * name was not registered. - */ -static void *sip_api_import_symbol(const char *name) -{ - sipSymbol *ss; - - for (ss = sipSymbolList; ss != NULL; ss = ss->next) - if (strcmp(ss->name, name) == 0) - return ss->symbol; - - return NULL; -} - - -/* - * Returns TRUE if the Qt support is present and conforms to the v3.4 or later - * of the SIP API. - */ -static int qt_and_sip_api_3_4(void) -{ - return (sipQtSupport != NULL && sipQObjectClass->type->td_module->em_api_minor >= 4); -} - - -/* - * Visit a slot connected to an object for the cyclic garbage collector. - */ -static int visitSlot(sipSlot *slot, visitproc visit, void *arg) -{ - if (slot->pyobj != NULL && sipLambdaSlot(slot->pyobj)) - return visit(slot->pyobj, arg); - - return 0; -} - - -/* - * Clear a slot if it is a lambda function. - */ -static void clearAnyLambda(sipSlot *slot) -{ - PyObject *lam = slot->pyobj; - - if (lam != NULL && sipLambdaSlot(lam)) - { - /* - * Replace the lambda function with None. We don't use NULL as this - * has another meaning. - */ - Py_INCREF(Py_None); - slot->pyobj = Py_None; - - Py_DECREF(lam); - } -} - - -/* - * Convert a Python object to a character. - */ -static char sip_api_string_as_char(PyObject *obj) -{ - char ch; - - if (parseChar(obj, &ch) < 0) - { - PyErr_SetString(PyExc_ValueError, "string of length 1 expected"); - - return '\0'; - } - - return ch; -} - - -/* - * Parse a character array and return it's address and length. - */ -static int parseCharArray(PyObject *obj, char **ap, int *aszp) -{ - if (obj == Py_None) - { - *ap = NULL; - *aszp = 0; - } - else if (PyString_Check(obj)) - { - *ap = PyString_AS_STRING(obj); - *aszp = (int)PyString_GET_SIZE(obj); - } - else - return -1; - - return 0; -} - - -/* - * Parse a character and return it. - */ -static int parseChar(PyObject *obj, char *ap) -{ - if (!PyString_Check(obj) || PyString_GET_SIZE(obj) != 1) - return -1; - - *ap = *PyString_AS_STRING(obj); - - return 0; -} - - -/* - * Parse a character string and return it. - */ -static int parseCharString(PyObject *obj, char **ap) -{ - if (obj == Py_None) - *ap = NULL; - else if (PyString_Check(obj)) - *ap = PyString_AS_STRING(obj); - else - return -1; - - return 0; -} - - -#if defined(HAVE_WCHAR_H) -/* - * Convert a Python object to a wide character. - */ -static wchar_t sip_api_unicode_as_wchar(PyObject *obj) -{ - wchar_t ch; - - if (parseWChar(obj, &ch) < 0) - { - PyErr_SetString(PyExc_ValueError, "unicode string of length 1 expected"); - - return L'\0'; - } - - return ch; -} - - -/* - * Convert a Python object to a wide character string on the heap. - */ -static wchar_t *sip_api_unicode_as_wstring(PyObject *obj) -{ - wchar_t *p; - - if (parseWCharString(obj, &p) < 0) - { - PyErr_SetString(PyExc_ValueError, "unicode string expected"); - - return NULL; - } - - return p; -} - - -/* - * Parse a wide character array and return it's address and length. - */ -static int parseWCharArray(PyObject *obj, wchar_t **ap, int *aszp) -{ - if (obj == Py_None) - { - *ap = NULL; - *aszp = 0; - } - else if (PyUnicode_Check(obj)) - { - SIP_SSIZE_T ulen; - wchar_t *wc; - - ulen = PyUnicode_GET_SIZE(obj); - - if ((wc = sip_api_malloc(ulen * sizeof (wchar_t))) == NULL) - return -1; - - ulen = PyUnicode_AsWideChar((PyUnicodeObject *)obj, wc, ulen); - - if (ulen < 0) - { - sip_api_free(wc); - return -1; - } - - *ap = wc; - *aszp = (int)ulen; - } - else - return -1; - - return 0; -} - - -/* - * Parse a wide character and return it. - */ -static int parseWChar(PyObject *obj, wchar_t *ap) -{ - if (!PyUnicode_Check(obj) || PyUnicode_GET_SIZE(obj) != 1) - return -1; - - if (PyUnicode_AsWideChar((PyUnicodeObject *)obj, ap, 1) != 1) - return -1; - - return 0; -} - - -/* - * Parse a wide character string and return it. - */ -static int parseWCharString(PyObject *obj, wchar_t **ap) -{ - if (obj == Py_None) - *ap = NULL; - else if (PyUnicode_Check(obj)) - { - SIP_SSIZE_T ulen; - wchar_t *wc; - - ulen = PyUnicode_GET_SIZE(obj); - - if ((wc = sip_api_malloc((ulen + 1) * sizeof (wchar_t))) == NULL) - return -1; - - ulen = PyUnicode_AsWideChar((PyUnicodeObject *)obj, wc, ulen); - - if (ulen < 0) - { - sip_api_free(wc); - return -1; - } - - wc[ulen] = L'\0'; - - *ap = wc; - } - else - return -1; - - return 0; -} - -#else - -/* - * Convert a Python object to a wide character. - */ -static int sip_api_unicode_as_wchar(PyObject *obj) -{ - raiseNoWChar(); - - return 0; -} - - -/* - * Convert a Python object to a wide character. - */ -static int *sip_api_unicode_as_wstring(PyObject *obj) -{ - raiseNoWChar(); - - return NULL; -} - - -/* - * Report the need for absent wide character support. - */ -static void raiseNoWChar() -{ - PyErr_SetString(PyExc_SystemError, "sip built without wchar_t support"); -} - -#endif diff --git a/python/sip/siplib/siplib.sbf b/python/sip/siplib/siplib.sbf deleted file mode 100644 index 2499d1b8..00000000 --- a/python/sip/siplib/siplib.sbf +++ /dev/null @@ -1,16 +0,0 @@ -# This is the build file for the extension module. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of SIP. -# -# This copy of SIP is licensed for use under the terms of the SIP License -# Agreement. See the file LICENSE for more details. -# -# SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -target = sip -sources = siplib.c qtlib.c threads.c objmap.c bool.cpp -headers = sip.h sipint.h diff --git a/python/sip/siplib/threads.c b/python/sip/siplib/threads.c deleted file mode 100644 index c4ee75ff..00000000 --- a/python/sip/siplib/threads.c +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Thread support for the SIP library. This module provides the hooks for - * C++ classes that provide a thread interface to interact properly with the - * Python threading infrastructure. - * - * Copyright (c) 2007 - * Riverbank Computing Limited - * - * This file is part of SIP. - * - * This copy of SIP is licensed for use under the terms of the SIP License - * Agreement. See the file LICENSE for more details. - * - * SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ - - -#include "sip.h" -#include "sipint.h" - - -/* - * The data associated with pending request to wrap an object. - */ -typedef struct _pendingDef { - void *cpp; /* The C/C++ object ot be wrapped. */ - sipWrapper *owner; /* The owner of the object. */ - int flags; /* The flags. */ -} pendingDef; - - -#ifdef WITH_THREAD - -#include - - -/* - * The per thread data we need to maintain. - */ -typedef struct _threadDef { - long thr_ident; /* The thread identifier. */ - pendingDef pending; /* An object waiting to be wrapped. */ - struct _threadDef *next; /* Next in the list. */ -} threadDef; - - -static threadDef *threads = NULL; /* Linked list of threads. */ - - -static threadDef *currentThreadDef(void); - -#endif - - -static pendingDef pending; /* An object waiting to be wrapped. */ - - -/* - * Get the address of any C/C++ object waiting to be wrapped. - */ -void *sipGetPending(sipWrapper **op, int *fp) -{ - pendingDef *pp; - -#ifdef WITH_THREAD - threadDef *td; - - if ((td = currentThreadDef()) != NULL) - pp = &td->pending; - else - pp = &pending; -#else - pp = &pending; -#endif - - if (pp->cpp != NULL) - { - if (op != NULL) - *op = pp->owner; - - if (fp != NULL) - *fp = pp->flags; - } - - return pp->cpp; -} - - -/* - * Convert a new C/C++ pointer to a Python instance. - */ -PyObject *sipWrapSimpleInstance(void *cppPtr, sipWrapperType *type, - sipWrapper *owner, int flags) -{ - static PyObject *nullargs = NULL; - - pendingDef old_pending; - PyObject *self; -#ifdef WITH_THREAD - threadDef *td; -#endif - - if (nullargs == NULL && (nullargs = PyTuple_New(0)) == NULL) - return NULL; - - if (cppPtr == NULL) - { - Py_INCREF(Py_None); - return Py_None; - } - - /* - * Object creation can trigger the Python garbage collector which in turn - * can execute arbitrary Python code which can then call this function - * recursively. Therefore we save any existing pending object before - * setting the new one. - */ -#ifdef WITH_THREAD - if ((td = currentThreadDef()) != NULL) - { - old_pending = td->pending; - - td->pending.cpp = cppPtr; - td->pending.owner = owner; - td->pending.flags = flags; - } - else - { - old_pending = pending; - - pending.cpp = cppPtr; - pending.owner = owner; - pending.flags = flags; - } -#else - old_pending = pending; - - pending.cpp = cppPtr; - pending.owner = owner; - pending.flags = flags; -#endif - - self = PyObject_Call((PyObject *)type, nullargs, NULL); - -#ifdef WITH_THREAD - if (td != NULL) - td->pending = old_pending; - else - pending = old_pending; -#else - pending = old_pending; -#endif - - return self; -} - - -/* - * This is called from a newly created thread to initialise some thread local - * storage. - */ -void sip_api_start_thread(void) -{ -#ifdef WITH_THREAD - threadDef *td; - - /* Save the thread ID. First, find an empty slot in the list. */ - for (td = threads; td != NULL; td = td->next) - if (td->thr_ident == 0) - break; - - if (td == NULL) - { - td = sip_api_malloc(sizeof (threadDef)); - td->next = threads; - threads = td; - } - - if (td != NULL) - { - td->thr_ident = PyThread_get_thread_ident(); - td->pending.cpp = NULL; - } -#endif -} - - -/* - * Handle the termination of a thread. The thread state should already have - * been handled by the last call to PyGILState_Release(). - */ -void sip_api_end_thread(void) -{ -#ifdef WITH_THREAD - threadDef *td; - - /* We have the GIL at this point. */ - if ((td = currentThreadDef()) != NULL) - td->thr_ident = 0; -#endif -} - - -#ifdef WITH_THREAD - -/* - * Return the thread data for the current thread or NULL if it wasn't - * recognised. - */ -static threadDef *currentThreadDef(void) -{ - threadDef *td; - long ident = PyThread_get_thread_ident(); - - for (td = threads; td != NULL; td = td->next) - if (td->thr_ident == ident) - break; - - return td; -} - -#endif diff --git a/python/sip/siputils.py b/python/sip/siputils.py deleted file mode 100644 index d4e596ca..00000000 --- a/python/sip/siputils.py +++ /dev/null @@ -1,2354 +0,0 @@ -# This module is intended to be used by the build/installation scripts of -# extension modules created with SIP. It provides information about file -# locations, version numbers etc., and provides some classes and functions. -# -# Copyright (c) 2007 -# Riverbank Computing Limited -# -# This file is part of SIP. -# -# This copy of SIP is licensed for use under the terms of the SIP License -# Agreement. See the file LICENSE for more details. -# -# SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - - -import sys -import os -import string -import types -import stat -import re - - -# These are installation specific values created when SIP was configured. -# @SIP_CONFIGURATION@ - -# The stack of configuration dictionaries. -_config_stack = [] - - -class Configuration(object): - """The class that represents SIP 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. - """ - # Find the build macros in the closest imported module from where this - # was originally defined. - self._macros = None - - for cls in self.__class__.__mro__: - if cls is object: - continue - - mod = sys.modules[cls.__module__] - - if hasattr(mod, "_default_macros"): - self._macros = mod._default_macros - break - - if sub_cfg: - cfg = sub_cfg - else: - cfg = [] - - cfg.append(_pkg_config) - - global _config_stack - _config_stack = cfg - - def __getattr__(self, name): - """Allow configuration values and user options to be handled as - instance variables. - - name is the name of the configuration value or user option. - """ - for cfg in _config_stack: - try: - return cfg[name] - except KeyError: - pass - - raise AttributeError, "\"%s\" is not a valid configuration value or user option" % name - - def build_macros(self): - """Return the dictionary of platform specific build macros. - """ - return self._macros - - def set_build_macros(self, macros): - """Set the dictionary of build macros to be use when generating - Makefiles. - - macros is the dictionary of platform specific build macros. - """ - self._macros = macros - - -class _UniqueList: - """A limited list that ensures all its elements are unique. - """ - def __init__(self, value=None): - """Initialise the instance. - - value is the initial value of the list. - """ - if value is None: - self._list = [] - else: - self._list = value - - def append(self, value): - """Append a value to the list if it isn't already present. - - value is the value to append. - """ - if value not in self._list: - self._list.append(value) - - def lextend(self, value): - """A normal list extend ignoring the uniqueness. - - value is the list of elements to append. - """ - self._list.extend(value) - - def extend(self, value): - """Append each element of a value to a list if it isn't already - present. - - value is the list of elements to append. - """ - for el in value: - self.append(el) - - def as_list(self): - """Return the list as a raw list. - """ - return self._list - - -class _Macro: - """A macro that can be manipulated as a list. - """ - def __init__(self, name, value): - """Initialise the instance. - - name is the name of the macro. - value is the initial value of the macro. - """ - self._name = name - self.set(value) - - def set(self, value): - """Explicitly set the value of the macro. - - value is the new value. It may be a string, a list of strings or a - _UniqueList instance. - """ - self._macro = [] - - if isinstance(value, _UniqueList): - value = value.as_list() - - if type(value) == types.ListType: - self.extend(value) - else: - self.append(value) - - def append(self, value): - """Append a value to the macro. - - value is the value to append. - """ - if value: - self._macro.append(value) - - def extend(self, value): - """Append each element of a value to the macro. - - value is the list of elements to append. - """ - for el in value: - self.append(el) - - def as_list(self): - """Return the macro as a list. - """ - return self._macro - - -class Makefile: - """The base class for the different types of Makefiles. - """ - def __init__(self, configuration, console=0, qt=0, opengl=0, python=0, - threaded=0, warnings=1, debug=0, dir=None, - makefile="Makefile", installs=None, universal=''): - """Initialise an instance of the target. All the macros are left - unchanged allowing scripts to manipulate them at will. - - configuration is the current configuration. - console is set if the target is a console (rather than windows) target. - qt is set if the target uses Qt. For Qt v4 a list of Qt libraries may - be specified and a simple non-zero value implies QtCore and QtGui. - opengl is set if the target uses OpenGL. - python is set if the target #includes Python.h. - debug is set to generated a debugging version of the target. - threaded is set if the target requires thread support. It is - automatically set if the target uses Qt and Qt has thread support - enabled. - warnings is set if compiler warning messages are required. - debug is set if debugging symbols should be generated. - dir is the directory for build files and Makefiles. - makefile is the name of the Makefile. - installs is a list of extra install targets. Each element is a two - part list, the first of which is the source and the second is the - destination. If the source is another list then it is a set of source - files and the destination is a directory. - universal is the name of the SDK if the target is a MacOS/X universal - binary. - """ - if qt: - if not hasattr(configuration, "qt_version"): - error("The target uses Qt but pyqtconfig has not been imported.") - - # For Qt v4 interpret Qt support as meaning link against the core - # and GUI libraries (which corresponds to the default qmake - # configuration). Also allow a list of Qt v4 modules to be - # specified. - if configuration.qt_version >= 0x040000: - if type(qt) != types.ListType: - qt = ["QtCore", "QtGui"] - - self._threaded = configuration.qt_threaded - else: - self._threaded = threaded - - if sys.platform != "darwin": - universal = '' - - self.config = configuration - self.console = console - self._qt = qt - self._opengl = opengl - self._python = python - self._warnings = warnings - self._debug = debug - self._dir = dir - self._makefile = makefile - self._installs = installs - self._universal = universal - - self._finalised = 0 - - # Copy the macros and convert them all to instance lists. - macros = configuration.build_macros() - - for m in macros.keys(): - # Allow the user to override the default. - try: - val = getattr(configuration, m) - except AttributeError: - val = macros[m] - - # These require special handling as they are (potentially) a set of - # space separated values rather than a single value that might - # contain spaces. - if m in ("DEFINES", "CONFIG") or m[:6] in ("INCDIR", "LIBDIR"): - val = string.split(val) - - # We also want to treat lists of libraries in the same way so that - # duplicates get eliminated. - if m[:4] == "LIBS": - val = string.split(val) - - self.__dict__[m] = _Macro(m, val) - - # This is used to alter the configuration more significantly than can - # be done with just configuration files. - self.generator = self.optional_string("MAKEFILE_GENERATOR", "UNIX") - - # These are what configuration scripts normally only need to change. - self.extra_cflags = [] - self.extra_cxxflags = [] - self.extra_defines = [] - self.extra_include_dirs = [] - self.extra_lflags = [] - self.extra_lib_dirs = [] - self.extra_libs = [] - - # Get these once and make them available to sub-classes. - if sys.platform == "win32": - def_copy = "copy" - def_rm = "del" - def_mkdir = "mkdir" - def_chk_dir_exists = "if not exist" - else: - def_copy = "cp -f" - def_rm = "rm -f" - def_mkdir = "mkdir -p" - def_chk_dir_exists = "test -d" - - self.copy = self.optional_string("COPY", def_copy) - self.rm = self.optional_string("DEL_FILE", def_rm) - self.mkdir = self.optional_string("MKDIR", def_mkdir) - self.chkdir = self.optional_string("CHK_DIR_EXISTS", def_chk_dir_exists) - - - def finalise(self): - """Finalise the macros by doing any consolidation that isn't specific - to a Makefile. - """ - # Extract the things we might need from the Windows Qt configuration. - if self._qt: - wcfg = string.split(self.config.qt_winconfig) - win_shared = ("shared" in wcfg) - win_exceptions = ("exceptions" in wcfg) - win_rtti = ("rtti" in wcfg) - win_stl = ("stl" in wcfg) - else: - win_shared = 1 - win_exceptions = 0 - win_rtti = 0 - win_stl = 0 - - # Get what we are going to transform. - cflags = _UniqueList() - cflags.extend(self.extra_cflags) - cflags.extend(self.optional_list("CFLAGS")) - - cxxflags = _UniqueList() - cxxflags.extend(self.extra_cxxflags) - cxxflags.extend(self.optional_list("CXXFLAGS")) - - defines = _UniqueList() - defines.extend(self.extra_defines) - defines.extend(self.optional_list("DEFINES")) - - incdir = _UniqueList(["."]) - incdir.extend(self.extra_include_dirs) - incdir.extend(self.optional_list("INCDIR")) - - lflags = _UniqueList() - lflags.extend(self.extra_lflags) - lflags.extend(self.optional_list("LFLAGS")) - - libdir = _UniqueList() - libdir.extend(self.extra_lib_dirs) - libdir.extend(self.optional_list("LIBDIR")) - - # Handle MacOS/X universal binaries. - if self._universal: - unicflags = ('-arch ppc -arch i386 -isysroot %s' % self._universal).split() - unilflags = ('-arch ppc -arch i386 -Wl,-syslibroot,%s' % self._universal).split() - - cflags.lextend(unicflags) - cxxflags.lextend(unicflags) - lflags.lextend(unilflags) - - # Don't use a unique list as libraries may need to be searched more - # than once. Also MacOS/X uses the form "-framework lib" so we don't - # want to lose the multiple "-framework". - libs = [] - - for l in self.extra_libs: - libs.append(self.platform_lib(l)) - - if self._qt: - libs.extend(self._dependent_libs(l)) - - libs.extend(self.optional_list("LIBS")) - - rpaths = _UniqueList() - - for l in self.extra_lib_dirs: - # Ignore relative directories. This is really a hack to handle - # SIP v3 inter-module linking. - if os.path.dirname(l) not in ("", ".", ".."): - rpaths.append(l) - - if self._python: - incdir.append(self.config.py_inc_dir) - incdir.append(self.config.py_conf_inc_dir) - - if sys.platform == "cygwin": - libdir.append(self.config.py_lib_dir) - - py_lib = "python%u.%u" % ((self.config.py_version >> 16), ((self.config.py_version >> 8) & 0xff)) - libs.append(self.platform_lib(py_lib)) - elif sys.platform == "win32": - libdir.append(self.config.py_lib_dir) - - py_lib = "python%u%u" % ((self.config.py_version >> 16), ((self.config.py_version >> 8) & 0xff)) - - # For Borland use the OMF version of the Python library if it - # exists, otherwise assume that Python was built with Borland - # and use the normal library. - if self.generator == "BMAKE": - bpy_lib = py_lib + "_bcpp" - bpy_lib_path = os.path.join(self.config.py_lib_dir, self.platform_lib(bpy_lib)) - - if os.access(bpy_lib_path, os.F_OK): - py_lib = bpy_lib - - if self._debug: - py_lib = py_lib + "_d" - - if self.generator != "MINGW": - cflags.append("/D_DEBUG") - cxxflags.append("/D_DEBUG") - - libs.append(self.platform_lib(py_lib)) - - if self.generator in ("MSVC", "MSVC.NET", "BMAKE"): - if win_exceptions: - cflags_exceptions = "CFLAGS_EXCEPTIONS_ON" - cxxflags_exceptions = "CXXFLAGS_EXCEPTIONS_ON" - else: - cflags_exceptions = "CFLAGS_EXCEPTIONS_OFF" - cxxflags_exceptions = "CXXFLAGS_EXCEPTIONS_OFF" - - cflags.extend(self.optional_list(cflags_exceptions)) - cxxflags.extend(self.optional_list(cxxflags_exceptions)) - - if win_rtti: - cflags_rtti = "CFLAGS_RTTI_ON" - cxxflags_rtti = "CXXFLAGS_RTTI_ON" - else: - cflags_rtti = "CFLAGS_RTTI_OFF" - cxxflags_rtti = "CXXFLAGS_RTTI_OFF" - - cflags.extend(self.optional_list(cflags_rtti)) - cxxflags.extend(self.optional_list(cxxflags_rtti)) - - if win_stl: - cflags_stl = "CFLAGS_STL_ON" - cxxflags_stl = "CXXFLAGS_STL_ON" - else: - cflags_stl = "CFLAGS_STL_OFF" - cxxflags_stl = "CXXFLAGS_STL_OFF" - - cflags.extend(self.optional_list(cflags_stl)) - cxxflags.extend(self.optional_list(cxxflags_stl)) - - if self._debug: - if win_shared: - cflags_mt = "CFLAGS_MT_DLLDBG" - cxxflags_mt = "CXXFLAGS_MT_DLLDBG" - else: - cflags_mt = "CFLAGS_MT_DBG" - cxxflags_mt = "CXXFLAGS_MT_DBG" - - cflags_debug = "CFLAGS_DEBUG" - cxxflags_debug = "CXXFLAGS_DEBUG" - lflags_debug = "LFLAGS_DEBUG" - else: - if win_shared: - cflags_mt = "CFLAGS_MT_DLL" - cxxflags_mt = "CXXFLAGS_MT_DLL" - else: - cflags_mt = "CFLAGS_MT" - cxxflags_mt = "CXXFLAGS_MT" - - cflags_debug = "CFLAGS_RELEASE" - cxxflags_debug = "CXXFLAGS_RELEASE" - lflags_debug = "LFLAGS_RELEASE" - - if self.generator in ("MSVC", "MSVC.NET", "BMAKE"): - if self._threaded: - cflags.extend(self.optional_list(cflags_mt)) - cxxflags.extend(self.optional_list(cxxflags_mt)) - - if self.console: - cflags.extend(self.optional_list("CFLAGS_CONSOLE")) - cxxflags.extend(self.optional_list("CXXFLAGS_CONSOLE")) - - cflags.extend(self.optional_list(cflags_debug)) - cxxflags.extend(self.optional_list(cxxflags_debug)) - lflags.extend(self.optional_list(lflags_debug)) - - if self._warnings: - cflags_warn = "CFLAGS_WARN_ON" - cxxflags_warn = "CXXFLAGS_WARN_ON" - else: - cflags_warn = "CFLAGS_WARN_OFF" - cxxflags_warn = "CXXFLAGS_WARN_OFF" - - cflags.extend(self.optional_list(cflags_warn)) - cxxflags.extend(self.optional_list(cxxflags_warn)) - - if self._threaded: - cflags.extend(self.optional_list("CFLAGS_THREAD")) - cxxflags.extend(self.optional_list("CXXFLAGS_THREAD")) - lflags.extend(self.optional_list("LFLAGS_THREAD")) - - if self._qt: - if self.generator != "UNIX" and win_shared: - defines.append("QT_DLL") - - if not self._debug: - defines.append("QT_NO_DEBUG") - - if self.config.qt_version >= 0x040000: - for mod in self._qt: - if mod == "QtCore": - defines.append("QT_CORE_LIB") - elif mod == "QtGui": - defines.append("QT_GUI_LIB") - elif mod == "QtNetwork": - defines.append("QT_NETWORK_LIB") - elif mod == "QtOpenGL": - defines.append("QT_OPENGL_LIB") - elif mod == "QtSql": - defines.append("QT_SQL_LIB") - elif mod == "QtTest": - defines.append("QT_TEST_LIB") - elif mod == "QtXml": - defines.append("QT_XML_LIB") - elif self._threaded: - defines.append("QT_THREAD_SUPPORT") - - # Handle library directories. - libdir_qt = self.optional_list("LIBDIR_QT") - libdir.extend(libdir_qt) - rpaths.extend(libdir_qt) - - if self.config.qt_version >= 0x040000: - # For Windows: the macros that define the dependencies on - # Windows libraries. - wdepmap = { - "QtCore": "LIBS_CORE", - "QtGui": "LIBS_GUI", - "QtNetwork": "LIBS_NETWORK", - "QtOpenGL": "LIBS_OPENGL" - } - - # For Windows: the dependencies between Qt libraries. - qdepmap = { - "QtAssistant": ("QtCore", "QtGui", "QtNetwork"), - "QtGui": ("QtCore", ), - "QtNetwork": ("QtCore", ), - "QtOpenGL": ("QtCore", "QtGui"), - "QtSql": ("QtCore", ), - "QtSvg": ("QtCore", "QtGui", "QtXml"), - "QtTest": ("QtCore", "QtGui"), - "QtXml": ("QtCore", ), - "QtDesigner": ("QtCore", "QtGui"), - "QAxContainer": ("QtCore", "QtGui") - } - - # The QtSql .prl file doesn't include QtGui as a dependency (at - # least on Linux) so we explcitly set the dependency here for - # everything. - if "QtSql" in self._qt: - if "QtGui" not in self._qt: - self._qt.append("QtGui") - - # With Qt v4.2.0, the QtAssistantClient library is now a shared - # library on UNIX. The QtAssistantClient .prl file doesn't - # include QtGui and QtNetwork as a dependency any longer. This - # seems to be a bug in Qt v4.2.0. We explicitly set the - # dependencies here. - if self.config.qt_version >= 0x040200 and "QtAssistant" in self._qt: - if "QtGui" not in self._qt: - self._qt.append("QtGui") - if "QtNetwork" not in self._qt: - self._qt.append("QtNetwork") - - for mod in self._qt: - lib = self._qt4_module_to_lib(mod) - libs.append(self.platform_lib(lib, self._is_framework(mod))) - - if sys.platform == "win32": - # On Windows the dependent libraries seem to be in - # qmake.conf rather than the .prl file and the - # inter-dependencies between Qt libraries don't seem to - # be anywhere. - deps = _UniqueList() - - if mod in wdepmap.keys(): - deps.extend(self.optional_list(wdepmap[mod])) - - if mod in qdepmap.keys(): - for qdep in qdepmap[mod]: - # Ignore the dependency if it is explicitly - # linked. - if qdep not in self._qt: - libs.append(self.platform_lib(self._qt4_module_to_lib(qdep))) - - if qdep in wdepmap.keys(): - deps.extend(self.optional_list(wdepmap[qdep])) - - libs.extend(deps.as_list()) - else: - libs.extend(self._dependent_libs(lib, self._is_framework(mod))) - else: - # Windows needs the version number appended if Qt is a DLL. - qt_lib = self.config.qt_lib - - if self.generator in ("MSVC", "MSVC.NET", "BMAKE") and win_shared: - qt_lib = qt_lib + string.replace(version_to_string(self.config.qt_version), ".", "") - - if self.config.qt_edition == "non-commercial": - qt_lib = qt_lib + "nc" - - libs.append(self.platform_lib(qt_lib, self.config.qt_framework)) - libs.extend(self._dependent_libs(self.config.qt_lib)) - - # Handle header directories. - try: - specd_base = self.config.qt_data_dir - except AttributeError: - specd_base = self.config.qt_dir - - specd = os.path.join(specd_base, "mkspecs", "default") - - if not os.access(specd, os.F_OK): - specd = os.path.join(specd_base, "mkspecs", self.config.platform) - - incdir.append(specd) - - qtincdir = self.optional_list("INCDIR_QT") - - if qtincdir: - if self.config.qt_version >= 0x040000: - for mod in self._qt: - if mod == "QAxContainer": - incdir.append(os.path.join(qtincdir[0], "ActiveQt")) - elif self._is_framework(mod): - if mod == "QtAssistant" and self.config.qt_version < 0x040202: - mod = "QtAssistantClient" - - incdir.append(os.path.join(libdir_qt[0], mod + ".framework", "Headers")) - else: - incdir.append(os.path.join(qtincdir[0], mod)) - - # This must go after the module include directories. - incdir.extend(qtincdir) - - if self._opengl: - incdir.extend(self.optional_list("INCDIR_OPENGL")) - lflags.extend(self.optional_list("LFLAGS_OPENGL")) - libdir.extend(self.optional_list("LIBDIR_OPENGL")) - libs.extend(self.optional_list("LIBS_OPENGL")) - - if self._qt or self._opengl: - incdir.extend(self.optional_list("INCDIR_X11")) - libdir.extend(self.optional_list("LIBDIR_X11")) - libs.extend(self.optional_list("LIBS_X11")) - - if self._threaded: - libs.extend(self.optional_list("LIBS_THREAD")) - libs.extend(self.optional_list("LIBS_RTMT")) - else: - libs.extend(self.optional_list("LIBS_RT")) - - if self.console: - libs.extend(self.optional_list("LIBS_CONSOLE")) - - libs.extend(self.optional_list("LIBS_WINDOWS")) - - lflags.extend(self._platform_rpaths(rpaths.as_list())) - - # Save the transformed values. - self.CFLAGS.set(cflags) - self.CXXFLAGS.set(cxxflags) - self.DEFINES.set(defines) - self.INCDIR.set(incdir) - self.LFLAGS.set(lflags) - self.LIBDIR.set(libdir) - self.LIBS.set(libs) - - # Don't do it again because it has side effects. - self._finalised = 1 - - def _is_framework(self, mod): - """Return true if the given Qt module is a framework. - """ - return (self.config.qt_framework and (self.config.qt_version >= 0x040200 or mod != "QtAssistant")) - - def _qt4_module_to_lib(self, mname): - """Return the name of the Qt4 library corresponding to a module. - - mname is the name of the module. - """ - if mname == "QtAssistant": - if self.config.qt_version >= 0x040202 and sys.platform == "darwin": - lib = mname - else: - lib = "QtAssistantClient" - else: - lib = mname - - if self._debug: - if sys.platform == "win32": - lib = lib + "d" - elif self.config.qt_version < 0x040200 or sys.platform == "darwin": - lib = lib + "_debug" - - if sys.platform == "win32": - if (mname in ("QtCore", "QtGui", "QtNetwork", "QtOpenGL", - "QtSql", "QtSvg", "QtTest", "QtXml", "QtDesigner") or - (self.config.qt_version >= 0x040200 and mname == "QtAssistant")): - lib = lib + "4" - - return lib - - def optional_list(self, name): - """Return an optional Makefile macro as a list. - - name is the name of the macro. - """ - return self.__dict__[name].as_list() - - def optional_string(self, name, default=""): - """Return an optional Makefile macro as a string. - - name is the name of the macro. - default is the default value - """ - s = string.join(self.optional_list(name)) - - if not s: - s = default - - return s - - def required_string(self, name): - """Return a required Makefile macro as a string. - - name is the name of the macro. - """ - s = self.optional_string(name) - - if not s: - raise ValueError, "\"%s\" must have a non-empty value" % name - - return s - - def _platform_rpaths(self, rpaths): - """Return a list of platform specific rpath flags. - - rpaths is the cannonical list of rpaths. - """ - flags = [] - prefix = self.optional_string("RPATH") - - if prefix: - for r in rpaths: - flags.append(_quote(prefix + r)) - - return flags - - def platform_lib(self, clib, framework=0): - """Return a library name in platform specific form. - - clib is the library name in cannonical form. - framework is set of the library is implemented as a MacOS framework. - """ - if self.generator in ("MSVC", "MSVC.NET", "BMAKE"): - plib = clib + ".lib" - elif sys.platform == "darwin" and framework: - plib = "-framework " + clib - else: - plib = "-l" + clib - - return plib - - def _dependent_libs(self, clib, framework=0): - """Return a list of additional libraries (in platform specific form) - that must be linked with a library. - - clib is the library name in cannonical form. - framework is set of the library is implemented as a MacOS framework. - """ - prl_libs = [] - - if self.generator in ("MSVC", "MSVC.NET", "BMAKE"): - prl_name = os.path.join(self.config.qt_lib_dir, clib + ".prl") - elif sys.platform == "darwin" and framework: - prl_name = os.path.join(self.config.qt_lib_dir, clib + ".framework", clib + ".prl") - else: - prl_name = os.path.join(self.config.qt_lib_dir, "lib" + clib + ".prl") - - if os.access(prl_name, os.F_OK): - try: - f = open(prl_name, "r") - except IOError, detail: - error("Unable to open \"%s\": %s" % (prl_name, detail)) - - line = f.readline() - while line: - line = string.strip(line) - if line and line[0] != "#": - eq = string.find(line, "=") - if eq > 0 and string.strip(line[:eq]) == "QMAKE_PRL_LIBS": - prl_libs = string.split(line[eq + 1:]) - break - - line = f.readline() - - f.close() - - return prl_libs - - - def parse_build_file(self, filename): - """ - Parse a build file and return the corresponding dictionary. - - filename is the name of the build file. If it is a dictionary instead - then its contents are validated. - """ - if type(filename) is types.DictType: - bfname = "dictionary" - dict = filename - else: - if self._dir: - bfname = os.path.join(self._dir, filename) - else: - bfname = filename - - dict = {} - - try: - f = open(bfname, "r") - except IOError, detail: - error("Unable to open \"%s\": %s" % (bfname, detail)) - - line_nr = 1 - line = f.readline() - - while line: - line = string.strip(line) - - if line and line[0] != "#": - eq = string.find(line, "=") - - if eq <= 0: - error("\"%s\" line %d: Line must be in the form 'name = value value...'." % (bfname, line_nr)) - - dict[string.strip(line[:eq])] = string.strip(line[eq + 1:]) - - line_nr = line_nr + 1 - line = f.readline() - - f.close() - - # Check the compulsory values. - for i in ("target", "sources"): - try: - dict[i] - except KeyError: - error("\"%s\" is missing from \"%s\"." % (i, bfname)) - - # Get the optional values. - for i in ("headers", "moc_headers"): - try: - dict[i] - except KeyError: - dict[i] = "" - - # Generate the list of objects. - if self.generator in ("MSVC", "MSVC.NET", "BMAKE"): - ext = ".obj" - else: - ext = ".o" - - olist = [] - - for f in string.split(dict["sources"]): - root, discard = os.path.splitext(f) - olist.append(root + ext) - - for f in string.split(dict["moc_headers"]): - if not self._qt: - error("\"%s\" defines \"moc_headers\" for a non-Qt module." % bfname) - - root, discard = os.path.splitext(f) - olist.append("moc_" + root + ext) - - dict["objects"] = string.join(olist) - - return dict - - def clean_build_file_objects(self, mfile, build): - """Generate the clean target. - - mfile is the file object. - build is the dictionary created from the build file. - """ - mfile.write("\t-%s $(TARGET)\n" % self.rm) - - for f in string.split(build["objects"]): - mfile.write("\t-%s %s\n" % (self.rm, f)) - - for f in string.split(build["moc_headers"]): - root, discard = os.path.splitext(f) - mfile.write("\t-%s moc_%s.cpp\n" % (self.rm, root)) - - def ready(self): - """The Makefile is now ready to be used. - """ - if not self._finalised: - self.finalise() - - def generate(self): - """Generate the Makefile. - """ - self.ready() - - if self._dir: - mfname = os.path.join(self._dir, self._makefile) - else: - mfname = self._makefile - - try: - mfile = open(mfname, "w") - except IOError, detail: - error("Unable to create \"%s\": %s" % (mfname, detail)) - - self.generate_macros_and_rules(mfile) - self.generate_target_default(mfile) - self.generate_target_install(mfile) - - if self._installs: - if type(self._installs) != types.ListType: - self._installs = [self._installs] - - for src, dst in self._installs: - self.install_file(mfile, src, dst) - - self.generate_target_clean(mfile) - - mfile.close() - - def generate_macros_and_rules(self, mfile): - """The default implementation of the macros and rules generation. - - mfile is the file object. - """ - mfile.write("CC = %s\n" % self.required_string("CC")) - mfile.write("CXX = %s\n" % self.required_string("CXX")) - mfile.write("LINK = %s\n" % self.required_string("LINK")) - - cppflags = [] - - for f in self.optional_list("DEFINES"): - cppflags.append("-D" + f) - - for f in self.optional_list("INCDIR"): - cppflags.append("-I" + _quote(f)) - - libs = [] - - if self.generator in ("MSVC", "MSVC.NET"): - libdir_prefix = "/LIBPATH:" - else: - libdir_prefix = "-L" - - for ld in self.optional_list("LIBDIR"): - if sys.platform == "darwin" and self.config.qt_framework: - fflag = "-F" + _quote(ld) - libs.append(fflag) - cppflags.append(fflag) - - libs.append(libdir_prefix + _quote(ld)) - - libs.extend(self.optional_list("LIBS")) - - mfile.write("CPPFLAGS = %s\n" % string.join(cppflags)) - - mfile.write("CFLAGS = %s\n" % self.optional_string("CFLAGS")) - mfile.write("CXXFLAGS = %s\n" % self.optional_string("CXXFLAGS")) - mfile.write("LFLAGS = %s\n" % self.optional_string("LFLAGS")) - - mfile.write("LIBS = %s\n" % string.join(libs)) - - if self._qt: - mfile.write("MOC = %s\n" % _quote(self.required_string("MOC"))) - - # These probably don't matter. - if self.generator == "MINGW": - mfile.write(".SUFFIXES: .cpp .cxx .cc .C .c\n\n") - elif self.generator == "UNIX": - mfile.write(".SUFFIXES: .c .o .cpp .cc .cxx .C\n\n") - else: - mfile.write(".SUFFIXES: .c .cpp .cc .cxx .C\n\n") - - if self.generator in ("MSVC", "MSVC.NET"): - mfile.write(""" -{.}.cpp{}.obj:: -\t$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo @<< -\t$< -<< - -{.}.cc{}.obj:: -\t$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo @<< -\t$< -<< - -{.}.cxx{}.obj:: -\t$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo @<< -\t$< -<< - -{.}.C{}.obj:: -\t$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo @<< -\t$< -<< - -{.}.c{}.obj:: -\t$(CC) -c $(CFLAGS) $(CPPFLAGS) -Fo @<< -\t$< -<< -""") - elif self.generator == "BMAKE": - mfile.write(""" -.cpp.obj: -\t$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o$@ $< - -.cc.obj: -\t$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o$@ $< - -.cxx.obj: -\t$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o$@ $< - -.C.obj: -\t$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o$@ $< - -.c.obj: -\t$(CC) -c $(CFLAGS) $(CPPFLAGS) -o$@ $< -""") - else: - mfile.write(""" -.cpp.o: -\t$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $< - -.cc.o: -\t$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $< - -.cxx.o: -\t$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $< - -.C.o: -\t$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $< - -.c.o: -\t$(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $< -""") - - def generate_target_default(self, mfile): - """The default implementation of the default target. - - mfile is the file object. - """ - mfile.write("\nall:\n") - - def generate_target_install(self, mfile): - """The default implementation of the install target. - - mfile is the file object. - """ - mfile.write("\ninstall:\n") - - def generate_target_clean(self, mfile): - """The default implementation of the clean target. - - mfile is the file object. - """ - mfile.write("\nclean:\n") - - def install_file(self, mfile, src, dst, strip=0): - """Install one or more files in a directory. - - mfile is the file object. - src is the name of a single file to install, or the list of a number of - files to install. - dst is the name of the destination directory. - strip is set if the files should be stripped after been installed. - """ - # Help package builders. - if self.generator == "UNIX": - dst = "$(DESTDIR)" + dst - - mfile.write("\t@%s %s " % (self.chkdir, _quote(dst))) - - if self.generator == "UNIX": - mfile.write("|| ") - - mfile.write("%s %s\n" % (self.mkdir, _quote(dst))) - - if type(src) != types.ListType: - src = [src] - - # Get the strip command if needed. - if strip: - strip_cmd = self.optional_string("STRIP") - - if not strip_cmd: - strip = 0 - - for sf in src: - target = _quote(os.path.join(dst, os.path.basename(sf))) - - mfile.write("\t%s %s %s\n" % (self.copy, _quote(sf), target)) - - if strip: - mfile.write("\t%s %s\n" % (strip_cmd, target)) - - -class ParentMakefile(Makefile): - """The class that represents a parent Makefile. - """ - def __init__(self, configuration, subdirs, dir=None, makefile="Makefile", - installs=None): - """Initialise an instance of a parent Makefile. - - subdirs is the sequence of subdirectories. - """ - Makefile.__init__(self, configuration, dir=dir, makefile=makefile, installs=installs) - - self._subdirs = subdirs - - def generate_macros_and_rules(self, mfile): - """Generate the macros and rules. - - mfile is the file object. - """ - # We don't want them. - pass - - def generate_target_default(self, mfile): - """Generate the default target. - - mfile is the file object. - """ - self._subdir_target(mfile) - - def generate_target_install(self, mfile): - """Generate the install target. - - mfile is the file object. - """ - self._subdir_target(mfile, "install") - - def generate_target_clean(self, mfile): - """Generate the clean target. - - mfile is the file object. - """ - self._subdir_target(mfile, "clean") - - def _subdir_target(self, mfile, target="all"): - """Create a target for a list of sub-directories. - - mfile is the file object. - target is the name of the target. - """ - if target == "all": - tname = "" - else: - tname = " " + target - - mfile.write("\n" + target + ":\n") - - for d in self._subdirs: - if self.generator == "MINGW": - mfile.write("\t@$(MAKE) -C %s%s\n" % (d, tname)) - elif self.generator == "UNIX": - mfile.write("\t@(cd %s; $(MAKE)%s)\n" % (d, tname)) - else: - mfile.write("\tcd %s\n" % d) - mfile.write("\t$(MAKE)%s\n" % tname) - mfile.write("\t@cd ..\n") - - -class PythonModuleMakefile(Makefile): - """The class that represents a Python module Makefile. - """ - def __init__(self, configuration, dstdir, srcdir=None, dir=None, - makefile="Makefile", installs=None): - """Initialise an instance of a parent Makefile. - - dstdir is the name of the directory where the module's Python code will - be installed. - srcdir is the name of the directory (relative to the directory in which - the Makefile will be created) containing the module's Python code. It - defaults to the same directory. - """ - Makefile.__init__(self, configuration, dir=dir, makefile=makefile, installs=installs) - - if not srcdir: - srcdir = "." - - if dir: - self._moddir = os.path.join(dir, srcdir) - else: - self._moddir = srcdir - - self._srcdir = srcdir - self._dstdir = dstdir - - def generate_macros_and_rules(self, mfile): - """Generate the macros and rules. - - mfile is the file object. - """ - # We don't want them. - pass - - def generate_target_install(self, mfile): - """Generate the install target. - - mfile is the file object. - """ - Makefile.generate_target_install(self, mfile) - - os.path.walk(self._moddir, self._visit, mfile) - - def _visit(self, mfile, dirname, names): - """Install the files from a particular directory. - - mfile is the file object. - dirname is the sub-directory. - names is the list of files to install from the sub-directory. - """ - tail = dirname[len(self._moddir):] - - flist = [] - for f in names: - # Ignore certain files. - if f in ("Makefile", ): - continue - - if os.path.isfile(os.path.join(dirname, f)): - flist.append(os.path.join(self._srcdir + tail, f)) - - self.install_file(mfile, flist, self._dstdir + tail) - - -class ModuleMakefile(Makefile): - """The class that represents a Python extension module Makefile - """ - def __init__(self, configuration, build_file, install_dir=None, static=0, - console=0, qt=0, opengl=0, threaded=0, warnings=1, debug=0, - dir=None, makefile="Makefile", installs=None, strip=1, - export_all=0, universal=''): - """Initialise an instance of a module Makefile. - - build_file is the file containing the target specific information. If - it is a dictionary instead then its contents are validated. - install_dir is the directory the target will be installed in. - static is set if the module should be built as a static library. - strip is set if the module should be stripped of unneeded symbols when - installed. The default is 1. - export_all is set if all the module's symbols should be exported rather - than just the module's initialisation function. Exporting all symbols - increases the size of the module and slows down module load times but - may avoid problems with modules that use exceptions. The default is 0. - """ - Makefile.__init__(self, configuration, console, qt, opengl, 1, threaded, warnings, debug, dir, makefile, installs, universal) - - self._build = self.parse_build_file(build_file) - self._install_dir = install_dir - self._dir = dir - self.static = static - - # Don't strip or restrict the exports if this is a debug or static - # build. - if debug or static: - self._strip = 0 - self._limit_exports = 0 - else: - self._strip = strip - - # The deprecated configuration flag has precedence. - if self.config.export_all: - self._limit_exports = 0 - else: - self._limit_exports = not export_all - - # Save the target name for later. - self._target = self._build["target"] - - if sys.platform != "win32" and static: - self._target = "lib" + self._target - - if sys.platform == "win32" and debug: - self._target = self._target + "_d" - - def finalise(self): - """Finalise the macros common to all module Makefiles. - """ - if self.console: - lflags_console = "LFLAGS_CONSOLE" - else: - lflags_console = "LFLAGS_WINDOWS" - - if self.static: - self.DEFINES.append("SIP_STATIC_MODULE") - else: - self.CFLAGS.extend(self.optional_list("CFLAGS_SHLIB")) - self.CXXFLAGS.extend(self.optional_list("CXXFLAGS_SHLIB")) - - lflags_dll = self.optional_list("LFLAGS_DLL") - - if lflags_dll: - self.LFLAGS.extend(lflags_dll) - elif self.console: - lflags_console = "LFLAGS_CONSOLE_DLL" - else: - lflags_console = "LFLAGS_WINDOWS_DLL" - - # We use this to explictly create bundles on MacOS. Apple's Python - # can handle extension modules that are bundles or dynamic - # libraries, but python.org versions need bundles (unless built - # with DYNLOADFILE=dynload_shlib.o). - if sys.platform == "darwin": - lflags_plugin = ["-bundle"] - else: - lflags_plugin = self.optional_list("LFLAGS_PLUGIN") - - if not lflags_plugin: - lflags_plugin = self.optional_list("LFLAGS_SHLIB") - - self.LFLAGS.extend(lflags_plugin) - - self.LFLAGS.extend(self.optional_list(lflags_console)) - - if sys.platform == "darwin": - # We use the -F flag to explictly specify the directory containing - # the Python framework rather than rely on the default search path. - # This allows Apple's Python to be used even if a later python.org - # version is also installed. - dl = string.split(sys.exec_prefix, os.sep) - try: - dl = dl[:dl.index("Python.framework")] - except ValueError: - error("SIP requires Python to be built as a framework") - self.LFLAGS.append("-F%s" % string.join(dl, os.sep)) - self.LFLAGS.append("-framework Python") - - Makefile.finalise(self) - - if not self.static: - if self.optional_string("AIX_SHLIB"): - # AIX needs a lot of special handling. - if self.required_string('LINK') == 'g++': - # g++ is used for linking. - # For SIP v4 and g++: - # 1.) Import the python symbols - aix_lflags = ['-Wl,-bI:%s/python.exp' % self.config.py_lib_dir] - - if self._limit_exports: - aix_lflags.append('-Wl,-bnoexpall') - aix_lflags.append('-Wl,-bnoentry') - aix_lflags.append('-Wl,-bE:%s.exp' % self._target) - else: - # IBM VisualAge C++ is used for linking. - # For SIP v4 and xlC: - # 1.) Create a shared object - # 2.) Import the python symbols - aix_lflags = ['-qmkshrobj', - '-bI:%s/python.exp' % self.config.py_lib_dir] - - if self._limit_exports: - aix_lflags.append('-bnoexpall') - aix_lflags.append('-bnoentry') - aix_lflags.append('-bE:%s.exp' % self._target) - - self.LFLAGS.extend(aix_lflags) - else: - if self._limit_exports: - if sys.platform[:5] == 'linux': - self.LFLAGS.extend(['-Wl,--version-script=%s.exp' % self._target]) - elif sys.platform[:5] == 'sunos': - if self.required_string('LINK') == 'g++': - self.LFLAGS.extend(['-Wl,-z,noversion', '-Wl,-M,%s.exp' % self._target]) - else: - self.LFLAGS.extend(['-z' 'noversion', '-M', '%s.exp' % self._target]) - elif sys.platform[:5] == 'hp-ux': - self.LFLAGS.extend(['-Wl,+e,init%s' % self._target]) - elif sys.platform[:5] == 'irix' and self.required_string('LINK') != 'g++': - # Doesn't work when g++ is used for linking on IRIX. - self.LFLAGS.extend(['-Wl,-exported_symbol,init%s' % self._target]) - - # Force the shared linker if there is one. - link_shlib = self.optional_list("LINK_SHLIB") - - if link_shlib: - self.LINK.set(link_shlib) - - def module_as_lib(self, mname): - """Return the name of a SIP v3.x module when it is used as a library. - This will raise an exception when used with SIP v4.x modules. - - mname is the name of the module. - """ - raise ValueError, "module_as_lib() can only be used with SIP v3.x" - - def generate_macros_and_rules(self, mfile): - """Generate the macros and rules generation. - - mfile is the file object. - """ - if self.static: - if sys.platform == "win32": - ext = "lib" - else: - ext = "a" - else: - if sys.platform == "win32": - ext = "pyd" - elif sys.platform == "darwin": - ext = "so" - elif sys.platform == "cygwin": - ext = "dll" - else: - ext = self.optional_string("EXTENSION_PLUGIN") - if not ext: - ext = self.optional_string("EXTENSION_SHLIB", "so") - - mfile.write("TARGET = %s\n" % (self._target + "." + ext)) - mfile.write("OFILES = %s\n" % self._build["objects"]) - mfile.write("HFILES = %s %s\n" % (self._build["headers"], self._build["moc_headers"])) - mfile.write("\n") - - if self.static: - if self.generator in ("MSVC", "MSVC.NET", "BMAKE"): - mfile.write("LIB = %s\n" % self.required_string("LIB")) - elif self.generator == "MINGW": - mfile.write("AR = %s\n" % self.required_string("LIB")) - self._ranlib = None - else: - mfile.write("AR = %s\n" % self.required_string("AR")) - - self._ranlib = self.optional_string("RANLIB") - - if self._ranlib: - mfile.write("RANLIB = %s\n" % self._ranlib) - - Makefile.generate_macros_and_rules(self, mfile) - - def generate_target_default(self, mfile): - """Generate the default target. - - mfile is the file object. - """ - mfile.write("\n$(TARGET): $(OFILES)\n") - - if self.generator in ("MSVC", "MSVC.NET"): - if self.static: - mfile.write("\t$(LIB) /OUT:$(TARGET) @<<\n") - mfile.write("\t $(OFILES)\n") - mfile.write("<<\n") - else: - mfile.write("\t$(LINK) $(LFLAGS) /OUT:$(TARGET) @<<\n") - mfile.write("\t $(OFILES) $(LIBS)\n") - mfile.write("<<\n") - - if "embed_manifest_dll" in self.optional_list("CONFIG"): - mfile.write("\tmt -nologo -manifest $(TARGET).manifest -outputresource:$(TARGET);2\n") - elif self.generator == "BMAKE": - if self.static: - mfile.write("\t-%s $(TARGET)\n" % (self.rm)) - mfile.write("\t$(LIB) $(TARGET) @&&|\n") - - for of in string.split(self._build["objects"]): - mfile.write("+%s \\\n" % (of)) - - mfile.write("|\n") - else: - mfile.write("\t$(LINK) @&&|\n") - mfile.write("\t$(LFLAGS) $(OFILES) ,$(TARGET),,$(LIBS),%s\n" % (self._target)) - mfile.write("|\n") - - # Create the .def file that renames the entry point. - defname = self._target + ".def" - - if self._dir: - defname = os.path.join(self._dir, defname) - - try: - dfile = open(defname, "w") - except IOError, detail: - error("Unable to create \"%s\": %s" % (defname, detail)) - - dfile.write("EXPORTS\n") - dfile.write("init%s=_init%s\n" % (self._target, self._target)) - - dfile.close() - - else: - if self.static: - mfile.write("\t-%s $(TARGET)\n" % self.rm) - mfile.write("\t$(AR) $(TARGET) $(OFILES)\n") - - if self._ranlib: - mfile.write("\t$(RANLIB) $(TARGET)\n") - else: - if self._limit_exports: - # Create an export file for AIX, Linux and Solaris. - if sys.platform[:5] == 'linux': - mfile.write("\t@echo '{ global: init%s; local: *; };' > %s.exp\n" % (self._target, self._target)) - elif sys.platform[:5] == 'sunos': - mfile.write("\t@echo '{ global: init%s; local: *; };' > %s.exp\n" % (self._target, self._target)) - elif sys.platform[:3] == 'aix': - mfile.write("\t@echo '#!' >%s.exp" % self._target) - mfile.write("; \\\n\t echo 'init%s' >>%s.exp\n" % (self._target, self._target)) - - mfile.write("\t$(LINK) $(LFLAGS) -o $(TARGET) $(OFILES) $(LIBS)\n") - - mfile.write("\n$(OFILES): $(HFILES)\n") - - for mf in string.split(self._build["moc_headers"]): - root, discard = os.path.splitext(mf) - cpp = "moc_" + root + ".cpp" - - mfile.write("\n%s: %s\n" % (cpp, mf)) - mfile.write("\t$(MOC) -o %s %s\n" % (cpp, mf)) - - def generate_target_install(self, mfile): - """Generate the install target. - - mfile is the file object. - """ - if self._install_dir is None: - self._install_dir = self.config.default_mod_dir - - mfile.write("\ninstall: $(TARGET)\n") - self.install_file(mfile, "$(TARGET)", self._install_dir, self._strip) - - def generate_target_clean(self, mfile): - """Generate the clean target. - - mfile is the file object. - """ - mfile.write("\nclean:\n") - self.clean_build_file_objects(mfile, self._build) - - # Remove any export file on AIX, Linux and Solaris. - if self._limit_exports and (sys.platform[:5] == 'linux' or - sys.platform[:5] == 'sunos' or - sys.platform[:3] == 'aix'): - mfile.write("\t-%s %s.exp\n" % (self.rm, self._target)) - - -class SIPModuleMakefile(ModuleMakefile): - """The class that represents a SIP generated module Makefile. - """ - def finalise(self): - """Finalise the macros for a SIP generated module Makefile. - """ - self.INCDIR.append(self.config.sip_inc_dir) - - ModuleMakefile.finalise(self) - - -class ProgramMakefile(Makefile): - """The class that represents a program Makefile. - """ - def __init__(self, configuration, build_file=None, install_dir=None, - console=0, qt=0, opengl=0, python=0, threaded=0, warnings=1, - debug=0, dir=None, makefile="Makefile", installs=None, - universal=''): - """Initialise an instance of a program Makefile. - - build_file is the file containing the target specific information. If - it is a dictionary instead then its contents are validated. - install_dir is the directory the target will be installed in. - """ - Makefile.__init__(self, configuration, console, qt, opengl, python, threaded, warnings, debug, dir, makefile, installs, universal) - - self._install_dir = install_dir - - if build_file: - self._build = self.parse_build_file(build_file) - else: - self._build = None - - def build_command(self, source): - """Create a command line that will build an executable. Returns a - tuple of the name of the executable and the command line. - - source is the name of the source file. - """ - self.ready() - - # The name of the executable. - exe, ignore = os.path.splitext(source) - - if sys.platform in ("win32", "cygwin"): - exe = exe + ".exe" - - # The command line. - build = [] - - build.append(self.required_string("CXX")) - - for f in self.optional_list("DEFINES"): - build.append("-D" + f) - - for f in self.optional_list("INCDIR"): - build.append("-I" + _quote(f)) - - build.extend(self.optional_list("CXXFLAGS")) - - # Borland requires all flags to precede all file names. - if self.generator != "BMAKE": - build.append(source) - - if self.generator in ("MSVC", "MSVC.NET"): - build.append("-Fe") - build.append("/link") - libdir_prefix = "/LIBPATH:" - elif self.generator == "BMAKE": - build.append("-e" + exe) - libdir_prefix = "-L" - else: - build.append("-o") - build.append(exe) - libdir_prefix = "-L" - - for ld in self.optional_list("LIBDIR"): - if sys.platform == "darwin" and self.config.qt_framework: - build.append("-F" + _quote(ld)) - - build.append(libdir_prefix + _quote(ld)) - - lflags = self.optional_list("LFLAGS") - - # This is a huge hack demonstrating my lack of understanding of how the - # Borland compiler works. - if self.generator == "BMAKE": - blflags = [] - - for lf in lflags: - for f in string.split(lf): - # Tell the compiler to pass the flags to the linker. - if f[-1] == "-": - f = "-l-" + f[1:-1] - elif f[0] == "-": - f = "-l" + f[1:] - - # Remove any explicit object files otherwise the compiler - # will complain that they can't be found, but they don't - # seem to be needed. - if string.lower(f[-4:]) != ".obj": - blflags.append(f) - - lflags = blflags - - build.extend(lflags) - - build.extend(self.optional_list("LIBS")) - - if self.generator == "BMAKE": - build.append(source) - - return (exe, string.join(build)) - - def finalise(self): - """Finalise the macros for a program Makefile. - """ - if self.generator in ("MSVC", "MSVC.NET"): - self.LFLAGS.append("/INCREMENTAL:NO") - - if self.console: - lflags_console = "LFLAGS_CONSOLE" - else: - lflags_console = "LFLAGS_WINDOWS" - - self.LFLAGS.extend(self.optional_list(lflags_console)) - - Makefile.finalise(self) - - def generate_macros_and_rules(self, mfile): - """Generate the macros and rules generation. - - mfile is the file object. - """ - if not self._build: - raise ValueError, "pass a filename as build_file when generating a Makefile" - - target = self._build["target"] - - if sys.platform in ("win32", "cygwin"): - target = target + ".exe" - - mfile.write("TARGET = %s\n" % target) - mfile.write("OFILES = %s\n" % self._build["objects"]) - mfile.write("HFILES = %s\n" % self._build["headers"]) - mfile.write("\n") - - Makefile.generate_macros_and_rules(self, mfile) - - def generate_target_default(self, mfile): - """Generate the default target. - - mfile is the file object. - """ - mfile.write("\n$(TARGET): $(OFILES)\n") - - if self.generator in ("MSVC", "MSVC.NET"): - mfile.write("\t$(LINK) $(LFLAGS) /OUT:$(TARGET) @<<\n") - mfile.write("\t $(OFILES) $(LIBS)\n") - mfile.write("<<\n") - - if "embed_manifest_dll" in self.optional_list("CONFIG"): - mfile.write("\tmt -nologo -manifest $(TARGET).manifest -outputresource:$(TARGET);1\n") - elif self.generator == "BMAKE": - mfile.write("\t$(LINK) @&&|\n") - mfile.write("\t$(LFLAGS) $(OFILES) ,$(TARGET),,$(LIBS),,\n") - mfile.write("|\n") - else: - mfile.write("\t$(LINK) $(LFLAGS) -o $(TARGET) $(OFILES) $(LIBS)\n") - - mfile.write("\n$(OFILES): $(HFILES)\n") - - for mf in string.split(self._build["moc_headers"]): - root, discard = os.path.splitext(mf) - cpp = "moc_" + root + ".cpp" - - mfile.write("\n%s: %s\n" % (cpp, mf)) - mfile.write("\t$(MOC) -o %s %s\n" % (cpp, mf)) - - def generate_target_install(self, mfile): - """Generate the install target. - - mfile is the file object. - """ - if self._install_dir is None: - self._install_dir = self.config.default_bin_dir - - mfile.write("\ninstall: $(TARGET)\n") - self.install_file(mfile, "$(TARGET)", self._install_dir) - - def generate_target_clean(self, mfile): - """Generate the clean target. - - mfile is the file object. - """ - mfile.write("\nclean:\n") - self.clean_build_file_objects(mfile, self._build) - - -def _quote(s): - """Return a string surrounded by double quotes it if contains a space. - - s is the string. - """ - if string.find(s, " ") >= 0: - s = '"' + s + '"' - - return s - - -def version_to_string(v): - """Convert a 3 part version number encoded as a hexadecimal value to a - string. - """ - return "%u.%u.%u" % (((v >> 16) & 0xff), ((v >> 8) & 0xff), (v & 0xff)) - - -def read_version(filename, description, numdefine=None, strdefine=None): - """Read the version information for a package from a file. The information - is specified as #defines of a numeric (hexadecimal or decimal) value and/or - a string value. - - filename is the name of the file. - description is the descriptive name of the package. - numdefine is the name of the #define of the numeric version. It is ignored - if it is None. - strdefine is the name of the #define of the string version. It is ignored - if it is None. - - Returns a tuple of the version as a number and as a string. - """ - need_num = numdefine is not None - need_str = strdefine is not None - - vers = None - versstr = None - - f = open(filename) - l = f.readline() - - while l and (need_num or need_str): - wl = string.split(l) - if len(wl) >= 3 and wl[0] == "#define": - if need_num and wl[1] == numdefine: - v = wl[2] - - if v[0:2] == "0x": - vers = string.atoi(v,16) - else: - dec = int(v) - maj = dec / 100 - min = (dec % 100) / 10 - bug = (dec % 10) - vers = (maj << 16) + (min << 8) + bug - - need_num = 0 - - if need_str and wl[1] == strdefine: - # Take account of embedded spaces. - versstr = string.join(wl[2:])[1:-1] - need_str = 0 - - l = f.readline() - - f.close() - - if need_num or need_str: - error("The %s version number could not be determined by parsing %s." % (description, filename)) - - return (vers, versstr) - - -def create_content(dict, macros=None): - """Convert a dictionary to a string (typically to use as the content to a - call to create_config_module()). Dictionary values that are strings are - quoted. Dictionary values that are lists are converted to quoted strings. - - dict is the dictionary. - macros is the optional dictionary of platform specific build macros. - """ - content = "_pkg_config = {\n" - - keys = dict.keys() - keys.sort() - - # Format it nicely. - width = 0 - - for k in keys: - klen = len(k) - - if width < klen: - width = klen - - for k in keys: - val = dict[k] - vtype = type(val) - - if val is None: - val = "None" - elif vtype == types.ListType: - val = "'" + string.join(val) + "'" - elif vtype == types.StringType: - val = "'" + val + "'" - elif vtype == types.IntType: - if string.find(k, "version") >= 0: - # Assume it's a hexadecimal version number. It doesn't matter - # if it isn't, we are just trying to make it look pretty. - val = "0x%06x" % val - else: - val = str(val) - else: - val = "'" + str(val) + "'" - - content = content + " '" + k + "':" + (" " * (width - len(k) + 2)) + string.replace(val, "\\", "\\\\") - - if k != keys[-1]: - content = content + "," - - content = content + "\n" - - content = content + "}\n\n" - - # Format the optional macros. - content = content + "_default_macros = " - - if macros: - content = content + "{\n" - - names = macros.keys() - names.sort() - - width = 0 - for c in names: - clen = len(c) - if width < clen: - width = clen - - for c in names: - if c == names[-1]: - sep = "" - else: - sep = "," - - k = "'" + c + "':" - content = content + " %-*s '%s'%s\n" % (1 + width + 2, k, string.replace(macros[c], "\\", "\\\\"), sep) - - content = content + "}\n" - else: - content = content + "None\n" - - return content - - -def create_config_module(module, template, content, macros=None): - """Create a configuration module by replacing "@" followed by - "SIP_CONFIGURATION" followed by "@" in a template file with a content - string. - - module is the name of the module file. - template is the name of the template file. - content is the content string. If it is a dictionary it is first converted - to a string using create_content(). - macros is an optional dictionary of platform specific build macros. It is - only used if create_content() is called to convert the content to a string. - """ - if type(content) == types.DictType: - content = create_content(content, macros) - - # Allow this file to used as a template. - key = "@" + "SIP_CONFIGURATION" + "@" - - df = open(module, "w") - sf = open(template, "r") - - line = sf.readline() - while line: - if string.find(line, key) >= 0: - line = content - - df.write(line) - - line = sf.readline() - - -def version_to_sip_tag(version, tags, description): - """Convert a version number to a SIP tag. - - version is the version number. If it is negative then the latest version - is assumed. (This is typically useful if a snapshot is indicated by a - negative version number.) - tags is the dictionary of tags keyed by version number. The tag used is - the one with the smallest key (ie. earliest version) that is greater than - the given version number. - description is the descriptive name of the package used for error messages. - - Returns the corresponding tag. - """ - vl = tags.keys() - vl.sort() - - # For a snapshot use the latest tag. - if version < 0: - tag = tags[vl[-1]] - else: - for v in vl: - if version < v: - tag = tags[v] - break - else: - error("Unsupported %s version: 0x%06x." % (description, version)) - - return tag - - -def error(msg): - """Display an error message and terminate. - - msg is the text of the error message. - """ - sys.stderr.write(format("Error: " + msg) + "\n") - sys.exit(1) - - -def inform(msg): - """Display an information message. - - msg is the text of the error message. - """ - sys.stdout.write(format(msg) + "\n") - - -def format(msg, leftmargin=0, rightmargin=78): - """Format a message by inserting line breaks at appropriate places. - - msg is the text of the message. - leftmargin is the position of the left margin. - rightmargin is the position of the right margin. - - Return the formatted message. - """ - curs = leftmargin - fmsg = " " * leftmargin - - for w in string.split(msg): - l = len(w) - if curs != leftmargin and curs + l > rightmargin: - fmsg = fmsg + "\n" + (" " * leftmargin) - curs = leftmargin - - if curs > leftmargin: - fmsg = fmsg + " " - curs = curs + 1 - - fmsg = fmsg + w - curs = curs + l - - return fmsg - - -def parse_build_macros(filename, names, overrides=None, properties=None): - """Parse a qmake compatible file of build system macros and convert it to a - dictionary. A macro is a name/value pair. The dictionary is returned or - None if any of the overrides was invalid. - - filename is the name of the file to parse. - names is a list of the macro names to extract from the file. - overrides is an optional list of macro names and values that modify those - found in the file. They are of the form "name=value" (in which case the - value replaces the value found in the file) or "name+=value" (in which case - the value is appended to the value found in the file). - properties is an optional dictionary of property name and values that are - used to resolve any expressions of the form "$[name]" in the file. - """ - # Validate and convert the overrides to a dictionary. - orides = {} - - if overrides is not None: - for oride in overrides: - prefix = "" - name_end = string.find(oride, "+=") - - if name_end >= 0: - prefix = "+" - val_start = name_end + 2 - else: - name_end = string.find(oride, "=") - - if name_end >= 0: - val_start = name_end + 1 - else: - return None - - name = oride[:name_end] - - if name not in names: - return None - - orides[name] = prefix + oride[val_start:] - - # This class defines a file like object that handles the nested include() - # directives in qmake files. - class qmake_build_file_reader: - def __init__(self, filename): - self.filename = filename - self.currentfile = None - self.filestack = [] - self.pathstack = [] - self.cond_fname = None - self._openfile(filename) - - def _openfile(self, filename): - try: - f = open(filename, 'r') - except IOError, detail: - # If this file is conditional then don't raise an error. - if self.cond_fname == filename: - return - - error("Unable to open %s: %s" % (filename, detail)) - - if self.currentfile: - self.filestack.append(self.currentfile) - self.pathstack.append(self.path) - - self.currentfile = f - self.path = os.path.dirname(filename) - - def readline(self): - line = self.currentfile.readline() - sline = line.strip() - - if self.cond_fname and sline == '}': - # The current condition is closed. - self.cond_fname = None - line = self.currentfile.readline() - elif sline.startswith('exists(') and sline.endswith('{'): - # A new condition is opened so extract the filename. - self.cond_fname = self._normalise(sline[:-1].strip()[7:-1].strip()) - line = self.currentfile.readline() - elif sline.startswith('include('): - nextfile = self._normalise(sline[8:-1].strip()) - self._openfile(nextfile) - return self.readline() - - if not line and self.filestack: - self.currentfile = self.filestack.pop() - self.path = self.pathstack.pop() - return self.readline() - - return line - - # Normalise a filename by expanding any environment variables and - # making sure it is absolute. - def _normalise(self, fname): - if "$(" in fname: - fname = os.path.normpath(self._expandvars(fname)) - - if not os.path.isabs(fname): - fname = os.path.join(self.path, fname) - - return fname - - # Expand the environment variables in a filename. - def _expandvars(self, fname): - i = 0 - while True: - m = re.search(r'\$\((\w+)\)', fname[i:]) - if not m: - break - - i, j = m.span(0) - name = m.group(1) - if name in os.environ: - tail = fname[j:] - fname = fname[:i] + os.environ[name] - i = len(fname) - fname += tail - else: - i = j - - return fname - - f = qmake_build_file_reader(filename) - - # Get everything into a dictionary. - raw = { - "DIR_SEPARATOR": os.sep, - "LITERAL_WHITESPACE": " ", - "LITERAL_DOLLAR": "$", - "LITERAL_HASH": "#" - } - - line = f.readline() - while line: - # Handle line continuations. - while len(line) > 1 and line[-2] == "\\": - line = line[:-2] - - next = f.readline() - - if next: - line = line + next - else: - break - - line = string.strip(line) - - # Ignore comments. - if line and line[0] != "#": - assstart = string.find(line, "+") - if assstart > 0 and line[assstart + 1] == '=': - assend = assstart + 1 - else: - assstart = string.find(line, "=") - assend = assstart - - if assstart > 0: - lhs = string.strip(line[:assstart]) - rhs = string.strip(line[assend + 1:]) - - raw[lhs] = rhs - - line = f.readline() - - # Go through the raw dictionary extracting the macros we need and - # resolving any macro expansions. First of all, make sure every macro has - # a value. - refined = {} - - for m in names: - refined[m] = "" - - macro_prefix = "QMAKE_" - - for lhs in raw.keys(): - # Strip any prefix. - if string.find(lhs, macro_prefix) == 0: - reflhs = lhs[len(macro_prefix):] - else: - reflhs = lhs - - # See if we are interested in this one. - if reflhs not in names: - continue - - rhs = raw[lhs] - - # Resolve any references. - estart = string.find(rhs, "$$(") - mstart = string.find(rhs, "$$") - - while mstart >= 0 and mstart != estart: - rstart = mstart + 2 - if rstart < len(rhs) and rhs[rstart] == "{": - rstart = rstart + 1 - term = "}" - elif rstart < len(rhs) and rhs[rstart] == "[": - rstart = rstart + 1 - term = "]" - else: - term = string.whitespace - - mend = rstart - while mend < len(rhs) and rhs[mend] not in term: - mend = mend + 1 - - lhs = rhs[rstart:mend] - - if term in "}]": - mend = mend + 1 - - if term == "]": - if properties is None or lhs not in properties.keys(): - error("%s: property '%s' is not defined." % (filename, lhs)) - - value = properties[lhs] - else: - try: - value = raw[lhs] - except KeyError: - error("%s: macro '%s' is not defined." % (filename, lhs)) - - rhs = rhs[:mstart] + value + rhs[mend:] - estart = string.find(rhs, "$$(") - mstart = string.find(rhs, "$$") - - # Expand any POSIX style environment variables. - pleadin = ["$$(", "$("] - - for pl in pleadin: - estart = string.find(rhs, pl) - - if estart >= 0: - nstart = estart + len(pl) - break - else: - estart = -1 - - while estart >= 0: - eend = string.find(rhs[nstart:], ")") - - if eend < 0: - break - - eend = nstart + eend - - name = rhs[nstart:eend] - - try: - env = os.environ[name] - except KeyError: - env = "" - - rhs = rhs[:estart] + env + rhs[eend + 1:] - - for pl in pleadin: - estart = string.find(rhs, pl) - - if estart >= 0: - nstart = estart + len(pl) - break - else: - estart = -1 - - # Expand any Windows style environment variables. - estart = string.find(rhs, "%") - - while estart >= 0: - eend = string.find(rhs[estart + 1:], "%") - - if eend < 0: - break - - eend = estart + 1 + eend - - name = rhs[estart + 1:eend] - - try: - env = os.environ[name] - except KeyError: - env = "" - - rhs = rhs[:estart] + env + rhs[eend + 1:] - - estart = string.find(rhs, "%") - - refined[reflhs] = rhs - - # Handle the user overrides. - for lhs in orides.keys(): - rhs = refined[lhs] - oride = orides[lhs] - - if string.find(oride, "+") == 0: - if rhs: - rhs = rhs + " " + oride[1:] - else: - rhs = oride[1:] - else: - rhs = oride - - refined[lhs] = rhs - - return refined - - -def create_wrapper(script, wrapper, gui=0): - """Create a platform dependent executable wrapper around a Python script. - - script is the full pathname of the script. - wrapper is the name of the wrapper file to create. - gui is non-zero if a GUI enabled version of the interpreter should be used. - - Returns the platform specific name of the wrapper. - """ - if sys.platform == "win32": - wrapper = wrapper + ".bat" - - wf = open(wrapper, "w") - - if sys.platform == "win32": - exe = sys.executable - - if gui: - exe = exe[:-4] + "w.exe" - - wf.write("@\"%s\" \"%s\" %%1 %%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9\n" % (exe, script)) - elif sys.platform == "darwin": - # python, pythonw and sys.executable are all different images. We - # would prefer to use the latter (because it includes the version - # number) but that would mean being unable to support the "gui" - # argument. - if gui: - exe = "pythonw" - else: - exe = "python" - - wf.write("exec %s %s ${1+\"$@\"}\n" % (exe, script)) - else: - wf.write("exec %s %s ${1+\"$@\"}\n" % (sys.executable, script)) - - wf.close() - - if sys.platform != "win32": - sbuf = os.stat(wrapper) - mode = sbuf.st_mode - mode |= (stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH) - - os.chmod(wrapper, mode) - - return wrapper diff --git a/python/sip/specs/aix-g++ b/python/sip/specs/aix-g++ deleted file mode 100644 index 438185a6..00000000 --- a/python/sip/specs/aix-g++ +++ /dev/null @@ -1,79 +0,0 @@ -# -# qmake configuration for aix-g++ -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -mpowerpc -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -D_THREAD_SAFE - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -QMAKE_LFLAGS_THREAD = -L/usr/lib/threads -QMAKE_AIX_SHLIB = 1 - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthreads - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/aix-g++-64 b/python/sip/specs/aix-g++-64 deleted file mode 100644 index 231f3dd3..00000000 --- a/python/sip/specs/aix-g++-64 +++ /dev/null @@ -1,79 +0,0 @@ -# -# qmake configuration for aix-g++-64 -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -maix64 -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -D_THREAD_SAFE - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -maix64 -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -QMAKE_LFLAGS_THREAD = -L/usr/lib/threads -QMAKE_AIX_SHLIB = 1 - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthreads - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar -X64 cq -QMAKE_RANLIB = ranlib -X64 - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/aix-xlc b/python/sip/specs/aix-xlc deleted file mode 100644 index fd288a36..00000000 --- a/python/sip/specs/aix-xlc +++ /dev/null @@ -1,82 +0,0 @@ -# -# qmake configuration for aix-xlc -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = xlc -QMAKE_CC_THREAD = xlc_r -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -qstrict -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -QMAKE_CFLAGS_RELEASE = -O3 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_THREAD = -qthreaded - -QMAKE_CXX = xlC -QMAKE_CXX_THREAD = xlC_r -QMAKE_CXXFLAGS = -+ $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = -QMAKE_LIBDIR_X11 = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = -QMAKE_LIBDIR_OPENGL = - -QMAKE_LINK = xlC -QMAKE_LINK_THREAD = xlC_r -QMAKE_LINK_SHLIB = ld -QMAKE_LINK_SHLIB_CMD = makeC++SharedLib -p 0 \ - -o $(TARGET) $(LFLAGS) $(OBJECTS) $(OBJMOC) $(LIBS) -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -QMAKE_LFLAGS_THREAD = -L/usr/lib/threads -QMAKE_AIX_SHLIB = 1 - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthreads - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cq -QMAKE_RANLIB = ranlib - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/aix-xlc-64 b/python/sip/specs/aix-xlc-64 deleted file mode 100644 index 56501e75..00000000 --- a/python/sip/specs/aix-xlc-64 +++ /dev/null @@ -1,84 +0,0 @@ -# -# qmake configuration for aix-xlc -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = xlc -QMAKE_CC_THREAD = xlc_r -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -qstrict -q64 -# -qwarn64 turns on too many bogus warnings and shadows real warnings -#QMAKE_CFLAGS_WARN_ON = -qwarn64 -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -QMAKE_CFLAGS_RELEASE = -O3 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_THREAD = -qthreaded - -QMAKE_CXX = xlC -QMAKE_CXX_THREAD = xlC_r -QMAKE_CXXFLAGS = -+ $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = -QMAKE_LIBDIR_X11 = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = -QMAKE_LIBDIR_OPENGL = - -QMAKE_LINK = xlC -QMAKE_LINK_THREAD = xlC_r -QMAKE_LINK_SHLIB = ld -QMAKE_LINK_SHLIB_CMD = makeC++SharedLib -p 0 -X 64 \ - -o $(TARGET) $(LFLAGS) $(OBJECTS) $(OBJMOC) $(LIBS) -QMAKE_LFLAGS = -q64 -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -QMAKE_LFLAGS_THREAD = -L/usr/lib/threads -QMAKE_AIX_SHLIB = 1 - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthreads - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar -X64 cq -QMAKE_RANLIB = ranlib -X64 - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/bsdi-g++ b/python/sip/specs/bsdi-g++ deleted file mode 100644 index e1a43a05..00000000 --- a/python/sip/specs/bsdi-g++ +++ /dev/null @@ -1,84 +0,0 @@ -# -# $Id$ -# -# qmake configuration for bsdi-g++ -# -# Written for WindRiver BSD/OS 4.0. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $(QTDIR)/include -QMAKE_LIBDIR_QT = $(QTDIR)/lib -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,-rpath, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_QT = -lqt -QMAKE_LIBS_QT_THREAD = -lqt-mt -QMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -QMAKE_LIBS_OPENGL_QT = -lGL -lXmu -QMAKE_LIBS_THREAD = - -QMAKE_MOC = $(QTDIR)/bin/moc -QMAKE_UIC = $(QTDIR)/bin/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p diff --git a/python/sip/specs/cygwin-g++ b/python/sip/specs/cygwin-g++ deleted file mode 100644 index d045bce8..00000000 --- a/python/sip/specs/cygwin-g++ +++ /dev/null @@ -1,86 +0,0 @@ -# -# $Id$ -# -# qmake configuration for cygwin-g++ -# -# Written for Qt/X11 on Cygwin, using the POSIX API. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release incremental link_prl -QMAKE_INCREMENTAL_STYLE = sublib - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = byacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -pipe -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -D_REENTRANT - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $(QTDIR)/include -QMAKE_LIBDIR_QT = $(QTDIR)/lib -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,-rpath, -QMAKE_CYGWIN_SHLIB = 1 -QMAKE_CYGWIN_EXE = 1 - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_QT = -lqt -QMAKE_LIBS_QT_THREAD = -lqt-mt -QMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -QMAKE_LIBS_OPENGL_QT = -lGL -lXmu -QMAKE_LIBS_THREAD = -lpthread - -QMAKE_MOC = $(QTDIR)/bin/moc -QMAKE_UIC = $(QTDIR)/bin/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p diff --git a/python/sip/specs/darwin-g++ b/python/sip/specs/darwin-g++ deleted file mode 100644 index 11e62dc7..00000000 --- a/python/sip/specs/darwin-g++ +++ /dev/null @@ -1,89 +0,0 @@ -# -# qmake configuration for darwin-g++ -# -# Written for Qt/X11 on Darwin and XFree86 -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl native_precompiled_headers -QT += core gui -DEFINES += __USE_WS_X11__ - -QMAKE_CC = cc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -pipe -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_EXTENSION_SHLIB = dylib -QMAKE_EXTENSION_PLUGIN = so -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = - -QMAKE_CXX = c++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = - -QMAKE_INCDIR = /usr/local/include -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = c++ -QMAKE_LINK_SHLIB = c++ -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_APP = -prebind -QMAKE_LFLAGS_SHLIB = -prebind -dynamiclib -single_module -headerpad_max_install_names -QMAKE_LFLAGS_PLUGIN = -bundle -QMAKE_LFLAGS_THREAD = - -QMAKE_LFLAGS_VERSION = -current_version$${LITERAL_WHITESPACE} -QMAKE_LFLAGS_COMPAT_VERSION = -compatibility_version$${LITERAL_WHITESPACE} - -QMAKE_RPATH = - -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cq -QMAKE_RANLIB = ranlib -s - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_COPY_FILE = $$QMAKE_COPY -QMAKE_COPY_DIR = $$QMAKE_COPY -r -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/dgux-g++ b/python/sip/specs/dgux-g++ deleted file mode 100644 index 8267828a..00000000 --- a/python/sip/specs/dgux-g++ +++ /dev/null @@ -1,77 +0,0 @@ -# -# $Id$ -# -# qmake configuration for dgux-g++ -# -# Written for DG/UX R4.20MU06. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $(QTDIR)/include -QMAKE_LIBDIR_QT = $(QTDIR)/lib -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-h, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_QT = -lqt - -QMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -QMAKE_LIBS_OPENGL_QT = -lGL -lXmu - -QMAKE_MOC = $(QTDIR)/bin/moc -QMAKE_UIC = $(QTDIR)/bin/uic - -QMAKE_AR = ar cq -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p diff --git a/python/sip/specs/freebsd-g++ b/python/sip/specs/freebsd-g++ deleted file mode 100644 index 7a424109..00000000 --- a/python/sip/specs/freebsd-g++ +++ /dev/null @@ -1,80 +0,0 @@ -# -# qmake configuration for freebsd-g++ -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -pipe -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -pthread -D_THREAD_SAFE - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -# Addon software goes into /usr/local on the BSDs, by default we will look there -QMAKE_INCDIR = /usr/local/include -QMAKE_LIBDIR = /usr/local/lib -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -pthread -QMAKE_RPATH = -Wl,-rpath, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/freebsd-g++34 b/python/sip/specs/freebsd-g++34 deleted file mode 100644 index 24c77866..00000000 --- a/python/sip/specs/freebsd-g++34 +++ /dev/null @@ -1,80 +0,0 @@ -# -# qmake configuration for freebsd-g++34 (using g++34 from ports/lang/gcc34) -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = gcc34 -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -pipe -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -pthread -D_THREAD_SAFE - -QMAKE_CXX = g++34 -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -# Addon software goes into /usr/local on the BSDs, by default we will look there -QMAKE_INCDIR = /usr/local/include -QMAKE_LIBDIR = /usr/local/lib -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = g++34 -QMAKE_LINK_SHLIB = g++34 -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -pthread -QMAKE_RPATH = -Wl,-rpath, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/freebsd-g++40 b/python/sip/specs/freebsd-g++40 deleted file mode 100644 index cb8f58ef..00000000 --- a/python/sip/specs/freebsd-g++40 +++ /dev/null @@ -1,80 +0,0 @@ -# -# qmake configuration for freebsd-g++40 (using g++40 from ports/lang/gcc40) -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = gcc40 -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -pipe -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -pthread -D_THREAD_SAFE - -QMAKE_CXX = g++40 -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -# Addon software goes into /usr/local on the BSDs, by default we will look there -QMAKE_INCDIR = /usr/local/include -QMAKE_LIBDIR = /usr/local/lib -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = g++40 -QMAKE_LINK_SHLIB = g++40 -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -pthread -QMAKE_RPATH = -Wl,-rpath, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/freebsd-icc b/python/sip/specs/freebsd-icc deleted file mode 100644 index 71d08b79..00000000 --- a/python/sip/specs/freebsd-icc +++ /dev/null @@ -1,105 +0,0 @@ -# -# qmake configuration for freebsd-icc -# -# Written for Intel C++ 7.1 and 8.0 on FreeBSD -# -# Note: Some of the remarks from the Intel compiler are disabled (even -# with 'warn_on' specified): -# -# remark #171: invalid type conversion: "int" to "void *" -# remark #193: zero used for undefined preprocessing identifier -# remark #279: controlling expression is constant -# remark #304: access control not specified ("public" by default) -# remark #310: old-style parameter list (anachronism) -# remark #383: value copied to temporary, reference to temporary used -# remark #424: extra ";" ignored -# remark #444: destructor for base class "Class" is not virtual -# remark #488: template parameter "T" is not used in declaring the parameter -# types of function template "function" -# remark #810: conversion from "type1" to "type2" may loose significant bits -# remark #858: type qualifier on return type is meaningless -# remark #967: conversion from "type1" to "type2"; sizes do not match -# remark #981: operands are evaluated in unspecified order -# remark #1418: external definition with no prior declaration -# remark #1419: external declaration in primary source file -# warning #1476: field uses tail padding of a base class -# warning #1477: GNU C++ compilers may use bit field padding -# warning #1572: floating-point equality and inequality comparisons are unreliable -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = icc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -wd858,1572 -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -w2 -wd171,193,279,304,310,383,424,444,488,810,967,981,1418,1419,1476,1477 -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -KPIC -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_THREAD = -D_THREAD_SAFE - -QMAKE_CXX = icpc -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -# Addon software goes into /usr/local on the BSDs, by default we will look there -QMAKE_INCDIR = /usr/local/include -QMAKE_LIBDIR = /usr/local/lib -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = icpc -QMAKE_LINK_SHLIB = icpc -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Qoption,ld,-soname, -QMAKE_LFLAGS_THREAD = -mt -QMAKE_RPATH = -Qoption,ld,-rpath, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/hpux-acc b/python/sip/specs/hpux-acc deleted file mode 100644 index 0a78d972..00000000 --- a/python/sip/specs/hpux-acc +++ /dev/null @@ -1,103 +0,0 @@ -# -# qmake configuration for hpux-acc -# -# We define _POSIX_C_SOURCE to 199506L when using threads, therefore -# we also need to redefine _HPUX_SOURCE. See pthread(3t) for more details. -# -# From the "HP aC++ Online Programmer's Guide": -# Using +DS to Specify Instruction Scheduling: -# * By default, the compiler performs scheduling tuned for the system -# on which you are compiling, or, if specified, tuned for the setting -# of the +DA option. -# -# From the online "C/HP-UX Reference Manual": -# -Aa -# Enables strict ANSI C compliance. -# -Ae -# Enables ANSI C compliance, HP value-added features (as described -# for +e option), and _HPUX_SOURCE name space macro. It is equivalent -# to -Aa +e -D_HPUX_SOURCE. -# +e -# Enables the following HP value added features while compiling in -# ANSI C mode: sized enum, long long, long pointers, compiler supplied -# defaults for missing arguments to intrinsic calls, and $ in identifier -# HP C extensions. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = cc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -Ae +DAportable -w -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = +O1 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = +Z -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE - -QMAKE_CXX = aCC -QMAKE_CXXFLAGS = -AA +DAportable -w -D__STRICT_ANSI__ -D_HPUX_SOURCE -QMAKE_CXXFLAGS_DEPS = +M -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/include/X11R6 -QMAKE_LIBDIR_X11 = /usr/lib/X11R6 -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /opt/graphics/OpenGL/include /usr/contrib/X11R6/include -QMAKE_LIBDIR_OPENGL = /opt/graphics/OpenGL/lib /usr/contrib/X11R6/lib - -QMAKE_LINK = aCC -QMAKE_LINK_SHLIB = aCC -QMAKE_LFLAGS = -AA +DAportable -Wl,+s -QMAKE_LFLAGS_RELEASE = -O -QMAKE_LFLAGS_DEBUG = -g -QMAKE_LFLAGS_SHLIB = -b -Wl,-a,shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,+h, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,+b, -QMAKE_HPUX_SHLIB = 1 -QMAKE_EXTENSION_SHLIB = sl - -QMAKE_LIBS = -lm -QMAKE_LIBS_DYNLOAD = -ldld -QMAKE_LIBS_X11 = -lXext -lX11 -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -lXt -QMAKE_LIBS_OPENGL_QT = -lGL -lXt -QMAKE_LIBS_THREAD = -lpthread -QMAKE_LIBS_YACC = -ly - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/hpux-acc-64 b/python/sip/specs/hpux-acc-64 deleted file mode 100644 index 083c4038..00000000 --- a/python/sip/specs/hpux-acc-64 +++ /dev/null @@ -1,124 +0,0 @@ -# -# qmake configuration for hpux-n64 -# -# We define _POSIX_C_SOURCE to 199506L when using threads, therefore -# we also need to redefine _HPUX_SOURCE. -# From pthread(3t): -# Some documentation will recommend the use of -D_REENTRANT for -# compilation. While this also functions properly, it is considered -# an obsolescent form. -# See pthread(3t) for more details. -# -# From the "HP aC++ Online Programmer's Guide": -# When +DA2.0W is specified: -# * 64-bit SVR4 Executable and Linking Format (ELF) object files -# are generated for PA-RISC 2.0. -# * The preprocessor predefined macro, __LP64__ is defined. -# * The correct path for 64-bit system and language libraries is -# selected. -# When +DD32 is specified: -# * The size of an int, long, or pointer data type is 32-bits. -# The size of an int data type is 32-bits. The size of a long or -# pointer data type is 64-bits. -# * This is the default, currently equivalent to +DA1.1 architecture. -# When +DD64 is specified: -# * The size of an int data type is 32-bits. The size of a long or -# pointer data type is 64-bits. -# * This is currently equivalent to +DA2.OW architecture. -# * The preprocessor predefined macro, __LP64__ is defined. -# Using +DS to Specify Instruction Scheduling: -# * By default, the compiler performs scheduling tuned for the system -# on which you are compiling, or, if specified, tuned for the setting -# of the +DA option. -# -# From the online "C/HP-UX Reference Manual": -# -Aa -# Enables strict ANSI C compliance. -# -Ae -# Enables ANSI C compliance, HP value-added features (as described -# for +e option), and _HPUX_SOURCE name space macro. It is equivalent -# to -Aa +e -D_HPUX_SOURCE. -# +e -# Enables the following HP value added features while compiling in -# ANSI C mode: sized enum, long long, long pointers, compiler supplied -# defaults for missing arguments to intrinsic calls, and $ in identifier -# HP C extensions. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = cc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -Ae +DA2.0W -w -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = +O1 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = +Z -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE - -QMAKE_CXX = aCC -QMAKE_CXXFLAGS = -AA +DA2.0W -w -D__STRICT_ANSI__ -D_HPUX_SOURCE -QMAKE_CXXFLAGS_DEPS = +M -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/include/X11R6 -QMAKE_LIBDIR_X11 = /usr/lib/X11R6/pa20_64 -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /opt/graphics/OpenGL/include /usr/contrib/X11R6/include -QMAKE_LIBDIR_OPENGL = /opt/graphics/OpenGL/lib/pa20_64 /usr/contrib/X11R6/lib/pa20_64 - -QMAKE_LINK = aCC -QMAKE_LINK_SHLIB = aCC -QMAKE_LFLAGS = -AA +DA2.0W -Wl,+s -QMAKE_LFLAGS_RELEASE = -O -QMAKE_LFLAGS_DEBUG = -g -QMAKE_LFLAGS_SHLIB = -b -Wl,-a,shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,+h, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,+b, -QMAKE_HPUX_SHLIB = 3 -QMAKE_EXTENSION_SHLIB = sl - -QMAKE_LIBS = -lm -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -lXt -QMAKE_LIBS_OPENGL_QT = -lGL -lXt -QMAKE_LIBS_THREAD = -lpthread -QMAKE_LIBS_YACC = -ly - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/hpux-acc-o64 b/python/sip/specs/hpux-acc-o64 deleted file mode 100644 index e6739a70..00000000 --- a/python/sip/specs/hpux-acc-o64 +++ /dev/null @@ -1,123 +0,0 @@ -# -# qmake configuration for hpux-o64 -# -# We define _POSIX_C_SOURCE to 199506L when using threads, therefore -# we also need to redefine _HPUX_SOURCE. -# From pthread(3t): -# Some documentation will recommend the use of -D_REENTRANT for -# compilation. While this also functions properly, it is considered -# an obsolescent form. -# See pthread(3t) for more details. -# -# From the "HP aC++ Online Programmer's Guide": -# When +DA2.0W is specified: -# * 64-bit SVR4 Executable and Linking Format (ELF) object files -# are generated for PA-RISC 2.0. -# * The preprocessor predefined macro, __LP64__ is defined. -# * The correct path for 64-bit system and language libraries is -# selected. -# When +DD32 is specified: -# * The size of an int, long, or pointer data type is 32-bits. -# The size of an int data type is 32-bits. The size of a long or -# pointer data type is 64-bits. -# * This is the default, currently equivalent to +DA1.1 architecture. -# When +DD64 is specified: -# * The size of an int data type is 32-bits. The size of a long or -# pointer data type is 64-bits. -# * This is currently equivalent to +DA2.OW architecture. -# * The preprocessor predefined macro, __LP64__ is defined. -# Using +DS to Specify Instruction Scheduling: -# * By default, the compiler performs scheduling tuned for the system -# on which you are compiling, or, if specified, tuned for the setting -# of the +DA option. -# -# From the online "C/HP-UX Reference Manual": -# -Aa -# Enables strict ANSI C compliance. -# -Ae -# Enables ANSI C compliance, HP value-added features (as described -# for +e option), and _HPUX_SOURCE name space macro. It is equivalent -# to -Aa +e -D_HPUX_SOURCE. -# +e -# Enables the following HP value added features while compiling in -# ANSI C mode: sized enum, long long, long pointers, compiler supplied -# defaults for missing arguments to intrinsic calls, and $ in identifier -# HP C extensions. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = cc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -Ae +DA2.0 -w -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -QMAKE_CFLAGS_RELEASE = -O +Oentrysched +Onolimit -QMAKE_CFLAGS_DEBUG = -y -g -QMAKE_CFLAGS_SHLIB = +Z -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE - -QMAKE_CXX = aCC -QMAKE_CXXFLAGS = +DA2.0 -w -D__STRICT_ANSI__ -D_HPUX_SOURCE -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = -g -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/include/X11R6 -QMAKE_LIBDIR_X11 = /usr/lib/X11R6 -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /opt/graphics/OpenGL/include /usr/contrib/X11R6/include -QMAKE_LIBDIR_OPENGL = /opt/graphics/OpenGL/lib /usr/contrib/X11R6/lib - -QMAKE_LINK = aCC -QMAKE_LINK_SHLIB = aCC -QMAKE_LFLAGS = +DA2.0 -Wl,+s -QMAKE_LFLAGS_RELEASE = -O -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -b -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,+h, -QMAKE_RPATH = -Wl,+b, -QMAKE_HPUX_SHLIB = 2 -QMAKE_EXTENSION_SHLIB = sl - -QMAKE_LIBS = -lm -QMAKE_LIBS_DYNLOAD = -ldld -QMAKE_LIBS_X11 = -lXext -lX11 -QMAKE_LIBS_X11SM = -lSM -lICE - -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread -QMAKE_LIBS_YACC = -ly - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/hpux-cc b/python/sip/specs/hpux-cc deleted file mode 100644 index 4ccc1316..00000000 --- a/python/sip/specs/hpux-cc +++ /dev/null @@ -1,100 +0,0 @@ -# -# $Id$ -# -# qmake configuration for hpux-cc -# -# We define _POSIX_C_SOURCE to 199506L when using threads, therefore -# we also need to redefine _HPUX_SOURCE. -# See pthread(3t) for more details. -# -# From the "HP aC++ Online Programmer's Guide": -# Using +DS to Specify Instruction Scheduling: -# * By default, the compiler performs scheduling tuned for the system -# on which you are compiling, or, if specified, tuned for the setting -# of the +DA option. -# -# From the online "C/HP-UX Reference Manual": -# -Aa -# Enables strict ANSI C compliance. -# -Ae -# Enables ANSI C compliance, HP value-added features (as described -# for +e option), and _HPUX_SOURCE name space macro. It is equivalent -# to -Aa +e -D_HPUX_SOURCE. -# +e -# Enables the following HP value added features while compiling in -# ANSI C mode: sized enum, long long, long pointers, compiler supplied -# defaults for missing arguments to intrinsic calls, and $ in identifier -# HP C extensions. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl - -QMAKE_CC = cc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -Ae +DA1.1e -w -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -QMAKE_CFLAGS_RELEASE = -O -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = +Z -QMAKE_CFLAGS_YACC = - -QMAKE_CXX = CC -QMAKE_CXXFLAGS = +DA1.1e -w +a1 -D_HPUX_SOURCE -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/include/X11R6 -QMAKE_LIBDIR_X11 = /usr/lib/X11R6 -QMAKE_INCDIR_QT = $(QTDIR)/include -QMAKE_LIBDIR_QT = $(QTDIR)/lib -QMAKE_INCDIR_OPENGL = /opt/graphics/OpenGL/include /usr/contrib/X11R6/include -QMAKE_LIBDIR_OPENGL = /opt/graphics/OpenGL/lib /usr/contrib/X11R6/lib - -QMAKE_LINK = CC -QMAKE_LINK_SHLIB = CC -# CC generates template code during linking, and so needs -I's -QMAKE_LFLAGS = +DA1.1e -Wl,+s -L/usr/lib -I$$QMAKE_INCDIR_X11 -I$$QMAKE_INCDIR_QT -QMAKE_LFLAGS_RELEASE = -O -s -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -b -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,+h, -QMAKE_RPATH = -Wl,+b, -QMAKE_HPUX_SHLIB = 1 - -QMAKE_LIBS = -lm -QMAKE_LIBS_DYNLOAD = -ldld -QMAKE_LIBS_X11 = -lXext -lX11 -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_QT = -lqt - -QMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -QMAKE_LIBS_OPENGL_QT = -lGL -lXmu - -QMAKE_MOC = $(QTDIR)/bin/moc -QMAKE_UIC = $(QTDIR)/bin/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p diff --git a/python/sip/specs/hpux-g++ b/python/sip/specs/hpux-g++ deleted file mode 100644 index 55339938..00000000 --- a/python/sip/specs/hpux-g++ +++ /dev/null @@ -1,85 +0,0 @@ -# -# qmake configuration for hpux-g++ -# -# We define _POSIX_C_SOURCE to 199506L when using threads, -# therefore we also need to redefine _HPUX_SOURCE. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl plugin_no_soname -QT += core gui - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -D_HPUX_SOURCE -DGLU_VERSION_1_2 -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = -QMAKE_LIBDIR_X11 = /usr/lib/X11R6 -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /opt/Mesa/include /usr/contrib/X11R6/include -QMAKE_LIBDIR_OPENGL = /opt/Mesa/lib /usr/contrib/X11R6/lib - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -Wl,+s -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -fPIC -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,+h, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,+b, -QMAKE_HPUX_SHLIB = 1 -QMAKE_EXTENSION_SHLIB = sl - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldld -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread -QMAKE_LIBS_YACC = -ly - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/hpux-g++-64 b/python/sip/specs/hpux-g++-64 deleted file mode 100644 index 0b81fcd7..00000000 --- a/python/sip/specs/hpux-g++-64 +++ /dev/null @@ -1,85 +0,0 @@ -# -# qmake configuration for hpux-g++-64 -# -# We define _POSIX_C_SOURCE to 199506L when using threads, -# therefore we also need to redefine _HPUX_SOURCE. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -D_HPUX_SOURCE -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L - -QMAKE_INCDIR = -QMAKE_LIBDIR = /usr/lib/pa20_64 -QMAKE_INCDIR_X11 = /usr/include/X11R6 -QMAKE_LIBDIR_X11 = /usr/lib/X11R6/pa20_64 -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /opt/Mesa/include /usr/contrib/X11R6/include -QMAKE_LIBDIR_OPENGL = /opt/Mesa/lib/pa20_64 /usr/contrib/X11R6/lib/pa20_64 - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -Wl,+s -lpthread -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -fPIC -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,+h, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,+b, -QMAKE_HPUX_SHLIB = 3 -QMAKE_EXTENSION_SHLIB = sl - -QMAKE_LIBS = -lm -QMAKE_LIBS_DYNLOAD = -ldld -QMAKE_LIBS_X11 = -lXext -lX11 -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread -QMAKE_LIBS_YACC = -ly - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/hpuxi-acc b/python/sip/specs/hpuxi-acc deleted file mode 100644 index 1596ac2d..00000000 --- a/python/sip/specs/hpuxi-acc +++ /dev/null @@ -1,122 +0,0 @@ -# -# qmake configuration for hpuxi-acc-32 -# -# We define _POSIX_C_SOURCE to 199506L when using threads, therefore -# we also need to redefine _HPUX_SOURCE. -# From pthread(3t): -# Some documentation will recommend the use of -D_REENTRANT for -# compilation. While this also functions properly, it is considered -# an obsolescent form. -# See pthread(3t) for more details. -# -# From the "HP aC++ Online Programmer's Guide": -# When +DA2.0W is specified: -# * 64-bit SVR4 Executable and Linking Format (ELF) object files -# are generated for PA-RISC 2.0. -# * The preprocessor predefined macro, __LP64__ is defined. -# * The correct path for 64-bit system and language libraries is -# selected. -# When +DD32 is specified: -# * The size of an int, long, or pointer data type is 32-bits. -# The size of an int data type is 32-bits. The size of a long or -# pointer data type is 64-bits. -# * This is the default, currently equivalent to +DA1.1 architecture. -# When +DD64 is specified: -# * The size of an int data type is 32-bits. The size of a long or -# pointer data type is 64-bits. -# * This is currently equivalent to +DA2.OW architecture. -# * The preprocessor predefined macro, __LP64__ is defined. -# Using +DS to Specify Instruction Scheduling: -# * By default, the compiler performs scheduling tuned for the system -# on which you are compiling, or, if specified, tuned for the setting -# of the +DA option. -# -# From the online "C/HP-UX Reference Manual": -# -Aa -# Enables strict ANSI C compliance. -# -Ae -# Enables ANSI C compliance, HP value-added features (as described -# for +e option), and _HPUX_SOURCE name space macro. It is equivalent -# to -Aa +e -D_HPUX_SOURCE. -# +e -# Enables the following HP value added features while compiling in -# ANSI C mode: sized enum, long long, long pointers, compiler supplied -# defaults for missing arguments to intrinsic calls, and $ in identifier -# HP C extensions. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release plugin_no_soname -QT += core gui - -QMAKE_CC = cc -QMAKE_LEX = lex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = +DD32 +DSitanium -w -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = +O2 +Osize -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = +Z -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE - -QMAKE_CXX = aCC -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -D__STRICT_ANSI__ -D_HPUX_SOURCE -QMAKE_CXXFLAGS_DEPS = +M -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/include/X11R6 -QMAKE_LIBDIR_X11 = /usr/lib/hpux32/X11R6 -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /opt/graphics/OpenGL/include /usr/contrib/X11R6/include -QMAKE_LIBDIR_OPENGL = /opt/graphics/OpenGL/lib/hpux32 /usr/contrib/X11R6/lib/hpux32 - -QMAKE_LINK = aCC -QMAKE_LINK_SHLIB = aCC -QMAKE_LFLAGS = +DD32 +DSitanium -Wl,+s -QMAKE_LFLAGS_RELEASE = +O2 -QMAKE_LFLAGS_DEBUG = -g -QMAKE_LFLAGS_SHLIB = -b -Wl,-a,shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,+h, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = - -QMAKE_LIBS = -lm -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -lXt -QMAKE_LIBS_OPENGL_QT = -lGL -lXt -QMAKE_LIBS_THREAD = -lpthread -QMAKE_LIBS_YACC = -ly - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/hpuxi-acc-64 b/python/sip/specs/hpuxi-acc-64 deleted file mode 100644 index 0763d140..00000000 --- a/python/sip/specs/hpuxi-acc-64 +++ /dev/null @@ -1,122 +0,0 @@ -# -# qmake configuration for hpuxi-acc-64 -# -# We define _POSIX_C_SOURCE to 199506L when using threads, therefore -# we also need to redefine _HPUX_SOURCE. -# From pthread(3t): -# Some documentation will recommend the use of -D_REENTRANT for -# compilation. While this also functions properly, it is considered -# an obsolescent form. -# See pthread(3t) for more details. -# -# From the "HP aC++ Online Programmer's Guide": -# When +DA2.0W is specified: -# * 64-bit SVR4 Executable and Linking Format (ELF) object files -# are generated for PA-RISC 2.0. -# * The preprocessor predefined macro, __LP64__ is defined. -# * The correct path for 64-bit system and language libraries is -# selected. -# When +DD32 is specified: -# * The size of an int, long, or pointer data type is 32-bits. -# The size of an int data type is 32-bits. The size of a long or -# pointer data type is 64-bits. -# * This is the default, currently equivalent to +DA1.1 architecture. -# When +DD64 is specified: -# * The size of an int data type is 32-bits. The size of a long or -# pointer data type is 64-bits. -# * This is currently equivalent to +DA2.OW architecture. -# * The preprocessor predefined macro, __LP64__ is defined. -# Using +DS to Specify Instruction Scheduling: -# * By default, the compiler performs scheduling tuned for the system -# on which you are compiling, or, if specified, tuned for the setting -# of the +DA option. -# -# From the online "C/HP-UX Reference Manual": -# -Aa -# Enables strict ANSI C compliance. -# -Ae -# Enables ANSI C compliance, HP value-added features (as described -# for +e option), and _HPUX_SOURCE name space macro. It is equivalent -# to -Aa +e -D_HPUX_SOURCE. -# +e -# Enables the following HP value added features while compiling in -# ANSI C mode: sized enum, long long, long pointers, compiler supplied -# defaults for missing arguments to intrinsic calls, and $ in identifier -# HP C extensions. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release plugin_no_soname -QT += core gui - -QMAKE_CC = cc -QMAKE_LEX = lex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = +DD64 +DSitanium -w -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = +O2 +Osize -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = +Z -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE - -QMAKE_CXX = aCC -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -D__STRICT_ANSI__ -D_HPUX_SOURCE -QMAKE_CXXFLAGS_DEPS = +M -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/include/X11R6 -QMAKE_LIBDIR_X11 = /usr/lib/hpux64/X11R6 -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /opt/graphics/OpenGL/include /usr/contrib/X11R6/include -QMAKE_LIBDIR_OPENGL = /opt/graphics/OpenGL/lib/hpux64 /usr/contrib/X11R6/lib/hpux64 - -QMAKE_LINK = aCC -QMAKE_LINK_SHLIB = aCC -QMAKE_LFLAGS = +DD64 +DSitanium -Wl,+s -QMAKE_LFLAGS_RELEASE = +O2 -QMAKE_LFLAGS_DEBUG = -g -QMAKE_LFLAGS_SHLIB = -b -Wl,-a,shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,+h, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = - -QMAKE_LIBS = -lm -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -lXt -QMAKE_LIBS_OPENGL_QT = -lGL -lXt -QMAKE_LIBS_THREAD = -lpthread -QMAKE_LIBS_YACC = -ly - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/hurd-g++ b/python/sip/specs/hurd-g++ deleted file mode 100644 index 88539e81..00000000 --- a/python/sip/specs/hurd-g++ +++ /dev/null @@ -1,77 +0,0 @@ -# -# qmake configuration for hurd-g++ -# -# Submitted by uch@nop.or.jp as "gnu-g++". -# Renamed to "hurd-g++" because people were confusing GNU/Hurd with GNU/Linux. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -QT += core gui -CONFIG += qt warn_on release link_prl - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm - -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/irix-cc b/python/sip/specs/irix-cc deleted file mode 100644 index efc47bc6..00000000 --- a/python/sip/specs/irix-cc +++ /dev/null @@ -1,113 +0,0 @@ -# -# qmake configuration for irix-cc -# -# From cc(1): -# -n32 -# Generates a (new) 32-bit object. This defaults to -mips3 if -# -mips4 has not been specified. -# -LANG: ... -# The language feature option group controls the source language -# interpretation assumed by the compiler. The individual controls -# in this group are as follows: -# ansi-for-init-scope [ = ( ON|OFF ) ] -# Enables or disables the ANSI scoping rules for for-init -# declarations (the scope of the name declared extends to -# the end of the for statement). This enables the behavior -# that is required by the C++ standard. The default value -# is OFF, which is the ARM behavior (the scope of the name -# declared extends to the end of the block enclosing the for -# statement). -# bool [ = ( ON|OFF ) ] -# Enables or disables the predefined bool data type, along -# with the predefined values true and false. Use this option -# only to suppress this type in old code that defines bool -# itself. Because this option changes the mangling of function -# names with bool parameters, all files comprising a program -# should be compiled with consistent options. -# Default is ON. -# The _BOOL feature macro can be used in #ifdefs to do conditional -# compilation based on whether or not this option is enabled. -# std -# Enables use of the standard C++ library and standard- -# conforming iostream library. Specifying this flag also -# triggers other standard-conforming behavior, such as the -# new rules for the scope of for loop initializers. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = cc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -n32 -signed -woff 1209,1355,1375,1424,3303 -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -fullwarn -QMAKE_CFLAGS_WARN_OFF = -QMAKE_CFLAGS_RELEASE = -O2 -OPT:Olimit=3000 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -QMAKE_CFLAGS_YACC = -woff 1110,1174,3262 -QMAKE_CFLAGS_THREAD = - -QMAKE_CXX = CC -QMAKE_CXXFLAGS = -n32 -signed -LANG:std:libc_in_namespace_std=ON -woff 1209,1355,1375,1424,3303 -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = -QMAKE_LIBDIR_X11 = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = -QMAKE_LIBDIR_OPENGL = - -QMAKE_LINK = CC -QMAKE_LINK_SHLIB = CC -QMAKE_LFLAGS = -n32 -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -g -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,-rpath, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -lm -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = CC -ar -o -QMAKE_RANLIB = - -QMAKE_CLEAN = -r $(OBJECTS_DIR)so_locations $(OBJECTS_DIR)ii_files - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/irix-cc-64 b/python/sip/specs/irix-cc-64 deleted file mode 100644 index f83d1f93..00000000 --- a/python/sip/specs/irix-cc-64 +++ /dev/null @@ -1,113 +0,0 @@ -# -# qmake configuration for irix-cc-64 -# -# From cc(1): -# -64 -# Generates a 64-bit object. This defaults to -mips4 if -mips3 has -# not been specified. -# -LANG: ... -# The language feature option group controls the source language -# interpretation assumed by the compiler. The individual controls -# in this group are as follows: -# ansi-for-init-scope [ = ( ON|OFF ) ] -# Enables or disables the ANSI scoping rules for for-init -# declarations (the scope of the name declared extends to -# the end of the for statement). This enables the behavior -# that is required by the C++ standard. The default value -# is OFF, which is the ARM behavior (the scope of the name -# declared extends to the end of the block enclosing the for -# statement). -# bool [ = ( ON|OFF ) ] -# Enables or disables the predefined bool data type, along -# with the predefined values true and false. Use this option -# only to suppress this type in old code that defines bool -# itself. Because this option changes the mangling of function -# names with bool parameters, all files comprising a program -# should be compiled with consistent options. -# Default is ON. -# The _BOOL feature macro can be used in #ifdefs to do conditional -# compilation based on whether or not this option is enabled. -# std -# Enables use of the standard C++ library and standard- -# conforming iostream library. Specifying this flag also -# triggers other standard-conforming behavior, such as the -# new rules for the scope of for loop initializers. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = cc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -64 -signed -woff 1209,1355,1375,1424,3303 -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -fullwarn -QMAKE_CFLAGS_WARN_OFF = -QMAKE_CFLAGS_RELEASE = -O2 -OPT:Olimit=3000 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -QMAKE_CFLAGS_YACC = -woff 1110,1174,3262 -QMAKE_CFLAGS_THREAD = - -QMAKE_CXX = CC -QMAKE_CXXFLAGS = -64 -signed -LANG:std:libc_in_namespace_std=ON -woff 1209,1355,1375,1424,3303 -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = -QMAKE_LIBDIR_X11 = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = -QMAKE_LIBDIR_OPENGL = - -QMAKE_LINK = CC -QMAKE_LINK_SHLIB = CC -QMAKE_LFLAGS = -64 -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -g -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,-rpath, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -lm -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = CC -ar -o -QMAKE_RANLIB = - -QMAKE_CLEAN = -r $(OBJECTS_DIR)so_locations $(OBJECTS_DIR)ii_files - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/irix-cc-o32 b/python/sip/specs/irix-cc-o32 deleted file mode 100644 index ff6732f4..00000000 --- a/python/sip/specs/irix-cc-o32 +++ /dev/null @@ -1,89 +0,0 @@ -# -# $Id$ -# -# qmake configuration for irix-cc-o32 -# -# From cc(1): -# -o32 or -32 -# Generates an (old) 32-bit object. See the o32(5) man page for -# option descriptions and details. This defaults to -mips2 if -# -mips1 has not been specified. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl - -QMAKE_CC = cc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS = -o32 -signed -woff 3115,3203,3260,3672,3937 -QMAKE_CFLAGS_WARN_ON = -fullwarn -QMAKE_CFLAGS_WARN_OFF = -QMAKE_CFLAGS_RELEASE = -O2 -Olimit 3000 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -QMAKE_CFLAGS_YACC = -woff 3203,3262 -QMAKE_CFLAGS_THREAD = - -QMAKE_CXX = CC -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = -QMAKE_LIBDIR_X11 = -QMAKE_INCDIR_QT = $(QTDIR)/include -QMAKE_LIBDIR_QT = $(QTDIR)/lib -QMAKE_INCDIR_OPENGL = -QMAKE_LIBDIR_OPENGL = - -QMAKE_LINK = CC -QMAKE_LINK_SHLIB = CC -QMAKE_LFLAGS = -o32 -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,-rpath, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_QT = -lqt -QMAKE_LIBS_QT_THREAD = -lqt-mt -QMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -lm -QMAKE_LIBS_OPENGL_QT = -lGL -lXmu -QMAKE_LIBS_THREAD = -lpthread - -QMAKE_MOC = $(QTDIR)/bin/moc -QMAKE_UIC = $(QTDIR)/bin/uic - -QMAKE_AR = ar cq -QMAKE_RANLIB = - -QMAKE_CLEAN = -r $(OBJECTS_DIR)so_locations $(OBJECTS_DIR)ii_files - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p diff --git a/python/sip/specs/irix-g++ b/python/sip/specs/irix-g++ deleted file mode 100644 index 5deaa1c6..00000000 --- a/python/sip/specs/irix-g++ +++ /dev/null @@ -1,84 +0,0 @@ -# -# qmake configuration for irix-g++ -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = -QMAKE_LIBDIR_X11 = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = -QMAKE_LIBDIR_OPENGL = - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -Wl,-LD_LAYOUT:lgot_buffer=1000 -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,-rpath, - -QMAKE_LIBS = -lC -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -# libGLU is using the SGI C++ library internally and this somehow clashes -# with the GNU C++ library (similar name mangling and symbol names?) -# so we add -lC so that the SGI C++ library is used first... -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cq -QMAKE_RANLIB = - -QMAKE_CLEAN = so_locations - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/irix-g++-64 b/python/sip/specs/irix-g++-64 deleted file mode 100644 index ade0ad3f..00000000 --- a/python/sip/specs/irix-g++-64 +++ /dev/null @@ -1,84 +0,0 @@ -# -# qmake configuration for irix-g++-64 -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -mabi=64 -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = -QMAKE_LIBDIR_X11 = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = -QMAKE_LIBDIR_OPENGL = - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -mabi=64 -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -Wl,-LD_LAYOUT:lgot_buffer=1000 -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,-rpath, - -QMAKE_LIBS = -lC -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -# libGLU is using the SGI C++ library internally and this somehow clashes -# with the GNU C++ library (similar name mangling and symbol names?) -# so we add -lC so that the SGI C++ library is used first... -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cq -QMAKE_RANLIB = - -QMAKE_CLEAN = so_locations - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/linux-cxx b/python/sip/specs/linux-cxx deleted file mode 100644 index fd5aae25..00000000 --- a/python/sip/specs/linux-cxx +++ /dev/null @@ -1,78 +0,0 @@ -# -# qmake configuration for linux-cxx -# -# Written for Compaq C++ for GNU/Linux on Alpha -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = ccc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -w -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -QMAKE_CFLAGS_YACC = -Olimit 1000 - -QMAKE_CXX = cxx -QMAKE_CXXFLAGS = -w -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = cxx -QMAKE_LINK_SHLIB = cxx -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_NIS = -lnsl - -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/linux-ecc-64 b/python/sip/specs/linux-ecc-64 deleted file mode 100644 index a6b43277..00000000 --- a/python/sip/specs/linux-ecc-64 +++ /dev/null @@ -1,84 +0,0 @@ -# -# qmake configuration for linux-ecc-64 -# -# Written for Intel C++ 7.1 and 8.0 for Linux -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = ecc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -KPIC -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_THREAD = -D_REENTRANT - -QMAKE_CXX = ecpc -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = ecpc -QMAKE_LINK_SHLIB = ecpc -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Qoption,ld,-soname, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Qoption,ld,-rpath, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_NIS = -lnsl -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_CLEAN = -r $(OBJECTS_DIR)/ti_files - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/linux-g++ b/python/sip/specs/linux-g++ deleted file mode 100644 index 9d94ff32..00000000 --- a/python/sip/specs/linux-g++ +++ /dev/null @@ -1,90 +0,0 @@ -# -# qmake configuration for linux-g++ -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release incremental link_prl -QT += core gui -QMAKE_INCREMENTAL_STYLE = sublib - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_YACCFLAGS_MANGLE = -p $base -b $base -QMAKE_YACC_HEADER = $base.tab.h -QMAKE_YACC_SOURCE = $base.tab.c -QMAKE_CFLAGS = -pipe -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -D_REENTRANT -QMAKE_CFLAGS_HIDESYMS = -fvisibility=hidden - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD -QMAKE_CXXFLAGS_HIDESYMS = $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,-rpath, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_NIS = -lnsl -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_COPY_FILE = $(COPY) -QMAKE_COPY_DIR = $(COPY) -r -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_STRIP = strip -QMAKE_STRIPFLAGS_LIB += --strip-unneeded -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/linux-g++-32 b/python/sip/specs/linux-g++-32 deleted file mode 100644 index c0b7b79b..00000000 --- a/python/sip/specs/linux-g++-32 +++ /dev/null @@ -1,90 +0,0 @@ -# -# qmake configuration for linux-g++ -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release incremental link_prl -QT += core gui -QMAKE_INCREMENTAL_STYLE = sublib - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_YACCFLAGS_MANGLE = -p $base -b $base -QMAKE_YACC_HEADER = $base.tab.h -QMAKE_YACC_SOURCE = $base.tab.c -QMAKE_CFLAGS = -m32 -pipe -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -D_REENTRANT -QMAKE_CFLAGS_HIDESYMS = -fvisibility=hidden - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD -QMAKE_CXXFLAGS_HIDESYMS = $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -m32 -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,-rpath, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_NIS = -lnsl -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_COPY_FILE = $(COPY) -QMAKE_COPY_DIR = $(COPY) -r -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_STRIP = strip -QMAKE_STRIPFLAGS_LIB += --strip-unneeded -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/linux-g++-64 b/python/sip/specs/linux-g++-64 deleted file mode 100644 index 7bdd3b14..00000000 --- a/python/sip/specs/linux-g++-64 +++ /dev/null @@ -1,93 +0,0 @@ -# -# qmake configuration for linux-g++ -# -# Written for GNU/Linux platforms that have both lib and lib64 directories, -# like the AMD Opteron. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release incremental link_prl -QT += core gui -QMAKE_INCREMENTAL_STYLE = sublib - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_YACCFLAGS_MANGLE = -p $base -b $base -QMAKE_YACC_HEADER = $base.tab.h -QMAKE_YACC_SOURCE = $base.tab.c -QMAKE_CFLAGS = -m64 -pipe -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -D_REENTRANT -QMAKE_CFLAGS_HIDESYMS = -fvisibility=hidden - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD -QMAKE_CXXFLAGS_HIDESYMS = $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib64 -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib64 - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -m64 -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,-rpath, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_NIS = -lnsl -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_COPY_FILE = $(COPY) -QMAKE_COPY_DIR = $(COPY) -r -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_STRIP = strip -QMAKE_STRIPFLAGS_LIB += --strip-unneeded -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/linux-icc b/python/sip/specs/linux-icc deleted file mode 100644 index a14034c2..00000000 --- a/python/sip/specs/linux-icc +++ /dev/null @@ -1,107 +0,0 @@ -# -# qmake configuration for linux-icc -# -# Written for Intel C++ 5.0.1, 6.0.1, 7.0 and 8.0 for GNU/Linux -# -# Note: Some of the remarks from the Intel compiler are disabled (even -# with 'warn_on' specified): -# -# remark #171: invalid type conversion: "int" to "void *" -# remark #193: zero used for undefined preprocessing identifier -# remark #279: controlling expression is constant -# remark #304: access control not specified ("public" by default) -# remark #310: old-style parameter list (anachronism) -# remark #383: value copied to temporary, reference to temporary used -# remark #424: extra ";" ignored -# remark #444: destructor for base class "Class" is not virtual -# remark #488: template parameter "T" is not used in declaring the parameter -# types of function template "function" -# remark #810: conversion from "type1" to "type2" may loose significant bits -# remark #858: type qualifier on return type is meaningless -# remark #967: conversion from "type1" to "type2"; sizes do not match -# remark #981: operands are evaluated in unspecified order -# remark #1418: external definition with no prior declaration -# remark #1419: external declaration in primary source file -# warning #1476: field uses tail padding of a base class -# warning #1477: GNU C++ compilers may use bit field padding -# warning #1572: floating-point equality and inequality comparisons are unreliable -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = icc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -wd858,1572 -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -w2 -wd171,193,279,304,310,383,424,444,488,810,967,981,1418,1419,1476,1477 -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -KPIC -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_THREAD = -D_REENTRANT - -QMAKE_CXX = icpc -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = icpc -QMAKE_LINK_SHLIB = icpc -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Qoption,ld,-soname, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Qoption,ld,-rpath, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_NIS = -lnsl -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_CLEAN = -r $(OBJECTS_DIR)/ti_files - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/linux-kcc b/python/sip/specs/linux-kcc deleted file mode 100644 index 6a9cf088..00000000 --- a/python/sip/specs/linux-kcc +++ /dev/null @@ -1,93 +0,0 @@ -# -# qmake configuration for linux-kcc -# -# Written for KAI C++ 4.0f for GNU/Linux -# -# This product has been discontinued, use Intel C++ instead. -# -# From the KAI C++ man page for Linux: -# --[no_]thread_safe -# [Waive or] Request thread-safe handling of system-allocated objects. -# To guarantee thread safety, this option must be used when both -# compiling and linking. Thread-safe C++ is not link-compatible with -# (the default) non-thread-safe C++. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = KCC -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = --c --display_error_number --backend -pipe -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = +K2 -QMAKE_CFLAGS_DEBUG = +K0 -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = --diag_suppress 111,177 -QMAKE_CFLAGS_THREAD = --thread_safe - -QMAKE_CXX = KCC -QMAKE_CXXFLAGS = --display_error_number --diag_suppress 611,1142 --backend -pipe -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = KCC -QMAKE_LINK_SHLIB = KCC -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = --soname$$LITERAL_WHITESPACE -QMAKE_LFLAGS_THREAD = --thread_safe -QMAKE_RPATH = -rpath$$LITERAL_WHITESPACE - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_NIS = -lnsl -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_CLEAN = -r $(OBJECTS_DIR)ti_files - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/linux-kylix b/python/sip/specs/linux-kylix deleted file mode 100644 index 335f839d..00000000 --- a/python/sip/specs/linux-kylix +++ /dev/null @@ -1,82 +0,0 @@ -# -# qmake configuration for linux-kylix -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release incremental link_prl -QT += core gui -QMAKE_INCREMENTAL_STYLE = sublib - -QMAKE_CC = bc++ -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_DEPS = -m -QMAKE_CFLAGS_WARN_ON = -w -QMAKE_CFLAGS_WARN_OFF = -w- -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -v -y -QMAKE_CFLAGS_SHLIB = -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_THREAD = - -QMAKE_CXX = bc++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -P -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = bc++ -QMAKE_LINK_SHLIB = bc++ -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -lv -ly -QMAKE_LFLAGS_SHLIB = -ltD -lTpd -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -lN -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -llibdl -QMAKE_LIBS_X11 = -llibXext -llibX11 -llibm -QMAKE_LIBS_X11SM = -llibSM -llibICE -QMAKE_LIBS_NIS = -llibnsl -QMAKE_LIBS_OPENGL = -llibGLU -llibGL -llibXmu -QMAKE_LIBS_OPENGL_QT = -llibGL -llibXmu -QMAKE_LIBS_THREAD = -llibpthread - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_STRIP = strip -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/linux-lsb b/python/sip/specs/linux-lsb deleted file mode 100644 index 95367161..00000000 --- a/python/sip/specs/linux-lsb +++ /dev/null @@ -1,90 +0,0 @@ -# -# qmake configuration for linux-g++ -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release incremental link_prl -QT += core gui -QMAKE_INCREMENTAL_STYLE = sublib - -QMAKE_CC = lsbcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_YACCFLAGS_MANGLE = -p $base -b $base -QMAKE_YACC_HEADER = $base.tab.h -QMAKE_YACC_SOURCE = $base.tab.c -QMAKE_CFLAGS = -pipe -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -D_REENTRANT -QMAKE_CFLAGS_HIDESYMS = -fvisibility=hidden - -QMAKE_CXX = lsbc++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD -QMAKE_CXXFLAGS_HIDESYMS = $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = lsbc++ -QMAKE_LINK_SHLIB = lsbc++ -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,-rpath, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_NIS = -lnsl -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_COPY_FILE = $(COPY) -QMAKE_COPY_DIR = $(COPY) -r -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_STRIP = strip -QMAKE_STRIPFLAGS_LIB += --strip-unneeded -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/linux-pgcc b/python/sip/specs/linux-pgcc deleted file mode 100644 index fae849dc..00000000 --- a/python/sip/specs/linux-pgcc +++ /dev/null @@ -1,82 +0,0 @@ -# -# qmake configuration for linux-pgcc -# -# Written for the Portland Group compiler 6.0-5 -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = pgcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -fast -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fpic -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_THREAD = -D_REENTRANT - -QMAKE_CXX = pgCC -QMAKE_CXXFLAGS = --display_error_number --diag_suppress815 $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = pgCC -QMAKE_LINK_SHLIB = pgCC -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -fpic -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -R - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_NIS = -lnsl -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/lynxos-g++ b/python/sip/specs/lynxos-g++ deleted file mode 100644 index da2ebe70..00000000 --- a/python/sip/specs/lynxos-g++ +++ /dev/null @@ -1,85 +0,0 @@ -# -# qmake configuration for lynxos-g++ -# -# Written for LynxOS 4.0 -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release incremental link_prl -QT += core gui -QMAKE_INCREMENTAL_STYLE = sublib - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -pipe -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -D_REENTRANT - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/include/X11 -QMAKE_LIBDIR_X11 = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/include/GL -QMAKE_LIBDIR_OPENGL = - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,-rpath, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_NIS = -lnsl -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_STRIP = strip -QMAKE_STRIPFLAGS_LIB += --strip-unneeded -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/macx-g++ b/python/sip/specs/macx-g++ deleted file mode 100644 index d28fda9f..00000000 --- a/python/sip/specs/macx-g++ +++ /dev/null @@ -1,97 +0,0 @@ -# -# qmake configuration for macx-g++ -# -# Mac OS X + command-line compiler -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release app_bundle incremental global_init_link_order lib_version_first plugin_no_soname link_prl -QT += core gui -QMAKE_INCREMENTAL_STYLE = sublibs -QMAKE_COMPILER_DEFINES += __APPLE__ __GNUC__ - -QMAKE_CC = cc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_YACCFLAGS_MANGLE = -p $base -b $base -QMAKE_YACC_HEADER = $base.tab.h -QMAKE_YACC_SOURCE = $base.tab.c -QMAKE_RESOURCE = /Developer/Tools/Rez -QMAKE_CFLAGS = -pipe -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -Os -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_EXTENSION_SHLIB = dylib -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_HIDESYMS = -fvisibility=hidden -QMAKE_CFLAGS_PPC = -arch ppc -QMAKE_CFLAGS_X86 = -arch i386 - -QMAKE_CXX = c++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_HIDESYMS = $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden -QMAKE_CXXFLAGS_PPC = $$QMAKE_CFLAGS_PPC -QMAKE_CXXFLAGS_X86 = $$QMAKE_CFLAGS_X86 - -QMAKE_LIBDIR = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /System/Library/Frameworks/OpenGL.framework/Headers \ - /System/Library/Frameworks/AGL.framework/Headers/ - -QMAKE_LINK = $$QMAKE_CXX -QMAKE_FIX_RPATH = install_name_tool -id -QMAKE_LINK_SHLIB = $$QMAKE_CXX -QMAKE_LFLAGS = -headerpad_max_install_names -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_APP = -QMAKE_LFLAGS_SHLIB = -single_module -dynamiclib -QMAKE_LFLAGS_INCREMENTAL = -undefined suppress -flat_namespace -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -install_name$${LITERAL_WHITESPACE} -QMAKE_LFLAGS_THREAD = -QMAKE_LFLAGS_PPC = -arch ppc -QMAKE_LFLAGS_X86 = -arch i386 - -QMAKE_LFLAGS_VERSION = -current_version$${LITERAL_WHITESPACE} -QMAKE_LFLAGS_COMPAT_VERSION = -compatibility_version$${LITERAL_WHITESPACE} - -QMAKE_RPATH = - -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_OPENGL = -framework OpenGL -framework AGL -QMAKE_LIBS_OPENGL_QT = $$QMAKE_LIBS_OPENGL -QMAKE_LIBS_THREAD = - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cq -QMAKE_RANLIB = ranlib -s - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_COPY_FILE = $$QMAKE_COPY -QMAKE_COPY_DIR = $$QMAKE_COPY -R -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/macx-mwerks b/python/sip/specs/macx-mwerks deleted file mode 100644 index 76c425a7..00000000 --- a/python/sip/specs/macx-mwerks +++ /dev/null @@ -1,25 +0,0 @@ -# -# qmake configuration for macx-mwerks -# -# Mac OS X + Metrowerks compiler -# - -MAKEFILE_GENERATOR = METROWERKS -TEMPLATE = app -QT += core gui -CONFIG += qt release warn_off separate_volume link_prl - -DEFINES += QT_NO_STL __MACOSX__ __CF_USE_FRAMEWORK_INCLUDES__ - -CODEWARRIOR_LINKER = Mach-O PPC Linker -QMAKE_EXTENSION_SHLIB = dylib -QMAKE_VOLUMENAME = OS X Volume -FRAMEWORKPATH = {System}/Library/Frameworks/ -QMAKE_CRT_OBJECTS = crt1.o -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBS = -framework System -QMAKE_INCDIR_OPENGL = /System/Library/Frameworks/OpenGL.framework/Headers \ - /System/Library/Frameworks/AGL.framework/Headers/ -QMAKE_LIBS_OPENGL = -framework OpenGL -framework AGL -QMAKE_LIBS_OPENGL_QT = $$QMAKE_LIBS_OPENGL -load(qt_config) diff --git a/python/sip/specs/macx-pbuilder b/python/sip/specs/macx-pbuilder deleted file mode 100644 index 1e806d15..00000000 --- a/python/sip/specs/macx-pbuilder +++ /dev/null @@ -1,83 +0,0 @@ -# -# qmake configuration for macx-pbuilder -# -# Mac OS X + Project Builder -# - -MAKEFILE_GENERATOR = PROJECTBUILDER -TEMPLATE = app -CONFIG += qt warn_on release lib_version_first incremental plugin_no_soname link_prl app_bundle -QT += core gui -QMAKE_COMPILER_DEFINES += __APPLE__ __GNUC__ - -QMAKE_CC = -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_RESOURCE = /Developer/Tools/Rez -QMAKE_CFLAGS = -pipe -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -QMAKE_CFLAGS_RELEASE = -Os -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_EXTENSION_SHLIB = dylib -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses - -QMAKE_CXX = -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC - -QMAKE_INCDIR = /usr/local/include \ - /System/Library/Frameworks/CarbonCore.framework/Headers -QMAKE_LIBDIR = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /System/Library/Frameworks/OpenGL.framework/Headers \ - /System/Library/Frameworks/AGL.framework/Headers/ - -QMAKE_LINK = c++ -QMAKE_LINK_SHLIB = c++ -QMAKE_LFLAGS = -headerpad_max_install_names -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_APP = -QMAKE_LFLAGS_SHLIB = -single_module -dynamiclib -QMAKE_LFLAGS_INCREMENTAL = -undefined suppress -flat_namespace -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -#QMAKE_LFLAGS_SONAME = -install_name$${LITERAL_WHITESPACE}@executable_path/../Frameworks/ -QMAKE_LFLAGS_SONAME = -install_name$${LITERAL_WHITESPACE} -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = - -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_THREAD = -QMAKE_LIBS_OPENGL = -framework OpenGL -framework AGL -QMAKE_LIBS_OPENGL_QT = $$QMAKE_LIBS_OPENGL - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cq -QMAKE_RANLIB = ranlib -s - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_COPY_FILE = $$QMAKE_COPY -QMAKE_COPY_DIR = $$QMAKE_COPY -R -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/macx-xcode b/python/sip/specs/macx-xcode deleted file mode 100644 index d2a5789a..00000000 --- a/python/sip/specs/macx-xcode +++ /dev/null @@ -1,83 +0,0 @@ -# -# qmake configuration for macx-xcode -# -# Mac OS X + XCode -# - -MAKEFILE_GENERATOR = XCODE -TEMPLATE = app -CONFIG += qt warn_on release lib_version_first incremental plugin_no_soname link_prl app_bundle -QT += core gui -QMAKE_COMPILER_DEFINES += __APPLE__ __GNUC__ - -QMAKE_CC = -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_RESOURCE = /Developer/Tools/Rez -QMAKE_CFLAGS = -pipe -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -QMAKE_CFLAGS_RELEASE = -Os -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_EXTENSION_SHLIB = dylib -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses - -QMAKE_CXX = -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC - -QMAKE_INCDIR = /usr/local/include \ - /System/Library/Frameworks/CarbonCore.framework/Headers -QMAKE_LIBDIR = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /System/Library/Frameworks/OpenGL.framework/Headers \ - /System/Library/Frameworks/AGL.framework/Headers/ - -QMAKE_LINK = c++ -QMAKE_LINK_SHLIB = c++ -QMAKE_LFLAGS = -headerpad_max_install_names -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_APP = -QMAKE_LFLAGS_SHLIB = -single_module -dynamiclib -QMAKE_LFLAGS_INCREMENTAL = -undefined suppress -flat_namespace -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -#QMAKE_LFLAGS_SONAME = -install_name$${LITERAL_WHITESPACE}@executable_path/../Frameworks/ -QMAKE_LFLAGS_SONAME = -install_name$${LITERAL_WHITESPACE} -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = - -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_THREAD = -QMAKE_LIBS_OPENGL = -framework OpenGL -framework AGL -QMAKE_LIBS_OPENGL_QT = $$QMAKE_LIBS_OPENGL - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cq -QMAKE_RANLIB = ranlib -s - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_COPY_FILE = $$QMAKE_COPY -QMAKE_COPY_DIR = $$QMAKE_COPY -R -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/macx-xlc b/python/sip/specs/macx-xlc deleted file mode 100644 index 262764b2..00000000 --- a/python/sip/specs/macx-xlc +++ /dev/null @@ -1,94 +0,0 @@ -# -# qmake configuration for macx-xlc -# -# Mac OS X + IBM's XL C/C++ Advanced Edition for Mac OS X -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release app_bundle global_init_link_order lib_version_first plugin_no_soname link_prl -QT += core gui - -QMAKE_CC = xlc -QMAKE_CC_THREAD = xlc_r -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -qstrict -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -QMAKE_CFLAGS_RELEASE = -O3 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_EXTENSION_SHLIB = dylib -QMAKE_CFLAGS_SHLIB = -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_THREAD = -qthreaded -QMAKE_EXTENSION_SHLIB = dylib -QMAKE_COMPILER_DEFINES += __APPLE__ __xlc__ - -QMAKE_CXX = xlc++ -QMAKE_CXX_THREAD = xlc++_r -QMAKE_CXXFLAGS = -+ $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = -QMAKE_LIBDIR_X11 = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /System/Library/Frameworks/OpenGL.framework/Headers \ - /System/Library/Frameworks/AGL.framework/Headers/ -QMAKE_LIBDIR_OPENGL = - -QMAKE_LINK = xlc++ -QMAKE_LINK_THREAD = xlc++_r -QMAKE_LINK_SHLIB = ld -#QMAKE_LINK_SHLIB_CMD = makeC++SharedLib -p 0 \ -# -o $(TARGETD) \ -# $(LFLAGS) $(OBJECTS) $(OBJMOC) $(LIBS); \ -# $(AR) lib$(QMAKE_TARGET).a $(TARGETD); \ -# $(RANLIB) lib$(QMAKE_TARGET).a; \ -# mv lib$(QMAKE_TARGET).a $(DESTDIR) -QMAKE_LFLAGS = -headerpad_max_install_names -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -prebind -qmkshrobj -QMAKE_LFLAGS_PLUGIN = -bundle -QMAKE_LFLAGS_SONAME = -#QMAKE_LFLAGS_THREAD = -L/usr/lib/threads -#QMAKE_AIX_SHLIB = 1 -#QMAKE_LFLAGS_VERSION = -current_version$${LITERAL_WHITESPACE} -#QMAKE_LFLAGS_COMPAT_VERSION = -compatibility_version$${LITERAL_WHITESPACE} - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_OPENGL = -framework OpenGL -framework AGL -QMAKE_LIBS_OPENGL_QT = $$QMAKE_LIBS_OPENGL -#QMAKE_LIBS_THREAD = -lpthreads - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cq -QMAKE_RANLIB = ranlib -s - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_COPY_FILE = $$QMAKE_COPY -QMAKE_COPY_DIR = $$QMAKE_COPY -R -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/netbsd-g++ b/python/sip/specs/netbsd-g++ deleted file mode 100644 index 0b112b10..00000000 --- a/python/sip/specs/netbsd-g++ +++ /dev/null @@ -1,80 +0,0 @@ -# -# qmake configuration for netbsd-g++ -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -pipe -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -pthread - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = /usr/local/include -QMAKE_LIBDIR = /usr/local/lib -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LINK_SHLIB_CMD = $$QMAKE_LINK_SHLIB $$QMAKE_LFLAGS_SHLIB $(LFLAGS) $$QMAKE_LFLAGS -o $(TARGETD) $(OBJECTS) $(OBJMOC) $(LIBS) -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -pthread -QMAKE_RPATH = -Wl,-rpath, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = ranlib - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/openbsd-g++ b/python/sip/specs/openbsd-g++ deleted file mode 100644 index 86caacdb..00000000 --- a/python/sip/specs/openbsd-g++ +++ /dev/null @@ -1,81 +0,0 @@ -# -# qmake configuration for openbsd-g++ -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -pipe -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -pthread - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = /usr/local/include -QMAKE_LIBDIR = /usr/local/lib -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LINK_SHLIB_CMD = $$QMAKE_LINK_SHLIB $(LFLAGS) \ - $$QMAKE_CFLAGS_SHLIB $$QMAKE_LFLAGS \ - -o $(TARGETD) $(OBJECTS) $(OBJMOC) $(LIBS) -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -pthread - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar q -QMAKE_RANLIB = ranlib - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/qnx-g++ b/python/sip/specs/qnx-g++ deleted file mode 100644 index c2411d4d..00000000 --- a/python/sip/specs/qnx-g++ +++ /dev/null @@ -1,81 +0,0 @@ -# -# qmake configuration for qnx-g++ -# -# Written for QNX RTOS v6 with X11 -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -pipe -fno-inline -fno-pack-struct -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -fno-inline -fno-pack-struct -QMAKE_CFLAGS_THREAD = -D_REENTRANT - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /usr/X11R6/include -QMAKE_LIBDIR_X11 = /usr/X11R6/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/X11R6/include -QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,-rpath, - -QMAKE_LIBS = -lunix -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/reliant-cds b/python/sip/specs/reliant-cds deleted file mode 100644 index 998bf5f4..00000000 --- a/python/sip/specs/reliant-cds +++ /dev/null @@ -1,85 +0,0 @@ -# -# $Id$ -# -# qmake configuration for reliant-cds -# -# Written for Reliant UNIX 5.45 using the CDS++ C/C++ compiler V2.0C. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl - -QMAKE_CC = cc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -v -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -KPIC -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_THREAD = -K pthread - -QMAKE_CXX = CC -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /opt/X/include/X11 -QMAKE_LIBDIR_X11 = /opt/X/lib -QMAKE_INCDIR_QT = $(QTDIR)/include -QMAKE_LIBDIR_QT = $(QTDIR)/lib -QMAKE_INCDIR_OPENGL = -QMAKE_LIBDIR_OPENGL = - -QMAKE_LINK = CC -QMAKE_LINK_SHLIB = CC -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -G -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE -QMAKE_LFLAGS_THREAD = -K pthread -QMAKE_RPATH = -Wl,-Brpath= - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_QT = -lqt -QMAKE_LIBS_QT_THREAD = -lqt-mt -QMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -QMAKE_LIBS_OPENGL_QT = -lGL -lXmu -QMAKE_LIBS_THREAD = - -QMAKE_MOC = $(QTDIR)/bin/moc -QMAKE_UIC = $(QTDIR)/bin/uic - -QMAKE_AR = CC -xar -o -QMAKE_RANLIB = - -QMAKE_CLEAN = -r $(OBJECTS_DIR)/Templates.DB - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p diff --git a/python/sip/specs/reliant-cds-64 b/python/sip/specs/reliant-cds-64 deleted file mode 100644 index 7374b730..00000000 --- a/python/sip/specs/reliant-cds-64 +++ /dev/null @@ -1,85 +0,0 @@ -# -# $Id$ -# -# qmake configuration for reliant-cds-64 -# -# Written for Reliant UNIX 5.45 using the CDS++ C/C++ compiler V2.0C. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl - -QMAKE_CC = cc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -Klp64 -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -v -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -KPIC -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_THREAD = -K pthread - -QMAKE_CXX = CC -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = /opt/X/include/X11 -QMAKE_LIBDIR_X11 = /opt/X/lib -QMAKE_INCDIR_QT = $(QTDIR)/include -QMAKE_LIBDIR_QT = $(QTDIR)/lib -QMAKE_INCDIR_OPENGL = -QMAKE_LIBDIR_OPENGL = - -QMAKE_LINK = CC -QMAKE_LINK_SHLIB = CC -QMAKE_LFLAGS = -Klp64 -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -G -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE -QMAKE_LFLAGS_THREAD = -K pthread -QMAKE_RPATH = -Wl,-Brpath= - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_QT = -lqt -QMAKE_LIBS_QT_THREAD = -lqt-mt -QMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -QMAKE_LIBS_OPENGL_QT = -lGL -lXmu -QMAKE_LIBS_THREAD = - -QMAKE_MOC = $(QTDIR)/bin/moc -QMAKE_UIC = $(QTDIR)/bin/uic - -QMAKE_AR = CC -xar -o -QMAKE_RANLIB = - -QMAKE_CLEAN = -r $(OBJECTS_DIR)/Templates.DB - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p diff --git a/python/sip/specs/sco-cc b/python/sip/specs/sco-cc deleted file mode 100644 index 8a4a3924..00000000 --- a/python/sip/specs/sco-cc +++ /dev/null @@ -1,78 +0,0 @@ -# -# qmake configuration for sco-cc -# -# Written for SCO OpenServer with UDK -# -# -Wf,--diag_suppress,838 -# turns off warning about missing return types in X headers -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -QT += core gui -CONFIG += qt warn_on release link_prl - -QMAKE_CC = cc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -KPIC -QMAKE_CFLAGS_YACC = -Wf,--diag_suppress,111 -Wf,--diag_suppress,177 - -QMAKE_CXX = CC -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -Wf,--display_error_number -Wf,--diag_suppress,838 -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -Tused -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = -QMAKE_LIBDIR_X11 = /usr/X/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = -QMAKE_LIBDIR_OPENGL = - -QMAKE_LINK = CC -QMAKE_LINK_SHLIB = CC -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -G -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl -lm -QMAKE_LIBS_X11SM = -lSM -lICE - -QMAKE_LIBS_OPENGL = -lGLU -lGL -lXt -QMAKE_LIBS_OPENGL_QT = -lGL - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cq -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/sco-g++ b/python/sip/specs/sco-g++ deleted file mode 100644 index 9a488e83..00000000 --- a/python/sip/specs/sco-g++ +++ /dev/null @@ -1,77 +0,0 @@ -# -# qmake configuration for sco-g++ -# -# Written for SCO OpenServer 5.0.6 with Skunkware's compiler -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = -QMAKE_LIBDIR_X11 = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = -QMAKE_LIBDIR_OPENGL = - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -G -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE -QMAKE_RPATH = - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lsocket -lm - -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/solaris-cc b/python/sip/specs/solaris-cc deleted file mode 100644 index 3e1f4285..00000000 --- a/python/sip/specs/solaris-cc +++ /dev/null @@ -1,85 +0,0 @@ -# -# qmake configuration for solaris-cc -# -# Written for Forte Developer 6 and Sun ONE Studio 7 and 8 -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = cc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_DEPS = -xM -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -KPIC -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_THREAD = -mt - -QMAKE_CXX = CC -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = -O2 -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = /usr/sfw/include -QMAKE_LIBDIR = /usr/sfw/lib -QMAKE_INCDIR_X11 = /usr/openwin/include -QMAKE_LIBDIR_X11 = /usr/openwin/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/openwin/include -QMAKE_LIBDIR_OPENGL = /usr/openwin/lib - -QMAKE_LINK = CC -QMAKE_LINK_SHLIB = CC -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -G -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE -QMAKE_LFLAGS_THREAD = -mt -QMAKE_RPATH = -R - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_NIS = -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread -lrt -QMAKE_LIBS_NETWORK = -lresolv -lsocket -lxnet - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = CC -xar -o -QMAKE_RANLIB = - -QMAKE_CLEAN = -r $(OBJECTS_DIR)Templates.DB $(OBJECTS_DIR)SunWS_cache - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/solaris-cc-64 b/python/sip/specs/solaris-cc-64 deleted file mode 100644 index cd1af176..00000000 --- a/python/sip/specs/solaris-cc-64 +++ /dev/null @@ -1,102 +0,0 @@ -# -# qmake configuration for solaris-cc-64 -# -# Written for Forte Developer 6 and Sun ONE Studio 7 and 8 -# -# From the standards(5) manual page: -# The XNS4 specification is safe for use only in ILP32 (32-bit) -# environments and should not be used for LP64 (64-bit) -# application environments. Use XNS5, which has LP64-clean -# interfaces that are portable across ILP32 and LP64 environments. -# [...] -# For platforms supporting the LP64 (64-bit) programming environment -# where the SC5.0 Compilers have been installed, SUSv2-conforming LP64 -# applications using XNS5 library calls should be built with command -# lines of the form: -# c89 $(getconf XBS5_LP64_OFF64_CFLAGS) -D_XOPEN_SOURCE=500 \ -# $(getconf XBS5_LP64_OFF64_LDFLAGS) foo.c -o foo \ -# $(getconf XBS5_LP64_OFF64_LIBS) -lxnet -# So it appears that _XOPEN_SOURCE=500 should be defined when building -# 64-bit applications (on Solaris 7 and better). But then __EXTENSIONS__ -# should be defined as well to recover all the default system interface. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = cc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -xarch=generic64 -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ -QMAKE_CFLAGS_DEPS = -xM -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -KPIC -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_THREAD = -mt - -QMAKE_CXX = CC -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = -O -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = /usr/sfw/include -QMAKE_LIBDIR = /usr/sfw/lib/64 -QMAKE_INCDIR_X11 = /usr/openwin/include -QMAKE_LIBDIR_X11 = /usr/openwin/lib/64 -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/openwin/include -QMAKE_LIBDIR_OPENGL = /usr/openwin/lib/64 - -QMAKE_LINK = CC -QMAKE_LINK_SHLIB = CC -QMAKE_LFLAGS = -xarch=generic64 -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -G -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE -QMAKE_LFLAGS_THREAD = -mt -QMAKE_RPATH = -R - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_NIS = -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread -lrt -QMAKE_LIBS_NETWORK = -lresolv -lsocket -lxnet - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = CC -xar -o -QMAKE_RANLIB = - -QMAKE_CLEAN = -r $(OBJECTS_DIR)Templates.DB $(OBJECTS_DIR)SunWS_cache - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/solaris-g++ b/python/sip/specs/solaris-g++ deleted file mode 100644 index 09d141d1..00000000 --- a/python/sip/specs/solaris-g++ +++ /dev/null @@ -1,87 +0,0 @@ -# -# qmake configuration for solaris-g++ -# -# The X11 header files used to be broken on Solaris until patches were -# released in early 2001 for Solaris 2.6, 7, and 8. On Solaris 2.5.1 -# or non-patched systems -fpermissive works around the incompatibility -# between GCC 2.95 or better and Solaris - but we still get warnings -# because we don't use -isystem. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -D_REENTRANT - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = /usr/sfw/include -QMAKE_LIBDIR = /usr/sfw/lib -QMAKE_INCDIR_X11 = /usr/openwin/include -QMAKE_LIBDIR_X11 = /usr/openwin/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/openwin/include -QMAKE_LIBDIR_OPENGL = /usr/openwin/lib - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -g -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,-R, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_NIS = -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread -lrt -QMAKE_LIBS_NETWORK = -lresolv -lsocket -lxnet - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cq -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/solaris-g++-64 b/python/sip/specs/solaris-g++-64 deleted file mode 100644 index c85882a2..00000000 --- a/python/sip/specs/solaris-g++-64 +++ /dev/null @@ -1,104 +0,0 @@ -# -# qmake configuration for solaris-g++64 -# -# The X11 header files used to be broken on Solaris until patches were -# released in early 2001 for Solaris 2.6, 7, and 8. On Solaris 2.5.1 -# or non-patched systems -fpermissive works around the incompatibility -# between GCC 2.95 or better and Solaris - but we still get warnings -# because we don't use -isystem. -# -# From the standards(5) manual page: -# The XNS4 specification is safe for use only in ILP32 (32-bit) -# environments and should not be used for LP64 (64-bit) -# application environments. Use XNS5, which has LP64-clean -# interfaces that are portable across ILP32 and LP64 environments. -# [...] -# For platforms supporting the LP64 (64-bit) programming environment -# where the SC5.0 Compilers have been installed, SUSv2-conforming LP64 -# applications using XNS5 library calls should be built with command -# lines of the form: -# c89 $(getconf XBS5_LP64_OFF64_CFLAGS) -D_XOPEN_SOURCE=500 \ -# $(getconf XBS5_LP64_OFF64_LDFLAGS) foo.c -o foo \ -# $(getconf XBS5_LP64_OFF64_LIBS) -lxnet -# So it appears that _XOPEN_SOURCE=500 should be defined when building -# 64-bit applications (on Solaris 7 and better). But then __EXTENSIONS__ -# should be defined as well to recover all the default system interface. -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -m64 -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -D_REENTRANT - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = /usr/sfw/include -QMAKE_LIBDIR = /usr/sfw/lib/64 -QMAKE_INCDIR_X11 = /usr/openwin/include -QMAKE_LIBDIR_X11 = /usr/openwin/lib/64 -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = /usr/openwin/include -QMAKE_LIBDIR_OPENGL = /usr/openwin/lib/64 - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -m64 -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -g -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,-R, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_NIS = -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread -lrt -QMAKE_LIBS_NETWORK = -lresolv -lsocket -lxnet - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cq -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/tru64-cxx b/python/sip/specs/tru64-cxx deleted file mode 100644 index b7154be9..00000000 --- a/python/sip/specs/tru64-cxx +++ /dev/null @@ -1,79 +0,0 @@ -# -# qmake configuration for tru64-cxx -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl plugin_no_soname -QT += core gui - -QMAKE_CC = cc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -QMAKE_CFLAGS_YACC = -Olimit 1000 -QMAKE_CFLAGS_THREAD = -pthread - -QMAKE_CXX = cxx -QMAKE_CXXFLAGS = -x cxx -model ansi $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = -QMAKE_LIBDIR_X11 = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = -QMAKE_LIBDIR_OPENGL = - -QMAKE_LINK = cxx -QMAKE_LINK_SHLIB = cxx -QMAKE_LFLAGS = -model ansi -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_THREAD = -pthread -QMAKE_LFLAGS_SONAME = -soname$$LITERAL_WHITESPACE -QMAKE_RPATH = -rpath$$LITERAL_WHITESPACE - -QMAKE_LIBS = -lm -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_X11 = -lXext -lX11 -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lrt - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/tru64-g++ b/python/sip/specs/tru64-g++ deleted file mode 100644 index eb3a7581..00000000 --- a/python/sip/specs/tru64-g++ +++ /dev/null @@ -1,79 +0,0 @@ -# -# qmake configuration for tru64-g++ -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl plugin_no_soname -QT += core gui - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -D_REENTRANT - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = -QMAKE_LIBDIR_X11 = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = -QMAKE_LIBDIR_OPENGL = - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_THREAD = -QMAKE_LFLAGS_SONAME = -Wl,-soname, -QMAKE_RPATH = -Wl,-rpath, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -QMAKE_LIBS_X11 = -lXext -lX11 -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lpthread -lexc -lrt - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cqs -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/unixware-cc b/python/sip/specs/unixware-cc deleted file mode 100644 index 61b0d7f6..00000000 --- a/python/sip/specs/unixware-cc +++ /dev/null @@ -1,84 +0,0 @@ -# -# qmake configuration for unixware-cc -# -# Written for UnixWare 7 with UDK or OUDK -# -# -Wf,--diag_suppress,838 -# turns off warning about missing return types in X headers -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = cc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_WARN_ON = -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -KPIC -QMAKE_CFLAGS_YACC = -Wf,--diag_suppress,111 -Wf,--diag_suppress,177 -QMAKE_CFLAGS_THREAD = -Kthread - -QMAKE_CXX = CC -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -Wf,--display_error_number -Wf,--diag_suppress,838 -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -Tused -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = -QMAKE_LIBDIR_X11 = /usr/X/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = -QMAKE_LIBDIR_OPENGL = - -QMAKE_LINK = CC -QMAKE_LINK_SHLIB = CC -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -G -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE -QMAKE_LFLAGS_THREAD = -Kthread -QMAKE_RPATH = -R - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl -lm -QMAKE_LIBS_X11SM = -lSM -lICE - -QMAKE_LIBS_OPENGL = -lGLU -lGL -lXt -QMAKE_LIBS_OPENGL_QT = -lGL - -QMAKE_LIBS_THREAD = - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cq -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/unixware-g++ b/python/sip/specs/unixware-g++ deleted file mode 100644 index cd7735ee..00000000 --- a/python/sip/specs/unixware-g++ +++ /dev/null @@ -1,81 +0,0 @@ -# -# qmake configuration for unixware-g++ -# -# Written for UnixWare 7 with OSTK -# - -MAKEFILE_GENERATOR = UNIX -TEMPLATE = app -CONFIG += qt warn_on release link_prl -QT += core gui - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = yacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -W -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_SHLIB = -fPIC -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD - -QMAKE_INCDIR = -QMAKE_LIBDIR = -QMAKE_INCDIR_X11 = -QMAKE_LIBDIR_X11 = /usr/X/lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] -QMAKE_INCDIR_OPENGL = -QMAKE_LIBDIR_OPENGL = - -QMAKE_LINK = g++ -QMAKE_LINK_SHLIB = g++ -QMAKE_LFLAGS = -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_SHLIB = -shared -QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB -QMAKE_LFLAGS_SONAME = -QMAKE_LFLAGS_THREAD = -QMAKE_RPATH = -Wl,-R, - -QMAKE_LIBS = -QMAKE_LIBS_DYNLOAD = -ldl -QMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl -lm -QMAKE_LIBS_X11SM = -lSM -lICE -QMAKE_LIBS_OPENGL = -lGLU -lGL -lXt -QMAKE_LIBS_OPENGL_QT = -lGL -QMAKE_LIBS_THREAD = -lthread - -QMAKE_MOC = $$[QT_INSTALL_BINS]/moc -QMAKE_UIC = $$[QT_INSTALL_BINS]/uic - -QMAKE_AR = ar cq -QMAKE_RANLIB = - -QMAKE_TAR = tar -cf -QMAKE_GZIP = gzip -9f - -QMAKE_COPY = cp -f -QMAKE_MOVE = mv -f -QMAKE_DEL_FILE = rm -f -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -load(qt_config) diff --git a/python/sip/specs/win32-borland b/python/sip/specs/win32-borland deleted file mode 100644 index 63bf07ae..00000000 --- a/python/sip/specs/win32-borland +++ /dev/null @@ -1,90 +0,0 @@ -# -# qmake configuration for win32-borland -# -# Written for Borland C++ -# - -MAKEFILE_GENERATOR = BMAKE -TEMPLATE = app -CONFIG += qt warn_on release link_prl copy_dir_files no_empty_targets cd_change_global debug_and_release debug_and_release_target -QT += core gui -DEFINES += UNICODE -QMAKE_NOFORCE = 1 -QMAKE_COMPILER_DEFINES += __BORLANDC__ WIN32 - -QMAKE_CC = bcc32 -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = byacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -tWR -tWM -QMAKE_CFLAGS_WARN_ON = -w -w-hid -QMAKE_CFLAGS_WARN_OFF = -w- -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -v -QMAKE_CFLAGS_YACC = -QMAKE_CFLAGS_CONSOLE = -tWC - -QMAKE_CXX = $$QMAKE_CC -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_CONSOLE = $$QMAKE_CFLAGS_CONSOLE -QMAKE_CXXFLAGS_STL_ON = -QMAKE_CXXFLAGS_STL_OFF = -QMAKE_CXXFLAGS_RTTI_ON = -QMAKE_CXXFLAGS_RTTI_OFF = -RT- -QMAKE_CXXFLAGS_EXCEPTIONS_ON = -QMAKE_CXXFLAGS_EXCEPTIONS_OFF = -x- - -QMAKE_INCDIR = -QMAKE_LIBDIR = $(BCB)\lib -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] - -QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o$obj $src -QMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< -QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$obj $src -QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< - -QMAKE_LINK = ilink32 -QMAKE_LFLAGS = -c -x -Gn -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = -v -QMAKE_LFLAGS_CONSOLE = -ap -Tpe c0x32.obj -QMAKE_LFLAGS_WINDOWS = -aa -Tpe c0w32.obj -QMAKE_LFLAGS_DLL= -Gi -aa -Tpd c0d32.obj - -QMAKE_LIBS = import32.lib cw32mti.lib -QMAKE_LIBS_CORE = -QMAKE_LIBS_GUI = -QMAKE_LIBS_NETWORK = ws2_32.lib -QMAKE_LIBS_OPENGL = -QMAKE_LIBS_COMPAT = -QMAKE_LIBS_QT_ENTRY = -lqtmain - -#QMAKE_LIBS_OPENGL = -#QMAKE_LFLAGS_OPENGL = /dopengl32.dll - -QMAKE_MOC = $$[QT_INSTALL_BINS]\moc.exe -QMAKE_UIC = $$[QT_INSTALL_BINS]\uic.exe -QMAKE_IDC = $$[QT_INSTALL_BINS]\idc.exe - -QMAKE_IDL = midl -QMAKE_LIB = tlib /C /P256 -QMAKE_RC = brcc32 -dQ_CC_BOR - -QMAKE_ZIP = zip -r -9 - -QMAKE_COPY = copy /y -QMAKE_COPY_DIR = xcopy /s /q /y /i -QMAKE_MOVE = move -QMAKE_DEL_FILE = del -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = if not exist -QMAKE_MKDIR = mkdir - -load(qt_config) diff --git a/python/sip/specs/win32-g++ b/python/sip/specs/win32-g++ deleted file mode 100644 index 0c45103d..00000000 --- a/python/sip/specs/win32-g++ +++ /dev/null @@ -1,102 +0,0 @@ -# -# qmake configuration for win32-g++ -# -# Written for MinGW -# - -MAKEFILE_GENERATOR = MINGW -TEMPLATE = app -CONFIG += qt warn_on release link_prl copy_dir_files debug_and_release debug_and_release_target precompile_header -QT += core gui -DEFINES += UNICODE QT_LARGEFILE_SUPPORT -QMAKE_COMPILER_DEFINES += __GNUC__ WIN32 - -QMAKE_EXT_OBJ = .o - -QMAKE_CC = gcc -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = byacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -QMAKE_CFLAGS_DEPS = -M -QMAKE_CFLAGS_WARN_ON = -Wall -QMAKE_CFLAGS_WARN_OFF = -w -QMAKE_CFLAGS_RELEASE = -O2 -QMAKE_CFLAGS_DEBUG = -g -QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -QMAKE_CFLAGS_THREAD = -mthreads - -QMAKE_CXX = g++ -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD -QMAKE_CXXFLAGS_RTTI_ON = -frtti -QMAKE_CXXFLAGS_RTTI_OFF = -fno-rtti -QMAKE_CXXFLAGS_EXCEPTIONS_ON = -fexceptions -QMAKE_CXXFLAGS_EXCEPTIONS_OFF = -fno-exceptions - -QMAKE_INCDIR = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] - -QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o $obj $src -QMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< -QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $obj $src -QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< - -QMAKE_LINK = g++ -QMAKE_LFLAGS = -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -QMAKE_LFLAGS_RELEASE = -Wl,-s -QMAKE_LFLAGS_DEBUG = -QMAKE_LFLAGS_CONSOLE = -Wl,-subsystem,console -QMAKE_LFLAGS_WINDOWS = -Wl,-subsystem,windows -QMAKE_LFLAGS_DLL = -shared -QMAKE_LINK_OBJECT_MAX = 10 -QMAKE_LINK_OBJECT_SCRIPT= object_script - - -QMAKE_LIBS = -QMAKE_LIBS_CORE = -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32 -QMAKE_LIBS_GUI = -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lws2_32 -lole32 -luuid -luser32 -QMAKE_LIBS_NETWORK = -lws2_32 -QMAKE_LIBS_OPENGL = -lopengl32 -lglu32 -lgdi32 -luser32 -QMAKE_LIBS_COMPAT = -ladvapi32 -lshell32 -lcomdlg32 -luser32 -lgdi32 -lws2_32 -QMAKE_LIBS_QT_ENTRY = -lmingw32 -lqtmain - -MINGW_IN_SHELL = $$(MINGW_IN_SHELL) -isEqual(MINGW_IN_SHELL, 1) { - QMAKE_DIR_SEP = / - QMAKE_COPY = cp - QMAKE_COPY_DIR = xcopy /s /q /y /i - QMAKE_MOVE = mv - QMAKE_DEL_FILE = rm - QMAKE_MKDIR = mkdir - QMAKE_DEL_DIR = rmdir -} else { - QMAKE_COPY = copy /y - QMAKE_COPY_DIR = xcopy /s /q /y /i - QMAKE_MOVE = move - QMAKE_DEL_FILE = del - QMAKE_MKDIR = mkdir - QMAKE_DEL_DIR = rmdir -} -QMAKE_MOC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}moc.exe -QMAKE_UIC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}uic.exe -QMAKE_IDC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}idc.exe - -QMAKE_IDL = midl -QMAKE_LIB = ar -ru -QMAKE_RC = windres - -QMAKE_ZIP = zip -r -9 - -QMAKE_STRIP = strip -QMAKE_STRIPFLAGS_LIB += --strip-unneeded -QMAKE_CHK_DIR_EXISTS = if not exist -load(qt_config) diff --git a/python/sip/specs/win32-icc b/python/sip/specs/win32-icc deleted file mode 100644 index ca00e9e5..00000000 --- a/python/sip/specs/win32-icc +++ /dev/null @@ -1,87 +0,0 @@ -# -# qmake configuration for win32-icc -# -# Written for Intel C++ -# - -MAKEFILE_GENERATOR = MSVC -TEMPLATE = app -CONFIG += qt warn_on release incremental flat link_prl precompile_header copy_dir_files debug_and_release debug_and_release_target -QT += core gui -DEFINES += UNICODE QT_LARGEFILE_SUPPORT -QMAKE_COMPILER_DEFINES += __INTEL_COMPILER _MSC_VER=1300 WIN32 - -QMAKE_CC = icl -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = byacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -nologo -Zm200 -QMAKE_CFLAGS_WARN_ON = -W3 /Qwd673 -QMAKE_CFLAGS_WARN_OFF = -W0 /Qwd673 -QMAKE_CFLAGS_RELEASE = -O2 -MD -QMAKE_CFLAGS_DEBUG = -Zi -MDd -QMAKE_CFLAGS_YACC = - -QMAKE_CXX = $$QMAKE_CC -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS /Zc:forScope -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_STL_ON = -GX -QMAKE_CXXFLAGS_STL_OFF = -QMAKE_CXXFLAGS_RTTI_ON = -GR -QMAKE_CXXFLAGS_RTTI_OFF = -QMAKE_CXXFLAGS_EXCEPTIONS_ON = -GX -QMAKE_CXXFLAGS_EXCEPTIONS_OFF = - -QMAKE_INCDIR = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] - -QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src -QMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< -QMAKE_RUN_CC_IMP_BATCH = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ @<< -QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src -QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< -QMAKE_RUN_CXX_IMP_BATCH = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ @<< - -QMAKE_LINK = link -QMAKE_LFLAGS = /NOLOGO -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = /DEBUG -QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:console -QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:windows -QMAKE_LFLAGS_DLL = /DLL -QMAKE_LFLAGS_QT_DLL = /BASE:0x39D00000 - -QMAKE_LIBS = -QMAKE_LIBS_CORE = kernel32.lib user32.lib shell32.lib uuid.lib ole32.lib advapi32.lib ws2_32.lib -QMAKE_LIBS_GUI = gdi32.lib comdlg32.lib oleaut32.lib imm32.lib winmm.lib winspool.lib ws2_32.lib ole32.lib user32.lib -QMAKE_LIBS_NETWORK = ws2_32.lib -QMAKE_LIBS_OPENGL = opengl32.lib glu32.lib gdi32.lib user32.lib delayimp.lib -QMAKE_LIBS_COMPAT = advapi32.lib shell32.lib comdlg32.lib user32.lib gdi32.lib ws2_32.lib -QMAKE_LIBS_QT_ENTRY = -lqtmain - -QMAKE_MOC = $$[QT_INSTALL_BINS]\moc.exe -QMAKE_UIC = $$[QT_INSTALL_BINS]\uic.exe -QMAKE_IDC = $$[QT_INSTALL_BINS]\idc.exe - -QMAKE_IDL = midl -QMAKE_LIB = lib /NOLOGO -QMAKE_RC = rc - -QMAKE_ZIP = zip -r -9 - -QMAKE_COPY = copy /y -QMAKE_COPY_DIR = xcopy /s /q /y /i -QMAKE_MOVE = move -QMAKE_DEL_FILE = del -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = if not exist -QMAKE_MKDIR = mkdir - -DSP_EXTENSION = .dsp -load(qt_config) diff --git a/python/sip/specs/win32-msvc b/python/sip/specs/win32-msvc deleted file mode 100644 index 2332b6b9..00000000 --- a/python/sip/specs/win32-msvc +++ /dev/null @@ -1,86 +0,0 @@ -# -# qmake configuration for win32-msvc -# -# Written for Microsoft C++ -# - -MAKEFILE_GENERATOR = MSVC -TEMPLATE = app -CONFIG += qt warn_on release incremental flat link_prl precompile_header copy_dir_files cd_change_global no_delete_multiple_files debug_and_release debug_and_release_target -QT += core gui -DEFINES += UNICODE QT_LARGEFILE_SUPPORT -QMAKE_COMPILER_DEFINES += _MSC_VER=1200 WIN32 - -QMAKE_CC = cl -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = byacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -nologo -Zm200 -QMAKE_CFLAGS_WARN_ON = -W3 -QMAKE_CFLAGS_WARN_OFF = -W0 -QMAKE_CFLAGS_RELEASE = -O1 -MD -QMAKE_CFLAGS_DEBUG = -Zi -MDd -QMAKE_CFLAGS_YACC = - -QMAKE_CXX = $$QMAKE_CC -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_STL_ON = -GX -QMAKE_CXXFLAGS_STL_OFF = -QMAKE_CXXFLAGS_RTTI_ON = -GR -QMAKE_CXXFLAGS_RTTI_OFF = -QMAKE_CXXFLAGS_EXCEPTIONS_ON = -GX -QMAKE_CXXFLAGS_EXCEPTIONS_OFF = - -QMAKE_INCDIR = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] - -QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src -QMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< -QMAKE_RUN_CC_IMP_BATCH = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ @<< -QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src -QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< -QMAKE_RUN_CXX_IMP_BATCH = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ @<< - -QMAKE_LINK = link -QMAKE_LFLAGS = /NOLOGO -QMAKE_LFLAGS_RELEASE = /INCREMENTAL:NO -QMAKE_LFLAGS_DEBUG = /DEBUG -QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:console -QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:windows -QMAKE_LFLAGS_DLL = /DLL - -QMAKE_LIBS = -QMAKE_LIBS_CORE = kernel32.lib user32.lib shell32.lib uuid.lib ole32.lib advapi32.lib ws2_32.lib -QMAKE_LIBS_GUI = gdi32.lib comdlg32.lib oleaut32.lib imm32.lib winmm.lib winspool.lib ws2_32.lib ole32.lib user32.lib -QMAKE_LIBS_NETWORK = ws2_32.lib -QMAKE_LIBS_OPENGL = opengl32.lib glu32.lib gdi32.lib user32.lib delayimp.lib -QMAKE_LIBS_COMPAT = advapi32.lib shell32.lib comdlg32.lib user32.lib gdi32.lib ws2_32.lib -QMAKE_LIBS_QT_ENTRY = -lqtmain - -QMAKE_MOC = $$[QT_INSTALL_BINS]\moc.exe -QMAKE_UIC = $$[QT_INSTALL_BINS]\uic.exe -QMAKE_IDC = $$[QT_INSTALL_BINS]\idc.exe - -QMAKE_IDL = midl -QMAKE_LIB = lib /NOLOGO -QMAKE_RC = rc - -QMAKE_ZIP = zip -r -9 - -QMAKE_COPY = copy /y -QMAKE_COPY_DIR = xcopy /s /q /y /i -QMAKE_MOVE = move -QMAKE_DEL_FILE = del -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = if not exist -QMAKE_MKDIR = mkdir - -DSP_EXTENSION = .dsp -load(qt_config) diff --git a/python/sip/specs/win32-msvc.net b/python/sip/specs/win32-msvc.net deleted file mode 100644 index 5fbb7566..00000000 --- a/python/sip/specs/win32-msvc.net +++ /dev/null @@ -1,88 +0,0 @@ -# -# qmake configuration for win32-msvc.net -# -# Written for Microsoft C++.NET -# - -MAKEFILE_GENERATOR = MSVC.NET -TEMPLATE = app -CONFIG += qt warn_on release incremental flat link_prl precompile_header autogen_precompile_source copy_dir_files debug_and_release debug_and_release_target -QT += core gui -DEFINES += UNICODE WIN32 QT_LARGEFILE_SUPPORT -QMAKE_COMPILER_DEFINES += _MSC_VER=1300 WIN32 - -QMAKE_CC = cl -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = byacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -nologo -Zm200 -QMAKE_CFLAGS_WARN_ON = -W3 -QMAKE_CFLAGS_WARN_OFF = -W0 -QMAKE_CFLAGS_RELEASE = -O2 -MD -QMAKE_CFLAGS_DEBUG = -Zi -MDd -QMAKE_CFLAGS_YACC = - -QMAKE_CXX = $$QMAKE_CC -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -w34100 -w34189 -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_STL_ON = -EHsc -QMAKE_CXXFLAGS_STL_OFF = -QMAKE_CXXFLAGS_RTTI_ON = -GR -QMAKE_CXXFLAGS_RTTI_OFF = -QMAKE_CXXFLAGS_EXCEPTIONS_ON = -EHsc -QMAKE_CXXFLAGS_EXCEPTIONS_OFF = - -QMAKE_INCDIR = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] - -QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src -QMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< -QMAKE_RUN_CC_IMP_BATCH = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ @<< -QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src -QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< -QMAKE_RUN_CXX_IMP_BATCH = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ @<< - -QMAKE_LINK = link -QMAKE_LFLAGS = /NOLOGO -QMAKE_LFLAGS_RELEASE = /INCREMENTAL:NO -QMAKE_LFLAGS_DEBUG = /DEBUG -QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE -QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS -QMAKE_LFLAGS_DLL = /DLL - -QMAKE_LIBS_CORE = kernel32.lib user32.lib shell32.lib uuid.lib ole32.lib advapi32.lib ws2_32.lib -QMAKE_LIBS_GUI = gdi32.lib comdlg32.lib oleaut32.lib imm32.lib winmm.lib winspool.lib ws2_32.lib ole32.lib user32.lib -QMAKE_LIBS_NETWORK = ws2_32.lib -QMAKE_LIBS_OPENGL = opengl32.lib glu32.lib gdi32.lib user32.lib -QMAKE_LIBS_COMPAT = advapi32.lib shell32.lib comdlg32.lib user32.lib gdi32.lib ws2_32.lib - -QMAKE_LIBS_QT_ENTRY = -lqtmain - -QMAKE_MOC = $$[QT_INSTALL_BINS]\moc.exe -QMAKE_UIC = $$[QT_INSTALL_BINS]\uic.exe -QMAKE_IDC = $$[QT_INSTALL_BINS]\idc.exe - -QMAKE_IDL = midl -QMAKE_LIB = lib /NOLOGO -QMAKE_RC = rc - -QMAKE_ZIP = zip -r -9 - -QMAKE_COPY = copy /y -QMAKE_COPY_DIR = xcopy /s /q /y /i -QMAKE_MOVE = move -QMAKE_DEL_FILE = del -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = if not exist -QMAKE_MKDIR = mkdir - -VCPROJ_EXTENSION = .vcproj -VCSOLUTION_EXTENSION = .sln -VCPROJ_KEYWORD = Qt4VSv1.0 -load(qt_config) diff --git a/python/sip/specs/win32-msvc2005 b/python/sip/specs/win32-msvc2005 deleted file mode 100644 index 1205df40..00000000 --- a/python/sip/specs/win32-msvc2005 +++ /dev/null @@ -1,88 +0,0 @@ -# -# qmake configuration for win32-msvc2005 -# -# Written for Microsoft VC2005.NET -# - -MAKEFILE_GENERATOR = MSVC.NET -TEMPLATE = app -CONFIG += qt warn_on release incremental flat link_prl precompile_header autogen_precompile_source copy_dir_files debug_and_release debug_and_release_target embed_manifest_dll -QT += core gui -DEFINES += UNICODE WIN32 QT_LARGEFILE_SUPPORT -QMAKE_COMPILER_DEFINES += _MSC_VER=1400 WIN32 - -QMAKE_CC = cl -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = byacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -nologo -Zm200 -Zc:wchar_t- -QMAKE_CFLAGS_WARN_ON = -W3 -QMAKE_CFLAGS_WARN_OFF = -W0 -QMAKE_CFLAGS_RELEASE = -O2 -MD -QMAKE_CFLAGS_DEBUG = -Zi -MDd -QMAKE_CFLAGS_YACC = - -QMAKE_CXX = $$QMAKE_CC -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -w34100 -w34189 -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC -QMAKE_CXXFLAGS_STL_ON = -EHsc -QMAKE_CXXFLAGS_STL_OFF = -QMAKE_CXXFLAGS_RTTI_ON = -GR -QMAKE_CXXFLAGS_RTTI_OFF = -QMAKE_CXXFLAGS_EXCEPTIONS_ON = -EHsc -QMAKE_CXXFLAGS_EXCEPTIONS_OFF = - -QMAKE_INCDIR = -QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] -QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] - -QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src -QMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< -QMAKE_RUN_CC_IMP_BATCH = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ @<< -QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src -QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< -QMAKE_RUN_CXX_IMP_BATCH = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ @<< - -QMAKE_LINK = link -QMAKE_LFLAGS = /NOLOGO -QMAKE_LFLAGS_RELEASE = /INCREMENTAL:NO -QMAKE_LFLAGS_DEBUG = /DEBUG -QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE -QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS -QMAKE_LFLAGS_DLL = /DLL - -QMAKE_LIBS_CORE = kernel32.lib user32.lib shell32.lib uuid.lib ole32.lib advapi32.lib ws2_32.lib -QMAKE_LIBS_GUI = gdi32.lib comdlg32.lib oleaut32.lib imm32.lib winmm.lib winspool.lib ws2_32.lib ole32.lib user32.lib -QMAKE_LIBS_NETWORK = ws2_32.lib -QMAKE_LIBS_OPENGL = opengl32.lib glu32.lib gdi32.lib user32.lib -QMAKE_LIBS_COMPAT = advapi32.lib shell32.lib comdlg32.lib user32.lib gdi32.lib ws2_32.lib - -QMAKE_LIBS_QT_ENTRY = -lqtmain - -QMAKE_MOC = $$[QT_INSTALL_BINS]\moc.exe -QMAKE_UIC = $$[QT_INSTALL_BINS]\uic.exe -QMAKE_IDC = $$[QT_INSTALL_BINS]\idc.exe - -QMAKE_IDL = midl -QMAKE_LIB = lib /NOLOGO -QMAKE_RC = rc - -QMAKE_ZIP = zip -r -9 - -QMAKE_COPY = copy /y -QMAKE_COPY_DIR = xcopy /s /q /y /i -QMAKE_MOVE = move -QMAKE_DEL_FILE = del -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = if not exist -QMAKE_MKDIR = mkdir - -VCPROJ_EXTENSION = .vcproj -VCSOLUTION_EXTENSION = .sln -VCPROJ_KEYWORD = Qt4VSv1.0 -load(qt_config) diff --git a/python/sip/specs/win32-watcom b/python/sip/specs/win32-watcom deleted file mode 100644 index 463778bd..00000000 --- a/python/sip/specs/win32-watcom +++ /dev/null @@ -1,69 +0,0 @@ -# -# $Id$ -# -# qmake configuration for win32-watcom -# -# Written for Watcom C++, now OpenWatcom. -# - -TEMPLATE = app -CONFIG += qt warn_on release link_prl - -QMAKE_CC = wcl386 -QMAKE_LEX = flex -QMAKE_LEXFLAGS = -QMAKE_YACC = byacc -QMAKE_YACCFLAGS = -d -QMAKE_CFLAGS = -zq -QMAKE_CFLAGS_WARN_ON = -w2 -QMAKE_CFLAGS_WARN_OFF = -w0 -QMAKE_CFLAGS_RELEASE = -ox -QMAKE_CFLAGS_DEBUG = -d2 -QMAKE_CFLAGS_YACC = - -QMAKE_CXX = $$QMAKE_CC -QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG -QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC - -QMAKE_INCDIR = -QMAKE_INCDIR_QT = $(QTDIR)\include - -QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -fo=$obj $src -QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -fo=$obj $src - -QMAKE_LINK = wlink -QMAKE_LFLAGS = op quiet op c -QMAKE_LFLAGS_RELEASE = -QMAKE_LFLAGS_DEBUG = d all -QMAKE_LFLAGS_CONSOLE = sys nt -QMAKE_LFLAGS_WINDOWS = sys nt_win -QMAKE_LFLAGS_CONSOLE_DLL= sys nt -QMAKE_LFLAGS_WINDOWS_DLL= sys nt_win - -QMAKE_LIBS = -QMAKE_LIBS_CONSOLE = -QMAKE_LIBS_WINDOWS = -QMAKE_LIBS_QT = %QTDIR%\lib\qt.lib -QMAKE_LIBS_QT_ENTRY = %QTDIR%\lib\qtmain.lib - -QMAKE_LIBS_OPENGL = opengl32.lib - -QMAKE_MOC = $(QTDIR)/bin/moc.exe -QMAKE_UIC = $(QTDIR)/bin/uic.exe -QMAKE_IDC = $(QTDIR)/bin/idc.exe - -QMAKE_LIB = wlib -b -c -n -q -p=512 -QMAKE_RC = rc - -QMAKE_ZIP = zip -r -9 - -QMAKE_COPY = copy -QMAKE_MOVE = move -QMAKE_DEL_FILE = del -QMAKE_DEL_DIR = rmdir -QMAKE_CHK_DIR_EXISTS = test -d -QMAKE_MKDIR = mkdir -p -- cgit v1.2.1