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

KDEUI

kfinddialog.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2001, S.R.Haque <srhaque@iee.org>.
00003     Copyright (C) 2002, David Faure <david@mandrakesoft.com>
00004     This file is part of the KDE project
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License version 2, as published by the Free Software Foundation.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KFINDDIALOG_H
00022 #define KFINDDIALOG_H
00023 
00024 #include <kdialog.h>
00025 
00065 class KDEUI_EXPORT KFindDialog:
00066     public KDialog
00067 {
00068     Q_OBJECT
00069 
00070 public:
00071 
00072 
00081     explicit KFindDialog( QWidget *parent = 0, long options = 0,
00082                  const QStringList &findStrings = QStringList(), bool hasSelection = false, bool replaceDialog = false );
00083 
00087     virtual ~KFindDialog();
00088 
00097     void setFindHistory( const QStringList &history );
00098 
00104     QStringList findHistory() const;
00105 
00112     void setHasSelection( bool hasSelection );
00113 
00121     void setHasCursor( bool hasCursor );
00122 
00130     void setSupportsBackwardsFind( bool supports );
00131 
00139     void setSupportsCaseSensitiveFind( bool supports );
00140 
00148     void setSupportsWholeWordsFind( bool supports );
00149 
00157     void setSupportsRegularExpressionFind( bool supports );
00158 
00167     void setOptions( long options );
00168 
00176     long options() const;
00177 
00181     QString pattern() const;
00182 
00186     void setPattern ( const QString &pattern );
00187 
00194     QWidget *findExtension() const;
00195 
00196 Q_SIGNALS:
00201      void optionsChanged();
00202 
00203 protected:
00204     virtual void showEvent ( QShowEvent * );
00205 
00206 private:
00207     friend class KReplaceDialog;
00208     friend class KReplaceDialogPrivate;
00209     class KFindDialogPrivate;
00210     KFindDialogPrivate* const d;
00211 
00212     Q_PRIVATE_SLOT( d, void _k_slotPlaceholdersAboutToShow() )
00213     Q_PRIVATE_SLOT( d, void _k_slotOk() )
00214     Q_PRIVATE_SLOT( d, void _k_slotSelectedTextToggled(bool) )
00215     Q_PRIVATE_SLOT( d, void _k_showPatterns() )
00216     Q_PRIVATE_SLOT( d, void _k_showPlaceholders() )
00217     Q_PRIVATE_SLOT( d, void _k_textSearchChanged(const QString&) )
00218 };
00219 
00220 #endif // KFINDDIALOG_H

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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