Sha256: 92499659da5f65ddb73658db11a51cf6df44bbe60d55c0343ab98df046a9f951
Contents?: true
Size: 1.29 KB
Versions: 1
Compression:
Stored size: 1.29 KB
Contents
# encoding: utf-8 require 'jldrill/views/gtk/widgets/StatisticsWindow' require 'jldrill/contexts/ShowStatisticsContext' require 'jldrill/model/Quiz/Quiz' require 'gtk2' module JLDrill::Gtk class StatisticsView < JLDrill::ShowStatisticsContext::StatisticsView attr_reader :statisticsWindow def initialize(context) super(context) @statisticsWindow = StatisticsWindow.new(self) end def getWidget @statisticsWindow end def destroy @statisticsWindow.explicitDestroy end def emitDestroyEvent @statisticsWindow.signal_emit("destroy") end def update(quiz) super(quiz) reviewTable = quiz.strategy.reviewStats.statsTable @statisticsWindow.updateReviewDuration(reviewTable) @statisticsWindow.updateReviewAccuracy(quiz.strategy.reviewStats) @statisticsWindow.updateReviewRate(quiz.strategy.reviewStats) forgottenTable = quiz.strategy.forgottenStats.statsTable @statisticsWindow.updateForgottenDuration(forgottenTable) @statisticsWindow.updateForgottenAccuracy(quiz.strategy.forgottenStats) @statisticsWindow.updateForgottenRate(quiz.strategy.forgottenStats) end def showBusy(bool) @statisticsWindow.showBusy(bool) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jldrill-0.6.0.1 | lib/jldrill/views/gtk/StatisticsView.rb |