kexi
kexifinddialog.h
00001 /* This file is part of the KDE project 00002 Copyright (C) 2004-2007 Jaroslaw Staniek <js@iidea.pl> 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 as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 * Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #ifndef KEXIFINDDIALOG_H 00021 #define KEXIFINDDIALOG_H 00022 00023 #include "kexifinddialogbase.h" 00024 #include <core/kexisearchandreplaceiface.h> 00025 00026 class KAction; 00027 00029 00034 class KexiFindDialog : public KexiFindDialogBase 00035 { 00036 Q_OBJECT 00037 public: 00039 KexiFindDialog(QWidget* parent); 00040 virtual ~KexiFindDialog(); 00041 00043 void setActions( KAction *findnext, KAction *findprev, 00044 KAction *replace, KAction *replaceall ); 00045 00047 virtual void show(); 00048 00051 KexiSearchAndReplaceViewInterface::Options options() const; 00052 00055 QStringList lookInColumnNames() const; 00056 00059 QStringList lookInColumnCaptions() const; 00060 00064 QString currentLookInColumnName() const; 00065 00067 QVariant valueToFind() const; 00068 00070 QVariant valueToReplaceWith() const; 00071 00072 public slots: 00077 void setLookInColumnList(const QStringList& columnNames, 00078 const QStringList& columnCaptions); 00079 00085 void setCurrentLookInColumnName(const QString& columnName); 00086 00089 void setReplaceMode(bool set); 00090 00093 void setObjectNameForCaption(const QString& name); 00094 00099 void setButtonsEnabled(bool enable); 00100 00102 void setMessage(const QString& message); 00103 00106 00107 void updateMessage( bool found = true ); 00108 00109 signals: 00111 void findNext(); 00112 00114 void findPrevious(); 00115 00117 void replaceNext(); 00118 00120 void replaceAll(); 00121 00122 protected slots: 00123 void slotCloseClicked(); 00124 00125 protected: 00126 class Private; 00127 Private * const d; 00128 }; 00129 00130 #endif