There is only one of these widgets in the application, which is created and owned by DzApp.
It can be accessed by using the MainWindow global variable.
void DzMainWindow::aboutToClose | ( | ) | [signal] |
Signature: "aboutToClose()"
Emitted just before the main window closes.
DzMainWindow::alwaysOnTopChanged | ( | Boolean | onOff | ) | [signal] |
Signature: "aboutToClose()"
Emitted when the main window is switched to/from being always on top.
bool DzMainWindow::askSaveChanges | ( | ) |
Presents the user with a dialog that asks if they want to save changes to the scene, and does a scene save if the user selects yes.
bool DzMainWindow::askTurnOffLimits | ( | ) |
Presents the user with a dialog that asks if they want to turn off limits to apply the pose currently being loaded.
Checks to see if the given file already exists - if it does, prompts the user if they want to overwrite it.
name | The name of the file to look for. |
Display a message in the status bar.
line | Message to display | |
ms | If greater than zero, the message will be displayed for the given amount of time, otherwise the message will be displayed until another message is sent. |
Conenience file dialog: Automatically creates a filter list for all audio formats we can import and displays a file open dialog
DzDockArea DzMainWindow::dockArea | ( | Point | pos | ) |
Display a dialog for the user to choose a directory
title | Title of the dialog box - NO LONGER USED, use desc instead | |
desc | A description caption for the dialog | |
dir | Return value for chosen dir (empty on cancel) |
Boolean DzMainWindow::doFileDialog | ( | Boolean | open, | |
String | title, | |||
String | startWith, | |||
DzFileFilter | fileFilter, | |||
String | filename | |||
) |
Display a dialog for the user to choose a file
open | If true displays an open file dialog, otherwise displays a save file dialog. | |
title | Title of the dialog box | |
startsWith | Starting directory (can include a default file name) | |
fileFilter | List of file types that can be selected. | |
filename | Return value for filename |
Boolean DzMainWindow::doFileExport | ( | ) |
Displays a dialog for saving the scene to a non-native file, and saves the scene if the user does not cancel.
Boolean DzMainWindow::doFileImport | ( | ) |
Displays a dialog for loading a non-native file, and loads the file if the user does not cancel.
Boolean DzMainWindow::doFileMerge | ( | ) |
Displays a dialog for loading a native scene file, and merges the file into the current scene if the user does not cancel.
Boolean DzMainWindow::doFileOpen | ( | ) |
Displays a dialog for loading a native scene file, and opens the file as a new scene if the user does not cancel.
Boolean DzMainWindow::doFileSave | ( | ) |
Saves the scene to the current scene file - displaying a dialog to the user if a file needs to be selected.
Boolean DzMainWindow::doFileSaveAs | ( | ) |
Displays a dialog for saving the scene to a native file, and saves the scene if the user does not cancel.
Conenience file dialog: Automatically creates a filter list for all image formats we can import/export and displays a file open/save dialog
open | If true displays an open image dialog, otherwise displays a save image dialog. | |
filename | Return value for filename |
Boolean DzMainWindow::doImageOpen | ( | ) |
Displays a dialog for loading an image file, and loads the file if the user does not cancel.
Displays a dialog for saving the given image, and saves the image if the user does not cancel.
bool DzMainWindow::doNewFile | ( | ) |
Clears the scene
Boolean DzMainWindow::doOpenFilesDialog | ( | String | title, | |
String | startWith, | |||
DzFileFilter | fileFilter, | |||
Array | filenames | |||
) |
Display a dialog for the user to open one or more files
title | Title of the dialog box | |
startsWith | Starting directory (can include a default file name) | |
fileFilter | List of file types that can be selected. | |
filenames | Set to the resulting list of files chosen by the user. |
Boolean DzMainWindow::doVideoClipSaveAs | ( | DzVideoClip | clip | ) |
Displays a dialog for saving the given video clip, and saves the clip if the user does not cancel.
Conenience file dialog: Automatically creates a filter list for all video formats we can export and displays a file save dialog
void DzMainWindow::exitFullScreen | ( | ) |
Switches from full screen back to normal mode
DzActionMgr DzMainWindow::getActionMgr | ( | ) |
DzDockArea DzMainWindow::getBottomDockArea | ( | ) |
DzDockArea DzMainWindow::getLeftDockArea | ( | ) |
DzPaneMgr DzMainWindow::getPaneMgr | ( | ) |
DzDockArea DzMainWindow::getRightDockArea | ( | ) |
DzDockArea DzMainWindow::getTopDockArea | ( | ) |
DzViewportMgr DzMainWindow::getViewportMgr | ( | ) |
void DzMainWindow::goFullScreen | ( | ) |
Switches from normal to full screen mode
void DzMainWindow::removePrompt | ( | ) |
Clear the message in the status bar.
void DzMainWindow::repaintActive3DViewport | ( | ) |
A convenience method for forcing a repaint of the currently active 3D viewport (if any).
void DzMainWindow::started | ( | ) | [signal] |
Signature: "started()"
Emitted after the startup() function has finished.
Whether or not the main window is always on top of other application windows.
Whether or not tool tips are enabled.