| 57 | } |
| 58 | |
| 59 | auto MakeRulerPanel( |
| 60 | wxWindow* parent, wxOrientation orientation, float dbRange, |
| 61 | int id = wxID_ANY) |
| 62 | { |
| 63 | // Overridden by `.MinSize()` calls |
| 64 | const wxSize minSize { -1, -1 }; |
| 65 | |
| 66 | return safenew RulerPanel( |
| 67 | parent, id, orientation, minSize, |
| 68 | orientation == wxVERTICAL ? RulerPanel::Range { 0.0, -dbRange } : |
| 69 | RulerPanel::Range { -dbRange, 0.0 }, |
| 70 | LinearDBFormat::Instance(), XO(""), |
| 71 | RulerPanel::Options {} |
| 72 | .LabelEdges(false) |
| 73 | .TicksAtExtremes(true) |
| 74 | .Flip(orientation == wxVERTICAL) |
| 75 | .TickColour(theTheme.Colour(clrGraphLabels))); |
| 76 | } |
| 77 | |
| 78 | constexpr auto C = 5.; |
| 79 |
no test coverage detected