mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
32 lines
702 B
C++
32 lines
702 B
C++
#ifndef FILEOPENPARAMETERS_H
|
|
#define FILEOPENPARAMETERS_H
|
|
|
|
#include "global.h"
|
|
|
|
namespace vnotex
|
|
{
|
|
class Node;
|
|
|
|
struct FileOpenParameters
|
|
{
|
|
ViewWindowMode m_mode = ViewWindowMode::Read;
|
|
|
|
// Whether focus to the opened window.
|
|
bool m_focus = true;
|
|
|
|
// Whether it is a new file.
|
|
bool m_newFile = false;
|
|
|
|
// If this file is an attachment of a node, this field indicates it.
|
|
Node *m_nodeAttachedTo = nullptr;
|
|
|
|
// Open as read-only.
|
|
bool m_readOnly = false;
|
|
|
|
// If m_lineNumber > -1, it indicates the line to scroll to after opening the file.
|
|
int m_lineNumber = -1;
|
|
};
|
|
}
|
|
|
|
#endif // FILEOPENPARAMETERS_H
|