Skip to content
Snippets Groups Projects
Commit 6cd00b59 authored by Stéphane Albert's avatar Stéphane Albert
Browse files

ENH: Added zoom to layer extent button.

parent 85210e2a
No related branches found
No related tags found
No related merge requests found
......@@ -1295,6 +1295,14 @@ MainWindow
emit UserZoomFull();
}
/*****************************************************************************/
void
MainWindow
::on_action_ZoomLayer_triggered()
{
emit UserZoomLayer();
}
/*****************************************************************************/
void
MainWindow
......
......@@ -138,6 +138,8 @@ signals:
void UserZoomFull();
void UserZoomLayer();
/*-[ PROTECTED SECTION ]---------------------------------------------------*/
//
......@@ -422,6 +424,12 @@ private slots:
*/
void on_action_ZoomFull_triggered();
/**
* \brief Qt auto-connected slot which is called when zoom-layer button
* is pressed.
*/
void on_action_ZoomLayer_triggered();
/**
*/
void OnFilenameDropped( const QString& filename );
......
<RCC>
<qresource prefix="/icons">
<file>../../../Data/Icons/zoom-1to1.png</file>
<file alias="action_ZoomFull_Icon">../../../Data/Icons/zoom-1to1.png</file>
<file alias="otb">../../../Data/Icons/monteverdi2-32x32.png</file>
<file alias="process">../../../Data/Icons/alg.png</file>
<file>../../../Data/Icons/execute.png</file>
......@@ -10,7 +10,7 @@
<file alias="action_ZoomIn_Icon">../../../Data/Icons/action-zoomin_24x24.png</file>
<file alias="action_ZoomExtent_Icon">../../../Data/Icons/action-zoomfullextent_24x24.png</file>
<file alias="action_ZoomOut_Icon">../../../Data/Icons/action-zoomout_24x24.png</file>
<file alias="action_ZoomFull_Icon">../../../Data/Icons/action-zoomtolayer_24x24.png</file>
<file alias="action_ZoomLayer_Icon">../../../Data/Icons/action-zoomtolayer_24x24.png</file>
<file alias="action_Open_Icon">../../../Data/Icons/document-open_32x32.png</file>
</qresource>
<qresource prefix="/images">
......
......@@ -44,6 +44,12 @@
<property name="title">
<string>&amp;View</string>
</property>
<addaction name="action_ZoomIn"/>
<addaction name="action_ZoomOut"/>
<addaction name="action_ZoomFull"/>
<addaction name="action_ZoomExtent"/>
<addaction name="action_ZoomLayer"/>
<addaction name="separator"/>
</widget>
<widget class="QMenu" name="menu_Edit">
<property name="title">
......@@ -88,6 +94,7 @@
<addaction name="action_ZoomIn"/>
<addaction name="action_ZoomOut"/>
<addaction name="action_ZoomExtent"/>
<addaction name="action_ZoomLayer"/>
<addaction name="action_ZoomFull"/>
</widget>
<action name="action_Quit">
......@@ -180,7 +187,7 @@
<normaloff>:/icons/action_ZoomExtent_Icon</normaloff>:/icons/action_ZoomExtent_Icon</iconset>
</property>
<property name="text">
<string>Zoom to image extent</string>
<string>Zoom to full extent</string>
</property>
</action>
<action name="action_ZoomFull">
......@@ -192,7 +199,22 @@
<normaloff>:/icons/action_ZoomFull_Icon</normaloff>:/icons/action_ZoomFull_Icon</iconset>
</property>
<property name="text">
<string>Zoom to full resolution</string>
<string>Zoom to full resolution (1:1)</string>
</property>
</action>
<action name="action_ZoomLayer">
<property name="enabled">
<bool>false</bool>
</property>
<property name="icon">
<iconset resource="mvdMainWindow.qrc">
<normaloff>:/icons/action_ZoomLayer_Icon</normaloff>:/icons/action_ZoomLayer_Icon</iconset>
</property>
<property name="text">
<string>Zoom to layer extent</string>
</property>
<property name="toolTip">
<string>Zoom to layer extent</string>
</property>
</action>
</widget>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment