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

Kross

  • Kross
  • FormFileWidget
Public Types | Public Slots | Signals | Public Member Functions | List of all members
Kross::FormFileWidget Class Reference

#include <form.h>

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

Public Types

enum  Mode { Other = 0, Opening, Saving }
 

Public Slots

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

Signals

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

Public Member Functions

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

Detailed Description

The FormFileWidget class provides access to a KFileWidget.

Definition at line 55 of file form.h.

Member Enumeration Documentation

enum Kross::FormFileWidget::Mode

The Mode the FormFileWidget could have.

Enumerator
Other 
Opening 
Saving 

Definition at line 67 of file form.h.

Constructor & Destructor Documentation

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

Definition at line 107 of file form.cpp.

FormFileWidget::~FormFileWidget ( )
virtual

Definition at line 139 of file form.cpp.

Member Function Documentation

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

Definition at line 151 of file form.cpp.

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

Definition at line 163 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 179 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 156 of file form.cpp.

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

Set the mimetype filter to filter .

Definition at line 168 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 144 of file form.cpp.


The documentation for this class was generated from the following files:
  • form.h
  • form.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kross

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal