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

kalarm

  • sources
  • kde-4.14
  • kdepim
  • kalarm
find.h
Go to the documentation of this file.
1 /*
2  * find.h - search facility
3  * Program: kalarm
4  * Copyright © 2005-2009 by David Jarvie <djarvie@kde.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef FIND_H
22 #define FIND_H
23 
24 #include <QObject>
25 #include <QPointer>
26 #include <QStringList>
27 #include <QModelIndex>
28 
29 class QCheckBox;
30 class FindDlg;
31 class KFind;
32 class KSeparator;
33 class EventListView;
34 
35 
36 class Find : public QObject
37 {
38  Q_OBJECT
39  public:
40  explicit Find(EventListView* parent);
41  ~Find();
42  void display();
43  void findNext(bool forward) { findNext(forward, false, false); }
44 
45  signals:
46  void active(bool);
47 
48  private slots:
49  void slotFind();
50  void slotKFindDestroyed() { emit active(false); }
51  void slotSelectionChanged();
52 
53  private:
54  void findNext(bool forward, bool checkEnd, bool fromCurrent);
55  QModelIndex nextItem(const QModelIndex&, bool forward) const;
56 
57  EventListView* mListView; // parent list view
58  QPointer<FindDlg> mDialog;
59  QCheckBox* mArchived;
60  QCheckBox* mLive;
61  KSeparator* mActiveArchivedSep;
62  QCheckBox* mMessageType;
63  QCheckBox* mFileType;
64  QCheckBox* mCommandType;
65  QCheckBox* mEmailType;
66  QCheckBox* mAudioType;
67  KFind* mFind;
68  QStringList mHistory; // list of history items for Find dialog
69  QString mLastPattern; // pattern used in last search
70  QString mStartID; // ID of first alarm searched if 'from cursor' was selected
71  long mOptions; // OR of find dialog options
72  bool mNoCurrentItem; // there is no current item for the purposes of searching
73  bool mFound; // true if any matches have been found
74 };
75 
76 #endif // FIND_H
77 
78 // vim: et sw=4:
QModelIndex
EventListView
Definition: eventlistview.h:37
Find::~Find
~Find()
Definition: find.cpp:89
QPointer< FindDlg >
Find
Definition: find.h:36
QObject
QCheckBox
QString
QStringList
Find::Find
Find(EventListView *parent)
Definition: find.cpp:78
Find::active
void active(bool)
Find::display
void display()
Definition: find.cpp:105
QObject::parent
QObject * parent() const
Find::findNext
void findNext(bool forward)
Definition: find.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kalarm

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal