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

kdeui

  • kdeui
klistviewsearchline.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 KLISTVIEWSEARCHLINE_H
20 #define KLISTVIEWSEARCHLINE_H
21 
22 #include <klineedit.h>
23 #include <tqhbox.h>
24 
25 class KListView;
26 class TQListViewItem;
27 class TQToolButton;
28 
47 class KDEUI_EXPORT KListViewSearchLine : public KLineEdit
48 {
49  Q_OBJECT
50 
51 public:
52 
60  KListViewSearchLine(TQWidget *parent = 0, KListView *listView = 0, const char *name = 0);
61 
66  KListViewSearchLine(TQWidget *parent, const char *name);
67 
71  virtual ~KListViewSearchLine();
72 
78  bool caseSensitive() const;
79 
86  TQValueList<int> searchColumns() const;
87 
94  bool keepParentsVisible() const;
95 
101  KListView *listView() const;
102 
103 public 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(KListView *lv);
145 
146 protected:
147 
153  virtual bool itemMatches(const TQListViewItem *item, const TQString &s) const;
154 
160  virtual TQPopupMenu *createPopupMenu();
161 
162 protected slots:
176  void queueSearch(const TQString &search);
177 
186  void activateSearch();
187 
188 private:
189 
194  void checkItemParentsNotVisible();
195 
201  bool checkItemParentsVisible(TQListViewItem *item, TQListViewItem *highestHiddenParent = 0);
202 
203 private slots:
204  void itemAdded(TQListViewItem *item) const;
205  void listViewDeleted();
206  void searchColumnsMenuActivated(int);
207 
208 private:
209  class KListViewSearchLinePrivate;
210  KListViewSearchLinePrivate *d;
211 };
212 
219 class KDEUI_EXPORT KListViewSearchLineWidget : public TQHBox
220 {
221  Q_OBJECT
222 
223 public:
228  KListViewSearchLineWidget(KListView *listView = 0, TQWidget *parent = 0,
229  const char *name = 0);
230 
234  ~KListViewSearchLineWidget();
235 
240  virtual KListViewSearchLine *createSearchLine(KListView *listView);
241 
245  KListViewSearchLine *searchLine() const;
246 
247 protected slots:
254  virtual void createWidgets();
255 
256 private slots:
257  void positionInToolBar();
258 
259 private:
260  class KListViewSearchLineWidgetPrivate;
261  KListViewSearchLineWidgetPrivate *d;
262 };
263 
264 #endif

kdeui

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

kdeui

Skip menu "kdeui"
  • 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 kdeui by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |