GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
FindWidget.h
1 
29 #ifndef FINDWIDGET_H
30 #define FINDWIDGET_H
31 
32 #include "ui/GpgFrontendUI.h"
33 #include "ui/widgets/PlainTextEditorPage.h"
34 
35 namespace GpgFrontend::UI {
36 
40 class FindWidget : public QWidget {
41  Q_OBJECT
42 
43  public:
49  explicit FindWidget(QWidget* parent, PlainTextEditorPage* edit);
50 
51  protected:
57  void keyPressEvent(QKeyEvent* e) override;
58 
59  private:
64  void set_background();
65 
68  QLineEdit* find_edit_;
69 
70  private slots:
71 
76  void slot_find_next();
77 
82  void slot_find_previous();
83 
88  void slot_find();
89 
94  void slot_close();
95 };
96 
97 } // namespace GpgFrontend::UI
98 
99 #endif // FINDWIDGET_H
GpgFrontend::UI
Definition: VerifyDetailsDialog.cpp:33
GpgFrontend::UI::FindWidget::find_edit_
QLineEdit * find_edit_
Label holding the text shown in infoBoard.
Definition: FindWidget.h:68
GpgFrontend::UI::PlainTextEditorPage
Class for handling a single tab of the tabwidget.
Definition: PlainTextEditorPage.h:45
GpgFrontend::UI::FindWidget::keyPressEvent
void keyPressEvent(QKeyEvent *e) override
Definition: FindWidget.cpp:145
GpgFrontend::UI::PlainTextEditorPage::GetTextPage
QPlainTextEdit * GetTextPage()
Definition: PlainTextEditorPage.cpp:79
GpgFrontend::UI::FindWidget
Class for handling the find widget shown at buttom of a textedit-page.
Definition: FindWidget.h:40
GpgFrontend::UI::FindWidget::FindWidget
FindWidget(QWidget *parent, PlainTextEditorPage *edit)
Definition: FindWidget.cpp:33
GpgFrontend::UI::FindWidget::set_background
void set_background()
Definition: FindWidget.cpp:61
GpgFrontend::UI::FindWidget::m_text_page_
PlainTextEditorPage * m_text_page_
Textedit associated to the notification.
Definition: FindWidget.h:67