зеркало из https://github.com/mozilla/pjs.git
75 строки
2.1 KiB
C++
75 строки
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
|