code/01rwdcore/openhelpwindow.rb in rubyslippers-0.99 vs code/01rwdcore/openhelpwindow.rb in rubyslippers-1.00

- old
+ new

@@ -1,42 +1,23 @@ # this code is to call the help window def runhelpwindow - + $helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing","applet_tinkerbackeditconfiguration","remote_control"] + if @rwd_window == "main" if @rwd_tab == "documentsrwdtinkerone" $help_topic = "documents_rwdtinker" end - $helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing"] - $previouswindow = @rwd_window - $previoustab = @rwd_tab - -end - - if @rwd_window == "tinkerbackwindow" - if @rwd_tab == "filelister" - $help_topic = "applet_viewing" - $helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing"] - end - if @rwd_tab == "zipslister" - $help_topic = "applet_installation" - $helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing"] - end - if @rwd_tab == "editconfigurationfile" - $help_topic = "applet_tinkerbackeditconfiguration" - $helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing"] - end - if @rwd_tab == "rwdremotecontrol" - $help_topic = "remote_control" - $helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing", "remote_control"] - end - - $previouswindow = @rwd_window - $previoustab = @rwd_tab - end +end + if @rwd_window == "rwdtinkerhelpwindow" - $helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing"] + puts "in help window processing" + else + $previouswindow = @rwd_window + $previoustab = @rwd_tab end + + @rwdhelptopic = $help_topic @rwdhelpdataoutput = "#{Helptext[:"#{$help_topic}"]}" @rwdhelpsubchoicesoutput = $helptopicsarray.rwd_method("choosenewhelptopic") @rwd_window = "rwdtinkerhelpwindow" end