code/01rwdcore/openhelpwindow.rb in rwddemo-0.91 vs code/01rwdcore/openhelpwindow.rb in rwddemo-0.92
- old
+ new
@@ -1,31 +1,31 @@
# 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","applet_tinkerbackeditconfiguration","remote_control"]
+
+ if @rwd_window == "main"
+ if @rwd_tab == "documentsrwdtinkerone"
+ $help_topic = "documents_rwdtinker"
+ end
+
+ end
+
+ if @rwd_window == "rwdtinkerhelpwindow"
+ 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
-
- if @rwd_window == "rwdtinkerhelpwindow"
- 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
-
- def choosenewhelptopic(inffile)
- $help_topic = inffile
- runhelpwindow
- end
+
+def choosenewhelptopic(inffile)
+ $help_topic = inffile
+ runhelpwindow
+end