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

Split view 10094 develop #969

Merged
merged 22 commits into from
Apr 4, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
4ecf739
Bulk of the code/pieces in place to run script
Jan 8, 2013
91fbbce
Script_ui 'map' key-value pairs parsed a bit nicer
Jan 9, 2013
91cca29
Moving js to ome.split_view_figure.js etc
Jan 9, 2013
1f3fc11
Added header and footer to Split_View_Figure page
Jan 9, 2013
2ee7872
Image row labels displayed and updated on Figure
Jan 9, 2013
972540f
Figure scripts menu/launch fixes
Jan 10, 2013
e3758cf
Hide Z-projection controls if disabled
Jan 10, 2013
7623eba
metadata_general 'includes' tool bar (contains link btn)
Jan 10, 2013
4d00c9a
Moving FigureScripts button to right-panel toolbar
Jan 11, 2013
1bc3d40
Fix rebase with jshint PR545
Jan 11, 2013
d214caa
Moving toolbar to top of right panel
Jan 11, 2013
d7f8793
Added scripts button and toolbar to batch_annotate panel
Jan 12, 2013
8b775d9
Styling dropdown menus and Split View Fig html
Jan 14, 2013
54345e5
Remove placeholder from scripts menu dropdown
Jan 14, 2013
4ffc229
Zoom slider for Split_View Fig preview
Jan 14, 2013
46f225e
Disable Figure Scripts if selected objects not suitable
Jan 15, 2013
bac75c6
Number fields in script UIs only accept numbers. See #10055
Jan 24, 2013
87c796c
Merge branch 'split_view_10094_develop' into split_view_merge_develop
Mar 25, 2013
9334641
Merge cleanup - file-paths button added to toolbar
Mar 21, 2013
69f94a8
Drag-n-drop to re-order figure rows (re-order 'IDs')
Mar 22, 2013
2fb374c
If channel colour is white, labels should be black
Mar 23, 2013
105ba63
Removing commented-out conflicts from dusty.css
Mar 27, 2013
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
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,29 @@ def getPlateId(self):
elif self.acquisition:
return self.acquisition._obj.plate.id.val


def listFigureScripts(self, objDict=None):
"""
This configures all the Figure Scripts, setting their enabled status given the
currently selected object (self.image etc) or batch objects (uses objDict).
"""
figureScripts = []
# id is used in url and is mapped to full script path by views.figure_script()
splitView = {'id': 'SplitView', 'name':'Split View Figure', 'enabled': False,
'tooltip': "Create a figure of images, splitting their channels into separate views"}
# Split View Figure is enabled if we have at least one image with SizeC > 1
if self.image:
splitView['enabled'] = (self.image.getSizeC() > 1)
elif objDict is not None:
if 'image' in objDict:
for i in objDict['image']:
if i.getSizeC() > 1:
splitView['enabled'] = True
break
figureScripts.append(splitView)
return figureScripts


def openAstexViewerCompatible(self):
"""
Is the image suitable to be viewed with the Volume viewer 'Open Astex Viewer' applet?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ button::-moz-focus-inner {
.btn_group {background: url(../../webgateway/img/icon_add_group.png )center center no-repeat;}
.btn_delete {background: url(../../webgateway/img/icon_delete.png )center center no-repeat;}
.btn_edit {background: url(../../webgateway/img/icon_edit.png )center center no-repeat;}
.btn_figscripts {background: url(../../webgateway/img/icon_figure_scripts.png) center center no-repeat;}
.btn_fspath {background: url(../../webgateway/img/icon_fs_path.png )center center no-repeat;}
.btn_link {background: url(../../webgateway/img/icon_link.png )center center no-repeat;}

Expand Down Expand Up @@ -163,7 +164,7 @@ button::-moz-focus-inner {
display:block;
}

#general_tab .btn_download span {
.toolbar_dropdown .btn span {
width:20px;
height:18px;
display:block;
Expand All @@ -173,18 +174,19 @@ button::-moz-focus-inner {
background: url(../../webgateway/img/icon_download2.png) center center no-repeat;
}

#download_dropdown .dropdown {
right: 0px;
left: auto;
}
#download_dropdown {
.toolbar_dropdown {
float:right;
margin-left: 5px;
position: relative;
}
.toolbar_dropdown .dropdown {
right: -35px;
left: auto;
}
#download_dropdown .dropdown:before {
.toolbar_dropdown .dropdown:before {
left: 68% !important;
}
#download_dropdown ul a {
.toolbar_dropdown ul a {
background: none;
font-size: 80%;
}
Expand Down Expand Up @@ -406,7 +408,7 @@ button::-moz-focus-inner {
}

.btn_text span {
padding:6px 10px !important;
padding:3px 7px !important;
}


Expand Down Expand Up @@ -487,7 +489,7 @@ button::-moz-focus-inner {
width:12px;
height:12px;
position:absolute;
z-index:99;
z-index:90;
right:5px;
top:5px;
-webkit-border-radius:20px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@
/* Right Inner Content */

.right_tab_inner {
padding:15px;
padding:10px 15px;
overflow: auto;
top:6px ;bottom:0px; left:0px; right:0px;
position: absolute;
Expand All @@ -549,7 +549,7 @@
/* Seperator */

hr {
margin:15px 0;
margin:10px 0;
display:block;
border:none;
border-bottom: solid 1px rgba(255,255,255,.8);
Expand Down Expand Up @@ -588,7 +588,7 @@


.data_heading {
margin-bottom:20px;
margin-bottom:15px;
border-bottom:solid 1px hsl(210,10%,90%);
overflow:hidden;
-webkit-box-shadow:0 1px 0 rgba(255,255,255,.5);
Expand All @@ -597,7 +597,7 @@
-moz-box-shadow:0 1px 0 rgba(255,255,255,.5); /* FF3.5+ */
box-shadow:0 1px 0 rgba(255,255,255,.5); /* Opera 10.5, IE 9.0 */

padding:10px 0;
padding:10px 0 5px 0;
}


Expand Down Expand Up @@ -2284,7 +2284,22 @@ width: 250px;

}

/* Figure scripts dialog */
.rowDragHandle {
float: left;
visibility: hidden;
position: relative;
left: -5px;
width: 11px;
height: 30px;
border-radius: 4px;
cursor: pointer;
background:#ddd url(../image/drag_handle_arrows_up-down.png) no-repeat center center;
}

tr.figImageData:hover .rowDragHandle {
visibility: visible;
}



Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading