kexi

kexifinddialog.h
1/* This file is part of the KDE project
2 Copyright (C) 2004-2007 Jaroslaw Staniek <js@iidea.pl>
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 as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KEXIFINDDIALOG_H
21#define KEXIFINDDIALOG_H
22
23#include "kexifinddialogbase.h"
24#include <core/kexisearchandreplaceiface.h>
25
26class TDEAction;
27
29
34class KexiFindDialog : public KexiFindDialogBase
35{
36 TQ_OBJECT
37
38 public:
40 KexiFindDialog(TQWidget* parent);
41 virtual ~KexiFindDialog();
42
44 void setActions( TDEAction *findnext, TDEAction *findprev,
45 TDEAction *replace, TDEAction *replaceall );
46
48 virtual void show();
49
53
56 TQStringList lookInColumnNames() const;
57
60 TQStringList lookInColumnCaptions() const;
61
65 TQString currentLookInColumnName() const;
66
68 TQVariant valueToFind() const;
69
71 TQVariant valueToReplaceWith() const;
72
73 public slots:
78 void setLookInColumnList(const TQStringList& columnNames,
79 const TQStringList& columnCaptions);
80
86 void setCurrentLookInColumnName(const TQString& columnName);
87
90 void setReplaceMode(bool set);
91
94 void setObjectNameForCaption(const TQString& name);
95
100 void setButtonsEnabled(bool enable);
101
103 void setMessage(const TQString& message);
104
108 void updateMessage( bool found = true );
109
110 signals:
112 void findNext();
113
116
119
122
123 protected slots:
124 void slotCloseClicked();
125
126 protected:
127 class Private;
128 Private * const d;
129};
130
131#endif
A Kexi-specific "Find text" dialog.
void setCurrentLookInColumnName(const TQString &columnName)
void setActions(TDEAction *findnext, TDEAction *findprev, TDEAction *replace, TDEAction *replaceall)
Sets actions that receive button clicks and shortcuts within the dialog. Should be called once.
void setObjectNameForCaption(const TQString &name)
void updateMessage(bool found=true)
TQVariant valueToFind() const
void replaceAll()
Emitted after clicking "Replace All" button or pressing appropriate shortcut set by setActions()
TQStringList lookInColumnCaptions() const
void replaceNext()
Emitted after clicking "Replace" button or pressing appropriate shortcut set by setActions()
TQVariant valueToReplaceWith() const
void setMessage(const TQString &message)
TQStringList lookInColumnNames() const
void findNext()
Emitted after clicking "Find next" button or pressing appropriate shortcut set by setActions()
void findPrevious()
Emitted after pressing appropriate shortcut set by setActions()
virtual void show()
Shows the dialog as a modal dialog.
void setButtonsEnabled(bool enable)
TQString currentLookInColumnName() const
void setReplaceMode(bool set)
KexiSearchAndReplaceViewInterface::Options options() const
void setLookInColumnList(const TQStringList &columnNames, const TQStringList &columnCaptions)
Specifies options for find and replace operations.