summaryrefslogtreecommitdiff
path: root/src/gui/widgets/staticbrowserbox.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-26 19:10:28 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-26 19:37:23 +0300
commitd599ae437a5966d3730939c80811763b62e709b1 (patch)
tree4bc20b96914553aeea18de292628815bf24c4236 /src/gui/widgets/staticbrowserbox.h
parentef6a173d875114f31509823541c972667d987f87 (diff)
downloadmanaplus-d599ae437a5966d3730939c80811763b62e709b1.tar.gz
manaplus-d599ae437a5966d3730939c80811763b62e709b1.tar.bz2
manaplus-d599ae437a5966d3730939c80811763b62e709b1.tar.xz
manaplus-d599ae437a5966d3730939c80811763b62e709b1.zip
Imrove staticbrowserbox.
Fix wrong width in some cases. Improved performance. Removed useless code.
Diffstat (limited to 'src/gui/widgets/staticbrowserbox.h')
-rw-r--r--src/gui/widgets/staticbrowserbox.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/gui/widgets/staticbrowserbox.h b/src/gui/widgets/staticbrowserbox.h
index e2d2bc1f9..7698ec5ff 100644
--- a/src/gui/widgets/staticbrowserbox.h
+++ b/src/gui/widgets/staticbrowserbox.h
@@ -34,7 +34,6 @@
#include "gui/widgets/widget.h"
#include "listeners/mouselistener.h"
-#include "listeners/widgetlistener.h"
#include "localconsts.h"
@@ -45,8 +44,7 @@ class LinkHandler;
* parent conteiner.
*/
class StaticBrowserBox final : public Widget,
- public MouseListener,
- public WidgetListener
+ public MouseListener
{
public:
/**
@@ -142,20 +140,13 @@ class StaticBrowserBox final : public Widget,
void setForegroundColorAll(const Color &color1,
const Color &color2);
- unsigned int getDataWidth() const noexcept2 A_WARN_UNUSED
- { return mDataWidth; }
-
void moveSelectionUp();
void moveSelectionDown();
void selectSelection();
- void widgetResized(const Event &event) override final;
-
private:
- int calcHeight() A_WARN_UNUSED;
-
typedef TextRows::iterator TextRowIterator;
typedef TextRows::const_iterator TextRowCIter;
TextRows mTextRows;
@@ -180,7 +171,6 @@ class StaticBrowserBox final : public Widget,
int mPadding;
unsigned int mNewLinePadding;
int mItemPadding;
- unsigned int mDataWidth;
Color mHighlightColor;
Color mHyperLinkColor;