• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kviewshell

searchWidget.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /***************************************************************************
00003  *   Copyright (C) 2005 by Wilfried Huss                                   *
00004  *   Wilfried.Huss@gmx.at                                                  *
00005  *                                                                         *
00006  *   This program is free software; you can redistribute it and/or modify  *
00007  *   it under the terms of the GNU General Public License as published by  *
00008  *   the Free Software Foundation; either version 2 of the License, or     *
00009  *   (at your option) any later version.                                   *
00010  *                                                                         *
00011  *   This program is distributed in the hope that it will be useful,       *
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00014  *   GNU General Public License for more details.                          *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU General Public License     *
00017  *   along with this program; if not, write to the                         *
00018  *   Free Software Foundation, Inc.,                                       *
00019  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.             *
00020  ***************************************************************************/
00021 
00022 #ifndef SEARCHWIDGET_H
00023 #define SEARCHWIDGET_H
00024 
00025 #include <qwidget.h>
00026 
00027 class QHBoxLayout;
00028 class QLabel;
00029 class KLineEdit;
00030 class QPushButton;
00031 class QCheckBox;
00032 class QString;
00033 
00034 class SearchWidget : public QWidget
00035 {
00036   Q_OBJECT
00037 
00038 public:
00039   SearchWidget(QWidget* parent = 0, const char* name = 0, WFlags fl = 0);
00040   ~SearchWidget();
00041 
00042   QString getText() const;
00043   bool caseSensitive() const;
00044 
00045 public slots:
00046   virtual void setFocus();
00047   virtual void show();
00048   virtual void hide();
00049 
00050 signals:
00051   void findNextText();
00052   void findPrevText();
00053   void searchEnabled(bool);
00054   void stopSearch();
00055 
00056 protected:
00057   virtual void keyPressEvent(QKeyEvent*);
00058 
00059 private slots:
00060   void textChanged();
00061 
00062 private:
00063   QPushButton* stopButton;
00064   QLabel* searchLabel;
00065   KLineEdit* searchText;
00066   QPushButton* findNextButton;
00067   QPushButton* findPrevButton;
00068   QCheckBox* caseSensitiveCheckBox;
00069 
00070   QHBoxLayout* layout;
00071 };
00072 
00073 #endif

kviewshell

Skip menu "kviewshell"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kviewshell
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal