MCPcopy Create free account
hub / github.com/CalcProgrammer1/KeyboardVisualizer / main

Function main

KeyboardVisualizerQT/main.cpp:271–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271int main(int argc, char *argv[])
272{
273 QApplication a(argc, argv);
274
275 startminimized = false;
276
277 //Initialize Visualizer
278 vis.Initialize();
279
280 //Get file path in executable directory
281 //char filename[2048];
282 //GetModuleFileName(NULL, filename, 2048);
283 //char arg1[64];
284 //snprintf(arg1, 64, "/proc/%d/exe", getpid());
285 //readlink(arg1, filename, 1024);
286 //strcpy(filename, std::string(filename).substr(0, std::string(filename).find_last_of("\\/")).c_str());
287 //strcat(filename, "\\settings.txt");
288 //strcat(filename, "/settings.txt");
289 //parse_settings_file(filename);
290
291 //Parse Command Line
292 if (!parse_command_line(argc, argv))
293 {
294 return 0;
295 }
296
297 //Start Visualizer Threads
298 vis.StartThread();
299
300 //Create Dialog
301 Ui::KeyboardVisDlg dlg;
302 dlg.StartMinimized(startminimized);
303 dlg.SetVisualizer(&vis);
304 dlg.show();
305
306 return a.exec();
307}

Callers

nothing calls this directly

Calls 6

parse_command_lineFunction · 0.85
InitializeMethod · 0.80
StartThreadMethod · 0.80
StartMinimizedMethod · 0.80
SetVisualizerMethod · 0.80
showMethod · 0.80

Tested by

no test coverage detected