chore :refactored remaining views

This commit is contained in:
2025-12-19 17:37:42 +03:00
parent 4ada2c44ed
commit 8112096647
23 changed files with 898 additions and 569 deletions

View File

@@ -0,0 +1,30 @@
#ifndef CLRSYNC_GUI_WIDGETS_SETTINGS_BUTTONS_HPP
#define CLRSYNC_GUI_WIDGETS_SETTINGS_BUTTONS_HPP
#include <functional>
namespace clrsync::gui::widgets
{
struct settings_buttons_callbacks
{
std::function<void()> on_ok;
std::function<void()> on_apply;
std::function<void()> on_reset;
std::function<void()> on_cancel;
};
class settings_buttons
{
public:
void render(const settings_buttons_callbacks& callbacks, bool apply_enabled);
void set_button_width(float width) { m_button_width = width; }
private:
float m_button_width = 100.0f;
};
} // namespace clrsync::gui::widgets
#endif // CLRSYNC_GUI_WIDGETS_SETTINGS_BUTTONS_HPP