00001 #include <iface/dirview.h> 00002 00003 00004 namespace { 00005 ViewMap *_viewMap = 0; 00006 PDirView *_dirView = 0; 00007 } 00008 00009 00010 ViewMap *viewMap() { 00011 if ( !_viewMap ) 00012 _viewMap = new ViewMap; 00013 00014 return _viewMap; 00015 } 00016 00017 00018 PDirView* currentView(){ 00019 return _dirView; 00020 } 00021 00022 00023 void setCurrentView( PDirView* view ) { 00024 _dirView = view; 00025 }
1.4.2