Cosmetics
This commit is contained in:
@@ -44,14 +44,14 @@ void Curve::drawBackground(BitmapBuffer * dc)
|
||||
// dc->drawSolidRect(0, 0, width(), height(), 1, DEFAULT_COLOR);
|
||||
}
|
||||
|
||||
coord_t Curve::getPointX(int x)
|
||||
coord_t Curve::getPointX(int x) const
|
||||
{
|
||||
return limit<coord_t>(0,
|
||||
width() / 2 + divRoundClosest(x * width() / 2, RESX),
|
||||
width() - 1);
|
||||
}
|
||||
|
||||
coord_t Curve::getPointY(int y)
|
||||
coord_t Curve::getPointY(int y) const
|
||||
{
|
||||
return limit<coord_t>(0,
|
||||
height() / 2 - divRoundClosest(y * height() / 2, RESX),
|
||||
|
||||
@@ -41,7 +41,7 @@ class Curve: public Window {
|
||||
}
|
||||
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
std::string getName() override
|
||||
std::string getName() const override
|
||||
{
|
||||
return "Curve";
|
||||
}
|
||||
@@ -71,8 +71,8 @@ class Curve: public Window {
|
||||
void drawCurve(BitmapBuffer * dc);
|
||||
void drawPosition(BitmapBuffer * dc);
|
||||
void drawPoint(BitmapBuffer * dc, const CurvePoint & point);
|
||||
coord_t getPointX(int x);
|
||||
coord_t getPointY(int y);
|
||||
coord_t getPointX(int x) const;
|
||||
coord_t getPointY(int y) const;
|
||||
};
|
||||
|
||||
#endif // _CURVE_H_
|
||||
|
||||
@@ -27,7 +27,7 @@ class FabButton: public Button {
|
||||
FabButton(FormGroup * parent, coord_t x, coord_t y, uint8_t icon, std::function<uint8_t(void)> pressHandler, WindowFlags windowFlags = 0);
|
||||
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
std::string getName() override
|
||||
std::string getName() const override
|
||||
{
|
||||
return "FabButton(" + std::to_string(icon) + ")";
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ class FullScreenDialog : public FormGroup {
|
||||
FullScreenDialog(uint8_t type, std::string title, std::string message = "", std::string action = "", std::function<void(void)> confirmHandler = nullptr);
|
||||
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
std::string getName() override
|
||||
std::string getName() const override
|
||||
{
|
||||
return "FullScreenDialog";
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ class CurveKeyboard : public Keyboard {
|
||||
~CurveKeyboard() override;
|
||||
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
std::string getName() override
|
||||
std::string getName() const override
|
||||
{
|
||||
return "CurveKeyboard";
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ class Page: public Window {
|
||||
~Page() override;
|
||||
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
std::string getName() override
|
||||
std::string getName() const override
|
||||
{
|
||||
return "Page";
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ class SourceChoice : public FormField {
|
||||
}
|
||||
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
std::string getName() override
|
||||
std::string getName() const override
|
||||
{
|
||||
return "SourceChoice";
|
||||
}
|
||||
|
||||
@@ -258,7 +258,7 @@ class SpecialFunctionButton : public Button {
|
||||
}
|
||||
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
std::string getName() override
|
||||
std::string getName() const override
|
||||
{
|
||||
return "SpecialFunctionButton";
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ class SwitchWarnDialog: public FullScreenDialog {
|
||||
}
|
||||
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
std::string getName() override
|
||||
std::string getName() const override
|
||||
{
|
||||
return "SwitchWarnDialog";
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ class SwitchChoice : public FormField {
|
||||
}
|
||||
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
std::string getName() override
|
||||
std::string getName() const override
|
||||
{
|
||||
return "SwitchChoice";
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ class TabsCarousel: public Window {
|
||||
TabsCarousel(Window * parent, TabsGroup * menu);
|
||||
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
std::string getName() override
|
||||
std::string getName() const override
|
||||
{
|
||||
return "TabsCarousel";
|
||||
}
|
||||
@@ -118,7 +118,7 @@ class TabsGroupHeader: public FormGroup {
|
||||
~TabsGroupHeader() override;
|
||||
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
std::string getName() override
|
||||
std::string getName() const override
|
||||
{
|
||||
return "TabsGroupHeader";
|
||||
}
|
||||
@@ -149,7 +149,7 @@ class TabsGroup: public Window {
|
||||
~TabsGroup() override;
|
||||
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
std::string getName() override
|
||||
std::string getName() const override
|
||||
{
|
||||
return "TabsGroup";
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ class TimeEdit : public BaseNumberEdit {
|
||||
TimeEdit(Window * parent, const rect_t & rect, int32_t vmin, int32_t vmax, std::function<int32_t()> getValue, std::function<void(int32_t)> setValue = nullptr);
|
||||
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
std::string getName() override
|
||||
std::string getName() const override
|
||||
{
|
||||
return "TimeEdit";
|
||||
}
|
||||
|
||||
Vendored
+1
-1
Submodule radio/src/thirdparty/libopenui updated: c80b96e0b2...29946a11f4
Reference in New Issue
Block a user