Commit 669fffcb authored by sumpfralle's avatar sumpfralle

added a "help" link to the process pool window

enabled keyboard shortcuts for the process pool window


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@786 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent fd22cba5
...@@ -6786,14 +6786,42 @@ Any selected group of dimensions will be scaled accordingly.</property> ...@@ -6786,14 +6786,42 @@ Any selected group of dimensions will be scaled accordingly.</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="ProcessPoolDisabledText"> <object class="GtkVBox" id="ProcessPoolDisabledBox">
<property name="visible">True</property> <property name="visible">True</property>
<property name="xalign">0</property> <property name="orientation">vertical</property>
<property name="label" translatable="yes">Multiprocessing is currently not enabled on your system. <child>
<object class="GtkLabel" id="ProcessPoolDisabledLabel">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Multiprocessing is currently not enabled on your system.
Please run PyCAM with the parameter "--enable-server" to allow remote workers to connect to your host.</property> Please run PyCAM with the parameter "--enable-server" to allow remote workers to connect to your host.</property>
<property name="use_markup">True</property> <property name="use_markup">True</property>
<property name="wrap">True</property> <property name="wrap">True</property>
<property name="width_chars">60</property> <property name="width_chars">60</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLinkButton" id="ProcessPoolHelpLink">
<property name="label" translatable="yes">Read more about the Server Mode.</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="has_tooltip">True</property>
<property name="relief">none</property>
<property name="xalign">0</property>
<property name="uri">http://sourceforge.net/apps/mediawiki/pycam/index.php?title=ServerMode</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
...@@ -6803,6 +6831,8 @@ Please run PyCAM with the parameter "--enable-server" to allow remote workers to ...@@ -6803,6 +6831,8 @@ Please run PyCAM with the parameter "--enable-server" to allow remote workers to
</child> </child>
</object> </object>
<packing> <packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property> <property name="position">1</property>
</packing> </packing>
</child> </child>
......
...@@ -726,6 +726,7 @@ class ProjectGui: ...@@ -726,6 +726,7 @@ class ProjectGui:
self.about_window.add_accel_group(self._accel_group) self.about_window.add_accel_group(self._accel_group)
self.preferences_window.add_accel_group(self._accel_group) self.preferences_window.add_accel_group(self._accel_group)
self.log_window.add_accel_group(self._accel_group) self.log_window.add_accel_group(self._accel_group)
self.process_pool_window.add_accel_group(self._accel_group)
# load menu data # load menu data
gtk_menu_file = get_data_file_location(GTKMENU_FILE) gtk_menu_file = get_data_file_location(GTKMENU_FILE)
if gtk_menu_file is None: if gtk_menu_file is None:
...@@ -1468,7 +1469,7 @@ class ProjectGui: ...@@ -1468,7 +1469,7 @@ class ProjectGui:
new_state = action new_state = action
if new_state: if new_state:
is_available = pycam.Utils.threading.is_pool_available() is_available = pycam.Utils.threading.is_pool_available()
self.gui.get_object("ProcessPoolDisabledText").set_visible( self.gui.get_object("ProcessPoolDisabledBox").set_visible(
not is_available) not is_available)
self.gui.get_object("ProcessPoolStatisticsBox").set_visible( self.gui.get_object("ProcessPoolStatisticsBox").set_visible(
is_available) is_available)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment