31 #ifndef _KMDI_CHILD_VIEW_H_ 32 #define _KMDI_CHILD_VIEW_H_ 37 #include <tqapplication.h> 38 #include <tqdatetime.h> 40 #include "kmdichildfrm.h" 42 class KMdiChildViewPrivate;
168 bool m_bInterruptActivation;
173 bool m_bMainframesActivateViewIsPending;
178 bool m_bFocusInEventIsPending;
185 KMdiChildView(
const TQString&
caption, TQWidget* parentWidget = 0L,
const char* name = 0L, WFlags f = 0 );
191 KMdiChildView( TQWidget* parentWidget = 0L,
const char* name = 0L, WFlags f = 0 );
211 void setFirstFocusableChildWidget( TQWidget* );
216 void setLastFocusableChildWidget( TQWidget* );
221 TQWidget* focusedChildWidget();
232 const TQString&
caption()
const {
return m_szCaption; }
243 virtual void setCaption(
const TQString& szCaption );
248 virtual void setTabCaption(
const TQString&
caption );
253 virtual void setMDICaption(
const TQString &caption );
264 bool isMinimized()
const;
270 bool isMaximized()
const;
275 TQRect internalGeometry()
const;
284 void setInternalGeometry(
const TQRect& newGeomety );
289 TQRect externalGeometry()
const;
298 void setExternalGeometry(
const TQRect& newGeomety );
303 virtual TQPixmap* myIconPtr();
309 virtual void minimize(
bool bAnimate );
315 virtual void maximize(
bool bAnimate );
330 void removeEventFilterForAllChildren();
335 void setWindowMenuID(
int id );
349 virtual void setMaximumSize (
int maxw,
int maxh );
361 m_time.setDate( TQDate::currentDate() );
362 m_time.setTime( TQTime::currentTime() );
376 virtual void attach();
383 virtual void detach();
390 virtual void minimize();
397 virtual void maximize();
402 virtual void restore();
414 virtual void youAreDetached();
419 virtual void slot_clickedInWindowMenu();
424 virtual void slot_clickedInDockMenu();
439 virtual void raise();
445 virtual void showMinimized();
451 virtual void showMaximized();
457 virtual void showNormal();
465 virtual void closeEvent( TQCloseEvent *e );
473 virtual bool eventFilter( TQObject *obj, TQEvent *e );
481 virtual void focusInEvent( TQFocusEvent *e );
486 virtual void focusOutEvent( TQFocusEvent *e );
493 void trackIconAndCaptionChanges( TQWidget *view );
496 void slot_childDestroyed();
547 void windowCaptionChanged(
const TQString& );
552 void tabCaptionChanged(
const TQString& );
558 void mdiParentNowMaximized(
bool );
563 void clickedInWindowMenu(
int );
568 void clickedInDockMenu(
int );
573 void isMaximizedNow();
578 void isMinimizedNow();
583 void isRestoredNow();
588 void isAttachedNow();
593 void isDetachedNow();
595 void iconUpdated( TQWidget*, TQPixmap );
596 void captionUpdated( TQWidget*,
const TQString& );
600 KMdiChildViewPrivate *d;
601 TQWidget *m_trackChanges;
606 TQWidget * pw = parentWidget();
608 if ( pw->inherits(
"KMdiChildFrm" ) )
613 #endif //_KMDICHILDVIEW_H_ const TQDateTime & getTimeStamp() const
Recall a previously remembered time, i.e.
TQString m_sTabCaption
See KMdiChildView::tabCaption.
TQString m_szCaption
See KMdiChildView::caption.
Base class for all your special main frames.
void updateTimeStamp()
Remember the current time.
virtual void setMinimumSize(int minw, int minh)
Sets the minimum size of the widget to w by h pixels.
TQWidget * m_focusedChildWidget
See KMdiChildView::focusedChildWidget.
const TQString & caption() const
Returns the caption of the child window (different from the caption on the button in the taskbar) ...
const TQString & tabCaption() const
Returns the caption of the button on the taskbar.
bool isAttached() const
Returns true if the MDI view is a child window within the MDI mainframe widget or false if the MDI vi...
void setRestoreGeometry(const TQRect &newRestGeo)
Sets the geometry that will be restored by calling restore().
bool m_stateChanged
Holds a temporary information about if the MDI view state has changed but is not processed yet (pendi...
bool isToolView() const
Returns if this is added as MDI tool-view.
virtual void resizeEvent(TQResizeEvent *)
Reimplemented from the base class.
TQRect restoreGeometry() const
Returns the geometry that will be restored by calling restore().
const TQString & caption()
Gets the caption of this mdi child.
void setCaption(const TQString &text)
Sets the caption of this window.
KMdiChildFrm * mdiParent() const
Returns the KMdiChildFrm parent widget (or 0 if the window is not attached)
Base class for all your special view windows.
int m_windowMenuID
Every child view window has an temporary ID in the Window menu of the main frame. ...
virtual bool eventFilter(TQObject *, TQEvent *)
Reimplemented from the base class.
TQWidget * m_firstFocusableChildWidget
See KMdiChildView::setFirstFocusableChildWidget.
TQWidget * m_lastFocusableChildWidget
See KMdiChildView::setLastFocusableChildWidget.
TQDateTime m_time
Holds the time when this view was activated (not only displayed) for the last time.