IntegerWidgets.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Basic.h"
4 
6 {
7  template <typename Derived>
8  struct IntMinMaxMixin : MinMaxMixin<Derived, int>
9  {};
10 
12  : public ValueMixin<IntSpinBox, int, IntSpinBoxBuilder>
13  , public IntMinMaxMixin<IntSpinBoxBuilder>
14  , public ToolTipMixin<IntSpinBoxBuilder>
15  {
16  using ValueMixin::ValueMixin;
17  };
18 
20  : public ValueMixin<IntSlider, int, IntSliderBuilder>
21  , public IntMinMaxMixin<IntSliderBuilder>
22  , public ToolTipMixin<IntSliderBuilder>
23  {
24  using ValueMixin::ValueMixin;
25  };
26 
28  : public ValueMixin<Button, int, ButtonBuilder>
29  , public LabelMixin<ButtonBuilder>
30  , public ToolTipMixin<ButtonBuilder>
31  {
32  using ValueMixin::ValueMixin;
33  };
34 }
35 
36 namespace armarx::RemoteGui
37 {
38  inline detail::IntSpinBoxBuilder makeIntSpinBox(std::string const& name)
39  {
40  return detail::IntSpinBoxBuilder(name);
41  }
42 
43  inline detail::IntSliderBuilder makeIntSlider(std::string const& name)
44  {
45  return detail::IntSliderBuilder(name);
46  }
47 
48  inline detail::ButtonBuilder makeButton(std::string const& name)
49  {
50  auto b = detail::ButtonBuilder(name);
51  b.label(name);
52  return b;
53  }
54 }
armarx::RemoteGui::makeIntSlider
detail::IntSliderBuilder makeIntSlider(std::string const &name)
Definition: IntegerWidgets.h:43
Basic.h
armarx::RemoteGui::detail::IntSpinBoxBuilder
Definition: IntegerWidgets.h:11
armarx::RemoteGui::makeButton
detail::ButtonBuilder makeButton(std::string const &name)
Definition: IntegerWidgets.h:48
armarx::RemoteGui
Definition: LightweightRemoteGuiComponentPlugin.h:30
armarx::RemoteGui::detail
Definition: Basic.h:10
armarx::RemoteGui::detail::MinMaxMixin
Definition: Basic.h:86
armarx::RemoteGui::detail::LabelMixin
Definition: Basic.h:189
armarx::RemoteGui::makeIntSpinBox
detail::IntSpinBoxBuilder makeIntSpinBox(std::string const &name)
Definition: IntegerWidgets.h:38
armarx::RemoteGui::detail::ToolTipMixin
Definition: Basic.h:200
armarx::RemoteGui::detail::ButtonBuilder
Definition: IntegerWidgets.h:27
armarx::RemoteGui::detail::IntMinMaxMixin
Definition: IntegerWidgets.h:8
armarx::RemoteGui::detail::IntSliderBuilder
Definition: IntegerWidgets.h:19
armarx::RemoteGui::detail::ValueMixin
Definition: Basic.h:68