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
Class for handling the find widget shown at buttom of a textedit-page.
Definition: FindWidget.h:40
void set_background()
Definition: FindWidget.cpp:63
PlainTextEditorPage * m_text_page_
Textedit associated to the notification.
Definition: FindWidget.h:67
FindWidget(QWidget *parent, PlainTextEditorPage *edit)
Definition: FindWidget.cpp:33
void keyPressEvent(QKeyEvent *e) override
Definition: FindWidget.cpp:147
QLineEdit * find_edit_
Label holding the text shown in infoBoard.
Definition: FindWidget.h:68
Class for handling a single tab of the tabwidget.
Definition: PlainTextEditorPage.h:45
Definition: FileReadTask.cpp:29