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

kate

  • kate
  • app
kategrepdialog.h
1/* This file is part of the KDE project
2 Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
3 Copyright (C) 2001 Joseph Wenninger <jowenn@kde.org>
4 Copyright (C) 2001 Anders Lund <anders.lund@lund.tdcadsl.dk>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License version 2 as published by the Free Software Foundation.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20
21#ifndef _GREPDIALOG_H_
22#define _GREPDIALOG_H_
23
24#include <kdialog.h>
25#include <tqstringlist.h>
26
27class TQLineEdit;
28class KComboBox;
29class TQCheckBox;
30class TQListBox;
31class KPushButton;
32class TQLabel;
33class TDEProcess;
34class TDEConfig;
35class KURLRequester;
36class TQEvent;
37
38class GrepTool : public TQWidget
39{
40 TQ_OBJECT
41
42public:
43 GrepTool(TQWidget *parent, const char *name=0);
44 ~GrepTool();
45
46 // only updates if the dir you give to it differs from the last one given to it !
47 void updateDirName(const TQString &);
48
49 void setDirName(const TQString &);
50
51
52signals:
53 void itemSelected(const TQString &abs_filename, int line);
54
55public slots:
56 void slotSearchFor(const TQString &pattern);
57
58protected:
59 bool eventFilter( TQObject *, TQEvent * );
60 void focusInEvent ( TQFocusEvent * );
61 void showEvent( TQShowEvent * );
62 bool m_fixFocus;
63
64private slots:
65 void templateActivated(int index);
66 void childExited();
67 void receivedOutput(TDEProcess *proc, char *buffer, int buflen);
68 void receivedErrOutput(TDEProcess *proc, char *buffer, int buflen);
69 void itemSelected(const TQString&);
70 void slotSearch();
71 void slotCancel();
72 void slotClear();
73 void patternTextChanged( const TQString &);
74private:
75 void processOutput();
76 void finish();
77
78 TQLineEdit *leTemplate;
79 KComboBox *cmbFiles, *cmbPattern;
80 KURLRequester *cmbDir;
81 TQCheckBox *cbRecursive;
82 TQCheckBox *cbCasesensitive;
83 TQCheckBox *cbRegex;
84 TQCheckBox *cbHideErrors;
85 TQListBox *lbResult;
86 KPushButton *btnSearch, *btnClear;
87 TDEProcess *childproc;
88 TQString buf;
89 TQString errbuf;
90 TDEConfig* config;
91 TQStringList lastSearchItems;
92 TQStringList lastSearchPaths;
93 TQStringList lastSearchFiles;
94 TQString m_lastUpdatedDir;
95 TQString m_workingDir;
96};
97
98
99#endif

kate

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

kate

Skip menu "kate"
  • kate
  • libkonq
  • twin
  •   lib
Generated for kate by doxygen 1.9.4
This website is maintained by Timothy Pearson.