• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdefile
 

tdeio/tdefile

Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
KDirSelectDialog Class Reference

#include <kdirselectdialog.h>

Inherits KDialogBase.

Public Slots

void setCurrentURL (const KURL &url)
 

Public Member Functions

 KDirSelectDialog (const TQString &startDir=TQString::null, bool localOnly=false, TQWidget *parent=0L, const char *name=0, bool modal=false)
 
KURL url () const
 
KFileTreeView * view () const
 
bool localOnly () const
 
TQString startDir () const
 

Static Public Member Functions

static KURL selectDirectory (const TQString &startDir=TQString::null, bool localOnly=false, TQWidget *parent=0L, const TQString &caption=TQString::null)
 

Protected Slots

virtual void slotUser1 ()
 

Protected Member Functions

virtual void accept ()
 
virtual void virtual_hook (int id, void *data)
 

Protected Attributes

TQVBoxLayout * m_mainLayout
 
TQString m_startDir
 

Detailed Description

A pretty dialog for a KDirSelect control for selecting directories.

Author
Michael Jarrett micha.nosp@m.elj@.nosp@m.corel.nosp@m..com
See also
KFileDialog

Definition at line 39 of file kdirselectdialog.h.

Constructor & Destructor Documentation

◆ KDirSelectDialog()

KDirSelectDialog::KDirSelectDialog ( const TQString &  startDir = TQString::null,
bool  localOnly = false,
TQWidget *  parent = 0L,
const char *  name = 0,
bool  modal = false 
)

The constructor.

Creates a dialog to select a directory (url).

Definition at line 87 of file kdirselectdialog.cpp.

◆ ~KDirSelectDialog()

KDirSelectDialog::~KDirSelectDialog ( )

Definition at line 168 of file kdirselectdialog.cpp.

Member Function Documentation

◆ accept()

void KDirSelectDialog::accept ( )
protectedvirtual

Definition at line 298 of file kdirselectdialog.cpp.

◆ localOnly()

bool KDirSelectDialog::localOnly ( ) const
inline

Definition at line 70 of file kdirselectdialog.h.

◆ selectDirectory()

KURL KDirSelectDialog::selectDirectory ( const TQString &  startDir = TQString::null,
bool  localOnly = false,
TQWidget *  parent = 0L,
const TQString &  caption = TQString::null 
)
static

Creates a KDirSelectDialog, and returns the result.

Parameters
startDirthe directory, initially shown The tree will display this directory and subdirectories of it.
localOnlyunused. You can only select paths below the startDir
parentthe parent widget to use for the dialog, or NULL to create a parent-less dialog
captionthe caption to use for the dialog, or TQString::null for the default caption
Returns
The URL selected, or an empty URL if the user canceled or no URL was selected.

Definition at line 461 of file kdirselectdialog.cpp.

◆ setCurrentURL

void KDirSelectDialog::setCurrentURL ( const KURL &  url)
slot

Definition at line 173 of file kdirselectdialog.cpp.

◆ slotUser1

void KDirSelectDialog::slotUser1 ( )
protectedvirtualslot

Definition at line 293 of file kdirselectdialog.cpp.

◆ startDir()

TQString KDirSelectDialog::startDir ( ) const
inline
Returns
The path for the root node

Definition at line 89 of file kdirselectdialog.h.

◆ url()

KURL KDirSelectDialog::url ( ) const

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

Returns
The currently-selected URL, if one was selected.

Definition at line 321 of file kdirselectdialog.cpp.

◆ view()

KFileTreeView * KDirSelectDialog::view ( ) const
inline

Definition at line 68 of file kdirselectdialog.h.

◆ virtual_hook()

void KDirSelectDialog::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Definition at line 478 of file kdirselectdialog.cpp.

Member Data Documentation

◆ m_mainLayout

TQVBoxLayout* KDirSelectDialog::m_mainLayout
protected

Definition at line 101 of file kdirselectdialog.h.

◆ m_startDir

TQString KDirSelectDialog::m_startDir
protected

Definition at line 102 of file kdirselectdialog.h.


The documentation for this class was generated from the following files:
  • kdirselectdialog.h
  • kdirselectdialog.cpp

tdeio/tdefile

Skip menu "tdeio/tdefile"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeio/tdefile

Skip menu "tdeio/tdefile"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdefile by doxygen 1.9.4
This website is maintained by Timothy Pearson.