27 #include "actionmanager.h"
28 #include "kowindowlist.h"
29 #include "kowindowlist.moc"
32 : TQObject( 0, name ), mDefaultWindow( 0 )
37 KOWindowList::~KOWindowList()
43 if ( !korg->hasDocument() ) mDefaultWindow = korg;
44 else mWindowList.append( korg );
49 if ( korg == mDefaultWindow ) mDefaultWindow = 0;
50 else mWindowList.removeRef( korg );
55 if ( mWindowList.count() == 1 && !mDefaultWindow ) return true;
56 if ( mWindowList.count() == 0 && mDefaultWindow ) return true;
63 for( inst = mWindowList.first(); inst; inst = mWindowList.next() )
71 return mDefaultWindow;
|