Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

neoGFX - The Ultimate C++ GUI Library -- Coming Soon

11 views
Skip to first unread message

Mr Flibble

unread,
Jul 12, 2020, 10:57:41 AM7/12/20
to
Hi!

neoGFX now includes a generic and extensible settings system with a standard settings dialog for which custom setting widgets can be created for custom setting types.

register_category("environment"_s, "Environment"_t);
register_group("environment.general"_s, "General"_t);
register_group("environment.accounts_and_licensing"_s, "Accounts and Licensing"_t);
register_group("environment.documents"_s, "Documents"_t);
register_group("environment.fonts_and_colors"_s, "Fonts and Colors"_t);
register_group("environment.workspace"_s, "Workspace"_t);
register_group("environment.keyboard"_s, "Keyboard"_t);
register_group("environment.tabs_and_windows"_s, "Tabs and Windows"_t);
register_category("text_editor"_s, "Text Editor"_t);
register_group("text_editor.general"_s, "General"_t);
register_group("text_editor.advanced"_s, "Advanced"_t);
register_group("text_editor.tabs_and_indentation"_s, "Tabs and Indentation"_t);
register_group("text_editor.syntax_highlighting"_s, "Syntax Highlighting"_t);
register_category("node_editor"_s, "Node Editor"_t);
register_category("scripting"_s, "Scripting"_t);
register_category("debugging"_s, "Debugging"_t);
register_category("projects"_s, "Projects"_t);
register_category("source_control"_s, "Source Control"_t);
register_category("team"_s, "Team"_t);
register_category("plugins"_s, "Plugins"_t);

register_setting<color>("environment.general.theme"_s, service<i_app>().current_style().palette().color(color_role::Theme), "Theme color: %?%"_t);
register_setting<workspace_grid>("environment.workspace.grid_type"_s, workspace_grid::Lines, "Grid type : %?% Grid size: %environment.workspace.grid_size:?%"_t);
register_setting<uint32_t>("environment.workspace.grid_size"_s, 20, ng::setting_constraints<uint32_t>{ false, false, 2, 64, 2 });
register_setting<gradient>("environment.workspace.grid_color"_s, gradient{ service<i_app>().current_style().palette().color(color_role::Theme).with_alpha(0.25) }, { true }, "Grid color: %?%"_t);

Video:

https://www.youtube.com/watch?v=1ByxyyPIh-o

neoGFX - the cheaper, superior alternative to the currently most popular C++ GUI toolkit .. coming soon!

/Flibble

--
"Snakes didn't evolve, instead talking snakes with legs changed into snakes." - Rick C. Hodgin

“You won’t burn in hell. But be nice anyway.” – Ricky Gervais

“I see Atheists are fighting and killing each other again, over who doesn’t believe in any God the most. Oh, no..wait.. that never happens.” – Ricky Gervais

"Suppose it's all true, and you walk up to the pearly gates, and are confronted by God," Byrne asked on his show The Meaning of Life. "What will Stephen Fry say to him, her, or it?"
"I'd say, bone cancer in children? What's that about?" Fry replied.
"How dare you? How dare you create a world to which there is such misery that is not our fault. It's not right, it's utterly, utterly evil."
"Why should I respect a capricious, mean-minded, stupid God who creates a world that is so full of injustice and pain. That's what I would say."
0 new messages