Class: JLDrill::Gtk::QuestionPane

Inherits:
ProblemPane
  • Object
show all
Defined in:
lib/jldrill/views/gtk/widgets/ProblemPane.rb

Overview

The pane that displays the question for the problem

Constant Summary

Constants inherited from ProblemPane

ProblemPane::DISPLAY_ONLY_COLOR, ProblemPane::EXPIRED_COLOR, ProblemPane::NORMAL_COLOR, ProblemPane::PREVIEW_COLOR

Instance Attribute Summary

Attributes inherited from ProblemPane

#contents

Attributes included from Context::Gtk::Widget

#gtkWidgetMainWindow

Instance Method Summary collapse

Methods inherited from ProblemPane

#addImage, #bufferSize, #clear, #createTags, #displayOnlyMode, #expiredMode, #initialize, #normalMode, #previewMode, #receive, #showBusy, #text

Methods included from Context::Gtk::Widget

#addToThisWidget, #afterWidgetIsAdded, #afterWidgetIsRemoved, #expandWidgetHeight, #expandWidgetHeight?, #expandWidgetWidth, #expandWidgetWidth?, #gtkAddWidget, #gtkRemoveWidget, #isAMainWindow, #isInTests?, #removeFromThisWidget, #setupWidget, #widgetWasAddedTo, #widgetWasRemovedFrom

Constructor Details

This class inherits a constructor from JLDrill::Gtk::ProblemPane

Instance Method Details

#expireObject



164
165
166
# File 'lib/jldrill/views/gtk/widgets/ProblemPane.rb', line 164

def expire
    expiredMode
end

#update(problem) ⇒ Object



157
158
159
160
161
162
# File 'lib/jldrill/views/gtk/widgets/ProblemPane.rb', line 157

def update(problem)
    clear(problem)
    if !problem.nil?
        problem.publishQuestion(self)
    end
end