KDevelop API Documentation

grepdlg.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 1999-2001 by Bernd Gehrmann and the KDevelop Team       *
00003  *   bernd@kdevelop.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  ***************************************************************************/
00011 
00012 #ifndef _GREPDLG_H_
00013 #define _GREPDLG_H_
00014 
00015 #define IGNORE_SCM_DIRS
00016 
00017 #include <qdialog.h>
00018 #include <qlineedit.h>
00019 #include <qcombobox.h>
00020 #include <qcheckbox.h>
00021 #include <kcombobox.h>
00022 
00023 
00024 class KConfig;
00025 class KURLRequester;
00026 class QPushButton;
00027 class GrepViewPart;
00028 
00029 class GrepDialog : public QDialog
00030 {
00031     Q_OBJECT
00032 
00033 public:
00034     GrepDialog( GrepViewPart * part, QWidget *parent=0, const char *name=0 );
00035     ~GrepDialog();
00036 
00037     void setPattern(const QString &pattern)
00038     { pattern_combo->setEditText(pattern); }
00039     void setDirectory(const QString &dir)
00040     { dir_combo->setEditText(dir); }
00041 
00042     QString patternString() const
00043     { return pattern_combo->currentText(); }
00044     QString templateString() const
00045     { return template_edit->text(); }
00046     QString filesString() const
00047     { return files_combo->currentText(); }
00048     QString directoryString() const
00049     { return dir_combo->currentText(); }
00050     bool recursiveFlag() const
00051     { return recursive_box->isChecked(); }
00052     void show();
00053 
00054     bool ignoreSCMDirsFlag() const
00055         { return ignore_scm_box->isChecked(); }
00056     bool caseSensitiveFlag() const
00057         { return case_sens_box->isChecked(); }
00058 
00059 signals:
00060     void searchClicked();
00061 
00062 private slots:
00063     void templateActivated(int index);
00064     void slotSearchClicked();
00065     void slotPatternChanged( const QString &);
00066     void slotSynchDirectory();
00067 
00068 private:
00069     QLineEdit *template_edit;
00070     QComboBox *pattern_combo, *files_combo;
00071     KComboBox * dir_combo;
00072     KURLRequester * url_requester;
00073 
00074     QCheckBox *recursive_box;
00075     QCheckBox *ignore_scm_box;
00076     QCheckBox *case_sens_box;
00077     KConfig* config;
00078     QPushButton *search_button;
00079     QPushButton *synch_button;
00080     GrepViewPart * m_part;
00081 };
00082 
00083 
00084 #endif
00085 
00086 
00087 
00088 
00089 
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:57 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003