ccarlen%netscape.com d4f88daea6 Bug 120026 - rework PPEmbed so its classes are less dependent and more easily reusable. r=adamlock@netscape.com/sr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113454 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 22:57:19 +00:00

75 lines
2.1 KiB
C++

/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the Mozilla browser.
*
* The Initial Developer of the Original Code is Netscape
* Communications, Inc. Portions created by Netscape are
* Copyright (C) 1999, Mozilla. All Rights Reserved.
*
* Contributor(s):
* Conrad Carlen <ccarlen@netscape.com>
*/
#ifndef __CThrobber__
#define __CThrobber__
#include <LControl.h>
#include <LPeriodical.h>
// ToolBox
#include <Movies.h>
class CThrobber : public LControl,
public LPeriodical
{
public:
enum { class_ID = FOUR_CHAR_CODE('Thrb') };
CThrobber();
CThrobber(LStream* inStream);
virtual ~CThrobber();
// LPane
virtual void FinishCreateSelf();
virtual void ShowSelf();
virtual void HideSelf();
virtual void DrawSelf();
void ResizeFrameBy(SInt16 inWidthDelta,
SInt16 inHeightDelta,
Boolean inRefresh);
void MoveBy(SInt32 inHorizDelta,
SInt32 inVertDelta,
Boolean inRefresh);
// LPeriodical
virtual void SpendTime(const EventRecord &inMacEvent);
// CThrobber
virtual void Start();
virtual void Stop();
protected:
void CreateMovie();
protected:
SInt16 mMovieResID;
Handle mMovieHandle;
Movie mMovie;
MovieController mMovieController;
};
#endif