src/main.c File Referencesrc/main.cGem-graph-client main file. #include "../include/fsm.h"#include "../include/signal.h"#include "../include/widget.h"Include dependency graph for main.c:Functions int main (int argc, char **argv)Detailed DescriptionGem-graph-client main file. This file is part of Gem-graph. It contains only the main() function.The main() function initialises the log, the finite state machine (fsm), the application and the windows and closes all the elements it opened before the end of program execution.By default, the main window opens on the overview page of the current model as specified in: src/widget/main_window/designer/widget_design_main_window().There are several types of organisation in src (sources):The widgets that give the windows their appearance are organised in a tree-like hierarchy.The fsm (finite state machine), which controls the program's actions and indicates its state at all times, contains the following main sections:execute or edit (managing the appropriate tools states in both cases)measure, operate on data, prepare displayable resultsapply user preferencesindicate the desired state of windows and widgetsThe other functions are those that manage graphics, callbacks, utilities and the log. They are called transversal because they must be easily accessed by all the preceding functions. They therefore remain at the root (src). Function Documentationmain()mainmain.cmain.cmainint main (int argc, char ** argv)Since2024-04See alsosrc/fsm/dispatch/fsm_init() src/widget/dispatch/on_windows_activation(app)
Parameters
argc**argv
Returnsstatus, the program errorlevel
Here is the call graph for this function: