From 566093084927a5b4124a18b767e5632d4b5e4deb Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 4 Feb 2013 14:26:06 -0600 Subject: Fix prior commit --- kdejava/koala/org/kde/koala/KIconButton.java | 110 ------- .../koala/org/kde/koala/KIconButtonSignals.java | 14 - kdejava/koala/org/kde/koala/KIconCanvas.java | 52 --- .../koala/org/kde/koala/KIconCanvasSignals.java | 17 - kdejava/koala/org/kde/koala/KIconDialog.java | 159 ---------- .../koala/org/kde/koala/KIconDialogSignals.java | 10 - kdejava/koala/org/kde/koala/KIconEffect.java | 236 -------------- kdejava/koala/org/kde/koala/KIconLoader.java | 348 --------------------- kdejava/koala/org/kde/koala/KIconView.java | 151 --------- kdejava/koala/org/kde/koala/KIconViewItem.java | 96 ------ kdejava/koala/org/kde/koala/KIconViewSignals.java | 63 ---- kdejava/koala/org/kde/koala/TDEIconButton.java | 110 +++++++ .../koala/org/kde/koala/TDEIconButtonSignals.java | 14 + kdejava/koala/org/kde/koala/TDEIconCanvas.java | 52 +++ .../koala/org/kde/koala/TDEIconCanvasSignals.java | 17 + kdejava/koala/org/kde/koala/TDEIconDialog.java | 159 ++++++++++ .../koala/org/kde/koala/TDEIconDialogSignals.java | 10 + kdejava/koala/org/kde/koala/TDEIconEffect.java | 236 ++++++++++++++ kdejava/koala/org/kde/koala/TDEIconLoader.java | 348 +++++++++++++++++++++ kdejava/koala/org/kde/koala/TDEIconView.java | 151 +++++++++ kdejava/koala/org/kde/koala/TDEIconViewItem.java | 96 ++++++ .../koala/org/kde/koala/TDEIconViewSignals.java | 63 ++++ 22 files changed, 1256 insertions(+), 1256 deletions(-) delete mode 100644 kdejava/koala/org/kde/koala/KIconButton.java delete mode 100644 kdejava/koala/org/kde/koala/KIconButtonSignals.java delete mode 100644 kdejava/koala/org/kde/koala/KIconCanvas.java delete mode 100644 kdejava/koala/org/kde/koala/KIconCanvasSignals.java delete mode 100644 kdejava/koala/org/kde/koala/KIconDialog.java delete mode 100644 kdejava/koala/org/kde/koala/KIconDialogSignals.java delete mode 100644 kdejava/koala/org/kde/koala/KIconEffect.java delete mode 100644 kdejava/koala/org/kde/koala/KIconLoader.java delete mode 100644 kdejava/koala/org/kde/koala/KIconView.java delete mode 100644 kdejava/koala/org/kde/koala/KIconViewItem.java delete mode 100644 kdejava/koala/org/kde/koala/KIconViewSignals.java create mode 100644 kdejava/koala/org/kde/koala/TDEIconButton.java create mode 100644 kdejava/koala/org/kde/koala/TDEIconButtonSignals.java create mode 100644 kdejava/koala/org/kde/koala/TDEIconCanvas.java create mode 100644 kdejava/koala/org/kde/koala/TDEIconCanvasSignals.java create mode 100644 kdejava/koala/org/kde/koala/TDEIconDialog.java create mode 100644 kdejava/koala/org/kde/koala/TDEIconDialogSignals.java create mode 100644 kdejava/koala/org/kde/koala/TDEIconEffect.java create mode 100644 kdejava/koala/org/kde/koala/TDEIconLoader.java create mode 100644 kdejava/koala/org/kde/koala/TDEIconView.java create mode 100644 kdejava/koala/org/kde/koala/TDEIconViewItem.java create mode 100644 kdejava/koala/org/kde/koala/TDEIconViewSignals.java (limited to 'kdejava/koala/org/kde') diff --git a/kdejava/koala/org/kde/koala/KIconButton.java b/kdejava/koala/org/kde/koala/KIconButton.java deleted file mode 100644 index a8b2697a..00000000 --- a/kdejava/koala/org/kde/koala/KIconButton.java +++ /dev/null @@ -1,110 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.TQMetaObject; -import org.kde.qt.QtSupport; -import org.kde.qt.TQWidget; -import org.kde.qt.TQPushButton; - -/** - - A pushbutton for choosing an icon. Pressing on the button will open a - TDEIconDialog for the user to select an icon. The current icon will be - displayed on the button. - See {@link TDEIconButtonSignals} for signals emitted by TDEIconButton - @short A push button that allows selection of an icon. - @see TDEIconDialog - -*/ -public class TDEIconButton extends TQPushButton { - protected TDEIconButton(Class dummy){super((Class) null);} - public native TQMetaObject metaObject(); - public native String className(); - /** - Constructs a TDEIconButton using the global iconloader. - @short Constructs a TDEIconButton using the global iconloader. - */ - public TDEIconButton(TQWidget parent, String name) { - super((Class) null); - newTDEIconButton(parent,name); - } - private native void newTDEIconButton(TQWidget parent, String name); - public TDEIconButton(TQWidget parent) { - super((Class) null); - newTDEIconButton(parent); - } - private native void newTDEIconButton(TQWidget parent); - public TDEIconButton() { - super((Class) null); - newTDEIconButton(); - } - private native void newTDEIconButton(); - /** - Constructs a TDEIconButton using a specific TDEIconLoader. - @short Constructs a TDEIconButton using a specific TDEIconLoader. - */ - public TDEIconButton(TDEIconLoader loader, TQWidget parent, String name) { - super((Class) null); - newTDEIconButton(loader,parent,name); - } - private native void newTDEIconButton(TDEIconLoader loader, TQWidget parent, String name); - public TDEIconButton(TDEIconLoader loader, TQWidget parent) { - super((Class) null); - newTDEIconButton(loader,parent); - } - private native void newTDEIconButton(TDEIconLoader loader, TQWidget parent); - /** - Sets a strict icon size policy for allowed icons. When true, - only icons of the specified group's size in setIconType are allowed, - and only icons of that size will be shown in the icon dialog. - @short Sets a strict icon size policy for allowed icons. - */ - public native void setStrictIconSize(boolean b); - /** - Returns true if a strict icon size policy is set. - @short Returns true if a strict icon size policy is set. - */ - public native boolean strictIconSize(); - /** - Sets the icon group and context. Use TDEIcon.NoGroup if you want to - allow icons for any group in the given context. - @short Sets the icon group and context. - */ - public native void setIconType(int group, int context, boolean user); - public native void setIconType(int group, int context); - /** - Sets the button's initial icon. - @short Sets the button's initial icon. - */ - public native void setIcon(String icon); - /** - Resets the icon (reverts to an empty button). - @short Resets the icon (reverts to an empty button). - */ - public native void resetIcon(); - /** - Returns the name of the selected icon. - @short Returns the name of the selected icon. - */ - public native String iconName(); - /** - Sets the size of the icon to be shown / selected. - @short Sets the size of the icon to be shown / selected. - @see TDEIcon#StdSizes - @see #iconSize - */ - public native void setIconSize(int size); - /** - Returns the iconsize set via setIconSize() or 0, if the default - iconsize will be used. - @short Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used. - */ - public native int iconSize(); - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KIconButtonSignals.java b/kdejava/koala/org/kde/koala/KIconButtonSignals.java deleted file mode 100644 index 73288b36..00000000 --- a/kdejava/koala/org/kde/koala/KIconButtonSignals.java +++ /dev/null @@ -1,14 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.TQMetaObject; -import org.kde.qt.QtSupport; -import org.kde.qt.TQWidget; - -public interface TDEIconButtonSignals { - /** - Emitted when the icon has changed. - @short Emitted when the icon has changed. - */ - void iconChanged(String icon); -} diff --git a/kdejava/koala/org/kde/koala/KIconCanvas.java b/kdejava/koala/org/kde/koala/KIconCanvas.java deleted file mode 100644 index 68404a84..00000000 --- a/kdejava/koala/org/kde/koala/KIconCanvas.java +++ /dev/null @@ -1,52 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.TQMetaObject; -import org.kde.qt.QtSupport; -import org.kde.qt.TQWidget; - -/** - - Icon canvas for TDEIconDialog. - See {@link TDEIconCanvasSignals} for signals emitted by TDEIconCanvas - @short Icon canvas for TDEIconDialog. - -*/ -public class TDEIconCanvas extends TDEIconView { - protected TDEIconCanvas(Class dummy){super((Class) null);} - public native TQMetaObject metaObject(); - public native String className(); - public TDEIconCanvas(TQWidget parent, String name) { - super((Class) null); - newTDEIconCanvas(parent,name); - } - private native void newTDEIconCanvas(TQWidget parent, String name); - public TDEIconCanvas(TQWidget parent) { - super((Class) null); - newTDEIconCanvas(parent); - } - private native void newTDEIconCanvas(TQWidget parent); - public TDEIconCanvas() { - super((Class) null); - newTDEIconCanvas(); - } - private native void newTDEIconCanvas(); - /** - Load icons into the canvas. - @short Load icons into the canvas. - */ - public native void loadFiles(String[] files); - /** - Returns the current icon. - @short Returns the current icon. - */ - public native String getCurrent(); - public native void stopLoading(); - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KIconCanvasSignals.java b/kdejava/koala/org/kde/koala/KIconCanvasSignals.java deleted file mode 100644 index e14c301b..00000000 --- a/kdejava/koala/org/kde/koala/KIconCanvasSignals.java +++ /dev/null @@ -1,17 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.TQMetaObject; -import org.kde.qt.QtSupport; -import org.kde.qt.TQWidget; - -public interface TDEIconCanvasSignals { - /** - Emitted when the current icon has changed. - @short Emitted when the current icon has changed. - */ - void nameChanged(String arg1); - void startLoading(int arg1); - void progress(int arg1); - void finished(); -} diff --git a/kdejava/koala/org/kde/koala/KIconDialog.java b/kdejava/koala/org/kde/koala/KIconDialog.java deleted file mode 100644 index b23266dd..00000000 --- a/kdejava/koala/org/kde/koala/KIconDialog.java +++ /dev/null @@ -1,159 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.TQMetaObject; -import org.kde.qt.QtSupport; -import org.kde.qt.TQWidget; - -/** - - Dialog for interactive selection of icons. Use the function - getIcon() let the user select an icon. - See {@link TDEIconDialogSignals} for signals emitted by TDEIconDialog - @short An icon selection dialog. - -*/ -public class TDEIconDialog extends KDialogBase { - protected TDEIconDialog(Class dummy){super((Class) null);} - public native TQMetaObject metaObject(); - public native String className(); - /** - Constructs an icon selection dialog using the global iconloader. - @short Constructs an icon selection dialog using the global iconloader. - */ - public TDEIconDialog(TQWidget parent, String name) { - super((Class) null); - newTDEIconDialog(parent,name); - } - private native void newTDEIconDialog(TQWidget parent, String name); - public TDEIconDialog(TQWidget parent) { - super((Class) null); - newTDEIconDialog(parent); - } - private native void newTDEIconDialog(TQWidget parent); - public TDEIconDialog() { - super((Class) null); - newTDEIconDialog(); - } - private native void newTDEIconDialog(); - /** - Constructs an icon selection dialog using a specific iconloader. - @short Constructs an icon selection dialog using a specific iconloader. - */ - public TDEIconDialog(TDEIconLoader loader, TQWidget parent, String name) { - super((Class) null); - newTDEIconDialog(loader,parent,name); - } - private native void newTDEIconDialog(TDEIconLoader loader, TQWidget parent, String name); - public TDEIconDialog(TDEIconLoader loader, TQWidget parent) { - super((Class) null); - newTDEIconDialog(loader,parent); - } - private native void newTDEIconDialog(TDEIconLoader loader, TQWidget parent); - public TDEIconDialog(TDEIconLoader loader) { - super((Class) null); - newTDEIconDialog(loader); - } - private native void newTDEIconDialog(TDEIconLoader loader); - /** - Sets a strict icon size policy for allowed icons. When true, - only icons of the specified group's size in getIcon() are shown. - When false, icons not available at the desired group's size will - also be selectable. - @short Sets a strict icon size policy for allowed icons. - */ - public native void setStrictIconSize(boolean b); - /** - Returns true if a strict icon size policy is set. - @short Returns true if a strict icon size policy is set. - */ - public native boolean strictIconSize(); - /** - sets a custom icon directory - @short sets a custom icon directory - */ - public native void setCustomLocation(String location); - /** - Sets the size of the icons to be shown / selected. - @short Sets the size of the icons to be shown / selected. - @see TDEIcon#StdSizes - @see #iconSize - */ - public native void setIconSize(int size); - /** - Returns the iconsize set via setIconSize() or 0, if the default - iconsize will be used. - @short Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used. - */ - public native int iconSize(); - /** - Allows you to set the same parameters as in the class method - getIcon(). - @short Allows you to set the same parameters as in the class method getIcon(). - */ - public native void setup(int group, int context, boolean strictIconSize, int iconSize, boolean user); - public native void setup(int group, int context, boolean strictIconSize, int iconSize); - public native void setup(int group, int context, boolean strictIconSize); - public native void setup(int group, int context); - public native void setup(int group); - /** - Allows you to set the same parameters as in the class method - getIcon(), as well as two additional parameters to lock - the choice between system and user dirs and to lock the custom user - dir itself. - @short Allows you to set the same parameters as in the class method getIcon(), as well as two additional parameters to lock the choice between system and user dirs and to lock the custom user dir itself. - */ - public native void setup(int group, int context, boolean strictIconSize, int iconSize, boolean user, boolean lockUser, boolean lockCustomDir); - /** - exec()utes this modal dialog and returns the name of the selected icon, - or null if the dialog was aborted. - @return the name of the icon, suitable for loading with TDEIconLoader. - - @short exec()utes this modal dialog and returns the name of the selected icon, or String.null if the dialog was aborted. - @see #getIcon - */ - public native String openDialog(); - /** - show()es this dialog and emits a newIcon(String) signal when - successful. null will be emitted if the dialog was aborted. - @short show()es this dialog and emits a newIcon(String) signal when successful. - */ - public native void showDialog(); - /** - Pops up the dialog an lets the user select an icon. - @param group The icon group this icon is intended for. Providing the - group shows the icons in the dialog with the same appearance as when - used outside the dialog. - @param context The initial icon context. Initially, the icons having - this context are shown in the dialog. The user can change this. - @param strictIconSize When true, only icons of the specified group's size - are shown, otherwise icon not available in the desired group's size - will also be selectable. - @param iconSize the size of the icons -- the default of the icongroup - if set to 0 - @param user Begin with the "user icons" instead of "system icons". - @param parent The parent widget of the dialog. - @param caption The caption to use for the dialog. - @return The name of the icon, suitable for loading with TDEIconLoader. - - @version New in 3.0 - - @short Pops up the dialog an lets the user select an icon. - */ - public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user, TQWidget parent, String caption); - public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user, TQWidget parent); - public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user); - public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize); - public static native String getIcon(int group, int context, boolean strictIconSize); - public static native String getIcon(int group, int context); - public static native String getIcon(int group); - public static native String getIcon(); - protected native void slotOk(); - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KIconDialogSignals.java b/kdejava/koala/org/kde/koala/KIconDialogSignals.java deleted file mode 100644 index 0a42e920..00000000 --- a/kdejava/koala/org/kde/koala/KIconDialogSignals.java +++ /dev/null @@ -1,10 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.TQMetaObject; -import org.kde.qt.QtSupport; -import org.kde.qt.TQWidget; - -public interface TDEIconDialogSignals { - void newIconName(String arg1); -} diff --git a/kdejava/koala/org/kde/koala/KIconEffect.java b/kdejava/koala/org/kde/koala/KIconEffect.java deleted file mode 100644 index 689f1e76..00000000 --- a/kdejava/koala/org/kde/koala/KIconEffect.java +++ /dev/null @@ -1,236 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.TQColor; -import org.kde.qt.TQRect; -import org.kde.qt.QtSupport; -import org.kde.qt.TQPixmap; -import org.kde.qt.TQImage; -import org.kde.qt.TQWidget; - -/** - - Applies effects to icons. - This class applies effects to icons depending on their state and - group. For example, it can be used to make all disabled icons - in a toolbar gray. - @short Applies effects to icons. - @see TDEIcon - -*/ -public class TDEIconEffect implements QtSupport { - private long _qt; - private boolean _allocatedInJavaWorld = true; - protected TDEIconEffect(Class dummy){} - - /** - This is the enumeration of all possible icon effects. - Note that 'LastEffect' is no valid icon effect but only - used internally to check for invalid icon effects. - -
  • - NoEffect: Don't apply any icon effect -
  • - -
  • - ToGray: Tints the icon gray -
  • - -
  • - Colorize: Tints the icon with an other color -
  • - -
  • - ToGamma: Change the gamma value of the icon -
  • - -
  • - DeSaturate: Reduce the saturation of the icon -
  • - -
  • - ToMonochrome: Produces a monochrome icon - -
  • @short This is the enumeration of all possible icon effects. - */ - public static final int NoEffect = 0; - public static final int ToGray = 1; - public static final int Colorize = 2; - public static final int ToGamma = 3; - public static final int DeSaturate = 4; - public static final int ToMonochrome = 5; - public static final int LastEffect = 6; - - /** - Create a new TDEIconEffect. - @short Create a new TDEIconEffect. - */ - public TDEIconEffect() { - newTDEIconEffect(); - } - private native void newTDEIconEffect(); - /** - Rereads configuration. - @short Rereads configuration. - */ - public native void init(); - /** - Tests whether an effect has been configured for the given icon group. - @param group the group to check, see TDEIcon.Group - @param state the state to check, see TDEIcon.States - @return true if an effect is configured for the given group - in state, otherwise false. - - @short Tests whether an effect has been configured for the given icon group. - @see TDEIcon#Group - @see TDEIcon#States - */ - public native boolean hasEffect(int group, int state); - /** - Returns a fingerprint for the effect by encoding - the given group and state into a String. This - is useful for caching. - @param group the group, see TDEIcon.Group - @param state the state, see TDEIcon.States - @return the fingerprint of the given group+state - - @short Returns a fingerprint for the effect by encoding the given group and state into a String. - */ - public native String fingerprint(int group, int state); - /** - Applies an effect to an image. The effect to apply depends on the - group and state parameters, and is configured by the user. - @param src The image. - @param group The group for the icon, see TDEIcon.Group - @param state The icon's state, see TDEIcon.States - @return An image with the effect applied. - - @short Applies an effect to an image. - */ - public native TQImage apply(TQImage src, int group, int state); - /** - Applies an effect to an image. - @param src The image. - @param effect The effect to apply, one of TDEIconEffect.Effects. - @param value Strength of the effect. 0 <= value <= 1. - @param rgb Color parameter for effects that need one. - @param trans Add Transparency if trans = true. - @return An image with the effect applied. - - @short Applies an effect to an image. - */ - public native TQImage apply(TQImage src, int effect, float value, TQColor rgb, boolean trans); - /** - @short - */ - public native TQImage apply(TQImage src, int effect, float value, TQColor rgb, TQColor rgb2, boolean trans); - /** - Applies an effect to a pixmap. - @param src The pixmap. - @param group The group for the icon, see TDEIcon.Group - @param state The icon's state, see TDEIcon.States - @return A pixmap with the effect applied. - - @short Applies an effect to a pixmap. - */ - public native TQPixmap apply(TQPixmap src, int group, int state); - /** - Applies an effect to a pixmap. - @param src The pixmap. - @param effect The effect to apply, one of TDEIconEffect.Effects. - @param value Strength of the effect. 0 <= value <= 1. - @param rgb Color parameter for effects that need one. - @param trans Add Transparency if trans = true. - @return A pixmap with the effect applied. - - @short Applies an effect to a pixmap. - */ - public native TQPixmap apply(TQPixmap src, int effect, float value, TQColor rgb, boolean trans); - /** - @short - */ - public native TQPixmap apply(TQPixmap src, int effect, float value, TQColor rgb, TQColor rgb2, boolean trans); - /** - Returns an image twice as large, consisting of 2x2 pixels. - @param src the image. - @return the scaled image. - - @short Returns an image twice as large, consisting of 2x2 pixels. - */ - public native TQImage doublePixels(TQImage src); - /** - Provides visual feedback to show activation of an icon on a widget. - Not strictly an 'icon effect', but in practice that's what it looks - like. - This method does nothing if the global 'Visual feedback on activation' - option is not activated (See kcontrol/Peripherals/Mouse). - @param widget The widget on which the effect should be painted - @param rect This rectangle defines the effect's borders - @short Provides visual feedback to show activation of an icon on a widget. - */ - public static native void visualActivate(TQWidget widget, TQRect rect); - /** - Tints an image gray. - @param image The image - @param value Strength of the effect. 0 <= value <= 1 - @short Tints an image gray. - */ - public static native void toGray(TQImage image, float value); - /** - Colorizes an image with a specific color. - @param image The image - @param col The color with which the image is tinted - @param value Strength of the effect. 0 <= value <= 1 - @short Colorizes an image with a specific color. - */ - public static native void colorize(TQImage image, TQColor col, float value); - /** - Produces a monochrome icon with a given foreground and background color - @param image The image - @param white The color with which the white parts of image are painted - @param black The color with which the black parts of image are painted - @param value Strength of the effect. 0 <= value <= 1 - @short Produces a monochrome icon with a given foreground and background color - */ - public static native void toMonochrome(TQImage image, TQColor black, TQColor white, float value); - /** - Desaturates an image. - @param image The image - @param value Strength of the effect. 0 <= value <= 1 - @short Desaturates an image. - */ - public static native void deSaturate(TQImage image, float value); - /** - Changes the gamma value of an image. - @param image The image - @param value Strength of the effect. 0 <= value <= 1 - @short Changes the gamma value of an image. - */ - public static native void toGamma(TQImage image, float value); - /** - Renders an image semi-transparent. - @param image The image - @short Renders an image semi-transparent. - */ - public static native void semiTransparent(TQImage image); - /** - Renders a pixmap semi-transparent. - @param pixmap The pixmap - @short Renders a pixmap semi-transparent. - */ - public static native void semiTransparent(TQPixmap pixmap); - /** - Overlays an image with an other image. - @param src The image - @param overlay The image to overlay src with - @short Overlays an image with an other image. - */ - public static native void overlay(TQImage src, TQImage overlay); - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KIconLoader.java b/kdejava/koala/org/kde/koala/KIconLoader.java deleted file mode 100644 index 5ace9688..00000000 --- a/kdejava/koala/org/kde/koala/KIconLoader.java +++ /dev/null @@ -1,348 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.TQMovie; -import org.kde.qt.QtSupport; -import org.kde.qt.TQPixmap; -import java.util.ArrayList; -import org.kde.qt.TQIconSet; - -/** - - Iconloader for KDE. - TDEIconLoader will load the current icon theme and all its base themes. - Icons will be searched in any of these themes. Additionally, it caches - icons and applies effects according the the user's preferences. - In KDE, it is encouraged to load icons by "Group". An icon group is a - location on the screen where icons are being used. Standard groups are: - Desktop, Toolbar, MainToolbar, Small and Panel. Each group has some - centrally configured properties bound to it, including the icon size - and effects. This makes it possible to offer a consistent icon look in - all KDE applications. - The standard groups are defined below. - -
  • - TDEIcon.Desktop: Icons in the iconview of konqueror, kdesktop and similar apps. -
  • - -
  • - TDEIcon.Toolbar: Icons in toolbars. -
  • - -
  • - TDEIcon.MainToolbar: Icons in the main toolbars. -
  • - -
  • - TDEIcon.Small: Various small (typical 16x16) places: titlebars, listviews - and menu entries. -
  • - -
  • - TDEIcon.Panel: Icons in kicker's panel -
  • - The icons are stored on disk in an icon theme or in a standalone - directory. The icon theme directories contain multiple sizes and/or - depths for the same icon. The iconloader will load the correct one based - on the icon group and the current theme. Icon themes are stored globally - in share/icons, or, application specific in share/apps/$appdir/icons. - The standalone directories contain just one version of an icon. The - directories that are searched are: $appdir/pics and $appdir/toolbar. - Icons in these directories can be loaded by using the special group - "User". - @short Iconloader for KDE. - -*/ -public class TDEIconLoader implements QtSupport { - private long _qt; - private boolean _allocatedInJavaWorld = true; - protected TDEIconLoader(Class dummy){} - - /** - Constructs an iconloader. - @param appname Add the data directories of this application to the - icon search path for the "User" group. The default argument adds the - directories of the current application. - @param dirs the TDEStandardDirs object to use. If null the global one is used - Usually, you use the default iconloader, which can be accessed via - TDEGlobal.iconLoader(), so you hardly ever have to create an - iconloader object yourself. That one is the current TDEInstance's - (typically TDEApplication's) iconloader. - @short Constructs an iconloader. - @see TDEGlobal#iconLoader - @see TDEInstance#iconLoader - */ - public TDEIconLoader(String appname, TDEStandardDirs dirs) { - newTDEIconLoader(appname,dirs); - } - private native void newTDEIconLoader(String appname, TDEStandardDirs dirs); - public TDEIconLoader(String appname) { - newTDEIconLoader(appname); - } - private native void newTDEIconLoader(String appname); - public TDEIconLoader() { - newTDEIconLoader(); - } - private native void newTDEIconLoader(); - /** - Adds appname to the list of application specific directories. - @param appname The application name. - @short Adds appname to the list of application specific directories. - */ - public native void addAppDir(String appname); - /** - Loads an icon. It will try very hard to find an icon which is - suitable. If no exact match is found, a close match is searched. - If neither an exact nor a close match is found, a null pixmap or - the "unknown" pixmap is returned, depending on the value of the - canReturnNull parameter. - @param name The name of the icon, without extension. - @param group The icon group. This will specify the size of and effects to - be applied to the icon. - @param size If nonzero, this overrides the size specified by group. - See TDEIcon.StdSizes. - @param state The icon state: DefaultState, ActiveState or - DisabledState. Depending on the user's preferences, the iconloader - may apply a visual effect to hint about its state. - @param path_store If not null, the path of the icon is stored here. - @param canReturnNull Can return a null pixmap? If false, the - "unknown" pixmap is returned when no appropriate icon has been found. - @return the TQPixmap. Can be null when not found, depending on - canReturnNull. - - @short Loads an icon. - */ - public native TQPixmap loadIcon(String name, int group, int size, int state, StringBuffer path_store, boolean canReturnNull); - public native TQPixmap loadIcon(String name, int group, int size, int state, StringBuffer path_store); - public native TQPixmap loadIcon(String name, int group, int size, int state); - public native TQPixmap loadIcon(String name, int group, int size); - public native TQPixmap loadIcon(String name, int group); - /** - Creates an icon set, that will do on-demand loading of the icon. - Loading itself is done by calling loadIcon . - @param name The name of the icon, without extension. - @param group The icon group. This will specify the size of and effects to - be applied to the icon. - @param size If nonzero, this overrides the size specified by group. - See TDEIcon.StdSizes. - @param canReturnNull Can return a null iconset? If false, iconset - containing the "unknown" pixmap is returned when no appropriate icon has - been found. - @param immediateExistenceCheck If true on-demand icon loading will be - disabled for canReturnNull and a null iconset may be returned immediately - @return the icon set. Can be null when not found, depending on - canReturnNull. - - @short Creates an icon set, that will do on-demand loading of the icon. - */ - public native TQIconSet loadIconSet(String name, int group, int size, boolean canReturnNull, boolean immediateExistenceCheck); - /** - Creates an icon set, that will do on-demand loading of the icon. - Loading itself is done by calling loadIcon . - @param name The name of the icon, without extension. - @param group The icon group. This will specify the size of and effects to - be applied to the icon. - @param size If nonzero, this overrides the size specified by group. - See TDEIcon.StdSizes. - @param canReturnNull Can return a null iconset? If false, iconset - containing the "unknown" pixmap is returned when no appropriate icon has - been found. - @return the icon set. Can be null when not found, depending on - canReturnNull. - - @short Creates an icon set, that will do on-demand loading of the icon. - */ - public native TQIconSet loadIconSet(String name, int group, int size, boolean canReturnNull); - /** - Creates an icon set, that will do on-demand loading of the icon. - Loading itself is done by calling loadIcon . - @param name The name of the icon, without extension. - @param group The icon group. This will specify the size of and effects to - be applied to the icon. - @param size If nonzero, this overrides the size specified by group. - See TDEIcon.StdSizes. - @return the icon set. Can be null when not found - - @short Creates an icon set, that will do on-demand loading of the icon. - */ - public native TQIconSet loadIconSet(String name, int group, int size); - public native TQIconSet loadIconSet(String name, int group); - /** - Returns the path of an icon. - @param name The name of the icon, without extension. If an absolute - path is supplied for this parameter, iconPath will return it - directly. - @param group_or_size If positive, search icons whose size is - specified by the icon group group_or_size. If negative, search - icons whose size is - group_or_size. - See TDEIcon.Group and TDEIcon.StdSizes - @param canReturnNull Can return a null string? If not, a path to the - "unknown" icon will be returned. - @return the path of an icon, can be null or the "unknown" icon when - not found, depending on canReturnNull. - - @short Returns the path of an icon. - */ - public native String iconPath(String name, int group_or_size, boolean canReturnNull); - public native String iconPath(String name, int group_or_size); - /** - Loads an animated icon. - @param name The name of the icon. - @param group The icon group. See loadIcon(). - @param size Override the default size for group. - See TDEIcon.StdSizes. - @return A TQMovie object. Can be null if not found. - - @short Loads an animated icon. - */ - public native TQMovie loadMovie(String name, int group, int size); - public native TQMovie loadMovie(String name, int group); - /** - Returns the path to an animated icon. - @param name The name of the icon. - @param group The icon group. See loadIcon(). - @param size Override the default size for group. - See TDEIcon.StdSizes. - @return the full path to the movie, ready to be passed to TQMovie's constructor. - Empty string if not found. - - @short Returns the path to an animated icon. - */ - public native String moviePath(String name, int group, int size); - public native String moviePath(String name, int group); - /** - Loads an animated icon as a series of still frames. If you want to load - a .mng animation as TQMovie instead, please use loadMovie() instead. - @param name The name of the icon. - @param group The icon group. See loadIcon(). - @param size Override the default size for group. - See TDEIcon.StdSizes. - @return An ArrayList containing the absolute path of all the frames - making up the animation. - - @short Loads an animated icon as a series of still frames. - */ - public native ArrayList loadAnimated(String name, int group, int size); - public native ArrayList loadAnimated(String name, int group); - /** - Queries all available icons for a specific group, having a specific - context. - @param group_or_size If positive, search icons whose size is - specified by the icon group group_or_size. If negative, search - icons whose size is - group_or_size. - See TDEIcon.Group and TDEIcon.StdSizes - @param context The icon context. - @return a list of all icons - - @short Queries all available icons for a specific group, having a specific context. - */ - public native ArrayList queryIcons(int group_or_size, int context); - public native ArrayList queryIcons(int group_or_size); - /** - Queries all available icons for a specific context. - @param group_or_size The icon preferred group or size. If available - at this group or size, those icons will be returned, in other case, - icons of undefined size will be returned. Positive numbers are groups, - negative numbers are negated sizes. See TDEIcon.Group and - TDEIcon.StdSizes - @param context The icon context. - @return An ArrayList containing the icon names - available for that context - - @short Queries all available icons for a specific context. - */ - public native ArrayList queryIconsByContext(int group_or_size, int context); - public native ArrayList queryIconsByContext(int group_or_size); - /** - Returns a list of all icons (.png or .xpm extension) in the - given directory. - @param iconsDir the directory to search in - @return An ArrayList containing the icon paths - - @short Returns a list of all icons ( . - */ - public native ArrayList queryIconsByDir(String iconsDir); - /** - Returns the current size of the group. - @param group the group to check. - @return the current size for an icon group. - - @short Returns the current size of the group. - */ - public native int currentSize(int group); - /** - Returns a pointer to the current theme. Can be used to query - available and default sizes for groups. - @return a pointer to the current theme. 0 if no theme set. - - @short Returns a pointer to the current theme. - */ - // TDEIconTheme* theme(); >>>> NOT CONVERTED - /** - Returns a pointer to the TDEIconEffect object used by the icon loader. - @return the TDEIconEffect. - - @short Returns a pointer to the TDEIconEffect object used by the icon loader. - */ - public native TDEIconEffect iconEffect(); - /** - Called by TDEInstance.newIconLoader to reconfigure the icon loader. - @param _appname the new application name - @param _dirs the new standard directories. If 0, the directories - from TDEGlobal will be taken. - @short Called by TDEInstance.newIconLoader to reconfigure the icon loader. - */ - public native void reconfigure(String _appname, TDEStandardDirs _dirs); - /** - Adds all the default themes from other desktops at the end of - the list of icon themes. - @short Adds all the default themes from other desktops at the end of the list of icon themes. - */ - public native void addExtraDesktopThemes(); - /** - Returns if the default icon themes of other desktops have been added - to the list of icon themes where icons are searched. - @short Returns if the default icon themes of other desktops have been added to the list of icon themes where icons are searched. - */ - public native boolean extraDesktopThemesAdded(); - /** - Enables on-demand icon loading for TQIconSets using TQIconFactory. - Icons loaded via loadIconSet() will be loaded as soon as they - need to be displayed, not earlier. - Note that enabling or disabling this only affects loadIconSet() - calls after this setting is changed. - The default is disabled, as the iconloader object must not be - destroyed before all those iconsets are destroyed. - (Some broken applications use temporary TDEIconLoader objects). - Every TDEInstance 's iconloader has this feature enabled. - @param enable true to enable delayed icon loading, false to disable - @short Enables on-demand icon loading for TQIconSets using TQIconFactory. - @see #isDelayedIconSetLoadingEnabled - @see org.kde.qt.TQIconFactory - */ - public native void enableDelayedIconSetLoading(boolean enable); - /** - Checks whether delayed loading for TQIconSet is enabled. - @return whether icons for TQIconSets will be loaded on demand. - - @short Checks whether delayed loading for TQIconSet is enabled. - @see #enableDelayedIconSetLoading - @see org.kde.qt.TQIconFactory - */ - public native boolean isDelayedIconSetLoadingEnabled(); - /** - Returns the unknown icon. An icon that is used when no other icon - can be found. - @return the unknown pixmap - - @short Returns the unknown icon. - */ - public static native TQPixmap unknown(); - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KIconView.java b/kdejava/koala/org/kde/koala/KIconView.java deleted file mode 100644 index 6a1cf163..00000000 --- a/kdejava/koala/org/kde/koala/KIconView.java +++ /dev/null @@ -1,151 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.TQIconViewItem; -import org.kde.qt.TQFont; -import org.kde.qt.TQMetaObject; -import org.kde.qt.QtSupport; -import org.kde.qt.TQPoint; -import org.kde.qt.TQDragMoveEvent; -import org.kde.qt.TQDragEnterEvent; -import org.kde.qt.TQDragLeaveEvent; -import org.kde.qt.TQFocusEvent; -import org.kde.qt.TQMouseEvent; -import org.kde.qt.TQDropEvent; -import org.kde.qt.TQEvent; -import org.kde.qt.TQWidget; -import org.kde.qt.TQWheelEvent; -import org.kde.qt.TQIconView; - -/** - - This Widget extends the functionality of TQIconView to honor the system - wide settings for Single Click/Double Click mode, Auto Selection and - Change Cursor over Link. - There is a new signal executed(). It gets connected to either - TQIconView.clicked() or TQIconView.doubleClicked() depending on the KDE - wide Single Click/Double Click settings. It is strongly recommended that - you use this signal instead of the above mentioned. This way you don't - need to care about the current settings. - If you want to get informed when the user selects something connect to the - TQIconView.selectionChanged() signal. - See {@link TDEIconViewSignals} for signals emitted by TDEIconView - @short A variant of TQIconView that honors KDE's system-wide settings. - -*/ -public class TDEIconView extends TQIconView { - protected TDEIconView(Class dummy){super((Class) null);} - /** - TDEIconView has two different operating modes. Execute mode is depending - on the configuration of single-click or double-click where the signal - executed() will be emitted upon click/double-click. - In Select mode, this signal will not be emitted. - Default is Execute mode. - @short TDEIconView has two different operating modes. - */ - public static final int Execute = 0; - public static final int Select = 1; - - public native TQMetaObject metaObject(); - public native String className(); - public TDEIconView(TQWidget parent, String name, int f) { - super((Class) null); - newTDEIconView(parent,name,f); - } - private native void newTDEIconView(TQWidget parent, String name, int f); - public TDEIconView(TQWidget parent, String name) { - super((Class) null); - newTDEIconView(parent,name); - } - private native void newTDEIconView(TQWidget parent, String name); - public TDEIconView(TQWidget parent) { - super((Class) null); - newTDEIconView(parent); - } - private native void newTDEIconView(TQWidget parent); - public TDEIconView() { - super((Class) null); - newTDEIconView(); - } - private native void newTDEIconView(); - /** - Sets the mode to Execute or Select. - -
  • - In Execute mode, the signal executed() - will be emitted when the user clicks/double-clicks an item. -
  • - -
  • - Select mode is - the normal TQIconView mode. -
  • - Default is Execute. - @short Sets the mode to Execute or Select. - */ - public native void setMode(int m); - /** - @return the current Mode, either Execute or Select. - - @short - */ - public native int mode(); - /** - Reimplemented for internal purposes - @short Reimplemented for internal purposes - */ - public native void setFont(TQFont arg1); - /** - Set the maximum number of lines that will be used to display icon text. - Setting this value will enable word-wrap, too. - @param n Number of lines - @short Set the maximum number of lines that will be used to display icon text. - */ - public native void setIconTextHeight(int n); - /** - @return The height of icon text in lines - - @short - */ - public native int iconTextHeight(); - /** - Reimplemented for held() signal behavior internal purposes - @short Reimplemented for held() signal behavior internal purposes - */ - public native void takeItem(TQIconViewItem item); - protected native void emitExecute(TQIconViewItem item, TQPoint pos); - protected native void updateDragHoldItem(TQDropEvent e); - protected native void focusOutEvent(TQFocusEvent fe); - protected native void leaveEvent(TQEvent e); - protected native void contentsMousePressEvent(TQMouseEvent e); - protected native void contentsMouseDoubleClickEvent(TQMouseEvent e); - protected native void contentsMouseReleaseEvent(TQMouseEvent e); - protected native void contentsDragEnterEvent(TQDragEnterEvent e); - protected native void contentsDragLeaveEvent(TQDragLeaveEvent e); - protected native void contentsDragMoveEvent(TQDragMoveEvent e); - protected native void contentsDropEvent(TQDropEvent e); - protected native void wheelEvent(TQWheelEvent e); - /** - This method allows to handle correctly cases where a subclass - needs the held() signal to not be triggered without calling - a TDEIconView.contentsDragEvent() method (which have side effects - because they forward to TQIconView). - @short This method allows to handle correctly cases where a subclass needs the held() signal to not be triggered without calling a TDEIconView.contentsDrag Event() method (which have side effects because they forward to TQIconView). - */ - protected native void cancelPendingHeldSignal(); - protected native void slotOnItem(TQIconViewItem item); - protected native void slotOnViewport(); - protected native void slotSettingsChanged(int arg1); - /** - Auto selection happend. - @short Auto selection happend. - */ - protected native void slotAutoSelect(); - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KIconViewItem.java b/kdejava/koala/org/kde/koala/KIconViewItem.java deleted file mode 100644 index f9331e73..00000000 --- a/kdejava/koala/org/kde/koala/KIconViewItem.java +++ /dev/null @@ -1,96 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.TQIconViewItem; -import org.kde.qt.QtSupport; -import org.kde.qt.TQPixmap; -import org.kde.qt.TQSize; -import org.kde.qt.TQPainter; -import org.kde.qt.TQIconView; -import org.kde.qt.TQPicture; -import org.kde.qt.TQColorGroup; -import org.kde.qt.TQIconViewItem; - -/** - - TDEIconViewItem exists to improve the word-wrap functionality of TQIconViewItem - Use TDEIconViewItem instead of TQIconViewItem for any iconview item you might have :) - @author David Faure - - @short A variant of TQIconViewItem that wraps words better. - -*/ -public class TDEIconViewItem extends TQIconViewItem { - protected TDEIconViewItem(Class dummy){super((Class) null);} - public TDEIconViewItem(TQIconView parent) { - super((Class) null); - newTDEIconViewItem(parent); - } - private native void newTDEIconViewItem(TQIconView parent); - public TDEIconViewItem(TQIconView parent, TQIconViewItem after) { - super((Class) null); - newTDEIconViewItem(parent,after); - } - private native void newTDEIconViewItem(TQIconView parent, TQIconViewItem after); - public TDEIconViewItem(TQIconView parent, String text) { - super((Class) null); - newTDEIconViewItem(parent,text); - } - private native void newTDEIconViewItem(TQIconView parent, String text); - public TDEIconViewItem(TQIconView parent, TQIconViewItem after, String text) { - super((Class) null); - newTDEIconViewItem(parent,after,text); - } - private native void newTDEIconViewItem(TQIconView parent, TQIconViewItem after, String text); - public TDEIconViewItem(TQIconView parent, String text, TQPixmap icon) { - super((Class) null); - newTDEIconViewItem(parent,text,icon); - } - private native void newTDEIconViewItem(TQIconView parent, String text, TQPixmap icon); - public TDEIconViewItem(TQIconView parent, TQIconViewItem after, String text, TQPixmap icon) { - super((Class) null); - newTDEIconViewItem(parent,after,text,icon); - } - private native void newTDEIconViewItem(TQIconView parent, TQIconViewItem after, String text, TQPixmap icon); - public TDEIconViewItem(TQIconView parent, String text, TQPicture picture) { - super((Class) null); - newTDEIconViewItem(parent,text,picture); - } - private native void newTDEIconViewItem(TQIconView parent, String text, TQPicture picture); - public TDEIconViewItem(TQIconView parent, TQIconViewItem after, String text, TQPicture picture) { - super((Class) null); - newTDEIconViewItem(parent,after,text,picture); - } - private native void newTDEIconViewItem(TQIconView parent, TQIconViewItem after, String text, TQPicture picture); - /** - Using this function, you can specify a custom size for the pixmap. The - geometry of the item will be calculated to let a pixmap of the given size - fit in the iconView without needing an update. - This may be useful if you want to change the pixmap later without breaking - the layout. A possible use of this function is to replace a fileItem icon - by a larger pixmap (preview). - @param size The size to use - @short Using this function, you can specify a custom size for the pixmap. - */ - public native void setPixmapSize(TQSize size); - /** - @return The size set by setPixmapSize() or TQSize( 0, 0 ) - - @short - */ - public native TQSize pixmapSize(); - protected native void init(); - protected native void calcRect(String text_); - protected native void calcRect(); - protected native void paintItem(TQPainter p, TQColorGroup c); - protected native KWordWrap wordWrap(); - protected native void paintPixmap(TQPainter p, TQColorGroup c); - protected native void paintText(TQPainter p, TQColorGroup c); - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KIconViewSignals.java b/kdejava/koala/org/kde/koala/KIconViewSignals.java deleted file mode 100644 index 8d76c5bc..00000000 --- a/kdejava/koala/org/kde/koala/KIconViewSignals.java +++ /dev/null @@ -1,63 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.TQIconViewItem; -import org.kde.qt.TQFont; -import org.kde.qt.TQMetaObject; -import org.kde.qt.QtSupport; -import org.kde.qt.TQPoint; -import org.kde.qt.TQDragMoveEvent; -import org.kde.qt.TQDragEnterEvent; -import org.kde.qt.TQDragLeaveEvent; -import org.kde.qt.TQFocusEvent; -import org.kde.qt.TQMouseEvent; -import org.kde.qt.TQDropEvent; -import org.kde.qt.TQEvent; -import org.kde.qt.TQWidget; -import org.kde.qt.TQWheelEvent; - -public interface TDEIconViewSignals { - /** - This signal is emitted whenever the user executes an iconview item. - That means depending on the KDE wide Single Click/Double Click - setting the user clicked or double clicked on that item. - @param item is the pointer to the executed iconview item. - Note that you may not delete any TQIconViewItem objects in slots - connected to this signal. - @short This signal is emitted whenever the user executes an iconview item. - */ - void executed(TQIconViewItem item); - /** - This signal is emitted whenever the user executes an iconview item. - That means depending on the KDE wide Single Click/Double Click - setting the user clicked or double clicked on that item. - @param item is the pointer to the executed iconview item. - @param pos is the position where the user has clicked - Note that you may not delete any TQIconViewItem objects in slots - connected to this signal. - @short This signal is emitted whenever the user executes an iconview item. - */ - void executed(TQIconViewItem item, TQPoint pos); - /** - This signal is emitted whenever the user hold something on an iconview - during a drag'n'drop. - @param item is the pointer to the iconview item the hold event occur. - Note that you may not delete any TQIconViewItem objects in slots - connected to this signal. - @short This signal is emitted whenever the user hold something on an iconview during a drag'n'drop. - */ - void held(TQIconViewItem item); - /** - This signal gets emitted whenever the user double clicks into the - iconview. - @param item is the pointer to the clicked iconview item. - @param pos is the position where the user has clicked, and - Note that you may not delete any TQIconViewItem objects in slots - connected to this signal. - This signal is more or less here for the sake of completeness. - You should normally not need to use this. In most cases it's better - to use executed() instead. - @short This signal gets emitted whenever the user double clicks into the iconview. - */ - void doubleClicked(TQIconViewItem item, TQPoint pos); -} diff --git a/kdejava/koala/org/kde/koala/TDEIconButton.java b/kdejava/koala/org/kde/koala/TDEIconButton.java new file mode 100644 index 00000000..a8b2697a --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEIconButton.java @@ -0,0 +1,110 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.TQMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.TQWidget; +import org.kde.qt.TQPushButton; + +/** + + A pushbutton for choosing an icon. Pressing on the button will open a + TDEIconDialog for the user to select an icon. The current icon will be + displayed on the button. + See {@link TDEIconButtonSignals} for signals emitted by TDEIconButton + @short A push button that allows selection of an icon. + @see TDEIconDialog + +*/ +public class TDEIconButton extends TQPushButton { + protected TDEIconButton(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructs a TDEIconButton using the global iconloader. + @short Constructs a TDEIconButton using the global iconloader. + */ + public TDEIconButton(TQWidget parent, String name) { + super((Class) null); + newTDEIconButton(parent,name); + } + private native void newTDEIconButton(TQWidget parent, String name); + public TDEIconButton(TQWidget parent) { + super((Class) null); + newTDEIconButton(parent); + } + private native void newTDEIconButton(TQWidget parent); + public TDEIconButton() { + super((Class) null); + newTDEIconButton(); + } + private native void newTDEIconButton(); + /** + Constructs a TDEIconButton using a specific TDEIconLoader. + @short Constructs a TDEIconButton using a specific TDEIconLoader. + */ + public TDEIconButton(TDEIconLoader loader, TQWidget parent, String name) { + super((Class) null); + newTDEIconButton(loader,parent,name); + } + private native void newTDEIconButton(TDEIconLoader loader, TQWidget parent, String name); + public TDEIconButton(TDEIconLoader loader, TQWidget parent) { + super((Class) null); + newTDEIconButton(loader,parent); + } + private native void newTDEIconButton(TDEIconLoader loader, TQWidget parent); + /** + Sets a strict icon size policy for allowed icons. When true, + only icons of the specified group's size in setIconType are allowed, + and only icons of that size will be shown in the icon dialog. + @short Sets a strict icon size policy for allowed icons. + */ + public native void setStrictIconSize(boolean b); + /** + Returns true if a strict icon size policy is set. + @short Returns true if a strict icon size policy is set. + */ + public native boolean strictIconSize(); + /** + Sets the icon group and context. Use TDEIcon.NoGroup if you want to + allow icons for any group in the given context. + @short Sets the icon group and context. + */ + public native void setIconType(int group, int context, boolean user); + public native void setIconType(int group, int context); + /** + Sets the button's initial icon. + @short Sets the button's initial icon. + */ + public native void setIcon(String icon); + /** + Resets the icon (reverts to an empty button). + @short Resets the icon (reverts to an empty button). + */ + public native void resetIcon(); + /** + Returns the name of the selected icon. + @short Returns the name of the selected icon. + */ + public native String iconName(); + /** + Sets the size of the icon to be shown / selected. + @short Sets the size of the icon to be shown / selected. + @see TDEIcon#StdSizes + @see #iconSize + */ + public native void setIconSize(int size); + /** + Returns the iconsize set via setIconSize() or 0, if the default + iconsize will be used. + @short Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used. + */ + public native int iconSize(); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDEIconButtonSignals.java b/kdejava/koala/org/kde/koala/TDEIconButtonSignals.java new file mode 100644 index 00000000..73288b36 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEIconButtonSignals.java @@ -0,0 +1,14 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.TQMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.TQWidget; + +public interface TDEIconButtonSignals { + /** + Emitted when the icon has changed. + @short Emitted when the icon has changed. + */ + void iconChanged(String icon); +} diff --git a/kdejava/koala/org/kde/koala/TDEIconCanvas.java b/kdejava/koala/org/kde/koala/TDEIconCanvas.java new file mode 100644 index 00000000..68404a84 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEIconCanvas.java @@ -0,0 +1,52 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.TQMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.TQWidget; + +/** + + Icon canvas for TDEIconDialog. + See {@link TDEIconCanvasSignals} for signals emitted by TDEIconCanvas + @short Icon canvas for TDEIconDialog. + +*/ +public class TDEIconCanvas extends TDEIconView { + protected TDEIconCanvas(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + public TDEIconCanvas(TQWidget parent, String name) { + super((Class) null); + newTDEIconCanvas(parent,name); + } + private native void newTDEIconCanvas(TQWidget parent, String name); + public TDEIconCanvas(TQWidget parent) { + super((Class) null); + newTDEIconCanvas(parent); + } + private native void newTDEIconCanvas(TQWidget parent); + public TDEIconCanvas() { + super((Class) null); + newTDEIconCanvas(); + } + private native void newTDEIconCanvas(); + /** + Load icons into the canvas. + @short Load icons into the canvas. + */ + public native void loadFiles(String[] files); + /** + Returns the current icon. + @short Returns the current icon. + */ + public native String getCurrent(); + public native void stopLoading(); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDEIconCanvasSignals.java b/kdejava/koala/org/kde/koala/TDEIconCanvasSignals.java new file mode 100644 index 00000000..e14c301b --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEIconCanvasSignals.java @@ -0,0 +1,17 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.TQMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.TQWidget; + +public interface TDEIconCanvasSignals { + /** + Emitted when the current icon has changed. + @short Emitted when the current icon has changed. + */ + void nameChanged(String arg1); + void startLoading(int arg1); + void progress(int arg1); + void finished(); +} diff --git a/kdejava/koala/org/kde/koala/TDEIconDialog.java b/kdejava/koala/org/kde/koala/TDEIconDialog.java new file mode 100644 index 00000000..b23266dd --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEIconDialog.java @@ -0,0 +1,159 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.TQMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.TQWidget; + +/** + + Dialog for interactive selection of icons. Use the function + getIcon() let the user select an icon. + See {@link TDEIconDialogSignals} for signals emitted by TDEIconDialog + @short An icon selection dialog. + +*/ +public class TDEIconDialog extends KDialogBase { + protected TDEIconDialog(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructs an icon selection dialog using the global iconloader. + @short Constructs an icon selection dialog using the global iconloader. + */ + public TDEIconDialog(TQWidget parent, String name) { + super((Class) null); + newTDEIconDialog(parent,name); + } + private native void newTDEIconDialog(TQWidget parent, String name); + public TDEIconDialog(TQWidget parent) { + super((Class) null); + newTDEIconDialog(parent); + } + private native void newTDEIconDialog(TQWidget parent); + public TDEIconDialog() { + super((Class) null); + newTDEIconDialog(); + } + private native void newTDEIconDialog(); + /** + Constructs an icon selection dialog using a specific iconloader. + @short Constructs an icon selection dialog using a specific iconloader. + */ + public TDEIconDialog(TDEIconLoader loader, TQWidget parent, String name) { + super((Class) null); + newTDEIconDialog(loader,parent,name); + } + private native void newTDEIconDialog(TDEIconLoader loader, TQWidget parent, String name); + public TDEIconDialog(TDEIconLoader loader, TQWidget parent) { + super((Class) null); + newTDEIconDialog(loader,parent); + } + private native void newTDEIconDialog(TDEIconLoader loader, TQWidget parent); + public TDEIconDialog(TDEIconLoader loader) { + super((Class) null); + newTDEIconDialog(loader); + } + private native void newTDEIconDialog(TDEIconLoader loader); + /** + Sets a strict icon size policy for allowed icons. When true, + only icons of the specified group's size in getIcon() are shown. + When false, icons not available at the desired group's size will + also be selectable. + @short Sets a strict icon size policy for allowed icons. + */ + public native void setStrictIconSize(boolean b); + /** + Returns true if a strict icon size policy is set. + @short Returns true if a strict icon size policy is set. + */ + public native boolean strictIconSize(); + /** + sets a custom icon directory + @short sets a custom icon directory + */ + public native void setCustomLocation(String location); + /** + Sets the size of the icons to be shown / selected. + @short Sets the size of the icons to be shown / selected. + @see TDEIcon#StdSizes + @see #iconSize + */ + public native void setIconSize(int size); + /** + Returns the iconsize set via setIconSize() or 0, if the default + iconsize will be used. + @short Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used. + */ + public native int iconSize(); + /** + Allows you to set the same parameters as in the class method + getIcon(). + @short Allows you to set the same parameters as in the class method getIcon(). + */ + public native void setup(int group, int context, boolean strictIconSize, int iconSize, boolean user); + public native void setup(int group, int context, boolean strictIconSize, int iconSize); + public native void setup(int group, int context, boolean strictIconSize); + public native void setup(int group, int context); + public native void setup(int group); + /** + Allows you to set the same parameters as in the class method + getIcon(), as well as two additional parameters to lock + the choice between system and user dirs and to lock the custom user + dir itself. + @short Allows you to set the same parameters as in the class method getIcon(), as well as two additional parameters to lock the choice between system and user dirs and to lock the custom user dir itself. + */ + public native void setup(int group, int context, boolean strictIconSize, int iconSize, boolean user, boolean lockUser, boolean lockCustomDir); + /** + exec()utes this modal dialog and returns the name of the selected icon, + or null if the dialog was aborted. + @return the name of the icon, suitable for loading with TDEIconLoader. + + @short exec()utes this modal dialog and returns the name of the selected icon, or String.null if the dialog was aborted. + @see #getIcon + */ + public native String openDialog(); + /** + show()es this dialog and emits a newIcon(String) signal when + successful. null will be emitted if the dialog was aborted. + @short show()es this dialog and emits a newIcon(String) signal when successful. + */ + public native void showDialog(); + /** + Pops up the dialog an lets the user select an icon. + @param group The icon group this icon is intended for. Providing the + group shows the icons in the dialog with the same appearance as when + used outside the dialog. + @param context The initial icon context. Initially, the icons having + this context are shown in the dialog. The user can change this. + @param strictIconSize When true, only icons of the specified group's size + are shown, otherwise icon not available in the desired group's size + will also be selectable. + @param iconSize the size of the icons -- the default of the icongroup + if set to 0 + @param user Begin with the "user icons" instead of "system icons". + @param parent The parent widget of the dialog. + @param caption The caption to use for the dialog. + @return The name of the icon, suitable for loading with TDEIconLoader. + + @version New in 3.0 + + @short Pops up the dialog an lets the user select an icon. + */ + public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user, TQWidget parent, String caption); + public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user, TQWidget parent); + public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user); + public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize); + public static native String getIcon(int group, int context, boolean strictIconSize); + public static native String getIcon(int group, int context); + public static native String getIcon(int group); + public static native String getIcon(); + protected native void slotOk(); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDEIconDialogSignals.java b/kdejava/koala/org/kde/koala/TDEIconDialogSignals.java new file mode 100644 index 00000000..0a42e920 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEIconDialogSignals.java @@ -0,0 +1,10 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.TQMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.TQWidget; + +public interface TDEIconDialogSignals { + void newIconName(String arg1); +} diff --git a/kdejava/koala/org/kde/koala/TDEIconEffect.java b/kdejava/koala/org/kde/koala/TDEIconEffect.java new file mode 100644 index 00000000..689f1e76 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEIconEffect.java @@ -0,0 +1,236 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.TQColor; +import org.kde.qt.TQRect; +import org.kde.qt.QtSupport; +import org.kde.qt.TQPixmap; +import org.kde.qt.TQImage; +import org.kde.qt.TQWidget; + +/** + + Applies effects to icons. + This class applies effects to icons depending on their state and + group. For example, it can be used to make all disabled icons + in a toolbar gray. + @short Applies effects to icons. + @see TDEIcon + +*/ +public class TDEIconEffect implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected TDEIconEffect(Class dummy){} + + /** + This is the enumeration of all possible icon effects. + Note that 'LastEffect' is no valid icon effect but only + used internally to check for invalid icon effects. + +
  • + NoEffect: Don't apply any icon effect +
  • + +
  • + ToGray: Tints the icon gray +
  • + +
  • + Colorize: Tints the icon with an other color +
  • + +
  • + ToGamma: Change the gamma value of the icon +
  • + +
  • + DeSaturate: Reduce the saturation of the icon +
  • + +
  • + ToMonochrome: Produces a monochrome icon + +
  • @short This is the enumeration of all possible icon effects. + */ + public static final int NoEffect = 0; + public static final int ToGray = 1; + public static final int Colorize = 2; + public static final int ToGamma = 3; + public static final int DeSaturate = 4; + public static final int ToMonochrome = 5; + public static final int LastEffect = 6; + + /** + Create a new TDEIconEffect. + @short Create a new TDEIconEffect. + */ + public TDEIconEffect() { + newTDEIconEffect(); + } + private native void newTDEIconEffect(); + /** + Rereads configuration. + @short Rereads configuration. + */ + public native void init(); + /** + Tests whether an effect has been configured for the given icon group. + @param group the group to check, see TDEIcon.Group + @param state the state to check, see TDEIcon.States + @return true if an effect is configured for the given group + in state, otherwise false. + + @short Tests whether an effect has been configured for the given icon group. + @see TDEIcon#Group + @see TDEIcon#States + */ + public native boolean hasEffect(int group, int state); + /** + Returns a fingerprint for the effect by encoding + the given group and state into a String. This + is useful for caching. + @param group the group, see TDEIcon.Group + @param state the state, see TDEIcon.States + @return the fingerprint of the given group+state + + @short Returns a fingerprint for the effect by encoding the given group and state into a String. + */ + public native String fingerprint(int group, int state); + /** + Applies an effect to an image. The effect to apply depends on the + group and state parameters, and is configured by the user. + @param src The image. + @param group The group for the icon, see TDEIcon.Group + @param state The icon's state, see TDEIcon.States + @return An image with the effect applied. + + @short Applies an effect to an image. + */ + public native TQImage apply(TQImage src, int group, int state); + /** + Applies an effect to an image. + @param src The image. + @param effect The effect to apply, one of TDEIconEffect.Effects. + @param value Strength of the effect. 0 <= value <= 1. + @param rgb Color parameter for effects that need one. + @param trans Add Transparency if trans = true. + @return An image with the effect applied. + + @short Applies an effect to an image. + */ + public native TQImage apply(TQImage src, int effect, float value, TQColor rgb, boolean trans); + /** + @short + */ + public native TQImage apply(TQImage src, int effect, float value, TQColor rgb, TQColor rgb2, boolean trans); + /** + Applies an effect to a pixmap. + @param src The pixmap. + @param group The group for the icon, see TDEIcon.Group + @param state The icon's state, see TDEIcon.States + @return A pixmap with the effect applied. + + @short Applies an effect to a pixmap. + */ + public native TQPixmap apply(TQPixmap src, int group, int state); + /** + Applies an effect to a pixmap. + @param src The pixmap. + @param effect The effect to apply, one of TDEIconEffect.Effects. + @param value Strength of the effect. 0 <= value <= 1. + @param rgb Color parameter for effects that need one. + @param trans Add Transparency if trans = true. + @return A pixmap with the effect applied. + + @short Applies an effect to a pixmap. + */ + public native TQPixmap apply(TQPixmap src, int effect, float value, TQColor rgb, boolean trans); + /** + @short + */ + public native TQPixmap apply(TQPixmap src, int effect, float value, TQColor rgb, TQColor rgb2, boolean trans); + /** + Returns an image twice as large, consisting of 2x2 pixels. + @param src the image. + @return the scaled image. + + @short Returns an image twice as large, consisting of 2x2 pixels. + */ + public native TQImage doublePixels(TQImage src); + /** + Provides visual feedback to show activation of an icon on a widget. + Not strictly an 'icon effect', but in practice that's what it looks + like. + This method does nothing if the global 'Visual feedback on activation' + option is not activated (See kcontrol/Peripherals/Mouse). + @param widget The widget on which the effect should be painted + @param rect This rectangle defines the effect's borders + @short Provides visual feedback to show activation of an icon on a widget. + */ + public static native void visualActivate(TQWidget widget, TQRect rect); + /** + Tints an image gray. + @param image The image + @param value Strength of the effect. 0 <= value <= 1 + @short Tints an image gray. + */ + public static native void toGray(TQImage image, float value); + /** + Colorizes an image with a specific color. + @param image The image + @param col The color with which the image is tinted + @param value Strength of the effect. 0 <= value <= 1 + @short Colorizes an image with a specific color. + */ + public static native void colorize(TQImage image, TQColor col, float value); + /** + Produces a monochrome icon with a given foreground and background color + @param image The image + @param white The color with which the white parts of image are painted + @param black The color with which the black parts of image are painted + @param value Strength of the effect. 0 <= value <= 1 + @short Produces a monochrome icon with a given foreground and background color + */ + public static native void toMonochrome(TQImage image, TQColor black, TQColor white, float value); + /** + Desaturates an image. + @param image The image + @param value Strength of the effect. 0 <= value <= 1 + @short Desaturates an image. + */ + public static native void deSaturate(TQImage image, float value); + /** + Changes the gamma value of an image. + @param image The image + @param value Strength of the effect. 0 <= value <= 1 + @short Changes the gamma value of an image. + */ + public static native void toGamma(TQImage image, float value); + /** + Renders an image semi-transparent. + @param image The image + @short Renders an image semi-transparent. + */ + public static native void semiTransparent(TQImage image); + /** + Renders a pixmap semi-transparent. + @param pixmap The pixmap + @short Renders a pixmap semi-transparent. + */ + public static native void semiTransparent(TQPixmap pixmap); + /** + Overlays an image with an other image. + @param src The image + @param overlay The image to overlay src with + @short Overlays an image with an other image. + */ + public static native void overlay(TQImage src, TQImage overlay); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDEIconLoader.java b/kdejava/koala/org/kde/koala/TDEIconLoader.java new file mode 100644 index 00000000..5ace9688 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEIconLoader.java @@ -0,0 +1,348 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.TQMovie; +import org.kde.qt.QtSupport; +import org.kde.qt.TQPixmap; +import java.util.ArrayList; +import org.kde.qt.TQIconSet; + +/** + + Iconloader for KDE. + TDEIconLoader will load the current icon theme and all its base themes. + Icons will be searched in any of these themes. Additionally, it caches + icons and applies effects according the the user's preferences. + In KDE, it is encouraged to load icons by "Group". An icon group is a + location on the screen where icons are being used. Standard groups are: + Desktop, Toolbar, MainToolbar, Small and Panel. Each group has some + centrally configured properties bound to it, including the icon size + and effects. This makes it possible to offer a consistent icon look in + all KDE applications. + The standard groups are defined below. + +
  • + TDEIcon.Desktop: Icons in the iconview of konqueror, kdesktop and similar apps. +
  • + +
  • + TDEIcon.Toolbar: Icons in toolbars. +
  • + +
  • + TDEIcon.MainToolbar: Icons in the main toolbars. +
  • + +
  • + TDEIcon.Small: Various small (typical 16x16) places: titlebars, listviews + and menu entries. +
  • + +
  • + TDEIcon.Panel: Icons in kicker's panel +
  • + The icons are stored on disk in an icon theme or in a standalone + directory. The icon theme directories contain multiple sizes and/or + depths for the same icon. The iconloader will load the correct one based + on the icon group and the current theme. Icon themes are stored globally + in share/icons, or, application specific in share/apps/$appdir/icons. + The standalone directories contain just one version of an icon. The + directories that are searched are: $appdir/pics and $appdir/toolbar. + Icons in these directories can be loaded by using the special group + "User". + @short Iconloader for KDE. + +*/ +public class TDEIconLoader implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected TDEIconLoader(Class dummy){} + + /** + Constructs an iconloader. + @param appname Add the data directories of this application to the + icon search path for the "User" group. The default argument adds the + directories of the current application. + @param dirs the TDEStandardDirs object to use. If null the global one is used + Usually, you use the default iconloader, which can be accessed via + TDEGlobal.iconLoader(), so you hardly ever have to create an + iconloader object yourself. That one is the current TDEInstance's + (typically TDEApplication's) iconloader. + @short Constructs an iconloader. + @see TDEGlobal#iconLoader + @see TDEInstance#iconLoader + */ + public TDEIconLoader(String appname, TDEStandardDirs dirs) { + newTDEIconLoader(appname,dirs); + } + private native void newTDEIconLoader(String appname, TDEStandardDirs dirs); + public TDEIconLoader(String appname) { + newTDEIconLoader(appname); + } + private native void newTDEIconLoader(String appname); + public TDEIconLoader() { + newTDEIconLoader(); + } + private native void newTDEIconLoader(); + /** + Adds appname to the list of application specific directories. + @param appname The application name. + @short Adds appname to the list of application specific directories. + */ + public native void addAppDir(String appname); + /** + Loads an icon. It will try very hard to find an icon which is + suitable. If no exact match is found, a close match is searched. + If neither an exact nor a close match is found, a null pixmap or + the "unknown" pixmap is returned, depending on the value of the + canReturnNull parameter. + @param name The name of the icon, without extension. + @param group The icon group. This will specify the size of and effects to + be applied to the icon. + @param size If nonzero, this overrides the size specified by group. + See TDEIcon.StdSizes. + @param state The icon state: DefaultState, ActiveState or + DisabledState. Depending on the user's preferences, the iconloader + may apply a visual effect to hint about its state. + @param path_store If not null, the path of the icon is stored here. + @param canReturnNull Can return a null pixmap? If false, the + "unknown" pixmap is returned when no appropriate icon has been found. + @return the TQPixmap. Can be null when not found, depending on + canReturnNull. + + @short Loads an icon. + */ + public native TQPixmap loadIcon(String name, int group, int size, int state, StringBuffer path_store, boolean canReturnNull); + public native TQPixmap loadIcon(String name, int group, int size, int state, StringBuffer path_store); + public native TQPixmap loadIcon(String name, int group, int size, int state); + public native TQPixmap loadIcon(String name, int group, int size); + public native TQPixmap loadIcon(String name, int group); + /** + Creates an icon set, that will do on-demand loading of the icon. + Loading itself is done by calling loadIcon . + @param name The name of the icon, without extension. + @param group The icon group. This will specify the size of and effects to + be applied to the icon. + @param size If nonzero, this overrides the size specified by group. + See TDEIcon.StdSizes. + @param canReturnNull Can return a null iconset? If false, iconset + containing the "unknown" pixmap is returned when no appropriate icon has + been found. + @param immediateExistenceCheck If true on-demand icon loading will be + disabled for canReturnNull and a null iconset may be returned immediately + @return the icon set. Can be null when not found, depending on + canReturnNull. + + @short Creates an icon set, that will do on-demand loading of the icon. + */ + public native TQIconSet loadIconSet(String name, int group, int size, boolean canReturnNull, boolean immediateExistenceCheck); + /** + Creates an icon set, that will do on-demand loading of the icon. + Loading itself is done by calling loadIcon . + @param name The name of the icon, without extension. + @param group The icon group. This will specify the size of and effects to + be applied to the icon. + @param size If nonzero, this overrides the size specified by group. + See TDEIcon.StdSizes. + @param canReturnNull Can return a null iconset? If false, iconset + containing the "unknown" pixmap is returned when no appropriate icon has + been found. + @return the icon set. Can be null when not found, depending on + canReturnNull. + + @short Creates an icon set, that will do on-demand loading of the icon. + */ + public native TQIconSet loadIconSet(String name, int group, int size, boolean canReturnNull); + /** + Creates an icon set, that will do on-demand loading of the icon. + Loading itself is done by calling loadIcon . + @param name The name of the icon, without extension. + @param group The icon group. This will specify the size of and effects to + be applied to the icon. + @param size If nonzero, this overrides the size specified by group. + See TDEIcon.StdSizes. + @return the icon set. Can be null when not found + + @short Creates an icon set, that will do on-demand loading of the icon. + */ + public native TQIconSet loadIconSet(String name, int group, int size); + public native TQIconSet loadIconSet(String name, int group); + /** + Returns the path of an icon. + @param name The name of the icon, without extension. If an absolute + path is supplied for this parameter, iconPath will return it + directly. + @param group_or_size If positive, search icons whose size is + specified by the icon group group_or_size. If negative, search + icons whose size is - group_or_size. + See TDEIcon.Group and TDEIcon.StdSizes + @param canReturnNull Can return a null string? If not, a path to the + "unknown" icon will be returned. + @return the path of an icon, can be null or the "unknown" icon when + not found, depending on canReturnNull. + + @short Returns the path of an icon. + */ + public native String iconPath(String name, int group_or_size, boolean canReturnNull); + public native String iconPath(String name, int group_or_size); + /** + Loads an animated icon. + @param name The name of the icon. + @param group The icon group. See loadIcon(). + @param size Override the default size for group. + See TDEIcon.StdSizes. + @return A TQMovie object. Can be null if not found. + + @short Loads an animated icon. + */ + public native TQMovie loadMovie(String name, int group, int size); + public native TQMovie loadMovie(String name, int group); + /** + Returns the path to an animated icon. + @param name The name of the icon. + @param group The icon group. See loadIcon(). + @param size Override the default size for group. + See TDEIcon.StdSizes. + @return the full path to the movie, ready to be passed to TQMovie's constructor. + Empty string if not found. + + @short Returns the path to an animated icon. + */ + public native String moviePath(String name, int group, int size); + public native String moviePath(String name, int group); + /** + Loads an animated icon as a series of still frames. If you want to load + a .mng animation as TQMovie instead, please use loadMovie() instead. + @param name The name of the icon. + @param group The icon group. See loadIcon(). + @param size Override the default size for group. + See TDEIcon.StdSizes. + @return An ArrayList containing the absolute path of all the frames + making up the animation. + + @short Loads an animated icon as a series of still frames. + */ + public native ArrayList loadAnimated(String name, int group, int size); + public native ArrayList loadAnimated(String name, int group); + /** + Queries all available icons for a specific group, having a specific + context. + @param group_or_size If positive, search icons whose size is + specified by the icon group group_or_size. If negative, search + icons whose size is - group_or_size. + See TDEIcon.Group and TDEIcon.StdSizes + @param context The icon context. + @return a list of all icons + + @short Queries all available icons for a specific group, having a specific context. + */ + public native ArrayList queryIcons(int group_or_size, int context); + public native ArrayList queryIcons(int group_or_size); + /** + Queries all available icons for a specific context. + @param group_or_size The icon preferred group or size. If available + at this group or size, those icons will be returned, in other case, + icons of undefined size will be returned. Positive numbers are groups, + negative numbers are negated sizes. See TDEIcon.Group and + TDEIcon.StdSizes + @param context The icon context. + @return An ArrayList containing the icon names + available for that context + + @short Queries all available icons for a specific context. + */ + public native ArrayList queryIconsByContext(int group_or_size, int context); + public native ArrayList queryIconsByContext(int group_or_size); + /** + Returns a list of all icons (.png or .xpm extension) in the + given directory. + @param iconsDir the directory to search in + @return An ArrayList containing the icon paths + + @short Returns a list of all icons ( . + */ + public native ArrayList queryIconsByDir(String iconsDir); + /** + Returns the current size of the group. + @param group the group to check. + @return the current size for an icon group. + + @short Returns the current size of the group. + */ + public native int currentSize(int group); + /** + Returns a pointer to the current theme. Can be used to query + available and default sizes for groups. + @return a pointer to the current theme. 0 if no theme set. + + @short Returns a pointer to the current theme. + */ + // TDEIconTheme* theme(); >>>> NOT CONVERTED + /** + Returns a pointer to the TDEIconEffect object used by the icon loader. + @return the TDEIconEffect. + + @short Returns a pointer to the TDEIconEffect object used by the icon loader. + */ + public native TDEIconEffect iconEffect(); + /** + Called by TDEInstance.newIconLoader to reconfigure the icon loader. + @param _appname the new application name + @param _dirs the new standard directories. If 0, the directories + from TDEGlobal will be taken. + @short Called by TDEInstance.newIconLoader to reconfigure the icon loader. + */ + public native void reconfigure(String _appname, TDEStandardDirs _dirs); + /** + Adds all the default themes from other desktops at the end of + the list of icon themes. + @short Adds all the default themes from other desktops at the end of the list of icon themes. + */ + public native void addExtraDesktopThemes(); + /** + Returns if the default icon themes of other desktops have been added + to the list of icon themes where icons are searched. + @short Returns if the default icon themes of other desktops have been added to the list of icon themes where icons are searched. + */ + public native boolean extraDesktopThemesAdded(); + /** + Enables on-demand icon loading for TQIconSets using TQIconFactory. + Icons loaded via loadIconSet() will be loaded as soon as they + need to be displayed, not earlier. + Note that enabling or disabling this only affects loadIconSet() + calls after this setting is changed. + The default is disabled, as the iconloader object must not be + destroyed before all those iconsets are destroyed. + (Some broken applications use temporary TDEIconLoader objects). + Every TDEInstance 's iconloader has this feature enabled. + @param enable true to enable delayed icon loading, false to disable + @short Enables on-demand icon loading for TQIconSets using TQIconFactory. + @see #isDelayedIconSetLoadingEnabled + @see org.kde.qt.TQIconFactory + */ + public native void enableDelayedIconSetLoading(boolean enable); + /** + Checks whether delayed loading for TQIconSet is enabled. + @return whether icons for TQIconSets will be loaded on demand. + + @short Checks whether delayed loading for TQIconSet is enabled. + @see #enableDelayedIconSetLoading + @see org.kde.qt.TQIconFactory + */ + public native boolean isDelayedIconSetLoadingEnabled(); + /** + Returns the unknown icon. An icon that is used when no other icon + can be found. + @return the unknown pixmap + + @short Returns the unknown icon. + */ + public static native TQPixmap unknown(); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDEIconView.java b/kdejava/koala/org/kde/koala/TDEIconView.java new file mode 100644 index 00000000..6a1cf163 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEIconView.java @@ -0,0 +1,151 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.TQIconViewItem; +import org.kde.qt.TQFont; +import org.kde.qt.TQMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.TQPoint; +import org.kde.qt.TQDragMoveEvent; +import org.kde.qt.TQDragEnterEvent; +import org.kde.qt.TQDragLeaveEvent; +import org.kde.qt.TQFocusEvent; +import org.kde.qt.TQMouseEvent; +import org.kde.qt.TQDropEvent; +import org.kde.qt.TQEvent; +import org.kde.qt.TQWidget; +import org.kde.qt.TQWheelEvent; +import org.kde.qt.TQIconView; + +/** + + This Widget extends the functionality of TQIconView to honor the system + wide settings for Single Click/Double Click mode, Auto Selection and + Change Cursor over Link. + There is a new signal executed(). It gets connected to either + TQIconView.clicked() or TQIconView.doubleClicked() depending on the KDE + wide Single Click/Double Click settings. It is strongly recommended that + you use this signal instead of the above mentioned. This way you don't + need to care about the current settings. + If you want to get informed when the user selects something connect to the + TQIconView.selectionChanged() signal. + See {@link TDEIconViewSignals} for signals emitted by TDEIconView + @short A variant of TQIconView that honors KDE's system-wide settings. + +*/ +public class TDEIconView extends TQIconView { + protected TDEIconView(Class dummy){super((Class) null);} + /** + TDEIconView has two different operating modes. Execute mode is depending + on the configuration of single-click or double-click where the signal + executed() will be emitted upon click/double-click. + In Select mode, this signal will not be emitted. + Default is Execute mode. + @short TDEIconView has two different operating modes. + */ + public static final int Execute = 0; + public static final int Select = 1; + + public native TQMetaObject metaObject(); + public native String className(); + public TDEIconView(TQWidget parent, String name, int f) { + super((Class) null); + newTDEIconView(parent,name,f); + } + private native void newTDEIconView(TQWidget parent, String name, int f); + public TDEIconView(TQWidget parent, String name) { + super((Class) null); + newTDEIconView(parent,name); + } + private native void newTDEIconView(TQWidget parent, String name); + public TDEIconView(TQWidget parent) { + super((Class) null); + newTDEIconView(parent); + } + private native void newTDEIconView(TQWidget parent); + public TDEIconView() { + super((Class) null); + newTDEIconView(); + } + private native void newTDEIconView(); + /** + Sets the mode to Execute or Select. + +
  • + In Execute mode, the signal executed() + will be emitted when the user clicks/double-clicks an item. +
  • + +
  • + Select mode is + the normal TQIconView mode. +
  • + Default is Execute. + @short Sets the mode to Execute or Select. + */ + public native void setMode(int m); + /** + @return the current Mode, either Execute or Select. + + @short + */ + public native int mode(); + /** + Reimplemented for internal purposes + @short Reimplemented for internal purposes + */ + public native void setFont(TQFont arg1); + /** + Set the maximum number of lines that will be used to display icon text. + Setting this value will enable word-wrap, too. + @param n Number of lines + @short Set the maximum number of lines that will be used to display icon text. + */ + public native void setIconTextHeight(int n); + /** + @return The height of icon text in lines + + @short + */ + public native int iconTextHeight(); + /** + Reimplemented for held() signal behavior internal purposes + @short Reimplemented for held() signal behavior internal purposes + */ + public native void takeItem(TQIconViewItem item); + protected native void emitExecute(TQIconViewItem item, TQPoint pos); + protected native void updateDragHoldItem(TQDropEvent e); + protected native void focusOutEvent(TQFocusEvent fe); + protected native void leaveEvent(TQEvent e); + protected native void contentsMousePressEvent(TQMouseEvent e); + protected native void contentsMouseDoubleClickEvent(TQMouseEvent e); + protected native void contentsMouseReleaseEvent(TQMouseEvent e); + protected native void contentsDragEnterEvent(TQDragEnterEvent e); + protected native void contentsDragLeaveEvent(TQDragLeaveEvent e); + protected native void contentsDragMoveEvent(TQDragMoveEvent e); + protected native void contentsDropEvent(TQDropEvent e); + protected native void wheelEvent(TQWheelEvent e); + /** + This method allows to handle correctly cases where a subclass + needs the held() signal to not be triggered without calling + a TDEIconView.contentsDragEvent() method (which have side effects + because they forward to TQIconView). + @short This method allows to handle correctly cases where a subclass needs the held() signal to not be triggered without calling a TDEIconView.contentsDrag Event() method (which have side effects because they forward to TQIconView). + */ + protected native void cancelPendingHeldSignal(); + protected native void slotOnItem(TQIconViewItem item); + protected native void slotOnViewport(); + protected native void slotSettingsChanged(int arg1); + /** + Auto selection happend. + @short Auto selection happend. + */ + protected native void slotAutoSelect(); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDEIconViewItem.java b/kdejava/koala/org/kde/koala/TDEIconViewItem.java new file mode 100644 index 00000000..f9331e73 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEIconViewItem.java @@ -0,0 +1,96 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.TQIconViewItem; +import org.kde.qt.QtSupport; +import org.kde.qt.TQPixmap; +import org.kde.qt.TQSize; +import org.kde.qt.TQPainter; +import org.kde.qt.TQIconView; +import org.kde.qt.TQPicture; +import org.kde.qt.TQColorGroup; +import org.kde.qt.TQIconViewItem; + +/** + + TDEIconViewItem exists to improve the word-wrap functionality of TQIconViewItem + Use TDEIconViewItem instead of TQIconViewItem for any iconview item you might have :) + @author David Faure + + @short A variant of TQIconViewItem that wraps words better. + +*/ +public class TDEIconViewItem extends TQIconViewItem { + protected TDEIconViewItem(Class dummy){super((Class) null);} + public TDEIconViewItem(TQIconView parent) { + super((Class) null); + newTDEIconViewItem(parent); + } + private native void newTDEIconViewItem(TQIconView parent); + public TDEIconViewItem(TQIconView parent, TQIconViewItem after) { + super((Class) null); + newTDEIconViewItem(parent,after); + } + private native void newTDEIconViewItem(TQIconView parent, TQIconViewItem after); + public TDEIconViewItem(TQIconView parent, String text) { + super((Class) null); + newTDEIconViewItem(parent,text); + } + private native void newTDEIconViewItem(TQIconView parent, String text); + public TDEIconViewItem(TQIconView parent, TQIconViewItem after, String text) { + super((Class) null); + newTDEIconViewItem(parent,after,text); + } + private native void newTDEIconViewItem(TQIconView parent, TQIconViewItem after, String text); + public TDEIconViewItem(TQIconView parent, String text, TQPixmap icon) { + super((Class) null); + newTDEIconViewItem(parent,text,icon); + } + private native void newTDEIconViewItem(TQIconView parent, String text, TQPixmap icon); + public TDEIconViewItem(TQIconView parent, TQIconViewItem after, String text, TQPixmap icon) { + super((Class) null); + newTDEIconViewItem(parent,after,text,icon); + } + private native void newTDEIconViewItem(TQIconView parent, TQIconViewItem after, String text, TQPixmap icon); + public TDEIconViewItem(TQIconView parent, String text, TQPicture picture) { + super((Class) null); + newTDEIconViewItem(parent,text,picture); + } + private native void newTDEIconViewItem(TQIconView parent, String text, TQPicture picture); + public TDEIconViewItem(TQIconView parent, TQIconViewItem after, String text, TQPicture picture) { + super((Class) null); + newTDEIconViewItem(parent,after,text,picture); + } + private native void newTDEIconViewItem(TQIconView parent, TQIconViewItem after, String text, TQPicture picture); + /** + Using this function, you can specify a custom size for the pixmap. The + geometry of the item will be calculated to let a pixmap of the given size + fit in the iconView without needing an update. + This may be useful if you want to change the pixmap later without breaking + the layout. A possible use of this function is to replace a fileItem icon + by a larger pixmap (preview). + @param size The size to use + @short Using this function, you can specify a custom size for the pixmap. + */ + public native void setPixmapSize(TQSize size); + /** + @return The size set by setPixmapSize() or TQSize( 0, 0 ) + + @short + */ + public native TQSize pixmapSize(); + protected native void init(); + protected native void calcRect(String text_); + protected native void calcRect(); + protected native void paintItem(TQPainter p, TQColorGroup c); + protected native KWordWrap wordWrap(); + protected native void paintPixmap(TQPainter p, TQColorGroup c); + protected native void paintText(TQPainter p, TQColorGroup c); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDEIconViewSignals.java b/kdejava/koala/org/kde/koala/TDEIconViewSignals.java new file mode 100644 index 00000000..8d76c5bc --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEIconViewSignals.java @@ -0,0 +1,63 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.TQIconViewItem; +import org.kde.qt.TQFont; +import org.kde.qt.TQMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.TQPoint; +import org.kde.qt.TQDragMoveEvent; +import org.kde.qt.TQDragEnterEvent; +import org.kde.qt.TQDragLeaveEvent; +import org.kde.qt.TQFocusEvent; +import org.kde.qt.TQMouseEvent; +import org.kde.qt.TQDropEvent; +import org.kde.qt.TQEvent; +import org.kde.qt.TQWidget; +import org.kde.qt.TQWheelEvent; + +public interface TDEIconViewSignals { + /** + This signal is emitted whenever the user executes an iconview item. + That means depending on the KDE wide Single Click/Double Click + setting the user clicked or double clicked on that item. + @param item is the pointer to the executed iconview item. + Note that you may not delete any TQIconViewItem objects in slots + connected to this signal. + @short This signal is emitted whenever the user executes an iconview item. + */ + void executed(TQIconViewItem item); + /** + This signal is emitted whenever the user executes an iconview item. + That means depending on the KDE wide Single Click/Double Click + setting the user clicked or double clicked on that item. + @param item is the pointer to the executed iconview item. + @param pos is the position where the user has clicked + Note that you may not delete any TQIconViewItem objects in slots + connected to this signal. + @short This signal is emitted whenever the user executes an iconview item. + */ + void executed(TQIconViewItem item, TQPoint pos); + /** + This signal is emitted whenever the user hold something on an iconview + during a drag'n'drop. + @param item is the pointer to the iconview item the hold event occur. + Note that you may not delete any TQIconViewItem objects in slots + connected to this signal. + @short This signal is emitted whenever the user hold something on an iconview during a drag'n'drop. + */ + void held(TQIconViewItem item); + /** + This signal gets emitted whenever the user double clicks into the + iconview. + @param item is the pointer to the clicked iconview item. + @param pos is the position where the user has clicked, and + Note that you may not delete any TQIconViewItem objects in slots + connected to this signal. + This signal is more or less here for the sake of completeness. + You should normally not need to use this. In most cases it's better + to use executed() instead. + @short This signal gets emitted whenever the user double clicks into the iconview. + */ + void doubleClicked(TQIconViewItem item, TQPoint pos); +} -- cgit v1.2.1