mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 22:09:52 +08:00
38 lines
701 B
C++
38 lines
701 B
C++
#ifndef VEDITTABINFO_H
|
|
#define VEDITTABINFO_H
|
|
|
|
class VEditTab;
|
|
|
|
struct VEditTabInfo
|
|
{
|
|
VEditTabInfo()
|
|
: m_editTab(NULL),
|
|
m_cursorBlockNumber(-1),
|
|
m_cursorPositionInBlock(-1),
|
|
m_blockCount(-1),
|
|
m_headerIndex(-1)
|
|
{
|
|
}
|
|
|
|
void clear()
|
|
{
|
|
m_editTab = NULL;
|
|
m_cursorBlockNumber = -1;
|
|
m_cursorPositionInBlock = -1;
|
|
m_blockCount = -1;
|
|
m_headerIndex = -1;
|
|
}
|
|
|
|
VEditTab *m_editTab;
|
|
|
|
// Cursor information. -1 for invalid info.
|
|
int m_cursorBlockNumber;
|
|
int m_cursorPositionInBlock;
|
|
int m_blockCount;
|
|
|
|
// Header index in outline.
|
|
int m_headerIndex;
|
|
};
|
|
|
|
#endif // VEDITTABINFO_H
|