-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwinglinemargin.h
More file actions
46 lines (37 loc) · 1.29 KB
/
winglinemargin.h
File metadata and controls
46 lines (37 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/****************************************************************************
**
** Copyright (C) 2025-2028 WingSummer
**
** This file may be used under the terms of the GNU General Public License
** version 3 as published by the Free Software Foundation.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
** You should have received a copy of the GNU General Public License version 3
** along with this program. If not, see <https://www.gnu.org/licenses/>.
**
****************************************************************************/
#ifndef WINGLINEMARGIN_H
#define WINGLINEMARGIN_H
#include <QWidget>
class WingCodeEdit;
class WingLineMargin : public QWidget {
Q_OBJECT
public:
explicit WingLineMargin(WingCodeEdit *editor);
QSize sizeHint() const override;
signals:
void symbolMarkLineMarginClicked(int line);
protected:
void paintEvent(QPaintEvent *e) override;
void mouseMoveEvent(QMouseEvent *e) override;
void mousePressEvent(QMouseEvent *e) override;
void wheelEvent(QWheelEvent *e) override;
void leaveEvent(QEvent *e) override;
private:
WingCodeEdit *m_editor;
int m_marginSelectStart;
int m_foldHoverLine;
};
#endif // WINGLINEMARGIN_H