2008-02-25 04:54:05 +03:00
|
|
|
/*
|
2010-09-22 03:31:50 +04:00
|
|
|
* Copyright 2006 - 2010, Haiku, Inc. All rights reserved.
|
2008-02-25 04:54:05 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2008-02-06 13:51:44 +03:00
|
|
|
#ifndef ROW_H
|
|
|
|
#define ROW_H
|
|
|
|
|
2010-09-23 01:53:32 +04:00
|
|
|
|
2012-01-17 05:28:01 +04:00
|
|
|
#include <ObjectList.h>
|
|
|
|
#include <Referenceable.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace LinearProgramming {
|
|
|
|
class Constraint;
|
|
|
|
class LinearSpec;
|
|
|
|
};
|
2010-09-21 02:47:13 +04:00
|
|
|
|
2008-02-06 13:51:44 +03:00
|
|
|
|
|
|
|
namespace BALM {
|
|
|
|
|
2011-03-14 03:24:12 +03:00
|
|
|
|
|
|
|
class Area;
|
2008-02-06 13:51:44 +03:00
|
|
|
class BALMLayout;
|
2011-03-14 03:24:12 +03:00
|
|
|
class RowColumnManager;
|
2012-01-17 05:28:01 +04:00
|
|
|
class XTab;
|
|
|
|
class YTab;
|
2011-03-14 03:24:12 +03:00
|
|
|
|
2010-10-06 00:15:55 +04:00
|
|
|
|
2008-02-06 13:51:44 +03:00
|
|
|
/**
|
|
|
|
* Represents a row defined by two y-tabs.
|
|
|
|
*/
|
|
|
|
class Row {
|
|
|
|
public:
|
2010-09-29 07:30:47 +04:00
|
|
|
~Row();
|
|
|
|
|
2010-09-21 02:47:13 +04:00
|
|
|
YTab* Top() const;
|
|
|
|
YTab* Bottom() const;
|
2011-03-14 03:24:12 +03:00
|
|
|
|
|
|
|
private:
|
2012-01-17 05:28:01 +04:00
|
|
|
Row(LinearProgramming::LinearSpec* ls,
|
|
|
|
YTab* top, YTab* bottom);
|
2011-03-14 03:24:12 +03:00
|
|
|
|
2011-11-30 08:55:36 +04:00
|
|
|
BReference<YTab> fTop;
|
|
|
|
BReference<YTab> fBottom;
|
2008-02-06 13:51:44 +03:00
|
|
|
|
2012-01-17 05:28:01 +04:00
|
|
|
LinearProgramming::LinearSpec* fLS;
|
|
|
|
LinearProgramming::Constraint* fPrefSizeConstraint;
|
|
|
|
// managed by RowColumnManager
|
|
|
|
|
2011-03-14 03:24:12 +03:00
|
|
|
BObjectList<Area> fAreas;
|
2008-02-06 13:51:44 +03:00
|
|
|
|
|
|
|
public:
|
2011-03-14 03:24:12 +03:00
|
|
|
friend class BALMLayout;
|
|
|
|
friend class BALM::RowColumnManager;
|
2008-02-06 13:51:44 +03:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace BALM
|
|
|
|
|
|
|
|
using BALM::Row;
|
|
|
|
|
|
|
|
#endif // ROW_H
|