From d796c9dd933ab96ec83b9a634feedd5d32e1ba3f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 8 Nov 2011 12:31:36 -0600 Subject: Test conversion to TQt3 from Qt3 8c6fc1f8e35fd264dd01c582ca5e7549b32ab731 --- doc/html/qworkspace.html | 223 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 223 insertions(+) create mode 100644 doc/html/qworkspace.html (limited to 'doc/html/qworkspace.html') diff --git a/doc/html/qworkspace.html b/doc/html/qworkspace.html new file mode 100644 index 000000000..bae61a2a0 --- /dev/null +++ b/doc/html/qworkspace.html @@ -0,0 +1,223 @@ + + + + + +TQWorkspace Class + + + + + + + +
+ +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

TQWorkspace Class Reference
[workspace module]

+ +

The TQWorkspace widget provides a workspace window that can +contain decorated windows, e.g. for MDI. +More... +

#include <qworkspace.h> +

Inherits TQWidget. +

List of all member functions. +

Public Members

+ +

Public Slots

+ +

Signals

+ +

Properties

+ +

Detailed Description

+ + +The TQWorkspace widget provides a workspace window that can +contain decorated windows, e.g. for MDI. +

+

+ + +

MDI (multiple document interface) applications typically have one +main window with a menu bar and toolbar, and a central widget that +is a TQWorkspace. The workspace itself contains zero, one or more +document windows, each of which is a widget. +

The workspace itself is an ordinary TQt widget. It has a standard +constructor that takes a parent widget and an object name. The +parent window is usually a TQMainWindow, but it need not be. +

Document windows (i.e. MDI windows) are also ordinary TQt widgets +which have the workspace as their parent widget. When you call +show(), hide(), showMaximized(), setCaption(), etc. on a document +window, it is shown, hidden, etc. with a frame, caption, icon and +icon text, just as you'd expect. You can provide widget flags +which will be used for the layout of the decoration or the +behaviour of the widget itself. +

To change or retrieve the geometry of MDI windows you must operate +on the MDI widget's parentWidget(). (The parentWidget() provides +access to the decorated window in which the MDI window's widget is +shown.) +

A document window becomes active when it gets the keyboard focus. +You can also activate a window in code using setFocus(). The user +can activate a window by moving focus in the usual ways, for +example by clicking a window or by pressing Tab. The workspace +emits a signal windowActivated() when it detects the activation +change, and the function activeWindow() always returns a pointer +to the active document window. +

The convenience function windowList() returns a list of all +document windows. This is useful to create a popup menu +"Windows" on the fly, for example. +

TQWorkspace provides two built-in layout strategies for child +windows: cascade() and tile(). Both are slots so you can easily +connect menu entries to them. +

If you want your users to be able to work with document windows +larger than the actual workspace, set the scrollBarsEnabled +property to TRUE. +

If the top-level window contains a menu bar and a document window +is maximised, TQWorkspace moves the document window's minimize, +restore and close buttons from the document window's frame to the +workspace window's menu bar. It then inserts a window operations +menu at the far left of the menu bar. +

See also Main Window and Related Classes and Organizers. + +


Member Type Documentation

+

TQWorkspace::WindowOrder

+ +

Specifies the order in which windows are returned from windowList(). +

+

Member Function Documentation

+

TQWorkspace::TQWorkspace ( TQWidget * parent = 0, const char * name = 0 ) +

+Constructs a workspace with a parent and a name. + +

TQWorkspace::~TQWorkspace () +

Destroys the workspace and frees any allocated resources. +

void TQWorkspace::activateNextWindow () [slot] +

+Activates the next window in the child window chain. +

See also activatePrevWindow(). + +

void TQWorkspace::activatePrevWindow () [slot] +

+Activates the previous window in the child window chain. +

See also activateNextWindow(). + +

TQWidget * TQWorkspace::activeWindow () const +

+Returns the active window, or 0 if no window is active. + +

Example: mdi/application.cpp. +

void TQWorkspace::cascade () [slot] +

+Arranges all the child windows in a cascade pattern. +

See also tile(). + +

Example: mdi/application.cpp. +

void TQWorkspace::closeActiveWindow () [slot] +

+Closes the child window that is currently active. +

See also closeAllWindows(). + +

void TQWorkspace::closeAllWindows () [slot] +

+Closes all child windows. +

The windows are closed in random order. The operation stops if a +window does not accept the close event. +

See also closeActiveWindow(). + +

bool TQWorkspace::scrollBarsEnabled () const +

Returns TRUE if the workspace provides scrollbars; otherwise returns FALSE. +See the "scrollBarsEnabled" property for details. +

void TQWorkspace::setScrollBarsEnabled ( bool enable ) +

Sets whether the workspace provides scrollbars to enable. +See the "scrollBarsEnabled" property for details. +

void TQWorkspace::tile () [slot] +

+Arranges all child windows in a tile pattern. +

See also cascade(). + +

Example: mdi/application.cpp. +

void TQWorkspace::windowActivated ( TQWidget * w ) [signal] +

+ +

This signal is emitted when the window widget w becomes active. +Note that w can be null, and that more than one signal may be +emitted for a single activation event. +

See also activeWindow() and windowList(). + +

TQWidgetList TQWorkspace::windowList ( WindowOrder order ) const +

+Returns a list of all windows. If order is CreationOrder +(the default) the windows are listed in the order in which they +had been inserted into the workspace. If order is StackingOrder +the windows are listed in their stacking order, with the topmost window +being the last window in the list. +

TQWidgetList is the same as TQPtrList. +

See also TQPtrList. + +

Example: mdi/application.cpp. +

TQWidgetList TQWorkspace::windowList () const +

+This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

+


Property Documentation

+

bool scrollBarsEnabled

+

This property holds whether the workspace provides scrollbars. +

If this property is set to TRUE, it is possible to resize child +windows over the right or the bottom edge out of the visible area +of the workspace. The workspace shows scrollbars to make it +possible for the user to access those windows. If this property is +set to FALSE (the default), resizing windows out of the visible +area of the workspace is not permitted. + +

Set this property's value with setScrollBarsEnabled() and get this property's value with scrollBarsEnabled(). + +


+This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


+ +
Copyright © 2007 +TrolltechTrademarks +
TQt 3.3.8
+
+ -- cgit v1.2.1