1 // DormantNodeWindow.h 2 // e.moon 2jun99 3 4 #ifndef __DormantNodeWindow_H__ 5 #define __DormantNodeWindow_H__ 6 7 // Interface Kit 8 #include <Window.h> 9 10 #include "cortex_defs.h" 11 __BEGIN_CORTEX_NAMESPACE 12 13 class DormantNodeView; 14 15 class DormantNodeWindow : 16 public BWindow { 17 typedef BWindow _inherited; 18 19 public: // *** ctor/dtor 20 21 DormantNodeWindow( 22 BWindow* parent); 23 24 virtual ~DormantNodeWindow(); 25 26 public: // *** BWindow impl. 27 28 bool QuitRequested(); 29 30 void Zoom( 31 BPoint origin, 32 float width, 33 float height); 34 35 private: // *** internal operations 36 37 void _constrainToScreen(); 38 39 private: // *** data 40 41 BWindow* m_parent; 42 43 DormantNodeView* m_listView; 44 45 BRect m_manualSize; 46 47 bool m_zoomed; 48 49 bool m_zooming; 50 51 private: // *** internal constants 52 53 static const BRect s_initFrame; 54 }; 55 56 __END_CORTEX_NAMESPACE 57 #endif /*__DormantNodeWindow_H__*/ 58