diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/KFileIconView.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KFileIconView.java | 282 |
1 files changed, 282 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KFileIconView.java b/kdejava/koala/org/kde/koala/KFileIconView.java new file mode 100644 index 00000000..1a35f977 --- /dev/null +++ b/kdejava/koala/org/kde/koala/KFileIconView.java @@ -0,0 +1,282 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QHideEvent; +import org.kde.qt.QMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.QObject; +import org.kde.qt.QScrollView; +import org.kde.qt.QDragMoveEvent; +import org.kde.qt.QDragEnterEvent; +import org.kde.qt.QDragLeaveEvent; +import java.util.ArrayList; +import org.kde.qt.QKeyEvent; +import org.kde.qt.QShowEvent; +import org.kde.qt.QDropEvent; +import org.kde.qt.QEvent; +import org.kde.qt.QWidget; +import org.kde.qt.QDragObject; + +/** + + An icon-view capable of showing KFileItem's. Used in the filedialog + for example. Most of the documentation is in KFileView class. + See {@link KFileIconViewSignals} for signals emitted by KFileIconView + @short An icon-view capable of showing KFileItem's. + @see KDirOperator + @see KCombiView + @see KFileDetailView + +*/ +public class KFileIconView extends KIconView implements KFileViewInterface { + protected KFileIconView(Class dummy){super((Class) null);} + public native QMetaObject metaObject(); + public native String className(); + public KFileIconView(QWidget parent, String name) { + super((Class) null); + newKFileIconView(parent,name); + } + private native void newKFileIconView(QWidget parent, String name); + public native QWidget widget(); + public native void clearView(); + public native void setAutoUpdate(boolean arg1); + public native void updateView(boolean arg1); + public native void updateView(KFileItem arg1); + public native void removeItem(KFileItem arg1); + public native void listingCompleted(); + public native void insertItem(KFileItem i); + public native void setSelectionMode(int sm); + public native void setSelected(KFileItem arg1, boolean arg2); + public native boolean isSelected(KFileItem i); + public native void clearSelection(); + public native void selectAll(); + public native void invertSelection(); + public native void setCurrentItem(KFileItem arg1); + public native KFileItem currentFileItem(); + public native KFileItem firstFileItem(); + public native KFileItem nextItem(KFileItem arg1); + public native KFileItem prevItem(KFileItem arg1); + /** + Sets the size of the icons to show. Defaults to KIcon.SizeSmall. + @short Sets the size of the icons to show. + */ + public native void setIconSize(int size); + /** + Sets the size of the previews. Defaults to KIcon.SizeLarge. + @short Sets the size of the previews. + */ + public native void setPreviewSize(int size); + /** + Disables the "Maximum file size" configuration option for previews + Set this before calling showPreviews() + @short Disables the "Maximum file size" configuration option for previews + */ + public native void setIgnoreMaximumSize(boolean ignoreSize); + public native void setIgnoreMaximumSize(); + /** + @return the current size used for icons. + + @short + */ + public native int iconSize(); + public native void ensureItemVisible(KFileItem arg1); + public native void setSorting(int sort); + public native void readConfig(KConfig arg1, String group); + public native void readConfig(KConfig arg1); + public native void writeConfig(KConfig arg1, String group); + public native void writeConfig(KConfig arg1); + public native void mimeTypeDeterminationFinished(); + public native void determineIcon(KFileIconViewItem item); + public native QScrollView scrollWidget(); + public native void setAcceptDrops(boolean b); + /** + Starts loading previews for all files shown and shows them. Switches + into 'large rows' mode, if that isn't the current mode yet. + @sa setIgnoreMaximumSize + @short Starts loading previews for all files shown and shows them. + */ + public native void showPreviews(); + public native void zoomIn(); + public native void zoomOut(); + /** + Reimplemented for performance reasons. + @short Reimplemented for performance reasons. + */ + public native void arrangeItemsInGrid(boolean updated); + public native void arrangeItemsInGrid(); + /** + Reimplemented to not let QIconView eat return-key events + @short Reimplemented to not let QIconView eat return-key events + */ + protected native void keyPressEvent(QKeyEvent arg1); + /** + Reimplemented to remove an eventual tooltip + @short Reimplemented to remove an eventual tooltip + */ + protected native void hideEvent(QHideEvent arg1); + public native void showEvent(QShowEvent arg1); + public native boolean eventFilter(QObject o, QEvent e); + protected native QDragObject dragObject(); + protected native void contentsDragEnterEvent(QDragEnterEvent e); + protected native void contentsDragMoveEvent(QDragMoveEvent e); + protected native void contentsDragLeaveEvent(QDragLeaveEvent e); + protected native void contentsDropEvent(QDropEvent ev); + protected native boolean acceptDrag(QDropEvent e); + /** 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(); + /** + inserts a list of items. + @short inserts a list of items. + */ + public native void addItemList(ArrayList list); + /** + Sets <code>filename</code> the current item in the view, if available. + @short Sets <code>filename</code> the current item in the view, if available. + */ + public native void setCurrentItem(String filename); + /** + Clears the view and all item lists. + @short Clears the view and all item lists. + */ + public native void clear(); + public native void updateView(); + /** + Returns the sorting order of the internal list. Newly added files + are added through this sorting. + @short Returns the sorting order of the internal list. + */ + public native int sorting(); + /** + Tells whether the current items are in reversed order (shortcut to + sorting() & QDir.Reversed). + @short Tells whether the current items are in reversed order (shortcut to sorting() & QDir.Reversed). + */ + public native boolean isReversed(); + public native void sortReversed(); + /** + @return the number of dirs and files + + @short + */ + public native int count(); + /** + @return the number of files. + + @short + */ + public native int numFiles(); + /** + @return the number of directories + + @short + */ + public native int numDirs(); + public native void setViewMode(int vm); + public native int viewMode(); + /** + @return the localized name of the view, which could be displayed + somewhere, e.g. in a menu, where the user can choose between views. + + @short + @see #setViewName + */ + public native String viewName(); + /** + Sets the name of the view, which could be displayed somewhere. + E.g. "Image Preview". + @short Sets the name of the view, which could be displayed somewhere. + */ + public native void setViewName(String name); + public native void setParentView(KFileViewInterface parent); + /** + @return all currently highlighted items. + + @short + */ + public native ArrayList selectedItems(); + /** + @return all items currently available in the current sort-order + + @short + */ + public native ArrayList items(); + /** + This is a KFileDialog specific hack: we want to select directories with + single click, but not files. But as a generic class, we have to be able + to select files on single click as well. + This gives us the opportunity to do both. + Every view has to decide when to call select( item ) when a file was + single-clicked, based on onlyDoubleClickSelectsFiles(). + @short This is a KFileDialog specific hack: we want to select directories with single click, but not files. + */ + public native void setOnlyDoubleClickSelectsFiles(boolean enable); + /** + @return whether files (not directories) should only be select()ed by + double-clicks. + + @short + @see #setOnlyDoubleClickSelectsFiles + */ + public native boolean onlyDoubleClickSelectsFiles(); + /** + increases the number of dirs and files. + @return true if the item fits the view mode + + @short increases the number of dirs and files. + */ + public native boolean updateNumbers(KFileItem i); + /** + @return the view-specific action-collection. Every view should + add its actions here (if it has any) to make them available to + e.g. the KDirOperator's popup-menu. + + @short + */ + public native KActionCollection actionCollection(); + public native KFileViewSignaler signaler(); + /** + Specify DND options. See DropOptions for details. + All options are disabled by default. + @short Specify DND options. + */ + public native void setDropOptions(int options); + /** + Returns the DND options in effect. + See DropOptions for details. + @short Returns the DND options in effect. + */ + public native int dropOptions(); + /** + This method calculates a String from the given parameters, that is + suitable for sorting with e.g. QIconView or QListView. Their + Item-classes usually have a setKey( String ) method or a virtual + method String key() that is used for sorting. + @param value Any string that should be used as sort criterion + @param isDir Tells whether the key is computed for an item representing + a directory (directories are usually sorted before files) + @param sortSpec An ORed combination of QDir.SortSpec flags. + Currently, the values IgnoreCase, Reversed and + DirsFirst are taken into account. + @short This method calculates a String from the given parameters, that is suitable for sorting with e. + */ + public static native String sortingKey(String value, boolean isDir, int sortSpec); + /** + An overloaded method that takes not a String, but a number as sort + criterion. You can use this for file-sizes or dates/times for example. + If you use a time_t, you need to cast that to KIO.filesize_t because + of ambiguity problems. + @short An overloaded method that takes not a String, but a number as sort criterion. + */ + public static native String sortingKey(long value, boolean isDir, int sortSpec); + /** + delay before auto opening a directory + @short + */ + public static native int autoOpenDelay(); + protected native void setDropOptions_impl(int options); +} |