Basic text-editor application (MainWindow/Application example)