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

tdeui

tdelistviewsearchline.h

00001 /* This file is part of the KDE libraries
00002    Copyright (c) 2003 Scott Wheeler <wheeler@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef TDELISTVIEWSEARCHLINE_H
00020 #define TDELISTVIEWSEARCHLINE_H
00021 
00022 #include <klineedit.h>
00023 #include <tqhbox.h>
00024 
00025 class TDEListView;
00026 class TQListViewItem;
00027 class TQToolButton;
00028 
00047 class TDEUI_EXPORT TDEListViewSearchLine : public KLineEdit
00048 {
00049     Q_OBJECT
00050 
00051 public:
00052 
00060     TDEListViewSearchLine(TQWidget *parent = 0, TDEListView *listView = 0, const char *name = 0);
00061 
00066     TDEListViewSearchLine(TQWidget *parent, const char *name);
00067 
00071     virtual ~TDEListViewSearchLine();
00072 
00078     bool caseSensitive() const;
00079 
00086     TQValueList<int> searchColumns() const;
00087 
00094     bool keepParentsVisible() const;
00095 
00101     TDEListView *listView() const;
00102 
00103 public slots:
00108     virtual void updateSearch(const TQString &s = TQString::null);
00109 
00115     void setCaseSensitive(bool cs);
00116 
00127     void setKeepParentsVisible(bool v);
00128 
00136     void setSearchColumns(const TQValueList<int> &columns);
00137 
00144     void setListView(TDEListView *lv);
00145 
00146 protected:
00147 
00153     virtual bool itemMatches(const TQListViewItem *item, const TQString &s) const;
00154 
00160     virtual TQPopupMenu *createPopupMenu();
00161 
00162 protected slots:
00176     void queueSearch(const TQString &search);
00177 
00186     void activateSearch();
00187 
00188 private:
00189 
00194     void checkItemParentsNotVisible();
00195 
00201     bool checkItemParentsVisible(TQListViewItem *item, TQListViewItem *highestHiddenParent = 0);
00202 
00203 private slots:
00204     void itemAdded(TQListViewItem *item) const;
00205     void listViewDeleted();
00206     void searchColumnsMenuActivated(int);
00207 
00208 private:
00209     class TDEListViewSearchLinePrivate;
00210     TDEListViewSearchLinePrivate *d;
00211 };
00212 
00219 class TDEUI_EXPORT TDEListViewSearchLineWidget : public TQHBox
00220 {
00221     Q_OBJECT
00222 
00223 public:
00228     TDEListViewSearchLineWidget(TDEListView *listView = 0, TQWidget *parent = 0,
00229                               const char *name = 0);
00230 
00234     ~TDEListViewSearchLineWidget();
00235 
00240     virtual TDEListViewSearchLine *createSearchLine(TDEListView *listView);
00241 
00245     TDEListViewSearchLine *searchLine() const;
00246 
00247 protected slots:
00254     virtual void createWidgets();
00255 
00256 private slots:
00257     void positionInToolBar();
00258 
00259 private:
00260     class TDEListViewSearchLineWidgetPrivate;
00261     TDEListViewSearchLineWidgetPrivate *d;
00262 };
00263 
00264 #endif

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