| 49 | } |
| 50 | |
| 51 | void EditingStopwatch::initialiseModule(const IApplicationContext& ctx) |
| 52 | { |
| 53 | _mapSignal = GlobalMapModule().signal_mapEvent().connect( |
| 54 | sigc::mem_fun(*this, &EditingStopwatch::onMapEvent) |
| 55 | ); |
| 56 | |
| 57 | GlobalMapInfoFileManager().registerInfoFileModule( |
| 58 | std::make_shared<EditingStopwatchInfoFileModule>() |
| 59 | ); |
| 60 | |
| 61 | GlobalMapResourceManager().signal_onResourceExporting().connect( |
| 62 | sigc::mem_fun(this, &EditingStopwatch::onResourceExporting) |
| 63 | ); |
| 64 | |
| 65 | _timer.reset(new util::Timer(TIMER_INTERVAL_SECS * 1000, |
| 66 | sigc::mem_fun(*this, &EditingStopwatch::onIntervalReached))); |
| 67 | } |
| 68 | |
| 69 | void EditingStopwatch::shutdownModule() |
| 70 | { |
nothing calls this directly
no test coverage detected