GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
FindWidget.h
1 
29 #pragma once
30 
31 #include "ui/GpgFrontendUI.h"
32 #include "ui/widgets/PlainTextEditorPage.h"
33 
34 namespace GpgFrontend::UI {
35 
39 class FindWidget : public QWidget {
40  Q_OBJECT
41 
42  public:
48  explicit FindWidget(QWidget* parent, PlainTextEditorPage* edit);
49 
50  protected:
56  void keyPressEvent(QKeyEvent* e) override;
57 
58  private:
63  void set_background();
64 
67  QLineEdit* find_edit_;
68 
69  private slots:
70 
75  void slot_find_next();
76 
81  void slot_find_previous();
82 
87  void slot_find();
88 
93  void slot_close();
94 };
95 
96 } // namespace GpgFrontend::UI
Class for handling the find widget shown at buttom of a textedit-page.
Definition: FindWidget.h:39
void set_background()
Definition: FindWidget.cpp:65
PlainTextEditorPage * m_text_page_
Textedit associated to the notification.
Definition: FindWidget.h:66
FindWidget(QWidget *parent, PlainTextEditorPage *edit)
Definition: FindWidget.cpp:33
void keyPressEvent(QKeyEvent *e) override
Definition: FindWidget.cpp:135
QLineEdit * find_edit_
Label holding the text shown in infoBoard.
Definition: FindWidget.h:67
Class for handling a single tab of the tabwidget.
Definition: PlainTextEditorPage.h:39
Definition: FileReadTask.cpp:31