Part 1 of 2 of kdm rename

pull/1/head
Timothy Pearson 12 years ago
parent 10c7eb1cfb
commit b9a9e2fa8f

@ -20,7 +20,7 @@
Thanks Laurent!! Thanks Laurent!!
2005-03-23 (0.5): Theme adding now possible! (code borrowed from kcmicon) 2005-03-23 (0.5): Theme adding now possible! (code borrowed from kcmicon)
Known limitation currently is if you don't have a $TDEDIR/share/apps/kdm/themes/ Known limitation currently is if you don't have a $TDEDIR/share/apps/tdm/themes/
then the install will fail the first time but will be successful the 2nd time. then the install will fail the first time but will be successful the 2nd time.
2005-03-23 (0.6): Applied another patch from Laurent to fix a potential memory leak. 2005-03-23 (0.6): Applied another patch from Laurent to fix a potential memory leak.
@ -32,7 +32,7 @@
Display Description Display Description
If a theme's source directory no longer exists remove it from out list. If a theme's source directory no longer exists remove it from out list.
2005-03-24 (0.7): Use KDM icon. 2005-03-24 (0.7): Use TDM icon.
Moved to System Administration section. Moved to System Administration section.
Updated Documentation. Updated Documentation.
Fixed layout issues. Fixed layout issues.
@ -61,7 +61,7 @@
2005-07-19 (0.9.1): Updated the UI (added a bar, autosized the listbox columns and top aligned the details) 2005-07-19 (0.9.1): Updated the UI (added a bar, autosized the listbox columns and top aligned the details)
Fixed a bug where the Insert Url box and Button were not being disabled when loaded as non-root. Fixed a bug where the Insert Url box and Button were not being disabled when loaded as non-root.
Updated /admin to kde's in 3.4.1 (fixes the problem with --prefix not defaulting to kde's installed dir.) Updated /admin to kde's in 3.4.1 (fixes the problem with --prefix not defaulting to kde's installed dir.)
Attempt at fixing the "cannot find kdmrc file" error. Attempt at fixing the "cannot find tdmrc file" error.
2005-12-29 (0.9.2): Disable widgets when UseTheme is set to false. 2005-12-29 (0.9.2): Disable widgets when UseTheme is set to false.
When loading make sure a thumbnail is displayed, if one exists. When loading make sure a thumbnail is displayed, if one exists.
@ -74,7 +74,7 @@
2006-01-30 (1.0.1): When inserting a theme configChanged() was not run. 2006-01-30 (1.0.1): When inserting a theme configChanged() was not run.
2006-02-23 (1.1): Applied a patch from Jonathan Patrick Davies to fix an i18n/l10n issue. 2006-02-23 (1.1): Applied a patch from Jonathan Patrick Davies to fix an i18n/l10n issue.
Removed Themes Variable in the kdmrc (kdm devs didn't like it :) The problem with removing this however is you can now no longer "insert" themes, instead they all must be your $TDEDIR/share/kdm/themes dir. If you have always used kdmtheme to install themes and not insert them, you'll not need to worry. This will also mean that your list can now never be lost! (unless of course you lose your themes directory.) Also being that this list is now auto generated if you remove a theme be sure to check "remove from hard drive" if you don't want it to show up again on the next load. Removed Themes Variable in the tdmrc (tdm devs didn't like it :) The problem with removing this however is you can now no longer "insert" themes, instead they all must be your $TDEDIR/share/tdm/themes dir. If you have always used tdmtheme to install themes and not insert them, you'll not need to worry. This will also mean that your list can now never be lost! (unless of course you lose your themes directory.) Also being that this list is now auto generated if you remove a theme be sure to check "remove from hard drive" if you don't want it to show up again on the next load.
Updated address for the GPL license to match that found in KDE. Updated address for the GPL license to match that found in KDE.
2006-06-20 (1.1.1): Fixed 2 crashes 1 where no themes were found in your theme directory 2006-06-20 (1.1.1): Fixed 2 crashes 1 where no themes were found in your theme directory
@ -88,7 +88,7 @@
Fixed removing of themes from the list to a less hack-ish way. Fixed removing of themes from the list to a less hack-ish way.
Few i18n fixes Few i18n fixes
2006-08-12 (1.1.3): Added Indonesian/Manaysian translation to the .desktop (thanks kucrut!) 2006-08-12 (1.1.3): Added Indonesian/Manaysian translation to the .desktop (thanks kucrut!)
Finally applied a patch sent to me back when 1.1 was released, which fixes an issue when the kdmrc file could not be found. To the one who sent me this patch Sorry it took me so long, patch got lost in all my files and didn't apply cleanly due to the massive changes in 1.0.1 -> 1.1 Finally applied a patch sent to me back when 1.1 was released, which fixes an issue when the tdmrc file could not be found. To the one who sent me this patch Sorry it took me so long, patch got lost in all my files and didn't apply cleanly due to the massive changes in 1.0.1 -> 1.1
Added French, Italian and Japanese translations to the .desktop (thanks Lorenzo La Spada!) Added French, Italian and Japanese translations to the .desktop (thanks Lorenzo La Spada!)
Fixed a typo which caused an error message to be printed when it shouldn't have. Fixed a typo which caused an error message to be printed when it shouldn't have.
Updated documentation. Updated documentation.

@ -40,7 +40,7 @@ dnl Perform program name transformation
AC_ARG_PROGRAM AC_ARG_PROGRAM
dnl Automake doc recommends to do this only here. (Janos) dnl Automake doc recommends to do this only here. (Janos)
AM_INIT_AUTOMAKE(kdmtheme, 0.1) dnl searches for some needed programs AM_INIT_AUTOMAKE(tdmtheme, 0.1) dnl searches for some needed programs
KDE_SET_PREFIX KDE_SET_PREFIX

@ -1,5 +1,5 @@
#MIN_CONFIG(3.0.0) #MIN_CONFIG(3.0.0)
AM_INIT_AUTOMAKE(kdmtheme, 0.1) AM_INIT_AUTOMAKE(tdmtheme, 0.1)
AC_C_BIGENDIAN AC_C_BIGENDIAN
AC_CHECK_KDEMAXPATHLEN AC_CHECK_KDEMAXPATHLEN

@ -2,5 +2,5 @@
# in this directory they are installed into the english dir # in this directory they are installed into the english dir
KDE_LANG = en KDE_LANG = en
KDE_DOCS = kdmtheme KDE_DOCS = tdmtheme
SUBDIRS = $(AUTODIRS) SUBDIRS = $(AUTODIRS)

@ -1,2 +1,2 @@
KDE_DOCS = kdmtheme KDE_DOCS = tdmtheme
KDE_LANG = en KDE_LANG = en

