Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

searchbar.h

Go to the documentation of this file.
00001 /*
00002 Dagger - A Bible study program utilizing the Sword library.
00003 Copyright (c) 2004 Dan Williams <drw@handhelds.org>
00004 
00005 This file is free software; you can redistribute it and/or modify it under
00006 the terms of the GNU General Public License as published by the Free Software
00007 Foundation; either version 2 of the License, or (at your option) any later version.
00008 
00009 This file is distributed in the hope that it will be useful, but WITHOUT ANY
00010 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
00011 PARTICULAR PURPOSE. See the GNU General Public License for more details.
00012 
00013 You should have received a copy of the GNU General Public License along with this
00014 file; see the file COPYING. If not, write to the Free Software Foundation, Inc.,
00015 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00016 */
00017 
00018 #ifndef SEARCHBAR_H
00019 #define SEARCHBAR_H
00020 
00021 #include <qtoolbar.h>
00022 
00023 class QAction;
00024 class QComboBox;
00025 class QLineEdit;
00026 class TextWidget;
00027 
00028 class SearchBar : public QToolBar
00029 {
00030     Q_OBJECT
00031 
00032 public:
00033     SearchBar( QMainWindow *parent = 0x0 );
00034 
00035     void setCurrModule( TextWidget *currText );
00036 
00037 private:
00038     TextWidget *m_currText;  // Pointer to current text
00039 
00040     QLineEdit *m_searchText; // Edit box to enter text to search for
00041     QAction   *m_actionFind; // Button to press to initiate search
00042     QAction   *m_actionPrev; // Button to view previous search result
00043     QComboBox *m_resultList; // List of results
00044     QAction   *m_actionNext; // Button to view next search result
00045 
00046 private slots:
00047     void slotTextChanged( const QString &newText );
00048     void slotFind();
00049     void slotPrev();
00050     void slotNext();
00051     void slotCloseBtn();
00052 
00053 signals:
00054     void sigResultClicked( const QString &key );
00055 };
00056 
00057 #endif

Generated on Sat Nov 5 16:16:48 2005 for OPIE by  doxygen 1.4.2