Engauge Digitizer
2
Toggle main menu visibility
Loading...
Searching...
No Matches
Window
WindowTable.h
Go to the documentation of this file.
1
/******************************************************************************************************
2
* (C) 2016 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3
* under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4
* LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5
******************************************************************************************************/
6
7
#ifndef WINDOW_TABLE_H
8
#define WINDOW_TABLE_H
9
10
#include <QObject>
11
#include <QString>
12
#include <QTableView>
13
14
class
QMouseEvent;
15
class
WindowModelBase
;
16
18
class
WindowTable
:
public
QTableView
19
{
20
Q_OBJECT;
21
22
public
:
24
WindowTable
(
WindowModelBase
&model);
25
~WindowTable
();
26
28
virtual
void
focusInEvent
(QFocusEvent *);
29
31
virtual
void
focusOutEvent
(QFocusEvent *);
32
34
virtual
void
mouseMoveEvent
(QMouseEvent *event);
35
37
virtual
void
mousePressEvent
(QMouseEvent *event);
38
40
virtual
void
selectionChanged
(
const
QItemSelection &selected,
41
const
QItemSelection &deselected);
42
43
signals:
45
void
signalTableStatusChange
();
46
47
private
:
48
WindowTable
();
49
50
void
doDragAndClipboardCopy();
51
QString exportText ()
const
;
52
53
QPoint m_pressPos;
54
};
55
56
#endif
// WINDOW_TABLE_H
WindowModelBase
Model for WindowTable.
Definition
WindowModelBase.h:19
WindowTable::focusOutEvent
virtual void focusOutEvent(QFocusEvent *)
Catch this table status change.
Definition
WindowTable.cpp:115
WindowTable::focusInEvent
virtual void focusInEvent(QFocusEvent *)
Catch this table status change.
Definition
WindowTable.cpp:108
WindowTable::mousePressEvent
virtual void mousePressEvent(QMouseEvent *event)
Track the starting point of drag operations.
Definition
WindowTable.cpp:139
WindowTable::signalTableStatusChange
void signalTableStatusChange()
Sent when a change occurs that should affect the Copy menu item.
WindowTable::WindowTable
WindowTable(WindowModelBase &model)
Single constructor.
Definition
WindowTable.cpp:28
WindowTable::mouseMoveEvent
virtual void mouseMoveEvent(QMouseEvent *event)
Trigger drag operation if cursor was dragged more than a minimum distance.
Definition
WindowTable.cpp:122
WindowTable::~WindowTable
~WindowTable()
Definition
WindowTable.cpp:46
WindowTable::selectionChanged
virtual void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
Catch this table status change.
Definition
WindowTable.cpp:149
Generated on
for Engauge Digitizer by
1.17.0