@ -1,7 +1,7 @@
<?xml version="1.0" ?> <?xml version="1.0" ?>
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [ <!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
<!ENTITY kdmtheme "<application>kdmtheme 1.1.3</application>"> <!ENTITY tdmtheme "<application>tdmtheme 1.1.3</application>">
<!ENTITY kappname "&kdmtheme;"><!-- Do *not* replace kappname--> <!ENTITY kappname "&tdmtheme;"><!-- Do *not* replace kappname-->
<!ENTITY package "kde-module"><!-- tdebase, tdeadmin, etc --> <!ENTITY package "kde-module"><!-- tdebase, tdeadmin, etc -->
<!ENTITY % addindex "IGNORE"> <!ENTITY % addindex "IGNORE">
<!ENTITY % English "INCLUDE"><!-- change language only here --> <!ENTITY % English "INCLUDE"><!-- change language only here -->
@ -44,7 +44,7 @@ thanks ;-).
as Authors, publish date, the abstract, and Keywords --> as Authors, publish date, the abstract, and Keywords -->
<bookinfo> <bookinfo>
<title>The &kdmtheme; Handbook</title> <title>The &tdmtheme; Handbook</title>
<authorgroup> <authorgroup>
<author> <author>
@ -83,7 +83,7 @@ Do NOT change these in the translation. -->
<abstract> <abstract>
<para> <para>
&kdmtheme; is K Control Center Module designed to easily configure your KDM themes. &tdmtheme; is K Control Center Module designed to easily configure your TDM themes.
</para> </para>
</abstract> </abstract>
@ -93,9 +93,9 @@ Please at least include KDE, the KDE package it is in, the name
<keywordset> <keywordset>
<keyword>KDE</keyword> <keyword>KDE</keyword>
<keyword>kdmtheme</keyword> <keyword>tdmtheme</keyword>
<keyword>KDM</keyword> <keyword>TDM</keyword>
<keyword>KDM Theme Manager</keyword> <keyword>TDM Theme Manager</keyword>
</keywordset> </keywordset>
</bookinfo> </bookinfo>
@ -118,12 +118,12 @@ problems. Basically a long version of the abstract. Don't include a
revision history. (see installation appendix comment) --> revision history. (see installation appendix comment) -->
<para> <para>
&kdmtheme; is a K Control Module designed to easily configure your KDM themes. Please report problems either on <ulink url="http://kde-look.org/content/show.php?content=22120">kde-look/kde-apps</ulink> or email <email>smileaf@smileaf.org</email> &tdmtheme; is a K Control Module designed to easily configure your TDM themes. Please report problems either on <ulink url="http://kde-look.org/content/show.php?content=22120">kde-look/kde-apps</ulink> or email <email>smileaf@smileaf.org</email>
</para> </para>
</chapter> </chapter>
<chapter id="using-kdmtheme"> <chapter id="using-tdmtheme">
<title>Using &kdmtheme;</title> <title>Using &tdmtheme;</title>
<!-- This chapter should tell the user how to use your app. You should use as <!-- This chapter should tell the user how to use your app. You should use as
many sections (Chapter, Sect1, Sect3, etc...) as is necessary to fully document many sections (Chapter, Sect1, Sect3, etc...) as is necessary to fully document
@ -135,10 +135,10 @@ your application. -->
patent issues. --> patent issues. -->
<screenshot> <screenshot>
<screeninfo>Here's a screenshot of &kdmtheme;</screeninfo> <screeninfo>Here's a screenshot of &tdmtheme;</screeninfo>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="kdmtheme.png" format="PNG"/> <imagedata fileref="tdmtheme.png" format="PNG"/>
</imageobject> </imageobject>
<textobject> <textobject>
<phrase>Screenshot</phrase> <phrase>Screenshot</phrase>
@ -187,7 +187,7 @@ application work. -->
<para>My buttons are disabled!</para> <para>My buttons are disabled!</para>
</question> </question>
<answer> <answer>
<para>Is the "Enable KDM Themes" check box checked?</para> <para>Is the "Enable TDM Themes" check box checked?</para>
</answer> </answer>
</qandaentry> </qandaentry>
<qandaentry> <qandaentry>
@ -195,7 +195,7 @@ application work. -->
<para>I don't see any themes what's wrong?!</para> <para>I don't see any themes what's wrong?!</para>
</question> </question>
<answer> <answer>
<para>First make sure you didn't 'insert' any themes those are not saved only themes that appear in your theme directory are used. Next check your theme directory it should be located in your $TDEDIR/share/apps/kdm/themes/</para> <para>First make sure you didn't 'insert' any themes those are not saved only themes that appear in your theme directory are used. Next check your theme directory it should be located in your $TDEDIR/share/apps/tdm/themes/</para>
</answer> </answer>
</qandaentry> </qandaentry>
</qandaset> </qandaset>
@ -211,7 +211,7 @@ distribution. -->
<title>Credits and License</title> <title>Credits and License</title>
<para> <para>
&kdmtheme; &tdmtheme;
</para> </para>
<para> <para>
Program copyright %{YEAR} Stephen Leaf <email>smileaf@smileaf.org</email> Program copyright %{YEAR} Stephen Leaf <email>smileaf@smileaf.org</email>
@ -258,11 +258,11 @@ Documentation copyright %{YEAR} Stephen Leaf <email>smileaf@smileaf.org</email>
<appendix id="installation"> <appendix id="installation">
<title>Installation</title> <title>Installation</title>
<sect1 id="getting-kdmtheme"> <sect1 id="getting-tdmtheme">
<title>How to obtain &kdmtheme;</title> <title>How to obtain &tdmtheme;</title>
<para> <para>
&kdmtheme; is in most major distributions. Should yours not have a package please visit: <ulink url="http://kde-look.org/content/show.php?content=22120">The project page</ulink> &tdmtheme; is in most major distributions. Should yours not have a package please visit: <ulink url="http://kde-look.org/content/show.php?content=22120">The project page</ulink>
</para> </para>
</sect1> </sect1>
@ -281,14 +281,14 @@ information here.
--> -->
<para> <para>
In order to successfully use &kdmtheme;, you need &kde; >=3.4 In order to successfully use &tdmtheme;, you need &kde; >=3.4
</para> </para>
<!-- For a list of updates, you may refer to the application web site <!-- For a list of updates, you may refer to the application web site
or the ChangeLog file, or ... --> or the ChangeLog file, or ... -->
<para> <para>
You can find a list of changes at <ulink url="http://www.kde-apps.org/content/show.php?content=22120">The &kdmtheme; project page</ulink>. You can find a list of changes at <ulink url="http://www.kde-apps.org/content/show.php?content=22120">The &tdmtheme; project page</ulink>.
</para> </para>
</sect1> </sect1>

