class RBT::GUI::Gtk::TextViewWidget
Constants
- NAMESPACE
#¶ ↑
NAMESPACE
¶ ↑#¶ ↑
Public Class Methods
Public Instance Methods
add_gui_skeleton()
click to toggle source
add_label_for_success_or_failure()
click to toggle source
add_textview_widget()
click to toggle source
append_this_text_to_the_textview_widget( this_text )
click to toggle source
#¶ ↑
append_this_text_to_the_textview_widget
(append tag)¶ ↑
This is mostly a convenience method - whenever it is called, we will simply append to the textview widget.
#¶ ↑
# File lib/rbt/gui/gtk/textview_widget.rb, line 125 def append_this_text_to_the_textview_widget( this_text ) unless this_text.end_with? N this_text = this_text.dup if this_text.frozen? this_text << N end @textview_widget.append_this_text(this_text) end
do_compile_this_program( this_program = return_content_of_input_widget )
click to toggle source
#¶ ↑
do_compile_this_program
(compile tag, action tag, click tag)¶ ↑
The action that is used to compile a given program at hand.
#¶ ↑
# File lib/rbt/gui/gtk/textview_widget.rb, line 71 def do_compile_this_program( this_program = return_content_of_input_widget ) text = 'Now compiling the program `'+sfancy(this_program)+'`.' append_this_text_to_the_textview_widget( text ) # ======================================================================= # # Also report it on the commandline. # ======================================================================= # opnn; e text append_this_text_to_the_textview_widget( this_program ) Thread.new { @compile_object = RBT::Compile.new( this_program.strip ) set_success_or_failure( @compile_object.has_been_successfully_compiled? ) }.join end
height?()
click to toggle source
opnn()
click to toggle source
reset()
click to toggle source
return_content_of_input_widget()
click to toggle source
run()
click to toggle source
set_success_or_failure(i)
click to toggle source
#¶ ↑
set_success_or_failure
¶ ↑
#¶ ↑
# File lib/rbt/gui/gtk/textview_widget.rb, line 98 def set_success_or_failure(i) @success_or_failure = i.to_s.strip if i.to_s == 'true' @label_for_success_or_failure.set_text( 'The program '+return_content_of_input_widget+' has been compiled successfully!' ) else @label_for_success_or_failure.set_text( 'The program '+return_content_of_input_widget+' has NOT been compiled successfully.' ) end @label_for_success_or_failure.make_bold end