2005-05-17 18:42:23 +00:00
|
|
|
//============================================================================
|
|
|
|
//
|
2016-12-30 00:00:30 +00:00
|
|
|
// SSSS tt lll lll
|
|
|
|
// SS SS tt ll ll
|
|
|
|
// SS tttttt eeee ll ll aaaa
|
2005-05-17 18:42:23 +00:00
|
|
|
// SSSS tt ee ee ll ll aa
|
|
|
|
// SS tt eeeeee ll ll aaaaa -- "An Atari 2600 VCS Emulator"
|
|
|
|
// SS SS tt ee ll ll aa aa
|
|
|
|
// SSSS ttt eeeee llll llll aaaaa
|
|
|
|
//
|
2017-12-29 20:40:37 +00:00
|
|
|
// Copyright (c) 1995-2018 by Bradford W. Mott, Stephen Anthony
|
2010-04-10 21:37:23 +00:00
|
|
|
// and the Stella Team
|
2005-05-17 18:42:23 +00:00
|
|
|
//
|
2010-01-10 03:23:32 +00:00
|
|
|
// See the file "License.txt" for information on usage and redistribution of
|
2005-05-17 18:42:23 +00:00
|
|
|
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
|
|
|
//============================================================================
|
|
|
|
|
|
|
|
#ifndef PROGRESS_DIALOG_HXX
|
|
|
|
#define PROGRESS_DIALOG_HXX
|
|
|
|
|
2010-10-18 18:39:57 +00:00
|
|
|
class GuiObject;
|
2005-05-17 18:42:23 +00:00
|
|
|
class StaticTextWidget;
|
|
|
|
class SliderWidget;
|
|
|
|
|
|
|
|
#include "bspf.hxx"
|
|
|
|
|
|
|
|
class ProgressDialog : public Dialog
|
|
|
|
{
|
|
|
|
public:
|
2005-08-04 22:59:54 +00:00
|
|
|
ProgressDialog(GuiObject* boss, const GUI::Font& font,
|
|
|
|
const string& message);
|
2015-12-29 23:45:21 +00:00
|
|
|
virtual ~ProgressDialog() = default;
|
2005-05-17 18:42:23 +00:00
|
|
|
|
|
|
|
void setMessage(const string& message);
|
|
|
|
void setRange(int begin, int end, int step);
|
|
|
|
void setProgress(int progress);
|
|
|
|
|
2015-07-10 18:59:03 +00:00
|
|
|
private:
|
2005-05-17 18:42:23 +00:00
|
|
|
StaticTextWidget* myMessage;
|
|
|
|
SliderWidget* mySlider;
|
|
|
|
|
2015-07-10 18:59:03 +00:00
|
|
|
int myStart, myFinish, myStep;
|
2015-04-26 19:02:42 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
// Following constructors and assignment operators not supported
|
|
|
|
ProgressDialog() = delete;
|
|
|
|
ProgressDialog(const ProgressDialog&) = delete;
|
|
|
|
ProgressDialog(ProgressDialog&&) = delete;
|
|
|
|
ProgressDialog& operator=(const ProgressDialog&) = delete;
|
|
|
|
ProgressDialog& operator=(ProgressDialog&&) = delete;
|
2005-05-17 18:42:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|