SuperTuxKart
dialog_queue.hpp
1 // SuperTuxKart - a fun racing game with go-kart
2 // Copyright (C) 2013-2015 Glenn De Jonghe
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 3
7 // of the License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 
18 #ifndef HEADER_DIALOG_QUEUE_HPP
19 #define HEADER_DIALOG_QUEUE_HPP
20 
21 #include <queue>
22 #include "guiengine/modaldialog.hpp"
23 
27 namespace GUIEngine
28 {
29 
31  {
32  private :
33 
34  std::queue<ModalDialog *> m_queue;
35  ModalDialog * m_closer;
36  DialogQueue();
37  public :
39  static DialogQueue * get();
40  static void deallocate();
41  void pushDialog(ModalDialog * dialog, bool closes_any_dialog = false);
42  void update();
43 
44  };
45 
46 }
47 #endif
Definition: dialog_queue.hpp:31
static DialogQueue * get()
Singleton.
Definition: dialog_queue.cpp:27
Abstract base class representing a modal dialog.
Definition: modaldialog.hpp:56
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33