#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