Class: JLDrill::Gtk::QuizStatusView

Inherits:
DisplayQuizStatusContext::QuizStatusView show all
Defined in:
lib/jldrill/views/gtk/QuizStatusView.rb

Instance Attribute Summary collapse

Attributes inherited from Context::View

#context

Instance Method Summary collapse

Methods inherited from Context::View

#addView, #removeView, #removingViewFrom, #viewAddedTo

Constructor Details

#initialize(context) ⇒ QuizStatusView

Returns a new instance of QuizStatusView.



12
13
14
15
16
17
# File 'lib/jldrill/views/gtk/QuizStatusView.rb', line 12

def initialize(context)
	super(context)
	@quizStatusBar = QuizStatusBar.new(self)
	@quizStatusBar.expandWidgetWidth
	@verified = nil
end

Instance Attribute Details

#quizStatusBarObject (readonly)

Returns the value of attribute quizStatusBar.



10
11
12
# File 'lib/jldrill/views/gtk/QuizStatusView.rb', line 10

def quizStatusBar
  @quizStatusBar
end

Instance Method Details

#getWidgetObject



19
20
21
# File 'lib/jldrill/views/gtk/QuizStatusView.rb', line 19

def getWidget
	@quizStatusBar
end

#update(quiz) ⇒ Object



23
24
25
# File 'lib/jldrill/views/gtk/QuizStatusView.rb', line 23

def update(quiz)
    @quizStatusBar.update(quiz.status)
end