From ddba971ebb304512ba9e0a01b77ec71b59b977b6 Mon Sep 17 00:00:00 2001 From: maxim nikonov Date: Fri, 6 Feb 2026 03:20:53 +0500 Subject: wip --- fluid/nodes/Button_Node.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fluid/nodes/Button_Node.cxx') diff --git a/fluid/nodes/Button_Node.cxx b/fluid/nodes/Button_Node.cxx index d989c527c..877c5588d 100644 --- a/fluid/nodes/Button_Node.cxx +++ b/fluid/nodes/Button_Node.cxx @@ -57,7 +57,7 @@ Fl_Menu_Item *Button_Node::subtypes() { } void Button_Node::ideal_size(int &w, int &h) { - auto layout = Fluid.proj.layout; + fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->labelsize + 8; w = layout->labelsize * 4 + 8; fld::app::Snap_Action::better_size(w, h); @@ -95,7 +95,7 @@ void Button_Node::copy_properties() { // ---- Return Button ---- void Return_Button_Node::ideal_size(int &w, int &h) { - auto layout = Fluid.proj.layout; + fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->labelsize + 8; w = layout->labelsize * 4 + 8 + h; // make room for the symbol fld::app::Snap_Action::better_size(w, h); @@ -120,7 +120,7 @@ Repeat_Button_Node Repeat_Button_Node::prototype; // ---- Light Button ---- void Light_Button_Node::ideal_size(int &w, int &h) { - auto layout = Fluid.proj.layout; + fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->labelsize + 8; w = layout->labelsize * 4 + 8 + layout->labelsize; // make room for the light fld::app::Snap_Action::better_size(w, h); @@ -136,7 +136,7 @@ Light_Button_Node Light_Button_Node::prototype; // ---- Check Button ---- void Check_Button_Node::ideal_size(int &w, int &h) { - auto layout = Fluid.proj.layout; + fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->labelsize + 8; w = layout->labelsize * 4 + 8 + layout->labelsize; // make room for the symbol fld::app::Snap_Action::better_size(w, h); @@ -152,7 +152,7 @@ Check_Button_Node Check_Button_Node::prototype; // ---- Round Button ---- void Round_Button_Node::ideal_size(int &w, int &h) { - auto layout = Fluid.proj.layout; + fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->labelsize + 8; w = layout->labelsize * 4 + 8 + layout->labelsize; // make room for the symbol fld::app::Snap_Action::better_size(w, h); -- cgit v1.2.3