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

mailcommon

  • sources
  • kde-4.12
  • kdepim
  • mailcommon
  • widgets
regexplineedit.h
Go to the documentation of this file.
1 /* -*- mode: C++; c-file-style: "gnu" -*-
2 
3  Copyright (c) 2004 Ingo Kloecker <kloecker@kde.org>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful, but
11  WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 
19  In addition, as a special exception, the copyright holders give
20  permission to link the code of this program with any edition of
21  the Qt library by Trolltech AS, Norway (or with modified versions
22  of Qt that use the same license as Qt), and distribute linked
23  combinations including the two. You must obey the GNU General
24  Public License in all respects for all of the code used other than
25  Qt. If you modify this file, you may extend this exception to
26  your version of the file, but you are not obligated to do so. If
27  you do not wish to do so, delete this exception statement from
28  your version.
29 */
30 
31 #ifndef MAILCOMMON_REGEXPLINEEDIT_H
32 #define MAILCOMMON_REGEXPLINEEDIT_H
33 
34 #include "mailcommon_export.h"
35 
36 #include <QWidget>
37 
38 class KDialog;
39 class KLineEdit;
40 
41 class QPushButton;
42 class QString;
43 
44 namespace MailCommon {
45 
46 class MAILCOMMON_EXPORT RegExpLineEdit : public QWidget
47 {
48  Q_OBJECT
49 
50 public:
51  explicit RegExpLineEdit( const QString &str, QWidget *parent = 0 );
52  explicit RegExpLineEdit( QWidget *parent = 0 );
53 
54  QString text() const;
55 
56 public slots:
57  void clear();
58  void setText( const QString & );
59  void showEditButton( bool );
60 
61 signals:
62  void textChanged( const QString & );
63  void returnPressed();
64 
65 protected slots:
66  void slotEditRegExp();
67 
68 private:
69  void initWidget( const QString & = QString() );
70 
71  KLineEdit *mLineEdit;
72  QPushButton *mRegExpEditButton;
73  KDialog *mRegExpEditDialog;
74 };
75 
76 }
77 
78 #endif
text
const char * text
Definition: mdnadvicedialog.cpp:52
QWidget
MailCommon::RegExpLineEdit
Definition: regexplineedit.h:46
KDialog
mailcommon_export.h
MAILCOMMON_EXPORT
#define MAILCOMMON_EXPORT
Definition: mailcommon_export.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailcommon

Skip menu "mailcommon"
  • 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

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