Browse Source

Part 1 of 2 of kdm rename

Timothy Pearson 7 years ago
parent
commit
b9a9e2fa8f
10 changed files with 90 additions and 90 deletions
  1. 5
    5
      ChangeLog
  2. 1
    1
      configure.in
  3. 1
    1
      configure.in.in
  4. 1
    1
      doc/Makefile.am
  5. 1
    1
      doc/en/Makefile.am
  6. 20
    20
      doc/en/index.docbook
  7. 6
    6
      src/Makefile.am
  8. 31
    31
      src/kdmtheme.cpp
  9. 20
    20
      src/kdmtheme.desktop
  10. 4
    4
      src/kdmtheme.h

+ 5
- 5
ChangeLog View File

@@ -20,7 +20,7 @@
20 20
                   Thanks Laurent!!
21 21
 
22 22
 2005-03-23 (0.5): Theme adding now possible! (code borrowed from kcmicon)
23
-                  Known limitation currently is if you don't have a $TDEDIR/share/apps/kdm/themes/
23
+                  Known limitation currently is if you don't have a $TDEDIR/share/apps/tdm/themes/
24 24
                   then the install will fail the first time but will be successful the 2nd time.
25 25
 
26 26
 2005-03-23 (0.6): Applied another patch from Laurent to fix a potential memory leak.
@@ -32,7 +32,7 @@
32 32
                   Display Description
33 33
                   If a theme's source directory no longer exists remove it from out list.
34 34
 
35
-2005-03-24 (0.7): Use KDM icon.
35
+2005-03-24 (0.7): Use TDM icon.
36 36
                   Moved to System Administration section.
37 37
                   Updated Documentation.
38 38
                   Fixed layout issues.
@@ -61,7 +61,7 @@
61 61
 2005-07-19 (0.9.1): Updated the UI (added a bar, autosized the listbox columns and top aligned the details)
62 62
                     Fixed a bug where the Insert Url box and Button were not being disabled when loaded as non-root.
63 63
                     Updated /admin to kde's in 3.4.1 (fixes the problem with --prefix not defaulting to kde's installed dir.)
64
-                    Attempt at fixing the "cannot find kdmrc file" error.
64
+                    Attempt at fixing the "cannot find tdmrc file" error.
65 65
 
66 66
 2005-12-29 (0.9.2): Disable widgets when UseTheme is set to false.
67 67
                     When loading make sure a thumbnail is displayed, if one exists.
@@ -74,7 +74,7 @@
74 74
 2006-01-30 (1.0.1): When inserting a theme configChanged() was not run.
75 75
 
76 76
 2006-02-23 (1.1): Applied a patch from Jonathan Patrick Davies to fix an i18n/l10n issue.
77
-                  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.
77
+                  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.
78 78
                   Updated address for the GPL license to match that found in KDE.
79 79
 
80 80
 2006-06-20 (1.1.1): Fixed 2 crashes 1 where no themes were found in your theme directory
@@ -88,7 +88,7 @@
88 88
                     Fixed removing of themes from the list to a less hack-ish way.
89 89
                     Few i18n fixes
90 90
 2006-08-12 (1.1.3): Added Indonesian/Manaysian translation to the .desktop (thanks kucrut!)
91
-                    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
91
+                    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
92 92
                     Added French, Italian and Japanese translations to the .desktop (thanks Lorenzo La Spada!)
93 93
                     Fixed a typo which caused an error message to be printed when it shouldn't have.
94 94
                     Updated documentation.

+ 1
- 1
configure.in View File

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

+ 1
- 1
configure.in.in View File

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

+ 1
- 1
doc/Makefile.am View File

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

+ 1
- 1
doc/en/Makefile.am View File

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

+ 20
- 20
doc/en/index.docbook View File

@@ -1,7 +1,7 @@
1 1
 <?xml version="1.0" ?>
2 2
 <!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
3
-  <!ENTITY kdmtheme "<application>kdmtheme 1.1.3</application>">
4
-  <!ENTITY kappname "&kdmtheme;"><!-- Do *not* replace kappname-->
3
+  <!ENTITY tdmtheme "<application>tdmtheme 1.1.3</application>">
4
+  <!ENTITY kappname "&tdmtheme;"><!-- Do *not* replace kappname-->
5 5
   <!ENTITY package "kde-module"><!-- tdebase, tdeadmin, etc -->
6 6
   <!ENTITY % addindex "IGNORE">
7 7
   <!ENTITY % English "INCLUDE"><!-- change language only here -->
@@ -44,7 +44,7 @@ thanks ;-).
44 44
 as Authors, publish date, the abstract, and Keywords -->
45 45
 
46 46
 <bookinfo>
47
-<title>The &kdmtheme; Handbook</title>
47
+<title>The &tdmtheme; Handbook</title>
48 48
 
49 49
 <authorgroup>
50 50
 <author>
@@ -83,7 +83,7 @@ Do NOT change these in the translation. -->
83 83
 
84 84
 <abstract>
85 85
 <para>
86
-&kdmtheme; is  K Control Center Module designed to easily configure your KDM themes.
86
+&tdmtheme; is  K Control Center Module designed to easily configure your TDM themes.
87 87
 </para>
88 88
 </abstract>
89 89
 
@@ -93,9 +93,9 @@ Please at least include KDE, the KDE package it is in, the name
93 93
 
94 94
 <keywordset>
95 95
 <keyword>KDE</keyword>
96
-<keyword>kdmtheme</keyword>
97
-<keyword>KDM</keyword>
98
-<keyword>KDM Theme Manager</keyword>
96
+<keyword>tdmtheme</keyword>
97
+<keyword>TDM</keyword>
98
+<keyword>TDM Theme Manager</keyword>
99 99
 </keywordset>
100 100
 
101 101
 </bookinfo>
@@ -118,12 +118,12 @@ problems. Basically a long version of the abstract.  Don't include a
118 118
 revision history. (see installation appendix comment) -->
119 119
 
120 120
 <para>
121
-&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>
121
+&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>
122 122
 </para>
123 123
 </chapter>
124 124
 
125
-<chapter id="using-kdmtheme">
126
-<title>Using &kdmtheme;</title>
125
+<chapter id="using-tdmtheme">
126
+<title>Using &tdmtheme;</title>
127 127
 
128 128
 <!-- This chapter should tell the user how to use your app. You should use as
129 129
 many sections (Chapter, Sect1, Sect3, etc...) as is necessary to fully document
@@ -135,10 +135,10 @@ your application. -->
135 135
 patent issues. -->
136 136
 
137 137
 <screenshot>
138
-<screeninfo>Here's a screenshot of &kdmtheme;</screeninfo>
138
+<screeninfo>Here's a screenshot of &tdmtheme;</screeninfo>
139 139
 	<mediaobject>
140 140
 	  <imageobject>
141
-	    <imagedata fileref="kdmtheme.png" format="PNG"/>
141
+	    <imagedata fileref="tdmtheme.png" format="PNG"/>
142 142
 	  </imageobject>
143 143
 	  <textobject>
144 144
 	    <phrase>Screenshot</phrase>
@@ -187,7 +187,7 @@ application work. -->
187 187
 			<para>My buttons are disabled!</para>
188 188
 		</question>
189 189
 		<answer>
190
-			<para>Is the "Enable KDM Themes" check box checked?</para>
190
+			<para>Is the "Enable TDM Themes" check box checked?</para>
191 191
 		</answer>
192 192
 	</qandaentry>
193 193
 	<qandaentry>
@@ -195,7 +195,7 @@ application work. -->
195 195
 			<para>I don't see any themes what's wrong?!</para>
196 196
 		</question>
197 197
 		<answer>
198
-			<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>
198
+			<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>
199 199
 		</answer>
200 200
 	</qandaentry>
201 201
 </qandaset>
@@ -211,7 +211,7 @@ distribution. -->
211 211
 <title>Credits and License</title>
212 212
 
213 213
 <para>
214
-&kdmtheme;
214
+&tdmtheme;
215 215
 </para>
216 216
 <para>
217 217
 Program copyright %{YEAR} Stephen Leaf <email>smileaf@smileaf.org</email>
@@ -258,11 +258,11 @@ Documentation copyright %{YEAR} Stephen Leaf <email>smileaf@smileaf.org</email>
258 258
 <appendix id="installation">
259 259
 <title>Installation</title>
260 260
 
261
-<sect1 id="getting-kdmtheme">
262
-<title>How to obtain &kdmtheme;</title>
261
+<sect1 id="getting-tdmtheme">
262
+<title>How to obtain &tdmtheme;</title>
263 263
 
264 264
 <para>
265
-&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>
265
+&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>
266 266
 </para>
267 267
 </sect1>
268 268
 
@@ -281,14 +281,14 @@ information here.
281 281
 -->
282 282
 
283 283
 <para>
284
-In order to successfully use &kdmtheme;, you need &kde; >=3.4
284
+In order to successfully use &tdmtheme;, you need &kde; >=3.4
285 285
 </para>
286 286
 
287 287
 
288 288
 <!-- For a list of updates, you may refer to the application web site
289 289
 or the ChangeLog file, or ... -->
290 290
 <para>
291
-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>.
291
+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>.
292 292
 </para>
293 293
 </sect1>
294 294
 

+ 6
- 6
src/Makefile.am View File

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

+ 31
- 31
src/kdmtheme.cpp View File

@@ -18,7 +18,7 @@
18 18
  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
19 19
  ***************************************************************************/
20 20
 
21
-#include "kdmtheme.h"
21
+#include "tdmtheme.h"
22 22
 
23 23
 #include <kdialog.h>
24 24
 #include <kglobal.h>
@@ -57,10 +57,10 @@ class ThemeData : public TQListViewItem {
57 57
 	TQString description;
58 58
 };
59 59
 
60
-typedef KGenericFactory<KDMThemeWidget, TQWidget> kdmthemeFactory;
61
-K_EXPORT_COMPONENT_FACTORY( kcm_kdmtheme, kdmthemeFactory("kcmkdmtheme"))
60
+typedef KGenericFactory<TDMThemeWidget, TQWidget> tdmthemeFactory;
61
+K_EXPORT_COMPONENT_FACTORY( kcm_tdmtheme, tdmthemeFactory("kcmtdmtheme"))
62 62
 
63
-KDMThemeWidget::KDMThemeWidget( TQWidget *parent, const char *name, const TQStringList& )
63
+TDMThemeWidget::TDMThemeWidget( TQWidget *parent, const char *name, const TQStringList& )
64 64
 	: KCModule(parent, name), config( 0L )
