diff options
-rw-r--r-- | src/gui/widgets/button.cpp | 54 | ||||
-rw-r--r-- | src/gui/widgets/button.h | 11 |
2 files changed, 0 insertions, 65 deletions
diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp index dc3a7d063..7c4668126 100644 --- a/src/gui/widgets/button.cpp +++ b/src/gui/widgets/button.cpp @@ -303,60 +303,6 @@ Button::Button(const Widget2 *const widget, addActionListener(listener); } -Button::Button(const Widget2 *const widget, - const std::string &restrict caption, - const std::string &restrict imageName, - const std::string &restrict actionEventId, - const std::string &restrict skinName, - ActionListener *const listener) : - Widget(widget), - MouseListener(), - KeyListener(), - FocusListener(), - WidgetListener(), - mSkin(), - mCaption(caption), - mDescription(), - mSkinName(skinName), - mTextChunk(), - mVertexes2(new ImageCollection), - mEnabledColor(getThemeColor(ThemeColorId::BUTTON, 255U)), - mEnabledColor2(getThemeColor(ThemeColorId::BUTTON_OUTLINE, 255U)), - mDisabledColor(getThemeColor(ThemeColorId::BUTTON_DISABLED, 255U)), - mDisabledColor2(getThemeColor(ThemeColorId::BUTTON_DISABLED_OUTLINE, - 255U)), - mHighlightedColor(getThemeColor(ThemeColorId::BUTTON_HIGHLIGHTED, 255U)), - mHighlightedColor2(getThemeColor( - ThemeColorId::BUTTON_HIGHLIGHTED_OUTLINE, 255U)), - mPressedColor(getThemeColor(ThemeColorId::BUTTON_PRESSED, 255U)), - mPressedColor2(getThemeColor(ThemeColorId::BUTTON_PRESSED_OUTLINE, 255U)), - mImages(nullptr), - mImageSet(nullptr), - mAlignment(Graphics::CENTER), - mClickCount(0), - mSpacing(), - mTag(0), - mMode(0), - mXOffset(0), - mYOffset(0), - mImageWidth(0), - mImageHeight(0), - mHasMouse(false), - mKeyPressed(false), - mMousePressed(false), - mStick(false), - mPressed(false), - mTextChanged(true) -{ - init(); - loadImage(imageName); - adjustSize(); - setActionEventId(actionEventId); - - if (listener != nullptr) - addActionListener(listener); -} - void Button::init() { mAllowLogic = false; diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h index 92ab1fa41..447ef8192 100644 --- a/src/gui/widgets/button.h +++ b/src/gui/widgets/button.h @@ -139,17 +139,6 @@ class Button final : public Widget, const std::string &restrict skinName, ActionListener *const listener); - /** - * Constructor, sets the caption of the button to the given string and - * adds the given action listener. - */ - Button(const Widget2 *const widget, - const std::string &restrict imageName, - const std::string &restrict caption, - const std::string &restrict actionEventId, - const std::string &restrict skinName, - ActionListener *const listener); - A_DELETE_COPY(Button) /** |