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

tdeio/tdefile

  • tdeio
  • tdefile
kencodingfiledialog.h
1 // -*- c++ -*-
2 /* This file is part of the KDE libraries
3  Copyright (C) 2003 Joseph Wenninger <jowenn@kde.org>
4  2003 Andras Mantia <amantia@freemail.hu>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef __KENCODINGFILEDIALOG_H__
23 #define __KENCODINGFILEDIALOG_H__
24 
25 #include <tdefiledialog.h>
26 
27 struct KEncodingFileDialogPrivate;
28 
39 class TDEIO_EXPORT KEncodingFileDialog : public KFileDialog
40 {
41  Q_OBJECT
42 
43 public:
44  class Result {
45  public:
46  TQStringList fileNames;
47  KURL::List URLs;
48  TQString encoding;
49  };
50 
85  KEncodingFileDialog (const TQString& startDir = TQString::null,
86  const TQString& encoding = TQString::null,
87  const TQString& filter = TQString::null,
88  const TQString& caption = TQString::null, KFileDialog::OperationMode type = KFileDialog::Opening,
89  TQWidget *parent= 0, const char *name="", bool modal = true);
93  ~KEncodingFileDialog();
94 
95 
99  TQString selectedEncoding() const;
100 
101 
129  static Result getOpenFileNameAndEncoding(const TQString& encoding=TQString::null,
130  const TQString& startDir= TQString::null,
131  const TQString& filter= TQString::null,
132  TQWidget *parent= 0,
133  const TQString& caption = TQString::null);
134 
161  static Result getOpenFileNamesAndEncoding(const TQString& encoding=TQString::null,
162  const TQString& startDir= TQString::null,
163  const TQString& filter= TQString::null,
164  TQWidget *parent = 0,
165  const TQString& caption= TQString::null);
166 
193  static Result getOpenURLAndEncoding(const TQString& encoding=TQString::null,
194  const TQString& startDir = TQString::null,
195  const TQString& filter= TQString::null,
196  TQWidget *parent= 0,
197  const TQString& caption = TQString::null);
198 
199 
200 
201 
228  static Result getOpenURLsAndEncoding(const TQString& encoding=TQString::null,
229  const TQString& startDir= TQString::null,
230  const TQString& filter= TQString::null,
231  TQWidget *parent = 0,
232  const TQString& caption= TQString::null);
233 
234 
235 
264  static Result getSaveFileNameAndEncoding(const TQString& encoding=TQString::null,
265  const TQString& startDir=TQString::null,
266  const TQString& filter= TQString::null,
267  TQWidget *parent= 0,
268  const TQString& caption = TQString::null);
269 
270 
299  static Result getSaveURLAndEncoding(const TQString& encoding=TQString::null,
300  const TQString& startDir= TQString::null,
301  const TQString& filter= TQString::null,
302  TQWidget *parent= 0,
303  const TQString& caption = TQString::null);
304 
305 
306 
307 protected:
308  virtual void virtual_hook( int id, void* data );
309 private:
310  KEncodingFileDialogPrivate *d;
311 };
312 
313 #endif

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.8.1.2
This website is maintained by Timothy Pearson.