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

okteta

  • sources
  • kde-4.12
  • kdesdk
  • okteta
  • kasten
  • controllers
  • view
  • libfinddialog
kabstractfinddialog.h
Go to the documentation of this file.
1 /*
2  This file is part of the Okteta Kasten module, made within the KDE community.
3 
4  Copyright 2006-2007,2009 Friedrich W. H. Kossebau <kossebau@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) version 3, or any
10  later version accepted by the membership of KDE e.V. (or its
11  successor approved by the membership of KDE e.V.), which shall
12  act as a proxy defined in Section 6 of version 3 of the license.
13 
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public
20  License along with this library. If not, see <http://www.gnu.org/licenses/>.
21 */
22 
23 #ifndef KABSTRACTFINDDIALOG_H
24 #define KABSTRACTFINDDIALOG_H
25 
26 // lib
27 #include "kfinddirection.h"
28 // KDE
29 #include <KDialog>
30 // Qt
31 #include <QtCore/QByteArray>
32 #include <QtCore/QString>
33 
34 namespace Okteta {
35 class ByteArrayComboBox;
36 }
37 
38 class QGroupBox;
39 class QCheckBox;
40 
41 
42 namespace Kasten2
43 {
44 
45 class KAbstractFindDialog : public KDialog
46 {
47  Q_OBJECT
48 
49  public:
50  explicit KAbstractFindDialog( QWidget* parent = 0 );
51  virtual ~KAbstractFindDialog();
52 
53  public: // set
54  void setDirection( KFindDirection Direction );
55  void setInSelection( bool InSelection );
56 
57  public: // get
58  QByteArray data() const;
59  bool fromCursor() const;
60  bool inSelection() const;
61  Qt::CaseSensitivity caseSensitivity() const;
62  KFindDirection direction() const;
63 
64  public Q_SLOTS:
65  void setCharCodec( const QString& codecName );
66 
67  protected: // QWidget API
68  virtual void showEvent( QShowEvent *e );
69 
70  protected:
71  void setupFindBox();
72  void setupOperationBox( QGroupBox *operationBox = 0 );
73  void setupCheckBoxes( QCheckBox *optionCheckBox = 0 );
74 
75  protected:
76  virtual void rememberCurrentSettings();
77 
78  private Q_SLOTS:
79  void onSearchDataChanged( const QByteArray &ata );
80  void onSearchDataFormatChanged( int Format );
81 
82  private:
83  Okteta::ByteArrayComboBox* SearchDataEdit;
84  QCheckBox *BackwardsCheckBox;
85  QCheckBox *AtCursorCheckBox;
86  QCheckBox *SelectedCheckBox;
87  QCheckBox *WholeWordsCheckBox;
88  QCheckBox *CaseSensitiveCheckBox;
89 };
90 
91 }
92 
93 #endif
Kasten2::KAbstractFindDialog::fromCursor
bool fromCursor() const
Definition: kabstractfinddialog.cpp:131
Kasten2::KAbstractFindDialog::showEvent
virtual void showEvent(QShowEvent *e)
Definition: kabstractfinddialog.cpp:181
QWidget
KDialog
kfinddirection.h
Kasten2::KAbstractFindDialog::setInSelection
void setInSelection(bool InSelection)
Definition: kabstractfinddialog.cpp:153
Kasten2::KAbstractFindDialog::inSelection
bool inSelection() const
Definition: kabstractfinddialog.cpp:132
Kasten2::KAbstractFindDialog::setCharCodec
void setCharCodec(const QString &codecName)
Definition: kabstractfinddialog.cpp:158
Kasten2::KAbstractFindDialog::setDirection
void setDirection(KFindDirection Direction)
Definition: kabstractfinddialog.cpp:148
Kasten2::KAbstractFindDialog::setupOperationBox
void setupOperationBox(QGroupBox *operationBox=0)
Definition: kabstractfinddialog.cpp:80
Kasten2::KAbstractFindDialog
Definition: kabstractfinddialog.h:45
Kasten2::KAbstractFindDialog::data
QByteArray data() const
Definition: kabstractfinddialog.cpp:143
Kasten2::KFindDirection
KFindDirection
Definition: kfinddirection.h:29
Kasten2::KAbstractFindDialog::~KAbstractFindDialog
virtual ~KAbstractFindDialog()
Definition: kabstractfinddialog.cpp:188
Okteta::ByteArrayComboBox
Definition: bytearraycombobox.h:40
Kasten2::KAbstractFindDialog::rememberCurrentSettings
virtual void rememberCurrentSettings()
Definition: kabstractfinddialog.cpp:163
Kasten2::KAbstractFindDialog::caseSensitivity
Qt::CaseSensitivity caseSensitivity() const
Definition: kabstractfinddialog.cpp:137
Kasten2::KAbstractFindDialog::direction
KFindDirection direction() const
Definition: kabstractfinddialog.cpp:133
Kasten2::KAbstractFindDialog::setupCheckBoxes
void setupCheckBoxes(QCheckBox *optionCheckBox=0)
Definition: kabstractfinddialog.cpp:89
Kasten2::KAbstractFindDialog::KAbstractFindDialog
KAbstractFindDialog(QWidget *parent=0)
Definition: kabstractfinddialog.cpp:41
Kasten2::KAbstractFindDialog::setupFindBox
void setupFindBox()
Definition: kabstractfinddialog.cpp:52
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okteta

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

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

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