diff --git a/app_templates/kcontrol_module/src/kcontrol_module.py b/app_templates/kcontrol_module/src/kcontrol_module.py index 1320c07..67e1573 100755 --- a/app_templates/kcontrol_module/src/kcontrol_module.py +++ b/app_templates/kcontrol_module/src/kcontrol_module.py @@ -20,7 +20,7 @@ from qt import * from tdecore import * from tdeui import * -import kdedesigner +import tdedesigner from KcontrolModuleWidgetUI import * description = "A Kcontrol module" diff --git a/app_templates/kdeutility/src/kdeutility.py b/app_templates/kdeutility/src/kdeutility.py index 73a6833..58b9585 100755 --- a/app_templates/kdeutility/src/kdeutility.py +++ b/app_templates/kdeutility/src/kdeutility.py @@ -19,7 +19,7 @@ import sys from qt import * from tdecore import * from tdeui import * -import kdedesigner +import tdedesigner from KDEUtilityDialogUI import * description = "A KDE Utility" diff --git a/doc/en/index.docbook b/doc/en/index.docbook index db50244..fc64296 100644 --- a/doc/en/index.docbook +++ b/doc/en/index.docbook @@ -1,12 +1,12 @@ PyKDE Extensions"> + PyTDE Extensions"> - - + + ]> @@ -61,14 +61,14 @@ creation and installation of TDE applications. -KDE -PyKDE Extensions +TDE +PyTDE Extensions python -PyKDE +PyTDE @@ -88,11 +88,11 @@ creation and installation of TDE applications. Installation & Distutils support -C++ projects on KDE traditionally use +C++ projects on TDE traditionally use autoconf, automake and libtool -to handle the building and installation. These tools +to handle the building and installation. These tools and difficult to use, even for experianced developers. @@ -100,12 +100,12 @@ and difficult to use, even for experianced developers. Fortunately Python has a its own system for building and installing modules and software. Distutils is a standard Python package and comes with every Python installation. -&appname; builds on Distutils with extensions tailored for handling KDE +&appname; builds on Distutils with extensions tailored for handling TDE programs. -A typical KDE program comes not only with the program itself but also +A typical TDE program comes not only with the program itself but also extra files such as a manual written in Docbook format, translation files, icons, images and other auxiliary data files. &appname; provides support for @@ -113,22 +113,22 @@ handling all these other files types. -Using Distutils with KDE programs +Using Distutils with TDE programs It is advised that you first read the standard Distutils documentation -to learn about how it works. &appname; adds some KDE specific extensions which are documented +to learn about how it works. &appname; adds some TDE specific extensions which are documented below. Distutils is based around writing a setup.py file which then uses the distutils package -To use the KDE extensions, the first thing you need to do in your setup.py +To use the TDE extensions, the first thing you need to do in your setup.py file is include the tdedistutils package. #!/usr/bin/env python -# Setup.py file for MyKDEApplication +# Setup.py file for MyTDEApplication import tdedistutils @@ -149,7 +149,7 @@ tdedistutils.setup(name="pytdeextensions", min_kde_version and min_qt_version specify -the minimum versions of the Qt library and KDE needed to install and run +the minimum versions of the Qt library and TDE needed to install and run the software. These requirements are checked during install. @@ -163,7 +163,7 @@ arguments. Application data files -Each KDE application as a data directory of it's own for storing any extra +Each TDE application as a data directory of it's own for storing any extra data files it may need to run. @@ -191,7 +191,7 @@ find the correct file to import. Even with all of the python files in the Application data directory, it is -still desirable to have your application's "executables" available in KDE's +still desirable to have your application's "executables" available in TDE's bin directory. &appname; provides an easy way for creating symbolic links from the "bin" directory to scripts in the application directory. @@ -208,7 +208,7 @@ in the application data directory. Uninstall command -Standard Distutils does not feature an uninstall command. &appname; does +Standard Distutils does not feature an uninstall command. &appname; does and it can be easily invoked with: python setup.py uninstall @@ -229,7 +229,7 @@ Docbook is an XML based file format for writing manuals and books. More information about using Docbook to write manuals and documentation using Docbook is here. Manuals are written in the Docbook format, but need to be converted -into HTML when installed and made available for the KDE Help Center. +into HTML when installed and made available for the TDE Help Center. @@ -270,22 +270,22 @@ to be converted into Python classes before they can be used in a Python application. This can be manually done using the pyuic command from the shell. But it is a lot more convenient to let &appname; to this automatically for you. All you need to do is import the -qtdesigner or kdedesigner module, depending -on whether your application is pure Qt or uses KDE, and then you can import +qtdesigner or tdedesigner module, depending +on whether your application is pure Qt or uses TDE, and then you can import your user interface files as though they were normal Python files. #!/usr/bin/env python from tdeui import * -import kdedesigner # This module lets us import .ui file directly. +import tdedesigner # This module lets us import .ui file directly. from MyWindow import * # Loads MyWindow.ui # Subclass the Qt-designer form. class MyWindowCode(MyWindow): # Implement extra functionality and methods. -The kdedesigner/qtdesigner module converts +The tdedesigner/qtdesigner module converts .ui on demand to .py files. @@ -298,8 +298,8 @@ The kdedesigner/qtdesigner module converts i18n (an abbreviation of internationalization) is the process of translating the user interface and documentation of a piece of software into another -language. i18n.kde.org is the central -information point for the effort to translate KDE software into other +language. i18n.kde.org is the central +information point for the effort to translate TDE software into other languages. @@ -339,7 +339,7 @@ in your setup.py, you can specify the directory that should contain the .pot and .po files. The argument for i18n is a tuple. The first item is the relative path -to the directory where the translation files should be stored. The +to the directory where the translation files should be stored. The second item is a list of directories that should be scanned for Python source files containing translatable strings. @@ -370,32 +370,32 @@ needed by the application at runtime. TDE Control Center Modules -&appname; can also help create modules for the TDE Control Center. +&appname; can also help create modules for the TDE Control Center. C++ glue code is needed when writing in module in Python. Fortunately &appname; can generate this glue for you automatically. -The best way to start learning about creating modules is to read the +The best way to start learning about creating modules is to read the TDEConfig Module HOWTO. It is written for C++, but the concepts are the same for Python. In your setup.py file you can specify the list of kcontrol -modules that need to be installed. +modules that need to be installed. kcontrol_modules = [ ('src/kcontrol_module.desktop','kcontrol_module.py')] ) This is just a list of tuples. The first item is name of the .desktop file that you've made for your module. The second item is the name of the Python program to run when the -user views the module in kcontrol. This program is expected to be in +user views the module in kcontrol. This program is expected to be in the application's data files directory. The KControl Module Guidelines provides useful information about how to -design a KControl module that fits into the rest of KDE. +design a KControl module that fits into the rest of TDE. @@ -434,14 +434,14 @@ has some documentation about TDEIO-slaves aimed at C++ programmers. In your setup.py file you can specify the list of tdeioslaves -that need to be installed. +that need to be installed. tdeioslaves = [ ('src/tdeioslave.protocol','tdeioslave.py')] ) This is just a list of tuples. The first item is name of the .protocol file that you've made for your tdeio-slave. The second item is the name of the Python program to run when the -user views the module in kcontrol. This program is expected to be in +user views the module in kcontrol. This program is expected to be in the application's data files directory. @@ -453,7 +453,7 @@ the application's data files directory. The app_templates directory contains a number of application templates. An application template is just a collection of files -in a directory structure that should be copied and used as starting point +in a directory structure that should be copied and used as starting point when developing a new application. An application template typically contains default documentation files, icons, source file and setup.py file which can later be modified. @@ -551,16 +551,16 @@ described below. -Simple KDE utility template +Simple TDE utility template The kdeutility application template is a simple utility -that uses an interface designed in Qt-Designer. It doesn't have a menubar +that uses an interface designed in Qt-Designer. It doesn't have a menubar or toolbar. -KDE application template +TDE application template The kdeapp application template is an application with menubar, toolbar and separated document and view classes. The menubar and toolbars @@ -581,7 +581,7 @@ application outside of KControl to ease development and debugging. TDEIO-slave Application Template The tdeioslave application template is a simple -TDEIO-slave that implements a simple RAM disk. Once installed it can be +TDEIO-slave that implements a simple RAM disk. Once installed it can be accessed using tdeioslave:/ in konqueror. It is initially empty. Files and directories can be made and deposited. tdeioslave.py contains more information and comments. @@ -629,7 +629,7 @@ Programming &appname; plugins is a joy to behold. Just read through the next remove a list of children from a parent widget's managed list. widgetsremoving -XtUnmanageChildren +XtUnmanageChildren @@ -779,7 +779,7 @@ installed. Credits and License @@ -869,6 +869,6 @@ sgml-indent-step:0 sgml-indent-data:nil End: -vim:tabstop=2:shiftwidth=2:expandtab +vim:tabstop=2:shiftwidth=2:expandtab --> diff --git a/setup.py b/setup.py index cb7e4b5..22ab41f 100755 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ def main(): min_qt_version = "3.0.0", license = "LGPL", package_dir = {'': 'src'}, - py_modules = ["tdedistutils","qtuicompiler","qtdesigner","kdedesigner"], + py_modules = ["tdedistutils","qtuicompiler","qtdesigner","tdedesigner"], application_data = ["app_templates","AUTHORS","ChangeLog","COPYING","INSTALL","NEWS"], docbooks = [ ('doc/en','en') ], cmdclass = { diff --git a/src/kdedesigner.py b/src/tdedesigner.py similarity index 95% rename from src/kdedesigner.py rename to src/tdedesigner.py index 7a2b898..ca58728 100644 --- a/src/kdedesigner.py +++ b/src/tdedesigner.py @@ -1,6 +1,6 @@ #!/usr/bin/python ############################################################################ -# kdedesigner - description # +# tdedesigner - description # # ------------------------------ # # begin : Thu Apr 21 2005 # # copyright : (C) 2005 by Simon Edwards #