OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
TextEditorSearchPopup.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
12
13namespace ot {
14
15 class LineEdit;
16 class TextEditor;
17
19 Q_OBJECT
22 public:
24
26
27 void focusInput(void);
28
29 virtual bool eventFilter(QObject* _watched, QEvent* _event) override;
30
31 virtual void closeEvent(QCloseEvent* _event) override;
32
33 void setIndex(int _ix) { m_ix = _ix; };
34
35 void updatePosition(bool _forceUpdate = false);
36
37 Q_SIGNALS:
38 void popupClosing(void);
39
40 private Q_SLOTS:
41 void slotTextChanged(void);
42
43 void slotFindNext(void);
44
45 private:
46 int m_ix;
47 QPoint m_lastTR;
48 TextEditor* m_editor;
49 LineEdit* m_search;
50 };
51}
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NODEFAULT(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:22
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
#define OT_WIDGETS_API_EXPORT
Definition OTWidgetsAPIExport.h:12
Definition LineEdit.h:17
Definition OverlayWidgetBase.h:19
Definition TextEditor.h:47
Definition TextEditorSearchPopup.h:18
virtual ~TextEditorSearchPopup()
Definition TextEditorSearchPopup.h:25
void setIndex(int _ix)
Definition TextEditorSearchPopup.h:33
Definition Connector.h:8