Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to allow grouped sub-graphs to be visible on GCylc startup. #2660

Merged
merged 5 commits into from
Jul 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions doc/src/cylc-user-guide/gcylcrc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@ \subsubsection{sort column ascending}
\item {\em example:} \lstinline@sort column ascending = False@
\end{myitemize}

\subsubsection{sub-graphs on}

Set the sub-graphs view to be enabled by default.
This can be changed later using the toggle options for the graph view.

\begin{myitemize}
\item {\em type:} boolean (False or True)
\item {\em default:} ``False''
\end{myitemize}


\subsubsection{task filter highlight color}

Expand Down
1 change: 1 addition & 0 deletions lib/cylc/cfgspec/gcylc.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
'transpose dot': vdr(vtype='boolean', default=False),
'transpose graph': vdr(vtype='boolean', default=False),
'ungrouped views': vdr(vtype='string_list', default=[]),
'sub-graphs on': vdr(vtype='boolean', default=False),
'use theme': vdr(vtype='string', default="default"),
'window size': vdr(vtype='integer_list', default=[800, 500]),
}
Expand Down
4 changes: 3 additions & 1 deletion lib/cylc/gui/updater_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
from cylc.network.httpclient import ClientError
from cylc.task_id import TaskID
from cylc.task_state import TASK_STATUS_RUNAHEAD
from cylc.cfgspec.gcylc import gcfg


def compare_dict_of_dict(one, two):
Expand Down Expand Up @@ -81,7 +82,8 @@ def __init__(self, cfg, updater, theme, info_bar, xdot):
self.best_fit = True # zoom to page size
self.normal_fit = False # zoom to 1.0 scale
self.crop = False
self.subgraphs_on = False # organise by cycle point.
# organise by cycle point.
self.subgraphs_on = gcfg.get(["sub-graphs on"])

self.descendants = {}
self.all_families = []
Expand Down
1 change: 1 addition & 0 deletions lib/cylc/gui/view_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ def get_toolitems(self):
gtk.ICON_SIZE_SMALL_TOOLBAR)
self.subgraphs_button.set_icon_widget(image)
self.subgraphs_button.set_label("Subgraphs")
self.subgraphs_button.set_active(self.t.subgraphs_on)
self.subgraphs_button.connect(
'clicked', self.toggle_cycle_point_subgraphs)
self._set_tooltip(self.subgraphs_button,
Expand Down