Skip to content

Commit

Permalink
some more cleanup and default positioning of widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
wahln committed Aug 3, 2023
1 parent 27b01e8 commit 38a43ce
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gui/widgets/matRad_DVHStatsWidget.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

handleParent = figure(...
'Units','normalized',...
'Position',[0.005 0.05 0.495 0.9],...
'OuterPosition',[0 0 0.5 1],...
'Visible','on',...
'Color',matRad_cfg.gui.backgroundColor,... 'CloseRequestFcn',@(hObject,eventdata) figure1_CloseRequestFcn(this,hObject,eventdata),...
'IntegerHandle','off',...
Expand Down
6 changes: 3 additions & 3 deletions gui/widgets/matRad_PlanWidget.m
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ function btnSetTissue_Callback(this, hObject, eventdata)
end

Width = 400;
Height = 200 + 20*size(data,1);
Height = 300 + 20*size(data,1);
ScreenSize = get(0,'ScreenSize');
% show "set tissue parameter" window
figHandles = get(0,'Children');
Expand All @@ -1101,8 +1101,8 @@ function btnSetTissue_Callback(this, hObject, eventdata)
%set focus
figure(figTissue);
else
figTissue = figure('Name','Set Tissue Parameters','Color',[.5 .5 .5],'NumberTitle','off','Position',...
[ceil(ScreenSize(3)/2) ceil(ScreenSize(4)/2) Width Height]);
figTissue = figure('Name','Set Tissue Parameters','Color',[.5 .5 .5],'NumberTitle','off','OuterPosition',...
[ceil(ScreenSize(3)/2) 100 Width Height]);
end

% define the tissue parameter table
Expand Down
3 changes: 1 addition & 2 deletions gui/widgets/matRad_VisualizationWidget.m
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,7 @@
'Units','normalized',...
'String','Show DVH/QI',...
'Tooltip','Render the dose volume histogram along with quality indicators',...
'Position',gridPos{5,3},...
'BackgroundColor',[0.8 0.8 0.8],...
'Position',gridPos{5,3},...
'Callback',@(hObject,eventdata) btnDVH_Callback(this,hObject,eventdata),...
'Enable','off',...
'Tag','btnDVH',...
Expand Down
2 changes: 1 addition & 1 deletion gui/widgets/matRad_importDicomWidget.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
'Units','characters',...
'MenuBar','none',...
'NumberTitle','off',...
'Position',[136 22 220 40],...
'Position',[25 10 220 40],...
'Color',matRad_cfg.gui.backgroundColor,...
'Name','Import Dicom');
end
Expand Down
2 changes: 1 addition & 1 deletion gui/widgets/matRad_importWidget.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
handleParent = figure(...
'MenuBar','none',...
'Units','characters',...
'Position',[135.8 56.7692307692308 89.2 18.3846153846154],...
'Position',[25 10 89.2 18.3846153846154],...
'Color',matRad_cfg.gui.backgroundColor,...
'Name','Import Patient',...
'HandleVisibility','callback',...
Expand Down

0 comments on commit 38a43ce

Please sign in to comment.