summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KListView.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KListView.java')
-rw-r--r--kdejava/koala/org/kde/koala/KListView.java184
1 files changed, 92 insertions, 92 deletions
diff --git a/kdejava/koala/org/kde/koala/KListView.java b/kdejava/koala/org/kde/koala/KListView.java
index 2cbcdecb..bad351a1 100644
--- a/kdejava/koala/org/kde/koala/KListView.java
+++ b/kdejava/koala/org/kde/koala/KListView.java
@@ -2,56 +2,56 @@
package org.kde.koala;
import org.kde.qt.Qt;
-import org.kde.qt.QColor;
-import org.kde.qt.QRect;
-import org.kde.qt.QListViewItem;
-import org.kde.qt.QMetaObject;
+import org.kde.qt.TQColor;
+import org.kde.qt.TQRect;
+import org.kde.qt.TQListViewItem;
+import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
-import org.kde.qt.QPaintEvent;
-import org.kde.qt.QPoint;
-import org.kde.qt.QDragEnterEvent;
-import org.kde.qt.QDragMoveEvent;
-import org.kde.qt.QPainter;
-import org.kde.qt.QDragLeaveEvent;
-import org.kde.qt.QFocusEvent;
-import org.kde.qt.QKeyEvent;
-import org.kde.qt.QMouseEvent;
-import org.kde.qt.QDropEvent;
-import org.kde.qt.QEvent;
-import org.kde.qt.QIconSet;
-import org.kde.qt.QWidget;
-import org.kde.qt.QResizeEvent;
-import org.kde.qt.QDragObject;
-import org.kde.qt.QListView;
+import org.kde.qt.TQPaintEvent;
+import org.kde.qt.TQPoint;
+import org.kde.qt.TQDragEnterEvent;
+import org.kde.qt.TQDragMoveEvent;
+import org.kde.qt.TQPainter;
+import org.kde.qt.TQDragLeaveEvent;
+import org.kde.qt.TQFocusEvent;
+import org.kde.qt.TQKeyEvent;
+import org.kde.qt.TQMouseEvent;
+import org.kde.qt.TQDropEvent;
+import org.kde.qt.TQEvent;
+import org.kde.qt.TQIconSet;
+import org.kde.qt.TQWidget;
+import org.kde.qt.TQResizeEvent;
+import org.kde.qt.TQDragObject;
+import org.kde.qt.TQListView;
/**
- This Widget extends the functionality of QListView to honor the system
+ This Widget extends the functionality of TQListView to honor the system
wide settings for Single Click/Double Click mode, AutoSelection and
ChangeCursorOverLink (TM).
There is a new signal executed(). It gets connected to either
- QListView.clicked() or QListView.doubleClicked() depending on the KDE
+ TQListView.clicked() or TQListView.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
- QListView.selectionChanged() signal.
+ TQListView.selectionChanged() signal.
Drag-and-Drop is supported with the signal dropped(), just setAcceptDrops(true)
and connect it to a suitable slot.
To see where you are dropping, setDropVisualizer(true).
- And also you'll need acceptDrag(QDropEvent)
+ And also you'll need acceptDrag(TQDropEvent)
KListView is drag-enabled, too: to benefit from that you have to derive from it.
Reimplement dragObject() and (possibly) startDrag(),
and setDragEnabled(true).
See {@link KListViewSignals} for signals emitted by KListView
- @short This Widget extends the functionality of QListView to honor the system wide settings for Single Click/Double Click mode, AutoSelection and ChangeCursorOverLink (TM).
+ @short This Widget extends the functionality of TQListView to honor the system wide settings for Single Click/Double Click mode, AutoSelection and ChangeCursorOverLink (TM).
*/
-public class KListView extends QListView {
+public class KListView extends TQListView {
protected KListView(Class dummy){super((Class) null);}
/**
Possible selection modes.
- The first four correspond directly to QListView.SelectionMode, while
+ The first four correspond directly to TQListView.SelectionMode, while
the FileManager selection mode is defined as follows:
<li>
@@ -113,30 +113,30 @@ public class KListView extends QListView {
This way e.g. SHIFT+up/PgUp then SHIFT+down/PgDn leaves no item selected
@short Possible selection modes.
*/
- public static final int Single = QListView.Single;
- public static final int Multi = QListView.Multi;
- public static final int Extended = QListView.Extended;
- public static final int NoSelection = QListView.NoSelection;
+ public static final int Single = TQListView.Single;
+ public static final int Multi = TQListView.Multi;
+ public static final int Extended = TQListView.Extended;
+ public static final int NoSelection = TQListView.NoSelection;
public static final int FileManager = 0;
- public native QMetaObject metaObject();
+ public native TQMetaObject metaObject();
public native String className();
/**
Constructor.
The parameters <code>parent</code> and <code>name</code> are handled by
- QListView, as usual.
+ TQListView, as usual.
@short Constructor.
*/
- public KListView(QWidget parent, String name) {
+ public KListView(TQWidget parent, String name) {
super((Class) null);
newKListView(parent,name);
}
- private native void newKListView(QWidget parent, String name);
- public KListView(QWidget parent) {
+ private native void newKListView(TQWidget parent, String name);
+ public KListView(TQWidget parent) {
super((Class) null);
newKListView(parent);
}
- private native void newKListView(QWidget parent);
+ private native void newKListView(TQWidget parent);
public KListView() {
super((Class) null);
newKListView();
@@ -152,16 +152,16 @@ public class KListView extends QListView {
public native void setAcceptDrops(boolean arg1);
/**
This function determines whether the given coordinates are within the
- execute area. The execute area is the part of a QListViewItem where mouse
+ execute area. The execute area is the part of a TQListViewItem where mouse
clicks or double clicks respectively generate a executed() signal.
- Depending on QListView.allColumnsShowFocus() this is either the
+ Depending on TQListView.allColumnsShowFocus() this is either the
whole item or only the first column.
@return true if point is inside execute area of an item, false in all
other cases including the case that it is over the viewport.
@short This function determines whether the given coordinates are within the execute area.
*/
- public native boolean isExecuteArea(QPoint point);
+ public native boolean isExecuteArea(TQPoint point);
/**
Same thing, but from an x coordinate only. This only checks if x is in
the first column (if all columns don't show focus), without testing if
@@ -176,31 +176,31 @@ public class KListView extends QListView {
@short
*/
- // QPtrList<QListViewItem> selectedItems(bool arg1); >>>> NOT CONVERTED
+ // TQPtrList<TQListViewItem> selectedItems(bool arg1); >>>> NOT CONVERTED
/**
Arbitrarily move <code>item</code> to <code>parent</code>, positioned immediately after item <code>after.</code>
If after is 0, <code>item</code> is made the first child of <code>parent.</code>
(Un-deprecated in kde-3.4)
@short Arbitrarily move <code>item</code> to <code>parent</code>, positioned immediately after item <code>after.</code>
*/
- public native void moveItem(QListViewItem item, QListViewItem parent, QListViewItem after);
+ public native void moveItem(TQListViewItem item, TQListViewItem parent, TQListViewItem after);
/**
@return the last item (not child!) of this listview.
@short
@see #lastChild
*/
- public native QListViewItem lastItem();
+ public native TQListViewItem lastItem();
/**
@return the last child of this listview.
@short
@see #lastItem
*/
- public native QListViewItem lastChild();
+ public native TQListViewItem lastChild();
/**
@return the lineedit used for inline renaming.
- Use that to setup a KCompletion or QValidator for the lineedit
+ Use that to setup a KCompletion or TQValidator for the lineedit
@short
*/
@@ -284,14 +284,14 @@ public class KListView extends QListView {
all items into account not only the visible ones.
@short Returns the index of <code>item</code> within the item tree or -1 if <code>item</code> doesn't exist in this list view.
*/
- public native int itemIndex(QListViewItem item);
+ public native int itemIndex(TQListViewItem item);
/**
Returns the item of <code>index</code> within the item tree or 0 if
<code>index</code> doesn't exist in this list view. This function takes
all items into account not only the visible ones.
@short Returns the item of <code>index</code> within the item tree or 0 if <code>index</code> doesn't exist in this list view.
*/
- public native QListViewItem itemAtIndex(int index);
+ public native TQListViewItem itemAtIndex(int index);
/**
Let the last column fit exactly all the available width.
@short Let the last column fit exactly all the available width.
@@ -315,8 +315,8 @@ public class KListView extends QListView {
Reimplemented for full width support
@short Reimplemented for full width support
*/
- public native int addColumn(QIconSet iconset, String label, int width);
- public native int addColumn(QIconSet iconset, String label);
+ public native int addColumn(TQIconSet iconset, String label, int width);
+ public native int addColumn(TQIconSet iconset, String label);
/**
Reimplemented for full width support
@short Reimplemented for full width support
@@ -331,14 +331,14 @@ public class KListView extends QListView {
@short sets the alternate background background color.
@see #alternateBackground
*/
- public native void setAlternateBackground(QColor c);
+ public native void setAlternateBackground(TQColor c);
/**
@return the alternate background color
@short
@see #setAlternateBackground
*/
- public native QColor alternateBackground();
+ public native TQColor alternateBackground();
/**
Saves the list view's layout (column widtsh, column order, sort column)
to a KConfig group
@@ -380,7 +380,7 @@ public class KListView extends QListView {
Reimplemented for internal reasons.
@short Reimplemented for internal reasons.
*/
- public native void takeItem(QListViewItem i);
+ public native void takeItem(TQListViewItem i);
/**
Set to true if the currently sorted column should be drawn shaded. Defaults to true
@param shadeSortColumn True if sort column should be shaded.
@@ -398,7 +398,7 @@ public class KListView extends QListView {
Rename column <code>c</code> of <code>item.</code>
@short Rename column <code>c</code> of <code>item.</code>
*/
- public native void rename(QListViewItem item, int c);
+ public native void rename(TQListViewItem item, int c);
/**
By default, if you called setItemsRenameable(true),
only the first column is renameable.
@@ -466,7 +466,7 @@ public class KListView extends QListView {
public native void setDropHighlighter(boolean b);
/**
Set the selection mode.
- A different name was chosen to avoid API-clashes with QListView.setSelectionMode().
+ A different name was chosen to avoid API-clashes with TQListView.setSelectionMode().
@short Set the selection mode.
*/
public native void setSelectionModeExt(int mode);
@@ -482,32 +482,32 @@ public class KListView extends QListView {
public native boolean tabOrderedRenaming();
/**
Determine whether a drop on position <code>p</code> would count as
- being above or below the QRect <code>rect.</code>
+ being above or below the TQRect <code>rect.</code>
@param rect is the rectangle we examine.
@param p is the point located in the rectangle, p is assumed to be in
viewport coordinates.
- @short Determine whether a drop on position <code>p</code> would count as being above or below the QRect <code>rect.</code>
+ @short Determine whether a drop on position <code>p</code> would count as being above or below the TQRect <code>rect.</code>
*/
- protected native boolean below(QRect rect, QPoint p);
+ protected native boolean below(TQRect rect, TQPoint p);
/**
- An overloaded version of below(QRect, QPoint).
+ An overloaded version of below(TQRect, TQPoint).
It differs from the above only in what arguments it takes.
@param i the item whose rect() is passed to the above function.
@param p is translated from contents coordinates to viewport coordinates
before being passed to the above function.
- @short An overloaded version of below(QRect, QPoint).
+ @short An overloaded version of below(TQRect, TQPoint).
*/
- protected native boolean below(QListViewItem i, QPoint p);
+ protected native boolean below(TQListViewItem i, TQPoint p);
/**
Reimplemented to reload the alternate background in palette changes.
@short Reimplemented to reload the alternate background in palette changes.
*/
- public native boolean event(QEvent arg1);
+ public native boolean event(TQEvent arg1);
/**
Emit signal executed.
@short Emit signal executed.
*/
- protected native void emitExecute(QListViewItem item, QPoint pos, int c);
+ protected native void emitExecute(TQListViewItem item, TQPoint pos, int c);
/**
Reimplemented for internal reasons.
Further reimplementations should call this function or else
@@ -515,7 +515,7 @@ public class KListView extends QListView {
The API is unaffected.
@short Reimplemented for internal reasons.
*/
- protected native void focusInEvent(QFocusEvent fe);
+ protected native void focusInEvent(TQFocusEvent fe);
/**
Reimplemented for internal reasons.
Further reimplementations should call this function or else
@@ -523,7 +523,7 @@ public class KListView extends QListView {
The API is unaffected.
@short Reimplemented for internal reasons.
*/
- protected native void focusOutEvent(QFocusEvent fe);
+ protected native void focusOutEvent(TQFocusEvent fe);
/**
Reimplemented for internal reasons.
Further reimplementations should call this function or else
@@ -531,19 +531,19 @@ public class KListView extends QListView {
The API is unaffected.
@short Reimplemented for internal reasons.
*/
- protected native void leaveEvent(QEvent e);
+ protected native void leaveEvent(TQEvent e);
/**
@return the tooltip for <code>column</code> of <code>item.</code>
@short
*/
- protected native String tooltip(QListViewItem item, int column);
+ protected native String tooltip(TQListViewItem item, int column);
/**
@return whether the tooltip for <code>column</code> of <code>item</code> shall be shown at point <code>pos.</code>
@short
*/
- protected native boolean showTooltip(QListViewItem item, QPoint pos, int column);
+ protected native boolean showTooltip(TQListViewItem item, TQPoint pos, int column);
/**
Reimplemented for internal reasons.
Further reimplementations should call this function or else
@@ -551,7 +551,7 @@ public class KListView extends QListView {
The API is unaffected.
@short Reimplemented for internal reasons.
*/
- protected native void contentsDragMoveEvent(QDragMoveEvent event);
+ protected native void contentsDragMoveEvent(TQDragMoveEvent event);
/**
Reimplemented for internal reasons.
Further reimplementations should call this function or else
@@ -559,7 +559,7 @@ public class KListView extends QListView {
The API is unaffected.
@short Reimplemented for internal reasons.
*/
- protected native void contentsMousePressEvent(QMouseEvent e);
+ protected native void contentsMousePressEvent(TQMouseEvent e);
/**
Reimplemented for internal reasons.
Further reimplementations should call this function or else
@@ -567,7 +567,7 @@ public class KListView extends QListView {
The API is unaffected.
@short Reimplemented for internal reasons.
*/
- protected native void contentsMouseMoveEvent(QMouseEvent e);
+ protected native void contentsMouseMoveEvent(TQMouseEvent e);
/**
Reimplemented for internal reasons.
Further reimplementations should call this function or else
@@ -575,7 +575,7 @@ public class KListView extends QListView {
The API is unaffected.
@short Reimplemented for internal reasons.
*/
- protected native void contentsMouseDoubleClickEvent(QMouseEvent e);
+ protected native void contentsMouseDoubleClickEvent(TQMouseEvent e);
/**
Reimplemented for internal reasons.
Further reimplementations should call this function or else
@@ -583,7 +583,7 @@ public class KListView extends QListView {
The API is unaffected.
@short Reimplemented for internal reasons.
*/
- protected native void contentsDragLeaveEvent(QDragLeaveEvent event);
+ protected native void contentsDragLeaveEvent(TQDragLeaveEvent event);
/**
Reimplemented for internal reasons.
Further reimplementations should call this function or else
@@ -591,7 +591,7 @@ public class KListView extends QListView {
The API is unaffected.
@short Reimplemented for internal reasons.
*/
- protected native void contentsMouseReleaseEvent(QMouseEvent arg1);
+ protected native void contentsMouseReleaseEvent(TQMouseEvent arg1);
/**
Reimplemented for internal reasons.
Further reimplementations should call this function or else
@@ -599,7 +599,7 @@ public class KListView extends QListView {
The API is unaffected.
@short Reimplemented for internal reasons.
*/
- protected native void contentsDropEvent(QDropEvent arg1);
+ protected native void contentsDropEvent(TQDropEvent arg1);
/**
Reimplemented for internal reasons.
Further reimplementations should call this function or else
@@ -607,14 +607,14 @@ public class KListView extends QListView {
The API is unaffected.
@short Reimplemented for internal reasons.
*/
- protected native void contentsDragEnterEvent(QDragEnterEvent arg1);
+ protected native void contentsDragEnterEvent(TQDragEnterEvent arg1);
/**
@return a dragobject encoding the current selection.
@short
@see #setDragEnabled
*/
- protected native QDragObject dragObject();
+ protected native TQDragObject dragObject();
/**
@return true if the <code>event</code> provides some acceptable
format.
@@ -622,7 +622,7 @@ public class KListView extends QListView {
@short
*/
- protected native boolean acceptDrag(QDropEvent event);
+ protected native boolean acceptDrag(TQDropEvent event);
/**
Paint the drag line. If painter is null, don't try to :)
If after == 0 then the marker should be drawn at the top.
@@ -630,14 +630,14 @@ public class KListView extends QListView {
@short Paint the drag line.
*/
- protected native QRect drawDropVisualizer(QPainter p, QListViewItem parent, QListViewItem after);
+ protected native TQRect drawDropVisualizer(TQPainter p, TQListViewItem parent, TQListViewItem after);
/**
Paint the drag rectangle. If painter is null, don't try to :)
@return the rectangle that you painted to.
@short Paint the drag rectangle.
*/
- protected native QRect drawItemHighlighter(QPainter painter, QListViewItem item);
+ protected native TQRect drawItemHighlighter(TQPainter painter, TQListViewItem item);
/**
This method calls dragObject() and starts the drag.
Reimplement it to do fancy stuff like setting a pixmap or
@@ -652,7 +652,7 @@ public class KListView extends QListView {
The API is unaffected.
@short Reimplemented for internal reasons.
*/
- protected native void keyPressEvent(QKeyEvent arg1);
+ protected native void keyPressEvent(TQKeyEvent arg1);
/**
Reimplemented for internal reasons.
Further reimplementations should call this function or else
@@ -660,7 +660,7 @@ public class KListView extends QListView {
The API is unaffected.
@short Reimplemented for internal reasons.
*/
- protected native void viewportPaintEvent(QPaintEvent arg1);
+ protected native void viewportPaintEvent(TQPaintEvent arg1);
/**
In FileManager selection mode: explicitly activate the mode
in which the current item is automatically selected.
@@ -684,7 +684,7 @@ public class KListView extends QListView {
Reimplemented for setFullWidth()
@short Reimplemented for setFullWidth()
*/
- protected native void viewportResizeEvent(QResizeEvent e);
+ protected native void viewportResizeEvent(TQResizeEvent e);
/**
Disable AutoSelection. This overrides the system wide setting for
AutoSelection. Please don't call this unless you have good reasons to
@@ -703,19 +703,19 @@ public class KListView extends QListView {
Handle dropEvent when itemsMovable() is set to true.
@short Handle dropEvent when itemsMovable() is set to true.
*/
- protected native void movableDropEvent(QListViewItem parent, QListViewItem afterme);
+ protected native void movableDropEvent(TQListViewItem parent, TQListViewItem afterme);
/**
- Where is the nearest QListViewItem that I'm going to drop?
+ Where is the nearest TQListViewItem that I'm going to drop?
FIXME KDE 4.0: Make this method const so it can be called from an
acceptDrag method without ugly casts
- @short Where is the nearest QListViewItem that I'm going to drop?
+ @short Where is the nearest TQListViewItem that I'm going to drop?
*/
- protected native void findDrop(QPoint pos, QListViewItem parent, QListViewItem after);
+ protected native void findDrop(TQPoint pos, TQListViewItem parent, TQListViewItem after);
/**
A special keyPressEvent (for FileManager selection mode).
@short A special keyPressEvent (for FileManager selection mode).
*/
- protected native void fileManagerKeyPressEvent(QKeyEvent arg1);
+ protected native void fileManagerKeyPressEvent(TQKeyEvent arg1);
/**
Convert the depth of an item into its indentation in pixels
@short Convert the depth of an item into its indentation in pixels
@@ -726,8 +726,8 @@ public class KListView extends QListView {
@short Update internal settings whenever the global ones change.
*/
protected native void slotSettingsChanged(int arg1);
- protected native void slotMouseButtonClicked(int btn, QListViewItem item, QPoint pos, int c);
- protected native void doneEditing(QListViewItem item, int row);
+ protected native void slotMouseButtonClicked(int btn, TQListViewItem item, TQPoint pos, int c);
+ protected native void doneEditing(TQListViewItem item, int row);
/**
Repaint the rect where I was drawing the drop line.
@short Repaint the rect where I was drawing the drop line.
@@ -742,17 +742,17 @@ public class KListView extends QListView {
Emit the contextMenu signal. This slot is for mouse actions.
@short Emit the contextMenu signal.
*/
- protected native void emitContextMenu(QListViewItem arg1, QPoint arg2, int arg3);
+ protected native void emitContextMenu(TQListViewItem arg1, TQPoint arg2, int arg3);
/**
Emit the contextMenu signal. This slot is for key presses.
@short Emit the contextMenu signal.
*/
- protected native void emitContextMenu(KListView arg1, QListViewItem arg2);
+ protected native void emitContextMenu(KListView arg1, TQListViewItem arg2);
/**
Accessory slot for AutoSelect
@short Accessory slot for AutoSelect
*/
- protected native void slotOnItem(QListViewItem item);
+ protected native void slotOnItem(TQListViewItem item);
/**
Accessory slot for AutoSelect/ChangeCursorOverItem
@short Accessory slot for AutoSelect/ChangeCursorOverItem