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 Y_TAB_H
|
|
|
|
#define Y_TAB_H
|
|
|
|
|
2010-09-22 21:53:32 +00:00
|
|
|
|
2010-09-20 22:47:13 +00:00
|
|
|
#include "LinearSpec.h"
|
2008-02-06 10:51:44 +00:00
|
|
|
#include "Variable.h"
|
|
|
|
|
2010-09-20 22:47:13 +00:00
|
|
|
|
2008-02-06 10:51:44 +00:00
|
|
|
namespace BALM {
|
2010-09-20 22:47:13 +00:00
|
|
|
|
2008-02-06 10:51:44 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Horizontal grid line (y-tab).
|
|
|
|
*/
|
|
|
|
class YTab : public Variable {
|
|
|
|
protected:
|
2010-09-20 22:47:13 +00:00
|
|
|
YTab(LinearSpec* ls);
|
2008-02-06 10:51:44 +00:00
|
|
|
|
|
|
|
protected:
|
2010-09-20 22:47:13 +00:00
|
|
|
/**
|
|
|
|
* Property signifying if there is a constraint which relates
|
|
|
|
* this tab to a different tab that is further to the top.
|
|
|
|
* Only used for reverse engineering.
|
|
|
|
*/
|
|
|
|
bool fTopLink;
|
2008-02-06 10:51:44 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
friend class Area;
|
|
|
|
friend class Row;
|
|
|
|
friend class BALMLayout;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace BALM
|
|
|
|
|
|
|
|
using BALM::YTab;
|
|
|
|
|
|
|
|
#endif // Y_TAB_H
|