diff --git src/kits/tracker/ContainerWindow.cpp src/kits/tracker/ContainerWindow.cpp
index fb065e8..d8d517d 100644
|
|
BContainerWindow::AddWindowMenu(BMenu *menu)
|
1949 | 1949 | item->SetTarget(PoseView()); |
1950 | 1950 | iconSizeMenu->AddItem(item); |
1951 | 1951 | |
| 1952 | message = new BMessage(kIconMode); |
| 1953 | message->AddInt32("size", 96); |
| 1954 | item = new BMenuItem(B_TRANSLATE("96 x 96"), message); |
| 1955 | item->SetMarked(PoseView()->IconSizeInt() == 96); |
| 1956 | item->SetTarget(PoseView()); |
| 1957 | iconSizeMenu->AddItem(item); |
| 1958 | |
| 1959 | message = new BMessage(kIconMode); |
| 1960 | message->AddInt32("size", 128); |
| 1961 | item = new BMenuItem(B_TRANSLATE("128 x 128"), message); |
| 1962 | item->SetMarked(PoseView()->IconSizeInt() == 128); |
| 1963 | item->SetTarget(PoseView()); |
| 1964 | iconSizeMenu->AddItem(item); |
| 1965 | |
1952 | 1966 | iconSizeMenu->AddSeparatorItem(); |
1953 | 1967 | |
1954 | 1968 | message = new BMessage(kIconMode); |
diff --git src/kits/tracker/DeskWindow.cpp src/kits/tracker/DeskWindow.cpp
index 9ec3db4..85545db 100644
|
|
BDeskWindow::AddWindowContextMenus(BMenu *menu)
|
309 | 309 | item->SetTarget(PoseView()); |
310 | 310 | iconSizeMenu->AddItem(item); |
311 | 311 | |
| 312 | message = new BMessage(kIconMode); |
| 313 | message->AddInt32("size", 96); |
| 314 | item = new BMenuItem(B_TRANSLATE("96 x 96"), message); |
| 315 | item->SetMarked(PoseView()->IconSizeInt() == 96); |
| 316 | item->SetTarget(PoseView()); |
| 317 | iconSizeMenu->AddItem(item); |
| 318 | |
| 319 | message = new BMessage(kIconMode); |
| 320 | message->AddInt32("size", 128); |
| 321 | item = new BMenuItem(B_TRANSLATE("128 x 128"), message); |
| 322 | item->SetMarked(PoseView()->IconSizeInt() == 128); |
| 323 | item->SetTarget(PoseView()); |
| 324 | iconSizeMenu->AddItem(item); |
| 325 | |
312 | 326 | iconSizeMenu->AddSeparatorItem(); |
313 | 327 | |
314 | 328 | message = new BMessage(kIconMode); |
diff --git src/kits/tracker/PoseView.cpp src/kits/tracker/PoseView.cpp
index d5f6543..267e026 100644
|
|
BPoseView::MessageReceived(BMessage *message)
|
2133 | 2133 | case 64: |
2134 | 2134 | fViewState->SetIconSize(48); |
2135 | 2135 | break; |
| 2136 | case 96: |
| 2137 | fViewState->SetIconSize(64); |
| 2138 | break; |
| 2139 | case 128: |
| 2140 | fViewState->SetIconSize(96); |
| 2141 | break; |
2136 | 2142 | } |
2137 | 2143 | } else if (scale == 1 && (int32)IconSizeInt() != 128) { |
2138 | 2144 | switch ((int32)IconSizeInt()) { |
… |
… |
BPoseView::MessageReceived(BMessage *message)
|
2145 | 2151 | case 48: |
2146 | 2152 | fViewState->SetIconSize(64); |
2147 | 2153 | break; |
| 2154 | case 64: |
| 2155 | fViewState->SetIconSize(96); |
| 2156 | break; |
| 2157 | case 96: |
| 2158 | fViewState->SetIconSize(128); |
| 2159 | break; |
2148 | 2160 | } |
2149 | 2161 | } |
2150 | 2162 | } else { |
2151 | 2163 | int32 iconSize = fViewState->LastIconSize(); |
2152 | | if (iconSize < 32 || iconSize > 64) { |
| 2164 | if (iconSize < 32 || iconSize > 128) { |
2153 | 2165 | // uninitialized last icon size? |
2154 | 2166 | iconSize = 32; |
2155 | 2167 | } |
diff --git src/kits/tracker/ViewState.cpp src/kits/tracker/ViewState.cpp
index 20fc4d5..533676d 100644
|
|
BViewState::_Sanitize(BViewState *state, bool fixOnly)
|
474 | 474 | } |
475 | 475 | if (state->fIconSize < 16) |
476 | 476 | state->fIconSize = 16; |
477 | | if (state->fIconSize > 64) |
478 | | state->fIconSize = 64; |
| 477 | if (state->fIconSize > 128) |
| 478 | state->fIconSize = 128; |
479 | 479 | if (state->fLastIconSize < 16) |
480 | 480 | state->fLastIconSize = 16; |
481 | | if (state->fLastIconSize > 64) |
482 | | state->fLastIconSize = 64; |
| 481 | if (state->fLastIconSize > 128) |
| 482 | state->fLastIconSize = 128; |
483 | 483 | |
484 | 484 | if (fixOnly) |
485 | 485 | return state; |