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

tdeio/tdefile

kencodingfiledialog.h

00001 // -*- c++ -*-
00002 /* This file is part of the KDE libraries
00003     Copyright (C) 2003 Joseph Wenninger <jowenn@kde.org>
00004           2003 Andras Mantia <amantia@freemail.hu>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License as published by the Free Software Foundation; either
00009     version 2 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef __KENCODINGFILEDIALOG_H__
00023 #define __KENCODINGFILEDIALOG_H__
00024 
00025 #include <tdefiledialog.h>
00026 
00027 struct KEncodingFileDialogPrivate;
00028 
00039 class TDEIO_EXPORT KEncodingFileDialog : public KFileDialog
00040 {
00041     Q_OBJECT
00042 
00043 public:
00044     class Result {
00045     public:
00046         TQStringList fileNames;
00047         KURL::List  URLs;
00048         TQString encoding;
00049     };
00050 
00085     KEncodingFileDialog (const TQString& startDir = TQString::null,
00086                     const TQString& encoding = TQString::null,
00087             const TQString& filter = TQString::null,
00088             const TQString& caption = TQString::null, KFileDialog::OperationMode type = KFileDialog::Opening,
00089                     TQWidget *parent= 0, const char *name="", bool modal = true);
00093     ~KEncodingFileDialog();
00094 
00095 
00099     TQString selectedEncoding() const;
00100 
00101 
00129     static Result getOpenFileNameAndEncoding(const TQString& encoding=TQString::null,
00130                    const TQString& startDir= TQString::null,
00131                    const TQString& filter= TQString::null,
00132                    TQWidget *parent= 0,
00133                    const TQString& caption = TQString::null);
00134 
00161     static Result getOpenFileNamesAndEncoding(const TQString& encoding=TQString::null,
00162                     const TQString& startDir= TQString::null,
00163                     const TQString& filter= TQString::null,
00164                     TQWidget *parent = 0,
00165                     const TQString& caption= TQString::null);
00166 
00193     static Result getOpenURLAndEncoding(const TQString& encoding=TQString::null,
00194                const TQString& startDir = TQString::null,
00195                const TQString& filter= TQString::null,
00196                TQWidget *parent= 0,
00197                const TQString& caption = TQString::null);
00198 
00199 
00200 
00201 
00228     static Result getOpenURLsAndEncoding(const TQString& encoding=TQString::null,
00229                   const TQString& startDir= TQString::null,
00230                   const TQString& filter= TQString::null,
00231                   TQWidget *parent = 0,
00232                   const TQString& caption= TQString::null);
00233 
00234 
00235 
00264     static Result getSaveFileNameAndEncoding(const TQString& encoding=TQString::null,
00265                    const TQString& startDir=TQString::null,
00266                    const TQString& filter= TQString::null,
00267                    TQWidget *parent= 0,
00268                    const TQString& caption = TQString::null);
00269 
00270 
00299     static Result getSaveURLAndEncoding(const TQString& encoding=TQString::null,
00300                const TQString& startDir= TQString::null,
00301                const TQString& filter= TQString::null,
00302                TQWidget *parent= 0,
00303                const TQString& caption = TQString::null);
00304 
00305 
00306 
00307 protected:
00308     virtual void virtual_hook( int id, void* data );
00309 private:
00310     KEncodingFileDialogPrivate *d;
00311 };
00312 
00313 #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.6.3
This website is maintained by Timothy Pearson.