WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
UIState Struct Reference

Mutable state for the UI layer: dialogs, fonts, log viewer, folder picker. More...

#include <AppState.h>

Public Member Functions

bool & panel (const char *name)
 

Public Attributes

bool showAboutDialog = false
 
bool showLanguageDialog = false
 
std::unordered_map< std::string, bool > panelOpen
 
bool showImportDialog = false
 
bool showFolderPicker = false
 
bool importPopupJustOpened = false
 
std::vector< FontEntryavailableFonts
 
bool fontsDirty = false
 
float dpiScale = 1.0f
 
std::filesystem::path folderPickerCurrent
 
std::vector< std::filesystem::path > folderPickerEntries
 
bool folderPickerNeedsRefresh = true
 
std::vector< std::string > logLines
 
bool logAutoScroll = true
 
bool logNeedsReload = true
 

Detailed Description

Mutable state for the UI layer: dialogs, fonts, log viewer, folder picker.

Definition at line 109 of file AppState.h.

Member Function Documentation

◆ panel()

bool & UIState::panel ( const char *  name)
inline

Returns a reference to the open flag for a named panel. Missing entries are inserted as true (open by default).

Definition at line 121 of file AppState.h.

Here is the caller graph for this function:

Member Data Documentation

◆ availableFonts

std::vector<FontEntry> UIState::availableFonts

Definition at line 135 of file AppState.h.

◆ dpiScale

float UIState::dpiScale = 1.0f

Definition at line 137 of file AppState.h.

◆ folderPickerCurrent

std::filesystem::path UIState::folderPickerCurrent

Definition at line 140 of file AppState.h.

◆ folderPickerEntries

std::vector<std::filesystem::path> UIState::folderPickerEntries

Definition at line 141 of file AppState.h.

◆ folderPickerNeedsRefresh

bool UIState::folderPickerNeedsRefresh = true

Definition at line 142 of file AppState.h.

◆ fontsDirty

bool UIState::fontsDirty = false

Definition at line 136 of file AppState.h.

◆ importPopupJustOpened

bool UIState::importPopupJustOpened = false

Definition at line 132 of file AppState.h.

◆ logAutoScroll

bool UIState::logAutoScroll = true

Definition at line 146 of file AppState.h.

◆ logLines

std::vector<std::string> UIState::logLines

Definition at line 145 of file AppState.h.

◆ logNeedsReload

bool UIState::logNeedsReload = true

Definition at line 147 of file AppState.h.

◆ panelOpen

std::unordered_map<std::string, bool> UIState::panelOpen

Definition at line 117 of file AppState.h.

◆ showAboutDialog

bool UIState::showAboutDialog = false

Definition at line 112 of file AppState.h.

◆ showFolderPicker

bool UIState::showFolderPicker = false

Definition at line 129 of file AppState.h.

◆ showImportDialog

bool UIState::showImportDialog = false

Definition at line 128 of file AppState.h.

◆ showLanguageDialog

bool UIState::showLanguageDialog = false

Definition at line 113 of file AppState.h.


The documentation for this struct was generated from the following file: