(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets

This commit is contained in:
rubidium
2009-11-17 19:16:48 +00:00
parent 05a6b7bfeb
commit 8e11cd3a42
47 changed files with 139 additions and 143 deletions

View File

@@ -72,7 +72,7 @@ static const NWidgetPart _nested_land_info_widgets[] = {
};
static const WindowDesc _land_info_desc(
WDP_AUTO, WDP_AUTO, 0, 0, 0, 0,
WDP_AUTO, WDP_AUTO, 0, 0,
WC_LAND_INFO, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
_nested_land_info_widgets, lengthof(_nested_land_info_widgets)
@@ -346,7 +346,7 @@ static const NWidgetPart _nested_about_widgets[] = {
};
static const WindowDesc _about_desc(
WDP_CENTER, WDP_CENTER, 0, 0, 0, 0,
WDP_CENTER, WDP_CENTER, 0, 0,
WC_GAME_OPTIONS, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
_nested_about_widgets, lengthof(_nested_about_widgets)
@@ -507,7 +507,7 @@ static const NWidgetPart _nested_errmsg_widgets[] = {
};
static const WindowDesc _errmsg_desc(
0, 0, 240, 46, 240, 46, // x/y position is not used.
0, 0, 240, 46, // x/y position is not used.
WC_ERRMSG, WC_NONE,
WDF_STD_BTN | WDF_DEF_WIDGET,
_nested_errmsg_widgets, lengthof(_nested_errmsg_widgets)
@@ -527,7 +527,7 @@ static const NWidgetPart _nested_errmsg_face_widgets[] = {
};
static const WindowDesc _errmsg_face_desc(
0, 0, 334, 137, 334, 137, // x/y position is not used.
0, 0, 334, 137, // x/y position is not used.
WC_ERRMSG, WC_NONE,
WDF_STD_BTN | WDF_DEF_WIDGET,
_nested_errmsg_face_widgets, lengthof(_nested_errmsg_face_widgets)
@@ -774,7 +774,7 @@ static const NWidgetPart _nested_tooltips_widgets[] = {
};
static const WindowDesc _tool_tips_desc(
100, 100, 0, 0, 0, 0, // Coordinates and sizes are not used,
100, 100, 0, 0, // Coordinates and sizes are not used,
WC_TOOLTIPS, WC_NONE,
0,
_nested_tooltips_widgets, lengthof(_nested_tooltips_widgets)
@@ -1440,7 +1440,7 @@ static const NWidgetPart _nested_query_string_widgets[] = {
};
static const WindowDesc _query_string_desc(
190, 219, 260, 42, 260, 42,
190, 219, 260, 42,
WC_QUERY_STRING, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
_nested_query_string_widgets, lengthof(_nested_query_string_widgets)
@@ -1595,7 +1595,7 @@ static const NWidgetPart _nested_query_widgets[] = {
};
static const WindowDesc _query_desc(
WDP_CENTER, WDP_CENTER, 210, 82, 210, 82,
WDP_CENTER, WDP_CENTER, 210, 82,
WC_CONFIRM_POPUP_QUERY, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_DEF_WIDGET | WDF_MODAL,
_nested_query_widgets, lengthof(_nested_query_widgets)
@@ -2038,14 +2038,14 @@ public:
};
static const WindowDesc _load_dialog_desc(
WDP_CENTER, WDP_CENTER, 257, 154, 257, 294,
WDP_CENTER, WDP_CENTER, 257, 294,
WC_SAVELOAD, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
_nested_load_dialog_widgets, lengthof(_nested_load_dialog_widgets)
);
static const WindowDesc _save_dialog_desc(
WDP_CENTER, WDP_CENTER, 257, 180, 257, 320,
WDP_CENTER, WDP_CENTER, 257, 320,
WC_SAVELOAD, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
_nested_save_dialog_widgets, lengthof(_nested_save_dialog_widgets)