diff options
Diffstat (limited to 'examples/pytde-sampler')
-rw-r--r-- | examples/pytde-sampler/dialogs/font.py | 8 | ||||
-rw-r--r-- | examples/pytde-sampler/dialogs/key.py | 2 | ||||
-rw-r--r-- | examples/pytde-sampler/qt_widgets/CONTRIB | 92 | ||||
-rwxr-xr-x | examples/pytde-sampler/runner.py | 6 | ||||
-rwxr-xr-x | examples/pytde-sampler/sampler.py | 16 |
5 files changed, 62 insertions, 62 deletions
diff --git a/examples/pytde-sampler/dialogs/font.py b/examples/pytde-sampler/dialogs/font.py index 194524c..1eccc13 100644 --- a/examples/pytde-sampler/dialogs/font.py +++ b/examples/pytde-sampler/dialogs/font.py @@ -1,11 +1,11 @@ from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQFont, TQString from tdecore import i18n -from tdeui import KPushButton, KFontDialog, KTextEdit +from tdeui import KPushButton, TDEFontDialog, KTextEdit iconName = 'fonts' -labelText = 'KFontDialog' -docParts = ('tdeui', 'KFontDialog') +labelText = 'TDEFontDialog' +docParts = ('tdeui', 'TDEFontDialog') 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 " @@ -47,7 +47,7 @@ class MainFrame(TQFrame): def showFontDialog(self): font = TQFont(self.example.font()) string = TQString() - accepted, other = KFontDialog.getFontAndText(font, string, False, self) + accepted, other = TDEFontDialog.getFontAndText(font, string, False, self) if accepted: self.example.setFont(font) self.example.setText(string) diff --git a/examples/pytde-sampler/dialogs/key.py b/examples/pytde-sampler/dialogs/key.py index 8c88537..808a298 100644 --- a/examples/pytde-sampler/dialogs/key.py +++ b/examples/pytde-sampler/dialogs/key.py @@ -6,7 +6,7 @@ from tdecore import i18n from tdeui import KPushButton, KKeyDialog, KTextEdit -helpText = ("Configuring keystroke shortcuts is simple with KActions and the " +helpText = ("Configuring keystroke shortcuts is simple with TDEActions and the " "KKeyDialog type. This sample starts the KKeyDialog for the " "sampler application.") diff --git a/examples/pytde-sampler/qt_widgets/CONTRIB b/examples/pytde-sampler/qt_widgets/CONTRIB index 1dd45b0..f552225 100644 --- a/examples/pytde-sampler/qt_widgets/CONTRIB +++ b/examples/pytde-sampler/qt_widgets/CONTRIB @@ -14,11 +14,11 @@ tdecore,IconSize,,, tdecore,TDEAboutData,,, tdecore,KAboutPerson,,, tdecore,KAboutTranslator,,, -tdecore,KAccel,,, -tdecore,KAccelAction,,, -tdecore,KAccelActions,,, -tdecore,KAccelBase,,, -tdecore,KAccelShortcutList,,, +tdecore,TDEAccel,,, +tdecore,TDEAccelAction,,, +tdecore,TDEAccelActions,,, +tdecore,TDEAccelBase,,, +tdecore,TDEAccelShortcutList,,, tdecore,TDEApplication,,, tdecore,KAsyncIO,,, tdecore,KAudioPlayer,,, @@ -84,16 +84,16 @@ tdecore,KRandomSequence,,, tdecore,KRegExp,,, tdecore,KRootProp,,, tdecore,KSaveFile,,, -tdecore,KSelectionOwner,,, -tdecore,KSelectionWatcher,,, +tdecore,TDESelectionOwner,,, +tdecore,TDESelectionWatcher,,, tdecore,TDEServerSocket,,, tdecore,KSessionManaged,,, tdecore,TDEShared,,, tdecore,TDESharedConfig,,, tdecore,KShell,,, tdecore,KShellProcess,,, -tdecore,KShortcut,,, -tdecore,KShortcutList,,, +tdecore,TDEShortcut,,, +tdecore,TDEShortcutList,,, tdecore,KSimpleConfig,,, tdecore,TDESocket,,, tdecore,TDEStandardDirs,,, @@ -101,7 +101,7 @@ tdecore,TDEStartupInfo,,, tdecore,TDEStartupInfoData,,, tdecore,TDEStartupInfoId,,, tdecore,KStaticDeleterBase,,, -tdecore,KStdAccel,,, +tdecore,TDEStdAccel,,, tdecore,KStringHandler,,, tdecore,KTempDir,,, tdecore,KTempFile,,, @@ -180,12 +180,12 @@ tdeui,KAboutContributor,,, tdeui,KAboutDialog,,, tdeui,KAboutKDE,,, tdeui,KAboutWidget,,, -tdeui,KAction,,, -tdeui,KActionCollection,,, -tdeui,KActionMenu,,, -tdeui,KActionPtrShortcutList,,, -tdeui,KActionSeparator,,, -tdeui,KActionShortcutList,,, +tdeui,TDEAction,,, +tdeui,TDEActionCollection,,, +tdeui,TDEActionMenu,,, +tdeui,TDEActionPtrShortcutList,,, +tdeui,TDEActionSeparator,,, +tdeui,TDEActionShortcutList,,, tdeui,KActiveLabel,,, tdeui,KAnimWidget,,, tdeui,KArrowButton,,, @@ -243,12 +243,12 @@ tdeui,KEditListBox,,, tdeui,KEditToolbar,,, tdeui,KEditToolbarWidget,,, tdeui,KFloatValidator,,, -tdeui,KFontAction,,, -tdeui,KFontChooser,,, -tdeui,KFontCombo,,, -tdeui,KFontDialog,,, -tdeui,KFontRequester,,, -tdeui,KFontSizeAction,,, +tdeui,TDEFontAction,,, +tdeui,TDEFontChooser,,, +tdeui,TDEFontCombo,,, +tdeui,TDEFontDialog,,, +tdeui,TDEFontRequester,,, +tdeui,TDEFontSizeAction,,, tdeui,KGradientSelector,,, tdeui,KGuiItem,,, tdeui,KHSSelector,,, @@ -267,13 +267,13 @@ tdeui,KKeyDialog,,, tdeui,KLed,,, tdeui,KLineEdit,,, tdeui,KLineEditDlg,,, -tdeui,KListAction,,, -tdeui,KListBox,,, -tdeui,KListView,,, -tdeui,KListViewItem,,, +tdeui,TDEListAction,,, +tdeui,TDEListBox,,, +tdeui,TDEListView,,, +tdeui,TDEListViewItem,,, tdeui,KMacroCommand,,, -tdeui,KMainWindow,,, -tdeui,KMainWindowInterface,,, +tdeui,TDEMainWindow,,, +tdeui,TDEMainWindowInterface,,, tdeui,KMenuBar,,, tdeui,KMessageBox,,, tdeui,KMimeTypeValidator,,, @@ -287,22 +287,22 @@ tdeui,KPanelMenu,,, tdeui,KPassivePopup,,, tdeui,KPasswordDialog,,, tdeui,KPasswordEdit,,, -tdeui,KPasteTextAction,,, +tdeui,TDEPasteTextAction,,, tdeui,KPixmapIO,,, -tdeui,KPopupFrame,,, -tdeui,KPopupMenu,,, -tdeui,KPopupTitle,,, +tdeui,TDEPopupFrame,,, +tdeui,TDEPopupMenu,,, +tdeui,TDEPopupTitle,,, tdeui,KProgress,,, tdeui,KProgressDialog,,, tdeui,KPushButton,,, -tdeui,KRadioAction,,, -tdeui,KRecentFilesAction,,, +tdeui,TDERadioAction,,, +tdeui,TDERecentFilesAction,,, tdeui,KRestrictedLine,,, tdeui,KRootPermsIcon,,, tdeui,KRootPixmap,,, tdeui,KRuler,,, -tdeui,KSelectAction,,, -tdeui,KSelector,,, +tdeui,TDESelectAction,,, +tdeui,TDESelector,,, tdeui,KSeparator,,, tdeui,KSplashScreen,,, tdeui,KSqueezedTextLabel,,, @@ -320,14 +320,14 @@ tdeui,KTextEdit,,, tdeui,KTimeWidget,,, tdeui,KTipDatabase,,, tdeui,KTipDialog,,, -tdeui,KToggleAction,,, -tdeui,KToggleFullScreenAction,,, -tdeui,KToggleToolBarAction,,, -tdeui,KToolBar,,, -tdeui,KToolBarButton,,, -tdeui,KToolBarPopupAction,,, -tdeui,KToolBarRadioGroup,,, -tdeui,KToolBarSeparator,,, +tdeui,TDEToggleAction,,, +tdeui,TDEToggleFullScreenAction,,, +tdeui,TDEToggleToolBarAction,,, +tdeui,TDEToolBar,,, +tdeui,TDEToolBarButton,,, +tdeui,TDEToolBarPopupAction,,, +tdeui,TDEToolBarRadioGroup,,, +tdeui,TDEToolBarSeparator,,, tdeui,KURLLabel,,, tdeui,KValueSelector,,, tdeui,KWidgetAction,,, @@ -341,7 +341,7 @@ tdeui,KXMLGUIClient,,, tdeui,KXMLGUIFactory,,, tdeui,KXYSelector,,, tdeui,QXEmbed,,, -tdeui,testKActionList,,, +tdeui,testTDEActionList,,, tdefile,TDEApplicationPropsPlugin,,, tdefile,KBindingPropsPlugin,,, tdefile,KCombiView,,, @@ -382,7 +382,7 @@ tdefile,KOpenWithDlg,,, tdefile,KPreviewWidgetBase,,, tdefile,KPropertiesDialog,,, tdefile,KPropsDlgPlugin,,, -tdefile,KRecentDocument,,, +tdefile,TDERecentDocument,,, tdefile,KURLBar,,, tdefile,KURLBarItem,,, tdefile,KURLBarItemDialog,,, diff --git a/examples/pytde-sampler/runner.py b/examples/pytde-sampler/runner.py index d9eee11..1bfb18b 100755 --- a/examples/pytde-sampler/runner.py +++ b/examples/pytde-sampler/runner.py @@ -4,16 +4,16 @@ """ import sys from tdecore import TDEApplication, TDECmdLineArgs -from tdeui import KMainWindow +from tdeui import TDEMainWindow from qt import TQVBoxLayout ## relative import -- cry me a river! import about -class SamplerRunnerWindow(KMainWindow): +class SamplerRunnerWindow(TDEMainWindow): def __init__(self, ctor): - KMainWindow.__init__(self) + TDEMainWindow.__init__(self) layout = TQVBoxLayout(self) layout.setAutoAdd(True) self.widget = ctor(self) diff --git a/examples/pytde-sampler/sampler.py b/examples/pytde-sampler/sampler.py index dfb2a06..30e1828 100755 --- a/examples/pytde-sampler/sampler.py +++ b/examples/pytde-sampler/sampler.py @@ -17,8 +17,8 @@ from qt import TQSizePolicy, TQHBoxLayout, TQSpacerItem, TQPushButton from tdecore import i18n, TDEAboutData, TDEApplication, TDECmdLineArgs, TDEGlobal from tdecore import TDEGlobalSettings, KWin, KWinModule, KURL, KIcon -from tdeui import KComboBox, KListView, KListViewItem, KTabWidget, KTextEdit -from tdeui import KMainWindow, KPushButton, KSplashScreen, KStdAction +from tdeui import KComboBox, TDEListView, TDEListViewItem, KTabWidget, KTextEdit +from tdeui import TDEMainWindow, KPushButton, KSplashScreen, KStdAction from tdeui import KKeyDialog, KEditToolbar from kio import TDETrader @@ -197,12 +197,12 @@ class OutputFrame(KTextEdit): return getattr(self.filehandle, name) -class SamplerListView(KListView): +class SamplerListView(TDEListView): """ the main list view of samples """ def __init__(self, parent): - KListView.__init__(self, parent) + TDEListView.__init__(self, parent) self.addColumn(i18n('Sample')) self.setRootIsDecorated(True) @@ -217,7 +217,7 @@ class SamplerListView(KListView): topname, subnames = names[0], names[1:] item = roots.get(topname, None) if item is None: - roots[topname] = item = KListViewItem(self, module.labelText()) + roots[topname] = item = TDEListViewItem(self, module.labelText()) item.module = module item.setPixmap(0, getIcon(module.icon())) @@ -228,7 +228,7 @@ class SamplerListView(KListView): item = cache.get(bname, None) if item is None: subitem = cache[bname] = \ - KListViewItem(subitem, module.labelText()) + TDEListViewItem(subitem, module.labelText()) subitem.module = module subitem.setPixmap(0, getIcon(module.icon())) subitem = item @@ -237,12 +237,12 @@ class SamplerListView(KListView): self.setOpen(root, True) -class SamplerMainWindow(KMainWindow): +class SamplerMainWindow(TDEMainWindow): """ the main window """ def __init__(self, *args): - KMainWindow.__init__(self, *args) + TDEMainWindow.__init__(self, *args) self.hSplitter = hSplit = TQSplitter(TQt.Horizontal, self) self.samplesList = samplesList = SamplerListView(hSplit) self.vSplitter = vSplit = TQSplitter(TQt.Vertical, hSplit) |