KMDI::MainWindow Class Reference
Collaboration diagram for KMDI::MainWindow:
Public Slots | |
void | prevToolViewInDock () |
void | nextToolViewInDock () |
Signals | |
void | collapseOverlapContainers () |
void | toggleTop () |
void | toggleLeft () |
void | toggleRight () |
void | toggleBottom () |
Public Member Functions | |
MainWindow (QWidget *parentWidget, const char *name="") | |
virtual | ~MainWindow () |
TabWidget * | tabWidget () |
KMDI::ToolViewAccessor * | createToolWindow () |
KMDI::ToolViewAccessor * | addToolWindow (QWidget *pWnd, KDockWidget::DockPosition pos=KDockWidget::DockNone, QWidget *pTargetWnd=0L, int percent=50, const QString &tabToolTip=0, const QString &tabCaption=0) |
void | deleteToolWindow (KMDI::ToolViewAccessor *accessor) |
void | deleteToolWindow (QWidget *pWnd) |
void | setToolViewStyle (int flags) |
Protected Member Functions | |
void | findToolViewsDockedToMain (QPtrList< KDockWidget > *list, KDockWidget::DockPosition dprtmw) |
void | dockToolViewsIntoContainers (QPtrList< KDockWidget > &widgetsToReparent, KDockWidget *container) |
Protected Attributes | |
KMDIPrivate::GUIClient * | m_guiClient |
QMap< QWidget *, KMDI::ToolViewAccessor * > * | m_toolViews |
KDockWidget * | m_leftContainer |
KDockWidget * | m_rightContainer |
KDockWidget * | m_topContainer |
KDockWidget * | m_bottomContainer |
KMDI::TabWidget * | m_tabWidget |
Friends | |
class | KMDI::ToolViewAccessor |
Detailed Description
Definition at line 72 of file mainwindow.h.
Constructor & Destructor Documentation
|
Constructor.
Definition at line 100 of file mainwindow.cpp. |
|
Destructor.
Definition at line 116 of file mainwindow.cpp. References m_toolViews. |
Member Function Documentation
|
get the central tabwidget add all your content as child to this widget or as multiple tabs
Definition at line 249 of file mainwindow.cpp. References m_tabWidget. |
|
Using this method you have to use the setWidget method of the access object, and it is very recommendet, that you use the widgetContainer() method for the parent of your newly created widget.
Definition at line 254 of file mainwindow.cpp. |
|
Usually called from addWindow() when adding a tool view window. It reparents the given widget as toplevel and stay-on-top on the application's main widget.
Definition at line 259 of file mainwindow.cpp. References QWidget::caption(), KMDI::ToolViewAccessor::d, QWidget::geometry(), QMap::insert(), m_toolViews, KMDI::ToolViewAccessor::place(), and QRect::topLeft(). |
|
delete the toolview belonging to the given accessor
Definition at line 295 of file mainwindow.cpp. Referenced by deleteToolWindow(). |
|
delete the toolview belonging to the given pWnd
Definition at line 300 of file mainwindow.cpp. References QMap::contains(), deleteToolWindow(), and m_toolViews. |
|
Sets the appearance of the toolview tabs.
Definition at line 310 of file mainwindow.cpp. References QMap::begin(), QMap::end(), KMDI::IconOnly, m_toolViews, KMDI::DockContainer::setStyle(), KMDI::TextAndIcon, and KMDI::TextOnly. |
The documentation for this class was generated from the following files: