summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye/lib/viewmap.cpp
blob: ca242b7389c72118e375618b11e08f629e57780a (plain)
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;
}