MCPcopy Create free account
hub / github.com/derceg/explorerplusplus / SetViewMode

Method SetViewMode

Explorer++/Explorer++/ShellBrowser/ShellBrowser.cpp:246–266  ·  view source on GitHub ↗

This function is only called on 'hard' view changes (i.e. view changes resulting from user requests). It is not called when a tab is first set up (in which case the view mode still needs to be setup), or when entering a folder. */

Source from the content-addressed store, hash-verified

244the view mode still needs to be setup), or when entering
245a folder. */
246void ShellBrowser::SetViewMode(ViewMode viewMode)
247{
248 if (viewMode == m_folderSettings.viewMode)
249 {
250 return;
251 }
252
253 if (m_folderSettings.viewMode == +ViewMode::Thumbnails && viewMode != +ViewMode::Thumbnails)
254 {
255 RemoveThumbnailsView();
256 }
257
258 SetViewModeInternal(viewMode);
259
260 switch (viewMode)
261 {
262 case ViewMode::Tiles:
263 SetTileViewInfo();
264 break;
265 }
266}
267
268/* Explicitly sets the view mode within in the listview.
269This function also initializes any items needed to support

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected