How pondahai/mbcwjfx works
Project type and purpose
• From the README and file names, this is “MbcWJFX,” a standalone Palm-OS application written in C (built under CodeWarrior) that implements a LabVIEW-style flowchart/programming language on Palm devices. The app provides a visual “block” editor (flowchart UI), a runtime engine to interpret those flowcharts, and persistence to load/save user programs.
File structure
• Top level
• README.md, .gitattributes, Stationery Read Me.txt, Thumbs.db – docs and metadata
• Starter.prc, Starter.tmp, VPL.mcp – Palm OS resource binary and CodeWarrior project workspace
• Resource.frk/ – resource compiler/frk files for UI resources
• Src/ – all core C source files organized flat but by function (UI, engine, I/O, utils)
• VPL_Data/ – runtime settings (CWSettingsWindows.stg) and TargetDataWindows.tdt for build/deployment
• Inside Src/
• panel.c, paneltools.c – code for the on-screen flowchart editor UI
• block.c, blocktools.c, functions.c – representations and operations on flowchart blocks
• run.c – the interpreter/execution engine for running the user’s flowcharts
• load.c, save.c, db.c, testdata.c – persistence layer handling program I/O and data storage
• linklist.c, tools.c, misc.c – general utilities and data structures
• mbcwjfx.c – likely the main entry point/glue for startup and environment setup
• StarterRsc.{c,h} – generated resource headers for Palm UI dialogs and controls
README for additional insights
• Confirms this is a flowchart-based programming language inspired by LabVIEW, supporting arithmetic, loops, basic logic.
• No external services or microservices—entire app runs on Palm OS as a single binary.
a. Main components to show
1. User Interface Layer (Panel UI, Resource Manager)
2. Flowchart Model / Block Library (block.c, functions.c)
3. Execution Engine (run.c)
4. Persistence / Storage (load.c, save.c, db.c, testdata.c)
5. Utilities (linklist, tools, misc)
6. Palm OS Platform (OS APIs for memory, UI, file system)
b. Relationships and interactions
• UI Layer ↔ Flowchart Model: users add/move blocks; paneltools invoke blocktools
• Flowchart Model → Execution Engine: model serialized into runtime instructions
• Execution Engine ↔ Persistence Layer: engine can save current program state or load prior flows
• Any component → Utilities: common data structures and helper functions
• All components → Palm OS Platform: calls to OS APIs for drawing, event loop, file I/O
c. Architectural patterns
• Layered structure: UI → Model → Engine → Storage
• Separation of concerns: block management separate from execution, separate from persistence
• Resource abstraction: all GUI assets generated via Resource.frk/StarterRsc
d. Key technologies/frameworks
• C/C++ on Palm OS SDK
• CodeWarrior project file (.mcp) for build
• Palm OS PRC binary (Starter.prc) as deployment artifact
• Labels: name each component (e.g., “Flowchart Editor Module (panel.c)”)
• Core engine components in another (e.g., green ovals)
• Platform boundary as a thick border around Palm OS