Table of Contents

Graphic-Cache SubMenu

The submenu locates on the Preference Menu Dropdown.

The model UserService is from its parent component.

Layout

  • Graphic-Cache SubMenu
    • Graphic-Cache Lower Limit Input Text Field
    • Graphic-Cache Upper Limit Input Text Field
    • Graphic-Cache Input Text Field
    • Graphic-Cache Slider

Behavior

Graphic-Cache Input Text Field and Graphic-Cache Slider bind the GraphicCacheMb. The limit text fields also bind to the properties of UserConfig.

Source Code Path

See this page for git repository.

WPF Application Source Code Path

  • MainWindow (be included in preference menu)

Web Page Application Source Code Path

HiNC-2025-webservice (Quasar CLI SPA):

  • wwwroot-src/src/components/preference/GraphicCacheMenu.vue — nested <q-menu> under Preference → Graphic Cache with Lower / Upper (NumericInput) + Current (NumericInput) + <q-slider>. Commits on blur / change.
  • wwwroot-src/src/components/widgets/NumericInput.vue — shared Infinity-friendly numeric field reused for the three limit inputs.
  • wwwroot-src/src/layouts/AppMenuBar.vue — hosts the Graphic Cache entry inside the Preference dropdown.
  • wwwroot-src/src/api/preference.ts — typed wrapper over GET/POST /api/preference/graphic-cache.
  • Environments/PreferenceController.cs — REST endpoints: GET /api/preference/graphic-cache returns { graphicCacheMb, lowerLimitMb, upperLimitMb }; POST writes through UserService.SaveUserConfig()UserConfig.GraphicCacheMbCubeTree.DispCacheMb.