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

kio/kfile

  • kio
  • kfile
kfilefiltercombo.h
1 /* This file is part of the KDE libraries
2  Copyright (C) Stephan Kulow <coolo@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KFILEFILTERCOMBO_H
21 #define KFILEFILTERCOMBO_H
22 
23 #include <tqstringlist.h>
24 #include <tqptrdict.h>
25 
26 #include <kcombobox.h>
27 #include <kmimetype.h>
28 
29 class KFileFilterComboPrivate;
30 
31 class KIO_EXPORT KFileFilterCombo : public KComboBox
32 {
33  Q_OBJECT
34 
35  public:
36  KFileFilterCombo(TQWidget *parent= 0, const char *name= 0);
37  ~KFileFilterCombo();
38 
39  void setFilter(const TQString& filter);
40 
46  TQString currentFilter() const;
47 
53  void setCurrentFilter( const TQString& filter );
54 
60  void setMimeFilter( const TQStringList& types, const TQString& defaultType );
61 
65  bool showsAllTypes() const { return m_allTypes; }
66 
75  void setDefaultFilter( const TQString& filter );
76 
81  TQString defaultFilter() const;
82 
83  protected:
84  virtual bool eventFilter( TQObject *o, TQEvent *e );
85 
86 // KDE4: those variables are private. filters() was added
87  TQStringList filters;
88  bool m_allTypes;
89 
90  signals:
91  void filterChanged();
92 
93 private slots:
94  void slotFilterChanged();
95 
96 protected:
97  virtual void virtual_hook( int id, void* data );
98 private:
99  friend class KFileDialog; // gone in KDE4
100  class KFileFilterComboPrivate;
101  KFileFilterComboPrivate *d;
102 };
103 
104 #endif
KFileDialog
Provides a user (and developer) friendly way to select files and directories.
Definition: kfiledialog.h:77

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.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |