aboutsummaryrefslogtreecommitdiff
path: root/dw/widget.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-07-07 21:57:59 +0200
committerSebastian Geerken <devnull@localhost>2014-07-07 21:57:59 +0200
commit03352791c81970bd33dea4e75203f6e6978e0c92 (patch)
tree230f6ab3ec71c9033d6506cb0a0e2179d294e8b7 /dw/widget.hh
parent177695c2961956a12a1e7926458b713a4422f569 (diff)
Removed widget flag USES_HINTS.
Diffstat (limited to 'dw/widget.hh')
-rw-r--r--dw/widget.hh21
1 files changed, 3 insertions, 18 deletions
diff --git a/dw/widget.hh b/dw/widget.hh
index a2bda3c0..38551fde 100644
--- a/dw/widget.hh
+++ b/dw/widget.hh
@@ -69,27 +69,19 @@ protected:
EXTREMES_CHANGED = 1 << 5,
/**
- * \brief Set by the widget itself (in the constructor), when set...
- * methods are implemented.
- *
- * Will hopefully be removed, after redesigning the size model.
- */
- USES_HINTS = 1 << 6,
-
- /**
* \brief Set by the widget itself (in the constructor), when it contains
* some contents, e.g. an image, as opposed to a horizontal ruler.
*
* Will hopefully be removed, after redesigning the size model.
*/
- HAS_CONTENTS = 1 << 7,
+ HAS_CONTENTS = 1 << 6,
/**
* \brief Set, when a widget was already once allocated,
*
* The dw::Image widget uses this flag, see dw::Image::setBuffer.
*/
- WAS_ALLOCATED = 1 << 8,
+ WAS_ALLOCATED = 1 << 7,
};
/**
@@ -205,14 +197,13 @@ protected:
/*inline void printFlags () {
DBG_IF_RTFL {
char buf[10 * 3 - 1 + 1];
- snprintf (buf, sizeof (buf), "%s:%s:%s:%s:%s:%s:%s:%s:%s:%s",
+ snprintf (buf, sizeof (buf), "%s:%s:%s:%s:%s:%s:%s:%s:%s",
(flags & RESIZE_QUEUED) ? "Rq" : "--",
(flags & EXTREMES_QUEUED) ? "Eq" : "--",
(flags & NEEDS_RESIZE) ? "nR" : "--",
(flags & NEEDS_ALLOCATE) ? "nA" : "--",
(flags & ALLOCATE_QUEUED) ? "Aq" : "--",
(flags & EXTREMES_CHANGED) ? "Ec" : "--",
- (flags & USES_HINTS) ? "uh" : "--",
(flags & HAS_CONTENTS) ? "hc" : "--",
(flags & WAS_ALLOCATED) ? "wA" : "--",
(flags & BLOCK_LEVEL) ? "bl" : "--");
@@ -253,11 +244,6 @@ protected:
(flags & EXTREMES_CHANGED) ? "true" : "false");
break;
- case USES_HINTS:
- DBG_OBJ_SET_SYM ("flags.USES_HINTS",
- (flags & USES_HINTS) ? "true" : "false");
- break;
-
case HAS_CONTENTS:
DBG_OBJ_SET_SYM ("flags.HAS_CONTENTS",
(flags & HAS_CONTENTS) ? "true" : "false");
@@ -417,7 +403,6 @@ public:
inline bool allocateQueued () { return flags & ALLOCATE_QUEUED; }
inline bool extremesChanged () { return flags & EXTREMES_CHANGED; }
inline bool wasAllocated () { return flags & WAS_ALLOCATED; }
- inline bool usesHints () { return flags & USES_HINTS; }
inline bool hasContents () { return flags & HAS_CONTENTS; }
void setParent (Widget *parent);