Class: JLDrill::Gtk::StatisticsView
Instance Attribute Summary collapse
#quiz
#context
Instance Method Summary
collapse
#close
#addView, #removeView, #removingViewFrom, #viewAddedTo
Constructor Details
Returns a new instance of StatisticsView.
11
12
13
14
|
# File 'lib/jldrill/views/gtk/StatisticsView.rb', line 11
def initialize(context)
super(context)
@statisticsWindow = StatisticsWindow.new(self)
end
|
Instance Attribute Details
#statisticsWindow ⇒ Object
Returns the value of attribute statisticsWindow.
9
10
11
|
# File 'lib/jldrill/views/gtk/StatisticsView.rb', line 9
def statisticsWindow
@statisticsWindow
end
|
Instance Method Details
#destroy ⇒ Object
20
21
22
|
# File 'lib/jldrill/views/gtk/StatisticsView.rb', line 20
def destroy
@statisticsWindow.explicitDestroy
end
|
#emitDestroyEvent ⇒ Object
24
25
26
|
# File 'lib/jldrill/views/gtk/StatisticsView.rb', line 24
def emitDestroyEvent
@statisticsWindow.signal_emit("destroy")
end
|
16
17
18
|
# File 'lib/jldrill/views/gtk/StatisticsView.rb', line 16
def getWidget
@statisticsWindow
end
|
#showBusy(bool) ⇒ Object
41
42
43
|
# File 'lib/jldrill/views/gtk/StatisticsView.rb', line 41
def showBusy(bool)
@statisticsWindow.showBusy(bool)
end
|
#update(quiz) ⇒ Object
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/jldrill/views/gtk/StatisticsView.rb', line 28
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
|