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

tdeio/tdefile

  • tdeio
  • tdefile
tdefilefiltercombo.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 TDEFILEFILTERCOMBO_H
21 #define TDEFILEFILTERCOMBO_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 TDEIO_EXPORT KFileFilterCombo : public KComboBox
32 {
33  TQ_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: tdefiledialog.h:77

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