Skip to content
Snippets Groups Projects
Commit 183f492d authored by Victor Poughon's avatar Victor Poughon
Browse files

WIP on effects reset button

parent 73b9d8f5
No related branches found
No related tags found
No related merge requests found
...@@ -221,6 +221,7 @@ public slots: ...@@ -221,6 +221,7 @@ public slots:
inline void SelectLast(); inline void SelectLast();
inline void SelectPrevious(); inline void SelectPrevious();
inline void SelectNext(); inline void SelectNext();
void ResetEffects();
/*-[ SIGNALS SECTION ]-----------------------------------------------------*/ /*-[ SIGNALS SECTION ]-----------------------------------------------------*/
......
...@@ -727,5 +727,10 @@ StackedLayerModel ...@@ -727,5 +727,10 @@ StackedLayerModel
/*******************************************************************************/ /*******************************************************************************/
/* SLOTS */ /* SLOTS */
/*******************************************************************************/ /*******************************************************************************/
void
StackedLayerModel
::ResetEffects()
{
}
} // end namespace 'mvd' } // end namespace 'mvd'
...@@ -188,6 +188,9 @@ signals: ...@@ -188,6 +188,9 @@ signals:
/** /**
*/ */
void ApplyButtonClicked(); void ApplyButtonClicked();
/**
*/
void ResetEffectsButtonClicked();
/** /**
*/ */
void CopyLayerRequested( const AbstractLayerModel * ); void CopyLayerRequested( const AbstractLayerModel * );
......
...@@ -220,6 +220,14 @@ LayerStackController ...@@ -220,6 +220,14 @@ LayerStackController
this, this,
SIGNAL( ApplyAllRequested() ) SIGNAL( ApplyAllRequested() )
); );
QObject::connect(
widget,
SIGNAL( ResetEffectsButtonClicked() ),
// to:
model,
SLOT( ResetEffects() )
);
} }
/*******************************************************************************/ /*******************************************************************************/
...@@ -351,6 +359,14 @@ LayerStackController ...@@ -351,6 +359,14 @@ LayerStackController
this, this,
SIGNAL( ApplyAllRequested() ) SIGNAL( ApplyAllRequested() )
); );
QObject::disconnect(
widget,
SIGNAL( ResetEffectsButtonClicked() ),
// to:
model,
SLOT( ResetEffects() )
);
} }
/*******************************************************************************/ /*******************************************************************************/
......
...@@ -166,6 +166,14 @@ LayerStackWidget ...@@ -166,6 +166,14 @@ LayerStackWidget
this, this,
SIGNAL( ApplyButtonClicked() ) SIGNAL( ApplyButtonClicked() )
); );
QObject::connect(
m_UI->resetEffectsButton,
SIGNAL( clicked() ),
// to:
this,
SIGNAL( ResetEffectsButtonClicked() )
);
} }
/*******************************************************************************/ /*******************************************************************************/
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../Application/Monteverdi/mvdMainWindow.qrc"> <iconset>
<normaloff>:/icons/action_LayerTop_Icon</normaloff>:/icons/action_LayerTop_Icon</iconset> <normaloff>:/icons/action_LayerTop_Icon</normaloff>:/icons/action_LayerTop_Icon</iconset>
</property> </property>
</widget> </widget>
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../Application/Monteverdi/mvdMainWindow.qrc"> <iconset>
<normaloff>:/icons/action_LayerUp_Icon</normaloff>:/icons/action_LayerUp_Icon</iconset> <normaloff>:/icons/action_LayerUp_Icon</normaloff>:/icons/action_LayerUp_Icon</iconset>
</property> </property>
</widget> </widget>
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../Application/Monteverdi/mvdMainWindow.qrc"> <iconset>
<normaloff>:/icons/action_LayerDown_Icon</normaloff>:/icons/action_LayerDown_Icon</iconset> <normaloff>:/icons/action_LayerDown_Icon</normaloff>:/icons/action_LayerDown_Icon</iconset>
</property> </property>
</widget> </widget>
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../Application/Monteverdi/mvdMainWindow.qrc"> <iconset>
<normaloff>:/icons/action_LayerBottom_Icon</normaloff>:/icons/action_LayerBottom_Icon</iconset> <normaloff>:/icons/action_LayerBottom_Icon</normaloff>:/icons/action_LayerBottom_Icon</iconset>
</property> </property>
</widget> </widget>
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../Application/Monteverdi/mvdMainWindow.qrc"> <iconset>
<normaloff>:/icons/action_LayerProjection_Icon</normaloff>:/icons/action_LayerProjection_Icon</iconset> <normaloff>:/icons/action_LayerProjection_Icon</normaloff>:/icons/action_LayerProjection_Icon</iconset>
</property> </property>
</widget> </widget>
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../Application/Monteverdi/mvdMainWindow.qrc"> <iconset>
<normaloff>:/icons/action_ApplyAll_Icon</normaloff>:/icons/action_ApplyAll_Icon</iconset> <normaloff>:/icons/action_ApplyAll_Icon</normaloff>:/icons/action_ApplyAll_Icon</iconset>
</property> </property>
</widget> </widget>
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../Application/Monteverdi/mvdMainWindow.qrc"> <iconset>
<normaloff>:/icons/action_Reload_Icon</normaloff>:/icons/action_Reload_Icon</iconset> <normaloff>:/icons/action_Reload_Icon</normaloff>:/icons/action_Reload_Icon</iconset>
</property> </property>
</widget> </widget>
...@@ -179,6 +179,13 @@ ...@@ -179,6 +179,13 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item>
<widget class="QToolButton" name="resetEffectsButton">
<property name="text">
<string>R</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QToolButton" name="deleteAllButton"> <widget class="QToolButton" name="deleteAllButton">
<property name="toolTip"> <property name="toolTip">
...@@ -191,7 +198,7 @@ ...@@ -191,7 +198,7 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../Application/Monteverdi/mvdMainWindow.qrc"> <iconset>
<normaloff>:/icons/action_LayerDeleteAll_Icon</normaloff>:/icons/action_LayerDeleteAll_Icon</iconset> <normaloff>:/icons/action_LayerDeleteAll_Icon</normaloff>:/icons/action_LayerDeleteAll_Icon</iconset>
</property> </property>
</widget> </widget>
...@@ -208,7 +215,7 @@ ...@@ -208,7 +215,7 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../Application/Monteverdi/mvdMainWindow.qrc"> <iconset>
<normaloff>:/icons/action_LayerDelete_Icon</normaloff>:/icons/action_LayerDelete_Icon</iconset> <normaloff>:/icons/action_LayerDelete_Icon</normaloff>:/icons/action_LayerDelete_Icon</iconset>
</property> </property>
</widget> </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