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