(svn r13561) -Codechange: two more enumifications of widgets

This commit is contained in:
belugas 2008-06-18 02:38:28 +00:00
parent f16b9dcd2b
commit 22c017c0c2
1 changed files with 4 additions and 3 deletions

View File

@ -95,7 +95,8 @@ enum ToolbarScenEditorWidgets {
TBSE_FASTFORWARD, TBSE_FASTFORWARD,
TBSE_SAVESCENARIO = 3, TBSE_SAVESCENARIO = 3,
TBSE_SPACERPANEL, TBSE_SPACERPANEL,
TBSE_DATEBACKWARD = 6, TBSE_SEPARATOR,
TBSE_DATEBACKWARD,
TBSE_DATEFORWARD, TBSE_DATEFORWARD,
TBSE_ZOOMIN = 9, TBSE_ZOOMIN = 9,
TBSE_ZOOMOUT, TBSE_ZOOMOUT,
@ -1154,7 +1155,7 @@ public:
for (uint i = 0, x = 0, j = 0, b = 0; i < this->widget_count; i++) { for (uint i = 0, x = 0, j = 0, b = 0; i < this->widget_count; i++) {
switch (i) { switch (i) {
case 4: case TBSE_SPACERPANEL:
this->widget[i].left = x; this->widget[i].left = x;
if (this->width < normal_min_width) { if (this->width < normal_min_width) {
this->widget[i].right = x; this->widget[i].right = x;
@ -1166,7 +1167,7 @@ public:
this->widget[i].right = x - 1; this->widget[i].right = x - 1;
break; break;
case 5: { case TBSE_SEPARATOR: {
int offset = x - this->widget[i].left; int offset = x - this->widget[i].left;
this->widget[i + 1].left += offset; this->widget[i + 1].left += offset;
this->widget[i + 1].right += offset; this->widget[i + 1].right += offset;