1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#include <iface/dirview.h> namespace { ViewMap *_viewMap = 0; PDirView *_dirView = 0; } ViewMap *viewMap() { if ( !_viewMap ) _viewMap = new ViewMap; return _viewMap; } PDirView* currentView(){ return _dirView; } void setCurrentView( PDirView* view ) { _dirView = view; }