2013-08-08 21:01:20 -03:00
|
|
|
// Aseprite UI Library
|
2013-01-27 12:13:13 -03:00
|
|
|
// Copyright (C) 2001-2013 David Capello
|
2010-09-27 19:18:17 -03:00
|
|
|
//
|
2014-03-29 20:08:05 -03:00
|
|
|
// This file is released under the terms of the MIT license.
|
|
|
|
// Read LICENSE.txt for more information.
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2012-06-17 22:49:58 -03:00
|
|
|
#ifndef UI_ALERT_H_INCLUDED
|
|
|
|
#define UI_ALERT_H_INCLUDED
|
2014-03-29 19:40:17 -03:00
|
|
|
#pragma once
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2011-01-27 17:21:33 -03:00
|
|
|
#include "base/shared_ptr.h"
|
2012-07-08 23:24:42 -03:00
|
|
|
#include "ui/window.h"
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2012-06-17 22:02:54 -03:00
|
|
|
namespace ui {
|
2011-01-27 17:21:33 -03:00
|
|
|
|
2012-06-17 22:02:54 -03:00
|
|
|
class Alert;
|
|
|
|
typedef SharedPtr<Alert> AlertPtr;
|
2011-01-27 17:21:33 -03:00
|
|
|
|
2012-07-08 23:24:42 -03:00
|
|
|
class Alert : public Window
|
2012-06-17 22:02:54 -03:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
Alert();
|
2011-01-27 17:21:33 -03:00
|
|
|
|
2012-06-17 22:02:54 -03:00
|
|
|
static AlertPtr create(const char* format, ...);
|
|
|
|
static int show(const char* format, ...);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void processString(char* buf, std::vector<Widget*>& labels, std::vector<Widget*>& buttons);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace ui
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2009-08-17 21:38:00 +00:00
|
|
|
#endif
|