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

tdeio/tdefile

  • tdeio
  • tdefile
kencodingfiledialog.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2003 Joseph Wenninger <jowenn@kde.org>
3  2003 Andras Mantia <amantia@freemail.hu>
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 
21 #ifndef __KENCODINGFILEDIALOG_H__
22 #define __KENCODINGFILEDIALOG_H__
23 
24 #include <tdefiledialog.h>
25 
26 struct KEncodingFileDialogPrivate;
27 
38 class TDEIO_EXPORT KEncodingFileDialog : public KFileDialog
39 {
40  Q_OBJECT
41 
42 public:
43  class Result {
44  public:
45  TQStringList fileNames;
46  KURL::List URLs;
47  TQString encoding;
48  };
49 
84  KEncodingFileDialog (const TQString& startDir = TQString::null,
85  const TQString& encoding = TQString::null,
86  const TQString& filter = TQString::null,
87  const TQString& caption = TQString::null, KFileDialog::OperationMode type = KFileDialog::Opening,
88  TQWidget *parent= 0, const char *name="", bool modal = true);
92  ~KEncodingFileDialog();
93 
94 
98  TQString selectedEncoding() const;
99 
100 
128  static Result getOpenFileNameAndEncoding(const TQString& encoding=TQString::null,
129  const TQString& startDir= TQString::null,
130  const TQString& filter= TQString::null,
131  TQWidget *parent= 0,
132  const TQString& caption = TQString::null);
133 
160  static Result getOpenFileNamesAndEncoding(const TQString& encoding=TQString::null,
161  const TQString& startDir= TQString::null,
162  const TQString& filter= TQString::null,
163  TQWidget *parent = 0,
164  const TQString& caption= TQString::null);
165 
192  static Result getOpenURLAndEncoding(const TQString& encoding=TQString::null,
193  const TQString& startDir = TQString::null,
194  const TQString& filter= TQString::null,
195  TQWidget *parent= 0,
196  const TQString& caption = TQString::null);
197 
198 
199 
200 
227  static Result getOpenURLsAndEncoding(const TQString& encoding=TQString::null,
228  const TQString& startDir= TQString::null,
229  const TQString& filter= TQString::null,
230  TQWidget *parent = 0,
231  const TQString& caption= TQString::null);
232 
233 
234 
263  static Result getSaveFileNameAndEncoding(const TQString& encoding=TQString::null,
264  const TQString& startDir=TQString::null,
265  const TQString& filter= TQString::null,
266  TQWidget *parent= 0,
267  const TQString& caption = TQString::null);
268 
269 
298  static Result getSaveURLAndEncoding(const TQString& encoding=TQString::null,
299  const TQString& startDir= TQString::null,
300  const TQString& filter= TQString::null,
301  TQWidget *parent= 0,
302  const TQString& caption = TQString::null);
303 
304 
305 
306 protected:
307  virtual void virtual_hook( int id, void* data );
308 private:
309  KEncodingFileDialogPrivate *d;
310 };
311 
312 #endif
KEncodingFileDialog
Provides a user (and developer) friendly way to select files with support for choosing encoding...
Definition: kencodingfiledialog.h:38
KFileDialog
Provides a user (and developer) friendly way to select files and directories.
Definition: tdefiledialog.h:76
KFileDialog::OperationMode
OperationMode
Defines some default behavior of the filedialog.
Definition: tdefiledialog.h:93

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
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdefile by doxygen 1.8.8
This website is maintained by Timothy Pearson.