summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/test/kfontdialog
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/test/kfontdialog')
-rw-r--r--kdejava/koala/test/kfontdialog/TDEFontDialogTest.java (renamed from kdejava/koala/test/kfontdialog/KFontDialogTest.java)24
1 files changed, 12 insertions, 12 deletions
diff --git a/kdejava/koala/test/kfontdialog/KFontDialogTest.java b/kdejava/koala/test/kfontdialog/TDEFontDialogTest.java
index 4fc6fa1b..c758b9e9 100644
--- a/kdejava/koala/test/kfontdialog/KFontDialogTest.java
+++ b/kdejava/koala/test/kfontdialog/TDEFontDialogTest.java
@@ -28,27 +28,27 @@ import org.kde.koala.*;
*/
/**
- * Class to test KFontDialog widgets.
+ * Class to test TDEFontDialog widgets.
*
* This is a translation to java from kfontdialogtest.cpp in the tests library
* of tdeui source.
*
- * @see KFontDialog
+ * @see TDEFontDialog
* @see TDEApplication
* @see TDEConfig
*
* @author Bernd Johannes Wuebben, java translation Kenneth J. Pouncey, kjpou@hotmail.com
* @version 0.1
*/
-public class KFontDialogTest {
+public class TDEFontDialogTest {
- static String description = "Java KFontDialog test program.";
+ static String description = "Java TDEFontDialog test program.";
static String[][] options = { };
static String VERSION = "0.1";
public static void main(String[] cmdLineArgs) {
- TDEAboutData aboutData = new TDEAboutData( "kfontdialogtest", "KFontDialogTest",
+ TDEAboutData aboutData = new TDEAboutData( "kfontdialogtest", "TDEFontDialogTest",
VERSION, description, TDEAboutData.License_GPL,
"(c) 2002, Kenneth J. Pouncey");
aboutData.addAuthor("Kenneth J. Pouncey",null, "kjpou@hotmail.com");
@@ -61,7 +61,7 @@ public class KFontDialogTest {
TDECmdLineArgs args = TDECmdLineArgs.parsedArgs();
TDEConfig aConfig = new TDEConfig();
- aConfig.setGroup( "KFontDialog-test" );
+ aConfig.setGroup( "TDEFontDialog-test" );
// parameters are Font name, Font Point Size, Font Style, Font Italic
app.setFont(new TQFont("Helvetica",12,TQFont.Normal,false));
@@ -69,14 +69,14 @@ public class KFontDialogTest {
TQFont font = aConfig.readFontEntry( "Chosen" );
- int nRet = KFontDialog.getFont(font);
+ int nRet = TDEFontDialog.getFont(font);
- // return values from KFontDialog
+ // return values from TDEFontDialog
// nRet = 1 for OK Button
// nRet = 0 for Cancel button
if (nRet == 1) { // print out font values
- System.out.println("Ok Button pressed from KFontDialog ");
+ System.out.println("Ok Button pressed from TDEFontDialog ");
System.out.println(" Font name selected: " + font.family());
System.out.println(" Font Point Size selected: " + font.pointSize());
System.out.println(" Font Bold?: " + font.bold());
@@ -88,10 +88,10 @@ public class KFontDialogTest {
int[] flags = { 0 };
- //Static method for KFontDialog needs to be generated
- nRet = KFontDialog.getFontDiff(font, flags);
+ //Static method for TDEFontDialog needs to be generated
+ nRet = TDEFontDialog.getFontDiff(font, flags);
if (nRet == 1) {
- System.out.println("Ok Button pressed from KFontDialog diff dialog ");
+ System.out.println("Ok Button pressed from TDEFontDialog diff dialog ");
System.out.println(" Font diff flags: " + flags[0]);
System.out.println(" Font name selected: " + font.family());
System.out.println(" Font Point Size selected: " + font.pointSize());