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

tdeio/tdefile

Static Public Member Functions | List of all members
TDERecentDirs Class Reference

#include <tderecentdirs.h>

Static Public Member Functions

static TQStringList list (const TQString &fileClass)
 
static TQString dir (const TQString &fileClass)
 
static void add (const TQString &fileClass, const TQString &directory)
 

Detailed Description

The goal of this class is to make sure that, when the user needs to specify a file via the file selection dialog, this dialog will start in the directory most likely to contain the desired files.

This works as follows: Each time the file selection dialog is shown, the programmer can specify a "file-class". The file-dialog will then start with the directory associated with this file-class. When the dialog closes, the directory currently shown in the file-dialog will be associated with the file-class.

A file-class can either start with ':' or with '::'. If it starts with a single ':' the file-class is specific to the current application. If the file-class starts with '::' it is global to all applications.

Definition at line 50 of file tderecentdirs.h.

Member Function Documentation

◆ add()

void TDERecentDirs::add ( const TQString &  fileClass,
const TQString &  directory 
)
static

Associates directory with fileClass.

Definition at line 86 of file tderecentdirs.cpp.

◆ dir()

TQString TDERecentDirs::dir ( const TQString &  fileClass)
static

Returns the most recently used directory accociated with this file-class.

Definition at line 80 of file tderecentdirs.cpp.

◆ list()

TQStringList TDERecentDirs::list ( const TQString &  fileClass)
static

Returns a list of directories associated with this file-class.

The most recently used directory is at the front of the list.

Definition at line 72 of file tderecentdirs.cpp.


The documentation for this class was generated from the following files:
  • tderecentdirs.h
  • tderecentdirs.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.