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

tdeio/tdefile

  • tdeio
  • tdefile
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
29class TDEApplicationTree;
30class KURLRequester;
31
32class TQWidget;
33class TQCheckBox;
34class TQPushButton;
35class TQLabel;
36
37class KOpenWithDlgPrivate;
38
39/* ------------------------------------------------------------------------- */
46class TDEIO_EXPORT KOpenWithDlg : public TQDialog //#TODO: Use KDialogBase for KDE4
47{
48 TQ_OBJECT
49public:
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
127public slots:
131 void slotClear();
132 void slotSelected( const TQString&_name, const TQString& _exec, const TQString& _desktopPath );
133 void slotHighlighted( const TQString& _name, const TQString& _exec, const TQString& _desktopPath );
134 void slotTextChanged();
135 void slotTerminalToggled(bool);
136 void slotDbClick();
137 void slotOK();
138
139protected slots:
143 virtual void accept();
144
145protected:
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 TDEApplicationTree* 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
192class TDEIO_EXPORT_DEPRECATED KFileOpenWithHandler : public KOpenWithHandler
193{
194public:
195 KFileOpenWithHandler() : KOpenWithHandler() {}
196 virtual ~KFileOpenWithHandler() {}
197
202 virtual bool displayOpenWithDialog( const KURL::List& urls );
203};
204#endif
205
206
207/* ------------------------------------------------------------------------- */
208
209#endif
KFileOpenWithHandler
This class handles the displayOpenWithDialog call, made by KRun when it has no idea what to do with a...
Definition: kopenwith.h:193
KOpenWithDlg
"Open with" dialog box.
Definition: kopenwith.h:47
KOpenWithDlg::service
KService::Ptr service() const
Definition: kopenwith.h:114
KURLRequester
This class is a widget showing a lineedit and a button, which invokes a filedialog.
Definition: kurlrequester.h:57

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.