Skip to content

Create New File #6

Closed
@chrisdedman

Description

@chrisdedman

Description

Currently, we can create a new file when the application starts, but not after that. We need to implement this function. The function header is already created, and the shortcut and the option in the menu are already available.

When creating a new file, the system should check if the current file has unsaved modifications and prompt the user to save before proceeding. Then, it should clear the current window and create a fresh file with a placeholder name like untitled, allowing the user to rename and save it when ready using the saveFile() function.

Task

  • Implement MainWindow::newFile() function in
    void MainWindow::newFile()
  • Check if the current file has unsaved modifications
    • prompt the user to save before proceeding

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions