Set the visible/hidden state of a toolbar
| 1064 | // Set the visible/hidden state of a toolbar |
| 1065 | // |
| 1066 | void ToolManager::Expose( Identifier type, bool show ) |
| 1067 | { |
| 1068 | ToolBar *t = mBars[type].get(); |
| 1069 | |
| 1070 | // Handle docked and floaters differently |
| 1071 | if( t->IsDocked() ) |
| 1072 | { |
| 1073 | t->GetDock()->Expose( t->GetSection(), show ); |
| 1074 | } |
| 1075 | else |
| 1076 | { |
| 1077 | t->Expose( show ); |
| 1078 | } |
| 1079 | } |
| 1080 | |
| 1081 | // |
| 1082 | // Ask both docks to (re)layout their bars |
no test coverage detected