diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /python/pykde/examples/pykde-sampler/qt_widgets | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'python/pykde/examples/pykde-sampler/qt_widgets')
3 files changed, 596 insertions, 0 deletions
diff --git a/python/pykde/examples/pykde-sampler/qt_widgets/CONTRIB b/python/pykde/examples/pykde-sampler/qt_widgets/CONTRIB new file mode 100644 index 00000000..e814d1ec --- /dev/null +++ b/python/pykde/examples/pykde-sampler/qt_widgets/CONTRIB @@ -0,0 +1,537 @@ +Module,Item,Path,Contributor +dcop,DCOPClient,,, +dcop,DCOPClientTransaction,,, +dcop,DCOPObject,,, +dcop,DCOPObjectProxy,,, +dcop,DCOPRef,,, +dcop,DCOPReply,,, +dcop,DCOPStub,,, +kdecore,BarIcon,,, +kdecore,BarIconSet,,, +kdecore,DesktopIcon,,, +kdecore,DesktopIconSet,,, +kdecore,IconSize,,, +kdecore,KAboutData,,, +kdecore,KAboutPerson,,, +kdecore,KAboutTranslator,,, +kdecore,KAccel,,, +kdecore,KAccelAction,,, +kdecore,KAccelActions,,, +kdecore,KAccelBase,,, +kdecore,KAccelShortcutList,,, +kdecore,KApplication,,, +kdecore,KAsyncIO,,, +kdecore,KAudioPlayer,,, +kdecore,KBufferedIO,,, +kdecore,KCalendarSystem,,, +kdecore,KCalendarSystemFactory,,, +kdecore,KCatalogue,,, +kdecore,KCharsets,,, +kdecore,KClipboardSynchronizer,,, +kdecore,KCmdLineArgs,,, +kdecore,KCmdLineOptions,,, +kdecore,KCodecs,,, +kdecore,KCompletion,,, +kdecore,KCompletionBase,,, +kdecore,KConfig,,, +kdecore,KConfigBackEnd,,, +kdecore,KConfigBase,,, +kdecore,KConfigDialogManager,,, +kdecore,KConfigGroup,,, +kdecore,KConfigGroupSaver,,, +kdecore,KConfigINIBackEnd,,, +kdecore,KConfigSkeleton,,, +kdecore,KConfigSkeletonItem,,, +kdecore,KCrash,,, +kdecore,KDCOPPropertyProxy,,, +kdecore,KDE,,, +kdecore,KDesktopFile,,, +kdecore,KEntry,,, +kdecore,KEntryKey,,, +kdecore,KGlobal,,, +kdecore,KGlobalAccel,,, +kdecore,KGlobalSettings,,, +kdecore,KIDNA,,, +kdecore,KIPC,,, +kdecore,KIcon,,, +kdecore,KIconEffect,,, +kdecore,KIconLoader,,, +kdecore,KIconTheme,,, +kdecore,KInstance,,, +kdecore,KKey,,, +kdecore,KKeyNative,,, +kdecore,KKeySequence,,, +kdecore,KKeyServer,,, +kdecore,KLibFactory,,, +kdecore,KLibLoader,,, +kdecore,KLibrary,,, +kdecore,KLocale,,, +kdecore,KMD5,,, +kdecore,KMacroExpander,,, +kdecore,KMacroExpanderBase,,, +kdecore,KMimeSourceFactory,,, +kdecore,KMountPoint,,, +kdecore,KMultipleDrag,,, +kdecore,KNotifyClient,,, +kdecore,KPalette,,, +kdecore,KPixmapProvider,,, +kdecore,KProcIO,,, +kdecore,KProcess,,, +kdecore,KProcessController,,, +kdecore,KPty,,, +kdecore,KRFCDate,,, +kdecore,KRandomSequence,,, +kdecore,KRegExp,,, +kdecore,KRootProp,,, +kdecore,KSaveFile,,, +kdecore,KSelectionOwner,,, +kdecore,KSelectionWatcher,,, +kdecore,KServerSocket,,, +kdecore,KSessionManaged,,, +kdecore,KShared,,, +kdecore,KSharedConfig,,, +kdecore,KShell,,, +kdecore,KShellProcess,,, +kdecore,KShortcut,,, +kdecore,KShortcutList,,, +kdecore,KSimpleConfig,,, +kdecore,KSocket,,, +kdecore,KStandardDirs,,, +kdecore,KStartupInfo,,, +kdecore,KStartupInfoData,,, +kdecore,KStartupInfoId,,, +kdecore,KStaticDeleterBase,,, +kdecore,KStdAccel,,, +kdecore,KStringHandler,,, +kdecore,KTempDir,,, +kdecore,KTempFile,,, +kdecore,KURL,,, +kdecore,KURLDrag,,, +kdecore,KUniqueApplication,,, +kdecore,KWin,,, +kdecore,KWinModule,,, +kdecore,KZoneAllocator,,, +kdecore,MainBarIcon,,, +kdecore,MainBarIconSet,,, +kdecore,NET,,, +kdecore,NETIcon,,, +kdecore,NETPoint,,, +kdecore,NETRect,,, +kdecore,NETRootInfo,,, +kdecore,NETRootInfo2,,, +kdecore,NETSize,,, +kdecore,NETStrut,,, +kdecore,NETWinInfo,,, +kdecore,SmallIcon,,, +kdecore,SmallIconSet,,, +kdecore,UserIcon,,, +kdecore,UserIconSet,,, +kdecore,i18n,,, +kdecore,locate,,, +kdecore,locateLocal,,, +kdecore,testKEntryMap,,, +kdecore,urlcmp,,, +kdefx,KCPUInfo,,, +kdefx,KImageEffect,,, +kdefx,KPixmap,,, +kdefx,KPixmapEffect,,, +kdefx,KPixmapSplitter,,, +kdefx,KStyle,,, +kdefx,kColorBitmaps,,, +kdefx,kDrawBeButton,,, +kdefx,kDrawNextButton,,, +kdefx,kDrawRoundButton,,, +kdefx,kDrawRoundMask,,, +kdefx,kRoundMaskRegion,,, +kdeprint,DrBase,,, +kdeprint,DrBooleanOption,,, +kdeprint,DrChoiceGroup,,, +kdeprint,DrConstraint,,, +kdeprint,DrFloatOption,,, +kdeprint,DrGroup,,, +kdeprint,DrIntegerOption,,, +kdeprint,DrListOption,,, +kdeprint,DrMain,,, +kdeprint,DrPageSize,,, +kdeprint,DrStringOption,,, +kdeprint,KMJob,,, +kdeprint,KMJobManager,,, +kdeprint,KMManager,,, +kdeprint,KMObject,,, +kdeprint,KMPrinter,,, +kdeprint,KPReloadObject,,, +kdeprint,KPrintAction,,, +kdeprint,KPrintDialog,,, +kdeprint,KPrintDialogPage,,, +kdeprint,KPrinter,,, +kdeprint,pageNameToPageSize,,, +kdeprint,pageSizeToPageName,,, +kdeprint,rangeToSize,,, +kdesu,KCookie,,, +kdesu,KDEsuClient,,, +kdesu,PTY,,, +kdesu,PtyProcess,,, +kdesu,SshProcess,,, +kdesu,StubProcess,,, +kdesu,SuProcess,,, +kdeui,KAboutApplication,,, +kdeui,KAboutContainer,,, +kdeui,KAboutContributor,,, +kdeui,KAboutDialog,,, +kdeui,KAboutKDE,,, +kdeui,KAboutWidget,,, +kdeui,KAction,,, +kdeui,KActionCollection,,, +kdeui,KActionMenu,,, +kdeui,KActionPtrShortcutList,,, +kdeui,KActionSeparator,,, +kdeui,KActionShortcutList,,, +kdeui,KActiveLabel,,, +kdeui,KAnimWidget,,, +kdeui,KArrowButton,,, +kdeui,KAuthIcon,,, +kdeui,KBugReport,,, +kdeui,KButtonBox,,, +kdeui,KCModule,,, +kdeui,KCharSelect,,, +kdeui,KCharSelectTable,,, +kdeui,KColor,,, +kdeui,KColorButton,,, +kdeui,KColorCells,,, +kdeui,KColorCombo,,, +kdeui,KColorDialog,,, +kdeui,KColorDrag,,, +kdeui,KColorPatch,,, +kdeui,KComboBox,,, +kdeui,KCommand,,, +kdeui,KCommandHistory,,, +kdeui,KCompletionBox,,, +kdeui,KConfigDialog,,, +kdeui,KContextMenuManager,,, +kdeui,KCursor,,, +kdeui,KDCOPActionProxy,,, +kdeui,KDateInternalMonthPicker,,, +kdeui,KDateInternalWeekSelector,,, +kdeui,KDateInternalYearSelector,,, +kdeui,KDatePicker,,, +kdeui,KDateTable,,, +kdeui,KDateTimeWidget,,, +kdeui,KDateValidator,,, +kdeui,KDateWidget,,, +kdeui,KDialog,,, +kdeui,KDialogBase,,, +kdeui,KDialogQueue,,, +kdeui,KDockArea,,, +kdeui,KDockMainWindow,,, +kdeui,KDockManager,,, +kdeui,KDockTabGroup,,, +kdeui,KDockWidget,,, +kdeui,KDockWidgetAbstractHeader,,, +kdeui,KDockWidgetAbstractHeaderDrag,,, +kdeui,KDockWidgetHeader,,, +kdeui,KDockWidgetHeaderDrag,,, +kdeui,KDockWindow,,, +kdeui,KDoubleNumInput,,, +kdeui,KDoubleSpinBox,,, +kdeui,KDoubleValidator,,, +kdeui,KDualColorButton,,, +kdeui,KEdFind,,, +kdeui,KEdGotoLine,,, +kdeui,KEdReplace,,, +kdeui,KEdit,,, +kdeui,KEditListBox,,, +kdeui,KEditToolbar,,, +kdeui,KEditToolbarWidget,,, +kdeui,KFloatValidator,,, +kdeui,KFontAction,,, +kdeui,KFontChooser,,, +kdeui,KFontCombo,,, +kdeui,KFontDialog,,, +kdeui,KFontRequester,,, +kdeui,KFontSizeAction,,, +kdeui,KGradientSelector,,, +kdeui,KGuiItem,,, +kdeui,KHSSelector,,, +kdeui,KHelpMenu,,, +kdeui,KHistoryCombo,,, +kdeui,KIconView,,, +kdeui,KIconViewItem,,, +kdeui,KInputDialog,,, +kdeui,KIntNumInput,,, +kdeui,KIntSpinBox,,, +kdeui,KIntValidator,,, +kdeui,KJanusWidget,,, +kdeui,KKeyButton,,, +kdeui,KKeyChooser,,, +kdeui,KKeyDialog,,, +kdeui,KLed,,, +kdeui,KLineEdit,,, +kdeui,KLineEditDlg,,, +kdeui,KListAction,,, +kdeui,KListBox,,, +kdeui,KListView,,, +kdeui,KListViewItem,,, +kdeui,KMacroCommand,,, +kdeui,KMainWindow,,, +kdeui,KMainWindowInterface,,, +kdeui,KMenuBar,,, +kdeui,KMessageBox,,, +kdeui,KMimeTypeValidator,,, +kdeui,KNamedCommand,,, +kdeui,KNumInput,,, +kdeui,KPaletteTable,,, +kdeui,KPanelAppMenu,,, +kdeui,KPanelApplet,,, +kdeui,KPanelExtension,,, +kdeui,KPanelMenu,,, +kdeui,KPassivePopup,,, +kdeui,KPasswordDialog,,, +kdeui,KPasswordEdit,,, +kdeui,KPasteTextAction,,, +kdeui,KPixmapIO,,, +kdeui,KPopupFrame,,, +kdeui,KPopupMenu,,, +kdeui,KPopupTitle,,, +kdeui,KProgress,,, +kdeui,KProgressDialog,,, +kdeui,KPushButton,,, +kdeui,KRadioAction,,, +kdeui,KRecentFilesAction,,, +kdeui,KRestrictedLine,,, +kdeui,KRootPermsIcon,,, +kdeui,KRootPixmap,,, +kdeui,KRuler,,, +kdeui,KSelectAction,,, +kdeui,KSelector,,, +kdeui,KSeparator,,, +kdeui,KSplashScreen,,, +kdeui,KSqueezedTextLabel,,, +kdeui,KStatusBar,,, +kdeui,KStatusBarLabel,,, +kdeui,KStdAction,,, +kdeui,KStdGuiItem,,, +kdeui,KStringListValidator,,, +kdeui,KSystemTray,,, +kdeui,KTabBar,,, +kdeui,KTabCtl,,, +kdeui,KTabWidget,,, +kdeui,KTextBrowser,,, +kdeui,KTextEdit,,, +kdeui,KTimeWidget,,, +kdeui,KTipDatabase,,, +kdeui,KTipDialog,,, +kdeui,KToggleAction,,, +kdeui,KToggleFullScreenAction,,, +kdeui,KToggleToolBarAction,,, +kdeui,KToolBar,,, +kdeui,KToolBarButton,,, +kdeui,KToolBarPopupAction,,, +kdeui,KToolBarRadioGroup,,, +kdeui,KToolBarSeparator,,, +kdeui,KURLLabel,,, +kdeui,KValueSelector,,, +kdeui,KWidgetAction,,, +kdeui,KWindowInfo,,, +kdeui,KWindowListMenu,,, +kdeui,KWizard,,, +kdeui,KWordWrap,,, +kdeui,KWritePermsIcon,,, +kdeui,KXMLGUIBuilder,,, +kdeui,KXMLGUIClient,,, +kdeui,KXMLGUIFactory,,, +kdeui,KXYSelector,,, +kdeui,QXEmbed,,, +kdeui,testKActionList,,, +kfile,KApplicationPropsPlugin,,, +kfile,KBindingPropsPlugin,,, +kfile,KCombiView,,, +kfile,KCustomMenuEditor,,, +kfile,KDesktopPropsPlugin,,, +kfile,KDevicePropsPlugin,,, +kfile,KDirOperator,,, +kfile,KDirSelectDialog,,, +kfile,KDirSize,,, +kfile,KDiskFreeSp,,, +kfile,KEncodingFileDialog,,, +kfile,KExecPropsPlugin,,, +kfile,KFile,,, +kfile,KFileDetailView,,, +kfile,KFileDialog,,, +kfile,KFileFilterCombo,,, +kfile,KFileIconView,,, +kfile,KFileIconViewItem,,, +kfile,KFileListViewItem,,, +kfile,KFileOpenWithHandler,,, +kfile,KFilePermissionsPropsPlugin,,, +kfile,KFilePreview,,, +kfile,KFilePropsPlugin,,, +kfile,KFileSharePropsPlugin,,, +kfile,KFileTreeBranch,,, +kfile,KFileTreeView,,, +kfile,KFileTreeViewItem,,, +kfile,KFileTreeViewToolTip,,, +kfile,KFileView,,, +kfile,KFileViewSignaler,,, +kfile,KIconButton,,, +kfile,KIconCanvas,,, +kfile,KIconDialog,,, +kfile,KImageFilePreview,,, +kfile,KNotify,,, +kfile,KNotifyDialog,,, +kfile,KOpenWithDlg,,, +kfile,KPreviewWidgetBase,,, +kfile,KPropertiesDialog,,, +kfile,KPropsDlgPlugin,,, +kfile,KRecentDocument,,, +kfile,KURLBar,,, +kfile,KURLBarItem,,, +kfile,KURLBarItemDialog,,, +kfile,KURLBarListBox,,, +kfile,KURLComboBox,,, +kfile,KURLComboRequester,,, +kfile,KURLPropsPlugin,,, +kfile,KURLRequester,,, +kfile,KURLRequesterDlg,,, +khtml,DOM,,, +khtml,KHTMLPart,,, +khtml,KHTMLSettings,,, +khtml,KHTMLView,,, +kio,KAr,,, +kio,KArchive,,, +kio,KArchiveDirectory,,, +kio,KArchiveEntry,,, +kio,KArchiveFile,,, +kio,KAutoMount,,, +kio,KAutoUnmount,,, +kio,KDCOPServiceStarter,,, +kio,KDEDesktopMimeType,,, +kio,KDataTool,,, +kio,KDataToolAction,,, +kio,KDataToolInfo,,, +kio,KDirLister,,, +kio,KDirNotify,,, +kio,KDirWatch,,, +kio,KEMailSettings,,, +kio,KExecMimeType,,, +kio,KFileFilter,,, +kio,KFileItem,,, +kio,KFileMetaInfo,,, +kio,KFileMetaInfoGroup,,, +kio,KFileMetaInfoItem,,, +kio,KFileMetaInfoProvider,,, +kio,KFileMimeTypeInfo,,, +kio,KFilePlugin,,, +kio,KFileShare,,, +kio,KFileSharePrivate,,, +kio,KFilterBase,,, +kio,KFilterDev,,, +kio,KFolderType,,, +kio,KIO,,, +kio,KImageIO,,, +kio,KMimeMagic,,, +kio,KMimeMagicResult,,, +kio,KMimeType,,, +kio,KOCRDialog,,, +kio,KOCRDialogFactory,,, +kio,KOpenWithHandler,,, +kio,KProcessRunner,,, +kio,KProtocolInfo,,, +kio,KProtocolManager,,, +kio,KRun,,, +kio,KST_CTimeInfo,,, +kio,KST_KCustom,,, +kio,KST_KDEDesktopMimeType,,, +kio,KST_KExecMimeType,,, +kio,KST_KFolderType,,, +kio,KST_KImageIO,,, +kio,KST_KImageIOFormat,,, +kio,KST_KMimeType,,, +kio,KST_KProtocolInfo,,, +kio,KST_KProtocolInfoFactory,,, +kio,KST_KService,,, +kio,KST_KServiceFactory,,, +kio,KST_KServiceGroup,,, +kio,KST_KServiceGroupFactory,,, +kio,KST_KServiceType,,, +kio,KST_KServiceTypeFactory,,, +kio,KST_KSycocaEntry,,, +kio,KScanDialog,,, +kio,KScanDialogFactory,,, +kio,KService,,, +kio,KServiceGroup,,, +kio,KServiceOffer,,, +kio,KServiceSeparator,,, +kio,KServiceType,,, +kio,KServiceTypeProfile,,, +kio,KShellCompletion,,, +kio,KShred,,, +kio,KSimpleFileFilter,,, +kio,KSycoca,,, +kio,KSycocaEntry,,, +kio,KSycocaFactory,,, +kio,KTar,,, +kio,KTrader,,, +kio,KURIFilter,,, +kio,KURIFilterData,,, +kio,KURIFilterPlugin,,, +kio,KURLCompletion,,, +kio,KURLPixmapProvider,,, +kio,KZip,,, +kio,KZipFileEntry,,, +kio,Observer,,, +kio,RenameDlgPlugin,,, +kio,ThumbCreator,,, +kio,testKIOMetaData,,, +kio,testKIOUDSEntry,,, +kio,testKIOUDSEntryList,,, +kmdi,KMdi,,, +kmdi,KMdiChildArea,,, +kmdi,KMdiChildFrm,,, +kmdi,KMdiChildFrmCaption,,, +kmdi,KMdiChildFrmDragBeginEvent,,, +kmdi,KMdiChildFrmDragEndEvent,,, +kmdi,KMdiChildFrmMoveEvent,,, +kmdi,KMdiChildFrmResizeBeginEvent,,, +kmdi,KMdiChildFrmResizeEndEvent,,, +kmdi,KMdiChildView,,, +kmdi,KMdiMainFrm,,, +kmdi,KMdiTaskBar,,, +kmdi,KMdiTaskBarButton,,, +kmdi,KMdiToolViewAccessor,,, +kmdi,KMdiViewCloseEvent,,, +kmdi,KMdiWin32IconButton,,, +kparts,KParts,,, +kparts,createReadOnlyPart,,, +kparts,createReadWritePart,,, +kparts,testQMapQCStringInt,,, +kspell,KS_ADD,,, +kspell,KS_CANCEL,,, +kspell,KS_CLIENT_ASPELL,,, +kspell,KS_CLIENT_HSPELL,,, +kspell,KS_CLIENT_ISPELL,,, +kspell,KS_CONFIG,,, +kspell,KS_E_ASCII,,, +kspell,KS_E_CP1251,,, +kspell,KS_E_CP1255,,, +kspell,KS_E_KOI8R,,, +kspell,KS_E_KOI8U,,, +kspell,KS_E_LATIN1,,, +kspell,KS_E_LATIN13,,, +kspell,KS_E_LATIN15,,, +kspell,KS_E_LATIN2,,, +kspell,KS_E_LATIN3,,, +kspell,KS_E_LATIN4,,, +kspell,KS_E_LATIN5,,, +kspell,KS_E_LATIN7,,, +kspell,KS_E_LATIN8,,, +kspell,KS_E_LATIN9,,, +kspell,KS_E_UTF8,,, +kspell,KS_IGNORE,,, +kspell,KS_IGNOREALL,,, +kspell,KS_REPLACE,,, +kspell,KS_REPLACEALL,,, +kspell,KS_STOP,,, +kspell,KS_SUGGEST,,, +kspell,KSpell,,, +kspell,KSpellConfig,,, +kspell,KSpellDlg,,, diff --git a/python/pykde/examples/pykde-sampler/qt_widgets/__init__.py b/python/pykde/examples/pykde-sampler/qt_widgets/__init__.py new file mode 100644 index 00000000..ffe7bed6 --- /dev/null +++ b/python/pykde/examples/pykde-sampler/qt_widgets/__init__.py @@ -0,0 +1,17 @@ +labelText = 'Qt Widgets' +iconName = 'designer' + +helpText = """Qt provides a rich set of widgets for application use. +Select the children of this item to see for yourself.""" + +from qt import QFrame, QVBoxLayout, SIGNAL +from kdeui import KTextEdit + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.help = KTextEdit(helpText, '', self) + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + layout.addStretch(1) diff --git a/python/pykde/examples/pykde-sampler/qt_widgets/table.py b/python/pykde/examples/pykde-sampler/qt_widgets/table.py new file mode 100644 index 00000000..d6b6e3ed --- /dev/null +++ b/python/pykde/examples/pykde-sampler/qt_widgets/table.py @@ -0,0 +1,42 @@ +labelText = 'QTable' +iconName = 'inline_table' + +helpText = """From the docs: 'The QTable class provides a flexible +editable table widget.' +""" + +import csv +import os + +from qt import QFrame, QStringList, QVBoxLayout, SIGNAL +from qttable import QTable + +from kdeui import KTextEdit + +contrib = os.path.join(os.path.split(__file__)[0], 'CONTRIB') + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.help = KTextEdit(helpText, '', self) + + data = csv.reader(open(contrib)) + header = data.next() + items = [item for item in data] + + self.table = table = QTable(len(items), len(header), self) + headers = QStringList() + for headertext in header: + headers.append(headertext) + table.setColumnLabels(headers) + + cols = range(len(header)) + for row, record in enumerate(items): + for col in cols: + table.setText(row, col, record[col]) + + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + layout.addWidget(self.table) + layout.addStretch(1) |