Qucs-GUI  0.0.19
/home/travis/build/Qucs/qucs/qucs/qucs/dialogs/searchdialog.h
Go to the documentation of this file.
00001 /*
00002  * searchdialog.h - declaration of search dialog
00003  *
00004  * Copyright (C) 2006, Michael Margraf, michael.margraf@alumni.tu-berlin.de
00005  * Copyright (C) 2014, Yodalee, lc85301@gmail.com
00006  *
00007  * This file is part of Qucs
00008  *
00009  * Qucs is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2, or (at your option)
00012  * any later version.
00013  *
00014  * This software is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with Qucs.  If not, see <http://www.gnu.org/licenses/>.
00021  *
00022  */
00023 
00024 #ifndef SEARCHDIALOG_H
00025 #define SEARCHDIALOG_H
00026 
00027 #include <QDialog>
00028 
00029 namespace Ui {
00030   class SearchDialog;
00031 }
00032 
00033 class SearchDialog : public QDialog
00034 {
00035   Q_OBJECT
00036 
00037 public:
00038   SearchDialog(QWidget *);
00039  ~SearchDialog();
00040 
00041   void initSearch(QWidget *doc, const QString &text, bool replace=false);
00042 
00043 signals:
00044   void search(const QString &str, bool CaseSensitive, bool wordOnly, bool backward);
00045   void replace(const QString &str, const QString &str2, bool needConfirmed,
00046                bool CaseSensitive, bool wordOnly, bool backward);
00047 
00048 private slots:
00049   void slotSearch();
00050   void slotDisconnect();
00051 
00052 private:
00053   Ui::SearchDialog *ui;
00054   QWidget *doc;
00055 };
00056 
00057 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines