Returns the visibility of the specified toolbar
| 1033 | // Returns the visibility of the specified toolbar |
| 1034 | // |
| 1035 | bool ToolManager::IsVisible(Identifier type) const |
| 1036 | { |
| 1037 | if (auto pBar = GetToolBar(type)) |
| 1038 | return pBar->IsVisible(); |
| 1039 | return false; |
| 1040 | |
| 1041 | #if 0 |
| 1042 | // If toolbar is floating |
| 1043 | if( !t->IsDocked() ) |
| 1044 | { |
| 1045 | // Must return state of floater window |
| 1046 | return t->GetParent()->IsShown(); |
| 1047 | } |
| 1048 | |
| 1049 | // Return state of docked toolbar |
| 1050 | return t->IsShown(); |
| 1051 | #endif |
| 1052 | } |
| 1053 | |
| 1054 | // |
| 1055 | // Toggles the visible/hidden state of a toolbar |
no test coverage detected