@ -2,15 +2,15 @@ INCLUDES = $(all_includes)
METASOURCES = AUTO METASOURCES = AUTO
# Install this plugin in the KDE modules directory # Install this plugin in the KDE modules directory
kde_module_LTLIBRARIES = kcm_kdmtheme.la kde_module_LTLIBRARIES = kcm_tdmtheme.la
kcm_kdmtheme_la_SOURCES = kdmtheme.cpp kcm_tdmtheme_la_SOURCES = tdmtheme.cpp
kcm_kdmtheme_la_LIBADD = -lkio -lknewstuff $(LIB_TDEUI) kcm_tdmtheme_la_LIBADD = -lkio -lknewstuff $(LIB_TDEUI)
kcm_kdmtheme_la_LDFLAGS = -avoid-version -module -no-undefined $(all_libraries) kcm_tdmtheme_la_LDFLAGS = -avoid-version -module -no-undefined $(all_libraries)
xdg_apps_DATA = kdmtheme.desktop xdg_apps_DATA = tdmtheme.desktop
messages: rc.cpp messages: rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/kcmkdmtheme.pot $(XGETTEXT) *.cpp -o $(podir)/kcmtdmtheme.pot

@ -18,7 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/ ***************************************************************************/
#include "kdmtheme.h" #include "tdmtheme.h"
#include <kdialog.h> #include <kdialog.h>
#include <kglobal.h> #include <kglobal.h>
@ -57,10 +57,10 @@ class ThemeData : public TQListViewItem {
TQString description; TQString description;
}; };
typedef KGenericFactory<KDMThemeWidget, TQWidget> kdmthemeFactory; typedef KGenericFactory<TDMThemeWidget, TQWidget> tdmthemeFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kdmtheme, kdmthemeFactory("kcmkdmtheme")) K_EXPORT_COMPONENT_FACTORY( kcm_tdmtheme, tdmthemeFactory("kcmtdmtheme"))
KDMThemeWidget::KDMThemeWidget( TQWidget *parent, const char *name, const TQStringList& ) TDMThemeWidget::TDMThemeWidget( TQWidget *parent, const char *name, const TQStringList& )
: KCModule(parent, name), config( 0L ) : KCModule(parent, name), config( 0L )
{ {
TQGridLayout *ml = new TQGridLayout( this ); TQGridLayout *ml = new TQGridLayout( this );
@ -68,7 +68,7 @@ KDMThemeWidget::KDMThemeWidget( TQWidget *parent, const char *name, const TQStri
ml->setMargin( KDialog::marginHint() ); ml->setMargin( KDialog::marginHint() );
cUseTheme = new TQCheckBox( this ); cUseTheme = new TQCheckBox( this );
cUseTheme->setText( i18n( "En&able KDM Themes" ) ); cUseTheme->setText( i18n( "En&able TDM Themes" ) );
ml->addMultiCellWidget( cUseTheme, 0, 0, 0, 2 ); ml->addMultiCellWidget( cUseTheme, 0, 0, 0, 2 );
themeWidget = new TQListView( this ); themeWidget = new TQListView( this );
@ -85,7 +85,7 @@ KDMThemeWidget::KDMThemeWidget( TQWidget *parent, const char *name, const TQStri
preview = new TQLabel( this ); preview = new TQLabel( this );
preview->setFixedSize( TQSize( 200, 150 ) ); preview->setFixedSize( TQSize( 200, 150 ) );
preview->setScaledContents( true ); preview->setScaledContents( true );
TQWhatsThis::add(preview, i18n("This is a screen shot of what KDM will look like.") ); TQWhatsThis::add(preview, i18n("This is a screen shot of what TDM will look like.") );
ml->addWidget( preview, 1, 2 ); ml->addWidget( preview, 1, 2 );
@ -111,8 +111,8 @@ KDMThemeWidget::KDMThemeWidget( TQWidget *parent, const char *name, const TQStri
connect( bRemoveTheme, TQT_SIGNAL(clicked()), TQT_SLOT(removeSelectedThemes()) ); connect( bRemoveTheme, TQT_SIGNAL(clicked()), TQT_SLOT(removeSelectedThemes()) );
connect( cUseTheme, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( toggleUseTheme( bool ) ) ); connect( cUseTheme, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( toggleUseTheme( bool ) ) );
TQStringList themeDirs = KGlobal::dirs()->findDirs("data","kdm/"); TQStringList themeDirs = KGlobal::dirs()->findDirs("data","tdm/");
themeDir = KGlobal::dirs()->findDirs("data","kdm/").last(); themeDir = KGlobal::dirs()->findDirs("data","tdm/").last();
TQDir d; TQDir d;
for ( TQStringList::Iterator dirs = themeDirs.begin(); dirs != themeDirs.end(); ++dirs ) { for ( TQStringList::Iterator dirs = themeDirs.begin(); dirs != themeDirs.end(); ++dirs ) {
kdDebug() << "Loading themes... ( " + *dirs + "themes/" + " )" << endl; kdDebug() << "Loading themes... ( " + *dirs + "themes/" + " )" << endl;
@ -133,7 +133,7 @@ KDMThemeWidget::KDMThemeWidget( TQWidget *parent, const char *name, const TQStri
} }
} }
void KDMThemeWidget::selectTheme( const TQString &path ) void TDMThemeWidget::selectTheme( const TQString &path )
{ {
for ( TQListViewItemIterator tdi( themeWidget ); tdi.current(); tdi++ ) { for ( TQListViewItemIterator tdi( themeWidget ); tdi.current(); tdi++ ) {
ThemeData * td = ((ThemeData *)*tdi); ThemeData * td = ((ThemeData *)*tdi);
@ -145,22 +145,22 @@ void KDMThemeWidget::selectTheme( const TQString &path )
} }
} }
void KDMThemeWidget::load() void TDMThemeWidget::load()
{ {
TQString kdmrc = KGlobal::dirs()->findResource("config", "kdm/kdmrc"); TQString tdmrc = KGlobal::dirs()->findResource("config", "tdm/tdmrc");
if ( kdmrc.isEmpty() ) { if ( tdmrc.isEmpty() ) {
kdError() << "Failed to find kdm resource file kdmrc!" << endl; kdError() << "Failed to find tdm resource file tdmrc!" << endl;
KMessageBox msgBox; KMessageBox msgBox;
msgBox.sorry(0, i18n("I can't find the configuration file for the Login Manager, kdm. Check you have set up the Login Manager from the Control Center, and that you have permision to read and write the Login Manager's configuration file.\n\n You must set-up the Login Manager before you can use its themes."), i18n("Can't find Configuration File")); msgBox.sorry(0, i18n("I can't find the configuration file for the Login Manager, tdm. Check you have set up the Login Manager from the Control Center, and that you have permision to read and write the Login Manager's configuration file.\n\n You must set-up the Login Manager before you can use its themes."), i18n("Can't find Configuration File"));
delete config; delete config;
config = NULL; config = NULL;
} else { } else {
kdDebug() << "Loading... ( " + kdmrc + " )" << endl; kdDebug() << "Loading... ( " + tdmrc + " )" << endl;
delete config; delete config;
config = new KConfig( kdmrc ); config = new KConfig( tdmrc );
config->setGroup( "X-*-Greeter" ); config->setGroup( "X-*-Greeter" );
cUseTheme->setChecked( config->readBoolEntry( "UseTheme", false ) ); cUseTheme->setChecked( config->readBoolEntry( "UseTheme", false ) );
@ -168,7 +168,7 @@ void KDMThemeWidget::load()
} }
} }
void KDMThemeWidget::save() void TDMThemeWidget::save()
{ {
kdDebug() << "Saving: Theme " << defaultTheme->path << " - UseTheme " << cUseTheme->isChecked() << endl; kdDebug() << "Saving: Theme " << defaultTheme->path << " - UseTheme " << cUseTheme->isChecked() << endl;
config->writeEntry( "Theme", defaultTheme->path ); config->writeEntry( "Theme", defaultTheme->path );
@ -176,26 +176,26 @@ void KDMThemeWidget::save()
config->sync(); config->sync();
} }
void KDMThemeWidget::defaults() void TDMThemeWidget::defaults()
{ {
selectTheme( themeDir + "circles" ); selectTheme( themeDir + "circles" );
emit changed(true); emit changed(true);
} }
void KDMThemeWidget::toggleUseTheme(bool useTheme) { void TDMThemeWidget::toggleUseTheme(bool useTheme) {
setReadOnly( useTheme ); setReadOnly( useTheme );
emit changed(true); emit changed(true);
} }
void KDMThemeWidget::setReadOnly(bool ro) void TDMThemeWidget::setReadOnly(bool ro)
{ {
themeWidget->setEnabled( ro ); themeWidget->setEnabled( ro );
bInstallTheme->setEnabled( ro ); bInstallTheme->setEnabled( ro );
bRemoveTheme->setEnabled( ro ); bRemoveTheme->setEnabled( ro );
} }
void KDMThemeWidget::insertTheme( const TQString &_theme ) void TDMThemeWidget::insertTheme( const TQString &_theme )
{ {
KConfig * themeConfig; KConfig * themeConfig;
TQString name; TQString name;
@ -231,7 +231,7 @@ void KDMThemeWidget::insertTheme( const TQString &_theme )
child->description = themeConfig->readEntry( "Description" ); child->description = themeConfig->readEntry( "Description" );
} }
void KDMThemeWidget::updateInfoView( ThemeData *theme ) void TDMThemeWidget::updateInfoView( ThemeData *theme )
{ {
info->setText( info->setText(
((theme->copyright.length() > 0) ? ((theme->copyright.length() > 0) ?
@ -245,7 +245,7 @@ void KDMThemeWidget::updateInfoView( ThemeData *theme )
"Screenshot not available" : TQString() ); "Screenshot not available" : TQString() );
} }
void KDMThemeWidget::installNewTheme() void TDMThemeWidget::installNewTheme()
{ {
KURLRequesterDlg fileRequester( TQString(), this, i18n("Drag or Type Theme URL") ); KURLRequesterDlg fileRequester( TQString(), this, i18n("Drag or Type Theme URL") );
fileRequester.urlRequester()->setMode( KFile::File | KFile::Directory | KFile::ExistingOnly ); fileRequester.urlRequester()->setMode( KFile::File | KFile::Directory | KFile::ExistingOnly );
@ -258,9 +258,9 @@ void KDMThemeWidget::installNewTheme()
if (!KIO::NetAccess::download( themeURL, themeTmpFile, this )) { if (!KIO::NetAccess::download( themeURL, themeTmpFile, this )) {
TQString sorryText; TQString sorryText;
if (themeURL.isLocalFile()) if (themeURL.isLocalFile())
sorryText = i18n("Unable to find the KDM theme archive %1.",themeURL.prettyURL()); sorryText = i18n("Unable to find the TDM theme archive %1.",themeURL.prettyURL());
else else
sorryText = i18n("Unable to download the KDM theme archive;\n" sorryText = i18n("Unable to download the TDM theme archive;\n"
"please check that address %1 is correct.",themeURL.prettyURL()); "please check that address %1 is correct.",themeURL.prettyURL());
KMessageBox::sorry( this, sorryText ); KMessageBox::sorry( this, sorryText );
return; return;
@ -286,10 +286,10 @@ void KDMThemeWidget::installNewTheme()
} }
if (foundThemes.isEmpty()) if (foundThemes.isEmpty())
KMessageBox::error( this, i18n("The file is not a valid KDM theme archive.") ); KMessageBox::error( this, i18n("The file is not a valid TDM theme archive.") );
else { else {
KProgressDialog progressDiag( this, KProgressDialog progressDiag( this,
i18n("Installing KDM themes"), TQString() ); i18n("Installing TDM themes"), TQString() );
progressDiag.setModal( true ); progressDiag.setModal( true );
progressDiag.setAutoClose( true ); progressDiag.setAutoClose( true );
progressDiag.progressBar()->setTotalSteps( foundThemes.count() ); progressDiag.progressBar()->setTotalSteps( foundThemes.count() );
@ -317,7 +317,7 @@ void KDMThemeWidget::installNewTheme()
KIO::NetAccess::removeTempFile( themeTmpFile ); KIO::NetAccess::removeTempFile( themeTmpFile );
} }
void KDMThemeWidget::themeSelected() void TDMThemeWidget::themeSelected()
{ {
if (themeWidget->selectedItem()) { if (themeWidget->selectedItem()) {
defaultTheme = (ThemeData *)(themeWidget->selectedItem()); defaultTheme = (ThemeData *)(themeWidget->selectedItem());
@ -327,13 +327,13 @@ void KDMThemeWidget::themeSelected()
emit changed(true); emit changed(true);
} }
void KDMThemeWidget::removeSelectedThemes() void TDMThemeWidget::removeSelectedThemes()
{ {
TQListViewItem * themes = themeWidget->selectedItem(); TQListViewItem * themes = themeWidget->selectedItem();
if (!themes) if (!themes)
return; return;
if (KMessageBox::questionYesNoList( this, if (KMessageBox::questionYesNoList( this,
i18n("Are you sure you want to remove this KDM theme?"), i18n("Are you sure you want to remove this TDM theme?"),
themes->text(0), i18n("Remove theme?") ) != KMessageBox::Yes) themes->text(0), i18n("Remove theme?") ) != KMessageBox::Yes)
return; return;
KIO::del( ((ThemeData *)themes)->path ); // XXX error check KIO::del( ((ThemeData *)themes)->path ); // XXX error check
@ -341,4 +341,4 @@ void KDMThemeWidget::removeSelectedThemes()
themeWidget->takeItem( themes ); themeWidget->takeItem( themes );
} }
#include "kdmtheme.moc" #include "tdmtheme.moc"

@ -1,31 +1,31 @@
[Desktop Entry] [Desktop Entry]
Encoding=UTF-8 Encoding=UTF-8
Exec=kcmshell kdmtheme Exec=kcmshell tdmtheme
Icon=kdmconfig Icon=tdmconfig
Type=Application Type=Application
X-KDE-ModuleType=Library X-KDE-ModuleType=Library
X-KDE-Library=kdmtheme X-KDE-Library=tdmtheme
X-KDE-RootOnly=true X-KDE-RootOnly=true
X-KDE-HasReadOnlyMode=true X-KDE-HasReadOnlyMode=true
X-KDE-ParentApp=kcontrol X-KDE-ParentApp=kcontrol
X-Keywords=kdmtheme X-Keywords=tdmtheme
Comment=kdmtheme - KDM Theme Manager Comment=tdmtheme - TDM Theme Manager
Comment[es]=kdmtheme - Manejador del tema de KDM Comment[es]=tdmtheme - Manejador del tema de TDM
Comment[sv]=kdmtheme - Temahanterare för KDM Comment[sv]=tdmtheme - Temahanterare för TDM
Comment[id]=kdmtheme - Pengatur Tema KDM Comment[id]=tdmtheme - Pengatur Tema TDM
Comment[ms]=kdmtheme - Pengatur Tema KDM Comment[ms]=tdmtheme - Pengatur Tema TDM
Comment[fr]=kdmtheme - Gestionnaire de thèmes KDM Comment[fr]=tdmtheme - Gestionnaire de thèmes TDM
Comment[it]=kdmtheme - Gestore di temi KDM Comment[it]=tdmtheme - Gestore di temi TDM
Comment[jp]=kdmtheme - KDM テーママネージャー Comment[jp]=tdmtheme - TDM テーママネージャー
Name=KDM Theme Manager Name=TDM Theme Manager
Name[es]=Manejador del tema de KDM Name[es]=Manejador del tema de TDM
Name[sv]=Temahanterare för KDM Name[sv]=Temahanterare för TDM
Name[id]=Pengatur Tema KDM Name[id]=Pengatur Tema TDM
Name[ms]=Pengatur Tema KDM Name[ms]=Pengatur Tema TDM
Name[fr]=Gestionnaire de thèmes KDM Name[fr]=Gestionnaire de thèmes TDM
Name[it]=Gestore di temi KDM Name[it]=Gestore di temi TDM
Name[jp]=KDM テーママネージャー Name[jp]=TDM テーママネージャー
Categories=Qt;KDE;X-KDE-settings-system;X-KDE-systemsettings-lookandfeel-appearance; Categories=Qt;KDE;X-KDE-settings-system;X-KDE-systemsettings-lookandfeel-appearance;

@ -18,8 +18,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/ ***************************************************************************/
#ifndef _KDMTHEME_H_ #ifndef _TDMTHEME_H_
#define _KDMTHEME_H_ #define _TDMTHEME_H_
#include <kconfig.h> #include <kconfig.h>
#include <kcmodule.h> #include <kcmodule.h>
@ -33,12 +33,12 @@ class TQPushButton;
class TQListView; class TQListView;
class TQCheckBox; class TQCheckBox;
class KDMThemeWidget : public KCModule { class TDMThemeWidget : public KCModule {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KDMThemeWidget( TQWidget *parent = 0, const char *name=0, const TQStringList& = TQStringList() ); TDMThemeWidget( TQWidget *parent = 0, const char *name=0, const TQStringList& = TQStringList() );
virtual void load(); virtual void load();
virtual void save(); virtual void save();

Loading…
Cancel
Save