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

tdeui

  • tdeui
tdelistviewsearchline.h
1/* This file is part of the KDE libraries
2 Copyright (c) 2003 Scott Wheeler <wheeler@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 version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
17*/
18
19#ifndef TDELISTVIEWSEARCHLINE_H
20#define TDELISTVIEWSEARCHLINE_H
21
22#include <klineedit.h>
23#include <tqhbox.h>
24
25class TDEListView;
26class TQListViewItem;
27class TQToolButton;
28
47class TDEUI_EXPORT TDEListViewSearchLine : public KLineEdit
48{
49 TQ_OBJECT
50
51public:
52
60 TDEListViewSearchLine(TQWidget *parent = 0, TDEListView *listView = 0, const char *name = 0);
61
66 TDEListViewSearchLine(TQWidget *parent, const char *name);
67
71 virtual ~TDEListViewSearchLine();
72
78 bool caseSensitive() const;
79
86 TQValueList<int> searchColumns() const;
87
94 bool keepParentsVisible() const;
95
101 TDEListView *listView() const;
102
103public slots:
108 virtual void updateSearch(const TQString &s = TQString::null);
109
115 void setCaseSensitive(bool cs);
116
127 void setKeepParentsVisible(bool v);
128
136 void setSearchColumns(const TQValueList<int> &columns);
137
144 void setListView(TDEListView *lv);
145
146protected:
147
153 virtual bool itemMatches(const TQListViewItem *item, const TQString &s) const;
154
160 virtual TQPopupMenu *createPopupMenu();
161
162protected slots:
176 void queueSearch(const TQString &search);
177
186 void activateSearch();
187
188private:
189
194 void checkItemParentsNotVisible();
195
201 bool checkItemParentsVisible(TQListViewItem *item, TQListViewItem *highestHiddenParent = 0);
202
203private slots:
204 void itemAdded(TQListViewItem *item) const;
205 void listViewDeleted();
206 void searchColumnsMenuActivated(int);
207
208private:
209 class TDEListViewSearchLinePrivate;
210 TDEListViewSearchLinePrivate *d;
211};
212
219class TDEUI_EXPORT TDEListViewSearchLineWidget : public TQHBox
220{
221 TQ_OBJECT
222
223public:
228 TDEListViewSearchLineWidget(TDEListView *listView = 0, TQWidget *parent = 0,
229 const char *name = 0);
230
234 ~TDEListViewSearchLineWidget();
235
240 virtual TDEListViewSearchLine *createSearchLine(TDEListView *listView);
241
245 TDEListViewSearchLine *searchLine() const;
246
247protected slots:
254 virtual void createWidgets();
255
256private slots:
257 void positionInToolBar();
258
259private:
260 class TDEListViewSearchLineWidgetPrivate;
261 TDEListViewSearchLineWidgetPrivate *d;
262};
263
264#endif
KLineEdit
An enhanced TQLineEdit widget for inputting text.
Definition: klineedit.h:146
KLineEdit::createPopupMenu
virtual TQPopupMenu * createPopupMenu()
Re-implemented for internal reasons.
Definition: klineedit.cpp:862
TDEListViewSearchLineWidget
Creates a widget featuring a TDEListViewSearchLine, a label with the text "Search" and a button to cl...
Definition: tdelistviewsearchline.h:220
TDEListViewSearchLine
This class makes it easy to add a search line for filtering the items in a listview based on a simple...
Definition: tdelistviewsearchline.h:48
TDEListView
This Widget extends the functionality of TQListView to honor the system wide settings for Single Clic...
Definition: tdelistview.h:85

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.