This document contains code for a notepad application user interface created with the Ring programming language. It defines functions for creating the main window, menu bar, toolbars, dock widgets, and text editor. It also includes functions for common editing actions like opening, saving, printing files and performing search/replace.