MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / OpenFile

Function OpenFile

Applications/TextEdit/main.cpp:89–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void OpenFile(){
90
91 char* filePath = Lemon::GUI::FileDialog("/");
92
93 if(!filePath){
94 Lemon::GUI::DisplayMessageBox("Message", "Invalid filepath!", Lemon::GUI::MsgButtonsOK);
95 return;
96 }
97
98 LoadFile(filePath);
99}
100
101void SaveFileAs(){
102 char* filePath = Lemon::GUI::FileDialog(".", FILE_DIALOG_CREATE);

Callers 1

OnWindowCmdFunction · 0.85

Calls 3

FileDialogFunction · 0.85
DisplayMessageBoxFunction · 0.85
LoadFileFunction · 0.85

Tested by

no test coverage detected