• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kalarm

find.h

Go to the documentation of this file.
00001 /*
00002  *  find.h  -  search facility
00003  *  Program:  kalarm
00004  *  Copyright © 2005-2008 by David Jarvie <djarvie@kde.org>
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License along
00017  *  with this program; if not, write to the Free Software Foundation, Inc.,
00018  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019  */
00020 
00021 #ifndef FIND_H
00022 #define FIND_H
00023 
00024 #include <QObject>
00025 #include <QPointer>
00026 #include <QStringList>
00027 #include <QModelIndex>
00028 
00029 class QCheckBox;
00030 class FindDlg;
00031 class KFind;
00032 class KSeparator;
00033 class EventListView;
00034 
00035 
00036 class Find : public QObject
00037 {
00038         Q_OBJECT
00039     public:
00040         explicit Find(EventListView* parent);
00041         ~Find();
00042         void        display();
00043         void        findNext(bool forward)     { findNext(forward, false, false); }
00044 
00045     signals:
00046         void        active(bool);
00047 
00048     private slots:
00049         void        slotFind();
00050         void        slotKFindDestroyed()       { emit active(false); }
00051         void        slotSelectionChanged();
00052 
00053     private:
00054         void        findNext(bool forward, bool checkEnd, bool fromCurrent);
00055         QModelIndex nextItem(const QModelIndex&, bool forward) const;
00056 
00057         EventListView* mListView;        // parent list view
00058         QPointer<FindDlg> mDialog;
00059         QCheckBox*         mArchived;
00060         QCheckBox*         mLive;
00061         KSeparator*        mActiveArchivedSep;
00062         QCheckBox*         mMessageType;
00063         QCheckBox*         mFileType;
00064         QCheckBox*         mCommandType;
00065         QCheckBox*         mEmailType;
00066         KFind*             mFind;
00067         QStringList        mHistory;         // list of history items for Find dialog
00068         QString            mLastPattern;     // pattern used in last search
00069         QString            mStartID;         // ID of first alarm searched if 'from cursor' was selected
00070         long               mOptions;         // OR of find dialog options
00071         bool               mNoCurrentItem;   // there is no current item for the purposes of searching
00072         bool               mFound;           // true if any matches have been found
00073 };
00074 
00075 #endif // FIND_H
00076 

kalarm

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

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal