[Avida-cvs] [avida-svn] r684 - branches/developers/avida-edward/source/python/AvidaGui2

baerb@myxo.css.msu.edu baerb at myxo.css.msu.edu
Tue May 16 12:59:18 PDT 2006


Author: baerb
Date: 2006-05-16 15:59:18 -0400 (Tue, 16 May 2006)
New Revision: 684

Modified:
   branches/developers/avida-edward/source/python/AvidaGui2/pyGradientScaleCtrl.py
   branches/developers/avida-edward/source/python/AvidaGui2/pyLiveControlsView.ui
   branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishCtrl.py
   branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishView.ui
   branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_StatsView.ui
   branches/developers/avida-edward/source/python/AvidaGui2/pyPetriConfigureView.ui
Log:

Added TooTips to a number of the widgets -- still more need
to be added.



Modified: branches/developers/avida-edward/source/python/AvidaGui2/pyGradientScaleCtrl.py
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/pyGradientScaleCtrl.py	2006-05-16 18:55:00 UTC (rev 683)
+++ branches/developers/avida-edward/source/python/AvidaGui2/pyGradientScaleCtrl.py	2006-05-16 19:59:18 UTC (rev 684)
@@ -8,7 +8,10 @@
 
   def __init__(self,parent = None,name = None,fl = 0):
     pyGradientScaleView.__init__(self,parent,name,fl)
+    QToolTip.add(self, "Dynamic scale for current variable (scale changes as maximum value in population increases or decreases)")
 
+
+
   def construct(self, session_mdl):
     self.m_session_mdl = session_mdl
     self.m_avida = None

Modified: branches/developers/avida-edward/source/python/AvidaGui2/pyLiveControlsView.ui
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/pyLiveControlsView.ui	2006-05-16 18:55:00 UTC (rev 683)
+++ branches/developers/avida-edward/source/python/AvidaGui2/pyLiveControlsView.ui	2006-05-16 19:59:18 UTC (rev 684)
@@ -93,6 +93,9 @@
                         <property name="usesBigPixmap">
                             <bool>false</bool>
                         </property>
+                        <property name="toolTip" stdset="0">
+                            <string>Start (or restart) runnning the program</string>
+                        </property>
                     </widget>
                 </vbox>
             </widget>
@@ -120,6 +123,9 @@
                         <property name="usesBigPixmap">
                             <bool>false</bool>
                         </property>
+                        <property name="toolTip" stdset="0">
+                            <string>Pause running the program</string>
+                        </property>
                     </widget>
                 </vbox>
             </widget>
@@ -151,6 +157,9 @@
             <property name="iconSet">
                 <iconset>image2</iconset>
             </property>
+            <property name="toolTip" stdset="0">
+                <string>Save either an empty or full petri dish to the freezer</string>
+            </property>
         </widget>
     </grid>
 </widget>

Modified: branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishCtrl.py
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishCtrl.py	2006-05-16 18:55:00 UTC (rev 683)
+++ branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishCtrl.py	2006-05-16 19:59:18 UTC (rev 684)
@@ -97,8 +97,14 @@
     current_page_int = self.m_petri_dish_widget_stack.id(current_page)
     if (current_page_int == 0):
        self.m_petri_dish_widget_stack.raiseWidget(1)
+       QToolTip.remove(self.m_petri_dish_toggle)
+       QToolTip.add(self.m_petri_dish_toggle,
+         "Flip to see the <b><i>Petri Dish</i></b>")
     else:
        self.m_petri_dish_widget_stack.raiseWidget(0)
+       QToolTip.remove(self.m_petri_dish_toggle)
+       QToolTip.add(self.m_petri_dish_toggle,
+         "Flip to see the <b><i>Environmental Settings</i></b>")
  
   def MakeConfigVisiableSlot (self):
     if self.dishDisabled:

Modified: branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishView.ui
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishView.ui	2006-05-16 18:55:00 UTC (rev 683)
+++ branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishView.ui	2006-05-16 19:59:18 UTC (rev 684)
@@ -100,6 +100,9 @@
                             <property name="text">
                                 <string>[population]</string>
                             </property>
+                            <property name="toolTip" stdset="0">
+                                <string>Name of petri dish dragged in from the freezer</string>
+                            </property>
                         </widget>
                         <widget class="QLayoutWidget">
                             <property name="name">
@@ -141,6 +144,9 @@
                                     <property name="iconSet">
                                         <iconset>image1</iconset>
                                     </property>
+                                    <property name="toolTip" stdset="0">
+                                        <string>Flip to see the &lt;b&gt;&lt;i&gt;Environmental Settings&lt;/i&gt;&lt;/b&gt;</string>
+                                    </property>
                                 </widget>
                                 <spacer>
                                     <property name="name">
@@ -242,6 +248,9 @@
                                         <property name="text">
                                             <string>&lt;font size="-1"&gt;&lt;p align="right"&gt;Update:&lt;/p&gt;&lt;/font&gt;</string>
                                         </property>
+                                        <property name="toolTip" stdset="0">
+                                            <string>Updates is the basic unit of time in Avida-ED</string>
+                                        </property>
                                     </widget>
                                     <widget class="QLabel">
                                         <property name="name">
@@ -258,6 +267,9 @@
                                         <property name="text">
                                             <string>&lt;font size="-1"&gt;-&lt;/font&gt;</string>
                                         </property>
+                                        <property name="toolTip" stdset="0">
+                                            <string>Updates is the basic unit of time in Avida-ED</string>
+                                        </property>
                                     </widget>
                                     <widget class="QComboBox">
                                         <item>
@@ -281,6 +293,9 @@
                                                 <pointsize>11</pointsize>
                                             </font>
                                         </property>
+                                        <property name="toolTip" stdset="0">
+                                            <string>Choose what variable to view</string>
+                                        </property>
                                     </widget>
                                     <widget class="QLabel">
                                         <property name="name">
@@ -297,6 +312,9 @@
                                         <property name="text">
                                             <string>&lt;font size="-1"&gt;&lt;p align="right"&gt;Zoom:&lt;/p&gt;&lt;/font&gt;</string>
                                         </property>
+                                        <property name="toolTip" stdset="0">
+                                            <string>Zoom in or out on petri dish</string>
+                                        </property>
                                     </widget>
                                     <widget class="QSpinBox">
                                         <property name="name">
@@ -310,6 +328,9 @@
                                                 <verstretch>0</verstretch>
                                             </sizepolicy>
                                         </property>
+                                        <property name="toolTip" stdset="0">
+                                            <string>Zoom in or out on petri dish</string>
+                                        </property>
                                     </widget>
                                 </hbox>
                             </widget>
@@ -481,6 +502,10 @@
         <property type="0">-1</property>
         <property type="1">pyPetriDishCtrl</property>
         <property type="0">-1</property>
+        <property type="1">pyPetriDishCtrl</property>
+        <property type="0">-1</property>
+        <property type="1">pyPetriDishCtrl</property>
+        <property type="0">-1</property>
         <property type="pyPetriDishCtrl"></property>
         <property type="-1">1</property>
     </customwidget>
@@ -546,6 +571,10 @@
         <property type="0">-1</property>
         <property type="1">pyGradientScaleCtrl</property>
         <property type="0">-1</property>
+        <property type="1">pyGradientScaleCtrl</property>
+        <property type="0">-1</property>
+        <property type="1">pyGradientScaleCtrl</property>
+        <property type="0">-1</property>
         <property type="pyGradientScaleCtrl"></property>
         <property type="-1">1</property>
     </customwidget>
@@ -611,6 +640,10 @@
         <property type="0">-1</property>
         <property type="1">pyLiveControlsCtrl</property>
         <property type="0">-1</property>
+        <property type="1">pyLiveControlsCtrl</property>
+        <property type="0">-1</property>
+        <property type="1">pyLiveControlsCtrl</property>
+        <property type="0">-1</property>
         <property type="pyLiveControlsCtrl"></property>
         <property type="-1">1</property>
     </customwidget>

Modified: branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_StatsView.ui
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_StatsView.ui	2006-05-16 18:55:00 UTC (rev 683)
+++ branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_StatsView.ui	2006-05-16 19:59:18 UTC (rev 684)
@@ -9,8 +9,8 @@
     </property>
     <property name="geometry">
         <rect>
-            <x>87</x>
-            <y>171</y>
+            <x>0</x>
+            <y>0</y>
             <width>400</width>
             <height>400</height>
         </rect>
@@ -68,6 +68,9 @@
             <property name="title">
                 <string>Org. Clicked on  Report</string>
             </property>
+            <property name="toolTip" stdset="0">
+                <string>Information on single highlighted organisim from population</string>
+            </property>
             <vbox>
                 <property name="name">
                     <cstring>unnamed</cstring>
@@ -925,6 +928,9 @@
             <property name="title">
                 <string>Population Statistics</string>
             </property>
+            <property name="toolTip" stdset="0">
+                <string>Information about the entire population of organisms in the petri dish</string>
+            </property>
             <vbox>
                 <property name="name">
                     <cstring>unnamed</cstring>

Modified: branches/developers/avida-edward/source/python/AvidaGui2/pyPetriConfigureView.ui
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/pyPetriConfigureView.ui	2006-05-16 18:55:00 UTC (rev 683)
+++ branches/developers/avida-edward/source/python/AvidaGui2/pyPetriConfigureView.ui	2006-05-16 19:59:18 UTC (rev 684)
@@ -222,6 +222,9 @@
                                     <property name="orientation">
                                         <enum>Horizontal</enum>
                                     </property>
+                                    <property name="toolTip" stdset="0">
+                                        <string>Set the size of the petri dish (1 to 100)</string>
+                                    </property>
                                 </widget>
                                 <widget class="QLabel">
                                     <property name="name">
@@ -329,6 +332,9 @@
                     <property name="currentItem">
                         <number>0</number>
                     </property>
+                    <property name="toolTip" stdset="0">
+                        <string>The name of the organism(s) that will start the population on an empty petri dish (normally dragged in)</string>
+                    </property>
                 </widget>
             </vbox>
         </widget>
@@ -424,6 +430,9 @@
                             <property name="checked">
                                 <bool>true</bool>
                             </property>
+                            <property name="toolTip" stdset="0">
+                                <string>Reward the &lt;b&gt;&lt;i&gt;nand&lt;/i&gt;&lt;/b&gt; function</string>
+                            </property>
                         </widget>
                         <widget class="QCheckBox" row="2" column="2">
                             <property name="name">
@@ -438,6 +447,9 @@
                             <property name="checked">
                                 <bool>true</bool>
                             </property>
+                            <property name="toolTip" stdset="0">
+                                <string>Reward the &lt;b&gt;&lt;i&gt;ornot&lt;/i&gt;&lt;/b&gt; function</string>
+                            </property>
                         </widget>
                         <widget class="QCheckBox" row="1" column="2">
                             <property name="name">
@@ -452,6 +464,9 @@
                             <property name="checked">
                                 <bool>true</bool>
                             </property>
+                            <property name="toolTip" stdset="0">
+                                <string>Reward the &lt;b&gt;&lt;i&gt;and&lt;/i&gt;&lt;/b&gt; function</string>
+                            </property>
                         </widget>
                         <widget class="QCheckBox" row="1" column="4">
                             <property name="name">
@@ -466,6 +481,9 @@
                             <property name="checked">
                                 <bool>true</bool>
                             </property>
+                            <property name="toolTip" stdset="0">
+                                <string>Reward the &lt;b&gt;&lt;i&gt;or&lt;/i&gt;&lt;/b&gt; function</string>
+                            </property>
                         </widget>
                         <widget class="QCheckBox" row="1" column="6">
                             <property name="name">
@@ -480,6 +498,9 @@
                             <property name="checked">
                                 <bool>true</bool>
                             </property>
+                            <property name="toolTip" stdset="0">
+                                <string>Reward the &lt;b&gt;&lt;i&gt;nor&lt;/i&gt;&lt;/b&gt; function</string>
+                            </property>
                         </widget>
                         <widget class="QLabel" row="0" column="0">
                             <property name="name">
@@ -518,6 +539,9 @@
                             <property name="checked">
                                 <bool>true</bool>
                             </property>
+                            <property name="toolTip" stdset="0">
+                                <string>Reward the &lt;b&gt;&lt;i&gt;not&lt;/i&gt;&lt;/b&gt; function</string>
+                            </property>
                         </widget>
                         <widget class="QLabel" row="0" column="2">
                             <property name="name">
@@ -570,6 +594,9 @@
                             <property name="checked">
                                 <bool>true</bool>
                             </property>
+                            <property name="toolTip" stdset="0">
+                                <string>Reward the &lt;b&gt;&lt;i&gt;xor&lt;/i&gt;&lt;/b&gt; function</string>
+                            </property>
                         </widget>
                         <widget class="QCheckBox" row="2" column="4">
                             <property name="name">
@@ -584,6 +611,9 @@
                             <property name="checked">
                                 <bool>true</bool>
                             </property>
+                            <property name="toolTip" stdset="0">
+                                <string>Reward the &lt;b&gt;&lt;i&gt;andnot&lt;/i&gt;&lt;/b&gt; function</string>
+                            </property>
                         </widget>
                         <widget class="Line" row="0" column="3" rowspan="3" colspan="1">
                             <property name="name">
@@ -652,6 +682,9 @@
                             <property name="checked">
                                 <bool>true</bool>
                             </property>
+                            <property name="toolTip" stdset="0">
+                                <string>Reward the &lt;b&gt;&lt;i&gt;equals&lt;/i&gt;&lt;/b&gt; function</string>
+                            </property>
                         </widget>
                     </grid>
                 </widget>
@@ -758,7 +791,7 @@
                                 </font>
                             </property>
                             <property name="focusPolicy">
-                                <enum>StrongFocus</enum>
+                                <enum>TabFocus</enum>
                             </property>
                             <property name="text">
                                 <string>No</string>
@@ -766,6 +799,9 @@
                             <property name="checked">
                                 <bool>true</bool>
                             </property>
+                            <property name="toolTip" stdset="0">
+                                <string>Each time this petri is run the results will not be exactly the same</string>
+                            </property>
                         </widget>
                         <widget class="QRadioButton">
                             <property name="name">
@@ -776,11 +812,14 @@
                                 </font>
                             </property>
                             <property name="focusPolicy">
-                                <enum>StrongFocus</enum>
+                                <enum>NoFocus</enum>
                             </property>
                             <property name="text">
                                 <string>Yes</string>
                             </property>
+                            <property name="toolTip" stdset="0">
+                                <string>Each time this petri is run the results will be exactly the same</string>
+                            </property>
                         </widget>
                         <spacer>
                             <property name="name">
@@ -907,7 +946,7 @@
                                 </font>
                             </property>
                             <property name="focusPolicy">
-                                <enum>StrongFocus</enum>
+                                <enum>TabFocus</enum>
                             </property>
                             <property name="text">
                                 <string>Nearby their parent</string>
@@ -915,6 +954,9 @@
                             <property name="checked">
                                 <bool>true</bool>
                             </property>
+                            <property name="toolTip" stdset="0">
+                                <string>When a new organism is split off place it in one of the 8 cells around the parent</string>
+                            </property>
                         </widget>
                         <widget class="QRadioButton">
                             <property name="name">
@@ -925,11 +967,14 @@
                                 </font>
                             </property>
                             <property name="focusPolicy">
-                                <enum>StrongFocus</enum>
+                                <enum>NoFocus</enum>
                             </property>
                             <property name="text">
                                 <string>Anywhere, randomly</string>
                             </property>
+                            <property name="toolTip" stdset="0">
+                                <string>When a new organism is split off place it in a cell any where in the petri dish</string>
+                            </property>
                         </widget>
                         <spacer>
                             <property name="name">
@@ -1064,7 +1109,7 @@
                                 </font>
                             </property>
                             <property name="focusPolicy">
-                                <enum>StrongFocus</enum>
+                                <enum>TabFocus</enum>
                             </property>
                             <property name="text">
                                 <string>Manually</string>
@@ -1072,6 +1117,9 @@
                             <property name="checked">
                                 <bool>true</bool>
                             </property>
+                            <property name="toolTip" stdset="0">
+                                <string>Program will run until you pause it using the button under the petri dish</string>
+                            </property>
                         </widget>
                         <widget class="QLayoutWidget">
                             <property name="name">
@@ -1099,6 +1147,9 @@
                                     <property name="text">
                                         <string>At</string>
                                     </property>
+                                    <property name="toolTip" stdset="0">
+                                        <string>Run will pause at a given update and wait to you press the play button under the petri dish</string>
+                                    </property>
                                 </widget>
                                 <widget class="QSpinBox">
                                     <property name="name">
@@ -1181,6 +1232,9 @@
             <property name="text">
                 <string>Freeze Petri Dish</string>
             </property>
+            <property name="toolTip" stdset="0">
+                <string>Save either an empty or full petri dish to the freezer</string>
+            </property>
         </widget>
     </vbox>
 </widget>




More information about the Avida-cvs mailing list