Class: JLDrill::MainContext::MainWindowView

Inherits:
Context::View show all
Defined in:
lib/jldrill/contexts/MainContext.rb

Direct Known Subclasses

Gtk::MainWindowView, Test::MainWindowView

Instance Attribute Summary

Attributes inherited from Context::View

#context

Instance Method Summary collapse

Methods inherited from Context::View

#addView, #getWidget, #initialize, #removeView, #removingViewFrom, #viewAddedTo

Constructor Details

This class inherits a constructor from Context::View

Instance Method Details

#closeObject

This is a convenience method for the tests so that they don’t have to catch the exit on the context.



110
111
112
# File 'lib/jldrill/contexts/MainContext.rb', line 110

def close
    context.exit
end

#destroyObject

Destroy the main window



97
98
99
# File 'lib/jldrill/contexts/MainContext.rb', line 97

def destroy
    # define in the concrete class
end

#inititalize(context) ⇒ Object



92
93
94
# File 'lib/jldrill/contexts/MainContext.rb', line 92

def inititalize(context)
    super(context)
end

#showBusy(bool) ⇒ Object

Show the busy cursor in the UI if bool is true. This happens during a long event where the user can’t interact with the window



104
105
106
# File 'lib/jldrill/contexts/MainContext.rb', line 104

def showBusy(bool)
    # Please define in the concrete class
end