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

messageviewer

  • sources
  • kde-4.14
  • kdepim
  • messageviewer
  • findbar
findbarbase.h
Go to the documentation of this file.
1 /* Copyright (C) 2010 Torgny Nyblom <nyblom@kde.org>
2  * Copyright (C) 2010-2015 Laurent Montel <montel@kde.org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public License
15  * along with this library; see the file COPYING.LIB. If not, write to
16  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef FINDBARBASE_H
21 #define FINDBARBASE_H
22 
23 #include <QWidget>
24 
25 class QAction;
26 class QPushButton;
27 class QMenu;
28 class QLabel;
29 namespace PimCommon {
30 class LineEditWithCompleter;
31 }
32 namespace MessageViewer
33 {
34 class FindBarBase : public QWidget
35 {
36  Q_OBJECT
37 public:
38  explicit FindBarBase( QWidget * parent = 0 );
39  virtual ~FindBarBase();
40 
41  QString text() const;
42  void setText( const QString&text );
43  void focusAndSetCursor();
44 
45 protected:
46  virtual bool event(QEvent* e);
47  virtual void clearSelections();
48  virtual void updateHighLight(bool);
49  virtual void searchText( bool backward, bool isAutoSearch );
50  virtual void updateSensitivity( bool );
51 
52  void setFoundMatch( bool match );
53  QMenu *optionsMenu();
54 
55 public slots:
56  void findNext();
57  void findPrev();
58  void autoSearch( const QString& str );
59  void slotSearchText( bool backward = false, bool isAutoSearch = true );
60  void closeBar();
61 
62 Q_SIGNALS:
63  void hideFindBar();
64 
65 private slots:
66  void caseSensitivityChanged(bool);
67  void slotHighlightAllChanged(bool);
68  void slotClearSearch();
69 
70 protected:
71  QString mNotFoundString;
72  QString mPositiveBackground;
73  QString mNegativeBackground;
74  QString mLastSearchStr;
75  PimCommon::LineEditWithCompleter *mSearch;
76  QAction *mCaseSensitiveAct;
77 
78  QPushButton *mFindPrevBtn;
79  QPushButton *mFindNextBtn;
80  QMenu *mOptionsMenu;
81  QLabel *mStatus;
82  void addToCompletion(const QString &text);
83 };
84 
85 }
86 
87 #endif /* FINDBARBASE_H */
88 
MessageViewer::FindBarBase::updateSensitivity
virtual void updateSensitivity(bool)
Definition: findbarbase.cpp:210
QEvent
QWidget
MessageViewer::FindBarBase::searchText
virtual void searchText(bool backward, bool isAutoSearch)
Definition: findbarbase.cpp:181
MessageViewer::FindBarBase::addToCompletion
void addToCompletion(const QString &text)
Definition: findbarbase.cpp:187
MessageViewer::FindBarBase
Definition: findbarbase.h:34
MessageViewer::FindBarBase::clearSelections
virtual void clearSelections()
Definition: findbarbase.cpp:223
MessageViewer::FindBarBase::autoSearch
void autoSearch(const QString &str)
Definition: findbarbase.cpp:140
MessageViewer::FindBarBase::setFoundMatch
void setFoundMatch(bool match)
Definition: findbarbase.cpp:156
MessageViewer::FindBarBase::closeBar
void closeBar()
Definition: findbarbase.cpp:228
MessageViewer::FindBarBase::findPrev
void findPrev()
Definition: findbarbase.cpp:199
MessageViewer::FindBarBase::mLastSearchStr
QString mLastSearchStr
Definition: findbarbase.h:74
MessageViewer::FindBarBase::hideFindBar
void hideFindBar()
MessageViewer::FindBarBase::slotSearchText
void slotSearchText(bool backward=false, bool isAutoSearch=true)
Definition: findbarbase.cpp:151
MessageViewer::FindBarBase::event
virtual bool event(QEvent *e)
Definition: findbarbase.cpp:237
MessageViewer::FindBarBase::~FindBarBase
virtual ~FindBarBase()
Definition: findbarbase.cpp:108
MessageViewer::FindBarBase::mNegativeBackground
QString mNegativeBackground
Definition: findbarbase.h:73
MessageViewer::FindBarBase::FindBarBase
FindBarBase(QWidget *parent=0)
Definition: findbarbase.cpp:39
MessageViewer::FindBarBase::mFindPrevBtn
QPushButton * mFindPrevBtn
Definition: findbarbase.h:78
MessageViewer::FindBarBase::mPositiveBackground
QString mPositiveBackground
Definition: findbarbase.h:72
MessageViewer::FindBarBase::mNotFoundString
QString mNotFoundString
Definition: findbarbase.h:71
MessageViewer::FindBarBase::mStatus
QLabel * mStatus
Definition: findbarbase.h:81
MessageViewer::FindBarBase::mSearch
PimCommon::LineEditWithCompleter * mSearch
Definition: findbarbase.h:75
MessageViewer::FindBarBase::mFindNextBtn
QPushButton * mFindNextBtn
Definition: findbarbase.h:79
QString
QMenu
MessageViewer::FindBarBase::setText
void setText(const QString &text)
Definition: findbarbase.cpp:122
MessageViewer::FindBarBase::mOptionsMenu
QMenu * mOptionsMenu
Definition: findbarbase.h:80
QAction
MessageViewer::FindBarBase::mCaseSensitiveAct
QAction * mCaseSensitiveAct
Definition: findbarbase.h:76
QPushButton
MessageViewer::FindBarBase::findNext
void findNext()
Definition: findbarbase.cpp:193
MessageViewer::FindBarBase::optionsMenu
QMenu * optionsMenu()
Definition: findbarbase.cpp:112
QLabel
QObject::parent
QObject * parent() const
MessageViewer::FindBarBase::focusAndSetCursor
void focusAndSetCursor()
Definition: findbarbase.cpp:127
MessageViewer::FindBarBase::text
QString text() const
Definition: findbarbase.cpp:117
MessageViewer::FindBarBase::updateHighLight
virtual void updateHighLight(bool)
Definition: findbarbase.cpp:219
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

messageviewer

Skip menu "messageviewer"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

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