Skip to content
ben-sangster edited this page Nov 10, 2010 · 1 revision

Description

Main window API. The main window itself contains docks and widgets. It cannot be accessed directly -- instead, the API is used for all manipulation of the main window.

Associated Types

N/A

Constants

Functions

Widget mainWindow ()

Widget centralWidget ([ Widget w])

Bool close ()

DockWidget createDockWidget (String name, [ Widget w])

DockWidget createDock (String name, [DockWidgetArea a, [Widget widget]])

DockWidget createDock (String name, [Object o, [Widget widget]])

  • If the second argument given is an object, it must have a valid area field. It can also have floating, visible, allowedAreas, features.

Bool addDock (DockWidget dw, DockWidgetArea area)

Bool addDock (String widgetName, DockWidgetArea area)

Bool removeDock (DockWidget dw)

Bool removeDock (String widgetName)

Action addMenu (self, String MenuName, String MenuOption, [String iconName], String shortcut, Function f)

Action addMenu (self, String MenuName, Object {text, icon, shortcut}, Function f)

Clone this wiki locally