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

KIO

Public Slots | Public Member Functions | Protected Slots | List of all members
KOpenWithDialog Class Reference

#include <kopenwithdialog.h>

Inheritance diagram for KOpenWithDialog:
Inheritance graph
[legend]

Public Slots

void slotHighlighted (const QString &_name, const QString &_exec)
 
void slotSelected (const QString &_name, const QString &_exec)
 
void slotTerminalToggled (bool)
 
void slotTextChanged ()
 

Public Member Functions

 KOpenWithDialog (const KUrl::List &urls, QWidget *parent=0)
 
 KOpenWithDialog (const KUrl::List &urls, const QString &text, const QString &value, QWidget *parent=0)
 
 KOpenWithDialog (const QString &mimeType, const QString &value, QWidget *parent=0)
 
 KOpenWithDialog (QWidget *parent=0)
 
 ~KOpenWithDialog ()
 
void hideNoCloseOnExit ()
 
void hideRunInTerminal ()
 
KService::Ptr service () const
 
void setSaveNewApplications (bool b)
 
QString text () const
 

Protected Slots

virtual void accept ()
 

Detailed Description

"Open With" dialog box.

Note
To let the user choose an application and run it immediately, use simpler KRun::displayOpenWithDialog().
Author
David Faure faure.nosp@m.@kde.nosp@m..org

Definition at line 39 of file kopenwithdialog.h.

Constructor & Destructor Documentation

KOpenWithDialog::KOpenWithDialog ( const KUrl::List &  urls,
QWidget *  parent = 0 
)
explicit

Create a dialog that asks for a application to open a given URL(s) with.

Parameters
urlsthe URLs that should be opened. The list can be empty, if the dialog is used to choose an application but not for some particular URLs.
parentparent widget

Definition at line 478 of file kopenwithdialog.cpp.

KOpenWithDialog::KOpenWithDialog ( const KUrl::List &  urls,
const QString &  text,
const QString &  value,
QWidget *  parent = 0 
)

Create a dialog that asks for a application to open a given URL(s) with.

Parameters
urlsis the URL that should be opened
textappears as a label on top of the entry box.
valueis the initial value of the line
parentparent widget

Definition at line 499 of file kopenwithdialog.cpp.

KOpenWithDialog::KOpenWithDialog ( const QString &  mimeType,
const QString &  value,
QWidget *  parent = 0 
)

Create a dialog to select a service for a given mimetype.

Note that this dialog doesn't apply to URLs.

Parameters
mimeTypethe mime type we want to choose an application for.
valueis the initial value of the line
parentparent widget

Definition at line 515 of file kopenwithdialog.cpp.

KOpenWithDialog::KOpenWithDialog ( QWidget *  parent = 0)

Create a dialog to select an application Note that this dialog doesn't apply to URLs.

Parameters
parentparent widget

Definition at line 532 of file kopenwithdialog.cpp.

KOpenWithDialog::~KOpenWithDialog ( )

Destructor.

Definition at line 690 of file kopenwithdialog.cpp.

Member Function Documentation

void KOpenWithDialog::accept ( )
protectedvirtualslot

Reimplemented from QDialog::accept()

Definition at line 956 of file kopenwithdialog.cpp.

void KOpenWithDialog::hideNoCloseOnExit ( )

Hide the "Do not &close when command exits" Checkbox.

Definition at line 970 of file kopenwithdialog.cpp.

void KOpenWithDialog::hideRunInTerminal ( )

Hide the "Run in &terminal" Checkbox.

Definition at line 977 of file kopenwithdialog.cpp.

KService::Ptr KOpenWithDialog::service ( ) const
Returns
the chosen service in the application tree Can be null, if the user typed some text and didn't select a service.

Definition at line 983 of file kopenwithdialog.cpp.

void KOpenWithDialog::setSaveNewApplications ( bool  b)

Set whether a new .desktop file should be created if the user selects an application for which no corresponding .desktop file can be found.

Regardless of this setting a new .desktop file may still be created if the user has chosen to remember the file association.

The default is false: no .desktop files are created.

Definition at line 756 of file kopenwithdialog.cpp.

void KOpenWithDialog::slotHighlighted ( const QString &  _name,
const QString &  _exec 
)
slot

Definition at line 708 of file kopenwithdialog.cpp.

void KOpenWithDialog::slotSelected ( const QString &  _name,
const QString &  _exec 
)
slot

Definition at line 698 of file kopenwithdialog.cpp.

void KOpenWithDialog::slotTerminalToggled ( bool  )
slot

Definition at line 732 of file kopenwithdialog.cpp.

void KOpenWithDialog::slotTextChanged ( )
slot

Definition at line 723 of file kopenwithdialog.cpp.

QString KOpenWithDialog::text ( ) const
Returns
the text the user entered

Definition at line 962 of file kopenwithdialog.cpp.


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

KDE's Doxygen guidelines are available online.

KIO

Skip menu "KIO"
  • 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