summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KGlobalSettings.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KGlobalSettings.java')
-rw-r--r--kdejava/koala/org/kde/koala/KGlobalSettings.java88
1 files changed, 44 insertions, 44 deletions
diff --git a/kdejava/koala/org/kde/koala/KGlobalSettings.java b/kdejava/koala/org/kde/koala/KGlobalSettings.java
index e7db8734..a5bab271 100644
--- a/kdejava/koala/org/kde/koala/KGlobalSettings.java
+++ b/kdejava/koala/org/kde/koala/KGlobalSettings.java
@@ -2,12 +2,12 @@
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.TQColor;
+import org.kde.qt.TQRect;
+import org.kde.qt.TQFont;
import org.kde.qt.QtSupport;
-import org.kde.qt.QPoint;
-import org.kde.qt.QWidget;
+import org.kde.qt.TQPoint;
+import org.kde.qt.TQWidget;
/**
@@ -56,22 +56,22 @@ public class KGlobalSettings implements QtSupport {
be started. This prevents spurious drags when the user intended
to click on something but moved the mouse a bit while doing so.
For this to work you must save the position of the mouse (oldPos)
- in the QWidget.mousePressEvent().
+ in the TQWidget.mousePressEvent().
When the position of the mouse (newPos)
- in a QWidget.mouseMoveEvent() exceeds this threshold
+ in a TQWidget.mouseMoveEvent() exceeds this threshold
you may start a drag
which should originate from oldPos.
Example code:
<pre>
- void KColorCells.mousePressEvent( QMouseEvent e )
+ void KColorCells.mousePressEvent( TQMouseEvent e )
{
mOldPos = e.pos();
}
- void KColorCells.mouseMoveEvent( QMouseEvent e )
+ void KColorCells.mouseMoveEvent( TQMouseEvent e )
{
if( !(e.state() && LeftButton)) return;
int delay = KGlobalSettings.dndEventDelay();
- QPoint newPos = e.pos();
+ TQPoint newPos = e.pos();
if(newPos.x() > mOldPos.x()+delay || newPos.x() < mOldPos.x()-delay ||
newPos.y() > mOldPos.y()+delay || newPos.y() < mOldPos.y()-delay)
{
@@ -201,35 +201,35 @@ public class KGlobalSettings implements QtSupport {
@short The default color to use when highlighting toolbar buttons.
*/
- public static native QColor toolBarHighlightColor();
+ public static native TQColor toolBarHighlightColor();
/**
The default color to use for inactive titles.
@return the inactive title color
@short The default color to use for inactive titles.
*/
- public static native QColor inactiveTitleColor();
+ public static native TQColor inactiveTitleColor();
/**
The default color to use for inactive texts.
@return the inactive text color
@short The default color to use for inactive texts.
*/
- public static native QColor inactiveTextColor();
+ public static native TQColor inactiveTextColor();
/**
The default color to use for active titles.
@return the active title color
@short The default color to use for active titles.
*/
- public static native QColor activeTitleColor();
+ public static native TQColor activeTitleColor();
/**
The default color to use for active texts.
@return the active text color
@short The default color to use for active texts.
*/
- public static native QColor activeTextColor();
+ public static native TQColor activeTextColor();
/**
Returns the contrast for borders.
@return the contrast (between 0 for minimum and 10 for maximum
@@ -244,60 +244,60 @@ public class KGlobalSettings implements QtSupport {
@short Returns the button background color
*/
- public static native QColor buttonBackground();
+ public static native TQColor buttonBackground();
/**
Returns the button text color
@return the button text color
@short Returns the button text color
*/
- public static native QColor buttonTextColor();
+ public static native TQColor buttonTextColor();
/**
Returns the default base (background) color.
@return the default base (background) color
@short Returns the default base (background) color.
- @see org.kde.qt.QColorGroup#base
+ @see org.kde.qt.TQColorGroup#base
*/
- public static native QColor baseColor();
+ public static native TQColor baseColor();
/**
Returns the default text color.
@return the default text color
@short Returns the default text color.
- @see org.kde.qt.QColorGroup#text
+ @see org.kde.qt.TQColorGroup#text
*/
- public static native QColor textColor();
+ public static native TQColor textColor();
/**
Returns the default link color.
@return the default link color
@short Returns the default link color.
*/
- public static native QColor linkColor();
+ public static native TQColor linkColor();
/**
Returns the default color for visited links.
@return the default color for visited links
@short Returns the default color for visited links.
*/
- public static native QColor visitedLinkColor();
+ public static native TQColor visitedLinkColor();
/**
Returns the default color for highlighted text.
@return the default color for highlighted text
@short Returns the default color for highlighted text.
- @see org.kde.qt.QColorGroup#hightlightedText
+ @see org.kde.qt.TQColorGroup#hightlightedText
*/
- public static native QColor highlightedTextColor();
+ public static native TQColor highlightedTextColor();
/**
Returns the default color for text highlights.
@return the default color for text highlights
@short Returns the default color for text highlights.
- @see org.kde.qt.QColorGroup#hightlight
+ @see org.kde.qt.TQColorGroup#hightlight
*/
- public static native QColor highlightColor();
+ public static native TQColor highlightColor();
/**
Returns the alternate background color used by KListView with
KListViewItem. Any other list that uses alternating background
@@ -308,7 +308,7 @@ public class KGlobalSettings implements QtSupport {
@short Returns the alternate background color used by KListView with KListViewItem.
@see #calculateAlternateBackgroundColor
*/
- public static native QColor alternateBackgroundColor();
+ public static native TQColor alternateBackgroundColor();
/**
Calculates a color based on <code>base</code> to be used as alternating
color for e.g. listviews.
@@ -318,7 +318,7 @@ public class KGlobalSettings implements QtSupport {
@short Calculates a color based on <code>base</code> to be used as alternating color for e.
@see #alternateBackgroundColor
*/
- public static native QColor calculateAlternateBackgroundColor(QColor base);
+ public static native TQColor calculateAlternateBackgroundColor(TQColor base);
/**
Returns if the sorted column in a KListView shall be drawn with a
shaded background color.
@@ -333,42 +333,42 @@ public class KGlobalSettings implements QtSupport {
@short Returns the default general font.
*/
- public static native QFont generalFont();
+ public static native TQFont generalFont();
/**
Returns the default fixed font.
@return the default fixed font.
@short Returns the default fixed font.
*/
- public static native QFont fixedFont();
+ public static native TQFont fixedFont();
/**
Returns the default toolbar font.
@return the default toolbar font.
@short Returns the default toolbar font.
*/
- public static native QFont toolBarFont();
+ public static native TQFont toolBarFont();
/**
Returns the default menu font.
@return the default menu font.
@short Returns the default menu font.
*/
- public static native QFont menuFont();
+ public static native TQFont menuFont();
/**
Returns the default window title font.
@return the default window title font.
@short Returns the default window title font.
*/
- public static native QFont windowTitleFont();
+ public static native TQFont windowTitleFont();
/**
Returns the default taskbar font.
@return the default taskbar font.
@short Returns the default taskbar font.
*/
- public static native QFont taskbarFont();
+ public static native TQFont taskbarFont();
/**
Returns a font of approx. 48 pt. capable of showing <code>text.</code>
@param text the text to test
@@ -376,8 +376,8 @@ public class KGlobalSettings implements QtSupport {
@short Returns a font of approx.
*/
- public static native QFont largeFont(String text);
- public static native QFont largeFont();
+ public static native TQFont largeFont(String text);
+ public static native TQFont largeFont();
/**
Returns if the user specified multihead. In case the display
has multiple screens, the return value of this function specifies
@@ -389,16 +389,16 @@ public class KGlobalSettings implements QtSupport {
*/
public static native boolean isMultiHead();
/**
- Typically, QScrollView derived classes can be scrolled fast by
+ Typically, TQScrollView derived classes can be scrolled fast by
holding down the Ctrl-button during wheel-scrolling.
- But QTextEdit and derived classes perform zooming instead of fast
+ But TQTextEdit and derived classes perform zooming instead of fast
scrolling.
This value determines whether the user wants to zoom or scroll fast
with Ctrl-wheelscroll.
@return true if the user wishes to zoom with the mouse wheel,
false for scrolling
- @short Typically, QScrollView derived classes can be scrolled fast by holding down the Ctrl-button during wheel-scrolling.
+ @short Typically, TQScrollView derived classes can be scrolled fast by holding down the Ctrl-button during wheel-scrolling.
*/
public static native boolean wheelMouseZooms();
/**
@@ -411,7 +411,7 @@ public class KGlobalSettings implements QtSupport {
@short This function returns the desktop geometry for an application's splash screen.
*/
- public static native QRect splashScreenDesktopGeometry();
+ public static native TQRect splashScreenDesktopGeometry();
/**
This function returns the desktop geometry for an application that needs
to set the geometry of a widget on the screen manually. It takes into
@@ -426,7 +426,7 @@ public class KGlobalSettings implements QtSupport {
@short This function returns the desktop geometry for an application that needs to set the geometry of a widget on the screen manually.
*/
- public static native QRect desktopGeometry(QPoint point);
+ public static native TQRect desktopGeometry(TQPoint point);
/**
This function returns the desktop geometry for an application that needs
to set the geometry of a widget on the screen manually. It takes into
@@ -439,7 +439,7 @@ public class KGlobalSettings implements QtSupport {
@short This function returns the desktop geometry for an application that needs to set the geometry of a widget on the screen manually.
*/
- public static native QRect desktopGeometry(QWidget w);
+ public static native TQRect desktopGeometry(TQWidget w);
/**
This function determines if the user wishes to see icons on the
push buttons.
@@ -458,7 +458,7 @@ public class KGlobalSettings implements QtSupport {
public static native boolean showFilePreview(KURL arg1);
/**
Whether the user wishes to use opaque resizing. Primarily
- intended for QSplitter.setOpaqueResize()
+ intended for TQSplitter.setOpaqueResize()
@return Returns true if user wants to use opaque resizing.
@short Whether the user wishes to use opaque resizing.