throbber.cxx (aeee3b8f) throbber.cxx (b6dc695e)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 45 unchanged lines hidden (view full) ---

54 ,mnStepTime( 100 )
55 ,mnCurStep( 0 )
56 ,mnStepCount( 0 )
57 ,meImageSet( i_imageSet )
58{
59 maWaitTimer.SetTimeout( mnStepTime );
60 maWaitTimer.SetTimeoutHdl( LINK( this, Throbber, TimeOutHdl ) );
61
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 45 unchanged lines hidden (view full) ---

54 ,mnStepTime( 100 )
55 ,mnCurStep( 0 )
56 ,mnStepCount( 0 )
57 ,meImageSet( i_imageSet )
58{
59 maWaitTimer.SetTimeout( mnStepTime );
60 maWaitTimer.SetTimeoutHdl( LINK( this, Throbber, TimeOutHdl ) );
61
62 SetScaleMode( ImageScaleMode::None );
62 SetScaleMode( ImageScaleMode::NONE );
63 initImages();
64}
65
66//--------------------------------------------------------------------
67Throbber::Throbber( Window* i_parentWindow, const ResId& i_resId, const ImageSet i_imageSet )
68 :ImageControl( i_parentWindow, i_resId )
69 ,mbRepeat( sal_True )
70 ,mnStepTime( 100 )
71 ,mnCurStep( 0 )
72 ,mnStepCount( 0 )
73 ,meImageSet( i_imageSet )
74{
75 maWaitTimer.SetTimeout( mnStepTime );
76 maWaitTimer.SetTimeoutHdl( LINK( this, Throbber, TimeOutHdl ) );
77
63 initImages();
64}
65
66//--------------------------------------------------------------------
67Throbber::Throbber( Window* i_parentWindow, const ResId& i_resId, const ImageSet i_imageSet )
68 :ImageControl( i_parentWindow, i_resId )
69 ,mbRepeat( sal_True )
70 ,mnStepTime( 100 )
71 ,mnCurStep( 0 )
72 ,mnStepCount( 0 )
73 ,meImageSet( i_imageSet )
74{
75 maWaitTimer.SetTimeout( mnStepTime );
76 maWaitTimer.SetTimeoutHdl( LINK( this, Throbber, TimeOutHdl ) );
77
78 SetScaleMode( ImageScaleMode::None );
78 SetScaleMode( ImageScaleMode::NONE );
79 initImages();
80}
81
82//----------------------------------------------------------------------------------------------------------------------
83Throbber::~Throbber()
84{
85 maWaitTimer.Stop();
86}

--- 226 unchanged lines hidden ---
79 initImages();
80}
81
82//----------------------------------------------------------------------------------------------------------------------
83Throbber::~Throbber()
84{
85 maWaitTimer.Stop();
86}

--- 226 unchanged lines hidden ---