Commit b7208d80 authored by Victor Poughon's avatar Victor Poughon

ENH: Add a gamma reset button

parent 39c6c5ec
......@@ -323,6 +323,8 @@ private slots:
/**
*/
void on_gammaSlider_valueChanged( int gamma );
void on_gammaResetButton_clicked();
};
} // end namespace 'mvd'.
......
......@@ -120,7 +120,7 @@ set( OTBMonteverdiGUI_FORMS
#############################################################################
set( OTBMonteverdiGUI_RESOURCES
# mvdIcons.qrc
mvdIcons.qrc
)
#############################################################################
......
......@@ -454,4 +454,11 @@ ColorDynamicsWidget
QToolTip::showText(mapToGlobal(m_UI->gammaSlider->pos()),tr("Gamma: ") % QString::number(GetGamma()) );
}
void
ColorDynamicsWidget
::on_gammaResetButton_clicked()
{
this->SetGamma(1.0);
}
} // end namespace 'mvd'
......@@ -158,6 +158,17 @@
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="gammaResetButton">
<property name="toolTip">
<string>Reset value to 1.</string>
</property>
<property name="icon">
<iconset resource="mvdIcons.qrc">
<normaloff>:/Utilities/Data/Icons/view-refresh.png</normaloff>:/Utilities/Data/Icons/view-refresh.png</iconset>
</property>
</widget>
</item>
</layout>
</widget>
</item>
......@@ -307,7 +318,9 @@
<tabstop>noDataLineEdit</tabstop>
<tabstop>noDataButton</tabstop>
</tabstops>
<resources/>
<resources>
<include location="mvdIcons.qrc"/>
</resources>
<connections>
<connection>
<sender>noDataCheckBox</sender>
......
......@@ -3,5 +3,6 @@
<file>../../../../Utilities/Data/Icons/execute.png</file>
<file>../../../../Utilities/Data/Icons/locked.png</file>
<file>../../../../Utilities/Data/Icons/unlocked.png</file>
<file>../../../../Utilities/Data/Icons/view-refresh.png</file>
</qresource>
</RCC>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment