Skip to content

Commit

Permalink
Add explanatory message to code preview
Browse files Browse the repository at this point in the history
  • Loading branch information
tpecholt committed Dec 8, 2024
1 parent 50cc43a commit 11dc0fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/imrad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,8 @@ void ShowCode()
return;
std::string path = (fs::temp_directory_path() / "imrad-preview.cpp").string();
std::ofstream fout(path);
fout << "// NOTE: This is just a preview of the Draw() method. To see full generated code\n"
<< "// including class definition and event handlers inspect the generated .h/cpp files\n\n";
ctx.ind = "";
auto* root = fileTabs[activeTab].rootNode.get();
root->Export(fout, ctx);
Expand Down

0 comments on commit 11dc0fa

Please sign in to comment.