• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Kross

  • Kross
  • Kross::FormFileWidget
Public Types | Public Slots | Signals | Public Member Functions

Kross::FormFileWidget Class Reference

The FormFileWidget class provides access to a KFileWidget. More...

#include <form.h>

Inheritance diagram for Kross::FormFileWidget:
Inheritance graph
[legend]

List of all members.

Public Types

enum  Mode { Other = 0, Opening, Saving }

Public Slots

void setMode (const QString &mode)
QString currentFilter () const
void setFilter (const QString &filter)
QString currentMimeFilter () const
void setMimeFilter (const QStringList &filter)
QString selectedFile () const

Signals

void fileSelected (const QString &file)
void fileHighlighted (const QString &)
void selectionChanged ()
void filterChanged (const QString &filter)

Public Member Functions

 FormFileWidget (QWidget *parent, const QString &startDirOrVariable)
virtual ~FormFileWidget ()

Detailed Description

The FormFileWidget class provides access to a KFileWidget.

Definition at line 34 of file form.h.


Member Enumeration Documentation

enum Kross::FormFileWidget::Mode

The Mode the FormFileWidget could have.

Enumerator:
Other 
Opening 
Saving 

Definition at line 46 of file form.h.


Constructor & Destructor Documentation

FormFileWidget::FormFileWidget ( QWidget *  parent,
const QString &  startDirOrVariable 
)

Definition at line 90 of file form.cpp.

FormFileWidget::~FormFileWidget (  )  [virtual]

Definition at line 119 of file form.cpp.


Member Function Documentation

QString FormFileWidget::currentFilter (  )  const [slot]
Returns:
the current filter.

Definition at line 131 of file form.cpp.

QString FormFileWidget::currentMimeFilter (  )  const [slot]
Returns:
the current mimetype filter.

Definition at line 143 of file form.cpp.

void Kross::FormFileWidget::fileHighlighted ( const QString &   )  [signal]

Emitted when the user highlights a file.

void Kross::FormFileWidget::fileSelected ( const QString &  file  )  [signal]

Emitted when the user selects a file.

It is only emitted in single- selection mode.

void Kross::FormFileWidget::filterChanged ( const QString &  filter  )  [signal]

Emitted when the filter changed, i.e.

the user entered an own filter or chose one of the predefined set via setFilter().

QString FormFileWidget::selectedFile (  )  const [slot]
Returns:
the currently selected file.

Definition at line 153 of file form.cpp.

void Kross::FormFileWidget::selectionChanged (  )  [signal]

Emitted when the user hilights one or more files in multiselection mode.

void FormFileWidget::setFilter ( const QString &  filter  )  [slot]

Set the filter to filter .

Definition at line 136 of file form.cpp.

void FormFileWidget::setMimeFilter ( const QStringList &  filter  )  [slot]

Set the mimetype filter to filter .

Definition at line 148 of file form.cpp.

void FormFileWidget::setMode ( const QString &  mode  )  [slot]

Set the Mode the FormFileWidget should have to mode .

Valid modes are "Other", "Opening" or "Saving".

Definition at line 124 of file form.cpp.


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

Kross

Skip menu "Kross"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  • KJSEmbed
  •   WTF
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  •   core
  • Phonon
  •   Backend
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal