summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KStandardDirs.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KStandardDirs.java')
-rw-r--r--kdejava/koala/org/kde/koala/KStandardDirs.java34
1 files changed, 17 insertions, 17 deletions
diff --git a/kdejava/koala/org/kde/koala/KStandardDirs.java b/kdejava/koala/org/kde/koala/KStandardDirs.java
index 51fdd166..e74ba897 100644
--- a/kdejava/koala/org/kde/koala/KStandardDirs.java
+++ b/kdejava/koala/org/kde/koala/KStandardDirs.java
@@ -16,11 +16,11 @@ import java.util.ArrayList;
and applications always refer to a file with a resource type
(e.g. icon) and a filename (e.g. khexdit.xpm). In an ideal world
the application would make no assumption where this file is and
- leave it up to KStandardDirs.findResource("apps", "Home.desktop")
+ leave it up to TDEStandardDirs.findResource("apps", "Home.desktop")
to apply this knowledge to return /opt/kde/share/applnk/Home.desktop
or .locate("data", "kgame/background.jpg") to return
/opt/kde/share/apps/kgame/background.jpg
- The main idea behind KStandardDirs is that there are several
+ The main idea behind TDEStandardDirs is that there are several
toplevel prefixes below which the files lie. One of these prefixes is
the one where the user installed tdelibs, one is where the
application was installed, and one is $HOME/.trinity, but there
@@ -31,7 +31,7 @@ import java.util.ArrayList;
So the search algorithm basically appends to each prefix each registered
suffix and tries to locate the file there.
To make the thing even more complex, it's also possible to register
- absolute paths that KStandardDirs looks up after not finding anything
+ absolute paths that TDEStandardDirs looks up after not finding anything
in the former steps. They can be useful if the user wants to provide
specific directories that aren't in his $HOME/.trinity directory for,
for example, icons.
@@ -130,12 +130,12 @@ import java.util.ArrayList;
So while you had to .locate("data", "appname/filename") so you can
also write .locate("appdata", "filename") if your TDEApplication instance
is called "appname" (as set via TDEApplication's constructor or TDEAboutData, if
- you use the global KStandardDirs object TDEGlobal.dirs()).
+ you use the global TDEStandardDirs object TDEGlobal.dirs()).
Please note though that you cannot use the "appdata"
type if you intend to use it in an applet for Kicker because 'appname' would
be "Kicker" instead of the applet's name. Therefore, for applets, you've got
to work around this by using .locate("data", "appletname/filename").
- <b>KStandardDirs supports the following environment variables:</b>
+ <b>TDEStandardDirs supports the following environment variables:</b>
<li>
TDEDIRS: This may set an additional number of directory prefixes to
@@ -168,19 +168,19 @@ import java.util.ArrayList;
@see TDEGlobalSettings
*/
-public class KStandardDirs implements QtSupport {
+public class TDEStandardDirs implements QtSupport {
private long _qt;
private boolean _allocatedInJavaWorld = true;
- protected KStandardDirs(Class dummy){}
+ protected TDEStandardDirs(Class dummy){}
/**
- KStandardDirs' constructor. It just initializes the caches.
- @short KStandardDirs' constructor.
+ TDEStandardDirs' constructor. It just initializes the caches.
+ @short TDEStandardDirs' constructor.
*/
- public KStandardDirs() {
- newKStandardDirs();
+ public TDEStandardDirs() {
+ newTDEStandardDirs();
}
- private native void newKStandardDirs();
+ private native void newTDEStandardDirs();
/**
Adds another search dir to front of the <code>fsstnd</code> list.
@@ -262,7 +262,7 @@ public class KStandardDirs implements QtSupport {
</li>
The filename should be a filename relative to the base dir
for resources. So is a way to get the path to libtdecore.la
- to findResource("lib", "libtdecore.la"). KStandardDirs will
+ to findResource("lib", "libtdecore.la"). TDEStandardDirs will
then look into the subdir lib of all elements of all prefixes
($TDEDIRS) for a file libtdecore.la and return the path to
the first one it finds (e.g. /opt/kde/lib/libtdecore.la)
@@ -423,11 +423,11 @@ public class KStandardDirs implements QtSupport {
*/
public native ArrayList resourceDirs(String type);
/**
- This function will return a list of all the types that KStandardDirs
+ This function will return a list of all the types that TDEStandardDirs
supports.
@return All types that KDE supports
- @short This function will return a list of all the types that KStandardDirs supports.
+ @short This function will return a list of all the types that TDEStandardDirs supports.
*/
public native ArrayList allTypes();
/**
@@ -477,12 +477,12 @@ public class KStandardDirs implements QtSupport {
*/
public native String kfsstnd_xdg_data_prefixes();
/**
- Returns the toplevel directory in which KStandardDirs
+ Returns the toplevel directory in which TDEStandardDirs
will store things. Most likely $HOME/.trinity
Don't use this function if you can use locateLocal
@return the toplevel directory
- @short Returns the toplevel directory in which KStandardDirs will store things.
+ @short Returns the toplevel directory in which TDEStandardDirs will store things.
*/
public native String localtdedir();
/**