[kab Index] [kab Hierarchy] [Headers]
#include <DialogBase.h>
Inherits: DialogBaseData
[public static]
This returns whether the background tile is set or not.
[public static]
This returns a const pointer to the background tile if there is one.
[public static]
This method sets the background tile. If it is Null (0), the backgroundimage is deleted.
[public]
The background mode - either showing the selected tile or the standardbackground color - can be switched independently for the outer and the inner frame.
[public]
The following methods enable the respective buttons. All buttons are enabled by default.
[public]
The following methods show or hide the respective buttons. All buttons arevisible by default:
[public]
This method returns the contents rectangle of the inner frame. Place yourwidgets inside this rectangle, and use it to set up their geometry. Be carefull: The rectangle is only valid after resizing the dialog, as it is a result of the resizing process. If you need the "overhead" the dialog needs for its element, use getBorderWidth.
[public]
This method returns the border widths in all directions that the dialogneeds for itselfes. Respect this, or get bad looking results. The references are upper left x, upper left y, lower left x and lower left y. The results are differences in pixels from the dialogs corners.
[public]
With this method it is more easier to calculate a size hint for a dialog derived from DialogBase if you now the width and height of the elements you add to the widget. The rectangle returned is calculated so that all elements exactly fit into it. Thus, you may set it as a minimum size for the resulting dialog.
[public]
This method is meant to make the management of simple layouts easier. You may assign (and remove) a main widget to the dialog. This main widget will be placed exactly fitting into the frame rectangle of the inner frame. This is usefull if the widget you insert is managed by a Qt layout manager, for example (or by your own resizeEvent handler). Make sure to set the minimum size of the dialog (using one of the methods above). If the main widget provided by you has a minimum size the dialogs minimum size is automatically adapted to this size, no need to bother... If you set a main widget and there is already one, this previous main widget will NOT be deleted. This way you may switch between different widgets for example by hiding the old one and setting the new one as main. The dialog does not manipulate the visibility state of your widget, only its geometry. If you replace a previous main widget, the old one is still visible. Hide it, or place it somewhere else.
Documentation generated by root@darkstar.lst.de on Wed Sep 8 17:39:05 CEST 1999 | Kdoc |