Remove unsupported reverse engineering feature. Further clean up.
Also remove LayoutStyle feature because resizing the parent view might not be a good idea. If the parent view should be resized you should better but it into a BLayout too. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38779 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
|
||||
#include "Area.h"
|
||||
#include "Column.h"
|
||||
#include "LayoutStyleType.h"
|
||||
#include "LinearSpec.h"
|
||||
#include "Row.h"
|
||||
#include "XTab.h"
|
||||
@@ -31,8 +30,6 @@ public:
|
||||
BALMLayout();
|
||||
virtual ~BALMLayout();
|
||||
|
||||
void SolveLayout();
|
||||
|
||||
XTab* AddXTab();
|
||||
YTab* AddYTab();
|
||||
Row* AddRow();
|
||||
@@ -54,11 +51,6 @@ public:
|
||||
XTab* Right() const;
|
||||
YTab* Top() const;
|
||||
YTab* Bottom() const;
|
||||
|
||||
void RecoverLayout(BView* parent);
|
||||
|
||||
LayoutStyleType LayoutStyle() const;
|
||||
void SetLayoutStyle(LayoutStyleType style);
|
||||
|
||||
virtual BSize BaseMinSize();
|
||||
virtual BSize BaseMaxSize();
|
||||
@@ -77,16 +69,15 @@ public:
|
||||
LinearSpec* Solver();
|
||||
|
||||
private:
|
||||
void _SolveLayout();
|
||||
|
||||
Area* _AreaForItem(BLayoutItem* item) const;
|
||||
void _UpdateAreaConstraints();
|
||||
|
||||
BSize CalculateMinSize();
|
||||
BSize CalculateMaxSize();
|
||||
BSize CalculatePreferredSize();
|
||||
BSize _CalculateMinSize();
|
||||
BSize _CalculateMaxSize();
|
||||
BSize _CalculatePreferredSize();
|
||||
|
||||
private:
|
||||
LayoutStyleType fLayoutStyle;
|
||||
bool fActivated;
|
||||
|
||||
LinearSpec fSolver;
|
||||
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
/*
|
||||
* Copyright 2007-2008, Christof Lutteroth, [email protected]
|
||||
* Copyright 2007-2008, James Kim, [email protected]
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
#ifndef LAYOUT_STYLE_TYPE_H
|
||||
#define LAYOUT_STYLE_TYPE_H
|
||||
|
||||
|
||||
namespace BALM {
|
||||
|
||||
/**
|
||||
* The possibilities for adjusting a GUI's layout.
|
||||
* Either change the child controls so that they fit into their parent control, or adjust
|
||||
* the size of the parent control so that the children have as much space as they want.
|
||||
*/
|
||||
enum LayoutStyleType {
|
||||
FIT_TO_SIZE, ADJUST_SIZE
|
||||
};
|
||||
|
||||
} // namespace BALM
|
||||
|
||||
using BALM::LayoutStyleType;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user