forked from vnotex/vnote
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvedittabinfo.h
More file actions
55 lines (43 loc) · 1.01 KB
/
vedittabinfo.h
File metadata and controls
55 lines (43 loc) · 1.01 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
47
48
49
50
51
52
53
54
55
#ifndef VEDITTABINFO_H
#define VEDITTABINFO_H
#include "vwordcountinfo.h"
class VEditTab;
struct VEditTabInfo
{
enum InfoType
{
// Update all information.
All = 0,
// Update only cursor information.
Cursor
};
VEditTabInfo()
: m_type(InfoType::All),
m_editTab(NULL),
m_cursorBlockNumber(-1),
m_cursorPositionInBlock(-1),
m_blockCount(-1),
m_headerIndex(-1)
{
}
void clear()
{
m_type = InfoType::All;
m_editTab = NULL;
m_cursorBlockNumber = -1;
m_cursorPositionInBlock = -1;
m_blockCount = -1;
m_wordCountInfo.clear();
m_headerIndex = -1;
}
InfoType m_type;
VEditTab *m_editTab;
// Cursor information. -1 for invalid info.
int m_cursorBlockNumber;
int m_cursorPositionInBlock;
int m_blockCount;
VWordCountInfo m_wordCountInfo;
// Header index in outline.
int m_headerIndex;
};
#endif // VEDITTABINFO_H