Class: JLDrill::Gtk::AnswerPane
- Inherits:
-
ProblemPane
- Object
- Gtk::ScrolledWindow
- ProblemPane
- JLDrill::Gtk::AnswerPane
- Defined in:
- lib/jldrill/views/gtk/widgets/ProblemPane.rb
Overview
The pane that displays the answer 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
Attributes included from Context::Gtk::Widget
Instance Method Summary collapse
Methods inherited from ProblemPane
#addImage, #bufferSize, #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
#clear(problem) ⇒ Object
172 173 174 175 |
# File 'lib/jldrill/views/gtk/widgets/ProblemPane.rb', line 172 def clear(problem) super(problem) @isClear = true end |
#clear? ⇒ Boolean
177 178 179 |
# File 'lib/jldrill/views/gtk/widgets/ProblemPane.rb', line 177 def clear? @isClear end |
#update(problem) ⇒ Object
181 182 183 184 185 186 187 |
# File 'lib/jldrill/views/gtk/widgets/ProblemPane.rb', line 181 def update(problem) clear(problem) if !problem.nil? problem.publishAnswer(self) @isClear = false end end |