From 432ed6857a0a5904f0a2b96afa94f96a7ccc82d3 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 7 Feb 2013 11:03:01 -0600 Subject: Rename KAbout to avoid conflicts with KDE4 --- examples/pytde-sampler/HOWTO.samples | 2 +- examples/pytde-sampler/dialogs/about/aboutapp.py | 8 ++++---- examples/pytde-sampler/dialogs/about/aboutkde.py | 6 +++--- examples/pytde-sampler/dialogs/bugreport.py | 2 +- examples/pytde-sampler/icon_handling/misc.py | 2 +- examples/pytde-sampler/icon_handling/sizes.py | 2 +- examples/pytde-sampler/qt_widgets/CONTRIB | 16 ++++++++-------- examples/uimodules/uidialogs.py | 10 +++++----- examples/uisampler.py | 6 +++--- 9 files changed, 27 insertions(+), 27 deletions(-) (limited to 'examples') diff --git a/examples/pytde-sampler/HOWTO.samples b/examples/pytde-sampler/HOWTO.samples index 3c13704..8006eb4 100644 --- a/examples/pytde-sampler/HOWTO.samples +++ b/examples/pytde-sampler/HOWTO.samples @@ -30,7 +30,7 @@ In side the module, add the following: - docParts - two-tuple (optional) default: None - example: ('tdeui', 'KAboutDialog') + example: ('tdeui', 'TDEAboutDialog') If specified, this sequence should contain two items, first item name of pytde module, second item name of class within the module. diff --git a/examples/pytde-sampler/dialogs/about/aboutapp.py b/examples/pytde-sampler/dialogs/about/aboutapp.py index 820d50f..7fe2b75 100644 --- a/examples/pytde-sampler/dialogs/about/aboutapp.py +++ b/examples/pytde-sampler/dialogs/about/aboutapp.py @@ -1,15 +1,15 @@ iconName = 'about_kde' -labelText = 'KAboutApplication' +labelText = 'TDEAboutApplication' from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from tdecore import i18n -from tdeui import KAboutApplication, KPushButton, KTextEdit +from tdeui import TDEAboutApplication, KPushButton, KTextEdit helpText = ("Typically available via the applications 'Help' menu, this " "dialog presents the user with the applications About widget.") -docParts = ('tdeui', 'KAboutDialog') +docParts = ('tdeui', 'TDEAboutDialog') class MainFrame(TQFrame): def __init__(self, parent=None): @@ -25,5 +25,5 @@ class MainFrame(TQFrame): self.connect(self.button, SIGNAL('clicked()'), self.showAboutDialog) def showAboutDialog(self): - dlg = KAboutApplication(self) + dlg = TDEAboutApplication(self) dlg.show() diff --git a/examples/pytde-sampler/dialogs/about/aboutkde.py b/examples/pytde-sampler/dialogs/about/aboutkde.py index dc7390c..183c6fb 100644 --- a/examples/pytde-sampler/dialogs/about/aboutkde.py +++ b/examples/pytde-sampler/dialogs/about/aboutkde.py @@ -1,9 +1,9 @@ iconName = 'about_kde' -labelText = 'KAboutKDE' +labelText = 'TDEAboutKDE' from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from tdecore import i18n -from tdeui import KAboutKDE, KPushButton, KTextEdit +from tdeui import TDEAboutKDE, KPushButton, KTextEdit helpText = ("Typically available via the applications 'Help' menu, this " @@ -24,5 +24,5 @@ class MainFrame(TQFrame): self.connect(self.button, SIGNAL('clicked()'), self.showAboutDialog) def showAboutDialog(self): - dlg = KAboutKDE(self) + dlg = TDEAboutKDE(self) dlg.show() diff --git a/examples/pytde-sampler/dialogs/bugreport.py b/examples/pytde-sampler/dialogs/bugreport.py index 76fe0ae..caf72f7 100644 --- a/examples/pytde-sampler/dialogs/bugreport.py +++ b/examples/pytde-sampler/dialogs/bugreport.py @@ -8,7 +8,7 @@ labelText = 'KBugReport' from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from tdecore import i18n -from tdeui import KAboutDialog, KPushButton, KBugReport, KTextEdit +from tdeui import TDEAboutDialog, KPushButton, KBugReport, KTextEdit helpText = ("KDE provides a way to report bugs from applications. This dialog" diff --git a/examples/pytde-sampler/icon_handling/misc.py b/examples/pytde-sampler/icon_handling/misc.py index cab3571..748dd64 100644 --- a/examples/pytde-sampler/icon_handling/misc.py +++ b/examples/pytde-sampler/icon_handling/misc.py @@ -5,7 +5,7 @@ labelText = 'Misc.' from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL, TQPoint from tdecore import i18n -from tdeui import KAboutDialog, KPushButton, KBugReport, KTextEdit +from tdeui import TDEAboutDialog, KPushButton, KBugReport, KTextEdit from tdeui import KRootPermsIcon, KWritePermsIcon diff --git a/examples/pytde-sampler/icon_handling/sizes.py b/examples/pytde-sampler/icon_handling/sizes.py index af7226d..a76671a 100644 --- a/examples/pytde-sampler/icon_handling/sizes.py +++ b/examples/pytde-sampler/icon_handling/sizes.py @@ -5,7 +5,7 @@ labelText = 'Icon Sizing' from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from tdecore import i18n -from tdeui import KAboutDialog, KPushButton, KBugReport, KTextEdit +from tdeui import TDEAboutDialog, KPushButton, KBugReport, KTextEdit helpText = ("") diff --git a/examples/pytde-sampler/qt_widgets/CONTRIB b/examples/pytde-sampler/qt_widgets/CONTRIB index 8f12647..da5a068 100644 --- a/examples/pytde-sampler/qt_widgets/CONTRIB +++ b/examples/pytde-sampler/qt_widgets/CONTRIB @@ -12,8 +12,8 @@ tdecore,DesktopIcon,,, tdecore,DesktopIconSet,,, tdecore,IconSize,,, tdecore,TDEAboutData,,, -tdecore,KAboutPerson,,, -tdecore,KAboutTranslator,,, +tdecore,TDEAboutPerson,,, +tdecore,TDEAboutTranslator,,, tdecore,TDEAccel,,, tdecore,TDEAccelAction,,, tdecore,TDEAccelActions,,, @@ -174,12 +174,12 @@ tdesu,PtyProcess,,, tdesu,SshProcess,,, tdesu,StubProcess,,, tdesu,SuProcess,,, -tdeui,KAboutApplication,,, -tdeui,KAboutContainer,,, -tdeui,KAboutContributor,,, -tdeui,KAboutDialog,,, -tdeui,KAboutKDE,,, -tdeui,KAboutWidget,,, +tdeui,TDEAboutApplication,,, +tdeui,TDEAboutContainer,,, +tdeui,TDEAboutContributor,,, +tdeui,TDEAboutDialog,,, +tdeui,TDEAboutKDE,,, +tdeui,TDEAboutWidget,,, tdeui,TDEAction,,, tdeui,TDEActionCollection,,, tdeui,TDEActionMenu,,, diff --git a/examples/uimodules/uidialogs.py b/examples/uimodules/uidialogs.py index 8b102b4..82e6260 100644 --- a/examples/uimodules/uidialogs.py +++ b/examples/uimodules/uidialogs.py @@ -3,7 +3,7 @@ from qt import TQVBox, TQLabel, TQLineEdit, TQString, TQPixmap, TQPushButton, TQ from tdecore import TDEAccel, i18n -from tdeui import KAboutDialog, KAboutKDE, KBugReport, KColorDialog, KDialog, KDialogBase, TDEFontDialog,\ +from tdeui import TDEAboutDialog, TDEAboutKDE, KBugReport, KColorDialog, KDialog, KDialogBase, TDEFontDialog,\ KPasswordDialog, KMessageBox, KLineEditDlg, KKeyDialog, KWizard # despite what the docs say, there is no enum (in 2.1.1 anyway) @@ -124,8 +124,8 @@ class MessageDlg (KDialog): 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) +def dlgTDEAboutDialog (parent): + dlg = TDEAboutDialog (parent, 'about dialog', False) dlg.setLogo (TQPixmap ("pytestimage.png")) dlg.setTitle ("UISampler for PyKDE") dlg.setAuthor ("Jim Bublitz", "jbublitz@nwinternet.com", "http://www.riverbankcomputing.co.uk",\ @@ -139,8 +139,8 @@ def dlgKBugReport (parent): dlg = KBugReport (parent) dlg.exec_loop () -def dlgKAboutKDE (parent): - dlg = KAboutKDE (parent, "about kde", False) +def dlgTDEAboutKDE (parent): + dlg = TDEAboutKDE (parent, "about kde", False) dlg.show () def dlgKColorDialog (parent): diff --git a/examples/uisampler.py b/examples/uisampler.py index 98437ee..a746854 100644 --- a/examples/uisampler.py +++ b/examples/uisampler.py @@ -16,9 +16,9 @@ False = 0 True = not False listItems = {"Dialogs": - {"KAboutDialog": ["KAboutApplication", "KAboutContainer", "KImageTrackLabel",\ - "KAboutContainerBase", "KAboutContributor", "KAboutWidget"],\ - "KAboutKDE": [],\ + {"TDEAboutDialog": ["TDEAboutApplication", "TDEAboutContainer", "KImageTrackLabel",\ + "TDEAboutContainerBase", "TDEAboutContributor", "TDEAboutWidget"],\ + "TDEAboutKDE": [],\ "KBugReport": [],\ "KColorDialog": [],\ "KDialog": [],\ -- cgit v1.2.1