diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 18:16:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 18:16:46 +0000 |
commit | a7af74e75730559f7f9661e449eb269e356d9907 (patch) | |
tree | 72026b40b3a513aa21d630fb09ae10edab7f9e18 /app_templates/kdeutility/src | |
download | pytdeextensions-a7af74e75730559f7f9661e449eb269e356d9907.tar.gz pytdeextensions-a7af74e75730559f7f9661e449eb269e356d9907.zip |
Added KDE3 version of pykdeextensions
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/libraries/pykdeextensions@1097589 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'app_templates/kdeutility/src')
-rw-r--r-- | app_templates/kdeutility/src/KDEUtilityDialogUI.ui | 33 | ||||
-rw-r--r-- | app_templates/kdeutility/src/hi16-app-kdeutility.png | 8 | ||||
-rw-r--r-- | app_templates/kdeutility/src/hi32-app-kdeutility.png | 26 | ||||
-rw-r--r-- | app_templates/kdeutility/src/kdeutility.desktop | 35 | ||||
-rw-r--r-- | app_templates/kdeutility/src/kdeutility.lsm | 16 | ||||
-rwxr-xr-x | app_templates/kdeutility/src/kdeutility.py | 51 |
6 files changed, 169 insertions, 0 deletions
diff --git a/app_templates/kdeutility/src/KDEUtilityDialogUI.ui b/app_templates/kdeutility/src/KDEUtilityDialogUI.ui new file mode 100644 index 0000000..af12ef1 --- /dev/null +++ b/app_templates/kdeutility/src/KDEUtilityDialogUI.ui @@ -0,0 +1,33 @@ +<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>KDEUtilityDialogUI</class> +<widget class="QDialog"> + <property name="name"> + <cstring>KDEUtilityDialogUI</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>600</width> + <height>480</height> + </rect> + </property> + <property name="caption"> + <string>KDE Utility</string> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QPushButton"> + <property name="name"> + <cstring>hellobutton</cstring> + </property> + <property name="text"> + <string>Hello, Good bye</string> + </property> + </widget> + </vbox> +</widget> +<layoutdefaults spacing="6" margin="11"/> +</UI> diff --git a/app_templates/kdeutility/src/hi16-app-kdeutility.png b/app_templates/kdeutility/src/hi16-app-kdeutility.png new file mode 100644 index 0000000..40fe05e --- /dev/null +++ b/app_templates/kdeutility/src/hi16-app-kdeutility.png @@ -0,0 +1,8 @@ +PNG + + +IHDR +5MZfθ92@ +2wlA;vc)\)/l F\ϓ~SXŦ=tj76{rumu_% }fb{ZRdY7C2TWՓӲO>fXGȵ,F&/#x<&P%]EܖCfUS +"l+*JǰMJde9Hz]qTPBI +}Q bR ]nvbf,û:Ld4PuC7AK\^ϟ=.~|َ2w|xwNVd/RK6+ɤĦ7fmc5hr96MD#x=IaނOHxc7=# UDoVi diff --git a/app_templates/kdeutility/src/hi32-app-kdeutility.png b/app_templates/kdeutility/src/hi32-app-kdeutility.png new file mode 100644 index 0000000..8a6093e --- /dev/null +++ b/app_templates/kdeutility/src/hi32-app-kdeutility.png @@ -0,0 +1,26 @@ +PNG + + +IHDR +:IDATx{\}?wy;;}`k̲~&qR-HGpk +PPJ&( +JEQ4Iq QDHC~D6Bصٵ̝ٝ;;?f1 i{+]}k_åòBe,ˢ3֖6Tض3'``Iem=}j^wO<wYkV_˺x,M?.x!cČl8voZ;ퟙ<rV͌O>\OzU#fha7YI5r엇@[ +>u;joQk╳?ڕkq +-t/E(tB 06se_?u7сQ3r)%H+B +֎6CHWRШ7ؾk33M_<dzGfXbq@YӷƬ\o֭Z8B!</MP Xi-zJA(AHHGD\fcTJekVa lYk/r +:.bX,[ws yh) +ta# H㶸>g~So +/Y58ȗ$iTJjA +50> +ntMt?gj|#O=]d۶ȕr(߱z'N̐)E +<ABP0[,fTR Va# _y3z&˛KgAPTBcpno&+NIfS9~*K˒ҌMQ(MͲSFHA(dDjmB`aﭷfhz +cӳ +PJ8^*K. +OP >(--H,$Rj9 '$z1C/;8>|p-ZfRYx?%7!%c+EĪѡmmb#I3x AB3vnF4qvSuBBIT +G)^s~*G&b~.N46ǩ3HH_lϻ%:ґm-dbi\ +YTR~ +3`ʮ +xS(W˖eY,8a{Qnf*0%I] +Uܲ!Eg(6-:.JJTEZ ^:E$rbjqK*"͖L\ +i#hh-ƖM[rήGk eTNrbH6ʼn/? he3ZBTl*J6])X?C{GZGQLT!ʒMdDS/YC^]M[?~/E,T(B\oղ,g}<| h0[,_ H'<ٸG*5WfIZXym/%uMTk5XaEkdpOe+($gb\8/ +l!0ZW'^],BwؼzF%9-+ڮhΧ,bl\l4f7 diff --git a/app_templates/kdeutility/src/kdeutility.desktop b/app_templates/kdeutility/src/kdeutility.desktop new file mode 100644 index 0000000..2787759 --- /dev/null +++ b/app_templates/kdeutility/src/kdeutility.desktop @@ -0,0 +1,35 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=$APPNAME$ +Exec=$APPNAMELC$ %i %m -caption "%c" +Icon=$APPNAMELC$ +Type=Application +DocPath=$APPNAMELC$/$APPNAMELC$.html +Comment=A KDE KPart Application +Comment[ca]=Una aplicació KPart per a KDE +Comment[cy]=Cymhwysiad KPart KDE +Comment[da]=Et KDE KPart program +Comment[de]=Eine KDE-Komponenten-Anwendung +Comment[el]=Μια εφαρμογή KPart του KDE +Comment[es]=Una aplicación KPart de KDE +Comment[et]=KDE KPart rakendus +Comment[fr]=Une application KPart pour KDE. +Comment[hi]=एक केडीई के-पार्ट अनुप्रयोग +Comment[hu]=KPart-alapú KDE-alkalmazás +Comment[is]=KDE KPart forrit +Comment[it]=Applicazione KPart di KDE +Comment[ja]=KDE KPart アプリケーション +Comment[nb]=Et KDE KPart-program +Comment[nl]=Een KDE KPart-toepassing +Comment[pl]=Aplikacja KDE +Comment[pt]=Uma aplicação KPart do KDE +Comment[pt_BR]=Um Aplicativo KPart do KDE +Comment[ru]=Приложение KPart для KDE +Comment[sl]=Program KPart za KDE +Comment[sr]=KDE KPart програм +Comment[sr@Latn]=KDE KPart program +Comment[sv]=Ett KDE Kpart-program +Comment[ta]=கெடி கெபார்ட் பயன்பாடு +Comment[tg]=Ба кор андохтани KPart барои KDE +Comment[zh_CN]=一个 KDE KPart 应用程序 +Terminal=0 diff --git a/app_templates/kdeutility/src/kdeutility.lsm b/app_templates/kdeutility/src/kdeutility.lsm new file mode 100644 index 0000000..43d0d5f --- /dev/null +++ b/app_templates/kdeutility/src/kdeutility.lsm @@ -0,0 +1,16 @@ +Begin3 +Title: $APPNAME$ -- Some description +Version: $VERSION$ +Entered-date: +Description: +Keywords: KDE Qt +Author: $AUTHOR$ <$EMAIL$> +Maintained-by: $AUTHOR$ <$EMAIL$> +Home-page: +Alternate-site: +Primary-site: ftp://ftp.kde.org/pub/kde/unstable/apps/utils + xxxxxx $APPNAMELC$-$VERSION$.tar.gz + xxx $APPNAMELC$-$VERSION$.lsm +Platform: Linux. Needs KDE +Copying-policy: $LICENSE$ +End diff --git a/app_templates/kdeutility/src/kdeutility.py b/app_templates/kdeutility/src/kdeutility.py new file mode 100755 index 0000000..e2849fe --- /dev/null +++ b/app_templates/kdeutility/src/kdeutility.py @@ -0,0 +1,51 @@ +#!/usr/bin/python +########################################################################### +# kdeutility - description # +# ------------------------------ # +# begin : Mon May 2 2005 # +# copyright : (C) 2005 by AUTHOR # +# email : your@email.com # +# # +########################################################################### +# # +# 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. # +# # +########################################################################### + +import sys +from qt import * +from kdecore import * +from kdeui import * +import kdedesigner +from KDEUtilityDialogUI import * + +description = "A KDE Utility" +version = "0.1"; + +class KDEUtilityDialog(KDEUtilityDialogUI): + def __init__(self): + KDEUtilityDialogUI.__init__(self,None,"TestApp") + # Add other methods, slots and signals here. + + +options = [] # No command line options. + +def main(): + global kapp,version,description,options + + aboutdata = KAboutData("kdeutility", "KdeUtility", version, description, \ + KAboutData.License_GPL, "(C) 2005 AUTHOR", None, None, "your@email.com") + aboutdata.addAuthor("AUTHOR", None, "your@email.com") + KCmdLineArgs.init(sys.argv,aboutdata) + #KCmdLineArgs.addCmdLineOptions(options) + kapp = KApplication() + + dialog = KDEUtilityDialog() + kapp.setMainWidget(dialog) + dialog.show() + + return kapp.exec_loop() +main() |