/***************************************************************************
                            KDirSelectDialog.java -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.koala;

import org.kde.qt.*;
import java.util.*;
import java.lang.Error;

/**

 A pretty dialog for a KDirSelect control for selecting directories.

 See {@link KDirSelectDialogSignals} for signals emitted by KDirSelectDialog.

 See {@link KDirSelectDialogEventHandling} for event handlers to override in subclasses of KDirSelectDialog.

 @author Michael Jarrett <michaelj@corel.com>

 @short 
 A pretty dialog for a KDirSelect control for selecting directories.
*/
public class KDirSelectDialog extends KDialogBase  {
	protected KDirSelectDialog(Class dummy){super((Class) null);}

	private native void newKDirSelectDialog( String startDir, boolean localOnly, QWidget parent, String name, boolean modal);

/** 
 The constructor. Creates a dialog to select a directory (url).

*/
	public KDirSelectDialog( String startDir, boolean localOnly, QWidget parent, String name, boolean modal) {
		super((Class) null);
		newKDirSelectDialog( startDir, localOnly, parent, name, modal);
	}
	private native void newKDirSelectDialog();
	public KDirSelectDialog() {
		super((Class) null);
		newKDirSelectDialog();
	}

/** 
     
*/
	protected native void finalize() throws InternalError;
	public native void dispose();
	public native boolean isDisposed();

/** 
 Returns the currently-selected URL, or a blank URL if none is selected.

*/
	public native KURL url();
	public native KFileTreeView view();
	public native boolean localOnly();

/** 
 Creates a KDirSelectDialog, and returns the result.

*/
	public static native KURL selectDirectory( String startDir, boolean localOnly, QWidget parent, String caption);
	public static native KURL selectDirectory();
}
