2014-02-10 01:10:30 +00:00
|
|
|
/*************************************************************************/
|
|
|
|
/* dialogs.cpp */
|
|
|
|
/*************************************************************************/
|
|
|
|
/* This file is part of: */
|
|
|
|
/* GODOT ENGINE */
|
|
|
|
/* http://www.godotengine.org */
|
|
|
|
/*************************************************************************/
|
2017-01-01 21:01:57 +00:00
|
|
|
/* Copyright (c) 2007-2017 Juan Linietsky, Ariel Manzur. */
|
2014-02-10 01:10:30 +00:00
|
|
|
/* */
|
|
|
|
/* Permission is hereby granted, free of charge, to any person obtaining */
|
|
|
|
/* a copy of this software and associated documentation files (the */
|
|
|
|
/* "Software"), to deal in the Software without restriction, including */
|
|
|
|
/* without limitation the rights to use, copy, modify, merge, publish, */
|
|
|
|
/* distribute, sublicense, and/or sell copies of the Software, and to */
|
|
|
|
/* permit persons to whom the Software is furnished to do so, subject to */
|
|
|
|
/* the following conditions: */
|
|
|
|
/* */
|
|
|
|
/* The above copyright notice and this permission notice shall be */
|
|
|
|
/* included in all copies or substantial portions of the Software. */
|
|
|
|
/* */
|
|
|
|
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
|
|
|
|
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
|
|
|
|
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
|
|
|
|
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
|
|
|
|
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
|
|
|
|
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
|
|
|
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|
|
|
/*************************************************************************/
|
|
|
|
#include "dialogs.h"
|
|
|
|
#include "print_string.h"
|
|
|
|
#include "line_edit.h"
|
|
|
|
#include "translation.h"
|
|
|
|
|
|
|
|
void WindowDialog::_post_popup() {
|
|
|
|
|
|
|
|
dragging=false; //just in case
|
|
|
|
}
|
|
|
|
|
|
|
|
bool WindowDialog::has_point(const Point2& p_point) const {
|
|
|
|
|
|
|
|
|
|
|
|
int extra = get_constant("titlebar_height","WindowDialog");
|
|
|
|
Rect2 r( Point2(), get_size() );
|
|
|
|
r.pos.y-=extra;
|
|
|
|
r.size.y+=extra;
|
|
|
|
return r.has_point(p_point);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-01-08 19:28:12 +00:00
|
|
|
void WindowDialog::_gui_input(const InputEvent& p_event) {
|
2014-02-10 01:10:30 +00:00
|
|
|
|
|
|
|
if (p_event.type == InputEvent::MOUSE_BUTTON && p_event.mouse_button.button_index==BUTTON_LEFT) {
|
|
|
|
|
|
|
|
if (p_event.mouse_button.pressed && p_event.mouse_button.y < 0)
|
|
|
|
dragging=true;
|
|
|
|
else if (dragging && !p_event.mouse_button.pressed)
|
|
|
|
dragging=false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (p_event.type == InputEvent::MOUSE_MOTION && dragging) {
|
|
|
|
|
|
|
|
Point2 rel( p_event.mouse_motion.relative_x, p_event.mouse_motion.relative_y );
|
|
|
|
Point2 pos = get_pos();
|
|
|
|
|
|
|
|
pos+=rel;
|
|
|
|
|
|
|
|
if (pos.y<0)
|
|
|
|
pos.y=0;
|
|
|
|
|
|
|
|
set_pos(pos);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void WindowDialog::_notification(int p_what) {
|
|
|
|
|
|
|
|
switch(p_what) {
|
|
|
|
|
|
|
|
case NOTIFICATION_DRAW: {
|
|
|
|
|
|
|
|
RID ci = get_canvas_item();
|
|
|
|
Size2 s = get_size();
|
|
|
|
Ref<StyleBox> st = get_stylebox("panel","WindowDialog");
|
|
|
|
st->draw(ci,Rect2(Point2(),s));
|
|
|
|
int th = get_constant("title_height","WindowDialog");
|
|
|
|
Color tc = get_color("title_color","WindowDialog");
|
|
|
|
Ref<Font> font = get_font("title_font","WindowDialog");
|
|
|
|
int ofs = (s.width-font->get_string_size(title).width)/2;
|
|
|
|
//int ofs = st->get_margin(MARGIN_LEFT);
|
|
|
|
draw_string(font,Point2(ofs,-th+font->get_ascent()),title,tc,s.width - st->get_minimum_size().width);
|
|
|
|
|
|
|
|
|
|
|
|
} break;
|
|
|
|
case NOTIFICATION_THEME_CHANGED:
|
2014-11-06 00:20:42 +00:00
|
|
|
case NOTIFICATION_ENTER_TREE: {
|
2014-02-10 01:10:30 +00:00
|
|
|
|
|
|
|
close_button->set_normal_texture( get_icon("close","WindowDialog"));
|
|
|
|
close_button->set_pressed_texture( get_icon("close","WindowDialog"));
|
|
|
|
close_button->set_hover_texture( get_icon("close_hilite","WindowDialog"));
|
|
|
|
close_button->set_anchor(MARGIN_LEFT,ANCHOR_END);
|
|
|
|
close_button->set_begin( Point2( get_constant("close_h_ofs","WindowDialog"), -get_constant("close_v_ofs","WindowDialog") ));
|
|
|
|
|
|
|
|
} break;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void WindowDialog::_closed() {
|
|
|
|
|
|
|
|
_close_pressed();
|
|
|
|
hide();
|
|
|
|
}
|
|
|
|
|
|
|
|
void WindowDialog::set_title(const String& p_title) {
|
|
|
|
|
|
|
|
title=XL_MESSAGE(p_title);
|
|
|
|
update();
|
|
|
|
}
|
|
|
|
|
2016-05-30 03:28:29 +00:00
|
|
|
Size2 WindowDialog::get_minimum_size() const {
|
|
|
|
|
|
|
|
Ref<Font> font = get_font("title_font","WindowDialog");
|
|
|
|
int msx=close_button->get_combined_minimum_size().x;
|
|
|
|
msx+=font->get_string_size(title).x;
|
|
|
|
|
|
|
|
return Size2(msx,1);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
String WindowDialog::get_title() const {
|
|
|
|
|
|
|
|
return title;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TextureButton *WindowDialog::get_close_button() {
|
|
|
|
|
|
|
|
|
|
|
|
return close_button;
|
|
|
|
}
|
|
|
|
|
|
|
|
void WindowDialog::_bind_methods() {
|
|
|
|
|
2017-02-13 11:47:24 +00:00
|
|
|
ClassDB::bind_method( D_METHOD("_gui_input"),&WindowDialog::_gui_input);
|
|
|
|
ClassDB::bind_method( D_METHOD("set_title","title"),&WindowDialog::set_title);
|
|
|
|
ClassDB::bind_method( D_METHOD("get_title"),&WindowDialog::get_title);
|
|
|
|
ClassDB::bind_method( D_METHOD("_closed"),&WindowDialog::_closed);
|
|
|
|
ClassDB::bind_method( D_METHOD("get_close_button:TextureButton"),&WindowDialog::get_close_button);
|
2014-02-10 01:10:30 +00:00
|
|
|
|
2017-02-12 00:11:37 +00:00
|
|
|
ADD_PROPERTY( PropertyInfo(Variant::STRING,"window_title",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_DEFAULT_INTL),"set_title","get_title");
|
2014-02-10 01:10:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
WindowDialog::WindowDialog() {
|
|
|
|
|
|
|
|
//title="Hello!";
|
|
|
|
dragging=false;
|
|
|
|
close_button = memnew( TextureButton );
|
|
|
|
add_child(close_button);
|
|
|
|
close_button->connect("pressed",this,"_closed");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
WindowDialog::~WindowDialog(){
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void PopupDialog::_notification(int p_what) {
|
|
|
|
|
|
|
|
if (p_what==NOTIFICATION_DRAW) {
|
|
|
|
|
|
|
|
RID ci = get_canvas_item();
|
|
|
|
get_stylebox("panel","PopupMenu")->draw(ci,Rect2(Point2(),get_size()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
PopupDialog::PopupDialog() {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
PopupDialog::~PopupDialog() {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
void AcceptDialog::_post_popup() {
|
|
|
|
|
|
|
|
WindowDialog::_post_popup();
|
|
|
|
get_ok()->grab_focus();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void AcceptDialog::_notification(int p_what) {
|
2016-03-08 23:00:52 +00:00
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
if (p_what==NOTIFICATION_MODAL_CLOSE) {
|
|
|
|
|
|
|
|
cancel_pressed();
|
2016-05-30 03:28:29 +00:00
|
|
|
} if (p_what==NOTIFICATION_RESIZED) {
|
2014-02-10 01:10:30 +00:00
|
|
|
|
2017-01-10 04:49:55 +00:00
|
|
|
_update_child_rects();
|
2016-03-08 23:00:52 +00:00
|
|
|
}
|
2014-02-10 01:10:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void AcceptDialog::_builtin_text_entered(const String& p_text) {
|
|
|
|
|
|
|
|
_ok_pressed();
|
|
|
|
}
|
|
|
|
|
|
|
|
void AcceptDialog::_ok_pressed() {
|
2016-03-08 23:00:52 +00:00
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
if (hide_on_ok)
|
|
|
|
hide();
|
|
|
|
ok_pressed();
|
|
|
|
emit_signal("confirmed");
|
|
|
|
|
|
|
|
}
|
|
|
|
void AcceptDialog::_close_pressed() {
|
2016-03-08 23:00:52 +00:00
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
cancel_pressed();
|
|
|
|
}
|
|
|
|
|
|
|
|
String AcceptDialog::get_text() const {
|
|
|
|
|
|
|
|
return label->get_text();
|
|
|
|
}
|
|
|
|
void AcceptDialog::set_text(String p_text) {
|
2016-03-08 23:00:52 +00:00
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
label->set_text(p_text);
|
2016-10-30 18:42:30 +00:00
|
|
|
minimum_size_changed();
|
2017-01-10 04:49:55 +00:00
|
|
|
_update_child_rects();
|
2014-02-10 01:10:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void AcceptDialog::set_hide_on_ok(bool p_hide) {
|
|
|
|
|
|
|
|
hide_on_ok=p_hide;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool AcceptDialog::get_hide_on_ok() const {
|
|
|
|
|
|
|
|
return hide_on_ok;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void AcceptDialog::register_text_enter(Node *p_line_edit) {
|
|
|
|
|
|
|
|
ERR_FAIL_NULL(p_line_edit);
|
|
|
|
p_line_edit->connect("text_entered", this,"_builtin_text_entered");
|
|
|
|
}
|
|
|
|
|
2017-01-10 04:49:55 +00:00
|
|
|
void AcceptDialog::_update_child_rects() {
|
|
|
|
|
|
|
|
|
2016-10-30 18:42:30 +00:00
|
|
|
Size2 label_size=label->get_minimum_size();
|
|
|
|
if (label->get_text().empty()) {
|
|
|
|
label_size.height = 0;
|
|
|
|
}
|
2016-10-30 18:40:52 +00:00
|
|
|
int margin = get_constant("margin","Dialogs");
|
|
|
|
Size2 size = get_size();
|
2016-05-30 03:28:29 +00:00
|
|
|
Size2 hminsize = hbc->get_combined_minimum_size();
|
|
|
|
|
2016-10-30 18:42:30 +00:00
|
|
|
Vector2 cpos(margin,margin+label_size.height);
|
|
|
|
Vector2 csize(size.x-margin*2,size.y-margin*3-hminsize.y-label_size.height);
|
2016-05-30 03:28:29 +00:00
|
|
|
|
2017-01-10 04:49:55 +00:00
|
|
|
for(int i=0;i<get_child_count();i++) {
|
|
|
|
Control *c = get_child(i)->cast_to<Control>();
|
|
|
|
if (!c)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
if (c==hbc || c==label || c==get_close_button())
|
|
|
|
continue;
|
|
|
|
|
|
|
|
c->set_pos(cpos);
|
|
|
|
c->set_size(csize);
|
2016-05-30 03:28:29 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-10-30 18:40:52 +00:00
|
|
|
cpos.y+=csize.y+margin;
|
|
|
|
csize.y=hminsize.y;
|
2016-05-30 03:28:29 +00:00
|
|
|
|
|
|
|
hbc->set_pos(cpos);
|
2016-10-30 18:40:52 +00:00
|
|
|
hbc->set_size(csize);
|
|
|
|
|
2016-05-30 03:28:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Size2 AcceptDialog::get_minimum_size() const {
|
|
|
|
|
|
|
|
int margin = get_constant("margin","Dialogs");
|
|
|
|
Size2 minsize = label->get_combined_minimum_size();
|
|
|
|
|
2017-01-10 04:49:55 +00:00
|
|
|
|
|
|
|
for(int i=0;i<get_child_count();i++) {
|
|
|
|
Control *c = get_child(i)->cast_to<Control>();
|
|
|
|
if (!c)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
if (c==hbc || c==label || c==const_cast<AcceptDialog*>(this)->get_close_button())
|
|
|
|
continue;
|
|
|
|
|
|
|
|
Size2 cminsize = c->get_combined_minimum_size();
|
2016-05-30 03:28:29 +00:00
|
|
|
minsize.x=MAX(cminsize.x,minsize.x);
|
2016-10-30 18:40:52 +00:00
|
|
|
minsize.y=MAX(cminsize.y,minsize.y);
|
2017-01-10 04:49:55 +00:00
|
|
|
|
2016-05-30 03:28:29 +00:00
|
|
|
}
|
|
|
|
|
2017-01-10 04:49:55 +00:00
|
|
|
|
2016-05-30 03:28:29 +00:00
|
|
|
Size2 hminsize = hbc->get_combined_minimum_size();
|
|
|
|
minsize.x = MAX(hminsize.x,minsize.x);
|
|
|
|
minsize.y+=hminsize.y;
|
|
|
|
minsize.x+=margin*2;
|
|
|
|
minsize.y+=margin*3; //one as separation between hbc and child
|
|
|
|
|
|
|
|
Size2 wmsize = WindowDialog::get_minimum_size();
|
|
|
|
minsize.x=MAX(wmsize.x,minsize.x);
|
|
|
|
return minsize;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
void AcceptDialog::_custom_action(const String& p_action) {
|
|
|
|
|
|
|
|
emit_signal("custom_action",p_action);
|
|
|
|
custom_action(p_action);
|
|
|
|
}
|
|
|
|
|
|
|
|
Button* AcceptDialog::add_button(const String& p_text,bool p_right,const String& p_action) {
|
|
|
|
|
|
|
|
|
|
|
|
Button *button = memnew( Button );
|
|
|
|
button->set_text(p_text);
|
|
|
|
if (p_right) {
|
|
|
|
hbc->add_child(button);
|
|
|
|
hbc->add_spacer();
|
|
|
|
} else {
|
|
|
|
|
|
|
|
hbc->add_child(button);
|
|
|
|
hbc->move_child(button,0);
|
|
|
|
hbc->add_spacer(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (p_action!="") {
|
2015-08-23 23:15:56 +00:00
|
|
|
button->connect("pressed",this,"_custom_action",varray(p_action));
|
2014-02-10 01:10:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return button;
|
|
|
|
}
|
|
|
|
|
|
|
|
Button* AcceptDialog::add_cancel(const String &p_cancel) {
|
|
|
|
|
|
|
|
String c = p_cancel;
|
|
|
|
if (p_cancel=="")
|
2016-05-30 09:01:56 +00:00
|
|
|
c=RTR("Cancel");
|
2016-04-29 08:34:07 +00:00
|
|
|
Button *b = swap_ok_cancel ? add_button(c,true) : add_button(c);
|
2014-02-10 01:10:30 +00:00
|
|
|
b->connect("pressed",this,"_closed");
|
|
|
|
return b;
|
|
|
|
}
|
|
|
|
|
|
|
|
void AcceptDialog::_bind_methods() {
|
2016-03-08 23:00:52 +00:00
|
|
|
|
2017-02-13 11:47:24 +00:00
|
|
|
ClassDB::bind_method(D_METHOD("_ok"),&AcceptDialog::_ok_pressed);
|
|
|
|
ClassDB::bind_method(D_METHOD("get_ok"),&AcceptDialog::get_ok);
|
|
|
|
ClassDB::bind_method(D_METHOD("get_label"),&AcceptDialog::get_label);
|
|
|
|
ClassDB::bind_method(D_METHOD("set_hide_on_ok","enabled"),&AcceptDialog::set_hide_on_ok);
|
|
|
|
ClassDB::bind_method(D_METHOD("get_hide_on_ok"),&AcceptDialog::get_hide_on_ok);
|
|
|
|
ClassDB::bind_method(D_METHOD("add_button:Button","text","right","action"),&AcceptDialog::add_button,DEFVAL(false),DEFVAL(""));
|
|
|
|
ClassDB::bind_method(D_METHOD("add_cancel:Button","name"),&AcceptDialog::add_cancel);
|
|
|
|
ClassDB::bind_method(D_METHOD("_builtin_text_entered"),&AcceptDialog::_builtin_text_entered);
|
|
|
|
ClassDB::bind_method(D_METHOD("register_text_enter:LineEdit","line_edit"),&AcceptDialog::register_text_enter);
|
|
|
|
ClassDB::bind_method(D_METHOD("_custom_action"),&AcceptDialog::_custom_action);
|
|
|
|
ClassDB::bind_method(D_METHOD("set_text","text"),&AcceptDialog::set_text);
|
|
|
|
ClassDB::bind_method(D_METHOD("get_text"),&AcceptDialog::get_text);
|
2014-02-10 01:10:30 +00:00
|
|
|
|
|
|
|
ADD_SIGNAL( MethodInfo("confirmed") );
|
|
|
|
ADD_SIGNAL( MethodInfo("custom_action",PropertyInfo(Variant::STRING,"action")) );
|
|
|
|
|
2017-01-04 04:16:14 +00:00
|
|
|
ADD_GROUP("Dialog","dialog");
|
2017-02-12 00:11:37 +00:00
|
|
|
ADD_PROPERTYNZ( PropertyInfo(Variant::STRING,"dialog_text",PROPERTY_HINT_MULTILINE_TEXT,"",PROPERTY_USAGE_DEFAULT_INTL),"set_text","get_text");
|
|
|
|
ADD_PROPERTY( PropertyInfo(Variant::BOOL, "dialog_hide_on_ok"),"set_hide_on_ok","get_hide_on_ok") ;
|
2015-11-20 21:25:01 +00:00
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool AcceptDialog::swap_ok_cancel=false;
|
|
|
|
void AcceptDialog::set_swap_ok_cancel(bool p_swap) {
|
|
|
|
|
|
|
|
swap_ok_cancel=p_swap;
|
|
|
|
}
|
|
|
|
|
|
|
|
AcceptDialog::AcceptDialog() {
|
2016-03-08 23:00:52 +00:00
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
int margin = get_constant("margin","Dialogs");
|
|
|
|
int button_margin = get_constant("button_margin","Dialogs");
|
2016-03-08 23:00:52 +00:00
|
|
|
|
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
label = memnew( Label );
|
|
|
|
label->set_anchor(MARGIN_RIGHT,ANCHOR_END);
|
|
|
|
label->set_anchor(MARGIN_BOTTOM,ANCHOR_END);
|
|
|
|
label->set_begin( Point2( margin, margin) );
|
2015-02-14 15:09:52 +00:00
|
|
|
label->set_end( Point2( margin, button_margin+10) );
|
|
|
|
//label->set_autowrap(true);
|
2014-02-10 01:10:30 +00:00
|
|
|
add_child(label);
|
|
|
|
|
|
|
|
hbc = memnew( HBoxContainer );
|
|
|
|
add_child(hbc);
|
|
|
|
|
|
|
|
hbc->add_spacer();
|
|
|
|
ok = memnew( Button );
|
2016-05-30 09:01:56 +00:00
|
|
|
ok->set_text(RTR("OK"));
|
2014-02-10 01:10:30 +00:00
|
|
|
hbc->add_child(ok);
|
|
|
|
hbc->add_spacer();
|
2016-03-08 23:00:52 +00:00
|
|
|
|
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
ok->connect("pressed", this,"_ok");
|
|
|
|
set_as_toplevel(true);
|
|
|
|
|
|
|
|
hide_on_ok=true;
|
2016-05-30 09:01:56 +00:00
|
|
|
set_title(RTR("Alert!"));
|
2014-02-10 01:10:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
AcceptDialog::~AcceptDialog()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ConfirmationDialog::_bind_methods() {
|
|
|
|
|
2017-02-13 11:47:24 +00:00
|
|
|
ClassDB::bind_method(D_METHOD("get_cancel:Button"),&ConfirmationDialog::get_cancel);
|
2014-02-10 01:10:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Button *ConfirmationDialog::get_cancel() {
|
|
|
|
|
|
|
|
return cancel;
|
|
|
|
}
|
|
|
|
|
|
|
|
ConfirmationDialog::ConfirmationDialog() {
|
|
|
|
|
2016-05-30 09:01:56 +00:00
|
|
|
set_title(RTR("Please Confirm..."));
|
2014-02-10 01:10:30 +00:00
|
|
|
cancel = add_cancel();
|
|
|
|
}
|