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

tdeio/tdefile

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

#include <kopenwith.h>

Inherits TQDialog.

Public Slots

void slotClear ()
 
void slotSelected (const TQString &_name, const TQString &_exec, const TQString &_desktopPath)
 
void slotHighlighted (const TQString &_name, const TQString &_exec, const TQString &_desktopPath)
 
void slotTextChanged ()
 
void slotTerminalToggled (bool)
 
void slotDbClick ()
 
void slotOK ()
 

Public Member Functions

 KOpenWithDlg (const KURL::List &urls, TQWidget *parent=0L)
 
 KOpenWithDlg (const KURL::List &urls, const TQString &text, const TQString &value, TQWidget *parent=0L)
 
 KOpenWithDlg (const TQString &serviceType, const TQString &value, TQWidget *parent=0L)
 
 KOpenWithDlg (TQWidget *parent=0L)
 
 ~KOpenWithDlg ()
 
TQString text () const
 
void hideNoCloseOnExit ()
 
void hideRunInTerminal ()
 
KService::Ptr service () const
 
void setSaveNewApplications (bool b)
 

Protected Slots

virtual void accept ()
 

Protected Member Functions

void setServiceType (const KURL::List &_urls)
 
void init (const TQString &text, const TQString &value)
 

Protected Attributes

KURLRequester * edit
 
TQString m_command
 
TDEApplicationTree * m_pTree
 
TQLabel * label
 
TQString qName
 
TQString qServiceType
 
bool m_terminaldirty
 
TQCheckBox * terminal
 
TQCheckBox * remember
 
TQCheckBox * nocloseonexit
 
TQPushButton * UNUSED
 
TQPushButton * UNUSED2
 
KService::Ptr m_pService
 
KOpenWithDlgPrivate * d
 

Detailed Description

"Open with" dialog box.

Used automatically by KRun, and used by libkonq.

Author
David Faure faure.nosp@m.@kde.nosp@m..org

Definition at line 46 of file kopenwith.h.

Constructor & Destructor Documentation

◆ KOpenWithDlg() [1/4]

KOpenWithDlg::KOpenWithDlg ( const KURL::List &  urls,
TQWidget *  parent = 0L 
)

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 321 of file kopenwith.cpp.

◆ KOpenWithDlg() [2/4]

KOpenWithDlg::KOpenWithDlg ( const KURL::List &  urls,
const TQString &  text,
const TQString &  value,
TQWidget *  parent = 0L 
)

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 339 of file kopenwith.cpp.

◆ KOpenWithDlg() [3/4]

KOpenWithDlg::KOpenWithDlg ( const TQString &  serviceType,
const TQString &  value,
TQWidget *  parent = 0L 
)

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

Note that this dialog doesn't apply to URLs.

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

Definition at line 351 of file kopenwith.cpp.

◆ KOpenWithDlg() [4/4]

KOpenWithDlg::KOpenWithDlg ( TQWidget *  parent = 0L)

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

Parameters
parentparent widget
Since
3.1

Definition at line 365 of file kopenwith.cpp.

◆ ~KOpenWithDlg()

KOpenWithDlg::~KOpenWithDlg ( )

Destructor.

Definition at line 531 of file kopenwith.cpp.

Member Function Documentation

◆ accept

void KOpenWithDlg::accept ( )
protectedvirtualslot

Reimplemented from TQDialog::accept() to save history of the combobox.

Definition at line 819 of file kopenwith.cpp.

◆ hideNoCloseOnExit()

void KOpenWithDlg::hideNoCloseOnExit ( )

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

Definition at line 806 of file kopenwith.cpp.

◆ hideRunInTerminal()

void KOpenWithDlg::hideRunInTerminal ( )

Hide the "Run in &terminal" Checkbox.

Definition at line 813 of file kopenwith.cpp.

◆ init()

void KOpenWithDlg::init ( const TQString &  text,
const TQString &  value 
)
protected

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

Parameters
textappears as a label on top of the entry box.
valueis the initial value of the line

Definition at line 388 of file kopenwith.cpp.

◆ service()

KService::Ptr KOpenWithDlg::service ( ) const
inline
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 114 of file kopenwith.h.

◆ setSaveNewApplications()

void KOpenWithDlg::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.

Since
3.2

Definition at line 608 of file kopenwith.cpp.

◆ setServiceType()

void KOpenWithDlg::setServiceType ( const KURL::List &  _urls)
protected

Determine service type from URLs.

Definition at line 376 of file kopenwith.cpp.

◆ slotClear

void KOpenWithDlg::slotClear ( )
slot

The slot for clearing the edit widget.

Definition at line 539 of file kopenwith.cpp.

◆ slotDbClick

void KOpenWithDlg::slotDbClick ( )
slot

Definition at line 602 of file kopenwith.cpp.

◆ slotHighlighted

void KOpenWithDlg::slotHighlighted ( const TQString &  _name,
const TQString &  _exec,
const TQString &  _desktopPath 
)
slot

Definition at line 559 of file kopenwith.cpp.

◆ slotOK

void KOpenWithDlg::slotOK ( )
slot

Definition at line 613 of file kopenwith.cpp.

◆ slotSelected

void KOpenWithDlg::slotSelected ( const TQString &  _name,
const TQString &  _exec,
const TQString &  _desktopPath 
)
slot

Definition at line 548 of file kopenwith.cpp.

◆ slotTerminalToggled

void KOpenWithDlg::slotTerminalToggled ( bool  )
slot

Definition at line 593 of file kopenwith.cpp.

◆ slotTextChanged

void KOpenWithDlg::slotTextChanged ( )
slot

Definition at line 583 of file kopenwith.cpp.

◆ text()

TQString KOpenWithDlg::text ( ) const
Returns
the text the user entered

Definition at line 798 of file kopenwith.cpp.

Member Data Documentation

◆ d

KOpenWithDlgPrivate* KOpenWithDlg::d
protected

Definition at line 175 of file kopenwith.h.

◆ edit

KURLRequester* KOpenWithDlg::edit
protected

Definition at line 161 of file kopenwith.h.

◆ label

TQLabel* KOpenWithDlg::label
protected

Definition at line 165 of file kopenwith.h.

◆ m_command

TQString KOpenWithDlg::m_command
protected

Definition at line 162 of file kopenwith.h.

◆ m_pService

KService::Ptr KOpenWithDlg::m_pService
protected

Definition at line 173 of file kopenwith.h.

◆ m_pTree

TDEApplicationTree* KOpenWithDlg::m_pTree
protected

Definition at line 164 of file kopenwith.h.

◆ m_terminaldirty

bool KOpenWithDlg::m_terminaldirty
protected

Definition at line 168 of file kopenwith.h.

◆ nocloseonexit

TQCheckBox * KOpenWithDlg::nocloseonexit
protected

Definition at line 169 of file kopenwith.h.

◆ qName

TQString KOpenWithDlg::qName
protected

Definition at line 167 of file kopenwith.h.

◆ qServiceType

TQString KOpenWithDlg::qServiceType
protected

Definition at line 167 of file kopenwith.h.

◆ remember

TQCheckBox * KOpenWithDlg::remember
protected

Definition at line 169 of file kopenwith.h.

◆ terminal

TQCheckBox* KOpenWithDlg::terminal
protected

Definition at line 169 of file kopenwith.h.

◆ UNUSED

TQPushButton* KOpenWithDlg::UNUSED
protected

Definition at line 170 of file kopenwith.h.

◆ UNUSED2

TQPushButton* KOpenWithDlg::UNUSED2
protected

Definition at line 171 of file kopenwith.h.


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