• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/kfile
 

kio/kfile

  • kio
  • kfile
kopenwith.h
1 //
2 /* This file is part of the KDE libraries
3  Copyright (C) 2000 David Faure <faure@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 #ifndef __open_with_h__
21 #define __open_with_h__
22 
23 #include <tqdialog.h>
24 
25 #include <kurl.h>
26 #include <krun.h>
27 #include <kservice.h>
28 
29 class KApplicationTree;
30 class KURLRequester;
31 
32 class TQWidget;
33 class TQCheckBox;
34 class TQPushButton;
35 class TQLabel;
36 
37 class KOpenWithDlgPrivate;
38 
39 /* ------------------------------------------------------------------------- */
46 class KIO_EXPORT KOpenWithDlg : public TQDialog //#TODO: Use KDialogBase for KDE4
47 {
48  Q_OBJECT
49 public:
50 
59  KOpenWithDlg( const KURL::List& urls, TQWidget *parent = 0L );
60 
70  KOpenWithDlg( const KURL::List& urls, const TQString& text, const TQString& value,
71  TQWidget *parent = 0L );
72 
81  KOpenWithDlg( const TQString& serviceType, const TQString& value,
82  TQWidget *parent = 0L );
83 
91  KOpenWithDlg( TQWidget *parent = 0L );
92 
96  ~KOpenWithDlg();
97 
101  TQString text() const;
105  void hideNoCloseOnExit();
109  void hideRunInTerminal();
114  KService::Ptr service() const { return m_pService; }
125  void setSaveNewApplications(bool b);
126 
127 public slots:
131  void slotClear();
132  void slotSelected( const TQString&_name, const TQString& _exec );
133  void slotHighlighted( const TQString& _name, const TQString& _exec );
134  void slotTextChanged();
135  void slotTerminalToggled(bool);
136  void slotDbClick();
137  void slotOK();
138 
139 protected slots:
143  virtual void accept();
144 
145 protected:
146 
150  void setServiceType( const KURL::List& _urls );
151 
159  void init( const TQString& text, const TQString& value );
160 
161  KURLRequester * edit;
162  TQString m_command;
163 
164  KApplicationTree* m_pTree;
165  TQLabel *label;
166 
167  TQString qName, qServiceType;
168  bool m_terminaldirty;
169  TQCheckBox *terminal, *remember, *nocloseonexit;
170  TQPushButton *UNUSED;
171  TQPushButton *UNUSED2;
172 
173  KService::Ptr m_pService;
174 
175  KOpenWithDlgPrivate *d;
176 };
177 
178 /* ------------------------------------------------------------------------- */
179 
180 #ifndef KDE_NO_COMPAT
181 
192 class KIO_EXPORT_DEPRECATED KFileOpenWithHandler : public KOpenWithHandler
193 {
194 public:
195  KFileOpenWithHandler() : KOpenWithHandler() {}
196  virtual ~KFileOpenWithHandler() {}
197 
202  virtual bool displayOpenWithDialog( const KURL::List& urls );
203 };
204 #endif
205 
206 
207 /* ------------------------------------------------------------------------- */
208 
209 #endif

kio/kfile

Skip menu "kio/kfile"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kio/kfile

Skip menu "kio/kfile"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/kfile by doxygen 1.8.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |