summaryrefslogtreecommitdiff
path: root/src/gui/widgets/layout.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-14 21:43:42 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-14 21:43:42 +0300
commit916a53ec6e9eda8711ae7c2e9296463728370751 (patch)
treead4288b80344f4535b7101515ce4da3d51ac3766 /src/gui/widgets/layout.h
parentda267acc2fd56ec20a52a87c76d1abeeb7a5376d (diff)
downloadplus-916a53ec6e9eda8711ae7c2e9296463728370751.tar.gz
plus-916a53ec6e9eda8711ae7c2e9296463728370751.tar.bz2
plus-916a53ec6e9eda8711ae7c2e9296463728370751.tar.xz
plus-916a53ec6e9eda8711ae7c2e9296463728370751.zip
Move containerplacer into separate file.
Diffstat (limited to 'src/gui/widgets/layout.h')
-rw-r--r--src/gui/widgets/layout.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/gui/widgets/layout.h b/src/gui/widgets/layout.h
index c9092f8bd..bf41e1c8e 100644
--- a/src/gui/widgets/layout.h
+++ b/src/gui/widgets/layout.h
@@ -32,40 +32,6 @@ class LayoutCell;
class Widget;
/**
- * This class is a helper for adding widgets to nested tables in a window.
- */
-class ContainerPlacer final
-{
- public:
- explicit ContainerPlacer(BasicContainer2 *c = nullptr,
- LayoutCell *lc = nullptr) :
- mContainer(c), mCell(lc)
- {}
-
- /**
- * Gets the pointed cell.
- */
- LayoutCell &getCell() A_WARN_UNUSED
- { return *mCell; }
-
- /**
- * Returns a placer for the same container but to an inner cell.
- */
- ContainerPlacer at(const int x, const int y) A_WARN_UNUSED;
-
- /**
- * Adds the given widget to the container and places it in the layout.
- * @see LayoutArray::place
- */
- LayoutCell &operator()(const int x, const int y, Widget *const wg,
- const int w = 1, const int h = 1);
-
- private:
- BasicContainer2 *mContainer;
- LayoutCell *mCell;
-};
-
-/**
* This class contains a rectangular array of cells.
*/
class LayoutArray final