author | jowenn <jowenn> | 2002-11-10 21:08:01 (UTC) |
---|---|---|
committer | jowenn <jowenn> | 2002-11-10 21:08:01 (UTC) |
commit | e97a6da57804aa14907dec327fbae71bff9b383e (patch) (unidiff) | |
tree | 15f6ee292dba24bdda72f5c72f6d2224c3516763 /noncore/apps/tinykate/libkate/microkde/kstandarddirs.cpp | |
parent | 7c012ee8cd16d8befacc6f6750711443fac0fd5e (diff) | |
download | opie-e97a6da57804aa14907dec327fbae71bff9b383e.zip opie-e97a6da57804aa14907dec327fbae71bff9b383e.tar.gz opie-e97a6da57804aa14907dec327fbae71bff9b383e.tar.bz2 |
import of tiny kate. (saving not possible yet)
Diffstat (limited to 'noncore/apps/tinykate/libkate/microkde/kstandarddirs.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/tinykate/libkate/microkde/kstandarddirs.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/noncore/apps/tinykate/libkate/microkde/kstandarddirs.cpp b/noncore/apps/tinykate/libkate/microkde/kstandarddirs.cpp new file mode 100644 index 0000000..befa667 --- a/dev/null +++ b/noncore/apps/tinykate/libkate/microkde/kstandarddirs.cpp | |||
@@ -0,0 +1,39 @@ | |||
1 | #include "kdebug.h" | ||
2 | |||
3 | #include "kstandarddirs.h" | ||
4 | |||
5 | QString KStandardDirs::mAppDir = QString::null; | ||
6 | |||
7 | QString locate( const char *type, const QString& filename ) | ||
8 | { | ||
9 | QString path = KStandardDirs::appDir() + type + "_" + filename; | ||
10 | |||
11 | kdDebug() << "locate: '" << path << "'" << endl; | ||
12 | |||
13 | return path; | ||
14 | } | ||
15 | |||
16 | QString locateLocal( const char *type, const QString& filename ) | ||
17 | { | ||
18 | return locate( type, filename ); | ||
19 | } | ||
20 | |||
21 | QStringList KStandardDirs::findAllResources( const QString &, const QString &, bool, bool) | ||
22 | { | ||
23 | QStringList list; | ||
24 | list.append("/cpp.xml"); | ||
25 | return list; | ||
26 | // return QStringList(); | ||
27 | } | ||
28 | |||
29 | QString KStandardDirs::findResourceDir( const QString &, const QString & ) | ||
30 | { | ||
31 | return QString::null; | ||
32 | } | ||
33 | |||
34 | void KStandardDirs::setAppDir( const QString &appDir ) | ||
35 | { | ||
36 | mAppDir = appDir; | ||
37 | |||
38 | if ( mAppDir.right( 1 ) != "/" ) mAppDir += "/"; | ||
39 | } | ||