summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KConfigBase.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KConfigBase.java')
-rw-r--r--kdejava/koala/org/kde/koala/KConfigBase.java140
1 files changed, 70 insertions, 70 deletions
diff --git a/kdejava/koala/org/kde/koala/KConfigBase.java b/kdejava/koala/org/kde/koala/KConfigBase.java
index 86538f6e..2861dc38 100644
--- a/kdejava/koala/org/kde/koala/KConfigBase.java
+++ b/kdejava/koala/org/kde/koala/KConfigBase.java
@@ -2,17 +2,17 @@
package org.kde.koala;
import org.kde.qt.Qt;
-import org.kde.qt.QColor;
-import org.kde.qt.QRect;
-import org.kde.qt.QFont;
-import org.kde.qt.QMetaObject;
+import org.kde.qt.TQColor;
+import org.kde.qt.TQRect;
+import org.kde.qt.TQFont;
+import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
-import org.kde.qt.QPoint;
+import org.kde.qt.TQPoint;
import java.util.Calendar;
-import org.kde.qt.QSize;
+import org.kde.qt.TQSize;
import java.util.ArrayList;
-import org.kde.qt.QVariant;
-import org.kde.qt.QObject;
+import org.kde.qt.TQVariant;
+import org.kde.qt.TQObject;
/**
@@ -40,7 +40,7 @@ import org.kde.qt.QObject;
@see KSharedConfig
*/
-public class KConfigBase extends QObject {
+public class KConfigBase extends TQObject {
protected KConfigBase(Class dummy){super((Class) null);}
/**
Possible return values for getConfigState().
@@ -51,7 +51,7 @@ public class KConfigBase extends QObject {
public static final int ReadOnly = 1;
public static final int ReadWrite = 2;
- public native QMetaObject metaObject();
+ public native TQMetaObject metaObject();
public native String className();
/**
Construct a KConfigBase object.
@@ -117,18 +117,18 @@ public class KConfigBase extends QObject {
/**
Reads the value of an entry specified by <code>pKey</code> in the current group.
The value is treated as if it is of the type of the given default value.
- Note that only the following QVariant types are allowed : String,
+ Note that only the following TQVariant types are allowed : String,
StringList, List, Font, Point, Rect, Size, Color, Int, UInt, Bool,
Double, DateTime and Date.
@param pKey The key to search for.
@param aDefault A default value returned if the key was not found or
- if the read value cannot be converted to the QVariant.Type.
+ if the read value cannot be converted to the TQVariant.Type.
@return The value for the key or the default value if the key was not
found.
@short Reads the value of an entry specified by <code>pKey</code> in the current group.
*/
- public native QVariant readPropertyEntry(String pKey, QVariant aDefault);
+ public native TQVariant readPropertyEntry(String pKey, TQVariant aDefault);
/**
Reads a list of strings.
@param pKey The key to search for.
@@ -277,18 +277,18 @@ public class KConfigBase extends QObject {
public native double readDoubleNumEntry(String pKey, double nDefault);
public native double readDoubleNumEntry(String pKey);
/**
- Reads a QFont value.
+ Reads a TQFont value.
Read the value of an entry specified by <code>pKey</code> in the current group
and interpret it as a font object.
@param pKey The key to search for.
- @param pDefault A default value (null QFont by default) returned if the
+ @param pDefault A default value (null TQFont by default) returned if the
key was not found or if the read value cannot be interpreted.
@return The value for this key.
- @short Reads a QFont value.
+ @short Reads a TQFont value.
*/
- public native QFont readFontEntry(String pKey, QFont pDefault);
- public native QFont readFontEntry(String pKey);
+ public native TQFont readFontEntry(String pKey, TQFont pDefault);
+ public native TQFont readFontEntry(String pKey);
/**
Reads a booleanean entry.
Read the value of an entry specified by <code>pKey</code> in the current group
@@ -303,57 +303,57 @@ public class KConfigBase extends QObject {
public native boolean readBoolEntry(String pKey, boolean bDefault);
public native boolean readBoolEntry(String pKey);
/**
- Reads a QRect entry.
+ Reads a TQRect entry.
Read the value of an entry specified by pKey in the current group
- and interpret it as a QRect object.
+ and interpret it as a TQRect object.
@param pKey The key to search for
- @param pDefault A default value (null QRect by default) returned if the
+ @param pDefault A default value (null TQRect by default) returned if the
key was not found or if the read value cannot be interpreted.
@return The value for this key.
- @short Reads a QRect entry.
+ @short Reads a TQRect entry.
*/
- public native QRect readRectEntry(String pKey, QRect pDefault);
- public native QRect readRectEntry(String pKey);
+ public native TQRect readRectEntry(String pKey, TQRect pDefault);
+ public native TQRect readRectEntry(String pKey);
/**
- Reads a QPoint entry.
+ Reads a TQPoint entry.
Read the value of an entry specified by <code>pKey</code> in the current group
- and interpret it as a QPoint object.
+ and interpret it as a TQPoint object.
@param pKey The key to search for
- @param pDefault A default value (null QPoint by default) returned if the
+ @param pDefault A default value (null TQPoint by default) returned if the
key was not found or if the read value cannot be interpreted.
@return The value for this key.
- @short Reads a QPoint entry.
+ @short Reads a TQPoint entry.
*/
- public native QPoint readPointEntry(String pKey, QPoint pDefault);
- public native QPoint readPointEntry(String pKey);
+ public native TQPoint readPointEntry(String pKey, TQPoint pDefault);
+ public native TQPoint readPointEntry(String pKey);
/**
- Reads a QSize entry.
+ Reads a TQSize entry.
Read the value of an entry specified by <code>pKey</code> in the current group
- and interpret it as a QSize object.
+ and interpret it as a TQSize object.
@param pKey The key to search for
- @param pDefault A default value (null QSize by default) returned if the
+ @param pDefault A default value (null TQSize by default) returned if the
key was not found or if the read value cannot be interpreted.
@return The value for this key.
- @short Reads a QSize entry.
+ @short Reads a TQSize entry.
*/
- public native QSize readSizeEntry(String pKey, QSize pDefault);
- public native QSize readSizeEntry(String pKey);
+ public native TQSize readSizeEntry(String pKey, TQSize pDefault);
+ public native TQSize readSizeEntry(String pKey);
/**
- Reads a QColor entry.
+ Reads a TQColor entry.
Read the value of an entry specified by <code>pKey</code> in the current group
and interpret it as a color.
@param pKey The key to search for.
- @param pDefault A default value (null QColor by default) returned if the
+ @param pDefault A default value (null TQColor by default) returned if the
key was not found or if the value cannot be interpreted.
@return The value for this key.
- @short Reads a QColor entry.
+ @short Reads a TQColor entry.
*/
- public native QColor readColorEntry(String pKey, QColor pDefault);
- public native QColor readColorEntry(String pKey);
+ public native TQColor readColorEntry(String pKey, TQColor pDefault);
+ public native TQColor readColorEntry(String pKey);
/**
Reads a Calendar entry.
Read the value of an entry specified by <code>pKey</code> in the current group
@@ -364,7 +364,7 @@ public class KConfigBase extends QObject {
interpreted.
@return The value for this key.
- @short Reads a QDateTime entry.
+ @short Reads a TQDateTime entry.
*/
public native Calendar readDateTimeEntry(String pKey, Calendar pDefault);
public native Calendar readDateTimeEntry(String pKey);
@@ -417,10 +417,10 @@ public class KConfigBase extends QObject {
@short writeEntry() Overridden to accept a property.
@see #writeEntry
*/
- public native void writeEntry(String pKey, QVariant rValue, boolean bPersistent, boolean bGlobal, boolean bNLS);
- public native void writeEntry(String pKey, QVariant rValue, boolean bPersistent, boolean bGlobal);
- public native void writeEntry(String pKey, QVariant rValue, boolean bPersistent);
- public native void writeEntry(String pKey, QVariant rValue);
+ public native void writeEntry(String pKey, TQVariant rValue, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, TQVariant rValue, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, TQVariant rValue, boolean bPersistent);
+ public native void writeEntry(String pKey, TQVariant rValue);
/**
writeEntry() overridden to accept a list of strings.
Note: Unlike the other writeEntry() functions, the old value is
@@ -558,10 +558,10 @@ public class KConfigBase extends QObject {
when writing it back.
@short Writes a (key/value) pair.
*/
- public native void writeEntry(String pKey, QFont rFont, boolean bPersistent, boolean bGlobal, boolean bNLS);
- public native void writeEntry(String pKey, QFont rFont, boolean bPersistent, boolean bGlobal);
- public native void writeEntry(String pKey, QFont rFont, boolean bPersistent);
- public native void writeEntry(String pKey, QFont rFont);
+ public native void writeEntry(String pKey, TQFont rFont, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, TQFont rFont, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, TQFont rFont, boolean bPersistent);
+ public native void writeEntry(String pKey, TQFont rFont);
/**
Writes a (key/value) pair.
Same as above, but write a color entry.
@@ -578,10 +578,10 @@ public class KConfigBase extends QObject {
when writing it back.
@short Writes a (key/value) pair.
*/
- public native void writeEntry(String pKey, QColor rColor, boolean bPersistent, boolean bGlobal, boolean bNLS);
- public native void writeEntry(String pKey, QColor rColor, boolean bPersistent, boolean bGlobal);
- public native void writeEntry(String pKey, QColor rColor, boolean bPersistent);
- public native void writeEntry(String pKey, QColor rColor);
+ public native void writeEntry(String pKey, TQColor rColor, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, TQColor rColor, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, TQColor rColor, boolean bPersistent);
+ public native void writeEntry(String pKey, TQColor rColor);
/**
Writes a (key/value) pair.
Same as above, but writes a date and time entry.
@@ -618,10 +618,10 @@ public class KConfigBase extends QObject {
when writing it back.
@short Writes a (key/value) pair.
*/
- public native void writeEntry(String pKey, QRect rValue, boolean bPersistent, boolean bGlobal, boolean bNLS);
- public native void writeEntry(String pKey, QRect rValue, boolean bPersistent, boolean bGlobal);
- public native void writeEntry(String pKey, QRect rValue, boolean bPersistent);
- public native void writeEntry(String pKey, QRect rValue);
+ public native void writeEntry(String pKey, TQRect rValue, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, TQRect rValue, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, TQRect rValue, boolean bPersistent);
+ public native void writeEntry(String pKey, TQRect rValue);
/**
Writes a (key/value) pair.
Same as above, but writes a point.
@@ -638,10 +638,10 @@ public class KConfigBase extends QObject {
when writing it back.
@short Writes a (key/value) pair.
*/
- public native void writeEntry(String pKey, QPoint rValue, boolean bPersistent, boolean bGlobal, boolean bNLS);
- public native void writeEntry(String pKey, QPoint rValue, boolean bPersistent, boolean bGlobal);
- public native void writeEntry(String pKey, QPoint rValue, boolean bPersistent);
- public native void writeEntry(String pKey, QPoint rValue);
+ public native void writeEntry(String pKey, TQPoint rValue, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, TQPoint rValue, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, TQPoint rValue, boolean bPersistent);
+ public native void writeEntry(String pKey, TQPoint rValue);
/**
Writes a (key/value) pair.
Same as above, but writes a size.
@@ -658,10 +658,10 @@ public class KConfigBase extends QObject {
when writing it back.
@short Writes a (key/value) pair.
*/
- public native void writeEntry(String pKey, QSize rValue, boolean bPersistent, boolean bGlobal, boolean bNLS);
- public native void writeEntry(String pKey, QSize rValue, boolean bPersistent, boolean bGlobal);
- public native void writeEntry(String pKey, QSize rValue, boolean bPersistent);
- public native void writeEntry(String pKey, QSize rValue);
+ public native void writeEntry(String pKey, TQSize rValue, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, TQSize rValue, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, TQSize rValue, boolean bPersistent);
+ public native void writeEntry(String pKey, TQSize rValue);
/**
Writes a file path.
It is checked whether the path is located under $HOME. If so the
@@ -823,9 +823,9 @@ public class KConfigBase extends QObject {
The returned map may be empty if the group is not found.
@short Returns a map (tree) of entries for all entries in a particular group.
- @see org.kde.qt.QMap
+ @see org.kde.qt.TQMap
*/
- // QMap<QString, QString> entryMap(const QString& arg1); >>>> NOT CONVERTED
+ // TQMap<TQString, TQString> entryMap(const TQString& arg1); >>>> NOT CONVERTED
/**
Reparses all configuration files. This is useful for programs
that use stand alone graphical configuration tools. The base
@@ -915,8 +915,8 @@ public class KConfigBase extends QObject {
If an application computes a default value at runtime for
a certain entry, e.g. like:
<pre>
- QColor computedDefault = kapp.palette().color(QPalette.Active, QColorGroup.Text)
- QColor color = config.readEntry(key, computedDefault);
+ TQColor computedDefault = kapp.palette().color(TQPalette.Active, TQColorGroup.Text)
+ TQColor color = config.readEntry(key, computedDefault);
\encode
Then it may wish to make the following check before
writing back changes: