 Dashing.DashboardSwitcher = DashboardSwitcher
 Dashing.WidgetSwitcher = WidgetSwitcher
 Dashing.DashboardSwitcherControls = DashboardSwitcherControls
+Dashing.WidgetSwitcherControls = WidgetSwitcherControls
 
 # Dashboard loaded and ready
 Dashing.on 'ready', ->

      append(@$nextWidgetNameContainer).
      append(@$countdown).
      append(@$manualPrev).
      append(@$manualNext).
      append(@$switcherStopper)

  formatTime: (time) ->
    time = time / 10;
    min = parseInt(time / 6000, 10)
    sec = parseInt(time / 100, 10) - (min * 60)
    "#{(if min > 0 then @pad(min, 2) else "00")}:#{@pad(sec, 2)}"

  pad: (number, length) =>
    str = "#{number}"

    @$manualPrev = $("<span id='dc-wid-switcher-prev' class='fa fa-backward'></span>").
      html(@arrowContent).
      click () =>
        @switchWidget(false)
    @$manualNext = $("<span id='dc-wid-switcher-next' class='fa fa-forward'></span>").
      html(@arrowContent).
      click () =>
        @switchWidget()
    @$switcherStopper = $("<span id='dc-wid-switcher-pause-reset' class='fa fa-pause'></span>").
      html(@stopTimerContent).
      click(@pause)
