(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 063e8adcec
commit 5f2ddfbc5a
47 changed files with 139 additions and 143 deletions

View File

@@ -267,7 +267,7 @@ public:
};
static const WindowDesc _town_authority_desc(
WDP_AUTO, WDP_AUTO, 317, 222, 317, 222,
WDP_AUTO, WDP_AUTO, 317, 222,
WC_TOWN_AUTHORITY, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
_nested_town_authority_widgets, lengthof(_nested_town_authority_widgets)
@@ -509,7 +509,7 @@ static const NWidgetPart _nested_town_game_view_widgets[] = {
};
static const WindowDesc _town_game_view_desc(
WDP_AUTO, WDP_AUTO, 260, TownViewWindow::TVW_HEIGHT_NORMAL, 260, TownViewWindow::TVW_HEIGHT_NORMAL,
WDP_AUTO, WDP_AUTO, 260, TownViewWindow::TVW_HEIGHT_NORMAL,
WC_TOWN_VIEW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
_nested_town_game_view_widgets, lengthof(_nested_town_game_view_widgets)
@@ -536,7 +536,7 @@ static const NWidgetPart _nested_town_editor_view_widgets[] = {
};
static const WindowDesc _town_editor_view_desc(
WDP_AUTO, WDP_AUTO, 260, TownViewWindow::TVW_HEIGHT_NORMAL, 260, TownViewWindow::TVW_HEIGHT_NORMAL,
WDP_AUTO, WDP_AUTO, 260, TownViewWindow::TVW_HEIGHT_NORMAL,
WC_TOWN_VIEW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
_nested_town_editor_view_widgets, lengthof(_nested_town_editor_view_widgets)
@@ -826,7 +826,7 @@ GUITownList::SortFunction * const TownDirectoryWindow::sorter_funcs[] = {
};
static const WindowDesc _town_directory_desc(
WDP_AUTO, WDP_AUTO, 208, 202, 208, 202,
WDP_AUTO, WDP_AUTO, 208, 202,
WC_TOWN_DIRECTORY, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
_nested_town_directory_widgets, lengthof(_nested_town_directory_widgets)
@@ -1102,7 +1102,7 @@ public:
};
static const WindowDesc _found_town_desc(
WDP_AUTO, WDP_AUTO, 160, 162, 160, 162,
WDP_AUTO, WDP_AUTO, 160, 162,
WC_FOUND_TOWN, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_CONSTRUCTION,
_nested_found_town_widgets, lengthof(_nested_found_town_widgets)