65 65
 {
66 66
 	TQGridLayout *ml = new TQGridLayout( this );
@@ -68,7 +68,7 @@ KDMThemeWidget::KDMThemeWidget( TQWidget *parent, const char *name, const TQStri
68 68
 	ml->setMargin( KDialog::marginHint() );
69 69
 
70 70
 	cUseTheme = new TQCheckBox( this );
71
-	cUseTheme->setText( i18n( "En&able KDM Themes" ) );
71
+	cUseTheme->setText( i18n( "En&able TDM Themes" ) );
72 72
 	ml->addMultiCellWidget( cUseTheme, 0, 0, 0, 2 );
73 73
 
74 74
 	themeWidget = new TQListView( this );
@@ -85,7 +85,7 @@ KDMThemeWidget::KDMThemeWidget( TQWidget *parent, const char *name, const TQStri
85 85
 	preview = new TQLabel( this );
86 86
 	preview->setFixedSize( TQSize( 200, 150 ) );
87 87
 	preview->setScaledContents( true );
88
-	TQWhatsThis::add(preview, i18n("This is a screen shot of what KDM will look like.") );
88
+	TQWhatsThis::add(preview, i18n("This is a screen shot of what TDM will look like.") );
89 89
 
90 90
 	ml->addWidget( preview, 1, 2 );
91 91
 
@@ -111,8 +111,8 @@ KDMThemeWidget::KDMThemeWidget( TQWidget *parent, const char *name, const TQStri
111 111
 	connect( bRemoveTheme, TQT_SIGNAL(clicked()), TQT_SLOT(removeSelectedThemes()) );
112 112
 	connect( cUseTheme, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( toggleUseTheme( bool ) ) );
113 113
 
114
-	TQStringList themeDirs = KGlobal::dirs()->findDirs("data","kdm/");
115
-	themeDir = KGlobal::dirs()->findDirs("data","kdm/").last();
114
+	TQStringList themeDirs = KGlobal::dirs()->findDirs("data","tdm/");
115
+	themeDir = KGlobal::dirs()->findDirs("data","tdm/").last();
116 116
 	TQDir d;
117 117
 	for ( TQStringList::Iterator dirs = themeDirs.begin(); dirs != themeDirs.end(); ++dirs ) {
118 118
 		kdDebug() << "Loading themes... ( " + *dirs + "themes/" + " )" << endl;
@@ -133,7 +133,7 @@ KDMThemeWidget::KDMThemeWidget( TQWidget *parent, const char *name, const TQStri
133 133
 	}
134 134
 }
135 135
 
136
-void KDMThemeWidget::selectTheme( const TQString &path )
136
+void TDMThemeWidget::selectTheme( const TQString &path )
137 137
 {
138 138
 	for ( TQListViewItemIterator tdi( themeWidget ); tdi.current(); tdi++ ) {
139 139
 		ThemeData * td = ((ThemeData *)*tdi);
@@ -145,22 +145,22 @@ void KDMThemeWidget::selectTheme( const TQString &path )
145 145
 	}
146 146
 }
147 147
 
148
-void KDMThemeWidget::load()
148
+void TDMThemeWidget::load()
149 149
 {
150
-	TQString kdmrc = KGlobal::dirs()->findResource("config", "kdm/kdmrc");
151
-	if ( kdmrc.isEmpty() ) {
152
-		kdError() << "Failed to find kdm resource file kdmrc!" << endl;
150
+	TQString tdmrc = KGlobal::dirs()->findResource("config", "tdm/tdmrc");
151
+	if ( tdmrc.isEmpty() ) {
152
+		kdError() << "Failed to find tdm resource file tdmrc!" << endl;
153 153
 
154 154
 		KMessageBox msgBox;
155
-		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"));
155
+		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"));
156 156
 
157 157
 		delete config;
158 158
 		config = NULL;
159 159
 	} else {
160
-		kdDebug() << "Loading... ( " + kdmrc + " )" << endl;
160
+		kdDebug() << "Loading... ( " + tdmrc + " )" << endl;
161 161
 
162 162
 		delete config;
163
-		config = new KConfig( kdmrc );
163
+		config = new KConfig( tdmrc );
164 164
 		config->setGroup( "X-*-Greeter" );
165 165
 		cUseTheme->setChecked( config->readBoolEntry( "UseTheme", false ) );
166 166
 
@@ -168,7 +168,7 @@ void KDMThemeWidget::load()
168 168
 	}
169 169
 }
170 170
 
171
-void KDMThemeWidget::save()
171
+void TDMThemeWidget::save()
172 172
 {
173 173
 	kdDebug() << "Saving: Theme " << defaultTheme->path << " - UseTheme " << cUseTheme->isChecked() << endl;
174 174
 	config->writeEntry( "Theme", defaultTheme->path );
@@ -176,26 +176,26 @@ void KDMThemeWidget::save()
176 176
 	config->sync();
177 177
 }
178 178
 
179
-void KDMThemeWidget::defaults()
179
+void TDMThemeWidget::defaults()
180 180
 {
181 181
 	selectTheme( themeDir + "circles" );
182 182
 
183 183
 	emit changed(true);
184 184
 }
185 185
 
186
-void KDMThemeWidget::toggleUseTheme(bool useTheme) {
186
+void TDMThemeWidget::toggleUseTheme(bool useTheme) {
187 187
 	setReadOnly( useTheme );
188 188
 	emit changed(true);
189 189
 }
190 190
 
191
-void KDMThemeWidget::setReadOnly(bool ro)
191
+void TDMThemeWidget::setReadOnly(bool ro)
192 192
 {
193 193
 	themeWidget->setEnabled( ro );
194 194
 	bInstallTheme->setEnabled( ro );
195 195
 	bRemoveTheme->setEnabled( ro );
196 196
 }
197 197
 
198
-void KDMThemeWidget::insertTheme( const TQString &_theme )
198
+void TDMThemeWidget::insertTheme( const TQString &_theme )
199 199
 {
200 200
 	KConfig * themeConfig;
201 201
 	TQString name;
@@ -231,7 +231,7 @@ void KDMThemeWidget::insertTheme( const TQString &_theme )
231 231
 	child->description = themeConfig->readEntry( "Description" );
232 232
 }
233 233
 
234
-void KDMThemeWidget::updateInfoView( ThemeData *theme )
234
+void TDMThemeWidget::updateInfoView( ThemeData *theme )
235 235
 {
236 236
 	info->setText(
237 237
 		((theme->copyright.length() > 0) ?
@@ -245,7 +245,7 @@ void KDMThemeWidget::updateInfoView( ThemeData *theme )
245 245
 		"Screenshot not available" : TQString() );
246 246
 }
247 247
 
248
-void KDMThemeWidget::installNewTheme()
248
+void TDMThemeWidget::installNewTheme()
249 249
 {
250 250
 	KURLRequesterDlg fileRequester( TQString(), this, i18n("Drag or Type Theme URL") );
251 251
 	fileRequester.urlRequester()->setMode( KFile::File | KFile::Directory | KFile::ExistingOnly );
@@ -258,9 +258,9 @@ void KDMThemeWidget::installNewTheme()
258 258
 	if (!KIO::NetAccess::download( themeURL, themeTmpFile, this )) {
259 259
 		TQString sorryText;
260 260
 		if (themeURL.isLocalFile())
261
-			sorryText = i18n("Unable to find the KDM theme archive %1.",themeURL.prettyURL());
261
+			sorryText = i18n("Unable to find the TDM theme archive %1.",themeURL.prettyURL());
262 262
 		else
263
-			sorryText = i18n("Unable to download the KDM theme archive;\n"
263
+			sorryText = i18n("Unable to download the TDM theme archive;\n"
264 264
 			                 "please check that address %1 is correct.",themeURL.prettyURL());
265 265
 		KMessageBox::sorry( this, sorryText );
266 266
 		return;
@@ -286,10 +286,10 @@ void KDMThemeWidget::installNewTheme()
286 286
 	}
287 287
 
288 288
 	if (foundThemes.isEmpty())
289
-		KMessageBox::error( this, i18n("The file is not a valid KDM theme archive.") );
289
+		KMessageBox::error( this, i18n("The file is not a valid TDM theme archive.") );
290 290
 	else {
291 291
 		KProgressDialog progressDiag( this,
292
-			i18n("Installing KDM themes"), TQString() );
292
+			i18n("Installing TDM themes"), TQString() );
293 293
 		progressDiag.setModal( true );
294 294
 		progressDiag.setAutoClose( true );
295 295
 		progressDiag.progressBar()->setTotalSteps( foundThemes.count() );
@@ -317,7 +317,7 @@ void KDMThemeWidget::installNewTheme()
317 317
 	KIO::NetAccess::removeTempFile( themeTmpFile );
318 318
 }
319 319
 
320
-void KDMThemeWidget::themeSelected()
320
+void TDMThemeWidget::themeSelected()
321 321
 {
322 322
 	if (themeWidget->selectedItem()) {
323 323
 		defaultTheme = (ThemeData *)(themeWidget->selectedItem());
@@ -327,13 +327,13 @@ void KDMThemeWidget::themeSelected()
327 327
 	emit changed(true);
328 328
 }
329 329
 
330
-void KDMThemeWidget::removeSelectedThemes()
330
+void TDMThemeWidget::removeSelectedThemes()
331 331
 {
332 332
 	TQListViewItem * themes = themeWidget->selectedItem();
333 333
 	if (!themes)
334 334
 		return;
335 335
 	if (KMessageBox::questionYesNoList( this,
336
-			i18n("Are you sure you want to remove this KDM theme?"),
336
+			i18n("Are you sure you want to remove this TDM theme?"),
337 337
 			themes->text(0), i18n("Remove theme?") ) != KMessageBox::Yes)
338 338
 		return;
339 339
 	KIO::del( ((ThemeData *)themes)->path ); // XXX error check
@@ -341,4 +341,4 @@ void KDMThemeWidget::removeSelectedThemes()
341 341
 	themeWidget->takeItem( themes );
342 342
 }
343 343
 
344
-#include "kdmtheme.moc"
344
+#include "tdmtheme.moc"

+ 20
- 20
src/kdmtheme.desktop View File

@@ -1,31 +1,31 @@
1 1
 [Desktop Entry]
2 2
 Encoding=UTF-8
3
-Exec=kcmshell kdmtheme
4
-Icon=kdmconfig
3
+Exec=kcmshell tdmtheme
4
+Icon=tdmconfig
5 5
 Type=Application
6 6
 
7 7
 X-KDE-ModuleType=Library
8
-X-KDE-Library=kdmtheme
8
+X-KDE-Library=tdmtheme
9 9
 X-KDE-RootOnly=true
10 10
 X-KDE-HasReadOnlyMode=true
11 11
 X-KDE-ParentApp=kcontrol
12
-X-Keywords=kdmtheme
12
+X-Keywords=tdmtheme
13 13
 
14
-Comment=kdmtheme - KDM Theme Manager
15
-Comment[es]=kdmtheme - Manejador del tema de KDM
16
-Comment[sv]=kdmtheme - Temahanterare för KDM
17
-Comment[id]=kdmtheme - Pengatur Tema KDM
18
-Comment[ms]=kdmtheme - Pengatur Tema KDM
19
-Comment[fr]=kdmtheme - Gestionnaire de thèmes KDM
20
-Comment[it]=kdmtheme - Gestore di temi KDM
21
-Comment[jp]=kdmtheme - KDM テーママネージャー
22
-Name=KDM Theme Manager
23
-Name[es]=Manejador del tema de KDM
24
-Name[sv]=Temahanterare för KDM
25
-Name[id]=Pengatur Tema KDM
26
-Name[ms]=Pengatur Tema KDM
27
-Name[fr]=Gestionnaire de thèmes KDM
28
-Name[it]=Gestore di temi KDM
29
-Name[jp]=KDM テーママネージャー
14
+Comment=tdmtheme - TDM Theme Manager
15
+Comment[es]=tdmtheme - Manejador del tema de TDM
16
+Comment[sv]=tdmtheme - Temahanterare för TDM
17
+Comment[id]=tdmtheme - Pengatur Tema TDM
18
+Comment[ms]=tdmtheme - Pengatur Tema TDM
19
+Comment[fr]=tdmtheme - Gestionnaire de thèmes TDM
20
+Comment[it]=tdmtheme - Gestore di temi TDM
21
+Comment[jp]=tdmtheme - TDM テーママネージャー
22
+Name=TDM Theme Manager
23
+Name[es]=Manejador del tema de TDM
24
+Name[sv]=Temahanterare för TDM
25
+Name[id]=Pengatur Tema TDM
26
+Name[ms]=Pengatur Tema TDM
27
+Name[fr]=Gestionnaire de thèmes TDM
28
+Name[it]=Gestore di temi TDM
29
+Name[jp]=TDM テーママネージャー
30 30
 
31 31
 Categories=Qt;KDE;X-KDE-settings-system;X-KDE-systemsettings-lookandfeel-appearance;

+ 4
- 4
src/kdmtheme.h View File

@@ -18,8 +18,8 @@
18 18
  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
19 19
  ***************************************************************************/
20 20
 
21
-#ifndef _KDMTHEME_H_
22
-#define _KDMTHEME_H_
21
+#ifndef _TDMTHEME_H_
22
+#define _TDMTHEME_H_
23 23
 
24 24
 #include <kconfig.h>
25 25
 #include <kcmodule.h>
@@ -33,12 +33,12 @@ class TQPushButton;
33 33
 class TQListView;
34 34
 class TQCheckBox;
35 35
 
36
-class KDMThemeWidget : public KCModule {
36
+class TDMThemeWidget : public KCModule {
37 37
 	Q_OBJECT
38 38
   TQ_OBJECT
39 39
 
40 40
   public:
41
-	KDMThemeWidget( TQWidget *parent = 0, const char *name=0, const TQStringList& = TQStringList() );
41
+	TDMThemeWidget( TQWidget *parent = 0, const char *name=0, const TQStringList& = TQStringList() );
42 42
 
43 43
 	virtual void load();
44 44
 	virtual void save();

Loading…
Cancel
Save