FileChooser(3I)
π FileChooser(3I) π
okay so hi bestie, welcome to the InterViews Reference Manual π today's main character is FileChooser, and she is literally the dialog box for choosing a file name. no cap. she's giving utility, she's giving pop-up, she's giving iconic. π«Ά
πΈ NAME πΈ
FileChooser β a dialog box for choosing a file name. that's it, that's the whole girl. π
β¨ SYNOPSIS β¨
#include <InterViews/filechooser.h>
π¦ DESCRIPTION π¦
So FileChooser is a StringChooser, and what she does is provide a complete dialog box interface to selecting a file name. periodt. π
and like, what's in the box? let me list it because the lineup is stacked:
- two lines of descriptive text, serving as the title and subtitle
- a
StringEditor, for when you wanna enter the file name explicitly (yes, by hand, old school, love that for you) - a
FileBrowser - two
PushButtons β one for accepting and one for canceling. the duality of woman, honestly π
π PUBLIC OPERATIONS π
FileChooser(const char* title, const char* subtitle, const char* dir, int rows, int cols, const char* acceptLabel, Alignment)FileChooser(const char* name, const char*, const char*, const char*, int, int, const char* accept, Alignment)
Construct a new FileChooser with the given title and subtitle, search directory dir, FileBrowser size specification rows and cols, label for the accept PushButton acceptLabel, and pop-up alignment. These constructors create all the elements of the dialog box and compose them into a default layout. she comes pre-assembled, bestie β¨
void SetTitle(const char*)void SetSubtitle(const char*)
Change the text in the title or the subtitle. and the way that the new text will appear immediately in the dialog when either function is called?? obsessed. instant glow-up, no refresh needed. π₯
void SelectFile()β Highlight the text in theStringEditor. that's the whole thing, she just highlights it π«void Update()βFileChooser'sUpdatesimply callsUpdateon theFileBrowserinstance, so it rescans the current directory and updates its appearance. keeping it fresh, keeping it accurate π
π PROTECTED OPERATIONS π
okay so this is the "subclassing only" section. if you're not making a subclass, this is not your moment, iykyk π
FileChooser(ButtonState*, Alignment = Center)β Construct a newFileChooserwith the given button state and pop-up alignment, and without creatingFileBrowser,StringEditor, title, subtitle, orPushButtoninstances. This constructor should be called in subclasses requiring a specializedStringEditororFileBrowser. you're building the pieces yourself, bestie, and honestly? respect. π§FileChooser(ButtonState*, const char* dir, int rows, int cols, Alignment)β Construct a newFileChooser(along with itsStringEditorand itsFileBrowser) with the given button state, search directory,FileBrowsersize specification, and pop-up alignment, without composing them into the default layout and without creating the title, subtitle, orPushButtons. This constructor should be used byFileChoosersubclasses that define a specialized look and feel. custom layout, custom energy, main character behavior π
π SEE ALSO π
Button(3I)Dialog(3I)FileBrowser(3I)StringChooser(3I)StringEditor(3I)
go read these too, they're all part of the friend group fr fr π
and that's the page!! π this was InterViews, dated 30 November 1989 β yes she's vintage, yes she still slays, and yes you should absolutely screenshot this for later. bye bestie, go pick a file πβ¨π
π¦ where this page comes from
- debian bookworm: ivtools-dev 2.0.11d.a1-1+b4
- debian trixie: ivtools-dev 2.0.11d.a1-3+b4
- ubuntu jammy: ivtools-dev 2.0.11d.a1-1build1
- ubuntu noble: ivtools-dev 2.0.11d.a1-3build1
- ubuntu questing: ivtools-dev 2.0.11d.a1-3build7
- ubuntu resolute: ivtools-dev 2.0.11d.a1-3build9
- ubuntu stonking: ivtools-dev 2.1.1+git.2025.07.26.a1-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms