%% position
%    set the position of all the gui elements
% inputs:
%   object:ValidationReport - current object
% outputs:
%   none
% Author: Colin Eles elesc@mcmaster.ca
% Organization: McMaster Centre for Software Certification
function [] = position(object)
set(object.edit_tcc,'position',[object.offset, (object.fig_height - object.offset - object.header_height - object.offset - object.seq_height) ,object.TCC_width,object.TCC_height]);
set(object.edit_seq,'position',[object.offset + object.TCC_width + object.offset, (object.fig_height - object.offset - object.header_height - object.offset - object.seq_height),object.seq_width,object.seq_height]);
set(object.edit_ce, 'position',[object.offset + object.TCC_width + object.offset + object.seq_width + object.offset, (object.fig_height - object.offset - object.header_height - object.offset - object.seq_height) ,object.ce_width,object.ce_height]);

set(object.label_tcc,'position',[object.offset, (object.fig_height - object.offset - object.header_height) ,object.TCC_width,object.label_height]);
set(object.label_seq,'position',[object.offset + object.TCC_width + object.offset, (object.fig_height - object.offset - object.header_height) ,object.TCC_width,object.label_height]);
set(object.label_ce,'position',[object.offset + object.TCC_width + object.offset + object.seq_width + object.offset, (object.fig_height - object.offset - object.header_height) ,object.TCC_width,object.label_height]);

set(object.label_title,'position',[object.offset, (object.fig_height - object.offset - object.label_height*2) ,object.TCC_width,object.label_height*2]);
set(object.label_page,'position',[object.fig_width-object.pb_nav_width*2-object.offset*2, object.fig_height-object.offset-object.header_height+object.label_height+object.pb_nav_height+object.offset/2,object.pb_nav_width*2+object.offset,object.pb_nav_height]);
set(object.pb_next,'position',[object.fig_width - object.pb_nav_width - object.offset, object.fig_height - object.offset - object.header_height + object.label_height + object.offset/2, object.pb_nav_width, object.pb_nav_height]);
set(object.pb_prev,'position',[object.fig_width - object.pb_nav_width - object.offset - object.offset - object.pb_nav_width, object.fig_height - object.offset - object.header_height + object.label_height+object.offset/2, object.pb_nav_width, object.pb_nav_height]);
set(object.pb_open,'position',[object.fig_width - object.pb_nav_width - object.offset - object.offset - object.pb_nav_width - object.offset - object.pb_nav_width, object.fig_height - object.offset - object.header_height + object.label_height+object.offset/2, object.pb_nav_width, object.pb_nav_height]);
end

