QDesignerWidgetBox Class Reference

#include <qdesigner_widgetbox.h>

Inheritance diagram for QDesignerWidgetBox:

Inheritance graph
[legend]
Collaboration diagram for QDesignerWidgetBox:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 31 of file qdesigner_widgetbox.h.

Public Member Functions

 QDesignerWidgetBox (QDesignerWorkbench *workbench)
virtual ~QDesignerWidgetBox ()
virtual Qt::DockWidgetArea dockWidgetAreaHint () const
virtual QRect geometryHint () const


Constructor & Destructor Documentation

QDesignerWidgetBox::QDesignerWidgetBox ( QDesignerWorkbench workbench  ) 

Definition at line 34 of file qdesigner_widgetbox.cpp.

References QDesignerWorkbench::core(), QDesignerComponents::createWidgetBox(), QDesignerWidgetBoxInterface::load(), QMainWindow::setCentralWidget(), QDesignerWidgetBoxInterface::setFileName(), QObject::setObjectName(), QDesignerFormEditorInterface::setWidgetBox(), QWidget::setWindowTitle(), and QDesignerToolWindow::workbench().

00035     : QDesignerToolWindow(workbench)
00036 {
00037     setObjectName(QLatin1String("WidgetBox"));
00038     QDesignerWidgetBoxInterface *widget = QDesignerComponents::createWidgetBox(workbench->core(), this);
00039     widget->setFileName(QLatin1String(":/trolltech/widgetbox/widgetbox.xml"));
00040     widget->load();
00041     widget->setFileName(QDesignerSettings().defaultUserWidgetBoxXml());
00042     widget->load();
00043 
00044     workbench->core()->setWidgetBox(widget);
00045 
00046     setCentralWidget(widget);
00047 
00048     setWindowTitle(tr("Widget Box"));
00049 }

Here is the call graph for this function:

QDesignerWidgetBox::~QDesignerWidgetBox (  )  [virtual]

Definition at line 51 of file qdesigner_widgetbox.cpp.

00052 {
00053 }


Member Function Documentation

Qt::DockWidgetArea QDesignerWidgetBox::dockWidgetAreaHint (  )  const [virtual]

Reimplemented from QDesignerToolWindow.

Definition at line 63 of file qdesigner_widgetbox.cpp.

References Qt::LeftDockWidgetArea.

00064 {
00065     return Qt::LeftDockWidgetArea;
00066 }

QRect QDesignerWidgetBox::geometryHint (  )  const [virtual]

Reimplemented from QDesignerToolWindow.

Definition at line 55 of file qdesigner_widgetbox.cpp.

References QDesignerWorkbench::availableGeometry(), g, and QDesignerToolWindow::workbench().

00056 {
00057     QRect g = workbench()->availableGeometry();
00058 
00059     return QRect(workbench()->marginHint(), workbench()->marginHint(),
00060                  g.width() * 1/4, g.height() * 5/6);
00061 }

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 17:20:45 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1