diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-07 19:07:04 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-07 19:07:04 +0100 |
commit | a3157908d23fd711ea96797dffce064953cb8fb6 (patch) | |
tree | 2f237b21118461a9948f3ccb829f62038564dedf /src/gui/connectiondialog.h | |
parent | 1208d5383a9bfd03f338ccf71fb9764790b2e1a9 (diff) | |
download | mana-a3157908d23fd711ea96797dffce064953cb8fb6.tar.gz mana-a3157908d23fd711ea96797dffce064953cb8fb6.tar.bz2 mana-a3157908d23fd711ea96797dffce064953cb8fb6.tar.xz mana-a3157908d23fd711ea96797dffce064953cb8fb6.zip |
Nicer way of indicating that we're waiting on the server
No longer a dialog with an annoying progress bar (due to going back and
forth), but rather a progress indicator that integrates better with the
background.
Diffstat (limited to 'src/gui/connectiondialog.h')
-rw-r--r-- | src/gui/connectiondialog.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/connectiondialog.h b/src/gui/connectiondialog.h index ac799791..32da2b9a 100644 --- a/src/gui/connectiondialog.h +++ b/src/gui/connectiondialog.h @@ -28,8 +28,6 @@ #include <guichan/actionlistener.hpp> -class ProgressBar; - /** * The connection dialog. * @@ -39,11 +37,14 @@ class ConnectionDialog : public Window, gcn::ActionListener { public: /** - * Constructor + * Constructor. + * + * @param text The text to display + * @param cancelState The state to enter when Cancel is pressed * * @see Window::Window */ - ConnectionDialog(State previousState); + ConnectionDialog(const std::string &text, State cancelState); /** * Called when the user presses Cancel. Restores the global state to @@ -51,12 +52,11 @@ class ConnectionDialog : public Window, gcn::ActionListener */ void action(const gcn::ActionEvent &); - void logic(); + void draw(gcn::Graphics *graphics); private: - ProgressBar *mProgressBar; - float mProgress; - State mPreviousState; + gcn::Label *mLabel; + State mCancelState; }; #endif |