2008-02-25 01:54:05 +00:00
|
|
|
/*
|
2010-09-21 23:31:50 +00:00
|
|
|
* Copyright 2006 - 2010, Haiku, Inc. All rights reserved.
|
2008-02-25 01:54:05 +00:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2008-02-06 10:51:44 +00:00
|
|
|
#ifndef COLUMN_H
|
|
|
|
#define COLUMN_H
|
|
|
|
|
2010-09-22 21:53:32 +00:00
|
|
|
|
2010-09-20 22:47:13 +00:00
|
|
|
#include "Constraint.h"
|
|
|
|
#include "LinearSpec.h"
|
2010-10-05 20:15:55 +00:00
|
|
|
#include "Tab.h"
|
2010-09-20 22:47:13 +00:00
|
|
|
|
2008-02-06 10:51:44 +00:00
|
|
|
|
|
|
|
namespace BALM {
|
|
|
|
|
2011-03-14 00:24:12 +00:00
|
|
|
|
|
|
|
class Area;
|
2008-02-06 10:51:44 +00:00
|
|
|
class BALMLayout;
|
2011-03-14 00:24:12 +00:00
|
|
|
class RowColumnManager;
|
|
|
|
|
2008-02-06 10:51:44 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Represents a column defined by two x-tabs.
|
|
|
|
*/
|
|
|
|
class Column {
|
|
|
|
public:
|
2010-09-29 03:30:47 +00:00
|
|
|
~Column();
|
|
|
|
|
2010-09-20 22:47:13 +00:00
|
|
|
XTab* Left() const;
|
|
|
|
XTab* Right() const;
|
2010-09-29 03:30:47 +00:00
|
|
|
|
2011-03-14 00:24:12 +00:00
|
|
|
private:
|
|
|
|
Column(LinearSpec* ls, XTab* left, XTab* right);
|
2008-02-06 10:51:44 +00:00
|
|
|
|
2010-09-20 22:47:13 +00:00
|
|
|
LinearSpec* fLS;
|
|
|
|
XTab* fLeft;
|
|
|
|
XTab* fRight;
|
2008-02-06 10:51:44 +00:00
|
|
|
|
2011-03-14 00:24:12 +00:00
|
|
|
//! managed by RowColumnManager
|
|
|
|
Constraint* fPrefSizeConstraint;
|
|
|
|
BObjectList<Area> fAreas;
|
2008-02-06 10:51:44 +00:00
|
|
|
|
|
|
|
public:
|
2011-03-14 00:24:12 +00:00
|
|
|
friend class BALMLayout;
|
|
|
|
friend class BALM::RowColumnManager;
|
2008-02-06 10:51:44 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace BALM
|
|
|
|
|
|
|
|
using BALM::Column;
|
|
|
|
|
|
|
|
#endif // COLUMN_H
|