• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

  • tdeui
kiconviewsearchline.h
1/*
2 This file is part of the KDE libraries
3 Copyright (c) 2004 Gustavo Sverzut Barbieri <gsbarbieri@users.sourceforge.net>
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 version 2 as published by the Free Software Foundation.
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 KICONVIEWSEARCHLINE_H
21#define KICONVIEWSEARCHLINE_H
22
23#include <klineedit.h>
24#include <tqvaluelist.h>
25
26class TQIconView;
27class TQIconViewItem;
28
38class TDEUI_EXPORT TDEIconViewSearchLine : public KLineEdit
39{
40 TQ_OBJECT
41
42public:
43
51 TDEIconViewSearchLine( TQWidget *parent = 0,
52 TQIconView *iconView = 0,
53 const char *name = 0 );
54
59 TDEIconViewSearchLine( TQWidget *parent, const char *name );
60
64 virtual ~TDEIconViewSearchLine();
65
71 bool caseSensitive() const;
72
78 TQIconView *iconView() const;
79
80
81public slots:
86 virtual void updateSearch( const TQString &s = TQString::null );
87
93 void setCaseSensitive( bool cs );
94
101 void setIconView( TQIconView *iv );
102
103
107 void clear();
108
112 void iconDeleted(const TQString &filename);
113
114protected:
120 virtual bool itemMatches( const TQIconViewItem *item,
121 const TQString &s ) const;
122
123
127 void init( TQIconView *iconView = 0 );
128
132 void hideItem( TQIconViewItem *item );
133
140 void showItem( TQIconViewItem *item );
141
142
143protected slots:
157 void queueSearch( const TQString &s );
158
167 void activateSearch();
168
169
170private slots:
174 void iconViewDeleted();
175
176
177private:
178 class TDEIconViewSearchLinePrivate;
179 TDEIconViewSearchLinePrivate *d;
180};
181
182
183#endif /* KICONVIEWSEARCHLINE_H */
KLineEdit
An enhanced TQLineEdit widget for inputting text.
Definition: klineedit.h:146
KLineEdit::clear
virtual void clear()
Reimplemented to workaround a buggy TQLineEdit::clear() (changing the clipboard to the text we just h...
Definition: klineedit.cpp:1320
TDEIconViewSearchLine
This class makes it easy to add a search line for filtering the items in a iconview based on a simple...
Definition: kiconviewsearchline.h:39

tdeui

Skip menu "tdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeui

Skip menu "tdeui"
  • 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 tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.