IOModesController

class IOModesController : public QObject

Manages switching between Read-Only, Cache, and Write modes.

Handles the logic required when changing how Cutter interacts with the underlying file on disk

Public Types

enum class Mode

Values:

enumerator READ_ONLY
enumerator CACHE
enumerator WRITE

Public Functions

IOModesController(QWidget *parent)
bool prepareForWriting()
bool canWrite()
Mode getIOMode()
void setIOMode(Mode mode)

Public Slots

bool askCommitUnsavedChanges()