Commit 79c0a584 authored by Antoine Cellerier's avatar Antoine Cellerier

Revert [15458] and change default scrolling behavior to "stoped". You need to...

Revert [15458] and change default scrolling behavior to "stoped". You need to click on the text to start the scrolling.
parent 42b0a160
...@@ -577,7 +577,7 @@ difficulty to understand how VLC skins work.</para> ...@@ -577,7 +577,7 @@ difficulty to understand how VLC skins work.</para>
</sect4> </sect4>
<sect4 id="textscrolling"> <sect4 id="textscrolling">
<title>scrolling</title> <title>scrolling</title>
<para>Scrolling behaviour of the text (only when it doesn't fit in the <link linkend="textwidth">width</link> of the control). Possible values are 'auto', 'autooff', 'manual' and 'none'. If this attribute is set to 'auto', the text automatically starts scrolling. The user can drag the text, and click on it to start/stop the scrolling. If this attribute is set to 'manual', the text only scrolls when dragged by the user. If this attribute is set to 'none', no scrolling is possible at all. Available since VLC 0.8.5.</para> <para>Scrolling behaviour of the text (only when it doesn't fit in the <link linkend="textwidth">width</link> of the control). Possible values are 'auto', 'manual' and 'none'. If this attribute is set to 'auto', the text automatically starts scrolling. The user can drag the text, and click on it to start/stop the scrolling. If this attribute is set to 'manual', the text only scrolls when dragged by the user. If this attribute is set to 'none', no scrolling is possible at all. Available since VLC 0.8.5.</para>
<para>Default value: auto</para> <para>Default value: auto</para>
</sect4> </sect4>
</sect3> </sect3>
......
...@@ -74,7 +74,7 @@ CtrlText::CtrlText( intf_thread_t *pIntf, VarText &rVariable, ...@@ -74,7 +74,7 @@ CtrlText::CtrlText( intf_thread_t *pIntf, VarText &rVariable,
&m_cmdManualStill ); &m_cmdManualStill );
m_fsm.addTransition( "manual1", "motion", "manual1", &m_cmdMove ); m_fsm.addTransition( "manual1", "motion", "manual1", &m_cmdMove );
} }
else if( m_scrollMode == kAutomatic || m_scrollMode == kAutomaticOff ) else if( m_scrollMode == kAutomatic )
{ {
m_fsm.addTransition( "still", "mouse:left:down", "manual1", m_fsm.addTransition( "still", "mouse:left:down", "manual1",
&m_cmdToManual ); &m_cmdToManual );
...@@ -91,10 +91,7 @@ CtrlText::CtrlText( intf_thread_t *pIntf, VarText &rVariable, ...@@ -91,10 +91,7 @@ CtrlText::CtrlText( intf_thread_t *pIntf, VarText &rVariable,
} }
// Initial state // Initial state
if( m_scrollMode == kAutomatic ) m_fsm.setState( "outStill" );
m_fsm.setState( "outMoving" );
else
m_fsm.setState( "outStill" );
// Observe the variable // Observe the variable
m_rVariable.addObserver( this ); m_rVariable.addObserver( this );
......
...@@ -54,8 +54,6 @@ class CtrlText: public CtrlGeneric, public Observer<VarText, void*> ...@@ -54,8 +54,6 @@ class CtrlText: public CtrlGeneric, public Observer<VarText, void*>
// width of the control. The user can still stop it or make it // width of the control. The user can still stop it or make it
// scroll manually with the mouse. // scroll manually with the mouse.
kAutomatic, kAutomatic,
// Same as above butt default state is off
kAutomaticOff,
// Only manual scrolling is allowed (with the mouse) // Only manual scrolling is allowed (with the mouse)
kManual, kManual,
// No scrolling of the text is allowed // No scrolling of the text is allowed
......
...@@ -607,8 +607,6 @@ void Builder::addText( const BuilderData::Text &rData ) ...@@ -607,8 +607,6 @@ void Builder::addText( const BuilderData::Text &rData )
CtrlText::Scrolling_t scrolling; CtrlText::Scrolling_t scrolling;
if( rData.m_scrolling == "auto" ) if( rData.m_scrolling == "auto" )
scrolling = CtrlText::kAutomatic; scrolling = CtrlText::kAutomatic;
else if( rData.m_scrolling == "autooff" )
scrolling = CtrlText::kAutomaticOff;
else if( rData.m_scrolling == "manual" ) else if( rData.m_scrolling == "manual" )
scrolling = CtrlText::kManual; scrolling = CtrlText::kManual;
else if( rData.m_scrolling == "none" ) else if( rData.m_scrolling == "none" )
......
...@@ -214,9 +214,9 @@ ...@@ -214,9 +214,9 @@
<Button x="408" y="2" up="close_up" over="close_over" down="close_down" lefttop="righttop" rightbottom="righttop" action="vlc.quit()" tooltiptext="Quit VLC"/> <Button x="408" y="2" up="close_up" over="close_over" down="close_down" lefttop="righttop" rightbottom="righttop" action="vlc.quit()" tooltiptext="Quit VLC"/>
<Text x="21" y="207" alignment="left" color="#FFFFFF" font="mainfont" lefttop="leftbottom" rightbottom="rightbottom" width="320" text="$N" visible="not dvd.isActive" scrolling="autooff"/> <Text x="21" y="207" alignment="left" color="#FFFFFF" font="mainfont" lefttop="leftbottom" rightbottom="rightbottom" width="320" text="$N" visible="not dvd.isActive"/>
<Text x="125" y="207" alignment="left" color="#FFFFFF" font="mainfont" lefttop="leftbottom" rightbottom="rightbottom" width="215" text="$N" visible="dvd.isActive" scrolling="autooff"/> <Text x="125" y="207" alignment="left" color="#FFFFFF" font="mainfont" lefttop="leftbottom" rightbottom="rightbottom" width="215" text="$N" visible="dvd.isActive"/>
<Text x="342" y="208" alignment="right" color="#FFFFFF" font="defaultfont" lefttop="rightbottom" rightbottom="rightbottom" width="88" text="$T/$D"/> <Text x="342" y="208" alignment="right" color="#FFFFFF" font="defaultfont" lefttop="rightbottom" rightbottom="rightbottom" width="88" text="$T/$D"/>
<Button x="21" y="207" up="dvd_prevtitle" action="dvd.previousTitle()" tooltiptext="Play Previous Title on DVD" lefttop="leftbottom" rightbottom="rightbottom" visible="dvd.isActive"/> <Button x="21" y="207" up="dvd_prevtitle" action="dvd.previousTitle()" tooltiptext="Play Previous Title on DVD" lefttop="leftbottom" rightbottom="rightbottom" visible="dvd.isActive"/>
<Button x="41" y="207" up="dvd_prevchapter" action="dvd.previousChapter()" tooltiptext="Go to Previous Chapter of Title" lefttop="leftbottom" rightbottom="rightbottom" visible="dvd.isActive"/> <Button x="41" y="207" up="dvd_prevchapter" action="dvd.previousChapter()" tooltiptext="Go to Previous Chapter of Title" lefttop="leftbottom" rightbottom="rightbottom" visible="dvd.isActive"/>
...@@ -342,7 +342,7 @@ ...@@ -342,7 +342,7 @@
<Anchor x="300" y="0" priority="3"/> <Anchor x="300" y="0" priority="3"/>
<Image x="0" y="0" action="move" image="minimal_bg"/> <Image x="0" y="0" action="move" image="minimal_bg"/>
<Text x="10" y="20" alignment="left" color="#FFFFFF" font="mainfont" text="$N" width="190" scrolling="autooff"/> <Text x="10" y="20" alignment="left" color="#FFFFFF" font="mainfont" text="$N" width="190"/>
<Text x="202" y="21" alignment="right" color="#FFFFFF" font="defaultfont" text="$T/$D" width="88"/> <Text x="202" y="21" alignment="right" color="#FFFFFF" font="defaultfont" text="$T/$D" width="88"/>
<Slider x="10" y="42" points="(5,0),(275,0)" up="timeslider" value="time" tooltiptext="$T / $D"/> <Slider x="10" y="42" points="(5,0),(275,0)" up="timeslider" value="time" tooltiptext="$T / $D"/>
......
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