summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-20 22:19:45 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-20 22:19:45 +0300
commit8138d0e61f633546263df94473e91d500ada9c0e (patch)
treecc0f9b2290964c017ad1c0981a429d733a406e3e /src/gui/widgets
parent5f2ee9e2f8c8d313de85df08abdc2a7f7396995f (diff)
downloadplus-8138d0e61f633546263df94473e91d500ada9c0e.tar.gz
plus-8138d0e61f633546263df94473e91d500ada9c0e.tar.bz2
plus-8138d0e61f633546263df94473e91d500ada9c0e.tar.xz
plus-8138d0e61f633546263df94473e91d500ada9c0e.zip
Auto hide filter in invetory if window size too small.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/layout.h29
1 files changed, 22 insertions, 7 deletions
diff --git a/src/gui/widgets/layout.h b/src/gui/widgets/layout.h
index f5e1f1749..5e3ac4532 100644
--- a/src/gui/widgets/layout.h
+++ b/src/gui/widgets/layout.h
@@ -261,6 +261,28 @@ class LayoutCell
*/
void computeSizes();
+ void setType(int t)
+ { mType = t; }
+
+ int getWidth()
+ { return mExtent[0]; }
+
+ int getHeight()
+ { return mExtent[1]; }
+
+ void setWidth(int w)
+ { mExtent[0] = w; }
+
+ void setHeight(int h)
+ { mExtent[1] = h; }
+
+ enum
+ {
+ NONE = 0,
+ WIDGET,
+ ARRAY
+ };
+
private:
// Copy not allowed, as the cell may own an array.
LayoutCell(LayoutCell const &);
@@ -272,13 +294,6 @@ class LayoutCell
LayoutArray *mArray;
};
- enum
- {
- NONE = 0,
- WIDGET,
- ARRAY
- };
-
/**
* Returns the embedded array. Creates it if the cell does not contain
* anything yet. Aborts if it contains a widget.