tdemdichildview.cpp
47 KMdiChildView::KMdiChildView( const TQString& caption, TQWidget* parentWidget, const char* name, WFlags f )
154 // newGeoQt.setHeight(newGeometry.height()+mdiParent()->captionHeight()+KMDI_MDI_CHILDFRM_DOUBLE_BORDER);
531 if ( wfp == TQWidget::StrongFocus || wfp == TQWidget::TabFocus || w->focusPolicy() == TQWidget::WheelFocus )
582 if ( wfp == TQWidget::StrongFocus || wfp == TQWidget::TabFocus || widg->focusPolicy() == TQWidget::WheelFocus )
616 if ( wfp == TQWidget::StrongFocus || wfp == TQWidget::TabFocus || widg->focusPolicy() == TQWidget::WheelFocus )
735 int h = maxh + KMDI_CHILDFRM_DOUBLE_BORDER + KMDI_CHILDFRM_SEPARATOR + mdiParent() ->captionHeight();
void setState(MdiWindowState state, bool bAnimate=true)
Minimizes, Maximizes, or restores the window.
Definition: tdemdichildfrm.cpp:511
void setRestoreGeometry(const TQRect &newRestGeo)
Sets the geometry that will be restored by calling restore().
Definition: tdemdichildfrm.cpp:680
virtual void setMinimumSize(int minw, int minh)
Sets the minimum size of the widget to w by h pixels.
Definition: tdemdichildfrm.cpp:1217
TQRect restoreGeometry() const
Returns the geometry that will be restored by calling restore().
Definition: tdemdichildfrm.cpp:673
void setCaption(const TQString &text)
Sets the caption of this window.
Definition: tdemdichildfrm.cpp:687
bool isMinimized() const
Tells if the window is minimized when attached to the Mdi manager, or if it is VISIBLE when 'floating...
Definition: tdemdichildview.cpp:308
virtual void youAreAttached(KMdiChildFrm *lpC)
Internally called, if KMdiMainFrm::attach is called.
Definition: tdemdichildview.cpp:350
void gotFocus(KMdiChildView *)
Is sent when this MDI child has received the focus (after actually changing the focus).
virtual bool eventFilter(TQObject *obj, TQEvent *e)
It only catches TQEvent::KeyPress events there.
Definition: tdemdichildview.cpp:522
void removeEventFilterForAllChildren()
Switches interposing in event loop of all current child widgets off.
Definition: tdemdichildview.cpp:648
TQWidget * m_lastFocusableChildWidget
See KMdiChildView::setLastFocusableChildWidget.
Definition: tdemdichildview.h:139
void attachWindow(KMdiChildView *, bool)
Internally used by KMdiChildView::attach to send it as command to the mainframe.
void lostFocus(KMdiChildView *)
Is sent when this MDI child view has lost the focus (after actually changing the focus).
virtual void focusInEvent(TQFocusEvent *e)
If attached, the childframe will be activated and the MDI taskbar button will be pressed.
Definition: tdemdichildview.cpp:402
virtual void showMinimized()
Overridden from its base class method.
Definition: tdemdichildview.cpp:234
void mdiParentNowMaximized(bool)
Internally used to send information to the mainframe that this MDI view is maximized now.
virtual void youAreDetached()
Internally called, if KMdiMainFrm::detach is called.
Definition: tdemdichildview.cpp:358
KMdiChildFrm * mdiParent() const
Returns the KMdiChildFrm parent widget (or 0 if the window is not attached)
Definition: tdemdichildview.h:604
virtual void focusOutEvent(TQFocusEvent *e)
Send the lostFocus signal.
Definition: tdemdichildview.cpp:460
bool isMaximized() const
Tells if the window is minimized when attached to the Mdi manager, otherwise returns false.
Definition: tdemdichildview.cpp:318
virtual TQPixmap * myIconPtr()
You should override this function in the derived class.
Definition: tdemdichildview.cpp:395
virtual void resizeEvent(TQResizeEvent *e)
Internally used for the minimize/maximize/restore mechanism when in attach mode.
Definition: tdemdichildview.cpp:468
void setFirstFocusableChildWidget(TQWidget *)
Memorizes the first focusable child widget of this widget.
Definition: tdemdichildview.cpp:667
void clickedInWindowMenu(int)
Is automatically emitted when slot_clickedInWindowMenu is called.
void activated(KMdiChildView *)
Is sent when this MDI child was set to the activate view of all MDI views (after actually changing th...
KMdiChildView(const TQString &caption, TQWidget *parentWidget=0L, const char *name=0L, WFlags f=0)
Constructor.
Definition: tdemdichildview.cpp:47
virtual void slot_clickedInDockMenu()
Called if someone click on the "Dock/Undock..." menu item for this child frame window.
Definition: tdemdichildview.cpp:708
bool m_stateChanged
Holds a temporary information about if the MDI view state has changed but is not processed yet (pendi...
Definition: tdemdichildview.h:150
virtual void closeEvent(TQCloseEvent *e)
Ignores the event and calls KMdiMainFrm::childWindowCloseRequest instead.
Definition: tdemdichildview.cpp:387
TQRect externalGeometry() const
Returns the frame geometry of this window or of the parent if there is any...
Definition: tdemdichildview.cpp:183
virtual void setCaption(const TQString &szCaption)
Sets the window caption string...
Definition: tdemdichildview.cpp:373
void setExternalGeometry(const TQRect &newGeomety)
Sets the geometry of the frame of this MDI child window.
Definition: tdemdichildview.cpp:190
virtual void raise()
Calls TQWidget::raise() or it's parent widget raise() if attached.
Definition: tdemdichildview.cpp:766
TQWidget * focusedChildWidget()
Returns the current focused child widget of this widget.
Definition: tdemdichildview.cpp:662
int m_windowMenuID
Every child view window has an temporary ID in the Window menu of the main frame.
Definition: tdemdichildview.h:144
const TQString & caption() const
Returns the caption of the child window (different from the caption on the button in the taskbar)
Definition: tdemdichildview.h:232
void setRestoreGeometry(const TQRect &newRestGeo)
Sets the geometry that will be restored by calling restore().
Definition: tdemdichildview.cpp:286
bool isAttached() const
Returns true if the MDI view is a child window within the MDI mainframe widget or false if the MDI vi...
Definition: tdemdichildview.h:227
virtual void showMaximized()
Overridden from its base class method.
Definition: tdemdichildview.cpp:262
void setWindowMenuID(int id)
Internally used for setting an ID for the 'Window' menu entry.
Definition: tdemdichildview.cpp:691
TQWidget * m_firstFocusableChildWidget
See KMdiChildView::setFirstFocusableChildWidget.
Definition: tdemdichildview.h:134
void setInternalGeometry(const TQRect &newGeomety)
Sets the geometry of the client area of this MDI child window.
Definition: tdemdichildview.cpp:136
void windowCaptionChanged(const TQString &)
Emitted when the window caption is changed via KMdiChildView::setCaption or KMdiChildView::setMDICapt...
void detachWindow(KMdiChildView *, bool)
Internally used by KMdiChildView::detach to send it as command to the mainframe.
TQRect internalGeometry() const
Returns the geometry of this MDI child window as TQWidget::geometry() does.
Definition: tdemdichildview.cpp:113
void childWindowCloseRequest(KMdiChildView *)
Internally used to send information to the mainframe that this MDI child view wants to be closed.
virtual void show()
Calls TQWidget::show but also for it's parent widget if attached.
Definition: tdemdichildview.cpp:746
virtual void setTabCaption(const TQString &caption)
Sets the caption of the button referring to this window.
Definition: tdemdichildview.cpp:678
void clickedInDockMenu(int)
Is automatically emitted when slot_clickedInDockMenu is called.
void setLastFocusableChildWidget(TQWidget *)
Memorizes the last focusable child widget of this widget.
Definition: tdemdichildview.cpp:672
virtual void slot_clickedInWindowMenu()
Called if someone click on the "Window" menu item for this child frame window.
Definition: tdemdichildview.cpp:699
TQRect restoreGeometry()
Returns the geometry that will be restored by calling restore().
Definition: tdemdichildview.cpp:276
void tabCaptionChanged(const TQString &)
Emitted when the window caption is changed via KMdiChildView::setTabCaption or KMdiChildView::setMDIC...
virtual void setMinimumSize(int minw, int minh)
Sets the minimum size of the widget to w by h pixels.
Definition: tdemdichildview.cpp:715
void focusInEventOccurs(KMdiChildView *)
Is sent when this MDI child view is going to receive focus (before actually changing the focus).
TQWidget * m_focusedChildWidget
See KMdiChildView::focusedChildWidget.
Definition: tdemdichildview.h:129
virtual void hide()
Calls TQWidget::hide() or it's parent widget hide() if attached.
Definition: tdemdichildview.cpp:756
virtual void setMaximumSize(int maxw, int maxh)
Sets the maximum size of the widget to w by h pixels.
Definition: tdemdichildview.cpp:727
virtual void setMDICaption(const TQString &caption)
Sets the caption of both the window and the button on the taskbar.
Definition: tdemdichildview.cpp:684